/* ============================================================
   無料診断ウィザード
   ============================================================ */

.sd {
  min-height: 100svh;
  background: var(--navy-950);
  color: #fff;
  padding: calc(var(--header-h) + 64px) 24px 96px;
  display: flex;
  justify-content: center;
}
.sd__wrap {
  width: 100%;
  max-width: 640px;
}

.sd__label {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.28em;
  color: var(--sunrise-soft);
  margin-bottom: 16px;
}

/* ---------- intro ---------- */
.sd__intro { text-align: center; padding-top: 48px; }
.sd__title {
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 900;
}
.sd__lead {
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 15px;
}
.sd__start { margin-top: 40px; }

/* ---------- wizard ---------- */
.sd__wizard { padding-top: 24px; }
.sd__progress {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}
.sd__progress-bar {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: var(--navy-800);
  overflow: hidden;
}
.sd__progress-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--grad-sunrise);
  transition: width 0.35s ease;
}
.sd__progress-text {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}
.sd__q-title {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 900;
  margin-bottom: 28px;
  line-height: 1.6;
}
.sd__q-note {
  margin: -16px 0 24px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.55);
}
.sd__options {
  display: grid;
  gap: 12px;
}
.sd__number-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sd__number {
  width: 160px;
  background: var(--navy-800);
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  padding: 16px 18px;
  color: #fff;
  font-family: var(--font-en);
  font-size: 22px;
  font-weight: 700;
  transition: border-color 0.2s;
}
.sd__number:focus { outline: none; border-color: var(--sunrise); }
.sd__number.is-error { border-color: #e5484d; }
.sd__unit {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
}
.sd__textarea {
  width: 100%;
  background: var(--navy-800);
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  padding: 16px 18px;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  resize: vertical;
  transition: border-color 0.2s;
}
.sd__textarea:focus { outline: none; border-color: var(--sunrise); }
.sd__nav {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.sd__next { border: none; cursor: pointer; font-family: inherit; }
.sd__skip {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.55);
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  padding: 8px 0;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.sd__skip:hover { color: #fff; }
.sd__option {
  text-align: left;
  background: var(--navy-800);
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  padding: 18px 22px;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.sd__option:hover {
  border-color: var(--sunrise);
  transform: translateY(-1px);
}
.sd__option.is-selected {
  border-color: var(--sunrise);
  background: rgba(255, 255, 255, 0.10);
}
.sd__back {
  margin-top: 32px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.55);
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  padding: 8px 0;
}
.sd__back:hover { color: #fff; }

/* ---------- result ---------- */
.sd__result { padding-top: 24px; }
.sd__result-title {
  font-size: clamp(24px, 3.6vw, 32px);
  font-weight: 900;
  line-height: 1.5;
  background: var(--grad-sunrise);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.sd__result-text {
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
}
.sd__answers {
  margin-top: 32px;
  background: var(--navy-800);
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  padding: 8px 22px;
}
.sd__answers > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-dark);
  font-size: 13.5px;
}
.sd__answers > div:last-child { border-bottom: none; }
.sd__answers span { color: rgba(255, 255, 255, 0.55); }
.sd__answers b { color: #fff; white-space: nowrap; }

.sd__form {
  margin-top: 48px;
  display: grid;
  gap: 24px;
}
.sd__form-lead {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}
.sd__retry {
  margin-top: 28px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.55);
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  padding: 8px 0;
}
.sd__retry:hover { color: #fff; }

@media (max-width: 600px) {
  .sd__answers span { max-width: 60%; }
}
