:root {
  --color-teal: #2f7566;
  --color-teal-dark: #204d40;
  --color-teal-light-bg: #eef6f3;
  --color-green: #7cb342;
  --color-green-light-bg: #f7faec;
  --color-orange: #e0a030;
  --color-orange-light-bg: #fdf3e3;
  --color-red: #e05a4e;
  --color-red-light-bg: #fdecec;
  --color-cta-orange: #d9723a;
  --color-text: #333333;
  --color-text-muted: #8a8a8a;
  --color-border: #d9d9d9;
  --max-width: 720px;
  --radius: 12px;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--color-text);
  background: #fafafa;
  line-height: 1.8;
  font-size: 16px;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px 64px;
}

a { color: inherit; }

/* --- header --- */
.site-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 24px;
}
.site-header .logo {
  display: inline-flex;
  text-decoration: none;
}
.site-header .logo img {
  height: 32px;
  width: auto;
  display: block;
}

/* --- section headings --- */
.section-title {
  color: var(--color-teal);
  font-size: 22px;
  margin: 40px 0 16px;
}

/* --- compare grid --- */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) {
  .compare-grid { grid-template-columns: 1fr 1fr; }
}
.compare-col__head {
  color: #fff;
  font-weight: 700;
  text-align: center;
  padding: 12px;
  border-radius: 8px 8px 0 0;
}
.compare-col--positive .compare-col__head { background: var(--color-teal); }
.compare-col--negative .compare-col__head { background: #9a9a9a; }
.compare-list {
  list-style: none;
  margin: 0;
  padding: 12px 0 0;
}
.compare-list li {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 10px;
  font-weight: 700;
  color: var(--color-teal);
  display: flex;
  align-items: center;
  gap: 10px;
}
.compare-list--muted li { color: var(--color-text-muted); }
.icon { width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0; }
.icon--ok { border: 3px solid var(--color-teal-light-bg); background: transparent; box-shadow: inset 0 0 0 2px var(--color-teal); }
.icon--ng { border: none; background: transparent; position: relative; }
.icon--ng::before, .icon--ng::after {
  content: ""; position: absolute; width: 100%; height: 2px; background: #b5b5b5; top: 50%; left: 0;
}
.icon--ng::before { transform: rotate(45deg); }
.icon--ng::after { transform: rotate(-45deg); }
.compare-note {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 12px;
}

/* --- step card --- */
.step-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.step-card__label {
  color: var(--color-teal);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 8px;
}
.step-card__text { margin: 0 0 16px; }

/* --- score table --- */
.score-table { display: flex; flex-direction: column; gap: 12px; margin: 16px 0; }
.score-row {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 8px;
}
.score-row__points { text-align: center; min-width: 72px; }
.score-row__num { display: block; font-size: 22px; font-weight: 700; }
.score-row__unit { display: block; font-size: 11px; color: var(--color-text-muted); letter-spacing: 0.05em; }
.score-row__badge {
  color: #fff;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 6px;
  white-space: nowrap;
}
.score-row__desc { color: var(--color-text-muted); }

.score-row--none { background: var(--color-teal-light-bg); }
.score-row--none .score-row__num { color: var(--color-teal-dark); }
.score-row--none .score-row__badge { background: var(--color-teal-dark); }

.score-row--mild { background: var(--color-green-light-bg); }
.score-row--mild .score-row__num { color: var(--color-green); }
.score-row--mild .score-row__badge { background: var(--color-green); }

.score-row--moderate { background: var(--color-orange-light-bg); }
.score-row--moderate .score-row__num { color: var(--color-orange); }
.score-row--moderate .score-row__badge { background: var(--color-orange); }

.score-row--severe { background: var(--color-red-light-bg); }
.score-row--severe .score-row__num { color: var(--color-red); }
.score-row--severe .score-row__badge { background: var(--color-red); }

.fine-print {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 16px;
}

/* --- check card --- */
.check-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.hero {
  background-image: linear-gradient(rgba(255,255,255,0.75), rgba(255,255,255,0.75)),
    url("https://images.unsplash.com/photo-1518655048521-f130df041f66?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&q=80&w=1080");
  background-size: cover;
  background-position: center;
  padding: 56px 24px;
  text-align: center;
}
.hero--top {
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  margin-bottom: 8px;
}
.hero h1 {
  color: var(--color-teal-dark);
  font-size: 30px;
  margin: 0;
}
.hero__lead,
.hero .ams-footnote,
.hero .benefit-list {
  text-align: left;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.hero__lead { margin-top: 24px; }
.hero .benefit-list { margin-bottom: 0; }
.check-card__body { padding: 24px; }

.benefit-list {
  list-style: none;
  margin: 16px 0;
  padding: 0;
  color: var(--color-teal);
  font-weight: 700;
}
.benefit-list li { margin-bottom: 8px; }

/* --- question fieldsets --- */
.question {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 12px 16px 16px;
  margin: 0 0 16px;
}
.question legend { font-weight: 700; padding: 0 4px; }
.scale-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 8px;
}
.scale-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 15px;
}
.scale-option input { accent-color: var(--color-teal); width: 16px; height: 16px; }

