/* joho-wave（音を デジタルに する、中学 g7-joho-oto 2026-11-18）。色は sho.css の 約束：みどり＝正かい、オレンジ＝光る 所、黄色＝ここを 見て。赤は つかわない。
   元の 波＝あお、点＝オレンジ、点を 結んだ 線＝こい 灰色、ずれ＝うすい オレンジ。字は 17px 以上、ボタンは 48px 以上。 */
.jw-w { font-size: 1.1rem; line-height: 1.7; }
.jw-w button { font: inherit; cursor: pointer; touch-action: manipulation; }
.jw-w button:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; }
.jw-w p { margin: 6px 0; }
.jw-w [hidden] { display: none !important; }
.jw-lead { text-align: center; font-weight: 700; }
.jw-task { text-align: center; font-weight: 700; color: var(--teal-d, #0f8a72); margin: 0 0 6px; }
.jw-pic { max-width: 560px; margin: 0 auto; }
.jw-svg { display: block; width: 100%; height: auto; }
.jw-bg { fill: #fff; stroke: #94a3b8; stroke-width: 1.5; }
.jw-lv { stroke: #cbd5e1; stroke-width: 1; stroke-dasharray: 4 3; }
.jw-lt { font-size: 11px; fill: #4b5563; text-anchor: end; font-family: ui-monospace, monospace; }
.jw-cut { stroke: #94a3b8; stroke-width: 1; }
.jw-orig { fill: none; stroke: #2563eb; stroke-width: 3; stroke-linejoin: round; }
.jw-rec { fill: none; stroke: #1f2937; stroke-width: 2.4; stroke-linejoin: round; }
.jw-diff { fill: #fdba74; fill-opacity: .55; stroke: none; fill-rule: evenodd; }
.jw-pt { fill: #f59e0b; stroke: #fff; stroke-width: 1.2; }
.jw-mv { stroke: #f59e0b; stroke-width: 2; stroke-dasharray: 2 2; }
.jw-mark { fill: none; stroke: #b45309; stroke-width: 2.5; stroke-dasharray: 5 3; }
.jw-nt { font-size: 14px; font-weight: 700; fill: #b45309; text-anchor: middle; font-family: ui-monospace, monospace; paint-order: stroke; stroke: #fff; stroke-width: 3px; }
.jw-ax { font-size: 12px; fill: #4b5563; text-anchor: end; }
.jw-leg { text-align: center; font-size: .92rem; margin: 2px 0 4px; }
.jw-leg span { white-space: nowrap; margin: 0 4px; }
.jw-leg .o { color: #2563eb; font-weight: 700; } .jw-leg .p { color: #d97706; font-weight: 700; } .jw-leg .r { color: #1f2937; font-weight: 700; } .jw-leg .d { color: #f59e0b; }
.jw-nums { text-align: center; font-size: 1rem; }
.jw-nums p { margin: 2px 0; overflow-wrap: anywhere; }
.jw-nums .jp-mono, .jw-mono { font-family: "UD Digi Kyokasho NK-R", "BIZ UDGothic", ui-monospace, monospace; font-weight: 700; letter-spacing: .04em; }
.jw-b { min-height: 48px; padding: 6px 14px; border-radius: 12px; border: 2px solid var(--line, #e5e7eb); background: #fff; color: var(--ink, #1f2937); font-weight: 700; }
.jw-b.main { background: var(--teal-d, #0f8a72); border-color: var(--teal-d, #0f8a72); color: #fff; }
.jw-b.idk { border-style: dashed; color: var(--sub, #4b5563); }
.jw-b:disabled { opacity: .42; cursor: default; }
.jw-step, .jw-next, .jw-reset { display: block; margin: 10px auto 0; }
.jw-knobs { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 10px 0 4px; }
.jw-knob { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.jw-kn { flex-basis: 100%; text-align: center; font-weight: 700; margin-bottom: -4px; }
.jw-knob .jw-b { min-width: 72px; }
.jw-rnote { text-align: center; font-size: .92rem; color: var(--sub, #4b5563); margin: 10px auto 0; max-width: 30em; }
.jw-kv { min-width: 4.2em; text-align: center; font-size: 1.15rem; }
.jw-met { max-width: 26em; margin: 8px auto 0; text-align: center; }
.jw-mt { margin: 6px 0 2px; }
.jw-mt b { white-space: nowrap; color: var(--orange-t, #b45309); font-size: 1.2rem; }
.jw-ms { font-size: .95rem; color: var(--sub, #4b5563); margin: 2px 0; }
.jw-bar { position: relative; height: 16px; background: #f1f5f9; border: 1.5px solid #94a3b8; border-radius: 8px; overflow: hidden; }
.jw-fill { position: absolute; left: 0; top: 0; bottom: 0; background: #f59e0b; transition: width .3s ease; }
.jw-fill.over { background: repeating-linear-gradient(45deg, #f59e0b 0 6px, #fcd34d 6px 12px); }
.jw-fill.e { background: #fdba74; }
.jw-max { position: absolute; top: -2px; bottom: -2px; width: 3px; margin-left: -1.5px; background: #1f2937; }
.jw-snd { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; margin: 10px 0 0; }
.jw-sndn { flex-basis: 100%; text-align: center; font-size: .9rem; color: var(--sub, #4b5563); }
.jw-ask { margin: 8px 0 0; }
.jw-q { font-weight: 700; font-size: 1.12rem; text-align: center; }
.jw-qs { text-align: center; color: var(--sub, #4b5563); margin-top: 0; }
.jw-choices, .jw-ctl { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 6px 0; }
.jw-ch { min-height: 52px; padding: 4px 14px; border: 2px solid var(--line, #e5e7eb); border-radius: 12px; background: #fff; font-weight: 700; color: var(--ink, #1f2937); }
.jw-ch.idk { font-size: 1rem; color: var(--sub, #4b5563); border-style: dashed; }
.jw-ch.picked { border-color: var(--ink, #1f2937); box-shadow: inset 0 0 0 2px var(--ink, #1f2937); }
.jw-ch:disabled:not(.picked) { opacity: .5; }
.jw-fb { min-height: 1.7em; text-align: center; }
.jw-res { font-weight: 700; font-size: 1.12rem; }
.jw-res.ok { color: #0f8a72; }
.jw-res.try { color: var(--orange-t, #b45309); }
.jw-note { background: #fff4dc; border-radius: 10px; padding: 6px 12px; display: inline-block; text-align: left; max-width: 34em; }
.jw-say { color: var(--sub, #4b5563); }
.jw-note:not(:first-child) { margin-top: 4px; }
p.jw-note { display: block; margin-left: auto; margin-right: auto; }
.jw-w .say { font-size: 18px; line-height: 1; flex: none; padding: 0; }
@media (prefers-reduced-motion: reduce) { .jw-fill { transition: none; } }
.jw-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
