/* ============================================================
   diagnosis.html 専用スタイル
   ============================================================ */

/* ---------- シンプルヒーロー ---------- */
.hero-simple {
  padding-top: calc(var(--header-h) + 56px);
  padding-bottom: 48px;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--yg-50) 100%);
  text-align: center;
}
.hero-simple .container { max-width: 760px; }
.hero-simple h1 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  line-height: 1.5;
}
.hero-simple p {
  margin-top: 18px;
  color: var(--text-mid);
  font-size: 16px;
}
.hero-simple .chip-list {
  justify-content: center;
  margin-top: 22px;
}

/* ---------- 診断UI ---------- */
.diag { max-width: 640px; margin: 0 auto; }
.diag-progress {
  height: 8px; border-radius: 999px; background: var(--yg-100);
  overflow: hidden;
}
.diag-progress__bar {
  height: 100%; width: 8.3333%;
  background: var(--yg-500);
  transition: width .3s ease;
}
.diag-counter {
  margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--yg-700);
}
.diag-question {
  margin-top: 20px;
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow-card);
}
@media (max-width: 560px) { .diag-question { padding: 24px 20px; } }
.diag-question h3 { font-size: 17.5px; font-weight: 800; line-height: 1.7; }
.diag-options { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.diag-option {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--line-soft); border-radius: 10px;
  padding: 14px 16px; cursor: pointer; font-size: 14.5px;
  transition: border-color .2s ease, background .2s ease;
}
.diag-option:has(input:checked) { border-color: var(--yg-500); background: var(--yg-50); }
.diag-option input { accent-color: var(--yg-700); width: 18px; height: 18px; flex-shrink: 0; }
.diag-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }
.diag-nav button:disabled { opacity: .35; pointer-events: none; }

/* ---------- 結果 ---------- */
.diag-result { max-width: 560px; margin: 0 auto; text-align: center; }
.diag-result h2 { font-size: 22px; font-weight: 800; }
.diag-result__lead { margin-top: 14px; color: var(--text-mid); }
.diag-result .form-field {
  display: flex; flex-direction: column; gap: 8px;
  margin-top: 28px; text-align: left;
}
.diag-result .form-field label { font-weight: 700; font-size: 14.5px; }
.diag-result input[type="email"] {
  padding: 12px 14px; border: 1px solid var(--line-mid); border-radius: 8px;
  font-size: 15px; font-family: inherit; width: 100%;
}
.diag-result input[type="email"]:focus-visible {
  outline: none; border-color: var(--yg-500); box-shadow: 0 0 0 3px rgba(124,179,66,.18);
}
.form-tag {
  display: inline-block; font-size: 11.5px; font-weight: 700;
  padding: 2px 9px; border-radius: 999px; margin-left: 8px; vertical-align: 1px;
  color: var(--err-fg); background: var(--err-bg);
}
.form-fine { font-size: 12.5px; color: var(--text-weak); margin-top: 12px; }
.diag-result .btn { margin-top: 18px; }

.form-success {
  display: none; margin-top: 28px; padding: 28px 24px;
  background: var(--bg-tint-green); border: 1px solid var(--yg-200); border-radius: var(--radius);
  text-align: center;
}
.form-success.is-show { display: block; }
.form-success p { color: var(--text-mid); }
