/* blocks 数のブロック（小1・小2）。はじめの数＝青、たす数・うつす●＝オレンジ、3つめ＝むらさき、できた10＝みどり。字は 16px 以上 */
.bk-w { --bk-b: #2563eb; --bk-bd: #1e40af; --bk-bl: #eaf1ff; --bk-o: #f59e0b; --bk-od: #b45309; --bk-p: #8b5cf6; --bk-pd: #5b21b6; --bk-t: #0f8a72; --bk-tl: #e7f7ef; --bk-r: #c2410c; font-size: 1.1rem; }
.bk-svg { width: 100%; max-width: 600px; height: auto; display: block; margin: 6px auto; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.bk-svg text { font-weight: 700; fill: var(--ink, #1f2937); }
.bk-svg .bk-tl { font-size: 24px; paint-order: stroke; stroke: #fff; stroke-width: 5px; }
.bk-svg .bk-tl.s { font-size: 21px; fill: var(--sub, #4b5563); }
.bk-svg .bk-tl.big { font-size: 32px; }
.bk-svg .bk-tl.huge { font-size: 48px; }
.bk-svg .b, .bk-svg .bk-tl.b { fill: var(--bk-b); }
.bk-svg .o, .bk-svg .bk-tl.o { fill: var(--bk-od); }
.bk-svg .p, .bk-svg .bk-tl.p { fill: var(--bk-pd); }
.bk-svg .t, .bk-svg .bk-tl.t { fill: var(--bk-t); }
.bk-svg .bk-tl.r { fill: var(--bk-r); }
.bk-svg .bk-tl.zt { fill: var(--bk-r); }

/* うごく もの */
.bk-mv { transition: transform .45s ease; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .bk-mv { transition: none; } }
.bk-dot.b circle { fill: var(--bk-b); stroke: var(--bk-bd); stroke-width: 2; }
.bk-dot.o circle { fill: var(--bk-o); stroke: var(--bk-od); stroke-width: 2; }
.bk-dot.p circle { fill: var(--bk-p); stroke: var(--bk-pd); stroke-width: 2; }
.bk-dot.x circle { fill: #f3f4f6; stroke: #9ca3af; stroke-width: 2; stroke-dasharray: 4 3; }
.bk-rod rect, .bk-plate rect { fill: #93c5fd; stroke: var(--bk-bd); stroke-width: 1.5; }
.bk-rod .ln, .bk-plate .ln { stroke: var(--bk-bd); stroke-width: .7; fill: none; opacity: .6; }
.bk-plate .ln { stroke-width: .4; }

/* わく */
.bk-fr { fill: #fff; stroke: var(--ink, #1f2937); stroke-width: 3; }
.bk-fr.full { fill: var(--bk-tl); stroke: var(--bk-t); stroke-width: 5; }
.bk-fl { stroke: #6b7280; stroke-width: 1.5; fill: none; }
.bk-cell { fill: transparent; cursor: pointer; }
.bk-x { stroke: var(--bk-r); stroke-width: 4; stroke-linecap: round; fill: none; pointer-events: none; }
.bk-stem { stroke: #15803d; stroke-width: 3; fill: none; }
.bk-cherry { fill: #fff; stroke: #e11d48; stroke-width: 3; }
.bk-sep { stroke: var(--line, #e5e7eb); stroke-width: 2; }
.bk-field { fill: #fffbeb; stroke: #fcd34d; stroke-width: 2; stroke-dasharray: 6 4; }
.bk-dg { fill: #fff; stroke: #9ca3af; stroke-width: 2; }
.bk-dg.z { fill: #fff1e8; stroke: var(--bk-r); stroke-width: 3; }
.bk-dg.bad { stroke: var(--bk-r); stroke-dasharray: 5 4; }

/* 文と ボタン */
.bk-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 10px; }
.bk-row.ch .bk-g { flex: 1 1 0; }
.bk-row.tabs { margin-bottom: 8px; gap: 6px; }
.bk-q { font-weight: 700; font-size: 1.2rem; margin: 0 0 6px; line-height: 1.8; }
.bk-eq { font-size: 2rem; font-weight: 700; text-align: center; margin: 0 0 2px; line-height: 1.5; }
.bk-w button { font: inherit; cursor: pointer; color: var(--ink, #1f2937); }
.bk-w .bk-b, .bk-w .bk-g, .bk-w .bk-tab { min-height: 56px; padding: 4px 16px; border: 2px solid var(--line, #e5e7eb); background: #fff; border-radius: 14px; font-weight: 700; font-size: 1.15rem; }
.bk-w .bk-g { border-color: var(--ink, #1f2937); min-width: 72px; font-size: 1.3rem; }
.bk-g[aria-pressed="true"] { border-color: var(--bk-b); background: var(--bk-bl); }
.bk-g.right { border-color: var(--bk-t); box-shadow: inset 0 0 0 2px var(--bk-t); }
.bk-g.right::before { content: "○ "; color: var(--bk-t); }
.bk-w .bk-tab { min-height: 48px; font-size: 1.05rem; border-radius: 999px; padding: 2px 14px; }
.bk-tab[aria-pressed="true"] { border-color: var(--bk-t); background: var(--bk-tl); }
.bk-w .bk-b.go { background: var(--bk-b); border-color: var(--bk-b); color: #fff; flex: 1 1 auto; min-height: 60px; font-size: 1.25rem; }
.bk-b.back { border-style: dashed; font-weight: 400; }
.bk-w .bk-b.sq { width: 56px; padding: 0; font-size: 1.5rem; }
.bk-w button:disabled { opacity: .4; cursor: default; }
.bk-row.pm { gap: 8px; }
.bk-lab { font-size: 1.05rem; color: var(--sub, #4b5563); font-weight: 700; min-width: 6.5em; }
.bk-num { font-size: 1.5rem; min-width: 1.8em; text-align: center; }
.bk-row.ed { margin-top: 14px; padding-top: 10px; border-top: 1px dashed var(--line, #e5e7eb); }
.bk-read { background: #f3f6ff; border-radius: 12px; padding: 8px 14px; min-height: 56px; }
.bk-read p { margin: 4px 0; }
.bk-big { font-size: 1.6rem; font-weight: 700; text-align: center; line-height: 2; margin: 4px 0; }
.bk-note { font-size: 1.05rem; line-height: 1.9; }
.bk-note.c { text-align: center; font-size: 1.2rem; font-weight: 700; }
.bk-note.z { color: var(--bk-r); font-weight: 700; }
.bk-res { font-weight: 700; font-size: 1.1rem; }
.bk-res.ok { color: var(--ok, #0f8a72); }
.bk-res.ng i { color: var(--ng, #c2410c); font-style: normal; }
.bk-n.b { color: var(--bk-b); }
.bk-n.o { color: var(--bk-od); }
.bk-n.p { color: var(--bk-pd); }
.bk-n.t { color: var(--bk-t); }
.bk-chip { display: inline-block; padding: 0 10px; border: 2px solid var(--line, #e5e7eb); border-radius: 10px; background: #fff; font-weight: 700; margin: 2px; }
.bk-chip.on { border-color: var(--bk-b); background: var(--bk-bl); }
/* counton・diff・count */
.bk-dot.ring circle { fill: #fff; stroke: var(--bk-od); stroke-width: 4; }
.bk-dot.m circle { fill: var(--bk-t); stroke: #065f46; stroke-width: 2; }
.bk-svg .bk-tl.w { fill: #fff; stroke-width: 0; font-size: 26px; pointer-events: none; }
.bk-brace { stroke: var(--bk-b); stroke-width: 3; fill: none; }
.bk-ping { fill: none; stroke: var(--bk-od); stroke-width: 3; stroke-dasharray: 5 4; }
.bk-link { stroke: var(--ink, #1f2937); stroke-width: 3; stroke-linecap: round; }
.bk-ring { fill: none; stroke: #9ca3af; stroke-width: 2.5; stroke-dasharray: 5 4; }
.bk-ring.on { stroke: var(--bk-r); stroke-width: 4; stroke-dasharray: none; }
.bk-svg text.bk-tl { pointer-events: none; }
.bk-box rect, .bk-bx { fill: #93c5fd; stroke: var(--bk-bd); stroke-width: 1.5; }
.bk-bx { fill: #bfdbfe; }
.bk-box .ln { stroke: var(--bk-bd); stroke-width: .4; fill: none; opacity: .6; }
.bk-plate.o rect, .bk-rod.o rect { fill: #fcd34d; stroke: var(--bk-od); }
