/* 青バッジ診断 — styles.css
   標本シート（specimen）と診断書（report）を下敷きにした、紙とインクの画面。
   アクセントはXの青1色。判定の強弱は塗り／輪郭で表す。 */

:root {
  --paper: #f3f6f7;
  --panel: #fbfcfc;
  --ink: #0e1a21;
  --ink-2: #4c5c65;
  --ink-3: #5f6e76;
  --accent: #1d9bf0;
  --accent-deep: #0a689c;
  --accent-soft: #d7edfb;
  --danger: #9f2b22;
  --line: rgba(14, 26, 33, .15);
  --line-strong: rgba(14, 26, 33, .38);
  --grid: rgba(14, 26, 33, .035);
  --display: "Shippori Mincho B1", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --body: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  --mono: "IBM Plex Mono", "Cascadia Mono", Consolas, monospace;
  --pad: clamp(20px, 4vw, 48px);
  --step-0: clamp(.95rem, .93rem + .12vw, 1.03rem);
  --step-1: clamp(1.12rem, 1.04rem + .3vw, 1.3rem);
  --step-2: clamp(1.4rem, 1.2rem + .8vw, 1.85rem);
  --step-3: clamp(1.75rem, 1.4rem + 1.5vw, 2.6rem);
  --step-4: clamp(2.3rem, 1.6rem + 3.2vw, 4.1rem);
  --step-5: clamp(2.65rem, 1.7rem + 4.1vw, 5.2rem);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px;
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.8;
  letter-spacing: .012em;
  line-break: strict;
  word-break: normal;
  overflow-wrap: break-word;
}

img, svg, video, canvas { display: block; max-inline-size: 100%; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol, dl, dd { margin: 0; padding: 0; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
table { border-collapse: collapse; }
svg { overflow: visible; }

:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 3px; }
/* Headings focused programmatically (tabindex="-1") are not keyboard stops. */
[tabindex="-1"]:focus, [tabindex="-1"]:focus-visible { outline: none; }
::selection { background: var(--accent-soft); color: var(--ink); }

[hidden] { display: none !important; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 14px;
  text-decoration: none; font-size: 13px;
}
.skip-link:focus { top: 12px; }

.shell {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ---------- header ---------- */
.topbar {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
}
.topbar-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-mark { width: 26px; height: 26px; color: var(--accent); flex: none; }
.brand-name { font-weight: 700; font-size: 15px; letter-spacing: .02em; white-space: nowrap; }
.brand-sub {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--ink-3);
  border-left: 1px solid var(--line);
  padding-left: 10px;
  white-space: nowrap;
}
.topbar-actions { display: flex; align-items: center; gap: 18px; }
.topbar-meta { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--ink-3); }

/* ---------- type ---------- */
.display {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -.025em;
  font-feature-settings: "palt" 1;
  text-wrap: balance;
}
.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.kicker-rule { width: 36px; height: 1px; background: var(--line-strong); flex: none; }
.kicker--light { color: rgba(243, 246, 247, .62); }
.kicker--light .kicker-rule { background: rgba(243, 246, 247, .35); }
.fineprint { font-size: 12px; line-height: 1.8; color: var(--ink-3); letter-spacing: .01em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 22px;
  border-radius: 2px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .14s ease, color .14s ease, border-color .14s ease, transform .08s ease;
}
.btn:active { transform: translateY(1px); }
.btn-arrow { width: 16px; height: 16px; flex: none; transition: transform .16s ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }

