/* ko-yomi（読み方の コツ）。字は Klee One（国語ページで よみこむ）→ 教科書体 → 丸ゴシック。
   ペン・カードの 色 c-b 青・c-o オレンジ・c-g みどり・c-p むらさき・c-k ピンク。正かい＝みどり、まちがい＝赤。字は 16px 以上 */
.ky { --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;
  --o: #f59e0b; --od: #b45309; --ok: #10b981; --okd: #047857; --ng: #ef4444; --ngd: #b91c1c; --fs: 1.15rem; font-size: 1.05rem; position: relative; color: var(--ink, #1f2937); }
.ky.ky-big { --fs: 1.4rem; }
.ky [hidden] { display: none !important; }
.ky button { font-family: inherit; -webkit-tap-highlight-color: transparent; color: inherit; }
.ky ruby, .ky .ky-text, .ky .ky-card, .ky .ky-pc, .ky .ky-st, .ky .ky-sumout, .ky .ky-chip, .ky .ky-lt, .ky .ky-q, .ky .ky-op, .ky .ky-tbl { font-family: var(--kf); }
.ky rt { font-size: .5em; font-weight: 500; font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif; }
.ky svg { display: block; }
.ky .c-b { --c: #2563eb; --cl: #dbeafe; --cm: #93c5fd; } .ky .c-o { --c: #ea580c; --cl: #ffedd5; --cm: #fdba74; } .ky .c-g { --c: #059669; --cl: #d1fae5; --cm: #6ee7b7; }
.ky .c-p { --c: #7c3aed; --cl: #ede9fe; --cm: #c4b5fd; } .ky .c-k { --c: #db2777; --cl: #fce7f3; --cm: #f9a8d4; }

/* 問い・よそう */
.ky-qbox { display: flex; gap: 8px; align-items: flex-start; background: linear-gradient(180deg, #fff8e6, #fffdf6); border: 2px solid var(--o); border-radius: 16px; padding: 8px 8px 8px 14px; margin-bottom: 10px; box-shadow: 0 2px 8px rgba(245, 158, 11, .12); }
.ky-q { flex: 1; margin: 0; font-weight: 600; font-size: 1.12rem; line-height: 1.8; }
.ky-big .ky-q { font-size: 1.25rem; }
.ky-qs { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 2px solid #bfdbfe; background: #fff; color: #2563eb !important; padding: 7px; cursor: pointer; }
.ky-qs svg { width: 100%; height: 100%; }
.ky-guess, .ky-final { background: #fff; border: 2px dashed var(--o); border-radius: 16px; padding: 8px 12px 10px; margin-bottom: 12px; }
.ky-final { margin-top: 12px; border-color: #7c3aed; }
.ky-gq, .ky-fq { margin: 0 0 8px; font-weight: 700; line-height: 1.7; }
.ky-fq { font-family: var(--kf); }
.ky-gt { display: inline-block; margin-right: 8px; padding: 0 10px; border-radius: 999px; background: var(--o); color: #fff; font-size: .85rem; vertical-align: .1em; }
.ky-gb, .ky-fb { display: flex; flex-wrap: wrap; gap: 8px; }
.ky-fb { flex-direction: column; }
.ky-g { min-height: 50px; padding: 4px 16px; border: 2px solid #cbd5e1; background: #fff; border-radius: 12px; font-weight: 700; font-size: 1.02rem; line-height: 1.6; cursor: pointer; box-shadow: 0 2px 0 #cbd5e1; text-align: left; }
.ky-g:disabled { opacity: .5; cursor: default; }
.ky-g.ok { opacity: 1; background: #d1fae5; border-color: var(--ok); }
.ky-g.ng { opacity: 1; background: #fee2e2; border-color: var(--ng); }
.ky-gr { margin: 8px 0 0; font-weight: 700; color: var(--od); line-height: 1.7; }
.ky-gr.fin { color: var(--okd); }
.ky-gok { display: inline-block; margin-right: 6px; padding: 0 8px; border-radius: 999px; background: var(--ok); color: #fff; font-size: .85rem; }

/* 文しょう（げんこう用紙ふうの 紙） */
.ky-text { position: relative; padding: 0 14px 6px; background-position: 0 0; border-radius: 6px 16px 16px 6px; background: #fffdf6; border: 1px solid #eadfc3; border-left: 6px solid #e6c98d;
  background-image: repeating-linear-gradient(180deg, transparent 0 calc(var(--fs) * 2.4 - 1px), #f0e4c8 calc(var(--fs) * 2.4 - 1px) calc(var(--fs) * 2.4));
  box-shadow: 0 2px 0 #eadfc3, 0 8px 18px rgba(120, 90, 30, .1); font-size: var(--fs); line-height: 2.4; margin-bottom: 4px; }
.ky-title { font-weight: 700; line-height: 2.4; color: #7c2d12; }
/* ▶読む は 文の 上の 1行に（右より）。文に かさならない（2026-11-14） */
.ky-read { float: none; position: relative; z-index: 3; display: flex; width: max-content; align-items: center; gap: 4px; min-height: 40px; margin: 8px 0 2px auto; padding: 2px 12px; border-radius: 999px; border: 2px solid #bfdbfe; background: #fff; color: #2563eb !important; font-size: .9rem; font-weight: 700; cursor: pointer; line-height: 1; }
.ky-read svg { width: 20px; height: 20px; }
.ky-p { margin: 0; }
.ky-pn { display: inline-block; margin-right: 4px; color: #b45309; font-weight: 700; font-family: sans-serif; font-size: .9em; }
.ky-s { position: relative; border-radius: 6px; transition: background .2s; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.ky-s.ky-now { background: #dbeafe; box-shadow: 0 0 0 2px #93c5fd; }
.ky-tap { cursor: pointer; }
.ky-w { border-bottom: 2px dotted #c9b88f; padding: 0 1px; }
.ky-w.ky-tap:hover, .ky-s.ky-tap:hover { background: #fef9c3; }
.ky-want .ky-s.ky-tap { background: linear-gradient(transparent 70%, rgba(245, 158, 11, .18) 70%); }
.ky-pop { animation: ky-pop .3s; }

.ky-tbl thead rt, .ky-zh rt, .ky-sdots i.on rt, .ky-sdots i.ok rt, .ky-tab.on rt { color: rgba(255, 255, 255, .9); }

/* mark：ペン */
.ky-pal { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; position: sticky; top: 0; z-index: 5; padding: 6px 0; background: rgba(255, 255, 255, .94); }
.ky-pen { display: inline-flex; align-items: center; gap: 6px; min-height: 50px; padding: 4px 14px 4px 8px; border-radius: 14px; border: 2px solid #e5e7eb; background: #fff; font-weight: 700; font-size: 1.02rem; cursor: pointer; box-shadow: 0 2px 0 #e5e7eb; }
.ky-pi { width: 32px; height: 32px; border-radius: 50%; padding: 5px; background: var(--cl); color: var(--c); box-sizing: border-box; }
.ky-pi svg { width: 100%; height: 100%; }
.ky-pen.on { border-color: var(--o); background: #fffaf0; box-shadow: 0 0 0 4px rgba(245, 158, 11, .25), 0 2px 0 var(--o); transform: translateY(-2px) rotate(-1deg); }
.ky-ink { background: linear-gradient(transparent 38%, var(--cm) 38%, var(--cm) 92%, transparent 92%); color: inherit; }
.ky-s.ky-ink { background: linear-gradient(transparent 30%, var(--cl) 30%); box-shadow: inset 0 -3px 0 var(--cm); }
.ky-show [data-a="b"], .ky-show [data-a="o"], .ky-show [data-a="g"], .ky-show [data-a="p"], .ky-show [data-a="k"] { text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 6px; }
.ky-show [data-a="b"] { text-decoration-color: #2563eb; } .ky-show [data-a="o"] { text-decoration-color: #ea580c; } .ky-show [data-a="g"] { text-decoration-color: #059669; }
.ky-show [data-a="p"] { text-decoration-color: #7c3aed; } .ky-show [data-a="k"] { text-decoration-color: #db2777; }
.ky-ok::after, .ky-ng::after { content: ""; display: inline-block; width: 16px; height: 16px; margin-left: 2px; vertical-align: -1px; border-radius: 50%; background-size: 100%; }
.ky-ok::after { background: #10b981 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 12.5l3.6 3.6 7.4-8' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round'/%3E%3C/svg%3E"); }
.ky-ng::after { background: #ef4444 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 8l8 8M16 8l-8 8' stroke='white' stroke-width='3.4' stroke-linecap='round'/%3E%3C/svg%3E"); }
.ky-ng { outline: 2px solid var(--ng); outline-offset: 1px; animation: ky-shake .35s 2; }
.ky-miss { outline: 2px dashed var(--o); outline-offset: 2px; animation: ky-glow 1s ease-in-out infinite alternate; }
.ky-sum3 b { display: inline-block; min-width: 1.4em; text-align: center; border-radius: 999px; color: #fff; padding: 0 4px; }
.ky-sum3 b.o { background: var(--ok); } .ky-sum3 b.n { background: var(--ng); } .ky-sum3 b.m { background: var(--o); }

/* link */
.ky-lw { position: relative; }
.ky-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 4; }
.ky-wire { fill: none; stroke: var(--c); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 2 7; opacity: .85; animation: ky-march 1s linear infinite; }
.ky-lcards { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
.ky-lcard { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 120px; max-width: 48%; min-height: 64px; padding: 10px 12px 8px; border-radius: 16px; cursor: pointer;
  border: 2px solid var(--cm); background: linear-gradient(180deg, #fff, var(--cl)); box-shadow: 0 4px 0 var(--cm), 0 6px 12px rgba(0, 0, 0, .06); font-weight: 700; }
.ky-lcard img { max-width: 100%; max-height: 80px; object-fit: contain; border-radius: 8px; }
.ky-lt { font-size: 1.08rem; line-height: 1.5; color: var(--c); }
.ky-lc { font-size: .9rem; line-height: 1.5; }
.ky-ln { position: absolute; top: -12px; left: -8px; width: 26px; height: 26px; line-height: 26px; border-radius: 50%; background: var(--c); color: #fff; font-size: .95rem; text-align: center; }
.ky-need { display: flex; gap: 4px; margin-top: 4px; }
.ky-need i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--c); background: #fff; }
.ky-need i.on { background: var(--c); }
.ky-lcard.sel { transform: translateY(-4px); box-shadow: 0 0 0 4px rgba(245, 158, 11, .4), 0 8px 14px rgba(0, 0, 0, .12); border-color: var(--o); }
.ky-lcard.ky-fin { border-color: var(--ok); background: linear-gradient(180deg, #fff, #dcf7ea); box-shadow: 0 4px 0 #a7e9cc; }
.ky-lcard.ky-fin::after { content: "きまり"; position: absolute; top: -10px; right: -6px; padding: 0 8px; border-radius: 999px; background: var(--ok); color: #fff; font-size: .75rem; line-height: 1.6; }
.ky-ev { background: linear-gradient(transparent 55%, var(--cm, #a7f3d0) 55%); }
.ky-bd { display: inline-block; margin-left: 2px; width: 20px; height: 20px; line-height: 20px; border-radius: 50%; background: var(--c); color: #fff; font-size: .8rem; text-align: center; font-family: sans-serif; vertical-align: .15em; text-indent: 0; }
.ky-bad { background: #fee2e2 !important; box-shadow: 0 0 0 2px var(--ng); animation: ky-shake .3s 2; }

/* order・para の カード */
.ky-pool { display: flex; flex-direction: column; gap: 8px; min-height: 60px; padding: 12px 10px; margin-top: 12px; border-radius: 18px; background: linear-gradient(180deg, #f6e7c8, #efd9ad); box-shadow: inset 0 2px 6px rgba(120, 80, 20, .25); border: 1px solid #e0c48e; }
.ky-pool.ky-empty { display: none; }
.ky-card, .ky-pc { position: relative; display: block; width: 100%; text-align: left; min-height: 54px; padding: 8px 12px; border: 2px solid #d9d2bf; border-radius: 14px; cursor: pointer; font-size: calc(var(--fs) * .95); font-weight: 600; line-height: 1.75;
  background: linear-gradient(180deg, #fff, #fffdf7 60%, #f8f3e6); box-shadow: 0 3px 0 #e3dbc6, 0 5px 10px rgba(80, 60, 20, .1); }
.ky-card.ok, .ky-pc.ok { border-color: var(--ok); background: linear-gradient(180deg, #f3fdf8, #dcf7ea); box-shadow: 0 3px 0 #a7e9cc; }
.ky-card.ng, .ky-pc.ng { border-color: var(--ng); background: linear-gradient(180deg, #fff6f6, #ffe1e1); animation: ky-shake .35s 2; }
.ky-pc.sel { border-color: var(--o); background: linear-gradient(180deg, #fffaf0, #ffefc9); transform: translateY(-3px); box-shadow: 0 0 0 4px rgba(245, 158, 11, .3); }
.ky-ow { background: #fde68a; color: #9a3412; padding: 0 3px; border-radius: 5px; font-weight: 700; }
.ky-lane { display: flex; flex-direction: column; gap: 8px; padding: 10px 8px; border-radius: 18px; background: linear-gradient(180deg, #eef4ff, #f8fbff); border: 2px solid #c7d7f5; }
.ky-slot { position: relative; min-height: 56px; padding: 4px 4px 4px 42px; border-radius: 14px; border: 2px dashed #9db6e6; background: rgba(255, 255, 255, .7); }
.ky-sn { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; line-height: 28px; border-radius: 50%; background: #3b5ba9; color: #fff; text-align: center; font-weight: 800; font-size: .95rem; }
.ky-slot:has(.ky-card) { border-style: solid; border-color: transparent; background: transparent; }
.ky-lane.ky-fin .ky-sn { background: var(--ok); }

/* para */
.ky-zones { display: flex; flex-direction: column; gap: 10px; }
.ky-zone { border-radius: 16px; border: 2px solid var(--cm); background: linear-gradient(180deg, var(--cl), #fff 60%); box-shadow: 0 3px 0 var(--cm); cursor: pointer; overflow: hidden; }
.ky-zh { padding: 4px 14px; background: var(--c); color: #fff; font-weight: 800; font-size: 1.05rem; letter-spacing: .1em; }
.ky-zwhy { margin: 6px 10px 0; font-size: .92rem; font-weight: 700; color: var(--c); line-height: 1.6; animation: ky-pop .35s; }
.ky-zb { display: flex; flex-direction: column; gap: 8px; min-height: 56px; padding: 8px; margin: 8px; border-radius: 12px; border: 2px dashed var(--cm); background: rgba(255, 255, 255, .7); }
.ky-want .ky-zone { box-shadow: 0 0 0 4px rgba(245, 158, 11, .3), 0 3px 0 var(--cm); }
.ky-want .ky-zb { border-color: var(--o); background: #fffaf0; }
.ky-zone.ky-fin .ky-zb { border-style: solid; border-color: transparent; }
.ky-pc .ky-pn { position: absolute; top: 6px; left: 8px; }
.ky-pc { padding-left: 34px; font-size: calc(var(--fs) * .88); }
.ky-flag { position: absolute; top: -14px; right: -6px; width: 34px; height: 34px; opacity: 0; transform: scale(.4) translateY(10px); transition: all .25s; pointer-events: none; }
.ky-pc.flag .ky-flag { opacity: 1; transform: none; }
.ky-flagging .ky-pc { cursor: pointer; }
.ky-flagging .ky-pc.flag { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, .25), 0 3px 0 #fca5a5; }
.ky-type { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 14px; padding: 12px; border-radius: 16px; background: linear-gradient(180deg, #fff7ed, #fff); border: 2px solid #fdba74; animation: ky-pop .4s; }
.ky-type b { font-size: 1.4rem; color: #9a3412; font-family: var(--kf); }
.ky-type span { font-weight: 700; color: #7c2d12; }
.ky-tbars { display: flex; gap: 6px; align-items: flex-end; }
.ky-tbars i { position: relative; width: 34px; height: 46px; border-radius: 6px; background: #fde7c7; border: 2px solid #fdba74; }
.ky-tbars i.f { background: #fb923c; border-color: #ea580c; }
.ky-tbars i.f::before { content: ""; position: absolute; top: -18px; left: 8px; width: 3px; height: 20px; background: #7c2d12; }
.ky-tbars i.f::after { content: ""; position: absolute; top: -18px; left: 11px; border-left: 14px solid #ef4444; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }

/* table */
.ky-texts { display: grid; gap: 10px; }
.ky-texts.n2 .ky-text { margin: 0; }
.ky-texts .ky-w { cursor: pointer; padding: 2px 3px; border-radius: 6px; border: 2px dashed #c9b88f; border-bottom-style: dashed; }
.ky-texts .ky-w.sel { background: #ffefc9; border: 2px solid var(--o); box-shadow: 0 0 0 3px rgba(245, 158, 11, .25); }
.ky-texts .ky-w.ky-used { border-color: transparent; background: #d1fae5; color: var(--okd); cursor: default; }
.ky-tbl { width: 100%; margin-top: 12px; border-collapse: separate; border-spacing: 4px; table-layout: fixed; }
.ky-tbl th { padding: 6px 4px; border-radius: 10px; font-size: .95rem; line-height: 1.5; }
.ky-tbl thead th { color: #fff; }
.ky-tbl thead th.c0 { background: #2563eb; } .ky-tbl thead th.c1 { background: #ea580c; } .ky-tbl thead th:first-child { background: transparent; }
.ky-tbl tbody th { background: #f1f5f9; color: #334155; width: 28%; }
.ky-tbl td { height: 58px; padding: 4px; border-radius: 10px; border: 2px dashed #cbd5e1; background: #fff; vertical-align: middle; text-align: center; cursor: pointer; }
.ky-want td:empty { border-color: var(--o); background: #fffaf0; }
.ky-tbl td.ky-bad { border-color: var(--ng); background: #fee2e2; animation: ky-shake .3s 2; }
.ky-tbl td.ky-empty2 { border-color: var(--o); background: #fff7e6; animation: ky-glow 1s ease-in-out infinite alternate; }
.ky-chip { display: inline-block; padding: 2px 8px; border-radius: 8px; background: #d1fae5; color: var(--okd); font-weight: 700; line-height: 1.6; font-size: .98rem; }

/* sum */
.ky-meter { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 5; padding: 8px 4px; background: rgba(255, 255, 255, .95); }
.ky-mbar { position: relative; flex: 1; height: 18px; border-radius: 999px; background: #e5e7eb; overflow: visible; }
.ky-mbar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: linear-gradient(90deg, #34d399, #10b981); transition: width .3s; }
.ky-mbar b { position: absolute; top: -6px; bottom: -6px; width: 3px; margin-left: -1px; background: #1f2937; border-radius: 2px; transition: left .3s; }
.ky-meter.over .ky-mbar i { background: linear-gradient(90deg, #fb923c, #ef4444); }
.ky-mn { flex: none; font-weight: 700; } .ky-mn b { font-size: 1.3rem; }
.ky-meter.over .ky-mn b { color: var(--ngd); } .ky-meter.in .ky-mn b { color: var(--okd); }
.ky-slist { display: flex; flex-direction: column; gap: 8px; }
.ky-srow { display: flex; gap: 6px; align-items: stretch; }
.ky-st { flex: 1; position: relative; text-align: left; min-height: 54px; padding: 8px 52px 8px 40px; border-radius: 14px; border: 2px solid #e2d6b8; background: #fffdf6; cursor: pointer; font-size: calc(var(--fs) * .92); line-height: 1.8; font-weight: 600; transition: all .2s; }
.ky-sn2 { position: absolute; left: 8px; top: 12px; width: 24px; height: 24px; line-height: 24px; border-radius: 50%; background: #3b5ba9; color: #fff; text-align: center; font-size: .85rem; font-family: sans-serif; }
.ky-cnt { position: absolute; right: 8px; top: 10px; font-size: .78rem; font-family: sans-serif; color: #6b7280; }
.ky-srow.cut .ky-st { opacity: .45; text-decoration: line-through; text-decoration-color: var(--ng); text-decoration-thickness: 2px; background: #f8fafc; border-style: dashed; }
.ky-srow.alt .ky-st { border-color: #a78bfa; background: #faf7ff; }
.ky-srow.need .ky-st { box-shadow: 0 0 0 4px rgba(239, 68, 68, .35); }
.ky-alt { flex: none; width: 74px; border-radius: 12px; border: 2px solid #c4b5fd; background: #f5f3ff; color: #5b21b6 !important; font-weight: 700; font-size: .85rem; line-height: 1.3; cursor: pointer; }
.ky-ops { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; padding: 8px; border-radius: 14px; border: 2px dashed #fdba74; background: #fff7ed; }
.ky-opl { font-size: .85rem; font-weight: 700; color: #9a3412; width: 100%; }
.ky-op { min-height: 46px; padding: 4px 12px; border-radius: 12px; border: 2px solid #fdba74; background: #fff; font-weight: 600; cursor: pointer; text-align: left; line-height: 1.6; }
.ky-op.on { background: #fed7aa; border-color: #ea580c; }
.ky-sumout { margin-top: 12px; padding: 10px 14px; border-radius: 14px; background: #f8fafc; border: 2px solid #cbd5e1; line-height: 2; font-size: calc(var(--fs) * .95); }
.ky-sumout.ok { background: #f0fdf7; border-color: var(--ok); }
.ky-ol { display: block; font-family: sans-serif; font-size: .8rem; font-weight: 800; color: #64748b; line-height: 1.4; }
.ky-opm { background: #fed7aa; color: #9a3412; border-radius: 4px; }
.ky-slist.ky-fin .ky-st { cursor: default; }

/* kimochi */
.ky-tabs { display: flex; gap: 6px; justify-content: center; margin-bottom: 8px; }
.ky-tabs:empty { display: none; }
.ky-tab { min-height: 42px; padding: 2px 14px; border-radius: 999px; border: 2px solid #e5e7eb; background: #fff; font-weight: 700; }
.ky-tab:disabled { opacity: 1; cursor: default; }
.ky-tab.on { background: #1f2937; color: #fff !important; border-color: #1f2937; }
.ky-sdots { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 8px; }
.ky-sdots i { font-style: normal; padding: 0 10px; border-radius: 999px; background: #e5e7eb; color: #6b7280; font-size: .85rem; font-weight: 800; line-height: 1.9; }
.ky-sdots i.on { background: var(--o); color: #fff; } .ky-sdots i.ok { background: var(--ok); color: #fff; }
.ky-kmeter { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 10px 12px; border-radius: 16px; background: linear-gradient(180deg, #fff, #f8fafc); border: 2px solid #e2e8f0; }
.ky-fc { flex: none; width: 64px; height: 64px; }
.ky-face { width: 100%; height: 100%; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .15)); }
.ky-rg { flex: 1; position: relative; padding-top: 6px; }
.ky-track { position: relative; height: 14px; border-radius: 999px; background: linear-gradient(90deg, #60a5fa, #fcd34d 50%, #fb923c); }
.ky-band, .ky-ans { position: absolute; top: -6px; bottom: -6px; display: none; }
.ky-band { border-radius: 8px; background: rgba(16, 185, 129, .35); border: 2px solid var(--ok); }
.ky-ans { width: 0; }
.ky-ans::after { content: "こたえ"; position: absolute; top: -26px; left: 0; transform: translateX(-50%); padding: 0 6px; border-radius: 999px; background: var(--ok); color: #fff; font-size: .75rem; font-weight: 700; line-height: 1.6; white-space: nowrap; }
.ky-rg.show .ky-band, .ky-rg.show .ky-ans { display: block; }
.ky-rg input { position: absolute; left: -10px; right: -10px; top: 0; width: calc(100% + 20px); height: 28px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.ky-rg input::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 3px solid #1f2937; box-shadow: 0 2px 4px rgba(0, 0, 0, .3); }
.ky-rg input::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 3px solid #1f2937; }
.ky-rg input:disabled { cursor: default; }
.ky-ends { display: flex; justify-content: space-between; margin-top: 10px; font-weight: 700; font-size: .9rem; }
.ky-ends span:first-child { color: #2563eb; } .ky-ends span:last-child { color: #ea580c; }
.ky-kgo { display: block; margin: 12px auto 0; }
.ky-graph { display: none; }
.ky-graph.on { display: block; padding: 10px; border-radius: 16px; background: #fff; border: 2px solid #e2e8f0; animation: ky-pop .4s; }
.ky-gsv { width: 100%; height: auto; }
.ky-gl { stroke: #e2e8f0; stroke-width: 1.5; } .ky-gl.z { stroke: #cbd5e1; stroke-dasharray: 4 4; }
.ky-gt2 { font-size: 11px; font-weight: 800; font-family: sans-serif; text-anchor: end; } .ky-gt2.e1 { fill: #ea580c; } .ky-gt2.e0 { fill: #2563eb; }
.ky-gkt { font-size: 11px; font-weight: 800; fill: #b45309; text-anchor: middle; font-family: sans-serif; }
.ky-gx { font-size: 12px; fill: #475569; font-weight: 800; text-anchor: middle; font-family: sans-serif; }
.ky-gp { fill: none; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 600; stroke-dashoffset: 600; animation: ky-draw 1s ease-out forwards; }
.ky-gp.v0 { stroke: #ea580c; } .ky-gp.v1 { stroke: #2563eb; }
.ky-gd { stroke: #fff; stroke-width: 2.5; } .ky-gd.v0 { fill: #ea580c; } .ky-gd.v1 { fill: #2563eb; }
.ky-gu { fill: none; stroke: #64748b; stroke-width: 2; stroke-dasharray: 3 2; }
.ky-gk { fill: rgba(245, 158, 11, .25); }
.ky-gleg { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; font-size: .85rem; font-weight: 700; }
.ky-gleg span::before { content: ""; display: inline-block; width: 18px; height: 4px; margin-right: 4px; vertical-align: middle; border-radius: 2px; background: #ea580c; }
.ky-gleg .v1::before { background: #2563eb; } .ky-gleg .u::before { width: 10px; height: 10px; border-radius: 50%; border: 2px dashed #64748b; background: none; }
.ky-kh { margin: 10px 0 4px; font-weight: 800; color: #9a3412; }
.ky-kk { background: linear-gradient(transparent 50%, #fde68a 50%) !important; }

/* ひとこと・ボタン */
.ky-msg { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 0; padding: 10px 14px; border-radius: 14px; font-weight: 700; line-height: 1.7; position: relative; }
.ky-msg::before { content: ""; position: absolute; top: -9px; left: 26px; border: 9px solid transparent; border-top: 0; }
.ky-msg.ok { background: #ecfdf5; border: 2px solid var(--ok); color: #065f46; } .ky-msg.ok::before { border-bottom-color: var(--ok); }
.ky-msg.ng { background: #fff1f2; border: 2px solid var(--ng); color: #9f1239; } .ky-msg.ng::before { border-bottom-color: var(--ng); }
.ky-msg.info { background: #eef4ff; border: 2px solid #93b4f0; color: #1e3a8a; } .ky-msg.info::before { border-bottom-color: #93b4f0; }
.ky-mi { flex: none; width: 26px; height: 26px; margin-top: 3px; } .ky-mi svg { width: 100%; height: 100%; }
.ky-ml { display: block; } .ky-ml + .ky-ml { margin-top: 4px; padding-top: 4px; border-top: 1px dashed currentColor; }
.ky-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 12px 0 4px; }
.ky-acts:empty { display: none; }
.ky-go { min-height: 52px; padding: 6px 24px; border: 0; border-radius: 14px; background: var(--teal-d, #0f8a72); color: #fff !important; font-weight: 700; font-size: 1.1rem; cursor: pointer; box-shadow: 0 3px 0 #0a6553; }
.ky-go:active { transform: translateY(2px); box-shadow: 0 1px 0 #0a6553; }
.ky-b { display: inline-flex; align-items: center; gap: 6px; min-height: 50px; padding: 4px 16px; border: 2px solid var(--ink, #1f2937); background: #fff; border-radius: 14px; font-weight: 700; font-size: 1.05rem; cursor: pointer; }
.ky-b svg { width: 22px; height: 22px; }
.ky-spk { border-color: #2563eb; color: #2563eb !important; }
.ky-shk { animation: ky-shake .3s 1; }

@media (max-width: 480px) {
  .ky { --fs: 1.08rem; } .ky.ky-big { --fs: 1.3rem; }
  .ky-text { padding: 0 10px 6px; }
  .ky-lcard { min-width: 0; flex: 1 1 40%; }
  .ky-pen { padding: 4px 10px 4px 6px; }
  .ky-tbl th { font-size: .85rem; }
}
@keyframes ky-shake { 0%, 100% { transform: none; } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@keyframes ky-pop { from { transform: scale(.9); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes ky-glow { from { box-shadow: 0 0 0 0 rgba(245, 158, 11, .2); } to { box-shadow: 0 0 0 4px rgba(245, 158, 11, .35); } }
@keyframes ky-march { to { stroke-dashoffset: -18; } }
@keyframes ky-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .ky *, .ky-msg { animation: none !important; transition: none !important; } .ky-gp { stroke-dashoffset: 0; } }
/* 小1・2：よそうの ボタンの 字を 大きく（2026-11-14） */
.ky.ky-big .ky-g { font-size: 1.25rem; line-height: 1.7; }
