:root{--bg:#f5f4ef;--surface:#fff;--surface-sunken:#efede6;--text:#1c2230;--muted:#5b6474;--border:#dcd9cf;--accent:#2a47c9;--accent-contrast:#fff;--accent-soft:#e8ecfb;--correct:#17734a;--correct-soft:#e3f3ea;--incorrect:#b8322b;--incorrect-soft:#fbe9e7;--warning:#9a5b00;--radius:12px;--shadow:0 1px 2px #1418280f, 0 4px 16px #1418280d;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial;--bg:#13151a;--surface:#1c1f26;--surface-sunken:#262a33;--text:#e9eaee;--muted:#a0a7b4;--border:#323744;--accent:#93a4ff;--accent-contrast:#10131c;--accent-soft:#252c4a;--correct:#58c895;--correct-soft:#173326;--incorrect:#ff8a80;--incorrect-soft:#3d1f1d;--warning:#f0b45a;--shadow:none}}*,:before,:after{box-sizing:border-box}body{background:var(--bg);color:var(--text);-webkit-text-size-adjust:100%;overflow-wrap:anywhere;margin:0;font-family:Hiragino Sans,Hiragino Kaku Gothic ProN,Noto Sans JP,Yu Gothic UI,Meiryo,system-ui,sans-serif;font-size:16px;line-height:1.8}h1,h2,p,ul,ol{margin:0}ul,ol{padding:0;list-style:none}button{font:inherit;color:inherit}:focus-visible{outline:3px solid var(--accent);outline-offset:2px}h1:focus{outline:none}.visually-hidden{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.page{flex-direction:column;gap:24px;max-width:720px;margin:0 auto;padding:24px 16px 64px;display:flex}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding:24px}.card-title,.section-title{margin-bottom:12px;font-size:1.05rem;line-height:1.5}.eyebrow{color:var(--accent);letter-spacing:.04em;font-size:.85rem;font-weight:700}.note{color:var(--muted);font-size:.9rem}.count{color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap}.btn{border:1px solid var(--border);background:var(--surface);cursor:pointer;border-radius:10px;min-height:48px;padding:8px 20px;font-weight:700}.btn:hover:not(:disabled){border-color:var(--accent)}.btn:disabled{opacity:.45;cursor:not-allowed}.btn-primary{background:var(--accent);border-color:var(--accent);color:var(--accent-contrast)}.btn-primary:hover:not(:disabled){filter:brightness(1.08)}.btn-wide{width:100%}.link-button{color:var(--muted);cursor:pointer;background:0 0;border:none;padding:8px 4px;font-size:.9rem;text-decoration:underline}.hero{padding:24px 0 8px}.hero h1{word-break:keep-all;margin:4px 0 12px;font-size:clamp(1.7rem,6vw,2.3rem);line-height:1.35}.lead{color:var(--muted)}.mode-grid{grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px;margin-bottom:12px;display:grid}.mode-card{text-align:left;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);cursor:pointer;flex-direction:column;gap:8px;padding:20px;display:flex}.mode-card:hover{border-color:var(--accent)}.mode-name{font-size:1.15rem;font-weight:700}.mode-desc{color:var(--muted);flex:1;font-size:.92rem}.mode-cta{border:1px solid var(--accent);color:var(--accent);text-align:center;border-radius:10px;margin-top:8px;padding:10px 16px;font-weight:700}.mode-card-primary .mode-cta{background:var(--accent);color:var(--accent-contrast)}.category-list{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:4px 20px}.category-list li{border-bottom:1px solid var(--border);justify-content:space-between;gap:16px;padding:10px 0;display:flex}.category-list li:last-child{border-bottom:none}.quiz-bar{z-index:1;background:var(--bg);border-bottom:1px solid var(--border);margin:-24px -16px 0;padding:8px 16px 12px;position:sticky;top:0}.quiz-bar-row{align-items:center;gap:12px;display:flex}.quiz-mode{color:var(--muted);margin-right:auto;font-size:.9rem}.timer{font-variant-numeric:tabular-nums;font-weight:700}.timer-low{color:var(--incorrect)}.progress,.bar{background:var(--surface-sunken);border-radius:999px;height:6px;overflow:hidden}.progress-fill,.bar-fill{border-radius:inherit;background:var(--accent);height:100%;transition:width .2s}.question-meta{flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:8px;display:flex}.tag{background:var(--accent-soft);color:var(--accent);border-radius:999px;padding:2px 10px;font-size:.8rem;font-weight:700}.question-number{margin-bottom:16px;font-size:1.3rem;line-height:1.4}.question-total{color:var(--muted);font-size:.95rem;font-weight:400}.passage{border-left:4px solid var(--accent);background:var(--surface-sunken);white-space:pre-line;border-radius:4px 8px 8px 4px;margin-bottom:16px;padding:14px 16px}.prompt{margin-bottom:16px;font-weight:700}.choices{flex-direction:column;gap:10px;display:flex}.choice,.review-choices li{border:1.5px solid var(--border);background:var(--surface);text-align:left;border-radius:10px;flex-wrap:wrap;align-items:flex-start;gap:4px 12px;width:100%;padding:12px 14px;line-height:1.7;display:flex}.choice{cursor:pointer;min-height:52px}.choice:hover:not([aria-disabled=true]){border-color:var(--accent)}.choice[aria-disabled=true]{cursor:default}.choice-letter{background:var(--surface-sunken);width:28px;height:28px;color:var(--muted);text-align:center;border-radius:50%;flex:none;font-size:.85rem;font-weight:700;line-height:28px}.choice-text{flex:1;min-width:0}.choice-mark{flex-basis:100%;padding-left:40px;font-size:.82rem;font-weight:700}.choice.selected{border-color:var(--accent);background:var(--accent-soft)}.choice.selected .choice-letter{background:var(--accent);color:var(--accent-contrast)}.correct{border-color:var(--correct)!important;background:var(--correct-soft)!important}.correct .choice-letter{background:var(--correct);color:var(--surface)}.correct .choice-mark{color:var(--correct)}.incorrect{border-color:var(--incorrect)!important;background:var(--incorrect-soft)!important}.incorrect .choice-letter{background:var(--incorrect);color:var(--surface)}.incorrect .choice-mark{color:var(--incorrect)}.choice.dimmed{opacity:.6}.feedback{border-top:1px solid var(--border);margin-top:20px;padding-top:16px}.feedback-title{margin-bottom:6px;font-weight:700}.feedback.is-correct .feedback-title{color:var(--correct)}.feedback.is-incorrect .feedback-title{color:var(--incorrect)}.quiz-nav{justify-content:space-between;gap:12px;display:flex}.quiz-nav .btn{flex:1}.navigator-head{justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:12px;display:flex}.navigator-head h2{font-size:1rem}.navigator-head p{color:var(--muted);font-variant-numeric:tabular-nums;font-size:.9rem}.navigator-grid{grid-template-columns:repeat(auto-fill,minmax(44px,1fr));gap:8px;margin-bottom:16px;display:grid}.nav-cell{border:1.5px solid var(--border);background:var(--surface);width:100%;height:44px;color:var(--muted);font-variant-numeric:tabular-nums;cursor:pointer;border-radius:8px}.nav-cell.is-answered{background:var(--accent-soft);border-color:var(--accent-soft);color:var(--accent);font-weight:700}.nav-cell.is-current{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent)}.dialog{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);width:min(440px,100vw - 32px);color:var(--text);padding:24px}.dialog::backdrop{background:#0a0c148c}.dialog h2{margin-bottom:8px;font-size:1.15rem}.dialog-actions{flex-wrap:wrap;justify-content:flex-end;gap:12px;margin-top:20px;display:flex}.score-card{text-align:center}.score{margin:8px 0;line-height:1.2}.score-value{font-variant-numeric:tabular-nums;color:var(--accent);font-size:clamp(3rem,14vw,4.5rem)}.score-total{color:var(--muted);font-size:1.1rem}.score-sub{font-variant-numeric:tabular-nums}.score-hint{color:var(--muted);margin-top:8px;font-size:.92rem}.notice{background:var(--surface-sunken);color:var(--warning);border-radius:8px;margin-top:12px;padding:10px 14px;font-size:.92rem;font-weight:700}.score-actions{flex-wrap:wrap;justify-content:center;gap:12px;margin-top:20px;display:flex}.bars{flex-direction:column;gap:14px;display:flex}.bar-label{justify-content:space-between;gap:16px;margin-bottom:4px;font-size:.95rem;display:flex}.bar{height:8px}.review-head{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px 16px;margin-bottom:12px;display:flex}.review-head .section-title{margin-bottom:0}.segmented{background:var(--surface-sunken);border-radius:10px;padding:3px;display:inline-flex}.segmented button{min-height:40px;color:var(--muted);cursor:pointer;background:0 0;border:none;border-radius:8px;padding:4px 14px;font-size:.9rem}.segmented button[aria-pressed=true]{background:var(--surface);color:var(--text);box-shadow:var(--shadow);font-weight:700}.segmented button:disabled{opacity:.5;cursor:not-allowed}.review-list{flex-direction:column;gap:16px;display:flex}.review-number{font-weight:700}.result-badge{border-radius:999px;padding:2px 10px;font-size:.8rem;font-weight:700}.result-badge.is-correct{background:var(--correct-soft);color:var(--correct)}.result-badge.is-incorrect{background:var(--incorrect-soft);color:var(--incorrect)}.review-choices{flex-direction:column;gap:8px;margin-bottom:16px;display:flex}.review-item .explanation{border-top:1px solid var(--border);padding-top:14px}@media (width<=480px){.card{padding:18px 16px}.score-actions .btn{width:100%}}@media (prefers-reduced-motion:reduce){*{transition:none!important}}