.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent-deep); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: rgba(14, 26, 33, .06); border-color: var(--ink); }
.btn-accent { background: var(--accent); color: #07161f; }
.btn-accent:hover { background: #45b2f5; }

.text-btn {
  font-size: 13px;
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: .22em;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--line-strong);
  padding: 4px 0;
  transition: color .14s ease, text-decoration-color .14s ease;
}
.text-btn:hover { color: var(--ink); text-decoration-color: var(--ink); }
.text-btn--small { font-size: 12px; }
.text-btn:disabled { color: var(--ink-3); opacity: .45; cursor: default; text-decoration: none; }

.icon-btn {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  font-size: 26px; line-height: 1;
  border: 1px solid var(--line);
  color: var(--ink-2);
  flex: none;
}
.icon-btn:hover { background: rgba(14, 26, 33, .06); color: var(--ink); }

/* ---------- hero ---------- */
.view { display: block; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr);
  gap: clamp(32px, 5vw, 76px);
  align-items: center;
  padding-block: clamp(44px, 7vw, 92px) clamp(54px, 8vw, 104px);
}
.hero-copy { min-width: 0; }
.hero-title {
  font-size: var(--step-5);
  margin-top: 20px;
  max-width: 12em;
}
.q-mark { margin-inline-start: -.16em; }
.marker {
  background: linear-gradient(180deg, transparent 63%, var(--accent-soft) 63%);
  padding-inline: .04em;
  margin-inline: -.04em;
}
.nowrap { white-space: nowrap; }
.lead {
  max-width: 35em;
  margin-top: 26px;
  font-size: clamp(.97rem, .94rem + .28vw, 1.08rem);
  line-height: 1.9;
  color: var(--ink-2);
  text-wrap: pretty;
  word-break: auto-phrase;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 26px;
  list-style: none;
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: .02em;
}
.hero-meta li { display: flex; align-items: center; gap: 8px; }
.hero-meta li::before {
  content: "";
  width: 5px; height: 5px;
  background: var(--accent-deep);
  flex: none;
}

/* ---------- specimen ---------- */
.specimen {
  border: 1px solid var(--line-strong);
  background: var(--panel);
  padding: 16px 18px 14px;
  min-width: 0;
}
.specimen-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  letter-spacing: .13em;
  color: var(--ink-3);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.specimen-stage {
  position: relative;
  aspect-ratio: 1 / .92;
  margin-block: 16px;
  background-image:
    linear-gradient(to right, rgba(14, 26, 33, .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(14, 26, 33, .05) 1px, transparent 1px);
  background-size: 24px 24px;
  display: grid;
  place-items: center;
}
.specimen-badge {
  width: 54%;
  max-width: 250px;
  height: auto;
  color: var(--accent);
  animation: badge-in .85s cubic-bezier(.16, 1, .3, 1) both;
  filter: drop-shadow(0 10px 22px rgba(10, 104, 156, .16));
}
@keyframes badge-in {
  from { transform: scale(1.14) rotate(-7deg); }
  to { transform: scale(1) rotate(0); }
}
.crop { position: absolute; width: 15px; height: 15px; border: 0 solid var(--line-strong); }
.crop--tl { top: 3px; left: 3px; border-top-width: 1px; border-left-width: 1px; }
.crop--tr { top: 3px; right: 3px; border-top-width: 1px; border-right-width: 1px; }
.crop--bl { bottom: 3px; left: 3px; border-bottom-width: 1px; border-left-width: 1px; }
.crop--br { bottom: 3px; right: 3px; border-bottom-width: 1px; border-right-width: 1px; }
.specimen-marker {
  position: absolute;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-2);
}
.marker--1 { top: 11%; left: 13%; }
.marker--2 { top: 29%; right: 8%; }
.marker--3 { bottom: 10%; left: 23%; }
.specimen-legend { list-style: none; }
.specimen-legend li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 8px;
  align-items: baseline;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.65;
}
.specimen-legend li:first-child { border-top: 0; }
.specimen-legend .mono { font-size: 12px; color: var(--accent-deep); }
.specimen figcaption {
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-3);
}

/* ---------- sections ---------- */
.section { padding-top: clamp(62px, 9vw, 110px); }
.section-head { max-width: 780px; }
.section-head h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--step-3);
  line-height: 1.35;
  letter-spacing: -.02em;
  margin-top: 14px;
  text-wrap: balance;
}
.section-lead {
  margin-top: 14px;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.9;
  max-width: 42em;
}

