:root{font-family:Inter,"Noto Sans JP",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#202c48;background:#f7f9ff;font-synthesis:none;line-height:1.7;--blue:#325fe8;--muted:#6e7b95;--border:#e5eaf4}
*{box-sizing:border-box}body{margin:0}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;min-height:48px;border-radius:12px;border:1px solid var(--border);background:white;color:inherit;padding:10px 22px;font-weight:650}button:hover:enabled{background:#eef3ff}button:disabled{cursor:default;opacity:.4}button:focus-visible,a:focus-visible,svg:focus-visible{outline:3px solid #92b0ff;outline-offset:5px}.shell{max-width:1040px;margin:auto;padding:0 32px}.header{height:100px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border)}.brand{font-size:23px;font-weight:800;color:inherit;text-decoration:none;letter-spacing:.03em;display:flex;align-items:center;gap:9px}.brand-icon{display:grid;place-items:center;width:28px;height:28px;background:var(--blue);color:white;border-radius:8px;font-size:28px;line-height:1}.header-note{color:var(--muted);font-size:12px;letter-spacing:.08em}main{max-width:800px;margin:0 auto;min-height:calc(100svh - 210px);padding:54px 0 40px}.eyebrow{font-size:11px;letter-spacing:.19em;font-weight:750;color:var(--blue);margin:0 0 14px}.hero{text-align:center;padding:13px 0 0}h1{font-size:clamp(29px,5vw,43px);line-height:1.5;letter-spacing:.035em;margin:0 0 16px;font-weight:800}h2{font-size:24px;line-height:1.6;margin:0}.lead{color:var(--muted);font-size:14px;margin:0}.demo{max-width:530px;margin:20px auto 6px;display:block;width:100%;height:145px}.card{background:white;border:1px solid var(--border);border-radius:20px;box-shadow:0 5px 24px #243c6f04}.home-panel{max-width:570px;margin:0 auto;padding:28px 34px}.best-row{display:flex;align-items:center;justify-content:space-between;gap:15px}.small-label{font-size:12px;color:var(--muted)}.best-value{font-size:27px;font-weight:750;font-variant-numeric:tabular-nums}.rules{border-top:1px solid var(--border);padding-top:20px;margin:17px 0 23px;text-align:left;list-style:none;padding-left:0;display:grid;gap:9px;color:#596781;font-size:13px}.rules li{display:flex;gap:12px}.rule-num{color:var(--blue);font-weight:700;font-size:11px;padding-top:2px}.primary{background:var(--blue);border-color:var(--blue);color:white;box-shadow:0 4px 10px #325fe819}.primary:hover:enabled{background:#244ed0}.wide{width:100%}.button-arrow{float:right;font-size:20px;line-height:1.3}.fine-print{font-size:11px;color:var(--muted);text-align:center;margin:15px 0 0}.progress-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.round-label{font-size:12px;font-weight:700;letter-spacing:.12em}.total-label{font-size:12px;color:var(--muted)}.total-label strong{color:#202c48;font-size:20px;margin-left:10px;font-variant-numeric:tabular-nums}.progress{display:flex;gap:7px;margin-bottom:33px}.progress span{height:4px;flex:1;border-radius:8px;background:#e3e9f6}.progress .done{background:var(--blue)}.progress .current{background:#9db5ff}.question-heading{text-align:center}.badge{display:inline-block;font-size:11px;font-weight:700;color:var(--blue);background:#eaf0ff;border-radius:6px;padding:3px 11px;margin-bottom:14px}.ratio{font-size:38px;font-weight:750;line-height:1.4;letter-spacing:.05em;margin:13px 0 2px}.ratio-caption{font-size:12px;color:var(--muted);margin:0}.board{margin-top:25px;padding:12px 20px 22px;overflow:hidden}.plot{display:block;width:100%;height:210px;touch-action:none;border-radius:12px}.board-hint{text-align:center;color:var(--muted);font-size:12px;margin:0 0 20px}.adjust{display:flex;justify-content:center;align-items:center;gap:16px}.adjust button{width:52px;padding:6px;font-size:24px;line-height:1}.adjust span{color:var(--muted);font-size:11px;max-width:135px;text-align:center}.actions{max-width:360px;margin:25px auto 0}.keyboard-hint{text-align:center;font-size:11px;color:var(--muted);margin-top:13px}.feedback{margin:22px 0 0;padding:22px 25px}.feedback-top{display:flex;justify-content:space-between;align-items:center;gap:15px}.feedback-title{font-size:16px;font-weight:750;margin:0}.feedback-score{color:var(--blue);font-size:30px;font-weight:750;font-variant-numeric:tabular-nums}.feedback-details{display:flex;gap:20px;flex-wrap:wrap;border-top:1px solid var(--border);margin-top:13px;padding-top:13px;font-size:12px;color:var(--muted)}.legend{display:flex;justify-content:center;gap:22px;font-size:12px;margin-top:8px}.legend span{display:flex;align-items:center;gap:7px}.dot{width:9px;height:9px;border-radius:50%;background:var(--blue)}.dot.correct{background:#13997d}.result-hero{text-align:center}.result-score{font-size:76px;line-height:1.2;font-weight:750;color:var(--blue);letter-spacing:-.04em;margin:12px 0}.result-note{font-size:12px;color:var(--muted)}.record{display:inline-block;border-radius:20px;color:#117c65;background:#e4f7ef;font-size:12px;padding:5px 15px;margin:12px 0 3px}.result-card{max-width:570px;margin:25px auto 0;padding:22px 28px}.result-best{border-bottom:1px solid var(--border);padding-bottom:16px;margin-bottom:8px}table{border-collapse:collapse;width:100%;font-size:12px}th{font-size:10px;color:var(--muted);font-weight:500;text-align:left;padding:12px 0 7px}td{padding:11px 0;border-bottom:1px solid #f0f3f9}td:last-child,th:last-child{text-align:right}td:last-child{font-weight:700;font-variant-numeric:tabular-nums}tbody tr:last-child td{border-bottom:0}.storage-notice{color:#91540b;font-size:12px;text-align:center;margin:16px 0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}footer{padding:23px 0 26px;border-top:1px solid var(--border);text-align:center;color:#8a95aa;font-size:11px}footer span{display:block;margin-top:4px;font-size:10px}
@media(max-width:600px){.shell{padding:0 20px}.header{height:76px}.brand{font-size:20px}.header-note{font-size:9px;letter-spacing:0}main{padding-top:33px;min-height:calc(100svh - 190px)}.home-panel{padding:23px}.hero{padding-top:7px}.demo{height:125px;margin-top:10px}.lead{font-size:12px}.board{padding:6px 8px 20px;margin-top:20px}.plot{height:200px}h2{font-size:20px}.ratio{font-size:34px}.progress{margin-bottom:25px}.feedback{padding:18px}.feedback-details{gap:9px 18px}.result-card{padding:19px}.result-score{font-size:65px}.keyboard-hint{font-size:10px}.header-note{max-width:110px;text-align:right}.result-note{font-size:11px}}
@media(prefers-reduced-motion:no-preference){button{transition:background .15s,opacity .15s}.card{animation:appear .25s ease-out}@keyframes appear{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}}

.result-share{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:16px}.result-share a{display:flex;align-items:center;justify-content:center;min-height:48px;padding:10px 12px;border-radius:12px;color:#fff;text-decoration:none;font-size:14px;font-weight:650}.result-share-x{background:#202124}.result-share-line{background:#087f3d}.result-share a:hover{filter:brightness(.9)}
