:root {
  --ink: #243f35;
  --paper: #f5f0e6;
  --coral: #e76f51;
  --yellow: #f2c84b;
  --mint: #9fc8b7;
  --line: rgba(36, 63, 53, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; color: var(--ink); background: var(--paper);
  font-family: "DM Sans", "Noto Sans JP", sans-serif; overflow-x: hidden;
}
button { font: inherit; }
.grain { position: fixed; inset: 0; opacity: .22; pointer-events: none; z-index: 10; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E"); }
.site-header { height: 92px; display: flex; align-items: center; justify-content: space-between; padding: 0 5vw; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; font-weight: 700; letter-spacing: .03em; }
.brand-mark { width: 35px; height: 35px; border: 1.5px solid var(--ink); border-radius: 50%; display: grid; place-content: center; gap: 2px; }
.brand-mark i { display: block; height: 1.5px; background: var(--ink); border-radius: 2px; }
.brand-mark i:nth-child(1) { width: 9px; margin-left: 5px; }.brand-mark i:nth-child(2) { width: 15px; margin-left: 2px; }.brand-mark i:nth-child(3) { width: 19px; }
.header-note, .eyebrow, .question-category { font-size: 11px; font-weight: 700; letter-spacing: .18em; }
main { min-height: calc(100vh - 156px); }
.screen { display: none; min-height: calc(100vh - 156px); animation: reveal .5s ease both; }
.screen.active { display: flex; }
@keyframes reveal { from { opacity: 0; transform: translateY(8px); } }

.start-screen { position: relative; align-items: center; padding: 6vh 8vw 9vh; }
.hero-copy { width: 54%; position: relative; z-index: 2; }
.eyebrow { display: flex; gap: 22px; margin: 0 0 25px; color: var(--coral); }
.eyebrow span + span::before { content: "•"; margin-right: 22px; }
h1 { font-family: "Noto Sans JP", sans-serif; font-size: clamp(46px, 5.6vw, 84px); line-height: 1.18; letter-spacing: -.055em; margin: 0; font-weight: 600; }
h1 em { color: var(--coral); font-style: normal; position: relative; }
h1 em::after { content: ""; position: absolute; left: -3%; right: -3%; bottom: -7px; height: 8px; border-top: 2px solid var(--coral); border-radius: 50%; transform: rotate(-2deg); }
.lead { font-family: "Noto Sans JP", sans-serif; line-height: 2; font-size: 15px; margin: 30px 0 34px; color: rgba(36,63,53,.72); }
.age-input-wrap { width: 218px; margin: -12px 0 20px; }
.age-input-wrap label { display: block; margin: 0 0 7px 3px; font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.age-input-wrap label span { margin-left: 6px; color: var(--coral); font-size: 8px; letter-spacing: .14em; }
.age-input-row { height: 48px; display: flex; align-items: center; border-bottom: 1px solid var(--ink); }
.age-input-row input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font: 600 22px "DM Sans", sans-serif; }
.age-input-row input::placeholder { color: rgba(36,63,53,.25); font-size: 17px; }
.age-input-row span { font-size: 12px; font-weight: 600; }
.age-error { min-height: 14px; margin: 4px 0 0 3px; color: var(--coral); font-size: 9px; }
.primary-button { min-width: 218px; border: 0; border-radius: 100px; color: #fff; background: var(--ink); padding: 7px 8px 7px 27px; height: 62px; display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; cursor: pointer; font-weight: 600; transition: transform .25s, box-shadow .25s; }
.primary-button:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(36,63,53,.17); }
.arrow { width: 47px; height: 47px; border-radius: 50%; color: var(--ink); background: var(--yellow); display: grid; place-items: center; font-size: 20px; }
.privacy-note { margin: 14px 0 0 29px; font-size: 10px; opacity: .48; }
.hero-art { position: absolute; right: 4vw; top: 50%; width: min(42vw, 560px); aspect-ratio: 1; transform: translateY(-50%); }
.orb { border-radius: 50%; position: absolute; display: grid; place-items: center; }
.orb-large { width: 58%; height: 58%; left: 23%; top: 20%; background: var(--coral); box-shadow: inset -20px -18px 0 rgba(155,55,34,.1), 0 30px 60px rgba(118,62,43,.13); z-index: 2; }
.orb-large::before, .orb-large::after { content: ""; position: absolute; width: 7px; height: 7px; background: var(--ink); border-radius: 50%; top: 36%; }
.orb-large::before { left: 37%; }.orb-large::after { right: 37%; }
.orb-large span { color: var(--paper); font-size: clamp(90px, 12vw, 165px); font-weight: 600; line-height: 1; transform: translateY(-3%); opacity: .96; }
.orbit { position: absolute; inset: 7%; border: 1px solid rgba(36,63,53,.27); border-radius: 50%; transform: rotate(-15deg) scaleY(.58); }
.orbit-two { inset: 1%; transform: rotate(48deg) scaleY(.72); border-style: dashed; opacity: .6; }
.floating-label { position: absolute; border: 1px solid var(--ink); border-radius: 40px; padding: 8px 13px; font-size: 9px; letter-spacing: .15em; background: var(--paper); z-index: 3; }
.label-one { left: 5%; top: 25%; transform: rotate(-8deg); }.label-two { right: 0; top: 57%; transform: rotate(7deg); }.label-three { left: 19%; bottom: 10%; transform: rotate(4deg); }
.spark { position: absolute; color: var(--yellow); font-size: 35px; }.spark-one { right: 17%; top: 6%; }.spark-two { left: 3%; bottom: 28%; color: var(--mint); font-size: 24px; }
.scroll-cue { position: absolute; bottom: 27px; left: 50%; transform: translateX(-50%); font-size: 9px; letter-spacing: .16em; display: flex; align-items: center; gap: 11px; opacity: .58; }
.scroll-cue span { width: 18px; height: 29px; border: 1px solid var(--ink); border-radius: 12px; position: relative; }.scroll-cue span::after { content: ""; position: absolute; width: 2px; height: 5px; background: var(--ink); left: 7px; top: 6px; border-radius: 2px; animation: scroll 1.7s infinite; }
@keyframes scroll { 50% { transform: translateY(8px); opacity: .2; } }

.quiz-screen { flex-direction: column; padding: 30px 8vw 70px; }
.quiz-topbar { display: flex; justify-content: space-between; align-items: center; }
.text-button { color: var(--ink); background: none; border: 0; padding: 8px 0; cursor: pointer; font-size: 12px; }
.progress-meta { display: flex; gap: 30px; font-size: 10px; letter-spacing: .14em; font-weight: 600; }
.progress-track { height: 2px; width: 100%; background: var(--line); margin: 15px 0 0; }.progress-track span { display: block; width: 8.33%; height: 100%; background: var(--coral); transition: width .4s; }
.question-wrap { width: min(780px, 100%); margin: 7vh auto 0; text-align: center; }
.question-number { font-size: 56px; line-height: 1; color: rgba(36,63,53,.11); font-weight: 700; letter-spacing: -.05em; }
.question-category { color: var(--coral); margin: -7px 0 22px; }
.question-wrap h2 { font-family: "Noto Sans JP", sans-serif; font-size: clamp(25px, 3.1vw, 40px); line-height: 1.55; letter-spacing: -.035em; margin: 0 0 38px; }
.answers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.answer-button { min-height: 83px; border: 1px solid var(--line); border-radius: 16px; padding: 17px 19px; background: rgba(255,255,255,.32); color: var(--ink); display: flex; text-align: left; align-items: center; gap: 16px; cursor: pointer; transition: .22s; }
.answer-button:hover { background: #fffaf1; border-color: var(--coral); transform: translateY(-2px); }
.answer-letter { width: 35px; height: 35px; flex: none; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; font-size: 11px; font-weight: 700; }
.answer-text { font-family: "Noto Sans JP", sans-serif; font-size: 13px; line-height: 1.55; }
.answer-hint { font-size: 10px; opacity: .48; margin: 23px 0; }

.result-screen { justify-content: center; padding: 6vh 20px; text-align: center; }
.result-card { width: min(670px, 100%); }
.result-eyebrow { justify-content: center; margin-bottom: 3px; }
.age-display { font-size: clamp(100px, 16vw, 175px); font-weight: 700; line-height: .95; color: var(--coral); letter-spacing: -.08em; }
.age-display small { font-size: 19px; letter-spacing: 0; color: var(--ink); margin-left: 7px; }
.result-icon { font-size: 25px; color: var(--yellow); margin: 12px 0 2px; }
.result-card h2 { font-family: "Noto Sans JP", sans-serif; font-size: 30px; margin: 0 0 15px; }
.age-comparison { display: inline-block; margin: -2px 0 18px; padding: 8px 15px; border-radius: 100px; background: rgba(231,111,81,.11); color: var(--coral); font-size: 12px; font-weight: 700; }
.result-description { font-family: "Noto Sans JP", sans-serif; font-size: 13px; line-height: 1.9; color: rgba(36,63,53,.72); max-width: 560px; margin: 0 auto 27px; }
.trait-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 0 auto 25px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trait-grid span { font-size: 11px; font-weight: 600; }.trait-bar { height: 5px; margin-top: 9px; border-radius: 4px; background: rgba(36,63,53,.1); overflow: hidden; }.trait-bar i { display: block; height: 100%; width: 0; background: var(--coral); border-radius: inherit; transition: width .8s .25s; }
.result-section { margin: 22px 0 0; padding: 24px 0 0; border-top: 1px solid var(--line); text-align: left; }
.section-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 17px; }
.section-heading > span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: 9px; font-weight: 700; }
.section-heading h3 { margin: 0; font-family: "Noto Sans JP", sans-serif; font-size: 15px; }
.situation-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.situation-grid > div { padding: 18px 12px; border: 1px solid var(--line); border-radius: 15px; text-align: center; background: rgba(255,255,255,.24); }
.situation-icon { display: block; height: 27px; color: var(--coral); font-size: 20px; }
.situation-grid small { display: block; margin: 4px 0 8px; font-size: 9px; opacity: .62; }
.situation-grid strong { display: block; font-size: 13px; }.situation-grid b { margin-right: 2px; color: var(--coral); font-size: 30px; letter-spacing: -.05em; }
.section-caption { margin: -8px 0 16px 40px; font-size: 9px; opacity: .5; }
.peer-gap-summary { margin-bottom: 15px; padding: 14px 16px; border-left: 3px solid var(--coral); background: rgba(231,111,81,.08); font-family: "Noto Sans JP", sans-serif; font-size: 12px; font-weight: 600; line-height: 1.7; }
.gap-list { display: grid; gap: 16px; }
.gap-list > div { padding: 0 4px; }
.gap-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 10px; }.gap-top span { font-weight: 600; }.gap-top b { color: var(--coral); font-size: 10px; }
.gap-meter { position: relative; height: 5px; border-radius: 5px; background: linear-gradient(90deg, var(--yellow), rgba(36,63,53,.13) 50%, var(--mint)); }
.gap-meter i { position: absolute; left: 50%; top: -4px; width: 1px; height: 13px; background: rgba(36,63,53,.38); }
.gap-meter span { position: absolute; top: 50%; width: 15px; height: 15px; border: 3px solid var(--paper); border-radius: 50%; background: var(--coral); transform: translate(-50%, -50%); transition: left .8s .2s; }
.gap-list p { margin: 8px 0 0; font-family: "Noto Sans JP", sans-serif; font-size: 10px; line-height: 1.65; color: rgba(36,63,53,.68); }
.gap-legend { display: flex; justify-content: space-between; margin-top: 12px; font-size: 8px; opacity: .48; }
.manual-list { display: grid; gap: 8px; }
.manual-list > div { display: grid; grid-template-columns: 72px 1fr; gap: 13px; align-items: start; padding: 13px 15px; border-radius: 12px; background: rgba(159,200,183,.17); }
.manual-label { padding-top: 2px; color: var(--ink); font-size: 8px; font-weight: 700; letter-spacing: .14em; }.manual-label.warning { color: var(--coral); }
.manual-list p { margin: 0; font-family: "Noto Sans JP", sans-serif; font-size: 11px; line-height: 1.7; }
.result-badges { display: flex; flex-wrap: wrap; gap: 9px; }
.result-badge { display: flex; align-items: center; gap: 8px; padding: 10px 14px 10px 10px; border: 1px solid var(--ink); border-radius: 100px; font-size: 10px; font-weight: 700; }
.result-badge i { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--yellow); font-style: normal; font-size: 13px; }
.result-note { font-size: 9px; opacity: .45; }
.result-actions { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 11px; margin-top: 22px; }
.secondary-button { height: 58px; padding: 0 25px; border: 1px solid var(--ink); border-radius: 100px; color: var(--ink); background: transparent; cursor: pointer; }
footer { height: 64px; padding: 0 5vw; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; font-size: 9px; letter-spacing: .12em; opacity: .58; }
.toast { position: fixed; left: 50%; bottom: 25px; transform: translate(-50%, 20px); opacity: 0; background: var(--ink); color: var(--paper); border-radius: 50px; padding: 12px 20px; font-size: 12px; transition: .3s; z-index: 20; }.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 760px) {
  .site-header { height: 72px; padding: 0 22px; }.header-note { display: none; }
  .screen { min-height: calc(100vh - 126px); }
  .start-screen { align-items: flex-start; padding: 7vh 24px 75px; }.hero-copy { width: 100%; }.hero-art { width: 260px; opacity: .22; right: -70px; top: 31%; z-index: 0; }
  .eyebrow { margin-bottom: 18px; } h1 { font-size: clamp(42px, 13vw, 62px); }.lead { margin-top: 24px; }.desktop-only { display: none; }.scroll-cue { display: none; }
  .quiz-screen { padding: 22px 20px 55px; }.question-wrap { margin-top: 5vh; }.question-number { font-size: 45px; }.question-wrap h2 { margin-bottom: 28px; }.answers { grid-template-columns: 1fr; }.answer-button { min-height: 70px; }
  .result-screen { padding-top: 4vh; }.age-display { font-size: 110px; }.result-card h2 { font-size: 25px; }.result-actions { flex-direction: column; }.result-actions .primary-button, .secondary-button { width: min(280px, 100%); }.secondary-button { height: 52px; }
  .situation-grid { gap: 6px; }.situation-grid > div { padding: 15px 5px; }.situation-grid b { font-size: 25px; }.manual-list > div { grid-template-columns: 61px 1fr; padding: 12px; }
  footer { padding: 0 20px; } footer span:last-child { display: none; }
}

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