/* ============================================
   HERO'S 延岡校 — 個別診断フォーム スタイル
   ============================================ */

/* --- ヒーロー --- */
.diag-hero {
  background: linear-gradient(180deg, #fdfaf3 0%, #f5f0e6 50%, #fdfaf3 100%);
  padding: 3rem 1.5rem 2.4rem;
  text-align: center;
  border-bottom: 1px solid rgba(212,168,83,.25);
}
.diag-hero-in { max-width: 720px; margin: 0 auto; }
.diag-eyebrow {
  display: inline-block;
  background: var(--vr);
  color: #fff;
  padding: .4rem 1.1rem;
  border-radius: 100px;
  font-size: .82rem;
  font-weight: 700;
  margin-bottom: 1.3rem;
  letter-spacing: .04em;
  box-shadow: 0 2px 8px rgba(199,62,58,.25);
}
.diag-h1 {
  font-family: var(--fh);
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  font-weight: 800;
  color: var(--nv);
  line-height: 1.5;
  margin: 0 0 1.4rem;
}
.diag-lead {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--tx);
  max-width: 600px;
  margin: 0 auto 1.6rem;
}
.diag-lead strong { color: var(--vr); font-weight: 700; }

.diag-promises {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 480px;
  text-align: left;
}
.diag-promises li {
  font-size: .92rem;
  line-height: 1.7;
  color: var(--tx);
  padding: .35rem 0;
  display: flex;
  align-items: flex-start;
  gap: .5rem;
}
.diag-promises .dp-ico {
  flex: 0 0 auto;
  color: #06C755;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.7;
}
.diag-promises strong { color: var(--nv); font-weight: 700; }

/* --- フォームセクション --- */
.diag-form-section {
  background: #fff;
  padding: 2.4rem 1rem 3rem;
}
.diag-form-wrap {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--rl);
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
  padding: 1.8rem 1.6rem 2rem;
  border: 1px solid rgba(0,0,0,.05);
}

/* --- プログレスバー --- */
.diag-progress { margin-bottom: 1.8rem; }
.dp-track {
  height: 8px;
  background: rgba(26,35,126,.08);
  border-radius: 100px;
  overflow: hidden;
  position: relative;
}
.dp-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--nv) 0%, var(--vr) 100%);
  border-radius: 100px;
  transition: width .35s ease;
}
.dp-label {
  text-align: center;
  font-size: .78rem;
  color: var(--tl);
  margin: .55rem 0 0;
  font-weight: 600;
  letter-spacing: .02em;
}

/* --- ステップ --- */
.diag-step { border: none; padding: 0; margin: 0; }
.diag-step[hidden] { display: none; }
.diag-legend {
  font-family: var(--fh);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--nv);
  margin-bottom: 1.4rem;
  line-height: 1.5;
  padding: 0;
  width: 100%;
}

/* --- 質問 --- */
.diag-q {
  margin-bottom: 1.6rem;
}
.diag-q[hidden] { display: none; }
.diag-label {
  display: block;
  font-size: .96rem;
  font-weight: 700;
  color: var(--nv);
  line-height: 1.6;
  margin-bottom: .8rem;
}
.diag-label .req {
  display: inline-block;
  background: var(--vr);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  padding: .12rem .5rem;
  border-radius: 4px;
  margin-left: .5rem;
  vertical-align: 2px;
}
.diag-hint {
  font-size: .78rem;
  color: var(--tl);
  line-height: 1.7;
  margin: .5rem 0 0;
}
.diag-hint strong { color: var(--vr); font-weight: 700; }

/* --- セレクト・インプット --- */
.diag-select,
.diag-input,
.diag-textarea {
  width: 100%;
  padding: .85rem 1rem;
  border: 1.5px solid rgba(26,35,126,.18);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--tx);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
  box-sizing: border-box;
}
.diag-select:focus,
.diag-input:focus,
.diag-textarea:focus {
  outline: none;
  border-color: var(--nv);
  box-shadow: 0 0 0 3px rgba(26,35,126,.12);
}
.diag-textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.7;
}

