/* 読みとり（yomitori）部品。聞かれて いる ところ＝赤い 波線、数＝○、テープ：ぜんたい＝青、わかって いる 部分＝オレンジ、？＝点線 */
.yt-w { --yt-b: #2563eb; --yt-bl: #dbe7ff; --yt-o: #fdba74; --yt-od: #c2410c; --yt-r: #dc2626; --yt-g: #15803d; }
.yt-w button { font: inherit; cursor: pointer; color: var(--ink, #1f2937); }
.yt-w button:focus-visible, .yt-panel:focus-visible { outline: 3px solid var(--yt-b); outline-offset: 2px; }
.yt-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.yt-tab { min-height: 44px; padding: 2px 14px; border: 2px solid var(--line, #e5e7eb); background: #fff; border-radius: 999px; font-weight: 700; font-size: .95rem; }
.yt-tab[aria-pressed="true"] { border-color: var(--yt-b); background: var(--yt-bl); }
.yt-prog { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 10px; font-size: .78rem; color: var(--sub, #6b7280); }
.yt-st { display: inline-flex; align-items: center; gap: 3px; padding: 1px 8px 1px 2px; border-radius: 999px; background: #f3f4f6; }
.yt-st b { display: inline-grid; place-items: center; width: 1.5em; height: 1.5em; border-radius: 50%; background: #d1d5db; color: #fff; font-size: .8rem; }
.yt-st.did b { background: var(--yt-g); }
.yt-st.now { background: var(--yt-bl); color: var(--ink, #1f2937); font-weight: 700; }
.yt-st.now b { background: var(--yt-b); }
.yt-text { background: #fffdf5; border: 2px solid #f1e3b5; border-radius: 12px; padding: 10px 12px; margin: 0 0 10px; }
.yt-p { margin: 0; font-size: 1.2rem; line-height: 2.6; }
.yt-seg { display: inline; border: 0; background: none; padding: 0; margin: 0; line-height: inherit; font-size: inherit; text-align: left; position: relative; }
button.yt-seg { background: #eef4ff; border-radius: 6px; box-shadow: 0 0 0 1px #c7d7fb; padding: 2px 1px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
button.yt-seg:hover { background: #dfe9ff; }
.yt-seg.ask { text-decoration: underline wavy var(--yt-r); text-decoration-thickness: 2px; text-underline-offset: 6px; color: #991b1b; font-weight: 700; }
.yt-seg.num { font-weight: 700; white-space: nowrap; }
.yt-seg.num.got, .yt-seg.num.sel { border-radius: 999px; box-shadow: 0 0 0 3px var(--yt-od); padding: 0 6px; background: #fff7ed; }
.yt-seg.num.sel { box-shadow: 0 0 0 3px var(--yt-b); background: var(--yt-bl); }
.yt-seg.num.got.none { box-shadow: 0 0 0 3px #9ca3af; background: #f3f4f6; color: #4b5563; }
.yt-tag { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 6px; background: var(--yt-od); color: #fff; font-size: .72rem; line-height: 1.6; vertical-align: middle; font-weight: 700; }
.none .yt-tag { background: #6b7280; }
.yt-panel { outline: none; }
.yt-guide { font-weight: 700; margin: 0 0 8px; line-height: 2; }
.yt-n { display: inline-grid; place-items: center; width: 1.7em; height: 1.7em; border-radius: 50%; background: var(--yt-b); color: #fff; margin-right: 6px; font-size: .9rem; }
.yt-small { margin: 0 0 8px; color: var(--sub, #4b5563); font-size: .95rem; }
.yt-q { font-weight: 700; margin: 0 0 6px; }
.yt-pick { border: 2px solid var(--yt-b); border-radius: 12px; padding: 8px 10px; margin: 0 0 8px; background: #f8fbff; }
.yt-ch { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.yt-c { min-height: 48px; padding: 4px 14px; border: 2px solid var(--ink, #1f2937); background: #fff; border-radius: 12px; font-weight: 700; text-align: left; line-height: 1.8; }
.yt-c.ok, .yt-c.ok:disabled { border-color: var(--yt-g); background: #ecfdf3; opacity: 1; }
.yt-c:disabled { opacity: .45; cursor: default; }
.yt-go, .yt-ck, .yt-re0 { min-height: 48px; padding: 4px 18px; border-radius: 12px; font-weight: 700; border: 2px solid var(--yt-b); background: var(--yt-b); color: #fff !important; }
.yt-re0 { background: #fff; color: var(--sub, #4b5563) !important; border: 2px dashed #9ca3af; font-weight: 400; min-height: 40px; font-size: .9rem; }
.yt-next, .yt-again { margin: 4px 0 8px; }
.yt-again { text-align: right; }
.yt-msg { margin: 0 0 8px; padding: 6px 10px; border-radius: 10px; background: #fff7ed; border-left: 5px solid #f59e0b; line-height: 2; }
.yt-msg.ok { background: #ecfdf3; border-left-color: var(--yt-g); }
.yt-tape { margin: 4px 0 8px; }
.yt-row { display: flex; width: 100%; margin: 0 0 6px; }
.yt-tp { box-sizing: border-box; min-width: 4.6em; min-height: 46px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0 4px; padding: 2px 4px; border: 3px solid var(--yt-od); background: var(--yt-o); border-radius: 6px; font-size: .9rem; font-weight: 700; text-align: center; line-height: 1.5; }
.yt-tp b { font-size: 1.1rem; }
.yt-tp.w { border-color: var(--yt-b); background: var(--yt-bl); }
.yt-tp.d { background: #fff; border-style: dashed; }
.yt-tp.q { background: #fff; border: 3px dashed #6b7280; color: var(--yt-r); }
.yt-row .yt-tp + .yt-tp { margin-left: -3px; }
.yt-tape.anim .yt-tp { animation: yt-in .5s ease both; }
.yt-tape.anim .yt-row:nth-child(2) .yt-tp:nth-child(1) { animation-delay: .35s; }
.yt-tape.anim .yt-row:nth-child(2) .yt-tp:nth-child(2) { animation-delay: .7s; }
@keyframes yt-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .yt-tape.anim .yt-tp { animation: none; } }
.yt-unused { margin: 0 0 8px; font-size: .95rem; color: #4b5563; }
.yt-x { text-decoration: line-through; text-decoration-color: #9ca3af; padding: 0 4px; border-radius: 999px; box-shadow: 0 0 0 2px #9ca3af; }
.yt-re { margin: 0 0 8px; padding: 6px 10px; border-radius: 10px; background: #f8fafc; border: 1px solid #e5e7eb; }
.yt-in { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 10px; }
.yt-eq { font-weight: 700; font-size: 1.2rem; }
.yt-in input { width: 5em; min-height: 48px; font-size: 1.3rem; text-align: center; border: 2px solid var(--ink, #1f2937); border-radius: 10px; }
.yt-u { font-weight: 700; }
.yt-back { margin: 0 0 8px; padding: 8px 12px; border-radius: 12px; background: #ecfdf3; border: 2px solid #86efac; line-height: 2; }
.yt-back b { display: block; font-size: .9rem; color: var(--yt-g); }
.yt-fin { font-weight: 700; color: var(--yt-g); }
@media (max-width: 420px) { .yt-p { font-size: 1.1rem; } .yt-tp { font-size: .8rem; min-width: 4em; } }
/* mul（1つ分×いくつ分＝ぜんぶ、2026-11-15 読む力）：下の だんは 同じ はばの 1つ分を ならべる */
.yt-tape.mul .yt-tp.m { min-width: 0; padding: 2px 1px; font-size: .85rem; }
.yt-tape.mul .yt-tp.m.b { background: #fde7c8; }
.yt-tape.mul .yt-tp.m .yt-1 { display: block; width: 100%; font-size: .7rem; line-height: 1.2; }
.yt-tape.mul .yt-tp.m.d.q { color: var(--yt-r); }
.yt-cnt { margin: 0 0 2px; font-weight: 700; text-align: right; }
.yt-rule { margin: 0 0 6px; font-size: .9rem; color: #4b5563; text-align: center; }
.yt-tape.anim.mul .yt-row:nth-child(2) .yt-tp { animation-delay: .35s; }
/* amari（あまりの ある わり算）・box（□を つかった 式）2026-11-15 読む力 小3 */
.yt-tape.amari .yt-tp.m.r { background: #fff; border: 3px dashed var(--yt-r); color: var(--yt-r); }
.yt-box { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.yt-box .yt-c { font-size: 1.15rem; }