.verdict-table { margin-top: 34px; border-top: 1px solid var(--line-strong); }
.verdict-row {
  display: grid;
  grid-template-columns: 220px 180px minmax(0, 1fr);
  gap: clamp(16px, 3vw, 36px);
  align-items: center;
  padding-block: 22px;
  border-bottom: 1px solid var(--line);
}
.verdict-row p { font-size: 13.5px; line-height: 1.8; color: var(--ink-2); }
.verdict-cond { display: flex; flex-wrap: wrap; gap: 6px; }
.verdict-cond .mono {
  font-size: 12px;
  letter-spacing: .04em;
  border: 1px solid var(--line);
  padding: 2px 7px;
  color: var(--ink-2);
  white-space: nowrap;
}
.stamp-mini {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .04em;
  line-height: 1.2;
  padding: 6px 12px;
  border: 2px solid currentColor;
  transform: rotate(-2deg);
  white-space: nowrap;
}
.stamp-mini[data-tone="accent-fill"] { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
.stamp-mini[data-tone="accent-outline"] { color: var(--accent-deep); }
.stamp-mini[data-tone="ink-fill"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.stamp-mini[data-tone="ink-outline"] { color: var(--ink); }

.do-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 30px;
  border-top: 1px solid var(--line-strong);
}
.do-item {
  padding: 24px 32px 26px 0;
  border-bottom: 1px solid var(--line);
}
.do-item:nth-child(2n) { padding-left: 32px; border-left: 1px solid var(--line); }
.do-item dt {
  font-weight: 700;
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 8px;
}
.do-item dt::before {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  background: var(--ink);
  margin-right: 10px;
  vertical-align: .15em;
}
.do-item dd { font-size: 13.5px; line-height: 1.85; color: var(--ink-2); }

/* ---------- FAQ ---------- */
.faq-list {
  margin-top: 30px;
  border-top: 1px solid var(--line-strong);
}
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 20px 44px 20px 0;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.7;
  cursor: pointer;
  list-style: none;
  transition: color .15s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent-deep); }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 18px;
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--accent-deep);
}
.faq-item[open] summary::after { content: "−"; }
.faq-q {
  flex: none;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--accent-deep);
}
.faq-a {
  max-width: 46em;
  padding: 0 44px 22px 44px;
  font-size: 13.5px;
  line-height: 1.95;
  color: var(--ink-2);
  word-break: auto-phrase;
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  margin-top: clamp(64px, 9vw, 116px);
  background-color: var(--ink);
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 48px 48px;
  color: var(--paper);
}
.cta-band .shell { position: relative; z-index: 1; padding-block: clamp(52px, 8vw, 88px); }
.cta-band h2 {
  color: var(--paper);
  font-size: clamp(2rem, 4.4vw, 3.5rem);
  line-height: 1.24;
  margin-top: 16px;
}
.cta-lead {
  margin-top: 18px;
  max-width: 38em;
  color: rgba(243, 246, 247, .72);
  font-size: 14.5px;
}
.cta-band .btn { margin-top: 28px; }
.cta-note { margin-top: 14px; font-size: 12px; color: rgba(243, 246, 247, .5); }
.cta-badge {
  position: absolute;
  right: -90px;
  top: 50%;
  width: min(48vw, 560px);
  height: auto;
  transform: translateY(-50%);
  color: var(--accent);
  opacity: .14;
  pointer-events: none;
}
.cta-band :focus-visible { outline-color: var(--accent); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); margin-top: 0; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px 40px;
  padding-block: 26px 34px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-3);
}
.footer-inner p { max-width: 60ch; }