/* --- チェックボックス --- */
.diag-checks {
  display: grid;
  gap: .55rem;
}
.diag-check {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  padding: .75rem .9rem;
  background: var(--ws);
  border: 1.5px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.diag-check:hover { background: rgba(26,35,126,.06); }
.diag-check input[type="checkbox"] {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 0;
  cursor: pointer;
  accent-color: var(--nv);
}
.diag-check input[type="checkbox"]:checked + span {
  color: var(--nv);
  font-weight: 700;
}
.diag-check:has(input[type="checkbox"]:checked) {
  background: rgba(26,35,126,.08);
  border-color: var(--nv);
}
.diag-check span {
  font-size: .92rem;
  line-height: 1.55;
  color: var(--tx);
  padding-top: .12rem;
}

/* --- 同意チェック --- */
.diag-consent {
  background: rgba(255,213,107,.12);
  border: 1px solid rgba(212,168,83,.4);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  margin: 1.6rem 0;
}
.diag-consent .diag-check { background: transparent; padding: 0; }
.diag-consent .diag-check:hover { background: transparent; }
.diag-consent .diag-check span {
  font-size: .88rem;
  line-height: 1.7;
}
.diag-consent strong { color: var(--vr); font-weight: 700; }

/* --- ボタン --- */
.diag-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .8rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.diag-btn-back,
.diag-btn-next,
.diag-btn-submit {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  padding: .9rem 1.6rem;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: transform .12s, filter .12s, box-shadow .2s;
  min-width: 140px;
}
.diag-btn-next,
.diag-btn-submit {
  background: linear-gradient(135deg, var(--nv) 0%, #2a4fc8 100%);
  color: #fff;
  margin-left: auto;
  box-shadow: 0 4px 14px rgba(26,35,126,.22);
}
.diag-btn-next:hover,
.diag-btn-submit:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(26,35,126,.28);
}
.diag-btn-back {
  background: transparent;
  color: var(--tl);
  border: 1.5px solid rgba(26,35,126,.18);
}
.diag-btn-back:hover {
  background: rgba(26,35,126,.05);
  color: var(--nv);
}
.diag-btn-submit {
  background: linear-gradient(135deg, var(--vr) 0%, #d4504c 100%);
  font-size: 1.05rem;
  padding: 1rem 1.8rem;
  box-shadow: 0 4px 14px rgba(199,62,58,.28);
}
.diag-btn-submit:hover {
  box-shadow: 0 6px 18px rgba(199,62,58,.36);
}

.diag-final-note {
  font-size: .9rem;
  color: var(--tl);
  line-height: 1.7;
  margin-bottom: 1.4rem;
  padding: .75rem 1rem;
  background: rgba(26,35,126,.04);
  border-radius: 8px;
  border-left: 3px solid var(--nv);
}
.diag-disclaimer {
  font-size: .82rem;
  color: var(--tl);
  line-height: 1.75;
  margin-top: 1.2rem;
  text-align: center;
}
.diag-disclaimer strong { color: var(--nv); font-weight: 700; }

/* --- 信頼バーナー --- */
.diag-trust {
  background: var(--ws);
  padding: 3rem 1.5rem;
}
.diag-trust-grid {
  display: grid;
  gap: 1rem;
  max-width: 1000px;
  margin: 1.8rem auto 0;
}
@media (min-width: 760px) {
  .diag-trust-grid { grid-template-columns: repeat(3, 1fr); }
}
.dt-card {
  background: #fff;
  border-radius: var(--rl);
  padding: 1.5rem 1.3rem;
  text-align: center;
  border: 1px solid rgba(0,0,0,.04);
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.dt-ico {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: .7rem;
}
.dt-title {
  font-family: var(--fh);
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--nv);
  margin: 0 0 .6rem;
  line-height: 1.5;
}
.dt-desc {
  font-size: .85rem;
  line-height: 1.75;
  color: var(--tl);
  margin: 0;
}

/* --- モバイル微調整 --- */
@media (max-width: 480px) {
  .diag-form-wrap { padding: 1.4rem 1.2rem 1.6rem; }
  .diag-legend { font-size: 1.04rem; }
  .diag-label { font-size: .92rem; }
  .diag-nav { gap: .5rem; }
  .diag-btn-back,
  .diag-btn-next,
  .diag-btn-submit {
    padding: .8rem 1.2rem;
    font-size: .92rem;
    min-width: 110px;
  }
  .diag-btn-submit {
    width: 100%;
    margin-left: 0;
    font-size: 1rem;
  }
  .diag-nav:has(.diag-btn-submit) {
    flex-direction: column-reverse;
  }
  .diag-nav:has(.diag-btn-submit) .diag-btn-back {
    width: 100%;
  }
}
