:root{--bg:#f7f7f4;--ink:#171717;--panel:#fff;--border:#deded7;--muted:#696b73;--blue:#2563eb;--success:#147a52;--danger:#b91c1c}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font-family:Arial,'Noto Sans JP',sans-serif}button,input{font:inherit}button{cursor:pointer}.gate{min-height:100vh;display:grid;place-items:center;padding:20px;background:#fff}.gate-card{max-width:470px;text-align:center}.logo,.badge{display:grid;place-items:center;background:#102a5c;color:#fff}.logo{margin:auto;width:58px;height:58px;border-radius:12px;font-weight:bold;font-size:22px}.kicker,.label{font-size:11px;font-weight:bold;letter-spacing:.08em;color:var(--muted)}.gate h1{margin:13px 0 6px;font-size:32px}.gate p{font-size:14px;line-height:1.7;color:var(--muted)}label{display:block;text-align:left;margin:23px 0 12px;font-size:13px;font-weight:bold}input{display:block;width:100%;border:1px solid var(--border);border-radius:6px;padding:12px;margin-top:7px}.primary{border:0;border-radius:6px;padding:12px 18px;color:#fff;background:var(--blue);font-weight:bold}.gate .primary{width:100%;margin-bottom:13px}.gate small{color:var(--muted)}header{border-bottom:1px solid var(--border);background:#fff;padding:22px max(5vw,22px);display:flex;justify-content:space-between;align-items:center;gap:20px}.wordmark{color:var(--ink);text-decoration:none;font-weight:bold;font-size:22px}.wordmark b{color:var(--blue)}header p{margin:6px 0 0;font-size:13px;color:var(--muted)}nav{display:flex;gap:20px;align-items:center}nav a{color:var(--blue);font-size:13px;text-decoration:none}.profile{border:0;border-radius:50%;width:36px;height:36px;background:#e8efff;color:#1d4ed8;font-weight:bold}.layout{max-width:1160px;margin:auto;padding:28px 20px;display:grid;grid-template-columns:280px 1fr;gap:26px}.progress-card,.problem,.guide article{background:var(--panel);border:1px solid var(--border);border-radius:7px}.progress-card{padding:21px;height:max-content;position:sticky;top:16px}.label{margin:0 0 11px}.level-row{display:flex;align-items:end;justify-content:space-between}.level-row strong{font-size:33px;color:var(--blue)}.level-row div{font-size:12px;text-align:right;color:var(--muted)}.level-row b{display:block;font-size:21px;color:var(--ink)}.badge{height:142px;margin:20px auto;border-radius:8px;background:linear-gradient(135deg,#1e3a8a,#2563eb)}.badge span{font-size:34px;font-weight:bold}.badge small{margin-top:-28px;font-size:9px;letter-spacing:.13em}.next{border:1px solid #bfdbfe;background:#eff6ff;border-radius:6px;padding:14px;text-align:center;color:#1d4ed8;margin:18px 0}.next span,.next b{display:block}.next b{font-size:27px}.progress-numbers b{font-size:28px}.progress-numbers span{color:var(--muted)}.progress-numbers i{font-style:normal}.bar{height:8px;background:#e7e5e4;border-radius:9px;margin:12px 0}.bar i{display:block;height:100%;background:var(--success);border-radius:9px;width:0}.hint,.reset p{font-size:12px;line-height:1.6;color:var(--muted)}.reset{border-top:1px solid var(--border);margin-top:20px;padding-top:18px}.reset button,.danger{width:100%;padding:10px;border:1px solid #fecaca;background:#fff1f2;color:var(--danger);border-radius:6px;font-size:13px;font-weight:bold}.list-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.list-head h1{margin:0;font-size:23px}.list-head p{margin:5px 0 0;color:var(--muted);font-size:13px}.list-head button{border:1px solid var(--border);background:#fff;padding:9px 11px;border-radius:6px;font-size:13px}.category{margin:0 0 27px}.category-title{display:flex;justify-content:space-between;align-items:center;margin:0 0 10px}.category h2{font-size:17px;margin:0}.category span{color:var(--muted);font-size:12px}.problem{padding:16px;margin-bottom:8px;text-decoration:none;color:inherit;display:flex;justify-content:space-between;gap:15px;transition:.15s;text-align:left;width:100%}.problem:hover{border-color:#93c5fd;box-shadow:0 2px 8px #0000000b}.problem h3{font-size:15px;margin:0}.problem p{font-size:13px;line-height:1.6;color:var(--muted);margin:8px 0 0}.number{font:12px monospace;color:var(--muted);margin-right:9px}.pill{align-self:center;white-space:nowrap;border-radius:99px;padding:5px 9px;background:#f1f5f9;color:#64748b;font-size:11px}.pill.done{background:#ecfdf5;color:var(--success)}.guide{max-width:1160px;margin:0 auto 60px;padding:0 20px}.guide h2{font-size:21px}.guide>div{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.guide article{padding:19px}.guide article>b{color:var(--blue);font-size:18px}.guide h3{margin:13px 0 7px;font-size:16px}.guide p{font-size:13px;color:var(--muted);line-height:1.6;margin:0}dialog{width:min(690px,calc(100% - 28px));border:1px solid var(--border);border-radius:9px;padding:28px;box-shadow:0 18px 60px #0004}dialog::backdrop{background:#17203388}.close{border:0;background:transparent;font-size:27px;line-height:1;float:right}.detail-category{font-size:12px;color:var(--blue);font-weight:bold}.detail h2{margin:12px 0;font-size:22px}.detail p{line-height:1.8;color:#404047}.options{display:grid;gap:9px;margin:22px 0}.options button{border:1px solid var(--border);background:#fff;border-radius:6px;padding:12px;text-align:left;font-size:14px}.options button:hover{border-color:#93c5fd}.options button.good{border-color:#6ee7b7;background:#ecfdf5}.options button.bad{border-color:#fca5a5;background:#fff1f2}.feedback{border-radius:6px;background:#f1f5f9;padding:14px;font-size:13px;line-height:1.65}.feedback b{color:var(--success)}#profileDialog h2{margin-top:5px}.danger{margin-top:22px}@media(max-width:760px){header{display:block}nav{margin-top:15px}.layout{grid-template-columns:1fr}.progress-card{position:static}.guide>div{grid-template-columns:1fr}.problem{align-items:flex-start}.wordmark{font-size:19px}}
