@font-face{font-family:Rounded;src:url('rounded-jp.ttf') format('truetype');font-display:swap}*{box-sizing:border-box}html{color-scheme:light;scroll-behavior:smooth}body{container-type:inline-size;margin:0;background:#f5f7f3;color:#233e46;font:16px/1.75 Rounded,'Hiragino Maru Gothic ProN','Yu Gothic',sans-serif}button,input,select{font:inherit}button,a,select,input{touch-action:manipulation;-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button:disabled{cursor:default;opacity:.5}a{color:#126d72;text-underline-offset:4px}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,[tabindex]:focus-visible{outline:3px solid #c88f25;outline-offset:4px}h1,h2,h3,p{margin:0}h1{font-size:clamp(27px,4.3vw,45px);line-height:1.6;letter-spacing:.04em}h2{font-size:25px;line-height:1.55}h3{font-size:19px}p+p{margin-top:12px}.small,small{font-size:13px;line-height:1.7}.muted{color:#60767c}.eyebrow{font-size:12px;color:#277b7a;letter-spacing:.14em;font-weight:bold;margin-bottom:12px}.app-header{max-width:1120px;margin:auto;padding:22px 28px;display:flex;align-items:center;justify-content:space-between;gap:12px}.brand{display:flex;align-items:center;gap:12px;border:0;background:none;text-align:left;padding:0}.brand-symbol{display:grid;place-items:center;width:40px;height:40px;border-radius:14px;background:#146e73;color:white;font-size:26px}.brand strong{display:block;font-size:18px;letter-spacing:.06em}.brand small{display:block;font-size:10px;color:#627c81}.quiet,.text-button{border:0;background:none;color:#467178;padding:10px 6px;min-height:44px;font-size:13px;text-decoration:underline;text-underline-offset:4px}.privacy-button{text-decoration:none;font-size:12px}.app-shell{max-width:1020px;margin:auto;padding:18px 28px 30px}main{min-width:0;outline:0}#content{min-height:55vh}#steps:empty{display:none}.progress-head{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#5a757a;margin-bottom:8px}.progress-pills{display:flex;gap:6px;margin-bottom:26px}.progress-pills span{height:5px;flex:1;border-radius:8px;background:#dfe8e4}.progress-pills .done{background:#2f8584}.page-head{margin-bottom:24px}.page-head p{color:#61777b;margin-top:8px}.hero{display:grid;grid-template-columns:1.1fr 1fr;gap:30px;align-items:center;padding:35px 0 24px}.hero-copy p{color:#61777b;margin:20px 0 0}.hero-art{border-radius:36px;background:white;padding:14px 20px 20px}.hero-art .family-scene{min-height:230px}.hero-caption{text-align:center;font-size:13px;color:#4b7579}.family-scene{display:flex;justify-content:center;align-items:flex-end;overflow:hidden;min-width:0;min-height:110px}.person{background-image:url('family-sheet.png');background-size:300% 100%;background-repeat:no-repeat;aspect-ratio:1;flex:0 1 155px;min-width:0;max-width:155px;margin:0 -17px}.person.adult1{background-position:0 50%}.person.adult2{background-position:50% 50%}.person.child{background-position:100% 50%;max-width:115px;flex-basis:115px;margin:0 -12px}.person.future{opacity:.55}.family-small{max-width:330px;margin:0 auto 12px}.family-small .person{max-width:125px}.family-small .child{max-width:92px}.result-art{background-image:url('result-sheet.png');background-size:300% 100%;background-repeat:no-repeat;aspect-ratio:1;width:180px;flex-shrink:0;border-radius:26px}.result-art.good{background-position:0 50%}.result-art.watch{background-position:50% 50%}.result-art.prepare{background-position:100% 50%}.route-grid{display:grid;grid-template-columns:1.25fr 1fr;gap:18px;margin:16px 0 30px}.route-card{background:white;border:1px solid #d4e1db;border-radius:24px;padding:26px;text-align:left;display:flex;flex-direction:column;align-items:flex-start;gap:12px}.route-card.primary{background:#166f73;border-color:#166f73;color:white;box-shadow:0 10px 28px #166f7314}.route-card strong{font-size:25px}.route-card p{font-size:14px;color:#59767c}.route-card.primary p{color:#e1f0e9}.pill{display:inline-block;border-radius:100px;padding:4px 12px;background:#e5efea;color:#356e6c;font-size:11px;font-weight:bold}.primary .pill{background:#f1d993;color:#405651}.route-arrow{margin-top:auto;padding-top:8px;font-size:14px}.intro-strip{display:flex;justify-content:space-between;gap:18px;padding:20px 4px;border-top:1px solid #dce5e0;color:#5b7278;font-size:13px}.card{background:white;border:1px solid #dce6e0;border-radius:24px;padding:28px;margin-bottom:22px;min-width:0}.card.soft{background:#eaf2ed;border:0}.card h3{margin-bottom:18px}.section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.section-title h3{margin:0}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.field{min-width:0}.field>label{display:block;font-size:14px;font-weight:bold;margin-bottom:8px}.field select{width:100%;height:54px;border:1px solid #bbcfc7;border-radius:13px;background:white;color:#214c53;padding:10px 13px;font-size:17px}.hint{font-size:11px;color:#64777c;line-height:1.8;margin-top:8px}.source-button{font-size:11px;min-height:32px;border:0;background:none;padding:0 5px;color:#186d73;text-decoration:underline;text-underline-offset:3px}.inline-fields{display:flex;gap:14px;flex-wrap:wrap;align-items:flex-end}.inline-fields .field{flex:1;min-width:135px}fieldset{border:0;padding:0;margin:0;min-width:0}legend{font-weight:bold;font-size:14px;margin-bottom:10px}.choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.choices.three{grid-template-columns:repeat(3,minmax(0,1fr))}.choice{display:flex;align-items:center;gap:8px;min-height:58px;border:1px solid #ceddd5;border-radius:14px;padding:12px;background:white;text-align:left;font-size:14px;cursor:pointer}.choice input{accent-color:#15777a;width:18px;height:18px;flex-shrink:0}.choice:has(input:checked),.choice.selected{border:2px solid #257f7f;background:#eff7f2;padding:11px}.choice>span{min-width:0}.choice strong{display:block;font-size:14px}.choice small{display:block;font-size:11px;color:#607b7b}.number-choices{display:flex;gap:9px;flex-wrap:wrap}.number-choices .choice{min-width:56px;justify-content:center;min-height:50px}.number-choices input{position:absolute;opacity:0;width:1px;height:1px}.notice{border-radius:15px;padding:15px 18px;background:#edf3ef;color:#476d71;font-size:13px;line-height:1.9;margin:18px 0}.notice.warm{background:#faf2de;color:#786139}.notice.error{background:#fff0e9;color:#914624}.button{border:0;border-radius:14px;min-height:52px;padding:13px 23px;background:#176f74;color:white;font-size:15px;font-weight:bold;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none}.button:hover{background:#125c62}.button.secondary{background:white;color:#246d73;border:1px solid #a8c4ba}.button.ghost{background:transparent;color:#60777c;font-weight:normal;padding-left:10px;padding-right:10px}.button.full{width:100%}.actions{display:flex;justify-content:space-between;align-items:center;gap:14px;margin:22px 0}.actions .button:last-child{min-width:190px}.bottom-note{text-align:center;font-size:12px;color:#647b7d;margin-top:10px}.step-layout{max-width:720px;margin:0 auto}.stack{display:grid;gap:18px}.divider{height:1px;background:#e0e9e4;margin:22px 0}.child-card{padding:20px;background:#f7f9f5;border-radius:17px;margin-top:14px}.child-card h3{font-size:16px}.education-stage{padding:12px 0;border-bottom:1px solid #e0e8e1}.education-stage:last-child{border:0}.education-stage .choices{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.education-stage .choice{min-height:48px;padding:9px;font-size:12px}.education-stage .choice:has(input:checked){padding:8px}.education-stage .choice small{font-size:10px}.event-card{border:1px solid #d9e3dc;border-radius:17px;padding:18px;margin-top:12px}.event-title{display:flex;gap:10px;align-items:center}.event-title input{width:22px;height:22px;accent-color:#187a7a}.event-title strong{font-size:16px}.event-title small{display:block;color:#677c7e}.event-fields{padding-top:16px;margin-top:14px;border-top:1px solid #dfe7e1}.result-hero{display:flex;align-items:center;gap:22px;border-radius:24px;background:white;padding:25px;margin:20px 0 22px}.result-hero.watch{background:#fcf7e9}.result-hero.prepare{background:#fbf0e7}.result-hero.good{background:#edf5ec}.result-hero h1{font-size:28px}.result-hero p{font-size:14px;color:#516f72;margin-top:10px}.result-tag{font-size:12px;margin-bottom:8px;color:#617471}.metric-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:22px}.metric{background:white;padding:20px;border-radius:17px;border:1px solid #dde6df}.metric span{font-size:12px;color:#59777a;display:block}.metric strong{font-size:25px;display:block;line-height:1.7}.metric small{font-size:10px;color:#6b7c7d}.chart-head{display:flex;justify-content:space-between;gap:12px;align-items:start;flex-wrap:wrap}.chart-head h3{margin-bottom:5px}.legend{display:flex;gap:14px;flex-wrap:wrap;font-size:11px}.legend span:before{content:'';display:inline-block;width:20px;height:3px;margin:0 5px 3px 0;background:#328681}.legend .base:before{background:#9aabb3}.legend .reserve:before{background:#cba559}.chart-scroll{overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;width:100%;border:1px solid #e4ece7;border-radius:16px;margin-top:12px;background:white}.chart-svg{display:block;width:100%;min-width:900px;height:310px}.chart-svg text{font-family:Rounded,sans-serif;font-size:11px;fill:#658084}.scroll-hint{display:flex;justify-content:space-between;font-size:11px;color:#587779;padding:8px 2px}.year-inspector{background:#f4f8f4;border-radius:13px;padding:15px;margin-top:10px}.year-inspector dl{display:grid;grid-template-columns:1fr 1fr;gap:5px 15px;margin:12px 0 0;font-size:12px}.year-inspector dl div{display:flex;justify-content:space-between;gap:8px}.year-inspector dt,.year-inspector dd{margin:0}.year-inspector dd{font-weight:bold}.moments{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.moment{padding:20px;border-left:3px solid #3d9390;background:#f1f6ef;border-radius:0 16px 16px 0}.moment b{font-size:22px;color:#237779}.moment h3{font-size:15px;margin:8px 0}.moment p{font-size:12px;color:#657d7c}.consult{background:#173f4b;color:white;border-radius:25px;padding:30px;margin:22px 0}.consult h2{font-size:24px;margin-bottom:12px}.consult p{font-size:14px;color:#d1e1e0;line-height:1.95}.consult .button{background:#f0d798;color:#2c5257;margin-top:20px}.consult .small{font-size:11px;color:#c1d5d6}.detail-nudge{border:1px dashed #90b8ac;border-radius:18px;padding:22px;background:#f1f7f1}.detail-nudge h3{margin-bottom:7px}.detail-nudge p{font-size:13px;color:#5a777a;margin-bottom:15px}.app-footer{max-width:1020px;margin:auto;padding:25px 28px 35px;border-top:1px solid #dce5df;color:#6a7f80;font-size:11px;display:flex;justify-content:space-between;align-items:center;gap:15px}.app-footer>div{display:flex;gap:8px;flex-wrap:wrap}.app-footer .text-button{font-size:11px}dialog{border:0;border-radius:24px;padding:0;max-width:680px;width:calc(100% - 28px);max-height:85dvh;color:#2b4950;box-shadow:0 24px 90px #102e4c40}dialog::backdrop{background:#183c4d70;backdrop-filter:blur(3px)}.modal-top{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #e1e9e3;padding:20px 24px;position:sticky;top:0;background:white;z-index:1}.modal-top h2{font-size:20px}.icon-button{border:0;border-radius:50%;width:44px;height:44px;font-size:25px;background:#edf3ef}.modal-bottom{padding:16px 24px;border-top:1px solid #e1e9e3}#modal-body{padding:22px 24px;font-size:14px}#modal-body h3{font-size:17px;margin:18px 0 8px}#modal-body ul{padding-left:20px}.source-item{padding:14px 0;border-bottom:1px solid #e1e9e3}.source-item p{font-size:12px;margin-top:7px}#toast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);padding:13px 22px;background:#203f4a;color:white;border-radius:13px;z-index:8;max-width:calc(100% - 32px);width:max-content;font-size:13px}.skip-link{position:fixed;top:-100px;left:15px;background:white;padding:12px;z-index:10}.skip-link:focus{top:12px}.print-only{display:none}.inline-badge{font-size:10px;border:1px solid #ccdacd;padding:2px 7px;border-radius:6px;margin-left:7px;color:#68806f}.tabbar{display:flex;gap:6px;overflow:auto;margin:0 0 20px;padding:3px}.tabbar button{white-space:nowrap;border:1px solid #cddcd4;border-radius:20px;min-height:40px;padding:7px 13px;background:white;font-size:12px}.tabbar button[aria-current]{background:#e3efe7;border-color:#4b9486;color:#1b6e6c}.sample-flag{font-size:11px;background:#fbf3dd;border-radius:9px;padding:7px 12px;display:inline-block;margin-top:10px}.statline{font-size:13px;color:#486c73;line-height:1.9}.statline strong{font-size:20px;color:#176f74}details{margin-top:15px}summary{cursor:pointer;font-size:13px;min-height:44px;display:list-item;padding:10px 0;color:#377276}.compare-note{border-left:3px solid #b7cdbf;padding-left:15px;margin-top:16px;font-size:13px}.data-actions{display:grid;gap:12px}.check-line{display:flex;align-items:start;gap:10px;font-size:13px}.check-line input{margin-top:6px;width:19px;height:19px;accent-color:#187a7a}.empty-state{padding:25px;text-align:center;color:#647b7d;background:#f6f8f4;border-radius:18px;font-size:14px}.money{font-variant-numeric:tabular-nums}
@container(max-width:680px){.app-header{padding:16px 18px}.brand strong{font-size:16px}.brand-symbol{width:35px;height:35px;font-size:22px}.privacy-button{font-size:10px;max-width:100px;line-height:1.5}.app-shell{padding:8px 18px 20px}.hero{grid-template-columns:1fr;gap:18px;padding:22px 0 8px}.hero-copy h1{font-size:30px;line-height:1.65}.hero-copy p{font-size:14px;margin-top:13px}.hero-art{padding:0 12px 14px;border-radius:25px}.hero-art .family-scene{min-height:140px}.hero-caption{font-size:11px}.route-grid{grid-template-columns:1fr;gap:11px;margin:14px 0 22px}.route-card{padding:20px;gap:7px;border-radius:20px}.route-card strong{font-size:22px}.route-card p{font-size:12px}.route-card.secondary-route{display:grid;grid-template-columns:1fr auto;align-items:center;gap:2px 12px}.secondary-route .pill{display:none}.secondary-route strong{font-size:18px}.secondary-route p{grid-column:1}.secondary-route .route-arrow{grid-column:2;grid-row:1/3;font-size:0;padding:0}.secondary-route .route-arrow:after{content:'→';font-size:23px}.intro-strip{font-size:11px;gap:10px;flex-wrap:wrap;justify-content:flex-start;padding-top:15px}.page-head{margin-bottom:19px}.page-head h1{font-size:26px}.page-head p{font-size:13px}.eyebrow{font-size:10px;margin-bottom:8px}.card{padding:20px 17px;border-radius:20px;margin-bottom:16px}.card h3{font-size:17px}.form-grid{gap:18px 12px}.form-grid.mobile-one{grid-template-columns:1fr}.field>label{font-size:12px}.field select{font-size:16px;height:54px;padding:9px}.hint{font-size:10px}.choice{font-size:13px;padding:10px;min-height:55px}.choice:has(input:checked),.choice.selected{padding:9px}.choice strong{font-size:13px}.choice small{font-size:10px}.choices.three{grid-template-columns:repeat(2,minmax(0,1fr))}.actions{position:sticky;bottom:0;background:#f5f7f3ed;backdrop-filter:blur(8px);padding:12px 0 max(12px,env(safe-area-inset-bottom));margin:10px 0 0;z-index:2;gap:9px}.actions .button:last-child{min-width:0;flex:1}.button{padding:12px 16px;font-size:14px}.result-hero{padding:18px;gap:8px;flex-direction:column;text-align:center}.result-art{width:145px}.result-hero h1{font-size:24px}.result-hero p{font-size:13px}.metric-grid{grid-template-columns:1fr 1fr;gap:10px}.metric-grid .metric:last-child{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:0 10px}.metric-grid .metric:last-child small{width:100%}.metric{padding:15px}.metric strong{font-size:23px}.metric span{font-size:11px}.chart-svg{min-width:900px;height:300px}.moments{grid-template-columns:1fr}.moment{padding:16px;display:grid;grid-template-columns:65px 1fr;column-gap:8px}.moment b{grid-row:1/3;font-size:20px}.moment h3{margin:0 0 4px}.moment p{grid-column:2}.consult{padding:24px 20px}.consult h2{font-size:21px}.consult p{font-size:13px}.consult .button{width:100%}.app-footer{display:block;padding:20px 18px 30px}.app-footer>div{gap:8px;margin-top:6px}.child-card,.event-card{padding:15px 12px}.progress-pills{margin-bottom:20px}.year-inspector dl{grid-template-columns:1fr}.modal-top,#modal-body,.modal-bottom{padding:17px 18px}.modal-top h2{font-size:18px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important;animation:none!important}}
@media print{body{background:white;font-size:10px}.app-header,.app-footer,#steps,.actions,.no-print,dialog,#toast{display:none!important}.app-shell{max-width:none;padding:0}.card,.result-hero,.metric,.consult{break-inside:avoid;box-shadow:none}.chart-scroll{overflow:visible;border:0}.chart-svg{min-width:0;width:100%;height:auto}.print-only{display:block}.consult{background:#eef3ef;color:#233e46}.consult p{color:#46616a}.button{display:none}.result-art{width:100px}.card{padding:15px;margin:10px 0}.metric-grid{grid-template-columns:repeat(3,1fr)}}

/* v0.3: readable custom events, personalized advice, and explicit comparisons. */
.field input[type=text],.field textarea{display:block;width:100%;border:1px solid #bbcfc7;border-radius:13px;background:white;color:#214c53;padding:12px 13px;font:inherit;font-size:16px;min-height:52px;box-sizing:border-box}.field textarea{resize:vertical;line-height:1.7}.event-fields>.field{margin-bottom:16px}.event-card .button{margin-top:16px}.button:disabled{opacity:.5;cursor:default}.aid-box{background:#f3f7f4;padding:18px 14px;border-radius:14px;margin:16px 0}.aid-box .form-grid{margin:16px 0}.advice-panel h2{font-size:23px;margin:6px 0 12px}.advice-item{border-top:1px solid #dce6e0;padding:18px 0 4px;overflow-wrap:anywhere}.advice-item h3{margin:0 0 8px;font-size:17px}.advice-item p{font-size:14px;line-height:1.9}.advice-reason{color:#276e73;background:#f0f6f1;border-radius:10px;padding:12px;margin:10px 0}.consult-item blockquote{margin:12px 0;padding:14px 17px;background:#eff5f0;border-left:3px solid #277f7f;border-radius:0 12px 12px 0;line-height:1.9;overflow-wrap:anywhere}.table-scroll{overflow-x:auto;max-width:100%;margin-top:16px}.scenario-table{width:100%;border-collapse:collapse;font-size:13px;min-width:310px}.scenario-table th,.scenario-table td{padding:12px 9px;text-align:left;border-bottom:1px solid #dce6e0;vertical-align:top}.scenario-table thead{background:#edf4ef}.scenario-table tbody th{font-weight:normal}.year-inspector>.field{max-width:280px;margin-bottom:18px}.source-item h3,.event-title strong,.moment h3{overflow-wrap:anywhere}[hidden]{display:none!important}
@container(max-width:680px){.aid-box{padding:16px 11px}.advice-panel h2{font-size:21px}.advice-item p{font-size:14px}.event-fields .form-grid{grid-template-columns:1fr}.result-art{width:160px}.scenario-table{font-size:12px}.scenario-table th,.scenario-table td{padding:10px 6px}.event-title strong{font-size:15px}.field textarea{font-size:16px}}

.scroll-toggle{display:flex;align-items:center;gap:8px;font-size:13px;color:#386f72;margin:0 0 14px;min-height:40px}.scroll-toggle input{accent-color:#176f74;width:19px;height:19px}[data-question]{scroll-margin-top:24px}.question-arrived{outline:2px solid #69a9a2;outline-offset:6px;border-radius:12px}.field>.text-button{display:block;margin-left:auto;font-size:12px}.advice-panel .small{font-size:14px}