/* ---------- quiz ---------- */
.quiz { max-width: 1000px; padding-block: clamp(26px, 4vw, 48px) 90px; }
.quiz-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.quiz-progress-meta {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: 12px;
  color: var(--ink-2);
}
.quiz-progress-meta .mono { font-size: 12px; color: var(--ink); letter-spacing: .04em; }
.progress {
  height: 2px;
  background: var(--line);
  margin-top: 16px;
  overflow: hidden;
}
.progress span {
  display: block;
  height: 100%;
  background: var(--accent-deep);
  transform-origin: left center;
  transform: scaleX(var(--p, .083));
  transition: transform .38s cubic-bezier(.16, 1, .3, 1);
}
.quiz-grid {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: clamp(24px, 5vw, 64px);
  margin-top: clamp(36px, 6vw, 68px);
}
.quiz-rail { padding-top: 6px; }
.quiz-num {
  display: block;
  font-family: var(--mono);
  font-size: clamp(46px, 6.4vw, 74px);
  line-height: 1;
  color: var(--line-strong);
  font-variant-numeric: tabular-nums;
}
.quiz-tag {
  display: block;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .13em;
  color: var(--ink-3);
}
.quiz-main { min-width: 0; }
.qform { animation: q-in .22s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes q-in { from { transform: translateX(14px); } to { transform: translateX(0); } }
.q-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--accent-deep);
}
.q-label span { color: var(--ink-3); margin-left: 10px; letter-spacing: .04em; font-family: var(--body); }
.q-title {
  font-size: clamp(1.35rem, 2.9vw, 2.0rem);
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: -.008em;
  margin-top: 10px;
  text-wrap: balance;
  word-break: auto-phrase;
}
.q-help { margin-top: 10px; font-size: 13px; color: var(--ink-2); line-height: 1.8; }
.options {
  margin-top: 26px;
  border-top: 1px solid var(--line-strong);
  min-inline-size: 0;
  border-left: 0; border-right: 0; border-bottom: 0;
  padding: 0;
}
.option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  min-height: 58px;
  cursor: pointer;
  transition: background-color .12s ease, color .12s ease;
}
.option:hover { background: rgba(14, 26, 33, .04); }
.option input {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  margin: 0;
  pointer-events: none;
}
.option-mark {
  width: 20px; height: 20px;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  transition: border-color .12s ease, background-color .12s ease;
}
.option-mark::after {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--paper);
  transform: scale(0);
  transition: transform .12s ease;
}
.option[data-kind="multi"] .option-mark { border-radius: 2px; }
.option[data-kind="multi"] .option-mark::after { border-radius: 0; }
.option-text { font-size: 15px; line-height: 1.65; font-weight: 500; }
.option:has(input:checked) { background: var(--ink); color: var(--paper); }
.option:has(input:checked) .option-mark { border-color: var(--accent); background: var(--accent); }
.option:has(input:checked) .option-mark::after { transform: scale(1); }
.option:has(input:focus-visible) { outline: 2px solid var(--accent-deep); outline-offset: -2px; }
.option:active { transform: translateY(1px); }

.form-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
}
.form-error { color: var(--danger); font-size: 12.5px; line-height: 1.7; }
.field-error { color: var(--danger); font-size: 12.5px; margin-top: 8px; }

