/* ko-kanji（かん字）。字は Klee One（国語ページで よみこむ）→ 教科書体 → 丸ゴシック。
   色：音読み＝青・くん読み＝オレンジ（おくりがなは うすく）・正かい＝みどり・まちがい＝赤・マーカー＝き色。ko-kana（.kk）・ko-cards（.kc）と ならべて つかえる。 */
.kj { --kf: "Klee One", "UD Digi Kyokasho NK-R", "UD デジタル 教科書体 NK-R", "UD Digi Kyokasho N-R", "UD デジタル 教科書体 N-R", "YuKyokasho", "游教科書体", "HGKyokashotai", "HG教科書体", "Hiragino Maru Gothic ProN", "ヒラギノ丸ゴ ProN", "Zen Maru Gothic", "M PLUS Rounded 1c", "BIZ UDGothic", "Noto Sans JP", sans-serif;
  --paper: #fffdf6; --masu: #e6d3ab; --guide: #f0dfbd; --ink: #1f2937; --on: #2563eb; --onl: #e8f0ff; --kun: #c2410c; --kunl: #fff1e6; --ok: #0f8a72; --ng: #dc2626; --mk: #fde68a;
  font-size: 1.05rem; color: var(--ink); }
.kj [hidden] { display: none !important; }
.kj button { font-family: inherit; -webkit-tap-highlight-color: transparent; color: var(--ink); }
.kj .kf, .kj .kj-mg, .kj ruby { font-family: var(--kf); }
.kj rt { font-size: .5em; font-weight: 500; font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif; }
.kj .kj-ic { width: 1.15em; height: 1.15em; vertical-align: -.2em; }
.kj .kj-wait { color: #6b7280; text-align: center; }
.kj .kj-q { font-weight: 700; margin: 2px 0 10px; line-height: 1.8; font-size: 1.08rem; }
.kj .kj-q .big, .kj .big { font-size: 1.6em; vertical-align: -.1em; }
.kj .kj-pop { animation: kj-pop .35s ease-out; }
@keyframes kj-pop { 0% { transform: scale(.94); } 60% { transform: scale(1.04); } 100% { transform: none; } }
@keyframes kj-shake { 0%, 100% { transform: none; } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

/* ます（十字の 下がき つき） */
.kj .kj-masu { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 4.2rem; height: 4.2rem; border: 2.5px solid var(--masu); border-radius: 10px; font-size: 3.2rem; line-height: 1;
  background: linear-gradient(90deg, transparent calc(50% - .75px), var(--guide) calc(50% - .75px), var(--guide) calc(50% + .75px), transparent calc(50% + .75px)),
    linear-gradient(0deg, transparent calc(50% - .75px), var(--guide) calc(50% - .75px), var(--guide) calc(50% + .75px), transparent calc(50% + .75px)), var(--paper);
  box-shadow: inset 0 0 0 4px #fff, 0 3px 0 #e8d7b0; }
.kj .kj-masu.xl { width: 8.6rem; height: 8.6rem; font-size: 6.6rem; border-radius: 14px; }
.kj .kj-masu.l { width: 6.4rem; height: 6.4rem; font-size: 5rem; }
.kj .kj-masu.m { width: 5.4rem; height: 5.4rem; font-size: 4.1rem; }
.kj .kj-mg { position: relative; top: .02em; }

/* よそう */
.kj .kj-guess { background: linear-gradient(180deg, #fff8e6, #fffdf6); border: 2px solid #f59e0b; border-radius: 16px; padding: 8px 12px 10px; margin-bottom: 12px; box-shadow: 0 2px 8px rgba(245, 158, 11, .12); }
.kj .kj-ask { font-weight: 700; margin: 0 0 8px; font-size: 1.08rem; line-height: 1.6; }
.kj .kj-gb { display: flex; flex-wrap: wrap; gap: 8px; }
.kj .kj-g { min-height: 50px; min-width: 56px; padding: 4px 14px; border: 2px solid #cbd5e1; background: #fff; border-radius: 12px; font-weight: 700; font-size: 1.05rem; cursor: pointer; box-shadow: 0 2px 0 #cbd5e1; }
.kj .kj-g.kf .kf { font-size: 1.7rem; }
.kj .kj-g:disabled { opacity: .45; cursor: default; }
.kj .kj-g.ok { opacity: 1; background: #d1fae5; border-color: var(--ok); }
.kj .kj-g.ng { opacity: 1; background: #fee2e2; border-color: var(--ng); }

/* ボタン */
.kj .kj-ctl { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 6px; align-items: center; justify-content: center; }
.kj .kj-ctl:empty { display: none; }
.kj .kj-b { min-height: 46px; padding: 4px 14px; border: 2px solid var(--ink); background: #fff; border-radius: 12px; font-weight: 700; font-size: 1rem; cursor: pointer; box-shadow: 0 2px 0 #cbd5e1; }
.kj .kj-b.sm { min-height: 38px; padding: 2px 10px; font-size: .9rem; }
.kj .kj-b.spk { border-color: var(--on); color: var(--on); }
.kj .kj-tab { min-height: 46px; padding: 2px 16px; border: 2px solid #e5e7eb; background: #fff; border-radius: 999px; font-weight: 700; font-size: 1rem; cursor: pointer; }
.kj .kj-tab[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.kj .kj-go { min-height: 52px; padding: 6px 22px; border: 0; border-radius: 14px; background: var(--ok); color: #fff !important; font-weight: 700; font-size: 1.1rem; cursor: pointer; box-shadow: 0 3px 0 #0a6553; }
.kj .kj-go:active { transform: translateY(2px); box-shadow: 0 1px 0 #0a6553; }

/* けっか */
.kj .kj-out { background: #f3f6ff; border-radius: 12px; padding: 6px 14px; margin-top: 8px; line-height: 1.75; }
.kj .kj-out:empty { display: none; }
.kj .kj-out p { margin: 4px 0; }
.kj .kj-res { font-weight: 700; color: var(--ok); }
.kj .kj-res.ng { color: #c2410c; }
.kj .kj-hint, .kj .kj-rule { background: #fffbea; border-left: 5px solid #f59e0b; border-radius: 8px; padding: 6px 10px; line-height: 1.75; }
.kj .kj-rule { border-color: var(--ok); background: #ecfdf5; font-weight: 700; }
.kj .kj-note2 { color: #4b5563; font-size: .95rem; }
.kj .kj-big2 { font-size: 1.3rem; font-weight: 700; text-align: center; }
.kj .kj-big2 .kf { font-size: 1.5em; }
.kj .kj-hl { background: linear-gradient(transparent 45%, var(--mk) 45%); font-weight: inherit; color: inherit; border-radius: 2px; }

/* つぎ・まえ */
.kj .kj-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; }
.kj .kj-nb { min-height: 48px; padding: 4px 16px; border: 2px solid #d1d5db; background: #fff; border-radius: 12px; font-weight: 700; cursor: pointer; }
.kj .kj-nb.go { border-color: var(--ok); color: var(--ok); }
.kj .kj-nb:disabled { opacity: .35; cursor: default; }
.kj .kj-dots { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.kj .kj-dots span { width: 9px; height: 9px; border-radius: 50%; background: #d1d5db; }
.kj .kj-dots span.on { background: var(--ok); transform: scale(1.3); }
.kj .kj-cnt { font-weight: 700; color: #4b5563; }

/* ===== card ===== */
.kj .kj-strip { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; margin-bottom: 12px; padding: 8px 6px; background: linear-gradient(180deg, #fffaf0, #fdf3df); border: 2px solid #ecdcb9; border-radius: 14px; }
.kj .kj-sc { position: relative; width: 2.7rem; height: 2.7rem; padding: 0; border: 1.5px solid #e6d3ab; border-radius: 8px; background: var(--paper); font-family: var(--kf); font-size: 1.75rem; line-height: 1; cursor: pointer; box-shadow: 0 2px 0 #e8d7b0; transition: transform .12s; }
.kj .kj-sc.seen::after { content: ""; position: absolute; right: 2px; top: 2px; width: 7px; height: 7px; border-radius: 50%; background: #34d399; }
.kj .kj-sc.cur { background: #0f8a72; color: #fff; border-color: #0a6553; transform: translateY(-2px) scale(1.06); box-shadow: 0 4px 8px rgba(15, 138, 114, .3); }
.kj .kj-cd { background: #fff; border: 2px solid #ecdcb9; border-radius: 18px; padding: 14px 12px 12px; box-shadow: 0 4px 14px rgba(120, 80, 20, .1); }
.kj .kj-cd-top { display: flex; gap: 12px; align-items: center; justify-content: center; margin-bottom: 10px; }
.kj .kj-big1 { padding: 0; border: 0; background: none; cursor: pointer; flex: none; }
.kj .kj-facts { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.kj .kj-fact { display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 6px; align-items: baseline; background: #f8fafc; border: 1.5px solid #e2e8f0; border-radius: 10px; padding: 3px 10px 4px; min-width: 6.4rem; }
.kj .kj-fl { grid-column: 1 / 3; font-size: .72rem; font-weight: 700; color: #64748b; }
.kj .kj-fact b { font-size: 1.45rem; line-height: 1.1; }
.kj .kj-fact small { font-size: .82rem; color: #475569; white-space: nowrap; }
.kj .kj-fact.bs { background: #f5f3ff; border-color: #ddd6fe; }
.kj .kj-fact.bs b { color: #6d28d9; }
.kj .kj-fact.gr { background: #ecfdf5; border-color: #a7f3d0; }
.kj .kj-yrow { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0; }
.kj .kj-yl { flex: none; width: 4.3rem; text-align: center; font-size: .8rem; font-weight: 700; padding: 5px 0; border-radius: 8px; color: #fff; background: #6b7280; margin-top: 4px; }
.kj .kj-yl.on { background: var(--on); }
.kj .kj-yl.kun { background: var(--kun); }
.kj .kj-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.kj .kj-chip { position: relative; min-height: 42px; padding: 2px 12px; border-radius: 999px; font-size: 1.12rem; font-weight: 700; cursor: pointer; border: 2px solid; transition: transform .12s, box-shadow .15s; }
.kj .kj-chip.on { background: var(--onl); border-color: #93c5fd; color: #1d4ed8; }
.kj .kj-chip.kun { background: var(--kunl); border-color: #fdba74; color: #9a3412; }
.kj .kj-chip .ok { opacity: .55; font-weight: 500; }
.kj .kj-chip.sel { transform: translateY(-2px); box-shadow: 0 0 0 4px rgba(245, 158, 11, .35); }
.kj .kj-chip .kj-cq { display: none; }
.kj .kj-chip.hid { background: repeating-linear-gradient(45deg, #f1f5f9, #f1f5f9 6px, #e2e8f0 6px, #e2e8f0 12px); border-style: dashed; color: #64748b; min-width: 3.4rem; }
.kj .kj-chip.hid .kj-cv { visibility: hidden; }
.kj .kj-chip.hid .kj-cq { display: block; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.kj .kj-ex { margin-top: 10px; border-top: 2px dotted #e8d6b0; padding-top: 8px; }
.kj .kj-exl { display: flex; gap: 8px; align-items: center; margin: 4px 0; padding: 4px 8px 4px 4px; border-radius: 10px; font-family: var(--kf); font-size: 1.25rem; line-height: 2.1; transition: background .2s, opacity .2s; }
.kj .kj-exl.lit { background: #fff7d6; box-shadow: inset 4px 0 0 #f59e0b; }
.kj .kj-exl.dim { opacity: .35; }
.kj .kj-sp { flex: none; width: 38px; height: 38px; border: 2px solid #bfdbfe; background: #fff; border-radius: 50%; color: var(--on); cursor: pointer; padding: 0; }
.kj .kj-note { margin: 10px 0 0; background: #fff5f5; border: 1.5px solid #fecaca; border-radius: 10px; padding: 6px 10px; line-height: 1.8; }
.kj .kj-nt { display: inline-block; background: var(--ng); color: #fff; font-size: .78rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; margin-right: 6px; }
.kj .kj-kaki { margin-top: 10px; display: flex; align-items: center; gap: 10px; border: 2px dashed #cbd5e1; border-radius: 12px; padding: 6px 10px; }
.kj .kj-kt { font-size: .8rem; font-weight: 700; color: #64748b; }
.kj .kj-kaki svg { width: 72px; height: 72px; background: var(--paper); border-radius: 8px; }
.kj .kj-kaki path { fill: none; stroke: #9ca3af; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }

/* ===== diff ===== */
.kj .kj-pair { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.kj .kj-pc { padding: 4px; border: 3px solid transparent; border-radius: 18px; background: none; cursor: pointer; transition: transform .15s; }
.kj .kj-pc:not(:disabled):active { transform: scale(.96); }
.kj .kj-pc:disabled { cursor: default; }
.kj .kj-pc.c0 .kj-masu { box-shadow: inset 0 0 0 4px #fff, 0 3px 0 #bfdbfe; }
.kj .kj-pc.c1 .kj-masu { box-shadow: inset 0 0 0 4px #fff, 0 3px 0 #fed7aa; }
.kj .kj-pc.ok { border-color: var(--ok); background: #ecfdf5; }
.kj .kj-pc.ng { border-color: var(--ng); background: #fef2f2; animation: kj-shake .3s 2; }
.kj .kj-pc.ans:not(.ok) { border-color: var(--ok); border-style: dashed; }
.kj .kj-exs { display: flex; flex-wrap: wrap; gap: 4px 16px; font-family: var(--kf); font-size: 1.15rem; line-height: 2.1; }
.kj .kj-exs .kf { font-size: 1.3em; }
.kj .kj-ov { margin-top: 12px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.kj .kj-vs { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.kj .kj-vs .kf { font-size: 1.3rem; }
.kj .kj-ovw { width: 240px; max-width: 80vw; aspect-ratio: 1; border: 2.5px solid var(--masu); border-radius: 16px; background: var(--paper); box-shadow: inset 0 0 0 4px #fff, 0 4px 12px rgba(120, 80, 20, .12); overflow: hidden; }
.kj .kj-cv { width: 100%; height: 100%; display: block; }
.kj canvas.kj-pop { animation: kj-in .7s ease-out; }
@keyframes kj-in { 0% { opacity: 0; transform: scale(.9); } 100% { opacity: 1; transform: none; } }
.kj .kj-leg { display: flex; flex-wrap: wrap; gap: 4px 14px; justify-content: center; font-size: .92rem; font-weight: 700; }
.kj .kj-lg { display: inline-flex; align-items: center; gap: 5px; }
.kj .kj-lg i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.kj .kj-lg i.g { background: #4b5563; }
.kj .kj-lg .kf { font-size: 1.3rem; }

/* ===== build ===== */
.kj .kj-frame { position: relative; width: 11rem; height: 11rem; margin: 0 auto; border: 2.5px solid var(--masu); border-radius: 16px; background: var(--paper); box-shadow: inset 0 0 0 4px #fff, 0 4px 12px rgba(120, 80, 20, .12); }
.kj .kj-slot { position: absolute; display: flex; align-items: center; justify-content: center; border: 2.5px dashed #93c5fd; border-radius: 10px; background: #f8fbff; cursor: pointer; overflow: hidden; transition: opacity .3s, background .2s; }
.kj .kj-frame.lr .s0 { left: 8px; top: 8px; bottom: 8px; width: calc(42% - 10px); }
.kj .kj-frame.lr .s1 { right: 8px; top: 8px; bottom: 8px; width: calc(58% - 10px); }
.kj .kj-frame.tb .s0 { left: 8px; right: 8px; top: 8px; height: calc(42% - 10px); }
.kj .kj-frame.tb .s1 { left: 8px; right: 8px; bottom: 8px; height: calc(58% - 10px); }
.kj .kj-slot.full { border-style: solid; border-color: #f59e0b; background: #fffaf0; }
.kj .kj-ph { font-size: .85rem; font-weight: 700; color: #93c5fd; }
.kj .kj-pg { font-family: var(--kf); font-size: 7.2rem; line-height: 1; display: inline-block; }
.kj .kj-frame.lr .kj-pg { transform: scaleX(.5); }
.kj .kj-frame.lr .s1 .kj-pg { transform: scaleX(.68); }
.kj .kj-frame.tb .kj-pg { transform: scaleY(.42); }
.kj .kj-frame.tb .s1 .kj-pg { transform: scaleY(.56); }
.kj .kj-made { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 8rem; line-height: 1; pointer-events: none; color: var(--ok); }
.kj .kj-frame.done .kj-slot { opacity: 0; }
.kj .kj-frame.done { border-color: var(--ok); }
.kj .kj-frame.bad { animation: kj-shake .3s 2; border-color: var(--ng); }
.kj .kj-slab { text-align: center; font-size: .85rem; font-weight: 700; color: #64748b; margin: 6px 0 10px; }
.kj .kj-parts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.kj .kj-part { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 4rem; min-height: 4rem; padding: 4px 8px; border: 2px solid #d9d2bf; border-radius: 14px; cursor: pointer;
  background: linear-gradient(180deg, #fff 0%, #fffdf7 60%, #f8f3e6 100%); box-shadow: 0 3px 0 #e3dbc6, 0 5px 12px rgba(80, 60, 20, .12); transition: transform .15s; }
.kj .kj-part .kf { font-size: 2.3rem; line-height: 1.1; }
.kj .kj-part small { font-size: .72rem; font-weight: 700; color: #6d28d9; }
.kj .kj-part.sel { border-color: #f59e0b; background: linear-gradient(180deg, #fffaf0, #ffefc9); transform: translateY(-4px) rotate(-1.5deg); box-shadow: 0 0 0 4px rgba(245, 158, 11, .3), 0 8px 16px rgba(180, 83, 9, .22); }
.kj .kj-shelf { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; min-height: 2.6rem; }
.kj .kj-shl { font-size: .85rem; font-weight: 700; color: #475569; }
.kj .kj-shelf .kf { font-size: 1.8rem; width: 2.6rem; height: 2.6rem; display: inline-flex; align-items: center; justify-content: center; background: #ecfdf5; border: 1.5px solid #6ee7b7; border-radius: 8px; color: #065f46; }

/* ===== yomi ===== */
.kj .kj-ych { text-align: center; margin-bottom: 8px; }
.kj .kj-ycards:empty { min-height: 0; margin: 0; }
.kj .kj-ycards { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; min-height: 3.2rem; margin-bottom: 10px; }
.kj .kj-yc { min-height: 48px; padding: 4px 14px; border: 2px solid #d9d2bf; border-radius: 12px; background: linear-gradient(180deg, #fff, #f8f3e6); font-size: 1.15rem; font-weight: 700; cursor: pointer; box-shadow: 0 3px 0 #e3dbc6; display: inline-flex; flex-direction: column; align-items: center; }
.kj .kj-yc.sel { border-color: #f59e0b; transform: translateY(-3px); box-shadow: 0 0 0 4px rgba(245, 158, 11, .3); }
.kj .kj-yc.ok { border-color: var(--ok); background: #ecfdf5; }
.kj .kj-yc.ng { border-color: var(--ng); background: #fef2f2; }
.kj .kj-ym { font-size: .8rem; font-weight: 500; color: #374151; max-width: 10rem; line-height: 1.5; }
.kj .kj-ym.q { font-size: 1.1rem; color: #94a3b8; font-weight: 800; }
.kj .kj-yboxes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kj .kj-ybox { border: 2.5px dashed; border-radius: 14px; padding: 6px; min-height: 7rem; cursor: pointer; }
.kj .kj-ybox.kun { border-color: #fdba74; background: #fffaf5; }
.kj .kj-ybox.on { border-color: #93c5fd; background: #f8fbff; }
.kj .kj-ybn { margin: 0 0 6px; font-size: .85rem; font-weight: 700; line-height: 1.5; text-align: center; }
.kj .kj-ybox.kun .kj-ybn { color: var(--kun); }
.kj .kj-ybox.on .kj-ybn { color: var(--on); }
.kj .kj-ybi { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.kj .kj-jrow { display: flex; gap: 10px; justify-content: center; }
.kj .kj-jc { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 10px 8px; border: 2.5px solid #d9d2bf; border-radius: 16px; background: var(--paper); cursor: pointer; min-width: 6rem; box-shadow: 0 3px 0 #e3dbc6; }
.kj .kj-jc .kj-mg { font-size: 4rem; line-height: 1.1; }
.kj .kj-jr { font-size: 1rem; font-weight: 700; color: #475569; }
.kj .kj-jt { min-width: 3rem; padding: 2px 8px; border-radius: 999px; background: #e5e7eb; font-size: .95rem; font-weight: 800; }
.kj .kj-jc.on { border-color: #93c5fd; } .kj .kj-jc.on .kj-jt { background: var(--on); color: #fff; }
.kj .kj-jc.kun { border-color: #fdba74; } .kj .kj-jc.kun .kj-jt { background: var(--kun); color: #fff; }
.kj .kj-jc.ok { box-shadow: 0 0 0 4px rgba(16, 185, 129, .35); }
.kj .kj-jc.ng { box-shadow: 0 0 0 4px rgba(220, 38, 38, .35); }

/* ===== henka ===== */
.kj .kj-hk { position: relative; width: 13rem; height: 13rem; max-width: 76vw; max-height: 76vw; margin: 0 auto; border: 2.5px solid var(--masu); border-radius: 18px; background: var(--paper); box-shadow: inset 0 0 0 4px #fff, 0 4px 12px rgba(120, 80, 20, .12); overflow: hidden; }
.kj .kj-hk > * { position: absolute; inset: 8%; width: 84%; height: 84%; }
.kj .kj-hk .kj-l2, .kj .kj-hk.kana > span { inset: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 9.6rem; line-height: 1; }
.kj .kj-hk .kj-l0b { color: #ea580c; }
.kj .kj-hk.kana .kj-l2 { color: var(--ok); }
.kj .kj-hl3 { display: flex; justify-content: space-between; gap: 6px; margin: 12px auto 2px; max-width: 22rem; }
.kj .kj-hb { flex: 1; min-height: 42px; border: 2px solid #e5e7eb; background: #fff; border-radius: 999px; font-weight: 700; font-size: .9rem; cursor: pointer; padding: 2px 6px; }
.kj .kj-hb.on { background: #7c2d12; color: #fff; border-color: #7c2d12; }
.kj .kj-hb:disabled, .kj .kj-range:disabled { opacity: .4; }
.kj .kj-range { display: block; width: 100%; max-width: 22rem; margin: 10px auto; height: 36px; accent-color: #c2410c; }
.kj .kj-sj { display: flex; align-items: center; justify-content: center; gap: 18px; }
.kj .kj-sj svg { width: 11rem; height: 11rem; border: 2.5px solid var(--masu); border-radius: 16px; background: var(--paper); }
.kj .kj-sz { fill: transparent; cursor: pointer; }
.kj .kj-sz:hover { fill: #fff7d6; }
.kj .kj-mk { fill: #ea580c; }
.kj .kj-sjc { font-size: 6rem; line-height: 1; min-width: 6rem; text-align: center; color: #cbd5e1; }
.kj .kj-sjc:empty::before { content: "？"; font-size: 4rem; }
.kj .kj-sjc.on { color: var(--ok); }

/* ===== okuri ===== */
.kj .kj-ok { text-align: center; min-height: 6.4rem; display: flex; align-items: center; justify-content: center; background: var(--paper); border: 2px solid #ecdcb9; border-radius: 16px; padding: 12px 6px 6px; }
.kj .kj-okw { font-family: var(--kf); font-size: 3rem; line-height: 1.3; white-space: nowrap; }
.kj .kj-okw rt { font-size: .32em; color: #6b7280; }
.kj .kj-o1 { color: var(--on); }
.kj .kj-o2 { color: #ea580c; background: #fff1e0; border-radius: 6px; padding: 0 .06em; display: inline-block; }
.kj .kj-o1.sw, .kj .kj-o2.sw { width: 14px; height: 14px; display: inline-block; border-radius: 4px; vertical-align: -2px; margin: 0 4px 0 10px; padding: 0; }
.kj .kj-o1.sw { background: var(--on); }
.kj .kj-o2.sw { background: #ea580c; }
.kj .kj-okb { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 10px; }
.kj .kj-okb .kj-tab.seen:not([aria-pressed="true"]) { border-color: #a7f3d0; }
.kj .kj-okl { text-align: center; font-size: .85rem; font-weight: 700; color: #475569; margin: 8px 0 0; }
.kj .kj-okp { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kj .kj-okc { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; border: 2px solid #d9d2bf; border-radius: 16px; background: var(--paper); cursor: pointer; box-shadow: 0 3px 0 #e3dbc6; }
.kj .kj-okc .kj-okw { font-size: 2.4rem; }
.kj .kj-okc rt { visibility: hidden; }
.kj .kj-okc .kj-okm { visibility: hidden; font-size: .9rem; line-height: 1.6; }
.kj .kj-okc.open rt, .kj .kj-okc.open .kj-okm { visibility: visible; }
.kj .kj-okc.open { border-color: var(--ok); }

/* ===== count ===== */
.kj .kj-cw { display: flex; align-items: center; justify-content: center; gap: 14px; }
.kj .kj-csvg { width: 13rem; height: 13rem; max-width: 64vw; max-height: 64vw; border: 2.5px solid var(--masu); border-radius: 16px; background: var(--paper); box-shadow: inset 0 0 0 4px #fff; }
.kj .kj-g1 { stroke: var(--guide); stroke-width: 1; stroke-dasharray: 3 3; fill: none; }
.kj .kj-st { cursor: pointer; }
.kj .kj-sv { fill: none; stroke: #374151; stroke-width: 5.5; stroke-linecap: round; stroke-linejoin: round; transition: stroke .2s, stroke-width .2s; }
.kj .kj-st.on .kj-sv { stroke-width: 7; }
.kj .kj-sh { fill: none; stroke: transparent; stroke-width: 16; stroke-linecap: round; pointer-events: stroke; }
.kj .kj-cn { display: flex; flex-direction: column; align-items: center; min-width: 4.2rem; padding: 6px 4px; background: #fff; border: 2px solid #e5e7eb; border-radius: 14px; }
.kj .kj-cn b { font-size: 2.6rem; line-height: 1; color: var(--ok); }
.kj .kj-cn small { font-weight: 700; color: #475569; }
.kj .kj-tip { text-align: center; min-height: 1.8em; font-weight: 700; color: #475569; margin: 8px 0 0; }
.kj .kj-tip.on { color: #9a3412; background: #fff7d6; border-radius: 10px; padding: 4px 8px; }
.kj .kj-cr { font-size: .72rem; color: #6b7280; text-align: right; margin: 6px 0 0; }

/* ===== jiten ===== */
.kj .kj-route { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.kj .kj-rb { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border: 2px solid #e5e7eb; border-radius: 14px; background: #fff; cursor: pointer; font-weight: 700; line-height: 1.35; }
.kj .kj-r1 { font-size: .9rem; }
.kj .kj-ra { color: #cbd5e1; font-size: .8rem; }
.kj .kj-r2 { font-size: .85rem; color: #475569; background: #f1f5f9; border-radius: 8px; padding: 2px 6px; }
.kj .kj-rb small { font-size: .68rem; font-weight: 500; color: #64748b; }
.kj .kj-rb.on { border-color: #f59e0b; background: #fffaf0; box-shadow: 0 0 0 4px rgba(245, 158, 11, .25); }
.kj .kj-rb.on .kj-ra { color: #f59e0b; }
.kj .kj-rb.on .kj-r2 { background: #f59e0b; color: #fff; }
.kj .kj-dic:not(:empty) { margin-top: 12px; border: 2px solid #c7b88f; border-radius: 6px 16px 16px 6px; background: linear-gradient(90deg, #efe6cf 0, #fffdf6 14px); box-shadow: 0 4px 12px rgba(80, 60, 20, .15); padding: 8px 10px 10px 20px; }
.kj .kj-dh { font-weight: 800; font-size: .95rem; color: #7c2d12; border-bottom: 2px solid #e8d6b0; padding-bottom: 4px; margin-bottom: 6px; }
.kj .kj-db { max-height: 17rem; overflow-y: auto; }
.kj .kj-dl { display: grid; grid-template-columns: 1fr auto 3rem; align-items: center; width: 100%; min-height: 42px; padding: 2px 8px; border: 0; border-bottom: 1px dashed #e8d6b0; background: none; cursor: pointer; text-align: left; font-size: 1rem; }
.kj .kj-dl .kf { font-size: 1.5rem; }
.kj .kj-dp, .kj .kj-dbu small { color: #64748b; font-size: .8rem; text-align: right; }
.kj .kj-dk { margin: 8px 0 4px; font-size: .8rem; font-weight: 800; color: #fff; background: #7c2d12; display: inline-block; padding: 1px 10px; border-radius: 999px; }
.kj .kj-dg { display: flex; flex-wrap: wrap; gap: 6px; }
.kj .kj-dbu { display: inline-flex; flex-direction: column; align-items: center; min-width: 3.6rem; min-height: 3.4rem; padding: 2px 6px; border: 1.5px solid #e8d6b0; border-radius: 10px; background: #fff; cursor: pointer; }
.kj .kj-dbu .kf { font-size: 1.7rem; line-height: 1.2; }
.kj .kj-dbu small { text-align: center; }
.kj .kj-dsub .kj-b { margin-top: 10px; }
.kj .kj-page { display: flex; align-items: center; gap: 12px; position: relative; padding-top: 18px; }
.kj .kj-page p { margin: 0; font-size: .95rem; }
.kj .kj-pgn { position: absolute; top: 0; left: 0; font-size: .75rem; font-weight: 800; color: #7c2d12; }

/* ===== jukugo ===== */
.kj .kj-jk + .kj-js + .kj-guess, .kj .kj-stage + .kj-guess { margin-top: 12px; }
.kj .kj-jk { display: flex; align-items: center; justify-content: center; gap: 8px; }
.kj .kj-jkc { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 6.2rem; padding: 6px 10px 8px; border: 2.5px solid #d9d2bf; border-radius: 16px; background: var(--paper); cursor: pointer; box-shadow: 0 3px 0 #e3dbc6; }
.kj .kj-jkc.a { border-color: #93c5fd; }
.kj .kj-jkc.b { border-color: #fdba74; }
.kj .kj-jw { font-size: 3.4rem; line-height: 1.25; white-space: nowrap; }
.kj .kj-jw rt { font-size: .3em; }
.kj .kj-jm { font-size: .9rem; font-weight: 700; color: #475569; background: #f1f5f9; border-radius: 8px; padding: 1px 8px; }
.kj .kj-jop { font-size: 1.6rem; font-weight: 800; color: #94a3b8; min-width: 1.6rem; text-align: center; }
.kj .kj-jop.on { color: #ea580c; }
.kj .kj-js { text-align: center; font-size: 1.15rem; font-weight: 700; line-height: 2.2; min-height: 1em; margin: 10px 0 0; }
.kj .kj-jsw { font-size: 1.4em; }

/* 小1・2：字を 大きく */
.kj.kj-big .kj-q { font-size: 1.2rem; }
.kj.kj-big .kj-sc { width: 3rem; height: 3rem; font-size: 2rem; }

@media (max-width: 380px) {
  .kj .kj-masu.xl { width: 7.4rem; height: 7.4rem; font-size: 5.7rem; }
  .kj .kj-fact { min-width: 5.6rem; padding: 2px 8px; }
  .kj .kj-masu.l { width: 5.4rem; height: 5.4rem; font-size: 4.2rem; }
  .kj .kj-route { gap: 4px; }
  .kj .kj-rb small { display: none; }
}
@media (prefers-reduced-motion: reduce) { .kj * { animation: none !important; transition: none !important; } }
/* 小1・2：よそうの ボタンの 字を 大きく（2026-11-14） */
.kj.kj-big .kj-g { font-size: 1.3rem; line-height: 1.6; }
/* 固定文の ふりがな（furi()）が 入っても 字が つまらないように（2026-11-14） */
.kj .kj-yl { line-height: 1.9; padding: 3px 0 4px; }
.kj .kj-yl rt { font-size: .6em; color: #fff; }
.kj .kj-fl, .kj .kj-ybn { line-height: 2; }
.kj .kj-ybn { font-size: .95rem; }
.kj rt { font-weight: 500; }
