/* kuku（かけ算・九九）部品。●＝青、いま ふえた ●・注目＝オレンジ、まちがい＝赤、いれかえた 見かた＝みどり */
.kk-w { --kk-b: #2563eb; --kk-bd: #6f9cf5; --kk-bl: #dbe7ff; --kk-o: #f59e0b; --kk-ol: #fde7bf; --kk-od: #b45309; --kk-r: #c2410c; --kk-g: #0f8a72; --kk-gl: #d9f3ec; }
.kk-svg { width: 100%; height: auto; display: block; margin: 4px 0 8px; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.kk-svg text { font-weight: 700; fill: var(--ink, #1f2937); }
.kk-svg .kk-tl.s { fill: var(--sub, #4b5563); }
.kk-svg .kk-tl.o { fill: var(--kk-od); }
.kk-svg .kk-tl.b { fill: var(--kk-b); }
.kk-d { fill: var(--kk-bd); }
.kk-d.o { fill: var(--kk-o); }
.kk-d.q { fill: #fff; stroke: var(--kk-od); stroke-width: 2.5; stroke-dasharray: 4 3; }
/* さら */
.kk-plr { fill: #fffaf0; stroke: #d6c7a8; stroke-width: 2.5; }
.kk-pl.on .kk-plr { fill: var(--kk-bl); stroke: var(--kk-b); }
.kk-pl.on2 .kk-plr { fill: #fff4dc; stroke: var(--kk-od); }
.kk-pl.on2 .kk-d { fill: var(--kk-o); }
.kk-pl.sel .kk-plr { stroke: var(--kk-od); stroke-width: 4; stroke-dasharray: 7 4; }
.kk-pl[role="button"]:focus { outline: none; }
.kk-pl[role="button"]:focus-visible .kk-plr { stroke: var(--kk-od); stroke-width: 4; }
.kk-sep { stroke: var(--line, #e5e7eb); stroke-width: 2; stroke-dasharray: 6 5; }
/* ●の ならび */
.kk-fr { fill: none; stroke-width: 3; }
.kk-fr.b { stroke: var(--kk-b); } .kk-fr.o { stroke: var(--kk-od); } .kk-fr.g { stroke: var(--kk-g); }
.kk-rot { animation: kk-rot .6s ease-out; }
@keyframes kk-rot { from { transform: rotate(-90deg); } to { transform: none; } }
/* ひょう */
.kk-tw.sc { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.kk-tw.sc .kk-svg { max-width: none; }
.kk-sch { text-align: center; font-size: .95rem; color: var(--sub, #4b5563); margin: 0 0 6px; }
.kk-hd0, .kk-hd { fill: #eef2f7; stroke: #fff; stroke-width: 2; }
.kk-hd.ex { fill: #f3f4f6; }
.kk-svg .kk-th { fill: var(--sub, #4b5563); }
.kk-rh.on .kk-hd { fill: var(--kk-ol); }
.kk-rh.on .kk-th { fill: var(--kk-od); }
.kk-cl rect { fill: #fff; stroke: var(--line, #e5e7eb); stroke-width: 1.5; }
.kk-cl.ex rect { fill: #f9fafb; stroke-dasharray: 4 3; stroke: #cbd5e1; }
.kk-cl.b rect { fill: var(--kk-bl); }
.kk-cl.o rect { fill: var(--kk-ol); stroke: var(--kk-o); stroke-width: 2; }
.kk-svg .kk-cl.o text { fill: #7c3b06; }
.kk-cl.r rect { fill: #fdeee6; stroke: var(--kk-r); stroke-width: 2; }
.kk-svg .kk-cl.r text { fill: var(--kk-r); }
.kk-cl.fq rect { stroke: var(--kk-od); stroke-width: 3; }
.kk-svg .kk-cl.fq text { fill: var(--kk-od); }
.kk-bd { stroke: var(--kk-od); stroke-width: 2.5; stroke-dasharray: 6 4; }
.kk-dg { stroke: var(--kk-g); stroke-width: 3; stroke-dasharray: 8 5; }
.kk-pls { fill: var(--kk-od); }
.kk-svg .kk-plt { fill: #fff; }
@media (prefers-reduced-motion: reduce) { .kk-rot { animation: none; } }
/* ボタン・ことば */
.kk-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 8px; }
.kk-row.ed { gap: 4px 16px; }
.kk-row.pm { gap: 6px; }
.kk-q { font-weight: 700; margin: 0 0 8px; line-height: 2.1; }
.kk-w button { font: inherit; cursor: pointer; color: var(--ink, #1f2937); }
.kk-b, .kk-g, .kk-p { min-height: 48px; padding: 4px 14px; border: 2px solid var(--line, #e5e7eb); background: #fff; border-radius: 12px; font-weight: 700; }
.kk-g { border-color: var(--ink, #1f2937); min-width: 64px; }
.kk-g[aria-pressed="true"], .kk-p[aria-pressed="true"] { border-color: var(--kk-b); background: #eaf1ff; }
.kk-p { border-radius: 999px; font-size: 1rem; min-height: 44px; }
.kk-w .kk-b.go { background: var(--kk-b); border-color: var(--kk-b); color: #fff; }
.kk-b.back { border-style: dashed; font-weight: 400; }
.kk-b.sq { width: 52px; padding: 0; font-size: 1.3rem; }
.kk-w button:disabled { opacity: .45; cursor: default; }
.kk-lab { font-size: 1rem; color: var(--sub, #4b5563); font-weight: 700; }
.kk-num { display: inline-block; min-width: 2ch; text-align: center; font-size: 1.3rem; }
.kk-read { background: #f3f6ff; border-radius: 12px; padding: 8px 14px; min-height: 56px; }
.kk-read p { margin: 4px 0; }
.kk-big { font-size: 1.2rem; font-weight: 700; text-align: center; line-height: 1.9; }
.kk-big.g { color: var(--kk-g); }
.kk-note { font-size: 1rem; line-height: 2.1; }
.kk-note.w { color: var(--kk-r); font-weight: 700; }
.kk-note.s { color: var(--kk-g); font-weight: 700; }
.kk-res { font-weight: 700; }
.kk-res.ok { color: var(--ok, #0f8a72); }
.kk-res.ng i { color: var(--ng, #c2410c); font-style: normal; }
/* 式と ことば */
.kk-eqx { display: flex; justify-content: center; align-items: flex-start; gap: 2px; margin: 6px 0; }
.kk-eu { display: flex; flex-direction: column; align-items: center; min-width: 48px; }
.kk-eu b { font-size: 1.7rem; line-height: 1.3; }
.kk-eu small { font-size: 1rem; font-weight: 700; padding: 0 4px; white-space: nowrap; border-radius: 8px; }
.kk-eu.b b { color: var(--kk-b); } .kk-eu.b small { background: var(--kk-bl); color: #1e40af; }
.kk-eu.g b { color: var(--kk-g); } .kk-eu.g small { background: var(--kk-gl); color: #0b5e4e; }
.kk-eu.o b { color: var(--kk-od); } .kk-eu.o small { background: var(--kk-ol); color: #7c3b06; }
.kk-eo { font-size: 1.7rem; font-weight: 700; line-height: 1.3; }
.kk-dt { font-style: normal; }
.kk-dt.b { color: var(--kk-bd); } .kk-dt.o { color: var(--kk-o); }