.plan-form { display: block; }
.plan-form .options { margin-top: 22px; }
.price-field {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px dashed var(--line-strong);
}
.price-field > label { font-weight: 700; font-size: 14px; }
.price-input-wrap {
  display: flex;
  align-items: baseline;
  gap: 8px;
  max-width: 340px;
  margin-top: 8px;
  padding: 6px 0;
  border-bottom: 2px solid var(--ink);
  transition: border-color .14s ease;
}
.price-input-wrap:focus-within { border-color: var(--accent-deep); }
.price-input-wrap .currency { font-family: var(--mono); font-size: 20px; color: var(--ink-2); }
.price-input-wrap input {
  border: 0;
  background: transparent;
  outline: none;
  font-family: var(--mono);
  font-size: 28px;
  line-height: 1.2;
  width: 100%;
  min-height: 44px;
  font-variant-numeric: tabular-nums;
}
.price-input-wrap .unit { font-family: var(--mono); font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.field-help { margin-top: 8px; font-size: 12px; color: var(--ink-3); line-height: 1.75; }
.price-field:has([aria-invalid="true"]) .price-input-wrap { border-color: var(--danger); }

.quiz-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.quiz-hint { font-size: 12px; color: var(--ink-3); }

/* ---------- result ---------- */
.result { max-width: 1080px; padding-block: clamp(34px, 5vw, 58px) clamp(60px, 8vw, 96px); }
.result-hero {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  margin-top: 26px;
}
.stamp-wrap { min-width: 0; }
.stamp {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(30px, 4.2vw, 44px);
  line-height: 1.1;
  letter-spacing: .05em;
  padding: 20px 24px;
  border: 3px solid currentColor;
  position: relative;
  transform: rotate(-4deg);
  white-space: nowrap;
  animation: stamp-in .4s cubic-bezier(.16, 1, .3, 1) both;
}
.stamp::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid currentColor;
  pointer-events: none;
}
.stamp[data-tone="ink-fill"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.stamp[data-tone="accent-fill"] { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
.stamp[data-tone="accent-outline"] { color: var(--accent-deep); border-color: var(--accent-deep); }
.stamp[data-tone="ink-outline"] { color: var(--ink); border-color: var(--ink); }
@keyframes stamp-in {
  from { transform: rotate(-9deg) scale(1.45); }
  to { transform: rotate(-4deg) scale(1); }
}
.result-kicker { font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--accent-deep); }
#verdict-title { font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.28; margin-top: 10px; text-wrap: balance; word-break: auto-phrase; }
.result-body {
  margin-top: 16px;
  max-width: 40em;
  font-size: 14px;
  line-height: 1.9;
  color: var(--ink-2);
}
.score-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: clamp(36px, 5vw, 54px);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}
.score { padding: 26px 34px 24px 0; min-width: 0; }
.score--b { border-left: 1px solid var(--line); padding-left: 34px; }
.score-head { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }
.score-label { font-size: 12.5px; font-weight: 700; letter-spacing: .02em; }
.score-value { display: inline-flex; align-items: baseline; white-space: nowrap; }
.score-num {
  font-family: var(--mono);
  font-size: clamp(38px, 4.6vw, 56px);
  line-height: 1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.score-max { font-family: var(--mono); font-size: 12px; color: var(--ink-3); margin-left: 5px; }
.meter-wrap { margin-top: 18px; }
.meter { position: relative; height: 8px; background: rgba(14, 26, 33, .1); }
.meter-fill {
  position: absolute;
  inset: 0;
  background: var(--accent-deep);
  transform: scaleX(var(--v, 0));
  transform-origin: left center;
  transition: transform .85s cubic-bezier(.16, 1, .3, 1);
}
.meter--b .meter-fill { background: var(--ink); }
.meter-tick {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 1px;
  background: var(--line-strong);
  z-index: 1;
}
.meter-labels { position: relative; height: 18px; margin-top: 5px; }
.meter-labels .ml {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1;
}
.meter-labels .ml:first-child { transform: none; }
.meter-labels .ml:last-child { transform: translateX(-100%); }
.score-note { margin-top: 10px; font-size: 12px; line-height: 1.7; color: var(--ink-3); }

.report { margin-top: clamp(44px, 6vw, 68px); border-top: 1px solid var(--line-strong); }
.report-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: clamp(22px, 4vw, 52px);
  padding-block: clamp(28px, 4vw, 42px);
  border-bottom: 1px solid var(--line);
}
.report-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .07em;
  color: var(--ink-3);
  line-height: 1.6;
  padding-top: 2px;
}
.report-body { min-width: 0; }
.reasons { list-style: none; }
.reasons li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  line-height: 1.9;
  margin-bottom: 14px;
}
.reasons li:last-child { margin-bottom: 0; }
.reasons li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 7px;
  height: 7px;
  background: var(--accent-deep);
}

