.bdg2{--ac:#6D28D9;--ac2:#EDE9FE;--acg:linear-gradient(90deg,#6D28D9,#8B5CF6 50%,#4F46E5)}
.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(109,40,217,.14);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}
/* 遊び方 */
.intro[hidden]{display:none}
.il{margin:0 0 10px;font-size:13px;font-weight:800;color:#2E1065;line-height:1.7}
.doc{margin-top:10px;padding:12px 14px;border-radius:16px;border:2px solid #E2E8F0;background:#fff}
.doc.wk{border-color:#F5F3FF;background:#F5F3FF}
.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%,#DDD6FE 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,#6D28D9,#4F46E5);color:#fff;font:inherit;font-size:16px;font-weight:900;cursor:pointer;box-shadow:0 10px 26px rgba(109,40,217,.3)}
#play[hidden]{display:none}
/* 会社と状況カード */
.tm{padding:12px 14px;border-radius:18px;background:#0D0A26;color:#EDE9FE}.tm b{display:flex;gap:6px;align-items:center;font-size:16px;font-weight:900;color:#fff}.tm p{margin:4px 0 0;font-size:13px;line-height:1.7;font-weight:700}
.bd-sit{margin:10px 0 0;padding:10px 12px;list-style:none;border-radius:16px;background:#F5F3FF;border:1px solid #DDD6FE;display:grid;gap:6px}
.bd-sit li{display:flex;gap:8px;align-items:flex-start;font-size:13.5px;line-height:1.6;font-weight:800;color:#2E1065;overflow-wrap:anywhere}
.bd-sit li span{flex:none;font-size:16px;line-height:1.4}
/* 折れ線グラフ */
.gch{margin-top:10px;padding:8px 6px 4px;border-radius:16px;background:#fff;border:2px solid #E2E8F0}
.gch svg{display:block;width:100%;height:auto;stroke:none}.gch svg text,.gch svg rect{stroke:none}
.gch .gl{stroke:#EEF0F4;stroke-width:1}.gch .z0{stroke:#94A3B8;stroke-width:1.2}
.gch .tk{font-size:10.5px;font-weight:800;fill:#64748B;text-anchor:end}
.gch .xl{font-size:10.5px;font-weight:800;fill:#475569;text-anchor:middle}
.gch .lp{fill:none;stroke:#A78BFA;stroke-width:2;stroke-dasharray:5 4}.gch .dp{fill:#fff;stroke:#A78BFA;stroke-width:1.5}
.gch .la{fill:none;stroke:#6D28D9;stroke-width:3.5}.gch .da{fill:#6D28D9;stroke:#fff;stroke-width:1.5}
.gch .lb2{fill:none;stroke:#65A30D;stroke-width:2;stroke-dasharray:2 4}.gch .db{fill:#65A30D;stroke:none}
.gch .inc{font-size:11px;font-weight:900;fill:#DC2626;text-anchor:middle}
.bd-leg{display:flex;flex-wrap:wrap;justify-content:center;gap:4px 12px;margin-top:6px;font-size:11px;font-weight:800;color:#475569}
.bd-leg span{display:flex;align-items:center;gap:5px}.bd-leg span:before{content:"";width:18px;height:0;border-top:2px dashed #A78BFA}
.bd-leg .la:before{border-top:3.5px solid #6D28D9}.bd-leg .lb2:before{border-top:2px dotted #65A30D}
.pcnt{margin:10px 0 0;padding:9px 12px;border-radius:12px;background:#0D0A26;color:#DDD6FE;font-size:12.5px;font-weight:800;line-height:1.5}.pcnt b{color:#BEF264;font-size:15px}.pcnt:empty{display:none}
/* 配分のスライダー */
.bd-sl{display:grid;gap:8px;margin-top:12px}
.bd-row{padding:8px 10px 6px;border-radius:14px;background:#fff;border:2px solid #DDD6FE}
.bd-hd{display:flex;align-items:center;gap:6px;font-size:13.5px;font-weight:900;color:#2E1065}.bd-hd span{font-size:18px;line-height:1}
.bd-hd b{margin-left:auto;min-width:2.2em;text-align:right;font-size:22px;font-weight:900;color:#6D28D9;font-variant-numeric:tabular-nums}
.bd-in{display:grid;grid-template-columns:40px 1fr 40px;gap:8px;align-items:center}
.bd-in input{width:100%;height:32px;accent-color:#6D28D9;cursor:pointer;touch-action:pan-y}.bd-in input:disabled{cursor:default;opacity:.6}
.bd-st{height:38px;border:2px solid #C4B5FD;border-radius:12px;background:#F5F3FF;font:inherit;font-size:20px;font-weight:900;color:#4C1D95;cursor:pointer;touch-action:manipulation}
.bd-st:disabled{opacity:.4;cursor:default}
.bd-rest{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:4px 8px;margin-top:8px;padding:8px 12px;border-radius:12px;background:#FEF3C7;font-size:13px;font-weight:900;color:#92400E}
.bd-rest b{font-size:18px;font-variant-numeric:tabular-nums}.bd-rest small{font-size:11.5px;font-weight:800}
.bd-rest.z{background:#ECFCCB;color:#3F6212}
/* AIのおすすめ */
.aiad{display:flex;gap:10px;align-items:flex-start;margin-top:10px;padding:10px 12px;border-radius:18px;background:#F5F3FF;border:1px solid #DDD6FE}
.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 #DDD6FE}
.aiad div{min-width:0}.aiad small{font-size:11px;font-weight:800;color:#6D28D9}.aiad small b{display:inline-block;padding:1px 9px;border-radius:99px;background:#6D28D9;color:#fff;font-size:12px;font-variant-numeric:tabular-nums}
.aiad p{margin:4px 0 0;font-size:13.5px;line-height:1.65;font-weight:700;color:#2E1065}
.aiput{margin-top:8px;padding:8px 14px;border:0;border-radius:99px;background:#6D28D9;color:#fff;font:inherit;font-size:13px;font-weight:900;cursor:pointer;touch-action:manipulation}
.bd-eq{margin-top:8px;padding:6px 12px;border:2px solid #C4B5FD;border-radius:99px;background:#fff;color:#4C1D95;font:inherit;font-size:12.5px;font-weight:900;cursor:pointer;touch-action:manipulation}
.aiput:disabled,.bd-eq:disabled{opacity:.4;cursor:default}
.go2{display:block;width:100%;margin-top:14px;padding:14px;border:0;border-radius:16px;background:#6D28D9;color:#fff;font:inherit;font-size:15px;font-weight:900;cursor:pointer}
.go2:disabled{background:#E2E8F0;color:#94A3B8;cursor:default}
/* 結果 */
.res{margin-top:12px;border-radius:16px;padding:14px;font-size:13px;line-height:1.75;animation:pop .35s}.res[hidden]{display:none}
.res.right{background:#F0FDF4}.res.wrong{background:#FEF2F2}.res.half{background:#F5F3FF}
.res>b{display:block;font-size:16px}.res.right>b{color:#16A34A}.res.wrong>b{color:#DC2626}.res.half>b{color:#6D28D9}
.res p{margin:6px 0 0;color:var(--ink2)}
.res .lgd{font-size:11.5px;font-weight:700}
.bd-tb{margin-top:10px;border-radius:12px;background:#fff;overflow:hidden}
.bd-tb table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}
.bd-tb th,.bd-tb td{padding:6px 2px;text-align:center;font-size:13px;font-weight:800;border-bottom:1px solid #F1F5F9;white-space:nowrap}
.bd-tb thead th{font-size:16px;background:#F8FAFC}.bd-tb thead th:last-child{font-size:11px;color:#475569}
.bd-tb tbody th{padding-left:8px;text-align:left;font-size:12px;color:#334155}
.bd-tb td.bd-p{font-size:13.5px;color:#0F172A}.bd-tb td.bd-p small{display:block;font-size:10.5px;color:#64748B;line-height:1.2}
.bd-tb tr.me2{background:#F5F3FF}.bd-tb tr.me2 th,.bd-tb tr.me2 td{color:#4C1D95}
.bd-tb tr.bs2 td.bd-p{color:#3F6212}
.bd-tb tr:last-child th,.bd-tb tr:last-child td{border-bottom:0}
.res .mlr{margin:10px 0 0;padding:0;list-style:none;display:grid;gap:6px}
.res .mlr li{display:flex;gap:8px;padding:8px 10px;border-radius:12px;background:#fff;border-left:4px solid #65A30D}.res .mlr li.ng{border-left-color:#DC2626}.res .mlr li.mid{border-left-color:#F59E0B}
.res .mlr .mk{flex:none}.res .mlr span{display:block;font-size:12.5px;line-height:1.6;color:#1F2937;font-weight:700}
.res .ans{margin:10px 0 0;padding:0;list-style:none;display:grid;gap:8px}
.res .ans li{padding:10px 12px;border-radius:12px;background:#F7FEE7;border-left:4px solid #65A30D}
.res .ans b{display:block;font-size:14px;line-height:1.6;color:var(--ink)}
.res .ans span{display:block;margin-top:2px;font-size:13px;line-height:1.7;color:var(--ink2)}
.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)}.hint[hidden]{display:none}
.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) both}
.fx.A{color:#16A34A}.fx.B{color:#6D28D9}.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)}}
.game.shake{animation:shk .45s}@keyframes shk{20%{transform:translateX(-6px)}40%{transform:translateX(6px)}60%{transform:translateX(-4px)}80%{transform:translateX(3px)}}
.end{margin-top:4px;animation:pop .4s var(--ease)}.end[hidden]{display:none}
/* ふりかえり */
.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:800;color:#4C1D95;margin:4px 0 0}.rvw p.q.ng{color:#B91C1C}.rvw p.pt{color:#3F6212;font-weight:700}
.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)}
#revc[hidden],#sharec[hidden]{display:none}
.bdg2 .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}.bd-sit li{font-size:12.5px}.bd-in{grid-template-columns:36px 1fr 36px;gap:6px}.bd-hd b{font-size:19px}.bd-tb th,.bd-tb td{font-size:12px;padding:5px 1px}.bd-tb tbody th{padding-left:5px;font-size:11px}.aiad{padding:10px}.aiad .av{width:34px;height:34px;font-size:22px}}
@media(prefers-reduced-motion:reduce){.res,.end,.fx{animation:none}}
