:root {
  color-scheme: light;
  --navy: #10233f;
  --navy-2: #183659;
  --ink: #17253a;
  --muted: #5e6d7e;
  --line: #d7e0e8;
  --surface: #ffffff;
  --canvas: #f1f5f8;
  --mint: #5be0bf;
  --mint-dark: #08745f;
  --amber: #f2b94b;
  --amber-dark: #7a4e00;
  --red: #ee6b70;
  --red-dark: #9d232b;
  --shadow: 0 18px 50px rgba(16, 35, 63, .10);
  font-family: "Segoe UI", "Yu Gothic UI", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; overflow-x: clip; background: var(--canvas); color: var(--ink); font-size: 1rem; line-height: 1.7; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.shell { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; left: 16px; top: 12px; padding: 10px 14px; background: white; color: var(--navy); border-radius: 6px; transform: translateY(-160%); }
.skip-link:focus { transform: none; }

.site-header { background: var(--navy); color: #fff; border-bottom: 1px solid rgba(255,255,255,.12); }
.header-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 700; letter-spacing: .02em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--mint); color: var(--mint); border-radius: 7px; font-size: .76rem; letter-spacing: .04em; }
.privacy-badge { color: #c9d7e7; font-size: .85rem; }
.privacy-badge::before { content: "●"; color: var(--mint); margin-right: 8px; font-size: .72rem; }

.intro { position: relative; left: 50%; width: 100vw; overflow: hidden; margin-left: -50vw; padding: 70px max(20px, calc((100vw - 1120px) / 2)) 120px; color: white; background: var(--navy); }
.intro::after { content: ""; position: absolute; width: 460px; height: 460px; right: max(-170px, calc((100vw - 1400px) / 2)); top: -160px; border: 1px solid rgba(91,224,191,.24); border-radius: 50%; box-shadow: 0 0 0 54px rgba(91,224,191,.035), 0 0 0 108px rgba(91,224,191,.025); }
.eyebrow, .section-kicker { margin: 0 0 10px; color: var(--mint-dark); font-weight: 800; font-size: .75rem; letter-spacing: .16em; }
.intro .eyebrow { color: var(--mint); }
h1 { position: relative; z-index: 1; max-width: 760px; margin: 0; font-size: clamp(2.35rem, 6vw, 4.9rem); line-height: 1.08; letter-spacing: -.055em; }
h1 span { color: var(--mint); }
.lead { position: relative; z-index: 1; max-width: 680px; margin: 26px 0 22px; color: #d6e2ef; font-size: 1.08rem; }
.trust-row { display: flex; flex-wrap: wrap; gap: 8px; }
.trust-row span { padding: 6px 12px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; color: #dbe7f2; font-size: .84rem; }

.app-layout { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; margin-top: -70px; }
.checker-card, .side-panel, .result-panel, .notice { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.checker-card { padding: clamp(24px, 5vw, 44px); }
.checker-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
h2 { margin: 0; color: var(--navy); font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.25; }
.progress-copy { color: var(--muted); font-size: .9rem; white-space: nowrap; }
.progress-copy strong { color: var(--navy); font-size: 1.4rem; }
.progress-track { height: 6px; margin-top: 24px; overflow: hidden; background: #e7edf2; border-radius: 999px; }
.progress-track span { display: block; width: 0; height: 100%; background: var(--mint-dark); transition: width .25s ease; }
.instruction { margin: 18px 0 28px; color: var(--muted); }

.question { margin: 0; padding: 26px 0; border: 0; border-top: 1px solid var(--line); }
.question:first-child { border-top: 0; padding-top: 0; }
.question legend { display: flex; width: 100%; gap: 14px; padding: 0; color: var(--navy); font-weight: 700; line-height: 1.55; }
.question-number { flex: 0 0 auto; color: var(--mint-dark); font-size: .77rem; letter-spacing: .08em; }
.question-help { margin: 7px 0 15px 43px; color: var(--muted); font-size: .9rem; }
.option-group { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-left: 43px; }
.option { position: relative; }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option label { display: block; padding: 10px 8px; border: 1px solid var(--line); border-radius: 6px; color: #49596b; text-align: center; font-weight: 700; cursor: pointer; transition: border-color .15s, background .15s, color .15s, transform .15s; }
.option label:hover { border-color: #8ca1b7; transform: translateY(-1px); }
.option input:focus-visible + label { outline: 3px solid rgba(30,113,228,.35); outline-offset: 2px; }
.option input:checked + label { background: var(--navy); border-color: var(--navy); color: white; }
.form-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 16px; padding-top: 28px; border-top: 1px solid var(--line); }
.primary-button, .secondary-button, .cta-button { min-height: 48px; padding: 12px 20px; border: 0; border-radius: 6px; font-weight: 800; cursor: pointer; text-decoration: none; }
.primary-button { flex: 1; min-width: 220px; background: var(--mint); color: #082d27; box-shadow: 0 8px 20px rgba(8,116,95,.18); }
.primary-button:hover, .cta-button:hover { filter: brightness(.96); }
.text-button { min-height: 44px; padding: 8px 12px; border: 0; background: transparent; color: var(--muted); text-decoration: underline; cursor: pointer; }
.form-error { margin: 14px 0 0; padding: 12px 14px; border-left: 4px solid var(--red-dark); background: #fff0f1; color: var(--red-dark); font-weight: 700; }

.side-panel { padding: 28px; }
.side-panel h2 { font-size: 1.28rem; }
.steps { margin: 24px 0 0; padding: 0; list-style: none; }
.steps li { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); font-weight: 700; font-size: .92rem; }
.steps li span { color: var(--mint-dark); font-size: .73rem; letter-spacing: .08em; }
.privacy-note { display: flex; gap: 12px; margin: 28px -28px 0; padding: 22px 28px; background: #eaf8f4; color: #155749; }
.privacy-note svg { flex: 0 0 auto; width: 24px; height: 24px; fill: currentColor; }
.privacy-note strong { display: block; margin-bottom: 3px; }
.privacy-note p, .side-disclaimer { margin: 0; font-size: .82rem; line-height: 1.6; }
.side-disclaimer { margin-top: 22px; color: var(--muted); }

.result-panel { margin-top: 32px; overflow: hidden; }
.result-status { padding: clamp(28px, 5vw, 48px); border-left: 8px solid var(--mint-dark); background: #eaf8f4; }
.result-status.conditional { border-color: var(--amber); background: #fff7e5; }
.result-status.nogo { border-color: var(--red); background: #fff0f1; }
.result-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.result-label { margin: 0 0 2px; color: var(--muted); font-size: .86rem; }
.result-heading h2 { font-size: clamp(2.4rem, 7vw, 4.6rem); letter-spacing: -.04em; }
.result-score { color: var(--navy); font-size: 2.4rem; font-weight: 800; line-height: 1; text-align: right; }
.result-score small { display: block; margin-top: 8px; color: var(--muted); font-size: .75rem; font-weight: 700; }
.result-summary { max-width: 720px; margin: 18px 0 0; color: #36475a; font-size: 1.02rem; }
.result-details { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; padding: clamp(28px, 5vw, 48px); }
.result-details h3, .product-cta h3 { margin: 0 0 16px; color: var(--navy); font-size: 1.16rem; }
.result-list { margin: 0; padding: 0; list-style: none; }
.result-list li { position: relative; margin-top: 10px; padding-left: 24px; color: #445366; }
.result-list li::before { content: ""; position: absolute; left: 0; top: .68em; width: 9px; height: 9px; border: 2px solid var(--mint-dark); border-radius: 50%; }
.all-clear { padding: 14px; background: #eaf8f4; color: #155749; }
.result-actions { padding: 0 clamp(28px, 5vw, 48px) 34px; }
.secondary-button { border: 1px solid var(--navy); background: white; color: var(--navy); }
.secondary-button:hover { background: #edf3f8; }
.product-cta { display: flex; align-items: center; justify-content: space-between; gap: 36px; padding: clamp(28px, 5vw, 48px); background: var(--navy); color: white; }
.product-cta h3 { color: white; font-size: clamp(1.3rem, 3vw, 1.8rem); }
.product-cta p { max-width: 660px; margin: 8px 0 0; color: #cbd9e8; }
.product-cta .section-kicker { color: var(--mint); }
.product-price strong { color: var(--mint); font-size: 1.24rem; }
.cta-button { flex: 0 0 auto; display: inline-flex; gap: 8px; align-items: center; justify-content: center; background: var(--mint); color: #082d27; }

.notice { margin: 32px 0 70px; padding: 28px 32px; box-shadow: none; }
.notice h2 { font-size: 1.1rem; }
.notice p { margin: 10px 0 0; color: var(--muted); font-size: .9rem; }
footer { background: #0a192e; color: #aebed0; }
.footer-inner { min-height: 92px; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: .82rem; }

[hidden] { display: none !important; }
button:focus-visible, a:focus-visible { outline: 3px solid #1e71e4; outline-offset: 3px; }

@media (max-width: 820px) {
  .shell { width: min(100% - 28px, 720px); }
  .intro { padding-inline: 20px; padding-top: 54px; }
  .app-layout { grid-template-columns: 1fr; }
  .side-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
  .privacy-note { margin: 0; }
  .side-disclaimer { grid-column: 1 / -1; margin: 0; }
  .result-details { grid-template-columns: 1fr; }
  .product-cta { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 540px) {
  .privacy-badge { font-size: 0; }
  .privacy-badge::before { font-size: .8rem; margin: 0; }
  .intro { padding-bottom: 96px; }
  .lead { font-size: 1rem; }
  .app-layout { margin-top: -54px; }
  .checker-card { padding-inline: 20px; }
  .checker-head { align-items: flex-start; }
  .question legend { gap: 8px; }
  .question-help, .option-group { margin-left: 0; }
  .option label { padding-block: 12px; font-size: .88rem; }
  .side-panel { display: block; }
  .privacy-note { margin: 28px -28px 0; }
  .side-disclaimer { margin-top: 22px; }
  .result-heading { align-items: flex-start; flex-direction: column; }
  .result-score { text-align: left; }
  .product-cta .cta-button { width: 100%; }
  .footer-inner { align-items: flex-start; justify-content: center; flex-direction: column; gap: 3px; padding-block: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