.breakdown { border-top: 1px dashed var(--line-strong); padding-top: 10px; }
.breakdown + .breakdown { margin-top: 24px; }
.breakdown summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 13.5px;
  padding: 5px 0;
}
.breakdown summary::-webkit-details-marker { display: none; }
.breakdown summary::after { content: "+"; font-family: var(--mono); color: var(--ink-3); margin-left: 4px; }
.breakdown[open] summary::after { content: "−"; }
.breakdown summary .mono { font-size: 12px; color: var(--ink-2); font-weight: 400; white-space: nowrap; }
.score-table { width: 100%; margin-top: 10px; font-size: 12.5px; }
.score-table th {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  font-weight: 500;
  color: var(--ink-3);
  text-align: left;
  padding: 7px 10px;
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}
.score-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  line-height: 1.65;
  vertical-align: top;
}
.score-table th:last-child,
.score-table td:last-child { text-align: right; font-family: var(--mono); white-space: nowrap; font-variant-numeric: tabular-nums; }
.score-table .q-cell {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  white-space: nowrap;
  padding-top: 10px;
}
.score-table tfoot td { font-weight: 700; background: rgba(14, 26, 33, .035); }
.score-table tfoot tr:last-child td { border-bottom: 0; }
.score-table--aux td:first-child { font-family: var(--mono); font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.table-note { margin-top: 8px; font-size: 12px; color: var(--ink-3); line-height: 1.7; }
.aux-block { margin-top: 28px; padding-top: 16px; border-top: 1px dashed var(--line-strong); }
.aux-title { font-size: 12px; font-weight: 700; color: var(--ink-2); letter-spacing: .03em; }

.cost-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}
.cost-cell { padding: 16px 16px 14px 0; }
.cost-cell + .cost-cell { padding-left: 16px; border-left: 1px solid var(--line); }
.cost-label { display: block; font-size: 12px; letter-spacing: .08em; color: var(--ink-3); font-family: var(--mono); }
.cost-value { display: block; margin-top: 6px; font-family: var(--mono); font-size: clamp(18px, 2.2vw, 26px); line-height: 1.2; font-variant-numeric: tabular-nums; }
.cost-plan { margin-top: 14px; font-size: 12.5px; color: var(--ink-2); }
.cost-plan strong { font-weight: 700; color: var(--ink); }
.cost-note { margin-top: 12px; font-size: 12.5px; line-height: 1.8; color: var(--ink-2); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-strong);
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
}
.chip::before { content: ""; width: 6px; height: 6px; background: var(--ink-3); flex: none; }
.chip[data-state="ok"]::before { background: var(--accent-deep); }
.chip[data-state="alert"] { border-color: var(--danger); color: var(--danger); }
.chip[data-state="alert"]::before { background: var(--danger); }
.condition-line { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.condition-text { font-size: 13.5px; color: var(--ink-2); line-height: 1.8; }
.note-block {
  margin-top: 16px;
  padding: 13px 16px 13px 17px;
  border-left: 3px solid var(--ink);
  background: linear-gradient(90deg, rgba(14, 26, 33, .045), transparent 70%);
}
.note-block.is-alert { border-left-color: var(--danger); background: linear-gradient(90deg, rgba(159, 43, 34, .06), transparent 70%); }
.note-block.is-accent { border-left-color: var(--accent-deep); background: linear-gradient(90deg, rgba(29, 155, 240, .08), transparent 70%); }
.note-title { font-size: 12px; font-weight: 700; margin-bottom: 3px; }
.note-block p { font-size: 12.5px; line-height: 1.8; color: var(--ink-2); }

.share-grid {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 44px);
  align-items: start;
}
.share-preview { min-width: 0; border: 1px solid var(--line-strong); background: var(--panel); padding: 10px; }
.share-preview canvas { width: 100%; height: auto; background: var(--paper); }
.share-preview figcaption { margin-top: 8px; font-size: 12px; letter-spacing: .08em; color: var(--ink-3); }
.share-actions p { font-size: 13px; line-height: 1.8; color: var(--ink-2); margin-bottom: 16px; }
.share-actions .btn { width: 100%; margin-bottom: 10px; }
.share-actions .text-btn { margin-top: 4px; }
.share-actions .fineprint { margin-top: 14px; }

