:root{color:#033946;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;--teal:#009b9e;--ink:#033946;--muted:#527080;--line:#dce4e8;--coral:#fb8984;background:#fff;font-family:Hiragino Maru Gothic ProN,Yu Gothic,Meiryo,sans-serif}*{box-sizing:border-box}body{min-width:320px;margin:0}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.45}button:focus-visible,input:focus-visible{outline-offset:4px;outline:3px solid #04717c}button{-webkit-tap-highlight-color:transparent}h1,h2,p{margin:0}svg{flex:none}.app-shell{flex-direction:column;min-height:100dvh;display:flex}.app-header{border-bottom:1px solid var(--line);align-items:center;gap:20px;height:89px;padding:0 max(32px,50vw - 720px);display:flex}.brand{color:#007e88;letter-spacing:.04em;white-space:nowrap;background:0 0;border:0;flex-shrink:0;padding:0;font-size:43px;font-weight:900;line-height:1}.beta-label{white-space:nowrap;flex-shrink:0;font-size:19px;font-weight:600}.app-header nav{align-items:center;margin-left:auto;display:flex}.app-header nav button{min-height:48px;color:var(--ink);white-space:nowrap;background:0 0;border:0;padding:10px 28px;font-size:19px;font-weight:700}.app-header nav button+button{border-left:1px solid var(--line)}.main-content{flex:1;width:min(1440px,100% - 64px);margin:0 auto}.button{border:1.5px solid #0000;border-radius:18px;justify-content:center;align-items:center;gap:14px;min-height:66px;padding:14px 28px;font-size:27px;font-weight:700;line-height:1.35;display:inline-flex}.button--primary{color:#fff;background:linear-gradient(100deg,#0ca7a8,#0ca0a1);width:100%}.button--primary:hover:not(:disabled){background:#00888f}.button--primary svg{width:28px;height:28px}.button--outline,.button--sound{color:#008a92;background:#fff;border-color:#009b9e}.button--sound{gap:20px;min-height:85px;margin-top:42px;padding:18px 28px;font-size:25px}.button--sound svg{width:36px;height:36px}.button--danger{color:#fff;background:#a6383b;font-size:19px}.text-button{color:#008e98;text-underline-offset:4px;text-align:left;background:0 0;border:0;align-items:center;gap:10px;min-height:48px;padding:8px 0;font-size:18px;font-weight:600;line-height:1.5;text-decoration:underline;display:inline-flex}.text-button--danger{color:#a6383b}.home-layout{grid-template-columns:minmax(0,.86fr) minmax(0,1.16fr);align-items:stretch;gap:64px;margin:64px 0 36px;display:grid}.home-copy h1{letter-spacing:-.04em;font-size:clamp(42px,4.7vw,72px);font-weight:900;line-height:1.38}.home-subtitle{letter-spacing:.02em;margin-top:12px;font-size:clamp(22px,2.1vw,33px);font-weight:700;line-height:1.65}.home-flow{grid-template-columns:repeat(4,1fr);margin:30px 0 40px;padding:0;list-style:none;display:grid}.home-flow li{color:var(--muted);flex-direction:column;align-items:flex-start;gap:8px;font-size:17px;display:flex;position:relative}.home-flow span{z-index:1;background:#e5eaee;border-radius:50%;place-items:center;width:39px;height:39px;font-size:23px;font-weight:800;display:grid}.home-flow li:not(:last-child):after{content:"";background:#d5dde2;height:4px;position:absolute;top:19px;left:45px;right:6px}.home-flow li:first-child{color:var(--teal);font-weight:700}.home-flow li:first-child span{background:var(--teal);color:#fff}.profiles{border:0;gap:16px;margin:0 0 28px;padding:0;display:flex}.profiles legend{margin-bottom:14px;font-size:22px;font-weight:800}.profiles button{border:1px solid var(--teal);min-width:0;min-height:60px;color:var(--ink);background:#fff;border-radius:18px;flex:1;justify-content:center;align-items:center;gap:16px;font-size:21px;font-weight:700;display:flex}.profiles button[aria-pressed=true]{background:var(--teal);color:#fff}.radio-dot{border:1.5px solid;border-radius:50%;width:23px;height:23px;display:inline-block}.profiles button[aria-pressed=true] .radio-dot{box-shadow:inset 0 0 0 4px var(--teal);background:#fff;border:7px solid #fff}.practice-board{background:linear-gradient(115deg,#e8faf9,#e7f9f9);border-radius:18px;flex-direction:column;justify-content:center;align-items:center;gap:30px;min-height:470px;padding:46px 38px;display:flex}.home-layout .practice-board{min-height:598px}.large-equation{align-items:center;gap:18px;margin-bottom:8px;font-size:clamp(64px,6.3vw,100px);font-weight:900;line-height:1.1;display:flex}.large-equation span{font-weight:700}.story-board-title{text-align:center;font-size:24px;font-weight:700;line-height:1.7}.frames{justify-content:center;gap:28px;width:100%;display:flex}.ten-frame{aspect-ratio:2.5;background:#fff;border:1.5px solid #7e8d95;border-radius:7px;grid-template-rows:repeat(2,1fr);grid-template-columns:repeat(5,1fr);width:50%;max-width:370px;display:grid;overflow:hidden}.frame-cell{border-right:1px solid #c5d1d6;justify-content:center;align-items:center;min-width:0;min-height:0;display:flex}.frame-cell:nth-child(-n+5){border-bottom:1px solid #c5d1d6}.frame-cell:nth-child(5n){border-right:0}.dot{aspect-ratio:1;border-radius:50%;width:78%;display:block}.dot--teal{background:linear-gradient(145deg,#11a5a8,#00979b)}.dot--coral{background:linear-gradient(145deg,#ff9690,#fa817e)}.dot--empty{background:#fff;border:1.5px solid #7c8e98}.beta-note{border-top:1px solid var(--line);background:#ecfaf9;border-radius:18px;align-items:center;gap:40px;margin-bottom:24px;padding:24px 32px;display:flex}.beta-note h2{white-space:nowrap;font-size:27px}.beta-note p{font-size:17px;line-height:1.85}.beta-note .text-button{flex:none;margin-left:auto}.app-footer{border-top:1px solid var(--line);color:#567583;justify-content:space-between;align-items:center;gap:22px;width:min(1440px,100% - 64px);min-height:68px;margin:0 auto;padding:22px 0;font-size:14px;display:flex}.app-footer span:last-child{text-align:right}.progress-rail{grid-template-columns:repeat(6,1fr);margin:32px 0 52px;padding:0;list-style:none;display:grid}.progress-rail li{color:var(--muted);flex-direction:column;align-items:center;gap:12px;font-size:19px;font-weight:600;display:flex;position:relative}.progress-rail li:not(:last-child):after{content:"";background:#e1e7eb;height:5px;position:absolute;top:20px;left:calc(50% + 24px);right:calc(24px - 50%)}.progress-rail li.complete:after{background:#66d9d4}.phase-number{background:#e5eaee;border-radius:50%;place-items:center;width:42px;height:42px;font-size:24px;font-weight:800;display:grid}.progress-rail li.active{color:#008c96;font-weight:800}.progress-rail li.active .phase-number{color:#fff;background:#009da3}.lesson-layout{grid-template-columns:minmax(0,.58fr) minmax(0,1fr);align-items:start;gap:40px;display:grid}.lesson-copy{padding-top:40px}.lesson-copy h1{letter-spacing:-.04em;font-size:clamp(42px,4.4vw,70px);font-weight:900;line-height:1.4}.narration{margin-top:32px;font-size:clamp(23px,2.3vw,35px);font-weight:600;line-height:1.85}.narration-line{display:block}.lesson-copy h1:focus{outline:none}.practice-board--explain{gap:26px;min-height:520px;padding:38px}.decomposition{justify-content:center;align-items:flex-start;gap:20px;width:100%;margin-top:2px;font-size:48px;font-weight:700;display:flex}.math-group{color:#008d97;white-space:nowrap;flex-direction:column;align-items:center;display:flex}.math-group b{color:var(--ink)}.math-group .brace{border:4px solid;border-top:0;border-radius:0 0 15px 15px;width:100%;height:17px;margin-top:1px}.math-group small{padding-top:14px;font-size:25px;font-weight:800;line-height:1.5}.math-group--coral{color:var(--coral)}.lesson-next{width:480px;max-width:100%;margin:44px auto 0}.lesson-next .button{min-height:74px;font-size:30px}.end-caption{text-align:center;margin:16px 0 28px;font-size:18px}.lesson-exercise .practice-board:not(.practice-board--explain){min-height:330px;padding-top:28px;padding-bottom:28px}.lesson-exercise .practice-board:not(.practice-board--explain) .large-equation{font-size:75px}.answer-form{padding-top:24px}.answer-fields{gap:16px;margin-bottom:22px;display:flex}.answer-fields label{flex-direction:column;flex:1;gap:8px;min-width:0;font-size:18px;font-weight:700;display:flex}.answer-fields input{width:100%;min-width:0;color:var(--ink);text-align:center;background:#fff;border:1.5px solid #8ca9b0;border-radius:12px;height:72px;padding:8px;font-size:40px}.answer-fields input:disabled{color:var(--ink);opacity:1;background:#f1faf8}.help-controls{flex-wrap:wrap;align-items:flex-start;gap:12px 26px;margin-top:22px;display:flex}.hint{border-left:4px solid var(--teal);background:#f1faf8;width:100%;padding:14px 18px;font-size:20px;line-height:1.8}.feedback{background:#fff7e4;border-radius:16px;margin-top:18px;padding:18px 22px}.feedback p{margin-bottom:14px;font-size:20px;font-weight:700;line-height:1.6}.feedback--correct{background:#e9f8f2}.audio-message{margin-top:12px;font-size:17px;line-height:1.7}.resume-caption{color:var(--muted);margin:12px 0 0;font-size:16px}.notice{background:#fff7e4;border-left:4px solid #cba144;margin-top:22px;padding:15px 20px;font-size:17px;line-height:1.8}.notice--error{background:#fff1ef;border-color:#a6383b}.notice .text-button{margin-left:20px}.summary-view,.parent-view,.about-view{max-width:850px;margin:50px auto}.summary-view{text-align:center}.summary-view h1,.parent-view h1,.about-view h1{margin-bottom:24px;font-size:42px;font-weight:800;line-height:1.45}.summary-view .narration{margin-top:12px;margin-bottom:30px}.reflection{text-align:center;background:#e9faf8;border-radius:18px;padding:32px}.reflection>svg{color:#009797;background:#fff;border-radius:50%;width:40px;height:40px;margin-bottom:12px;padding:7px}.reflection h2{margin-bottom:12px;font-size:33px;line-height:1.65}.reflection p{margin-top:12px;font-size:20px;line-height:1.8}.summary-actions{justify-items:center;gap:10px;max-width:440px;margin:26px auto 0;display:grid}.parent-view>p,.about-view p{margin-bottom:22px;font-size:18px;line-height:1.9}.parent-view h2,.about-view h2{margin:30px 0 12px;font-size:26px;line-height:1.6}.summary-counts{border-top:1px solid var(--line);margin:26px 0}.summary-row{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:20px;padding:20px 4px;font-size:18px;display:flex}.summary-row strong{color:#008b95;white-space:nowrap;font-size:32px}.summary-row small{margin-left:8px;font-size:16px}.skill-list{margin:18px 0;padding:0;list-style:none}.skill-list li{border-bottom:1px solid var(--line);padding:22px 0;font-size:18px;line-height:1.8}.skill-list strong{color:#008b95;margin-top:6px;display:block}.quiet-text{color:var(--muted)}.parent-actions{flex-wrap:wrap;align-items:center;gap:18px 28px;margin:26px 0;display:flex}.parent-actions .button{font-size:20px}.about-view .button{max-width:400px;margin-top:18px}.confirm-dialog::backdrop{background:#00394788}.confirm-dialog{width:min(640px,100% - 48px);max-width:640px;color:var(--ink);background:#fff;border:0;border-radius:24px;padding:32px;box-shadow:0 12px 60px #002e4630}.confirm-dialog h2{margin-bottom:20px;font-size:26px;line-height:1.5}.confirm-dialog p{font-size:18px;line-height:1.8}.confirm-dialog>div{justify-content:flex-end;gap:20px;margin-top:26px;display:flex}.confirm-dialog .button--outline{font-size:19px}@media (width<=1100px){.home-layout{gap:34px}.home-copy h1{font-size:54px}.home-subtitle{font-size:23px}.home-layout .practice-board{min-height:530px;padding:28px}.frames{gap:16px}.beta-note{flex-wrap:wrap;gap:15px 32px}.beta-note .text-button{margin-left:0}.lesson-layout{grid-template-columns:minmax(0,.72fr) minmax(0,1fr);gap:28px}.lesson-copy h1{font-size:49px}.narration{font-size:26px}.practice-board{padding:30px 22px}.practice-board--explain{min-height:435px}.decomposition{gap:14px;font-size:33px}.math-group small{font-size:19px}.button--sound{padding:18px;font-size:20px}.app-footer{font-size:12px}}@media (width<=760px){.app-header{gap:8px;height:72px;padding:0 20px}.brand{letter-spacing:.02em;font-size:28px}.beta-label{font-size:12px}.app-header nav button{padding:10px 8px;font-size:13px}.main-content,.app-footer{width:calc(100% - 40px)}.home-layout{flex-direction:column;gap:28px;margin-top:30px;display:flex}.home-copy h1{font-size:clamp(40px,7vw,52px);line-height:1.35}.home-subtitle{font-size:21px}.home-flow{margin:24px 0}.home-flow li{font-size:15px}.home-flow span{width:33px;height:33px;font-size:20px}.home-flow li:not(:last-child):after{top:15px;left:38px}.profiles{margin-bottom:20px}.profiles legend{font-size:19px}.profiles button{border-radius:14px;gap:10px;min-height:56px;font-size:18px}.home-layout .practice-board{gap:25px;min-height:260px;padding:30px 22px}.large-equation{font-size:72px}.button{border-radius:15px;min-height:62px;font-size:23px}.beta-note{gap:16px;padding:22px}.beta-note h2{font-size:24px}.beta-note p,.beta-note .text-button{font-size:15px}.app-footer{flex-wrap:wrap;justify-content:space-between;gap:12px;padding:18px 0;font-size:12px}.app-footer span:last-child{text-align:left;width:100%}.progress-rail{margin:25px 0 28px}.progress-rail li{white-space:nowrap;gap:9px;font-size:12px}.phase-number{width:30px;height:30px;font-size:18px}.progress-rail li:not(:last-child):after{height:4px;top:13px;left:calc(50% + 19px);right:calc(19px - 50%)}.lesson-layout{flex-direction:column;gap:26px;display:flex}.lesson-copy{width:100%;padding:0}.lesson-copy h1{text-wrap:balance;font-size:clamp(28px,8.2vw,34px);line-height:1.5}.narration{margin-top:18px;font-size:24px;line-height:1.8}.button--sound{min-height:60px;margin-top:22px;padding:12px 18px;font-size:20px}.button--sound svg{width:26px;height:26px}.lesson-exercise{width:100%}.practice-board--explain{gap:26px;min-height:330px;padding:30px 20px}.decomposition{gap:12px;font-size:30px}.math-group .brace{border-width:3px;height:12px}.math-group small{padding-top:8px;font-size:16px}.lesson-exercise .practice-board:not(.practice-board--explain){gap:22px;min-height:250px;padding:26px 20px}.lesson-exercise .practice-board:not(.practice-board--explain) .large-equation{font-size:68px}.lesson-next{width:100%;margin-top:26px}.lesson-next .button{min-height:64px;font-size:26px}.end-caption{margin-bottom:24px;font-size:15px}.answer-fields{gap:10px}.answer-fields label{font-size:15px}.answer-fields input{height:65px;font-size:31px}.help-controls{margin-top:12px}.help-controls .text-button{font-size:17px}.hint{padding:12px 16px;font-size:18px}.feedback{padding:16px}.feedback p{font-size:18px}.notice{padding:14px;font-size:15px}.summary-view,.parent-view,.about-view{margin:30px auto}.summary-view h1,.parent-view h1,.about-view h1{font-size:32px}.reflection{padding:26px 20px}.reflection h2{font-size:27px}.reflection p{font-size:18px}.parent-view>p,.about-view p,.skill-list li{font-size:16px}.summary-row{padding:17px 0;font-size:16px}.parent-view h2,.about-view h2{font-size:24px}.confirm-dialog{padding:24px}.confirm-dialog>div{flex-wrap:wrap}}@media (width<=380px){.app-header{gap:8px;padding:0 14px}.brand{font-size:25px}.beta-label{font-size:10px}.app-header nav button{padding:10px 7px;font-size:12px}.main-content,.app-footer{width:calc(100% - 28px)}.progress-rail li{font-size:10.5px}.decomposition{gap:10px;font-size:26px}.math-group small{font-size:14px}}@media (prefers-reduced-motion:no-preference){button{transition:background-color .15s,opacity .15s}}