/* --- buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 700;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
}
.btn--large { padding: 16px 24px; font-size: 17px; }
.btn--primary { background: var(--color-cta-orange); color: #fff; }
.btn--primary:disabled { background: #cccccc; color: #f0f0f0; cursor: not-allowed; }
.btn--secondary { background: var(--color-teal); color: #fff; margin-bottom: 16px; }
.btn--outline { background: #fff; color: var(--color-cta-orange); border: 2px solid var(--color-cta-orange); }
.chevron { font-size: 18px; }

.cta-heading { color: var(--color-teal); text-align: center; margin: 32px 0 16px; }

#btn-consult, #btn-apply, #btn-back-top { margin-bottom: 8px; }

/* --- result box --- */
.result-box {
  margin: 24px 0;
  padding: 24px;
  border-radius: var(--radius);
  text-align: center;
}
.result-box__score { font-size: 36px; font-weight: 700; }
.result-box__unit { font-size: 13px; margin-left: 6px; color: var(--color-text-muted); }
.result-box__badge {
  display: inline-block;
  color: #fff;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 6px;
  margin: 8px 0;
}
.result-box--none { background: var(--color-teal-light-bg); }
.result-box--none .result-box__badge { background: var(--color-teal-dark); }
.result-box--mild { background: var(--color-green-light-bg); }
.result-box--mild .result-box__badge { background: var(--color-green); }
.result-box--moderate { background: var(--color-orange-light-bg); }
.result-box--moderate .result-box__badge { background: var(--color-orange); }
.result-box--severe { background: var(--color-red-light-bg); }
.result-box--severe .result-box__badge { background: var(--color-red); }

/* --- ⑤ セルフチェック後の流れ --- */
/* --- ⑤ セルフチェック後の流れ(STEP2の判定基準表と同じ見せ方) --- */
.process-flow {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 20px 0;
}
.process-row {
  display: grid;
  grid-template-columns: 32px 40px 1fr;
  align-items: center;
  gap: 14px;
  background: var(--color-teal-light-bg);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 8px;
  position: relative;
}
.process-row:not(.process-row--last)::before {
  content: "";
  position: absolute;
  left: 30px;
  bottom: -8px;
  width: 2px;
  height: 8px;
  background: var(--color-teal);
  opacity: 0.4;
}
.process-row__num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-teal-dark);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.process-row__icon { font-size: 22px; text-align: center; }
.process-row__label { font-weight: 700; color: var(--color-teal-dark); }

/* --- ⑧ 採血で分かること --- */
.detail-box {
  background: #f7f7f5;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
  margin: 24px 0;
  font-size: 14px;
  color: var(--color-text-muted);
}
.detail-box__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.detail-box__icon { font-size: 22px; }
.detail-box__title {
  margin: 0;
  color: var(--color-teal-dark);
  font-size: 16px;
}
.detail-box__list { margin: 8px 0; padding-left: 20px; }
.detail-box__list li { margin-bottom: 4px; }
.detail-box__footer {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
}

/* --- ⑥ FAQ導線 --- */
.faq-link { text-align: center; margin: 24px 0; }
.faq-link a { color: var(--color-cta-orange); font-weight: 700; text-decoration: underline; }

/* --- ⑦ ユーザー様の声 --- */
.voice-section { margin: 32px 0; }
.voice-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.voice-eyebrow {
  display: block;
  color: var(--color-teal);
  font-size: 13px;
  font-weight: 700;
}
.voice-section__head .section-title { margin: 4px 0 0; font-size: 20px; }
.voice-controls { display: flex; gap: 6px; flex-shrink: 0; }
.voice-controls button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--color-teal-dark);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}
.voice-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}
.voice-card {
  flex: 0 0 240px;
  scroll-snap-align: start;
  background: #f0f0ee;
  border-radius: 8px;
  padding: 16px;
  font-size: 14px;
  display: flex;
  flex-direction: column;
}
.voice-card__block { margin-bottom: 12px; }
.voice-card__tag {
  display: inline-block;
  background: #fff;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  margin-bottom: 6px;
}
.voice-card__tag + p {
  margin: 0;
  min-height: 4.5em;
}
.voice-card__person {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--color-teal-dark);
  margin-top: auto;
  padding-top: 12px;
}
.voice-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  flex-shrink: 0;
}