.disclaimers {
  padding-left: 1.5em;
  font-size: 12px;
  line-height: 1.9;
  color: var(--ink-2);
}
.disclaimers li { margin-bottom: 5px; }
.result-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 30px; }
.result-actions .btn { min-height: 46px; font-size: 14px; }

/* ---------- dialog ---------- */
dialog {
  border: 1px solid var(--line-strong);
  background: var(--panel);
  color: var(--ink);
  padding: 0;
  width: min(880px, calc(100% - 32px));
  max-height: 88vh;
  border-radius: 0;
  margin: auto;
  box-shadow: 0 30px 80px rgba(14, 26, 33, .22);
}
dialog[open] { display: flex; flex-direction: column; }
dialog::backdrop { background: rgba(14, 26, 33, .48); }
body:has(.rules-dialog[open]) { overflow: hidden; }
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 22px 26px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  flex: none;
}
.dialog-head h2 { font-family: var(--display); font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.35; margin-top: 6px; }
.dialog-body { overflow: auto; padding: 24px 26px 40px; }
.dialog-lead { font-size: 13.5px; line-height: 1.9; color: var(--ink-2); max-width: 46em; }
.dialog-section { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }
.dialog-section h3 { font-size: 14px; font-weight: 700; letter-spacing: .03em; }
.rule-defs { display: grid; gap: 18px; margin-top: 14px; }
.rule-def-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.rule-def-head .mono { font-size: 12px; color: var(--accent-deep); border: 1px solid var(--accent-deep); padding: 1px 6px; }
.rule-def-head strong { font-size: 13.5px; }
.rule-def-head .mono:last-child { margin-left: auto; font-size: 12px; color: var(--ink-3); border: 0; padding: 0; }
.rule-defs p { margin-top: 6px; font-size: 12.5px; line-height: 1.9; color: var(--ink-2); }
.rules-verdict { width: 100%; margin-top: 14px; font-size: 12px; }
.rules-verdict th {
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em; font-weight: 500; color: var(--ink-3);
  text-align: left; padding: 7px 9px; border-bottom: 1px solid var(--line-strong); white-space: nowrap;
}
.rules-verdict td { padding: 9px; border-bottom: 1px solid var(--line); line-height: 1.7; vertical-align: top; }
.rules-verdict td:first-child { font-weight: 700; white-space: nowrap; }
.rules-verdict td:nth-child(2) { font-family: var(--mono); font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.dialog-section > p { margin-top: 10px; font-size: 12.5px; line-height: 1.9; color: var(--ink-2); }
.rule-q { border-top: 1px solid var(--line); padding-block: 16px; }
.rule-q:first-child { border-top: 0; }
.rule-q h4 { font-size: 13px; font-weight: 700; line-height: 1.7; margin: 0 0 7px; }
.rule-q .qno { font-family: var(--mono); font-size: 12px; color: var(--accent-deep); margin-right: 8px; }
.rule-opts { list-style: none; font-size: 12px; color: var(--ink-2); }
.rule-opts li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 0;
  border-bottom: 1px dashed var(--line);
}
.rule-opts li:last-child { border-bottom: 0; }
.rule-opts .pts { font-family: var(--mono); color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.rule-opts .pts.is-none { color: var(--ink-3); }

/* ---------- toast / noscript ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 60;
  transform: translate(-50%, 12px);
  background: var(--ink);
  color: var(--paper);
  padding: 10px 18px;
  font-size: 12.5px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  max-width: calc(100% - 32px);
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }
.noscript { padding: 20px; background: var(--accent-soft); font-size: 14px; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; gap: 40px; }
  .hero-title { max-width: 14em; }
  .specimen { max-width: 560px; }
  .result-hero { grid-template-columns: 1fr; gap: 28px; align-items: start; }
  .stamp-wrap { padding-block: 8px; }
}

@media (max-width: 860px) {
  .report-row { grid-template-columns: 1fr; gap: 14px; }
  .report-label { padding-top: 0; }
  .report-label::after { content: ""; display: block; width: 28px; height: 1px; background: var(--line-strong); margin-top: 8px; }
  .score-strip { grid-template-columns: 1fr; }
  .score { padding-right: 0; }
  .score--b { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .share-grid { grid-template-columns: 1fr; }
  .share-preview { max-width: 420px; }
  .verdict-row { grid-template-columns: 190px 150px minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .brand-sub { display: none; }
  .topbar-meta { display: none; }
  .quiz-grid { grid-template-columns: 1fr; gap: 18px; margin-top: 30px; }
  .quiz-rail { display: flex; align-items: baseline; gap: 14px; padding-top: 0; }
  .quiz-num { font-size: 36px; }
  .quiz-tag { margin-top: 0; }
  .option { padding: 14px; }
  .option-text { font-size: 14.5px; }
  .do-grid { grid-template-columns: 1fr; }
  .do-item { padding-right: 0; }
  .do-item:nth-child(2n) { padding-left: 0; border-left: 0; }
  .verdict-row { grid-template-columns: 1fr; gap: 12px; padding-block: 20px; }
  .verdict-row p { max-width: 40em; }
  .footer-inner { flex-direction: column; gap: 8px; }
  .cta-badge { right: -140px; opacity: .1; }
}

@media (max-width: 560px) {
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .btn { width: 100%; }
  .hero { padding-top: 34px; }
  .hero-title { font-size: clamp(2.5rem, 12vw, 3.4rem); }
  .score { padding-block: 22px; }
  .cost-grid { grid-template-columns: 1fr; }
  .cost-cell { padding: 12px 0; }
  .cost-cell + .cost-cell { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .cost-cell { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
  .cost-value { margin-top: 0; }
  .result-actions { flex-direction: column; align-items: stretch; }
  .result-actions .btn { width: 100%; }
  .result-actions .text-btn { align-self: center; }
  .score-table { font-size: 12px; }
  .score-table th, .score-table td { padding-inline: 6px; }
  .dialog-head { padding: 18px 18px 14px; }
  .dialog-body { padding: 20px 18px 32px; }
  .rules-verdict, .rules-verdict tbody, .rules-verdict tr, .rules-verdict td { display: block; width: 100%; }
  .rules-verdict thead { display: none; }
  .rules-verdict tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .rules-verdict td { border: 0; padding: 0; white-space: normal; }
  .rules-verdict td:first-child { font-size: 13.5px; }
  .rules-verdict td:nth-child(2) { margin-top: 3px; }
  .rules-verdict td:nth-child(3) { margin-top: 5px; font-size: 12.5px; color: var(--ink-2); }
  .quiz-actions { flex-direction: column; align-items: flex-start; gap: 10px; }
  .quiz-hint { order: -1; }
  .faq-item summary { gap: 12px; padding-right: 36px; font-size: 14px; }
  .faq-item summary::after { right: 2px; }
  .faq-a { padding: 0 0 20px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media print {
  body { background: #fff; }
  .topbar, .footer, .cta-band, .result-actions, .share-grid, .skip-link, .toast { display: none !important; }
  .view[hidden] { display: none !important; }
  .result { max-width: none; padding: 0; }
  .report-row { break-inside: avoid; }
  .report-row { grid-template-columns: 150px 1fr; }
  .stamp { animation: none; }
}
