/* 診断中のロード画面（公開診断ツール共通）。JOLDiagLoader.run() が #jdl を body に足す */
.jdl {
  position: fixed; inset: 0; z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: #f4f4f6;
  font-family: "Noto Sans JP", sans-serif;
  color: #1b1b1b;
  opacity: 0;
  transition: opacity .28s cubic-bezier(.22, 1, .36, 1);
}
.jdl.is-in { opacity: 1; }
.jdl.is-out { opacity: 0; }

.jdl-box { width: 100%; max-width: 360px; display: flex; flex-direction: column; align-items: center; }

/* 輪：外は進み具合、内は回り続ける弧 */
.jdl-ring { position: relative; width: 148px; height: 148px; }
.jdl-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.jdl-track { stroke: rgba(0, 0, 0, .07); }
.jdl-bar {
  stroke: #ff7020; stroke-linecap: round;
  transform: rotate(-90deg); transform-origin: 50% 50%;
  transition: stroke-dashoffset .5s cubic-bezier(.22, 1, .36, 1);
}
.jdl-spin { animation: jdl-rot 1.1s linear infinite; transform-origin: 50% 50%; }
.jdl-spin circle { stroke: #ffd2b8; stroke-linecap: round; }
.jdl-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.jdl-pct {
  font-family: "DM Sans", "Noto Sans JP", sans-serif;
  font-size: 34px; font-weight: 700; line-height: 1;
  font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}
.jdl-pct small { font-size: 15px; font-weight: 700; color: #8a8a99; margin-left: 2px; }
.jdl-logo { width: 38px; height: auto; margin-top: 8px; opacity: .9; }

.jdl-title { margin-top: 22px; font-size: 18px; font-weight: 700; letter-spacing: .04em; }
.jdl-title i { display: inline-block; width: 1.4em; text-align: left; font-style: normal; }
.jdl-title i::after { content: ""; animation: jdl-dots 1.2s steps(4, end) infinite; }

/* 手順 */
.jdl-steps { list-style: none; margin: 22px 0 0; padding: 0; width: 100%; display: flex; flex-direction: column; gap: 8px; }
.jdl-step {
  display: flex; align-items: center; gap: 12px;
  min-height: 48px; padding: 10px 18px 10px 12px;
  background: #fff; border-radius: 999px;
  font-size: 14px; font-weight: 700; color: #a3a3b1;
  transition: color .3s, background-color .3s;
}
.jdl-step.is-on { color: #1b1b1b; }
.jdl-step.is-done { color: #5b5b6b; }
.jdl-ico { flex: none; position: relative; width: 26px; height: 26px; border-radius: 50%; background: #f0f0f4; }
.jdl-step.is-on .jdl-ico { background: #fff1e8; }
.jdl-step.is-on .jdl-ico::after {
  content: ""; position: absolute; inset: 5px; border-radius: 50%;
  border: 2.5px solid #ffd2b8; border-top-color: #ff7020;
  animation: jdl-rot .8s linear infinite;
}
.jdl-step.is-done .jdl-ico { background: #ff7020; animation: jdl-pop .32s cubic-bezier(.34, 1.56, .64, 1); }
.jdl-step.is-done .jdl-ico::after {
  content: ""; position: absolute; left: 9px; top: 5px; width: 6px; height: 11px;
  border: solid #fff; border-width: 0 2.6px 2.6px 0; transform: rotate(45deg);
}

@keyframes jdl-rot { to { transform: rotate(360deg); } }
@keyframes jdl-pop { 0% { transform: scale(.4); } 100% { transform: scale(1); } }
@keyframes jdl-dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }

@media (prefers-reduced-motion: reduce) {
  .jdl-spin, .jdl-step.is-on .jdl-ico::after { animation-duration: 3s; }
  .jdl-step.is-done .jdl-ico { animation: none; }
}
