@charset "UTF-8";
:root{--bg:#f5f5ef;--ink:#243a34;--green:#275749;--muted:#747e74;--line:#dfe3d9;--paper:#fff;--soft:#edf2e9;--orange:#b27844;font-family:Inter,"Hiragino Kaku Gothic ProN","Noto Sans JP",Meiryo,sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button,a,input,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default;opacity:.42}button,a{touch-action:manipulation}button:focus-visible,a:focus-visible{outline:3px solid #bd894b;outline-offset:4px}input:focus,textarea:focus{outline:2px solid var(--green);outline-offset:2px}button{transition:background .15s,transform .15s}button:active:not(:disabled){transform:translateY(1px)}[hidden]{display:none!important}.topbar{height:104px;max-width:1320px;margin:auto;padding:0 52px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.brand{color:var(--ink);text-decoration:none;display:flex;gap:13px;align-items:center;font-size:23px;font-weight:750;letter-spacing:.06em}.brand-icon{display:grid;place-items:center;width:45px;height:45px;border-radius:13px;background:var(--green);color:white;font-family:Georgia,serif;font-size:31px;font-style:italic;padding-bottom:5px}.brand small{display:block;color:var(--muted);font-size:10px;font-weight:500;letter-spacing:.05em;margin-top:5px}.version{font-size:11px;color:#647466;background:#e8ede1;border:1px solid #dce3d3;padding:8px 12px;border-radius:30px;letter-spacing:.08em}.version span{padding:0 4px}.layout{max-width:1250px;margin:0 auto;display:grid;grid-template-columns:280px minmax(0,1fr);gap:65px;padding:47px 42px 20px}.sidebar{padding-top:6px}.eyebrow{font-size:10px;font-weight:650;letter-spacing:.15em;color:var(--muted);margin:0 0 22px}.sidebar h1{font-size:29px;line-height:1.8;letter-spacing:.04em;margin:0 0 19px;font-weight:650}.intro{font-size:12px;line-height:2.15;color:#768074;margin-bottom:35px}.set-info{display:flex;gap:13px;align-items:center;border-top:1px solid var(--line);padding:25px 0 13px}.set-icon{font-family:Georgia,serif;font-size:22px;background:#e8eade;border:1px solid #dce1d1;border-radius:10px;width:43px;height:43px;display:grid;place-items:center;color:#667754}.set-info strong{font-size:13px;display:block}.set-info div>span{font-size:11px;color:var(--muted);display:block;margin-top:5px}.text-button{border:0;background:none;color:var(--muted);padding:8px 3px;font-size:12px;min-height:44px}.text-button:hover:not(:disabled){color:var(--green)}#edit-deck{margin-left:54px;font-size:11px}#edit-deck span{margin-left:12px}.session-stats{display:flex;gap:35px;border-bottom:1px solid var(--line);padding:22px 0 26px}.session-stats div>span{display:block;font-size:10px;color:var(--muted);margin-bottom:8px}.session-stats strong{font-weight:500;font-size:26px}.session-stats b{font-weight:500}.session-stats small{font-size:11px;color:var(--muted)}.tip{display:flex;gap:13px;align-items:flex-start;margin-top:35px}.tip-mark{font-size:26px;color:var(--orange)}.tip p{font-size:10px;line-height:2.1;color:var(--muted);margin:0}.tip strong{font-size:11px;color:#626f5c;font-weight:500}.local-note{font-size:9px;margin-top:28px;color:#7e877c}.progress-heading{display:flex;justify-content:space-between;align-items:center;font-size:11px;margin:0 3px 13px;color:var(--muted)}.progress-heading b{font-size:16px;color:var(--green);font-weight:600}.progress{height:4px;background:#e2e6db;border-radius:10px;margin-bottom:24px;overflow:hidden}.progress>div{height:100%;background:#5f8064;transition:width .3s;width:0}.question-card{border:1px solid #e1e5da;border-radius:22px;background:var(--paper);box-shadow:0 8px 40px #374b3610;overflow:hidden}.question{text-align:center;background:#fafbf7;border-bottom:1px solid #e9ece4;padding:30px 20px 26px}.question .eyebrow{font-size:11px;letter-spacing:.09em;margin-bottom:18px}.question h2{font-size:42px;letter-spacing:.06em;line-height:1.4;margin:0 0 15px;overflow-wrap:anywhere}.question h2:focus{outline:none}.direction{font-size:10px;color:#8c9484}.direction span{padding:0 14px}.answer-area{padding:24px 29px 23px}.mode-switch{display:flex;gap:4px;background:#f0f2ec;border:1px solid #e7eadf;padding:4px;border-radius:10px;width:100%;max-width:340px;margin:0 auto 17px}.mode-switch button{flex:1;border:0;background:transparent;color:#82887b;min-height:40px;border-radius:7px;font-size:12px}.mode-switch button[aria-pressed=true]{background:#fff;color:var(--green);box-shadow:0 2px 5px #26372b12;font-weight:600}.mode-switch button>span{font-size:17px;margin-right:5px}.input-caption{display:flex;justify-content:space-between;align-items:center;gap:6px;font-size:10px;color:#727e6c}.ink-tools{display:flex;gap:12px}.ink-tools .text-button{font-size:10px;min-height:40px}.paper{position:relative;height:193px;border:1px solid #dce2d2;border-radius:10px;overflow:hidden;background-color:#fdfdf9;background-image:linear-gradient(transparent 47px,#e5e9df 48px,transparent 49px);background-size:100% 49px}.paper:after{content:"";position:absolute;pointer-events:none;left:22px;right:22px;bottom:48px;border-bottom:1px dashed #cfd8c6}canvas{display:block;width:100%;height:100%;touch-action:none;cursor:crosshair;position:relative;z-index:1}#canvas-placeholder{position:absolute;left:0;right:0;top:76px;text-align:center;color:#b4bbae;font-size:19px;letter-spacing:.08em;pointer-events:none}.paper-label{position:absolute;right:12px;bottom:10px;font-size:8px;color:#abb5a1;letter-spacing:.14em;pointer-events:none}.hint{color:#7b8476;font-size:10px;line-height:1.8;margin:10px 0 0}.privacy{font-size:9px;color:#8b9485;margin:8px 0 0;line-height:1.7}.actions{display:flex;gap:14px;align-items:center;justify-content:space-between;margin-top:18px}.primary,.secondary{min-height:46px;border-radius:10px;padding:12px 24px;font-size:12px;font-weight:550}.primary{background:var(--green);border:1px solid var(--green);color:white;box-shadow:0 3px 8px #234e4314}.primary:hover:not(:disabled){background:#1b4237}.primary span{margin-left:22px}.secondary{background:white;border:1px solid #d9dfd2;color:var(--green)}.secondary:hover{background:var(--soft)}.below-card{text-align:center;font-size:10px;color:#909787;margin:20px 0}.dot{display:inline-block;width:5px;height:5px;background:#98aa8a;border-radius:100%;margin:0 6px 2px 0}footer{text-align:center;color:#9aa08f;font-size:9px;margin:31px 0 10px;letter-spacing:.03em}footer span{padding:0 10px}.keyboard-label{display:block;font-size:12px;color:var(--muted);margin:28px 0 12px}input[type=text],textarea{width:100%;border:1px solid #d5ddce;border-radius:9px;color:var(--ink);background:#fbfcf8}input[type=text]{height:65px;padding:12px 16px;font-size:28px}input::placeholder{color:#abb3a3;font-size:24px}#key-panel{padding-bottom:65px}.recognition{padding:14px;background:#f2f6ec;border-radius:10px;margin-top:14px}.recognition label{display:block;font-size:11px;margin-bottom:8px}.recognition label span{color:var(--muted);font-size:10px;float:right}.recognition input{height:50px;font-size:24px;background:white}.recognition .text-button{font-size:10px;min-height:32px}.status{font-size:11px;color:#7c6041;line-height:1.7;margin:12px 0 0}.status:empty{display:none}.feedback{margin-top:18px;padding:16px 18px;border-radius:10px;background:#eaf3e8;border:1px solid #d6e6d0;line-height:1.9}.feedback.wrong{background:#fff3e7;border-color:#efdcca}.feedback strong{display:block;font-size:17px}.feedback p{font-size:12px;margin:4px 0 0;overflow-wrap:anywhere}.feedback .answer-word{font-size:25px;font-weight:650;letter-spacing:.04em}.results{background:white;border:1px solid var(--line);border-radius:22px;padding:36px;text-align:center}.results h2{font-size:26px;margin:0 0 12px}.results>p{font-size:12px;color:var(--muted)}.score{margin:26px auto 12px;display:flex;gap:13px;align-items:baseline;justify-content:center}.score strong{font-size:77px;font-weight:500;letter-spacing:-.05em}.score span{font-size:15px;color:var(--muted)}.result-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin:27px 0 35px}.results h3{text-align:left;font-size:13px;font-weight:550}.result-row{display:grid;grid-template-columns:24px minmax(0,1fr) minmax(0,1fr);align-items:start;gap:12px;border-top:1px solid var(--line);padding:15px 0;text-align:left;font-size:12px;overflow-wrap:anywhere}.result-row .mark{font-size:17px;color:var(--green)}.result-row.missed .mark{color:#b87748}.result-row small{display:block;color:var(--muted);margin-top:5px;font-size:10px}.result-row .correct-answer{font-size:15px;font-weight:600}.results:focus{outline:none}dialog{border:1px solid var(--line);border-radius:20px;padding:28px;max-width:580px;width:calc(100% - 32px);color:var(--ink);box-shadow:0 20px 100px #0002}dialog::backdrop{background:#1f332e66;backdrop-filter:blur(4px)}.dialog-top{display:flex;justify-content:space-between;align-items:center;gap:12px}.dialog-top h2{font-size:20px;margin:0}.close-button{border:0;border-radius:50%;background:#f0f3ed;font-size:25px;color:var(--green);width:44px;height:44px}dialog p{font-size:12px;line-height:1.9;color:var(--muted)}dialog label{font-size:11px;display:block;margin:20px 0 8px}textarea{resize:vertical;min-height:180px;padding:14px;line-height:1.8;font-size:14px}.dialog-actions{display:flex;justify-content:space-between;gap:10px;margin-top:20px}#editor-error{color:#ae462c;font-size:12px}
@media(min-width:1300px){.layout{padding-top:59px}.question{padding-top:36px;padding-bottom:31px}.paper{height:220px}#canvas-placeholder{top:89px}}
@media(max-width:960px){.layout{grid-template-columns:210px minmax(0,1fr);gap:28px;padding:30px 26px}.topbar{padding:0 28px;height:88px}.sidebar h1{font-size:24px}.answer-area{padding:20px}.sidebar .intro{font-size:11px}.tip p{font-size:9px}}
@media(max-width:700px){.topbar{height:76px;padding:0 20px}.brand{font-size:20px}.brand-icon{width:38px;height:38px;font-size:27px}.version{font-size:9px;padding:7px 9px}.brand small{font-size:8px}.layout{display:block;padding:19px 16px}.sidebar{display:flex;align-items:center;justify-content:space-between;padding:0 4px;margin-bottom:16px;gap:14px}.sidebar>.eyebrow,.sidebar h1,.intro,.session-stats,.tip,.local-note{display:none}.set-info{border:0;padding:0;gap:9px}.set-icon{width:33px;height:33px;font-size:17px;border-radius:8px}.set-info strong{font-size:11px}.set-info div>span{font-size:9px;margin-top:4px}#edit-deck{margin:0;font-size:10px}.progress-heading{margin-bottom:10px;font-size:10px}.progress{margin-bottom:17px}.question-card{border-radius:16px}.question{padding:23px 15px 20px}.question h2{font-size:34px;margin-bottom:11px}.question .eyebrow{font-size:10px;margin-bottom:14px}.answer-area{padding:16px}.mode-switch{margin-bottom:9px}.paper{height:200px}#canvas-placeholder{top:82px;font-size:17px}.input-caption{font-size:10px}.ink-tools{gap:10px}.hint{font-size:9px}.privacy{font-size:8px}.actions{gap:8px}.primary,.secondary{padding:12px 16px;font-size:11px;min-height:48px}.primary span{margin-left:10px}.below-card{margin:16px 0;font-size:9px}footer{margin:25px 0 8px;font-size:8px}.results{padding:26px 19px}.results h2{font-size:23px}.result-row{gap:9px}dialog{padding:20px}.dialog-actions .primary,.dialog-actions .secondary{padding:10px 12px}.recognition label span{float:none;display:block;margin-top:4px}input[type=text]{font-size:25px}#key-panel{padding-bottom:60px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
.learner-bar{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:12px 17px;margin-bottom:20px;background:#e9efe5;border-radius:12px;font-size:12px}.learner-bar>span:first-child{font-weight:650;flex:1;overflow-wrap:anywhere}.learner-bar .text-button{font-size:10px}.learner-bar b{color:var(--green)}#learner-form{text-align:left;max-width:410px;margin:25px auto}#learner-form label{display:block;font-size:12px;margin-bottom:10px}#learner-form input{font-size:20px}#learner-form input::placeholder{font-size:17px}#learner-form>.primary{width:100%;margin-top:22px}.send-box{text-align:left;background:#f2f6ee;border:1px solid #dce6d4;border-radius:12px;padding:20px;margin:25px 0}.send-box h3{margin:0 0 10px}.send-box>p{font-size:12px;line-height:1.9}.send-box>.primary{margin-top:12px}.send-box .status{overflow-wrap:anywhere}.import-preview{max-height:210px;overflow:auto;border:1px solid var(--line);border-radius:9px;margin:15px 0;padding:10px 15px;font-size:12px}.import-row{display:grid;grid-template-columns:1fr 1fr;gap:15px;padding:7px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}#assignment-title{height:47px;font-size:16px}#assignment-title::placeholder{font-size:15px}#create-assignment{width:100%;margin-top:15px}#share-panel{border-top:1px solid var(--line);margin-top:22px;padding-top:10px}#share-panel h3{font-size:15px}#student-link{min-height:80px;font-size:11px;line-height:1.5}#copy-link,#try-assignment{margin:10px 4px 0 0}#app-notice{margin:0 0 15px}#app-notice:empty{display:none}#editor{max-width:680px}#edit-deck{margin-left:0}#send-status.success{color:var(--green);font-weight:600}@media(max-width:700px){.learner-bar{font-size:11px;gap:10px;padding:10px 13px}.learner-bar>span:first-child{flex-basis:100%}.learner-bar .text-button{margin-left:auto}.send-box{padding:15px}.sidebar #edit-deck{font-size:9px;max-width:135px}#welcome{padding:25px 18px}#welcome h2{font-size:22px}}

#teacher-login{max-width:440px}#teacher-password{display:block;width:100%;padding:12px 14px;margin-top:10px;border:1px solid var(--line);border-radius:8px;font-size:22px;letter-spacing:.18em;background:white;color:var(--ink)}#teacher-login-error{min-height:1.6em;color:#a34f3b;font-size:12px;line-height:1.7}#teacher-login label{font-size:13px}
