.mze{--ac:#0A5E94;--ac2:#E0F2FE;--acg:linear-gradient(90deg,#0A5E94,#0284C7 50%,#F59E0B)}
.mze [hidden]{display:none!important}
.ghero{position:relative;text-align:center;padding:5svh 0 18px}
.game{position:relative;background:#fff;border-radius:28px;padding:16px;box-shadow:0 1px 2px rgba(14,17,22,.05),0 20px 50px rgba(3,105,161,.16);overflow:hidden}
.gtop{margin-bottom:12px}
.ghud{display:flex;justify-content:space-between;gap:6px;font-size:12px;font-weight:800;color:var(--ink2);white-space:nowrap}.ghud b{font-size:16px;font-variant-numeric:tabular-nums}
.il{margin:0 0 10px;font-size:13px;font-weight:800;color:#0C4A6E;line-height:1.7}
.doc{margin-top:10px;padding:12px 14px;border-radius:16px;border:2px solid #E2E8F0;background:#fff}
.doc.wk{border-color:#F0F9FF;background:#F0F9FF}
.doc h4{margin:0 0 6px;font-size:14px;font-weight:900}
.doc ul{margin:0;padding:0;list-style:none}.doc li{display:grid;grid-template-columns:1.8em 1fr;gap:6px;padding:5px 0;border-top:1px dashed rgba(15,23,42,.1);font-size:13px;line-height:1.65;font-weight:600;color:var(--ink)}.doc li:first-child{border-top:0}
.doc li b{font-size:11.5px;color:var(--ink2);padding-top:1px}
.doc mark{background:linear-gradient(transparent 55%,#BAE6FD 55%);color:inherit;font-weight:800}
.intro .go{display:block;width:100%;margin-top:14px;height:56px;border:0;border-radius:999px;background:linear-gradient(90deg,#0A5E94,#0284C7);color:#fff;font:inherit;font-size:16px;font-weight:900;cursor:pointer;box-shadow:0 10px 24px rgba(3,105,161,.3)}
.aiad{display:flex;gap:10px;align-items:flex-start;margin-top:12px;padding:10px 12px;border-radius:18px;background:#F0F9FF;border:1px solid #BAE6FD}
.aiad .av{flex:none;width:40px;height:40px;border-radius:50%;display:grid;place-items:center;font-size:26px;line-height:1;background:#fff;box-shadow:0 0 0 2px #BAE6FD}
.aiad div{min-width:0}.aiad small{font-size:11px;font-weight:800;color:#0A5E94}
.aiad p{margin:4px 0 0;font-size:13.5px;line-height:1.65;font-weight:700;color:#082F49}
.aiput{margin-top:8px;padding:8px 14px;border:0;border-radius:99px;background:#0A5E94;color:#fff;font:inherit;font-size:13px;font-weight:900;cursor:pointer;touch-action:manipulation}.aiput:disabled{opacity:.4;cursor:default}
.go2{display:block;width:100%;margin-top:14px;padding:14px;border:0;border-radius:16px;background:linear-gradient(90deg,#D97706,#F59E0B);color:#fff;font:inherit;font-size:16px;font-weight:900;cursor:pointer;touch-action:manipulation;box-shadow:0 8px 20px rgba(217,119,6,.28)}
.go2:disabled{background:#E2E8F0;color:#94A3B8;cursor:default;box-shadow:none}
.res{margin-top:12px;border-radius:16px;padding:14px;font-size:13px;line-height:1.75;animation:pop .35s}
.res.right{background:#F0FDF4}.res.wrong{background:#FEF2F2}.res.half{background:#FFFBEB}
.res>b{display:block;font-size:16px;line-height:1.55}.res.right>b{color:#16A34A}.res.wrong>b{color:#DC2626}.res.half>b{color:#B45309}
.res .nx{display:block;width:100%;margin-top:12px;height:52px;border:0;border-radius:999px;background:var(--ink);color:#fff;font:inherit;font-size:16px;font-weight:900;cursor:pointer}
.res,.nx{scroll-margin-bottom:110px}
.hint{margin:10px 0 0;text-align:center;font-size:11px;color:var(--mut);line-height:1.6}
.fx{position:absolute;left:50%;top:22%;transform:translateX(-50%);z-index:6;font-size:clamp(18px,6vw,26px);font-weight:900;white-space:nowrap;pointer-events:none;text-shadow:0 2px 0 #fff,0 4px 14px rgba(0,0,0,.15);animation:fx 1.3s var(--ease) forwards}
.fx.A{color:#16A34A}.fx.B{color:#0A5E94}.fx.C{color:#DC2626}
@keyframes fx{0%{opacity:0;transform:translate(-50%,10px) scale(.7)}25%{opacity:1;transform:translate(-50%,0) scale(1.08)}75%{opacity:1}100%{opacity:0;transform:translate(-50%,-24px)}}
.end{margin-top:4px;animation:pop .4s var(--ease)}
.rvw{display:grid;grid-template-columns:28px 1fr;gap:4px 10px;padding:14px 0;border-bottom:1px solid #F1F5F9}.rvw:last-child{border-bottom:0}.rvw .mk{font-size:18px}.rvw b{font-size:13.5px;line-height:1.6}
.rvw p{grid-column:2;margin:0;font-size:12.5px;color:var(--ink2);line-height:1.75}.rvw p.q{font-size:13.5px;font-weight:700;color:#082F49;margin:4px 0}
.tips{margin:0;padding-left:1.3em;color:#C9CCD6;font-size:14px;line-height:1.8}.tips li{margin:0 0 12px}.tips b{display:block;color:#fff}
.mt0{margin:0 0 10px;font-size:13px;color:var(--ink2);line-height:1.75}
.ctap{color:#C9CCD6;font-size:14px;margin:0 0 16px;line-height:1.75}.cta-c h3{color:var(--ac2)}
/* はじめの説明（記号の目安） */
.mze-kd{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:10px}
.mze-kd p{margin:0;padding:8px 10px;border-radius:12px;background:#F8FAFC;border:1px solid #E2E8F0;font-size:12px;font-weight:700;line-height:1.5;color:#334155}
.mze-kd span{display:block;font-size:18px;line-height:1.2}.mze-kd b{display:block;font-size:12.5px;font-weight:900;color:#082F49}
.mze-tip{margin:10px 0 0;padding:10px 12px;border-radius:14px;background:#FFFBEB;border:1px solid #FDE68A;font-size:12.5px;font-weight:700;line-height:1.7;color:#78350F}
/* 手続きの説明 */
.mze-hd{padding:12px 14px;border-radius:18px;background:#082F49;color:#E0F2FE}.mze-hd>b{display:block;font-size:16px;font-weight:900;color:#fff;line-height:1.5}
.mze-hd p{margin:6px 0 0;font-size:13px;line-height:1.75;font-weight:700}.mze-hd p b{color:#FCD34D;font-weight:900}
/* 関所の一覧 */
.mze-gl{margin:8px 0 0;padding:0;list-style:none;display:grid;gap:5px}
.mze-gl li{display:grid;grid-template-columns:1fr auto;align-items:center;gap:2px 8px;padding:6px 10px;border-radius:12px;background:#FEF2F2;border:1px solid #FECACA;font-size:12px;line-height:1.45}
.mze-gl li b{font-size:12.5px;font-weight:900;color:#7F1D1D}.mze-gl li span{grid-column:1;font-weight:700;color:#475569;min-width:0;overflow-wrap:anywhere}
.mze-gl li em{grid-row:1/3;grid-column:2;font-style:normal;font-size:11px;font-weight:900;color:#B91C1C;white-space:nowrap}
.mze-gl li.mze-can{background:#FFFBEB;border-color:#FDE68A}.mze-gl li.mze-can b{color:#78350F}.mze-gl li.mze-can em{color:#B45309}
.mze-gl li.mze-ok{background:#F0FDF4;border-color:#BBF7D0}.mze-gl li.mze-ok b{color:#14532D}.mze-gl li.mze-ok em{color:#15803D}
/* 残りの回数・持っている書類 */
.mze-st{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 10px;margin:8px 2px 6px;font-size:12px;font-weight:800;color:#334155}
.mze-st b{font-size:15px;color:#0A5E94;font-variant-numeric:tabular-nums}
#mzhv b{margin-left:4px;font-size:14px;letter-spacing:.06em}
/* 盤面 */
.mze-bw{position:relative;max-width:380px;margin:0 auto;padding:8px;border-radius:20px;background:linear-gradient(160deg,#0C4A6E,#082F49);touch-action:none;user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent;cursor:grab;overflow:hidden}
.mze-bw.mze-drg{cursor:grabbing}
.mze-tilt{transition:transform .18s ease-out;transform-origin:50% 50%;will-change:transform}
.mze-bw svg.mze-bd{display:block;width:100%!important;height:auto!important;stroke:none;fill:none;overflow:visible;outline:none}
.mze-bd:focus-visible{outline:3px solid #FCD34D!important;outline-offset:3px;border-radius:6px}
:where(.mze-bd,.mze-mn) text{stroke:none;text-anchor:middle;fill:#000}
.mze-fl{fill:#F0F9FF}
.mze-wl{fill:#0A5E94}
.mze-ho{fill:#0F172A}.mze-ho2{fill:#334155}
.mze-gol{fill:#DCFCE7;stroke:#22C55E;stroke-width:.6}
.mze-sp{fill:none;stroke:#0A5E94;stroke-width:.5;stroke-dasharray:1.2 1}.mze-spt{font-size:2.3px;font-weight:900;fill:#0A5E94!important}
.mze-itc{fill:#FEF3C7;stroke:#F59E0B;stroke-width:.5}
.mze-it.mze-tk{opacity:.5}
.mze-gtb{fill:#FEE2E2}.mze-bar{stroke:#DC2626;stroke-width:1.6;stroke-linecap:round}.mze-gtc{fill:#fff;stroke:#DC2626;stroke-width:.6}
.mze-go .mze-gtb{fill:#FEF3C7}.mze-go .mze-bar{stroke:#F59E0B;stroke-dasharray:1.4 1.2}.mze-go .mze-gtc{stroke:#F59E0B}
.mze-gp .mze-gtb{fill:#DCFCE7}.mze-gp .mze-bar{stroke:#22C55E;stroke-dasharray:.8 1.6;opacity:.7}.mze-gp .mze-gtc{stroke:#22C55E}
.mze-trl{fill:none;stroke:#0284C7;stroke-width:1.1;stroke-linecap:round;stroke-linejoin:round;opacity:.35}
.mze-aiw{fill:none;stroke:#7C3AED;stroke-width:1.3;stroke-dasharray:2 1.6;stroke-linecap:round;stroke-linejoin:round;opacity:.75}
.mze-pvl{fill:none;stroke:#0A5E94;stroke-width:1.3;stroke-dasharray:2 1.5;stroke-linecap:round;stroke-linejoin:round}
.mze-pvl.mze-pvb{stroke:#DC2626}
.mze-pve{fill:rgba(3,105,161,.15);stroke:#0A5E94;stroke-width:.7;stroke-dasharray:1.2 1}
.mze-pvx{stroke:#DC2626;stroke-width:1.6;stroke-linecap:round}
.mze-bl{fill:#E11D48;stroke:#fff;stroke-width:.7}.mze-blh{fill:rgba(255,255,255,.7)}
.mze-bi{transform-box:fill-box;transform-origin:center;transition:transform .45s ease-in,opacity .45s}
.mze-bi.mze-fall{transform:scale(.1);opacity:0}
.mze-shk{animation:mze-shk .4s}
@keyframes mze-shk{20%{transform:translateX(-5px)}40%{transform:translateX(5px)}60%{transform:translateX(-3px)}80%{transform:translateX(3px)}}
.mze-bump{animation:mze-bump .22s}
@keyframes mze-bump{50%{transform:scale(.985)}}
.mze-win{box-shadow:0 0 0 3px #22C55E,0 10px 30px rgba(34,197,94,.35)}
.mze-bnr{position:absolute;left:50%;top:12px;max-width:calc(100% - 24px);transform:translate(-50%,0) scale(.85);margin:0;padding:7px 12px;border-radius:14px;font-size:13px;font-weight:900;line-height:1.45;text-align:center;opacity:0;pointer-events:none;transition:opacity .25s,transform .25s;box-sizing:border-box}
.mze-bnr.mze-bad{opacity:1;transform:translate(-50%,0);background:#DC2626;color:#fff;box-shadow:0 10px 30px rgba(220,38,38,.4)}
.mze-bnr.mze-good{opacity:1;transform:translate(-50%,0);background:#15803D;color:#fff;box-shadow:0 10px 30px rgba(21,128,61,.35)}
.mze-dh{margin:6px 0 0;text-align:center;font-size:11.5px;font-weight:800;color:#BAE6FD;line-height:1.5;transition:opacity .3s}.mze-dh.mze-hide{opacity:0}
.mze-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;margin:-1px}
/* ←↑↓→ ボタン */
.mze-ctl{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;max-width:380px;margin:8px auto 0}
.mze-ctl button{height:44px;border:2px solid #BAE6FD;border-radius:14px;background:#fff;color:#0A5E94;font:inherit;font-size:20px;font-weight:900;cursor:pointer;touch-action:manipulation}
.mze-ctl button:disabled{opacity:.4;cursor:default}
/* 書類の説明 */
.mze-note{margin-top:10px;padding:10px 12px;border-radius:14px;background:#F8FAFC;border:1px solid #E2E8F0;font-size:12.5px;font-weight:700;line-height:1.7;color:#475569;min-height:3.4em}
.mze-note b{display:block;font-size:13.5px;font-weight:900;color:#082F49}.mze-note span{display:block;margin-top:2px}
.mze-note.mze-ng{background:#FFFBEB;border-color:#FDE68A}.mze-note.mze-nd{background:#F1F5F9;border-color:#CBD5E1}.mze-note.mze-nd b{color:#B91C1C}
.mze-pop{animation:pop .35s}
/* 1つの手続きの結果 */
.mze-rl{margin:8px 0 0;padding:0;list-style:none;display:grid;gap:4px}
.mze-rl li{padding:6px 10px;border-radius:10px;background:#fff;border-left:4px solid #94A3B8;font-size:12.5px;font-weight:700;line-height:1.6;color:#1E293B}
.mze-rl li.mze-l-ok{border-left-color:#16A34A}.mze-rl li.mze-l-bad{border-left-color:#DC2626}
.mze-why{margin:8px 0 0;font-size:11.5px;color:#64748B;line-height:1.6}
.mze-rai{margin:8px 0 0;padding:8px 10px;border-radius:10px;background:#F5F3FF;font-size:12.5px;font-weight:700;line-height:1.65;color:#3B0764}
.mze-law{margin:8px 0 0;padding:8px 10px;border-radius:10px;background:#F0F9FF;border:1px solid #BAE6FD}.mze-law b{font-size:12.5px;color:#0A5E94}.mze-law p{margin:2px 0 0;font-size:13px;font-weight:700;line-height:1.7;color:#082F49}
/* 5つの手続きの記録 */
.mze-hs{margin-top:12px}.mze-hst{margin:0 0 6px;font-size:12px;font-weight:900;color:#0C4A6E}
.mze-hl{margin:0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}
.mze-hl li{padding:5px 2px;border-radius:10px;background:#F8FAFC;border:1px solid #E2E8F0;text-align:center;line-height:1.3;min-width:0}
.mze-hl small{display:block;font-size:11px;font-weight:900;color:#64748B}.mze-hl b{display:block;font-size:17px}.mze-hl em{display:block;font-style:normal;font-size:11px;font-weight:800;color:#334155;white-space:nowrap}
.mze-hl li.mze-hnow{border-color:#0A5E94;background:#F0F9FF}.mze-hl li.mze-hg{background:#F0FDF4;border-color:#BBF7D0}.mze-hl li.mze-hm{background:#FFFBEB;border-color:#FDE68A}.mze-hl li.mze-hb{background:#FEF2F2;border-color:#FECACA}
/* 結果：タイプと大きな数字 */
.mze-ty{margin:14px 0 4px;padding:16px 14px;border-radius:20px;background:#082F49;color:#E0F2FE;text-align:center}
.mze-tyl{margin:0;font-size:12px;font-weight:800;color:#7DD3FC}
.mze-tyn{margin:4px 0 0;font-size:22px;font-weight:900;color:#fff;line-height:1.4}.mze-tyn span{margin-right:6px}
.mze-tyd{margin:6px 0 0;font-size:13px;font-weight:700;line-height:1.7}
.mze-kp{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0 0;padding-top:12px;border-top:1px dashed rgba(224,242,254,.25)}
.mze-kp div{min-width:0}.mze-kp small{display:block;font-size:12px;font-weight:800;color:#7DD3FC;line-height:1.45}
.mze-kp b{display:block;margin-top:2px;font-size:clamp(34px,11vw,46px);font-weight:900;line-height:1.15;color:#FCD34D;font-variant-numeric:tabular-nums}.mze-kp b i{font-style:normal;font-size:.5em;margin-left:2px;color:#E0F2FE}
.mze-kp div+div b{color:#7DD3FC}
.mze-kp em{display:block;font-style:normal;font-size:11.5px;font-weight:700;color:#E0F2FE;line-height:1.5}
.mze-ai{margin:12px 0 0;font-size:12.5px;font-weight:700;line-height:1.65;color:#C4B5FD}.mze-ai b{color:#fff}
/* ふりかえり */
.mze-rv{padding:14px 0;border-bottom:1px solid #F1F5F9}.mze-rv>b{display:block;font-size:14px;line-height:1.6}
.mze-pr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:8px}
.mze-mf{margin:0;min-width:0}
.mze svg.mze-mn{display:block;width:100%!important;height:auto!important;stroke:none;fill:none;border-radius:8px;background:#F0F9FF}
.mze-mp{fill:none;stroke:#E11D48;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;opacity:.85}
.mze-aim .mze-mp{stroke:#7C3AED}.mze-bst .mze-mp{stroke:#16A34A}
.mze-ms{fill:#E11D48}.mze-aim .mze-ms{fill:#7C3AED}.mze-bst .mze-ms{fill:#16A34A}
.mze-me{fill:#fff;stroke:#E11D48;stroke-width:1}.mze-aim .mze-me{stroke:#7C3AED}.mze-bst .mze-me{stroke:#16A34A}
.mze-mx{stroke:#DC2626;stroke-width:1.8;stroke-linecap:round}
.mze-mf figcaption{margin-top:4px;font-size:11.5px;font-weight:800;color:#334155;text-align:center;line-height:1.4}.mze-mf figcaption b{display:block;font-size:14px;color:#0A5E94;font-variant-numeric:tabular-nums}
.mze-df{margin:8px 0 0;padding:8px 10px;border-radius:10px;background:#F0F9FF;font-size:12.5px;font-weight:700;color:#0C4A6E;line-height:1.7}
.mze .sbd-tl{grid-template-columns:repeat(5,minmax(0,1fr))}
@media(max-width:360px){.game{padding:12px}.ghud{gap:4px;font-size:10.5px;letter-spacing:-.02em}.ghud b{font-size:14px}.mze-hd p{font-size:12.5px}.mze-bw{padding:6px}.mze-bnr{font-size:12px;padding:6px 9px}.mze-gl li{font-size:11.5px}.mze-st{font-size:11.5px}.mze-hl em{font-size:10px}}
@media(prefers-reduced-motion:reduce){.res,.end,.mze-pop{animation:none}.mze-tilt,.mze-bi,.mze-bnr{transition:none}.mze-shk,.mze-bump{animation:none}}
