@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@600;700;800;900&family=Zen+Maru+Gothic:wght@400;500;700;900&display=swap');
:root{--ink:#25243a;--muted:#77768d;--purple:#7157e8;--purple-dark:#5d43d1;--lavender:#eeeaff;--yellow:#ffd76a;--mint:#a8ecd8;--coral:#ff927e;--paper:#fff;--line:#eeedf5;--shadow:0 16px 48px rgba(57,45,104,.09);font-family:'Nunito','Zen Maru Gothic',system-ui,sans-serif;color:var(--ink);background:#f8f7fc;font-synthesis:none;text-rendering:optimizeLegibility}
*{box-sizing:border-box}body{margin:0;min-width:320px;background:radial-gradient(ellipse at 83% 1%,rgba(222,215,255,.48),transparent 34rem),#f8f7fc}.page-shell{max-width:1160px;margin:auto;padding:0 38px}.topbar{height:88px;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:11px;text-decoration:none;color:var(--ink);font-weight:900;letter-spacing:-.035em;font-size:19px}.brand-name b{color:var(--purple)}.brand-mark{width:38px;height:38px;border-radius:13px;background:var(--purple);color:white;display:grid;place-items:center;position:relative;box-shadow:0 6px 14px #7157e84a;font-size:14px;letter-spacing:-5px;padding-right:5px;transform:rotate(-6deg)}.brand-mark span:first-child{position:absolute;top:2px;left:8px}.brand-mark span:last-child{position:absolute;right:7px;bottom:3px}.top-stats{display:flex;gap:10px}.stat-pill{height:44px;padding:5px 13px;display:flex;align-items:center;gap:8px;border:1px solid #ebe9f4;border-radius:15px;background:#ffffffc9}.stat-icon{font-size:19px}.stat-pill b{font:900 15px 'Nunito',sans-serif;display:block;line-height:17px}.stat-pill small{font-size:10px;color:var(--muted);display:block;line-height:12px;font-weight:700}.hero{min-height:342px;border-radius:30px;background:linear-gradient(112deg,#f0edff 2%,#ece8ff 61%,#e2ddff 100%);position:relative;overflow:hidden;padding:37px 56px 58px;display:flex;align-items:center}.hero:before,.hero:after{content:"";position:absolute;border:1px solid #ffffff80;border-radius:50%;pointer-events:none}.hero:before{width:410px;height:410px;right:40px;top:-205px}.hero:after{width:300px;height:300px;right:105px;top:-150px}.hero-copy{z-index:2;max-width:570px}.eyebrow,.section-kicker{font-size:11px;font-weight:900;letter-spacing:.15em;color:#7157e8}.eyebrow{display:flex;align-items:center;gap:8px;margin-bottom:14px}.eyebrow-dot{width:7px;height:7px;background:#ff9d78;border-radius:50%;box-shadow:0 0 0 4px #ff9d7826}.hero h1{font-size:39px;line-height:1.32;letter-spacing:-.045em;margin:0;color:#282443;font-weight:900}.hero h1 span{color:var(--purple)}.hero-copy>p{font-size:14px;line-height:1.9;color:#66647e;margin:12px 0 21px;font-weight:600}.hero-actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.button{font:900 14px 'Nunito','Zen Maru Gothic',sans-serif;border:0;border-radius:14px;cursor:pointer;transition:transform .16s,box-shadow .16s,background .16s}.button:hover{transform:translateY(-2px)}.button:focus-visible,.topic-card:focus-visible,.text-button:focus-visible,input:focus-visible{outline:3px solid #a99afc;outline-offset:3px}.button-primary{padding:14px 20px;color:white;background:var(--purple);box-shadow:0 8px 17px #7157e84a}.button-primary:hover{background:var(--purple-dark);box-shadow:0 11px 22px #7157e85c}.button-primary span{font-size:18px;margin-left:12px}.session-note{font-size:11px;color:#6c6985;font-weight:700}.hero-art{width:340px;height:280px;position:absolute;right:34px;top:8px;z-index:1}.orbit{border:1px dashed #a99bf1;border-radius:50%;position:absolute;transform:rotate(-24deg)}.orbit-one{width:295px;height:145px;top:81px;left:21px}.orbit-two{width:240px;height:112px;top:100px;left:48px;transform:rotate(25deg);opacity:.65}.planet{position:absolute;top:28px;right:40px;width:67px;height:67px;border-radius:50%;background:#ffdb7e;color:#7959b8;display:flex;align-items:center;justify-content:center;gap:2px;font:900 20px 'Nunito',sans-serif;box-shadow:inset -7px -7px 0 #efc65b}.planet i{font-style:normal;font-size:15px}.spark{position:absolute;color:#fff;font-size:21px;text-shadow:0 2px 7px #9976ef}.spark-a{left:33px;top:53px}.spark-b{right:4px;top:128px;font-size:27px}.spark-c{left:88px;bottom:31px;color:#9d88f2}.astronaut{position:absolute;width:128px;height:160px;left:104px;top:65px;transform:rotate(-9deg);animation:float 3.4s ease-in-out infinite}.helmet{position:absolute;width:91px;height:90px;left:18px;top:0;border-radius:44% 46% 42% 43%;background:#fff;border:7px solid #d9d0ff;box-shadow:inset -6px -4px #f3f0ff;z-index:3}.visor{position:absolute;inset:14px 11px 13px;border-radius:45%;background:linear-gradient(140deg,#806be7,#473a95);overflow:hidden}.visor-shine{position:absolute;width:17px;height:8px;left:12px;top:7px;border-radius:50%;background:#cfc6ff;transform:rotate(-32deg)}.eye{position:absolute;width:5px;height:7px;background:white;border-radius:50%;left:23px;top:34px}.eye-two{left:46px}.smile{position:absolute;border-bottom:2px solid white;width:13px;height:7px;left:31px;top:44px;border-radius:0 0 10px 10px}.body-suit{position:absolute;width:68px;height:68px;left:30px;top:72px;border-radius:22px 22px 25px 25px;background:#fff;border:5px solid #d9d0ff;z-index:2}.suit-badge{position:absolute;top:14px;left:20px;color:#ffbd4b;font-size:19px}.arm{position:absolute;width:25px;height:52px;background:#fff;border:5px solid #d9d0ff;border-radius:20px;top:78px;z-index:1}.arm-left{left:9px;transform:rotate(27deg)}.arm-right{right:5px;transform:rotate(-37deg)}.boot{position:absolute;width:30px;height:22px;background:#a99af5;border-radius:8px 8px 12px 12px;top:130px;z-index:1}.boot-left{left:30px;transform:rotate(8deg)}.boot-right{right:28px;transform:rotate(-9deg)}.art-caption{position:absolute;bottom:5px;left:93px;padding:6px 12px;background:#fff;border-radius:12px;font-size:11px;font-weight:900;color:#7157e8;box-shadow:0 4px 12px #6a55bc1a;transform:rotate(3deg)}.hero-bottom{position:absolute;bottom:0;left:0;right:0;height:42px;background:#ffffff75;display:flex;align-items:center;padding:0 27px;gap:12px;color:#7c7896;font-size:11px}.hero-bottom b{color:#595572;font-weight:800}.hero-bottom-star{margin-left:auto;color:#8a74eb;font-size:18px}.mission-section{padding:46px 0 31px}.section-heading,.play-heading{display:flex;align-items:end;justify-content:space-between;margin-bottom:18px}.section-kicker{margin:0 0 5px;font-size:10px}.section-heading h2,.play-heading h2{font-size:21px;letter-spacing:-.035em;margin:0;font-weight:900}.section-aside{font-size:11px;color:var(--muted);font-weight:700;margin-bottom:3px}.topic-list{display:grid;grid-template-columns:repeat(5,1fr);gap:11px}.topic-card{min-height:100px;padding:15px 13px;display:flex;align-items:center;gap:10px;text-align:left;border:1px solid #edebf4;border-radius:18px;background:#fff;cursor:pointer;transition:.18s ease;box-shadow:0 4px 12px #38325606;color:var(--ink)}.topic-card:hover{transform:translateY(-3px);border-color:#d6cffc;box-shadow:0 10px 22px #47369b12}.topic-card.active{border:1.5px solid #9d8bf0;background:#f6f3ff;box-shadow:0 5px 16px #7157e81a}.topic-symbol{width:40px;height:40px;flex:0 0 40px;border-radius:13px;display:grid;place-items:center;font-size:18px;font-weight:900}.all-symbol{background:#efeaff;color:#755be5}.fraction-symbol{background:#fff2d3;color:#bb8631}.decimal-symbol{background:#e3f7f1;color:#3d9b7c;font-size:15px}.percent-symbol{background:#ffe9e4;color:#db725f}.ratio-symbol{background:#e6eeff;color:#5b80ce;font-size:14px}.topic-copy{min-width:0}.topic-copy b{font-size:12px;font-weight:900;display:block;white-space:nowrap}.topic-copy small{display:block;color:#88869a;font-size:10px;margin-top:4px;white-space:nowrap}.topic-arrow{margin-left:auto;color:#b2aec3;font-size:15px}.play-section{padding:25px 0 38px;scroll-margin-top:20px}.play-heading{align-items:center}.text-button{font:800 12px 'Nunito','Zen Maru Gothic',sans-serif;border:0;background:transparent;color:#77738e;text-decoration:underline;text-underline-offset:3px;cursor:pointer;padding:8px}.text-button:hover{color:var(--purple)}.quiz-card{border:1px solid #edebf4;border-radius:23px;background:#fff;box-shadow:var(--shadow);overflow:hidden}.quiz-meta{display:flex;align-items:center;justify-content:space-between;padding:19px 26px 12px}.question-topic{font-size:11px;color:#7157e8;font-weight:900;background:#f1edff;border-radius:20px;padding:6px 11px}.question-count{font-size:17px;font-weight:900}.question-count span{font-size:12px;color:#9692a5;font-weight:700}.progress-track{margin:0 26px;height:7px;border-radius:10px;background:#f0eff5;overflow:hidden}.progress-track span,.level-track span{display:block;height:100%;width:0;border-radius:inherit;background:linear-gradient(90deg,#9c88f0,#7157e8);transition:width .35s ease}.question-area{padding:22px 27px 27px}.question-prompt{font-size:24px;line-height:1.55;font-weight:900;letter-spacing:-.025em;margin:0 0 21px;min-height:38px}.answer-label{display:block;font-size:12px;font-weight:900;margin-bottom:8px}.answer-row{display:flex;gap:10px}.answer-row input{height:51px;border:1px solid #dedce9;border-radius:13px;background:#fcfbff;padding:0 15px;font:700 16px 'Nunito','Zen Maru Gothic',sans-serif;flex:1;min-width:0;color:var(--ink)}.answer-row input::placeholder{color:#b0adbd;font-weight:600;font-size:13px}.button-check{padding:0 19px;color:white;background:#25243a;white-space:nowrap}.button-check:hover{background:#454260}.button-check span{margin-left:10px}.button-check:disabled{opacity:.5;cursor:not-allowed;transform:none}.answer-hint{font-size:10px;color:#9692a5;margin:8px 0 0}.feedback{margin-top:16px;border-radius:14px;padding:13px 15px;font-size:13px;line-height:1.65;font-weight:700}.feedback.correct{background:#eaf9f3;color:#27795e}.feedback.incorrect{background:#fff3ed;color:#a65b43}.feedback-title{font-size:15px;font-weight:900;margin:0 0 3px}.feedback p{margin:0}.feedback .explanation{font-weight:600;color:inherit;opacity:.86}.progress-section{padding:0 0 40px}.progress-panel{border-radius:24px;background:#fff;padding:27px 35px;display:flex;align-items:center;justify-content:space-between;box-shadow:0 7px 26px #38325608}.progress-text h2{font-size:22px;line-height:1.5;letter-spacing:-.035em;margin:2px 0 7px}.progress-text>p:not(.section-kicker){font-size:12px;line-height:1.8;color:#7d7a90;margin:0}.reset-button{padding:8px 0 0;font-size:10px}.level-card{position:relative;overflow:hidden;width:350px;max-width:47%;padding:20px 22px 18px;border-radius:19px;background:#f4f1ff}.level-top{display:flex;justify-content:space-between;align-items:center}.level-label{font-size:11px;color:#77728e;font-weight:800}.level-number{font-size:13px;color:#7157e8;font-weight:900;background:#fff;width:29px;height:29px;display:grid;place-items:center;border-radius:10px}.level-title{font-size:18px;font-weight:900;margin:5px 0 13px}.level-track{height:8px;background:#e4defb;border-radius:10px;overflow:hidden}.level-foot{display:flex;justify-content:space-between;font-size:10px;color:#88839e;font-weight:700;margin-top:7px}.level-mascot{position:absolute;font-size:32px;right:25px;top:52px;transform:rotate(-15deg);filter:drop-shadow(0 4px 3px #7157e830)}footer{border-top:1px solid #eae8f1;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:18px 0 27px;color:#a09caf;font-size:10px;font-weight:600}.footer-mark{color:#77718f;font-weight:900}.toast{position:fixed;left:50%;bottom:24px;transform:translate(-50%,20px);opacity:0;pointer-events:none;background:#29273e;color:#fff;border-radius:12px;padding:11px 17px;font-size:12px;font-weight:800;box-shadow:0 8px 20px #221e4144;transition:.25s;z-index:5}.toast.show{opacity:1;transform:translate(-50%,0)}[hidden]{display:none!important}@keyframes float{0%,100%{transform:translateY(0) rotate(-9deg)}50%{transform:translateY(-9px) rotate(-5deg)}}
@media(max-width:900px){.page-shell{padding:0 24px}.hero{padding-left:38px}.hero-art{right:6px;transform:scale(.87);transform-origin:center right}.topic-list{grid-template-columns:repeat(3,1fr)}.topic-card{min-height:85px}.topic-card:last-child{grid-column:span 1}.hero-copy{max-width:53%}.hero h1{font-size:34px}}
@media(max-width:620px){.page-shell{padding:0 16px}.topbar{height:72px}.brand{font-size:16px}.brand-mark{width:34px;height:34px}.top-stats{gap:6px}.stat-pill{height:39px;padding:4px 8px;gap:5px;border-radius:12px}.stat-icon{font-size:16px}.stat-pill b{font-size:13px}.stat-pill small{font-size:9px}.hero{min-height:520px;padding:29px 23px 57px;align-items:flex-start;border-radius:23px}.hero-copy{max-width:100%}.hero h1{font-size:32px}.hero-copy>p{font-size:13px}.hero-art{top:235px;left:50%;right:auto;transform:translateX(-50%) scale(.88);transform-origin:top center}.hero-bottom{padding:0 16px;gap:8px;font-size:9px}.hero-bottom b{font-size:10px}.mission-section{padding:35px 0 23px}.section-heading h2,.play-heading h2{font-size:18px}.section-aside{font-size:9px;text-align:right}.topic-list{grid-template-columns:repeat(2,1fr);gap:9px}.topic-card{padding:12px 10px;min-height:77px;gap:8px;border-radius:15px}.topic-symbol{width:36px;height:36px;flex-basis:36px;border-radius:11px}.topic-copy b{font-size:11px}.topic-copy small{font-size:9px}.topic-card:last-child{grid-column:span 2}.play-section{padding:20px 0 30px}.quiz-meta{padding:15px 16px 10px}.progress-track{margin:0 16px}.question-area{padding:18px 16px 20px}.question-prompt{font-size:20px}.answer-row{flex-direction:column}.answer-row input{height:49px;width:100%}.button-check{height:47px}.progress-panel{padding:23px 19px;align-items:flex-start;flex-direction:column;gap:20px}.progress-text h2{font-size:20px}.level-card{width:100%;max-width:100%}footer{flex-wrap:wrap;justify-content:center;text-align:center;padding-bottom:22px}footer span:first-child{width:100%}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.01ms!important}}

/* 継続の記録とコレクション */
.streak-card{display:flex;align-items:center;gap:12px;margin-top:15px;padding:13px 18px;border:1px solid #f0e8ce;border-radius:16px;background:linear-gradient(100deg,#fffaf0,#fffdf8)}.streak-icon{font-size:23px}.streak-card>div b{display:block;font-size:15px;font-weight:900;color:#a96c28}.streak-card>div small{display:block;margin-top:2px;font-size:10px;color:#96846d;font-weight:700}.streak-note{margin-left:auto;font-size:11px;color:#8b806c;font-weight:700}.badge-section{margin-top:20px}.badge-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.badge-heading h3{font-size:14px;margin:0;font-weight:900}.badge-heading>span{font-size:10px;color:#8d899f;font-weight:800}.badge-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}.badge-item{min-height:91px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:10px 6px;border:1px solid #eeedf4;border-radius:15px;background:#fff;text-align:center}.badge-item.unlocked{border-color:#f0dfaa;background:#fffaf0;box-shadow:0 4px 12px #d2a53b12}.badge-medal{width:35px;height:35px;display:grid;place-items:center;border-radius:50%;background:#f0eff4;color:#aaa7b5;font-size:18px;filter:grayscale(1);opacity:.58}.badge-item.unlocked .badge-medal{background:#ffedb8;color:#ae7b16;filter:none;opacity:1}.badge-title{font-size:10px;font-weight:900;color:#777487;line-height:1.3}.badge-item.unlocked .badge-title{color:#73541e}.badge-desc{font-size:9px;color:#a19eae;line-height:1.25}.badge-item.unlocked .badge-desc{color:#93825f}
@media(max-width:620px){.streak-card{gap:9px;padding:11px 12px}.streak-note{font-size:9px;max-width:45%;text-align:right}.badge-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.badge-item{min-height:84px}}

/* 6年算数の単元一覧 */
.topic-list{grid-template-columns:repeat(4,minmax(0,1fr))}.topic-card{min-height:86px}.expression-symbol{background:#fff1d7;color:#b37a25}.shape-symbol{background:#eeeaff;color:#7157e8}.estimate-symbol{background:#e8f5e9;color:#4c8a58}.circle-symbol{background:#ffe9e4;color:#d9715e}.solid-symbol{background:#e4f4fb;color:#3e86a6}.proportion-symbol{background:#e3f7f1;color:#3d9b7c}.data-symbol{background:#e6eeff;color:#5b80ce}.cases-symbol{background:#fce8f4;color:#b35c91}.review-symbol{background:#f1f0f5;color:#777489}.curriculum-note{margin:12px 2px 0;font-size:10px;color:#8d899d;line-height:1.7}.quiz-tags{display:flex;align-items:center;gap:7px}.scope-chip{font-size:10px;font-weight:800;color:#777387;background:#f2f1f6;border-radius:20px;padding:6px 10px}.progress-text h2{letter-spacing:-.025em}
@media(max-width:900px){.topic-list{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:620px){.topic-list{grid-template-columns:repeat(2,minmax(0,1fr))}.topic-card:last-child{grid-column:span 2}.quiz-tags{gap:5px}.scope-chip{font-size:9px;padding:5px 8px}.question-count{font-size:15px}.question-count span{font-size:10px}}

@media(max-width:620px){.topic-copy{flex:1;min-width:0}.topic-copy b{white-space:normal;font-size:10px;line-height:1.25}.topic-copy small{white-space:normal;font-size:8px;line-height:1.35}.topic-arrow{flex:0 0 auto}}

.topic-card:disabled{cursor:not-allowed}.topic-card:disabled:not(.active){opacity:.68;box-shadow:none}.topic-card:disabled:hover{transform:none}

.scratchpad{margin-top:14px;border:1px solid #e8e5f0;border-radius:15px;background:#fbfaff;overflow:hidden}.scratchpad summary{display:flex;align-items:center;justify-content:space-between;gap:12px;list-style:none;padding:12px 15px;color:#50486e;font-size:12px;font-weight:800;cursor:pointer}.scratchpad summary::-webkit-details-marker{display:none}.scratchpad summary::after{content:'＋';color:#8d84ad;font-size:15px}.scratchpad[open] summary::after{content:'−'}.scratchpad summary span{margin-left:auto;color:#918ca1;font-size:10px;font-weight:500}.scratch-tools{display:flex;align-items:center;flex-wrap:wrap;gap:6px;padding:0 12px 10px}.scratch-tool{min-height:32px;padding:6px 10px;border:1px solid #e1deea;border-radius:9px;background:#fff;color:#5f5975;font-family:inherit;font-size:10px;font-weight:700;cursor:pointer}.scratch-tool:hover{border-color:#8f82db}.scratch-tool.active{border-color:#6d5cdb;background:#6d5cdb;color:#fff}.scratch-tool.scratch-clear{margin-left:auto;color:#a65f63}#scratch-canvas{display:block;width:calc(100% - 24px);height:156px;margin:0 12px;border:1px dashed #d9d4e8;border-radius:10px;background:#fff;touch-action:none;user-select:none;-webkit-user-select:none;cursor:crosshair}.scratch-hint{margin:7px 14px 12px;color:#928da0;font-size:9px;line-height:1.5}
@media(max-width:620px){.scratchpad summary{padding:11px 12px;font-size:11px}.scratchpad summary span{font-size:9px}.scratch-tools{gap:5px;padding:0 9px 9px}.scratch-tool{min-height:31px;padding:5px 8px;font-size:9px}#scratch-canvas{width:calc(100% - 18px);height:138px;margin:0 9px}.scratch-hint{margin-left:11px;margin-right:11px}}

.math-fraction{display:inline-grid;grid-template-rows:auto 1px auto;align-items:center;justify-items:stretch;min-width:1.1em;margin:0 .08em;vertical-align:-.34em;text-align:center;font-size:.88em;line-height:1.05;font-variant-numeric:lining-nums}.math-fraction .fraction-top,.math-fraction .fraction-bottom{padding:0 .13em}.math-fraction .fraction-rule{height:1px;background:currentColor}.mixed-connector{display:inline-block;margin:0 .05em;vertical-align:middle}.question-prompt .math-fraction{font-size:.78em;vertical-align:-.4em}.explanation .math-fraction{font-size:.84em}
.fraction-entry{margin-top:10px;border:1px solid #e8e5f0;border-radius:13px;background:#fbfaff;overflow:hidden}.fraction-entry summary{display:flex;align-items:center;justify-content:space-between;gap:10px;list-style:none;padding:11px 14px;color:#514a70;font-size:11px;font-weight:800;cursor:pointer}.fraction-entry summary::-webkit-details-marker{display:none}.fraction-entry summary::after{content:'＋';color:#8d84ad}.fraction-entry[open] summary::after{content:'−'}.fraction-entry summary span{margin-left:auto;color:#918ca1;font-size:9px;font-weight:500}.fraction-entry-body{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:2px 13px 12px}.whole-number-field{display:flex;flex-direction:column;gap:5px;color:#6f6a80;font-size:9px;font-weight:700}.whole-number-field span{display:inline;color:#9691a3;font-size:8px;font-weight:500}.whole-number-field input,.fraction-entry-stack input{box-sizing:border-box;width:62px;height:32px;border:1px solid #dedbe8;border-radius:8px;background:white;color:#39354a;text-align:center;font-size:15px;font-weight:700;font-family:inherit;outline:none}.whole-number-field input:focus,.fraction-entry-stack input:focus{border-color:#7565d7;box-shadow:0 0 0 2px #7565d722}.fraction-entry-stack{display:grid;grid-template-rows:auto 2px auto;justify-items:center;gap:3px}.fraction-entry-stack label{display:flex;flex-direction:column;align-items:center;gap:3px;color:#6f6a80;font-size:8px;font-weight:700}.fraction-entry-stack input{width:55px;height:29px;font-size:13px}.fraction-entry-bar{width:52px;height:2px;border-radius:2px;background:#706987}.fraction-use-button{min-height:34px;padding:7px 11px;border:0;border-radius:9px;background:#eeeaff;color:#5848bd;font-family:inherit;font-size:10px;font-weight:800;cursor:pointer}.fraction-use-button:hover{background:#e2dcff}.fraction-status{display:flex;align-items:center;gap:4px;min-height:25px;margin:0;padding:0 2px;color:#777188;font-size:9px}.fraction-status:empty{display:none}
@media(max-width:620px){.fraction-entry summary{padding:10px 12px;font-size:10px}.fraction-entry-body{gap:8px;padding:2px 10px 10px}.whole-number-field input{width:52px}.fraction-entry-stack input{width:48px}.fraction-entry-bar{width:45px}.fraction-use-button{font-size:9px;padding:7px 8px}.fraction-status{width:100%;font-size:9px}}

.whole-number-field input,.fraction-entry-stack input{font-family:inherit;font-size:15px;font-weight:700}.fraction-entry-stack input{font-size:13px}

.scratch-tool:focus-visible,.fraction-use-button:focus-visible,.scratchpad summary:focus-visible,.fraction-entry summary:focus-visible{outline:3px solid #a99afc;outline-offset:2px}

.feedback .answer-reveal{margin:7px 0 5px;padding:7px 10px;border:1px solid #ffffffa8;border-radius:9px;background:#ffffffa8;font-size:14px;font-weight:800}.feedback .answer-reveal b{font-size:16px;font-weight:900}


/* 日替わりサイドクエスト */
.side-quest-section{padding:0 0 16px}.side-quest-card{display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:16px;padding:18px 22px;border:1px solid #eee8d9;border-radius:20px;background:linear-gradient(110deg,#fffaf0,#fff 76%);box-shadow:0 8px 24px #5b4a2208;transition:background .25s,border-color .25s}.side-quest-card.completed{border-color:#bfe8d8;background:linear-gradient(110deg,#effbf6,#fff 76%)}.side-quest-icon{width:46px;height:46px;display:grid;place-items:center;border-radius:15px;background:#ffedbd;font-size:24px}.side-quest-card.completed .side-quest-icon{background:#d4f3e5}.side-quest-main{min-width:0}.side-quest-main .section-kicker{margin:0 0 3px;font-size:9px}.side-quest-main h2{margin:0;font-size:12px;font-weight:900;color:#858197}.side-quest-title{margin:1px 0 2px;font-size:17px;font-weight:900;letter-spacing:-.02em}.side-quest-detail{margin:0 0 8px;font-size:11px;color:#858197;font-weight:600}.side-quest-track{height:7px;max-width:460px;overflow:hidden;border-radius:10px;background:#eeecf2}.side-quest-track span{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,#ffcf66,#f2a94f);transition:width .4s ease}.side-quest-card.completed .side-quest-track span{background:linear-gradient(90deg,#74d3a5,#39af7e)}.side-quest-reward{min-width:95px;display:flex;flex-direction:column;align-items:center;gap:4px;padding:10px 13px;border-radius:14px;background:#fff4d7;color:#a16e20}.side-quest-card.completed .side-quest-reward{background:#dcf6e9;color:#27815d}.side-quest-reward b{font-size:13px;font-weight:900}.side-quest-reward span{font-size:10px;font-weight:800;text-align:center}
/* クリア数で広がる冒険マップ */
.campaign-card{margin-top:18px;padding:21px 24px 17px;border:1px solid #e9e6f3;border-radius:21px;background:linear-gradient(115deg,#fff,#f8f6ff);box-shadow:0 7px 24px #38325608}.campaign-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.campaign-heading .section-kicker{margin:0 0 2px;font-size:9px}.campaign-heading h3{margin:0;font-size:17px;font-weight:900}.campaign-heading>span{padding:6px 10px;border-radius:20px;background:#f0edfa;color:#77718f;font-size:10px;font-weight:900}.campaign-current{margin:9px 0 12px;color:#77738b;font-size:11px;font-weight:700}.campaign-route{display:flex;align-items:center;overflow-x:auto;padding:6px 1px 10px;scrollbar-color:#d9d2fa transparent;scrollbar-width:thin}.campaign-node{flex:0 0 116px;display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center;color:#9692a5}.campaign-orb{width:42px;height:42px;display:grid;place-items:center;border:2px solid #e7e5ee;border-radius:50%;background:#f2f1f5;filter:grayscale(1);opacity:.62;font-size:19px;transition:transform .2s,background .2s}.campaign-node b{font-size:10px;line-height:1.3;font-weight:900}.campaign-node small{font-size:9px;font-weight:700}.campaign-node.unlocked{color:#6d648f}.campaign-node.unlocked .campaign-orb{border-color:#dcd4ff;background:#eeeaff;filter:none;opacity:1}.campaign-node.current{color:#5d43d1}.campaign-node.current .campaign-orb{border-color:#8d77ee;background:#7157e8;box-shadow:0 0 0 5px #7157e820;transform:translateY(-2px);filter:none;opacity:1}.campaign-node.current .campaign-orb{color:white}.campaign-link{position:relative;flex:1 0 18px;height:3px;min-width:18px;margin:0 2px 24px;border-radius:9px;background:#e9e7ef}.campaign-link.lit{background:linear-gradient(90deg,#ad9cf5,#7b65e6)}.campaign-next{margin:2px 0 0;padding:9px 12px;border-radius:11px;background:#f2efff;color:#6651c6;font-size:11px;font-weight:900}
@media(max-width:620px){.side-quest-section{padding-bottom:10px}.side-quest-card{grid-template-columns:36px minmax(0,1fr) auto;gap:9px;padding:14px 12px;border-radius:17px}.side-quest-icon{width:34px;height:34px;border-radius:11px;font-size:18px}.side-quest-main h2{font-size:10px}.side-quest-title{font-size:14px}.side-quest-detail{font-size:9px;line-height:1.5}.side-quest-reward{min-width:63px;padding:8px 6px}.side-quest-reward b{font-size:11px}.side-quest-reward span{font-size:8px}.campaign-card{padding:17px 14px 14px}.campaign-node{flex-basis:94px}.campaign-orb{width:38px;height:38px;font-size:17px}.campaign-node b{font-size:9px}.campaign-node small{font-size:8px}.campaign-link{flex-basis:12px;min-width:12px}.campaign-current,.campaign-next{font-size:10px;line-height:1.5}}
