:root {
  --ink: #112c29;
  --muted: #59706c;
  --green-950: #052f2b;
  --green-900: #073b35;
  --green-700: #0a6f5f;
  --green-500: #16a085;
  --lime: #c9f36b;
  --cream: #f6f3e9;
  --line: #d8e4df;
  --white: #fff;
  --shadow: 0 24px 70px rgba(5, 47, 43, 0.14);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, "Noto Sans JP", sans-serif;
  color: var(--ink);
  background: #fbfcfa;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; line-height: 1.75; }
a { color: inherit; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-header { position: sticky; top: 0; z-index: 20; height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 0 max(24px, calc((100vw - 1160px) / 2)); background: rgba(251,252,250,.9); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(17,44,41,.08); }
.home-header { justify-content: flex-end; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; text-decoration: none; letter-spacing: .02em; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px 12px 4px 12px; background: var(--green-900); color: var(--lime); font-size: 18px; }
.header-link { color: var(--green-900); font-weight: 800; text-underline-offset: 4px; text-decoration-thickness: 2px; }

.hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); gap: 56px; align-items: center; min-height: 620px; max-width: 1160px; margin: 0 auto; padding: 90px 24px 110px; }
.hero-copy { max-width: 600px; }
.hero-banner { position: relative; width: 100%; max-width: 520px; aspect-ratio: 1100 / 650; margin: 0; overflow: hidden; justify-self: end; border-radius: 18px; background: #fff; box-shadow: 0 20px 52px rgba(5,47,43,.14); }
.hero-banner img { position: absolute; top: -8.3077%; left: -8.1818%; display: block; width: 116.3636%; height: auto; max-width: none; }
.eyebrow { margin: 0 0 18px; color: var(--green-700); font-size: 13px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.hero h1 { margin: 0; max-width: 720px; color: var(--green-950); font-size: clamp(44px, 5vw, 64px); line-height: 1.15; letter-spacing: -.05em; }
.hero h1 span { position: relative; z-index: 0; }
.hero h1 span::after { content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: 4px; height: 14px; background: var(--lime); transform: rotate(-1deg); }
.hero-lead { max-width: 620px; margin: 28px 0 34px; color: var(--muted); font-size: 18px; }
.primary-button, .official-link { display: inline-flex; justify-content: center; align-items: center; gap: 22px; min-height: 62px; padding: 0 28px; border-radius: 10px; background: var(--green-900); color: #fff; box-shadow: 0 14px 30px rgba(7,59,53,.2); font-weight: 800; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.primary-button:hover, .official-link:hover { transform: translateY(-2px); box-shadow: 0 18px 34px rgba(7,59,53,.28); }
.trust-list { display: flex; flex-wrap: wrap; gap: 14px 20px; margin: 24px 0 0; padding: 0; color: var(--muted); font-size: 13px; list-style: none; }
.trust-list span { color: var(--green-700); font-weight: 900; }

.signal-section, .steps-section { max-width: 1160px; margin: 0 auto; padding: 110px 24px; }
.section-heading { text-align: center; }
.section-heading h2 { margin: 0; color: var(--green-950); font-size: clamp(30px, 4vw, 46px); line-height: 1.35; letter-spacing: -.03em; }
.signal-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 56px; }
.signal-grid article { padding: 34px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.signal-icon { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 28px; border-radius: 14px; background: var(--cream); color: var(--green-700); font-size: 22px; font-weight: 900; }
.signal-grid h3 { margin: 0 0 10px; font-size: 19px; }
.signal-grid p { margin: 0; color: var(--muted); font-size: 14px; }
.gentle-note { max-width: 700px; margin: 40px auto 0; color: var(--muted); text-align: center; }

.quiz-section { padding: 110px 24px 130px; background: var(--green-950); color: #fff; }
.quiz-intro { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.eyebrow.light { color: var(--lime); }
.quiz-intro h2 { margin: 0 0 16px; font-size: clamp(32px, 4vw, 48px); line-height: 1.3; letter-spacing: -.03em; }
.quiz-intro > p:last-child { color: #b9d4cf; }
.quiz-shell { max-width: 760px; margin: auto; padding: 42px; border-radius: 24px; background: #fff; box-shadow: 0 34px 90px rgba(0,0,0,.25); color: var(--ink); }
.progress-label { display: flex; justify-content: space-between; margin-bottom: 10px; color: var(--green-700); font-size: 12px; font-weight: 900; letter-spacing: .08em; }
.progress-track { height: 7px; overflow: hidden; border-radius: 999px; background: #e9efec; }
.progress-track span { display: block; width: 33.333%; height: 100%; border-radius: inherit; background: var(--green-500); transition: width .3s ease; }
.quiz-step { display: none; margin: 36px 0 0; padding: 0; border: 0; }
.quiz-step.is-active { display: block; animation: enter .3s ease; }
@keyframes enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.quiz-step legend { width: 100%; margin-bottom: 24px; padding: 0; font-size: 22px; font-weight: 800; }
.quiz-step legend span { display: inline-grid; place-items: center; width: 46px; height: 36px; margin-right: 12px; border-radius: 8px 8px 2px 8px; background: var(--green-900); color: var(--lime); font-size: 14px; }
.choice { position: relative; display: flex; align-items: center; min-height: 66px; margin: 10px 0; padding: 13px 18px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.choice:hover { border-color: #80b7ab; transform: translateX(2px); }
.choice:has(input:checked) { border-color: var(--green-700); background: #edf9f5; }
.choice input { width: 20px; height: 20px; margin: 0 14px 0 0; accent-color: var(--green-700); }
.choice span { font-weight: 700; line-height: 1.55; }
.quiz-actions { display: flex; gap: 12px; margin-top: 30px; }
.next-button, .back-button, .reset-button { min-height: 58px; border: 0; border-radius: 10px; cursor: pointer; font-weight: 800; }
.next-button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 20px; background: var(--green-900); color: #fff; }
.back-button { padding: 0 24px; background: #eef2f0; color: var(--muted); }
.form-error { min-height: 26px; margin: 10px 0 0; color: #b32727; font-size: 13px; text-align: center; }

.result { text-align: center; animation: enter .4s ease; }
.result-check { display: grid; place-items: center; width: 64px; height: 64px; margin: 4px auto 20px; border-radius: 50%; background: var(--lime); color: var(--green-950); font-size: 28px; font-weight: 900; }
.result h3 { margin: 0 0 12px; font-size: 32px; }
.result > p { color: var(--muted); }
.next-steps { margin: 28px 0; padding: 24px; border-radius: 14px; background: var(--cream); text-align: left; }
.next-steps h4 { margin: 0 0 12px; }
.next-steps ul { margin: 0; padding-left: 22px; }
.official-link { width: 100%; }
.result-note { font-size: 12px; line-height: 1.7; }
.reset-button { padding: 0 18px; background: transparent; color: var(--green-700); text-decoration: underline; text-underline-offset: 4px; }

.step-list { max-width: 820px; margin: 60px auto 0; padding: 0; list-style: none; }
.step-list li { position: relative; display: grid; grid-template-columns: 80px 1fr; gap: 28px; padding-bottom: 42px; }
.step-list li:not(:last-child)::before { content: ""; position: absolute; left: 39px; top: 66px; bottom: 8px; width: 1px; background: var(--line); }
.step-list > li > span { display: grid; place-items: center; width: 80px; height: 58px; border-radius: 16px; background: var(--green-900); color: var(--lime); font-weight: 900; letter-spacing: .06em; }
.step-list h3 { margin: 0 0 8px; font-size: 22px; }
.step-list p { margin: 0; color: var(--muted); }

.important-section { display: grid; grid-template-columns: auto 1fr; gap: 20px; max-width: 900px; margin: 0 auto 100px; padding: 28px; border: 1px solid #e5dfc7; border-radius: 16px; background: var(--cream); }
.important-icon { display: grid; place-items: center; width: 36px; height: 36px; border: 2px solid var(--green-700); border-radius: 50%; color: var(--green-700); font-weight: 900; }
.important-section h2 { margin: 2px 0 6px; font-size: 17px; }
.important-section p { margin: 0; color: var(--muted); font-size: 13px; }

footer { padding: 60px 24px; background: var(--green-950); color: #fff; }
.footer-inner { max-width: 1160px; margin: auto; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.footer-pr { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; width: fit-content; margin-bottom: 12px; padding: 9px 14px; border: 1px solid rgba(201,243,107,.28); border-radius: 999px; background: rgba(255,255,255,.06); color: #e8f0ee; font-size: 13px; letter-spacing: .02em; }
.footer-pr span { color: var(--lime); font-size: 11px; font-weight: 900; letter-spacing: .08em; }
.footer-pr strong { font-weight: 700; }
.footer-brand .brand-mark { background: #fff; color: var(--green-900); }
footer nav { display: flex; gap: 24px; }
footer nav a { color: #c9d8d5; font-size: 13px; }
footer p { grid-column: 1 / -1; margin: 20px 0 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); color: #8eaaa5; font-size: 12px; }

.legal-page { min-height: calc(100vh - 72px); padding: 80px 24px 120px; background: #fff; }
.legal-inner { max-width: 780px; margin: auto; }
.legal-inner h1 { margin: 0 0 40px; font-size: clamp(32px, 5vw, 48px); line-height: 1.3; }
.legal-inner h2 { margin: 42px 0 12px; font-size: 20px; }
.legal-inner p, .legal-inner li, .legal-inner dd { color: var(--muted); }
.legal-inner dt { margin-top: 20px; font-weight: 800; }
.back-home { display: inline-block; margin-top: 50px; color: var(--green-700); font-weight: 800; text-underline-offset: 4px; }

@media (max-width: 820px) {
  .site-header { height: 64px; padding: 0 18px; }
  .brand { font-size: 14px; }
  .brand-mark { width: 34px; height: 34px; font-size: 16px; }
  .header-link { font-size: 12px; }
  .hero { grid-template-columns: 1fr; gap: 0; min-height: 0; padding: 60px 20px 80px; }
  .hero-copy { max-width: 680px; }
  .hero-banner { width: min(100%, 350px); margin: 44px auto 0; justify-self: center; }
  .hero-banner { border-radius: 14px; box-shadow: 0 14px 36px rgba(5,47,43,.14); }
  .signal-section, .steps-section { padding: 80px 20px; }
  .signal-grid { grid-template-columns: 1fr; margin-top: 38px; }
  .quiz-section { padding: 80px 14px 90px; }
  .quiz-shell { padding: 28px 20px; border-radius: 18px; }
  .choice { min-height: 62px; padding: 12px 14px; }
  .choice span { font-size: 14px; }
  .footer-inner { grid-template-columns: 1fr; }
  footer nav { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 42px; }
  .hero-banner { width: min(100%, 350px); }
  .hero-lead { font-size: 16px; }
  .primary-button { width: 100%; }
  .trust-list { display: grid; gap: 7px; }
  .quiz-step legend { font-size: 18px; }
  .quiz-actions { flex-direction: column-reverse; }
  .back-button { width: 100%; }
  .step-list li { grid-template-columns: 58px 1fr; gap: 18px; }
  .step-list > li > span { width: 58px; height: 48px; }
  .step-list li:not(:last-child)::before { left: 28px; top: 54px; }
  .important-section { margin: 0 14px 70px; }
}

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