:root{--bg: #f7f4ee;--card: #ffffff;--line: #e6dfd2;--ink: #2c2a33;--sub: #6b6458;--navy: #23285c;--navy-sub: #c9cce6;--yellow: #f2c94c;--yellow-dark: #c79a22;--yellow-ink: #3a2a00;--ok: #3f8f5a;--ok-tint: #e3f3e8;--ng: #d9473a;--ng-tint: #fbe3da;--star: #e0a91e;--radius: 14px;font-family:Zen Maru Gothic,Hiragino Maru Gothic ProN,Hiragino Sans,Meiryo,sans-serif;font-weight:500;color:var(--ink);background:var(--bg);-webkit-text-size-adjust:100%}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:var(--bg)}button,input{font:inherit;color:inherit}button{cursor:pointer}h1,h2,h3{font-weight:900;margin:0}p{margin:0}ruby rt{font-size:.55em;font-weight:500}.hide-ruby rt{display:none}.wrap{max-width:960px;margin:0 auto;padding:16px 20px 48px}.header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--ink)}.brand-mark{width:34px;height:34px;border-radius:9px;background:var(--navy);display:grid;grid-template-columns:1fr 1fr;gap:3px;padding:7px}.brand-mark span{border-radius:2px}.brand-name{font-weight:900;font-size:19px;letter-spacing:.02em}.header-right{display:flex;gap:8px;align-items:center;position:relative}.pill{white-space:nowrap;border:1.5px solid var(--line);background:#fff;border-radius:99px;padding:7px 14px;font-weight:700;font-size:14px}.pill.on{background:var(--navy);border-color:var(--navy);color:#fff}.menu{position:absolute;right:0;top:44px;background:#fff;border:1.5px solid var(--line);border-radius:12px;padding:6px;min-width:180px;z-index:10}.menu button,.menu a{display:block;width:100%;text-align:left;background:none;border:0;padding:10px 12px;border-radius:8px;font-weight:700;text-decoration:none;color:var(--ink);font-size:15px}.menu button:hover,.menu a:hover{background:var(--bg)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1.5px solid var(--line);border-bottom-width:5px;background:#fff;border-radius:12px;padding:10px 18px;font-weight:900;font-size:16px;min-height:56px;text-decoration:none;color:var(--ink);transition:transform .05s}.btn:active{transform:translateY(3px);border-bottom-width:2px}.btn.primary{background:var(--yellow);border-color:var(--yellow-dark);color:var(--yellow-ink)}.btn.navy{background:var(--navy);border-color:#11153a;color:#fff}.btn.small{min-height:40px;padding:6px 12px;font-size:14px;border-bottom-width:4px}.btn[disabled]{opacity:.5;cursor:default}.hero{background:var(--navy);border-radius:18px;padding:22px 24px;display:flex;justify-content:space-between;align-items:flex-end;gap:16px;color:#fff}.hero h1{font-size:26px;line-height:1.45;margin:12px 0 6px}.hero .lead{color:var(--navy-sub);font-size:14px;margin-bottom:14px}.badge{display:inline-block;background:var(--yellow);color:var(--yellow-ink);font-weight:900;font-size:13px;padding:4px 12px;border-radius:99px}.tower{text-align:center;flex-shrink:0}.tower-grid{display:grid;grid-template-columns:repeat(4,22px);gap:4px;justify-content:center}.tower-grid span{height:22px;border-radius:4px;border:1.5px dashed #6d72a8}.tower-grid span.filled{border:0}.tower p{font-size:12px;font-weight:700;margin-top:8px}.section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:22px 0 10px;flex-wrap:wrap}.section-head h2{font-size:20px}.filters{display:flex;gap:6px;flex-wrap:wrap}.test-day{font-size:14px;color:var(--sub);font-weight:700;margin:14px 0 8px}.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:12px}.card{background:var(--card);border:1.5px solid var(--line);border-bottom-width:5px;border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:column}.card.link{text-decoration:none;color:inherit;transition:transform .05s}.card.link:active{transform:translateY(3px);border-bottom-width:2px}.card.soon{opacity:.6}.card-art{height:84px;position:relative;overflow:hidden}.card-body{padding:12px 14px 14px;display:flex;flex-direction:column;gap:4px;flex:1}.tag{display:inline-block;font-size:12px;font-weight:700;padding:2px 9px;border-radius:99px;margin-right:4px}.tag.gray{background:#f0ece4;color:var(--sub)}.test-badge{display:inline-block;font-size:12px;font-weight:700;padding:2px 9px;border-radius:99px;background:#fff3cf;color:var(--yellow-ink);white-space:nowrap}.test-badge.today{background:var(--yellow)}.test-badge.done{background:#f0ece4;color:var(--sub)}.card-unit{font-size:12px;color:var(--sub);font-weight:700;margin-top:4px}.subject-group{margin-bottom:18px}.subject-head{font-size:17px;border-left:6px solid;padding-left:8px;margin:6px 0 10px}.picks{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:12px}.pick{display:flex;flex-direction:column;gap:6px;background:var(--card);border:1.5px solid var(--line);border-left-width:8px;border-bottom-width:5px;border-radius:var(--radius);padding:12px 14px;min-height:56px;text-decoration:none;color:inherit;transition:transform .05s}.pick:active{transform:translateY(3px);border-bottom-width:2px}.pick-title{font-weight:900;font-size:18px}.pick-note{font-size:13px;font-weight:700;color:var(--sub)}.card-title{font-weight:900;font-size:18px;margin-top:4px}.card-desc{font-size:13px;color:var(--sub);line-height:1.6}.card-foot{display:flex;justify-content:space-between;align-items:center;margin-top:auto;padding-top:8px;gap:8px}.stars{color:var(--star);letter-spacing:2px;font-size:16px}.stars .off{color:#e0d8c8}.mini-note{font-size:13px;font-weight:700}.play{max-width:680px;margin:0 auto}.play-top{display:flex;justify-content:space-between;align-items:center;font-size:14px;color:var(--sub);font-weight:700;gap:8px}.progress{display:flex;gap:5px;margin:10px 0 18px}.progress span{flex:1;height:10px;border-radius:4px;background:#e9e3d8}.progress span.ok{background:var(--ok)}.progress span.ng{background:var(--ng)}.progress span.now{background:var(--navy);opacity:.35}.scene{background:#fff;border:1.5px solid var(--line);border-radius:12px;padding:14px 16px;line-height:2;font-size:17px;margin-bottom:14px}.prompt{font-size:21px;font-weight:900;line-height:1.9;margin-bottom:14px}.choices{display:flex;flex-direction:column;gap:10px}.choice{display:flex;align-items:center;gap:12px;text-align:left;background:#fff;border:1.5px solid var(--line);border-bottom-width:5px;border-radius:14px;padding:12px 16px;min-height:64px;font-size:18px;font-weight:700;line-height:1.9}.choice:active:not([disabled]){transform:translateY(3px);border-bottom-width:2px}.choice .mark{width:32px;height:32px;border-radius:50%;background:var(--bg);display:grid;place-items:center;font-weight:900;flex-shrink:0;font-size:15px}.choice.correct{background:var(--ok-tint);border-color:var(--ok)}.choice.correct .mark{background:var(--ok);color:#fff}.choice.wrong{background:var(--ng-tint);border-color:var(--ng)}.choice.wrong .mark{background:var(--ng);color:#fff}.choice[disabled]{cursor:default}.hint-btn{background:none;border:0;color:var(--sub);font-weight:700;padding:10px 0;font-size:15px}.hint{background:#fff8e6;border:1.5px solid #f2d58a;border-radius:12px;padding:10px 14px;color:#7a5a00;line-height:1.9;margin-top:6px}.feedback{border-radius:14px;padding:14px 16px;margin-top:14px;line-height:1.9}.feedback.ok{background:var(--ok-tint);color:#24563a}.feedback.ng{background:var(--ng-tint);color:#7d2a1c}.feedback h3{font-size:20px;margin-bottom:4px}.feedback .page{font-size:13px;opacity:.8}.q-figure{margin:0 0 14px;text-align:center}.q-figure img{display:block;width:100%;height:auto;max-width:560px;margin:0 auto;border-radius:12px}.q-figure.question img{max-height:260px;object-fit:contain}.hint .q-figure,.feedback .q-figure{margin:10px 0 2px}.next-row{display:flex;justify-content:flex-end;margin-top:16px}.result{max-width:560px;margin:0 auto;text-align:center}.result .big{font-size:30px;font-weight:900;margin:8px 0 14px}.result-blocks{display:flex;justify-content:center;gap:6px;margin:10px 0}.result-blocks span{width:40px;height:40px;border-radius:6px;border:2px dashed var(--line)}.box-note{border-radius:12px;padding:12px 14px;margin:12px 0;font-weight:700}.box-note.warn{background:#fff8e6;border:1.5px solid #f2d58a;color:#7a5a00}.box-note.good{background:var(--ok-tint);border:1.5px solid #9fd3b1;color:#24563a}.stack{display:flex;flex-direction:column;gap:10px;margin-top:16px}.stats-row{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.stat{background:var(--navy);border-radius:14px;padding:12px;text-align:center;color:#fff}.stat p:first-child{color:var(--navy-sub);font-size:13px}.stat p:last-child{font-size:28px;font-weight:900}.panel{background:#fff;border:1.5px solid var(--line);border-bottom-width:5px;border-radius:var(--radius);padding:14px 16px;margin-top:12px}.panel h2{font-size:17px;margin-bottom:10px}.bar{height:10px;background:#f0ece4;border-radius:5px;overflow:hidden;margin:4px 0 10px}.bar span{display:block;height:100%;border-radius:5px}.stage-line{display:flex;justify-content:space-between;align-items:center;font-weight:700;font-size:15px;text-decoration:none;color:inherit}.panel.soft{background:#fff8e6;border-color:#f2d58a;color:#7a5a00}.cal{display:grid;grid-template-columns:repeat(7,minmax(0,48px));gap:8px;justify-content:start}.cal div{text-align:center;font-size:11px;color:var(--sub)}.cal span{display:block;aspect-ratio:1;border-radius:5px;border:1.5px dashed #e0d8c8;margin-bottom:2px}.cal span.on{border:0;background:var(--ok)}.login{max-width:420px;margin:40px auto}.login .panel{padding:20px}.field{display:flex;flex-direction:column;gap:6px;margin-bottom:12px;font-weight:700}.field input{border:1.5px solid var(--line);border-radius:10px;padding:12px;font-size:17px;background:#fff}.error{color:var(--ng);font-size:14px;font-weight:700;margin-bottom:10px}.demo-banner{background:#fff8e6;border-bottom:1.5px solid #f2d58a;color:#7a5a00;font-size:13px;text-align:center;padding:6px 12px;font-weight:700}@media (max-width: 560px){.hero{flex-direction:column;align-items:stretch}.hero h1{font-size:22px}.brand-name{font-size:15px}.brand-mark{width:28px;height:28px;padding:5px}.header .pill{padding:6px 10px;font-size:13px}.prompt{font-size:19px}}@media print{.no-print,.header,.demo-banner{display:none!important}body,:root{background:#fff}.panel{border:1px solid #ccc;break-inside:avoid}}
