.rlw{--ac:#33408F;--ac2:#E0E4F7;--acg:linear-gradient(90deg,#33408F,#4F5FC4 50%,#F59E0B)}
.rlw [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(51,64,143,.16);overflow:hidden;overflow:clip}
.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:#1E2660;line-height:1.7}
.doc{margin-top:10px;padding:12px 14px;border-radius:16px;border:2px solid #E2E8F0;background:#fff}
.doc.wk{border-color:#EEF0FB;background:#EEF0FB}
.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%,#C7CEF2 55%);color:inherit;font-weight:800}
.rlw-kd{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-top:10px}
.rlw-kd p{margin:0;padding:6px 4px;border-radius:12px;background:#F7F8FD;border:1px solid #E0E4F7;text-align:center;font-size:11px;font-weight:800;line-height:1.35;color:#1E2660;min-width:0;overflow-wrap:anywhere}
.rlw-kd span{display:block;font-size:20px;line-height:1.2}
.rlw-kd p.rlw-kx{background:#FFF7ED;border-color:#FDBA74;color:#9A3412}
.rlw-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:#713F12}
.intro .go{display:block;width:100%;margin-top:14px;height:56px;border:0;border-radius:999px;background:linear-gradient(90deg,#33408F,#4F5FC4);color:#fff;font:inherit;font-size:16px;font-weight:900;cursor:pointer;box-shadow:0 10px 24px rgba(51,64,143,.3)}
/* 路線とゴール */
.rlw-ln{padding:12px 14px;border-radius:18px;background:#1E2660;color:#E0E4F7}.rlw-ln>b{display:block;font-size:16px;font-weight:900;color:#fff}
.rlw-ln p{margin:6px 0 0;font-size:13px;line-height:1.7;font-weight:700}.rlw-ln p b{color:#FBBF24;font-weight:900}
.rlw-gl{margin-top:10px;padding:10px 12px;border-radius:16px;background:#F7F8FD;border:2px solid #E0E4F7;scroll-margin-top:70px}
.rlw-glh{margin:0;display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}.rlw-glh small{font-size:11px;font-weight:800;color:#4F5FC4}.rlw-glh b{font-size:15px;font-weight:900;color:#1E2660}
.rlw-nd{display:flex;flex-wrap:wrap;gap:5px;margin-top:6px}
.rlw-nd span{padding:3px 9px;border-radius:99px;background:#fff;border:1.5px solid #C7CEF2;font-size:12px;font-weight:800;color:#334155;font-variant-numeric:tabular-nums}
.rlw-nd span b{color:#33408F}.rlw-nd span.rlw-ok{background:#DCFCE7;border-color:#22C55E;color:#14532D}.rlw-nd span.rlw-ok b{color:#15803D}
.rlw-fu{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:8px;margin-top:8px;font-size:11.5px;font-weight:800;color:#475569}
.rlw-fu i{position:relative;height:10px;border-radius:99px;background:#E2E8F0;overflow:hidden}
.rlw-fu u{position:absolute;left:0;top:0;bottom:0;width:100%;border-radius:99px;background:linear-gradient(90deg,#F59E0B,#FBBF24);text-decoration:none}.rlw-fu u.rlw-lo{background:#DC2626}
.rlw-fu b{font-size:15px;font-weight:900;color:#1E2660;font-variant-numeric:tabular-nums;min-width:3.4em;text-align:right}
/* 線路図 */
.rlw-mw{position:relative;margin-top:10px;border-radius:18px;overflow:hidden;background:#EEF0FB;box-shadow:inset 0 0 0 2px rgba(51,64,143,.14)}
.rlw-mw svg.rlw-map,.rlw .rlw-ms svg{display:block;width:100%!important;height:auto!important;stroke:none;fill:none;overflow:hidden}
.rlw-map{max-width:420px;margin:0 auto;touch-action:manipulation;-webkit-tap-highlight-color:transparent;user-select:none;-webkit-user-select:none}
:where(.rlw-map,.rlw-ms) text{fill:#000;stroke:none;text-anchor:middle}
.rlw-rb{fill:none;stroke-width:8;stroke-dasharray:1.6 3.4;stroke:#C7CCE0}
.rlw-r{fill:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;stroke:#94A3B8}
.rlw-rb.rlw-r-off{stroke:none}.rlw-r.rlw-r-off{stroke:#CBD5E1;stroke-width:2;stroke-dasharray:4 4}
.rlw-r.rlw-r-on{stroke:#64748B}
.rlw-rb.rlw-r-ps{stroke:none}.rlw-r.rlw-r-ps{stroke:#D5DAEA;stroke-width:2}
.rlw-r.rlw-r-pl{stroke:#F59E0B;stroke-width:4.5}.rlw-rb.rlw-r-pl{stroke:#FCD34D}
.rlw-r.rlw-r-dn{stroke:#33408F;stroke-width:4.5}.rlw-rb.rlw-r-dn{stroke:#A5B4FC}
.rlw-r.rlw-r-mn{stroke:#CBD5E1;stroke-width:2}.rlw-rb.rlw-r-mn{stroke:none}
.rlw-ms .rlw-r.rlw-r-dn{stroke:#F59E0B;stroke-width:9}.rlw-ms .rlw-rb.rlw-r-dn{stroke:none}
.rlw-s rect{fill:#fff;stroke:#94A3B8;stroke-width:1.5}
.rlw-s{transition:opacity .4s}
.rlw-sn{font-size:10.5px;font-weight:900;fill:#1E2660!important}
.rlw-sy{font-size:8px}
.rlw-tS rect{fill:#E0F2FE;stroke:#0284C7}.rlw-tA rect{fill:#EDE9FE;stroke:#7C3AED}.rlw-tM rect{fill:#E0E7FF;stroke:#4338CA}
.rlw-tP rect{fill:#DCFCE7;stroke:#16A34A}.rlw-tB rect{fill:#FCE7F3;stroke:#DB2777}.rlw-tL rect{fill:#FEF9C3;stroke:#CA8A04}
.rlw-tX rect{fill:#FFEDD5;stroke:#EA580C;stroke-dasharray:5 3}.rlw-tX .rlw-sn{fill:#9A3412!important}
.rlw-s.rlw-been rect{stroke-width:3}
.rlw-s.rlw-hit rect{animation:rlwhit .6s}
@keyframes rlwhit{0%{stroke-width:7}100%{stroke-width:3}}
.rlw-ck circle{fill:#16A34A;stroke:#fff;stroke-width:1.5}.rlw-ck text{fill:#fff!important;font-size:9px;font-weight:900}
.rlw-tX .rlw-ck circle{fill:#EA580C}
.rlw-gol rect{fill:#1E2660}.rlw-gol text{fill:#fff!important;font-size:12.5px;font-weight:900}
.rlw-st0 rect{fill:#fff;stroke:#33408F;stroke-width:2}.rlw-st0 text{font-size:11px;font-weight:900;fill:#1E2660!important}
.rlw-lv{cursor:pointer;outline:none}
.rlw-lh{fill:transparent}
.rlw-lv circle{fill:#fff;stroke:#64748B;stroke-width:2}
.rlw-lv text{font-size:13px;font-weight:900;fill:#334155!important}
.rlw-lv.rlw-lvp circle{fill:#F59E0B;stroke:#fff}.rlw-lv.rlw-lvp text{fill:#fff!important}
.rlw-lv:hover .rlw-lh,.rlw-lv:focus-visible .rlw-lh{fill:rgba(245,158,11,.12)}
.rlw-lv:focus-visible circle{stroke:#33408F;stroke-width:3}
.rlw-lv circle{transform-box:fill-box;transform-origin:center}.rlw-lv.rlw-pop2 circle{animation:rlwsw .35s}
@keyframes rlwsw{0%{transform:scale(1.5)}}
.rlw-tb{fill:#fff;stroke:#33408F;stroke-width:2.5}
#rltr{pointer-events:none}
.rlw-pop{position:absolute;left:50%;top:52px;transform:translate(-50%,6px);max-width:calc(100% - 20px);margin:0;padding:7px 12px;border-radius:12px;background:rgba(30,38,96,.94);color:#fff;font-size:12.5px;font-weight:800;line-height:1.5;text-align:center;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;width:max-content}
.rlw-pop.rlw-show{opacity:1;transform:translate(-50%,0)}
.rlw-pop.rlw-bad{background:#DC2626}.rlw-pop.rlw-good{background:#15803D}
.rlw-msg{margin:8px 0 0;font-size:12.5px;font-weight:700;line-height:1.7;color:#334155;text-align:center}.rlw-msg b{color:#B45309}
/* AIのやり方 */
.aiad{display:flex;gap:10px;align-items:flex-start;margin-top:12px;padding:10px 12px;border-radius:18px;background:#EEF0FB;border:1px solid #C7CEF2}
.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 #C7CEF2}
.aiad div{min-width:0}.aiad small{font-size:11px;font-weight:800;color:#33408F}
.aiad p{margin:4px 0 0;font-size:13px;line-height:1.65;font-weight:700;color:#1E2660}
.aiput{margin-top:8px;padding:9px 14px;min-height:40px;border:0;border-radius:99px;background:#33408F;color:#fff;font:inherit;font-size:12.5px;font-weight:900;cursor:pointer;touch-action:manipulation}.aiput:disabled{opacity:.4;cursor:default}
.go2{display:block;width:100%;margin-top:10px;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:#64748B;cursor:default;box-shadow:none}
/* 1路線の結果 */
.rlw-res{margin-top:12px;border-radius:16px;padding:14px;font-size:13px;line-height:1.75;animation:pop .35s}
.rlw-res.right{background:#F0FDF4}.rlw-res.wrong{background:#FEF2F2}.rlw-res.half{background:#FFFBEB}
.rlw-res>b{display:block;font-size:16px;line-height:1.55}.rlw-res.right>b{color:#16A34A}.rlw-res.wrong>b{color:#DC2626}.rlw-res.half>b{color:#B45309}
.rlw-rl{margin:8px 0 0;padding:0;list-style:none;display:grid;gap:6px}
.rlw-rl li{display:grid;grid-template-columns:7em 1fr;gap:8px;padding:7px 10px;border-radius:12px;background:#fff;align-items:baseline}
.rlw-rl span{font-size:11.5px;font-weight:800;color:#64748B}
.rlw-rl em{font-style:normal;font-size:14px;font-weight:900;color:#1E2660;min-width:0}.rlw-rl em small{display:block;font-size:11.5px;font-weight:700;color:#64748B}
.rlw-cmp{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:10px 0 4px}.rlw-cmp div{padding:7px 4px;border-radius:12px;background:#fff;border:1px solid #E2E8F0;text-align:center;min-width:0}
.rlw-cmp small{display:block;font-size:10.5px;font-weight:800;color:var(--mut);line-height:1.4}.rlw-cmp b{display:block;margin:2px 0 0;font-size:16px;font-weight:900;color:#0a0a0a;font-variant-numeric:tabular-nums;white-space:nowrap}
.rlw-cmp em{display:block;font-style:normal;font-size:10.5px;font-weight:700;color:#64748B;line-height:1.45}
.rlw-cmp .rlw-cp{background:#EEF0FB;border-color:#A5B4FC}.rlw-cmp .rlw-cp b{color:#33408F}
.rlw-bp{margin:10px 0 0;padding:9px 12px;border-radius:12px;background:#fff;border-left:4px solid #F59E0B;font-size:12.5px;font-weight:800;line-height:1.75;color:#1E2660}.rlw-bp b{display:block;font-size:13px}
.rlw-ex{margin:8px 0 0;font-size:13px;font-weight:600;line-height:1.75;color:var(--ink2)}
.rlw-why{margin:6px 0 0;font-size:11px;color:var(--mut);line-height:1.6}
.rlw-res .rlw-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}
.rlw-res,.rlw-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:#B45309}.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)}
/* 結果：タイプとゴールの達成率 */
.rlw-ty{margin:14px 0 4px;padding:16px 14px;border-radius:20px;background:#1E2660;color:#E0E4F7;text-align:center}
.rlw-tyl{margin:0;font-size:12px;font-weight:800;color:#A5B4FC}
.rlw-tyn{margin:4px 0 0;font-size:22px;font-weight:900;color:#fff;line-height:1.4}.rlw-tyn span{margin-right:6px}
.rlw-tyd{margin:6px 0 0;font-size:13px;font-weight:700;line-height:1.7}
.rlw-kp{margin:12px 0 0;padding-top:12px;border-top:1px dashed rgba(224,228,247,.25);font-size:13px;font-weight:800}
.rlw-kp b{display:block;margin-top:2px;font-size:clamp(40px,13vw,56px);font-weight:900;line-height:1.15;color:#FBBF24;font-variant-numeric:tabular-nums}.rlw-kp b i{font-style:normal;font-size:.42em;color:#fff;margin-left:4px}
.rlw-kp small{display:block;margin-top:4px;font-size:12px;color:#A5B4FC;line-height:1.6}
/* ふりかえり */
.rlw-rv{padding:14px 0;border-bottom:1px solid #F1F5F9}.rlw-rv>b{display:block;font-size:14px;line-height:1.6}
.rlw-pr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:8px}
.rlw-mf{margin:0;min-width:0}
.rlw-ms{border-radius:10px;overflow:hidden;background:#EEF0FB;max-width:150px;margin:0 auto}
.rlw-mf figcaption{margin-top:4px;font-size:11.5px;font-weight:800;color:#334155;text-align:center;line-height:1.4}.rlw-mf figcaption b{display:block;font-size:14px;color:#33408F;font-variant-numeric:tabular-nums}.rlw-mf figcaption span{display:block;font-size:10.5px;color:#64748B}
.rlw-df{margin:8px 0 0;padding:8px 10px;border-radius:10px;background:#F7F8FD;font-size:12.5px;font-weight:700;color:#1E2660;line-height:1.7}
.rlw-rv p.q{margin:6px 0 0;font-size:13px;font-weight:700;line-height:1.75;color:#1E2660}
.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:#1E2660;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)}
.rlw .sbd-tl{grid-template-columns:repeat(3,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}.rlw-kd{grid-template-columns:repeat(2,minmax(0,1fr))}.rlw-ln p{font-size:12.5px}.rlw-fu{font-size:10.5px;gap:6px}.rlw-cmp b{font-size:14px}.rlw-rl li{grid-template-columns:6em 1fr}.rlw-pop{font-size:11.5px}}
@media(prefers-reduced-motion:reduce){.rlw-res,.end{animation:none}.rlw-pop,.rlw-s{transition:none}.rlw-s.rlw-hit rect,.rlw-lv.rlw-pop2 circle{animation:none}}
