:root{--ink:#1a1a1a;--vermilion:#a23b3b;--guide:#dadada;--guide-strong:#c0c0c0;--trace:#cfcfcf;--paper:#ffffff}*{box-sizing:border-box}html,body{margin:0;padding:0}body{font-family:Noto Sans,Noto Sans JP,Hiragino Kaku Gothic ProN,Yu Gothic,Arial,sans-serif;color:var(--ink);background:#e9e9e9}.cjk{font-family:"Noto Serif JP",Hiragino Mincho ProN,Yu Mincho,serif}.ws-bar{position:sticky;top:0;z-index:20;background:var(--ink);color:#fff;padding:10px 18px;display:flex;gap:14px;align-items:center;flex-wrap:wrap;font-size:14px}.ws-bar .brand{font-family:"Noto Serif",Georgia,serif;font-size:17px}.ws-bar .brand .d{color:var(--vermilion)}.ws-bar a{color:#cfcfcf;text-decoration:none;font-size:13px}.ws-bar a:hover{color:#fff;text-decoration:underline}.ws-bar button{background:var(--vermilion);color:#fff;border:0;border-radius:6px;padding:8px 14px;font-weight:600;cursor:pointer;font-size:13px}.ws-bar button:hover{opacity:.9}.ws-bar .spacer{flex:1}.ws-bar .hint{color:#bdbdbd;font-size:12px}.sheet{width:210mm;min-height:297mm;background:var(--paper);margin:22px auto;padding:15mm 15mm 12mm;box-shadow:0 2px 16px #0000002e;position:relative;display:flex;flex-direction:column}.ws-head{display:flex;justify-content:space-between;align-items:flex-end;border-bottom:2px solid var(--ink);padding-bottom:6px}.brand{font-family:"Noto Serif",Georgia,serif;font-size:19px;letter-spacing:.5px}.brand .dot{color:var(--vermilion)}.ws-meta{font-size:12px;text-align:right;line-height:1.7}.ws-meta .line{display:inline-block;border-bottom:1px solid var(--ink);width:38mm}.ws-no{font-size:11px;color:#555}.ws-title{margin:13px 0 2px;font-size:21px;font-weight:700}.ws-title .cat{color:var(--vermilion)}.ws-instr{font-size:13px;color:#333;margin:0 0 3px;line-height:1.5}.ws-lang{font-size:11px;color:#777;margin:0 0 12px}.row{display:flex;gap:0;margin-bottom:7mm;align-items:center}.rlabel{width:22mm;flex:0 0 22mm;font-size:14px;color:#444}.rlabel .rj{font-size:11px;color:#888}.cells{display:flex;gap:3.5mm;flex-wrap:wrap}.cell{width:21mm;height:21mm;flex:0 0 21mm;border:1.2px solid var(--guide-strong);position:relative;border-radius:2px;display:flex;align-items:center;justify-content:center;font-size:44px;line-height:1}.cell.sm{font-size:32px}.cell:before{content:"";position:absolute;left:50%;top:6%;height:88%;width:1px;background:repeating-linear-gradient(to bottom,var(--guide) 0 3px,transparent 3px 6px)}.cell:after{content:"";position:absolute;top:50%;left:6%;width:88%;height:1px;background:repeating-linear-gradient(to right,var(--guide) 0 3px,transparent 3px 6px)}.cell .glyph{position:relative;z-index:1}.cell .trace{color:var(--trace)}.cell .romaji{position:absolute;top:1.2mm;left:1.6mm;font-size:10px;color:#8a8a8a;z-index:2}.match{display:flex;justify-content:space-between;max-width:118mm;margin:5mm 0 0}.match .col{display:flex;flex-direction:column;gap:6mm}.match .chip{border:1.2px solid var(--guide-strong);border-radius:6px;width:38mm;padding:4.5mm 0;text-align:center;font-size:28px;position:relative}.match .chip .node{position:absolute;top:50%;width:9px;height:9px;border-radius:50%;background:var(--ink);transform:translateY(-50%)}.match .left .node{right:-5px}.match .right .node{left:-5px}.match .right .chip{font-size:20px}.kanji-top{display:flex;gap:8mm;align-items:flex-start;margin-bottom:5mm}.kanji-hero{width:46mm;height:46mm;flex:0 0 46mm;border:1.6px solid var(--ink);border-radius:4px;display:flex;align-items:center;justify-content:center;font-size:96px;position:relative;overflow:hidden}.kanji-hero:before{content:"";position:absolute;left:50%;top:4%;height:92%;width:1px;background:repeating-linear-gradient(to bottom,var(--guide) 0 3px,transparent 3px 6px)}.kanji-hero:after{content:"";position:absolute;top:50%;left:4%;width:92%;height:1px;background:repeating-linear-gradient(to right,var(--guide) 0 3px,transparent 3px 6px)}.kanji-hero .k{position:relative;z-index:1}.kanji-hero img{position:relative;z-index:1;width:40mm;height:40mm}.kanji-info{font-size:13px;line-height:1.85}.kanji-info .k-label{display:inline-block;width:30mm;color:#777;font-size:12px}.kanji-info .badge{display:inline-block;background:var(--vermilion);color:#fff;font-size:11px;padding:1px 8px;border-radius:10px}.examples{margin:1mm 0 0}.examples .ex{font-size:13px;margin-bottom:1.5mm}.examples .ex .w{font-size:16px}.examples .ex .rd{color:#777;font-size:12px}.gbox{border:1.2px solid var(--guide-strong);border-left:4px solid var(--vermilion);border-radius:4px;padding:5mm 6mm;margin:4mm 0 5mm;font-size:13.5px;line-height:1.7}.gbox .pt{font-size:18px;font-weight:700;margin-bottom:2mm}.blank{display:inline-block;border-bottom:1.4px solid var(--ink);min-width:22mm;height:1.1em;vertical-align:bottom}.practice-line{border-bottom:1px solid var(--guide-strong);height:9mm;margin:4mm 0}.section-h{font-size:12px;color:#555;border-bottom:1px dotted var(--guide-strong);margin:4mm 0 3mm;padding-bottom:2px;text-transform:uppercase;letter-spacing:.5px}.ws-foot{margin-top:auto;padding-top:8px;border-top:1px solid var(--guide-strong);display:flex;justify-content:space-between;font-size:10.5px;color:#777}.ws-foot .cc{color:var(--vermilion)}@page{size:A4;margin:0}@media print{body{background:#fff}.ws-bar{display:none}.sheet{margin:0;box-shadow:none;width:auto;min-height:auto;height:100vh;padding:13mm 13mm 9mm;page-break-after:always}.sheet:last-child{page-break-after:auto}}
