:root{--bg:#f5f7fb;--ink:#192b41;--muted:#4e6077;--line:#dce3ef;--teal:#125c52;--navy:#1a2e50;--mint:#b0f4ce;--warm:#fff6d9;--white:#fff}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font:1rem/1.75 system-ui,-apple-system,"Hiragino Sans",Meiryo,sans-serif}a{color:var(--teal);text-underline-offset:.25em}button{font:inherit;cursor:pointer}button:disabled{cursor:default;opacity:.55}button:focus-visible,a:focus-visible{outline:3px solid #3078aa;outline-offset:4px}.wrap{width:min(100% - 40px,960px);margin-inline:auto}.top{background:#fff;border-bottom:1px solid var(--line)}.nav{display:flex;min-height:66px;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;padding-block:8px}.brand{font-weight:850;text-decoration:none;color:var(--ink);letter-spacing:.03em}.brand span{color:var(--teal);font-size:1.4em;vertical-align:-.08em}.preview{font-size:.875rem;color:var(--muted)}.hero{display:grid;grid-template-columns:1.1fr .9fr;align-items:center;gap:34px;padding:54px 0 35px}.tag{font-weight:700;color:var(--muted)}.tag span{display:inline-block;padding:3px 10px;background:#d9ece9;border-radius:6px;margin-right:6px;color:#194940}.hero h1{font-size:clamp(2.5rem,8vw,4.95rem);line-height:1.1;letter-spacing:-.075em;margin:.18em 0 .35em}.intro,.section-head>p:last-child{color:var(--muted)}.actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:20px}.button{display:inline-flex;justify-content:center;align-items:center;min-height:46px;text-decoration:none;border:1px solid transparent;border-radius:10px;padding:7px 15px;font-weight:760;font-size:1rem}.primary{background:var(--teal);color:#fff}.primary:hover{background:#104d45}.outline{background:#fff;color:var(--ink);border-color:#b7c6d7}.textlink{padding:8px}.board{background:var(--navy);color:#fff;border-radius:20px;padding:22px 24px;box-shadow:0 9px 0 #dce5f1}.board-top{color:#ddedff;font-weight:650}.equation{font:800 clamp(1.75rem,4vw,3rem)/1 system-ui;margin:14px 0 1px;color:#fff}.board svg{display:block;width:100%;height:auto;margin-top:14px}.board-note{color:#dceaff;margin:1px 0 3px}.road{display:grid;grid-template-columns:repeat(3,1fr);border:1px solid var(--line);border-radius:13px;background:white;margin:7px 0 46px;overflow:hidden}.road a{padding:11px 10px;display:block;text-decoration:none;text-align:center;font-size:.94rem;font-weight:750}.road a+a{border-left:1px solid var(--line)}.road span{color:var(--muted);margin-right:3px}.chapter{scroll-margin:15px;margin:0 0 56px}.section-head{margin-bottom:18px}.kicker{color:var(--teal);font-size:.9rem;font-weight:850;letter-spacing:.06em;margin:0}.section-head h2{font-size:clamp(1.5rem,5vw,2.25rem);letter-spacing:-.045em;margin:.08em 0 .25em;line-height:1.25}.section-head>p:last-child{margin:7px 0}.video-card,.quiz,.try,.rules article{background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden}.video-card{max-width:790px}.video-card video{display:block;aspect-ratio:16/9;width:100%;height:auto;background:var(--navy);object-fit:contain}.video-footer{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 18px;padding:10px 14px;font-weight:700}.rules{display:grid;grid-template-columns:1fr 1fr;gap:14px}.rules article,.try,.note,.quiz{padding:16px 18px}.label{font-weight:800;color:var(--teal)}h3{margin:3px 0 8px;font-size:1.2rem}.rules p,.try p{margin:4px 0}.rules strong,.note strong{font-variant-numeric:tabular-nums}.try,.note{margin-top:15px}.line{display:grid;grid-template-columns:repeat(8,1fr);width:100%;max-width:486px;margin:17px 0 12px}.line span{text-align:center;font-weight:750;position:relative;border-top:2px solid #9aaac2;padding-top:8px}.line span::before{content:"";display:block;height:9px;width:2px;background:#9aaac2;position:absolute;left:calc(50% - 1px);top:-5px}.line span.active{color:#064d40;background:#d5eee6}.line span.active::before{background:#125c52;width:9px;height:9px;border-radius:50%;left:calc(50% - 4px)}.step-actions{display:flex;align-items:center;flex-wrap:wrap;gap:9px}.step-actions output{margin-left:6px;color:var(--teal);font-weight:800}.note{background:var(--warm);border-radius:14px}.note p{margin:9px 0}.quiz{max-width:790px}.quiz-top{display:flex;gap:12px;align-items:center}.quiz-top p{margin:0;font-size:.92rem;font-weight:820;min-width:68px}.quiz progress{width:100%;height:10px;accent-color:var(--teal)}.qkind{color:var(--teal);margin:13px 0 4px;font-weight:800}.question{margin:0;font-size:clamp(1.45rem,5vw,2rem);letter-spacing:.02em}.choices{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin-top:15px}.choices button{background:#f6f8fc;border:1px solid #b7c6d7;border-radius:9px;min-height:48px;color:var(--ink);font-weight:750}.choices .chosen{background:#dcecea;border:2px solid var(--teal)}.choices .correct{background:#d8f4e5;border:2px solid var(--teal);opacity:1}.choices .wrong{background:#fff0e0;border:2px solid #9b4326;opacity:1}.hint{margin-top:13px;color:var(--teal);display:inline-block}.hint summary{cursor:pointer;font-weight:700}.hint p{margin:4px 0}.feedback:not(:empty){margin-top:14px;padding:11px 13px;background:#edf4ff;border-radius:9px}.feedback p{margin:4px 0}.feedback b{font-size:1.025rem}.qactions{margin-top:12px}.privacy,.foot p{color:var(--muted);font-size:.88rem}.foot{background:#fff;border-top:1px solid var(--line);padding:21px 0}.foot p{margin:3px 0}.skip{position:absolute;left:1rem;top:-100px;background:#fff;padding:9px;z-index:2}.skip:focus{top:6px}
@media(max-width:670px){.hero{grid-template-columns:1fr;gap:22px;padding-top:26px}.desktop{display:none}.board{padding:15px 18px}.board svg{max-height:100px}.road{margin-bottom:36px}.road a{font-size:.865rem;padding:10px 3px}.road span{display:block}.chapter{margin-bottom:38px}}@media(max-width:480px){.wrap{width:calc(100% - 28px)}.rules{grid-template-columns:1fr;gap:8px}.rules article,.try,.note,.quiz{padding:12px}.step-actions output{width:100%;margin-left:0}.hero h1{font-size:2.85rem}.hero .textlink{padding:6px 0}.preview{font-size:.81rem}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
.shortcut{margin-top:18px;padding:14px 18px;background:#e8f5f0;border:1px solid #b0d3c7;border-radius:14px}.shortcut summary{cursor:pointer;font-size:1.17rem;font-weight:850;color:#124f45}.shortcut p{margin:.6em 0}.shortcut-rule strong{white-space:normal}.sign-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:12px 0}.sign-grid div{display:flex;flex-direction:column;align-items:center;justify-content:center;background:#fff;border:1px solid #c4ddd5;border-radius:9px;padding:6px}.sign-grid b{font-size:1.25rem}.sign-grid span{color:#3b665e;font-weight:750}.shortcut-caution{border-left:4px solid #b86c23;background:#fff6dc;border-radius:5px;padding:8px 10px}.zero-tip{margin-top:14px;padding-top:8px;border-top:1px solid #b0d3c7}.zero-tip p{margin:3px 0}@media(max-width:480px){.shortcut{padding:11px 13px}.sign-grid{grid-template-columns:repeat(2,1fr)}}
body{background:#f0f5f5}.wrap{width:min(100% - 36px,840px)}.top{border-color:#d7e5e3}.nav{min-height:56px}.nav .brand{font-weight:890}.student-hero{padding:24px 26px 14px;background:#e2eee9;border:1px solid #cdddce;border-radius:24px;margin:20px 0 13px;position:relative;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:16px}.student-hero h1{color:#172b41;font-size:clamp(2.45rem,7vw,4.2rem);margin:.1em 0 .18em}.student-hero .tag{font-size:.88rem;margin:0 0 5px}.student-hero .tag span{background:#173c36;color:#fff}.student-hero .intro{font-size:1rem;margin:.4em 0 .15em;max-width:22rem}.mascot{display:grid;justify-items:center;align-content:center;min-width:0;text-align:center}.mascot img{width:min(100%,192px);height:auto;display:block;filter:drop-shadow(0 7px 3px #19453520)}.mascot p{margin:1px 0;font-size:.89rem;line-height:1.3}.mascot span{display:block;color:#36574f;font-size:.82rem;margin-top:4px}.student-road{margin:0 0 24px;border:0;background:none;border-radius:0;overflow:visible;gap:8px}.student-road a{background:white;border:1px solid #cadbd8!important;border-radius:12px;font-size:1.05rem;color:#19322c;min-height:59px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:1px;line-height:1.35;padding:7px 3px}.student-road a span{font-size:.79rem;font-weight:680;margin:0;color:#48645e;display:block;order:2}.student-road a[aria-selected=true]{background:#145d53;color:#fff;border-color:#145d53!important;box-shadow:0 3px 0 #a9ccbe}.student-road a[aria-selected=true] span{color:#e0f6ea}.chapter[hidden]{display:none}.chapter{margin-bottom:33px}.section-head .kicker{font-size:.8rem}.section-head h2{margin-top:3px}.panel-action{margin:12px 0}.quiz{box-shadow:0 3px 18px #32483e0b}.quiz .question{margin:6px 0;font-size:clamp(1.55rem,6vw,2.15rem)}.choices button{font-size:1.2rem}.feedback:not(:empty){background:#edf8f2}.foot{padding:13px 0}
@media(max-width:540px){.wrap{width:calc(100% - 24px)}.student-hero{padding:13px 13px 12px;gap:7px;margin-top:12px;border-radius:16px;grid-template-columns:minmax(0,1fr) minmax(82px,35%)}.student-hero h1{font-size:clamp(2.05rem,9vw,3.15rem);white-space:nowrap}.student-hero .tag{font-size:.74rem;line-height:1.4}.student-hero .tag span{padding:2px 6px;margin-right:1px}.student-hero .intro{font-size:.86rem;line-height:1.55;margin-top:5px}.mascot img{width:min(100%,135px)}.mascot p{font-size:.75rem;line-height:1.4}.mascot span{font-size:.69rem;margin-top:2px}.student-road{gap:5px;margin-bottom:15px}.student-road a{font-size:.91rem;min-height:53px;white-space:nowrap}.student-road a span{font-size:.72rem}.video-footer{padding:8px 10px;font-size:.84rem}.section-head{margin-bottom:10px}.section-head>p:last-child{font-size:.9rem}.chapter{scroll-margin:8px}}

.shortcut-video summary small{font-size:.81rem;font-weight:700;color:#375b54;margin-left:5px}
.shortcut-video video{width:100%;max-width:740px;display:block;aspect-ratio:16/9;border-radius:9px;background:#1a2e50}
.shortcut-why{border-radius:8px;background:#fff;padding:8px 10px}

.mascot img{width:auto;max-width:100%;height:190px;object-fit:contain}@media(max-width:620px){.mascot img{height:128px}}
