/* yomu-graph（読む力：文と ぼうグラフ）。ぼう＝青、光る ぼう＝オレンジ、答えを 見せた ぼう＝むらさきの 点線 */
.yg-w { --yg-b: #2563eb; --yg-bl: #dbe7ff; --yg-o: #f59e0b; --yg-g: #15803d; --yg-r: #dc2626; }
.yg-w button { font: inherit; cursor: pointer; color: var(--ink, #1f2937); }
.yg-w button:focus-visible { outline: 3px solid var(--yg-b); outline-offset: 2px; }
.yg-q { margin: 0 0 10px; font-weight: 700; font-size: 1.05rem; line-height: 2; }
.yg-guess { border: 2px dashed #f59e0b; border-radius: 12px; padding: 8px 12px; margin: 0 0 10px; }
.yg-gq { margin: 0 0 6px; line-height: 2; }
.yg-gt { display: inline-block; background: #f59e0b; color: #fff; border-radius: 999px; padding: 0 10px; margin-right: 6px; font-size: .85rem; font-weight: 700; }
.yg-gb { display: flex; flex-wrap: wrap; gap: 8px; }
.yg-g { min-height: 44px; padding: 4px 16px; border: 2px solid var(--line, #e5e7eb); background: #fff; border-radius: 10px; }
.yg-g.ok { border-color: #10b981; background: #d1fae5; } .yg-g.ng { border-color: #f87171; background: #fee2e2; }
.yg-gr { margin: 6px 0 0; color: #b45309; font-weight: 700; line-height: 2; }
.yg-gok { display: inline-block; background: #10b981; color: #fff; border-radius: 999px; padding: 0 10px; margin-right: 6px; font-size: .85rem; }
.yg-wait .yg-text { display: none; }
.yg-wait .yg-chart:empty { display: none; }
.yg-text { background: #fffdf5; border: 2px solid #f1e3b5; border-radius: 12px; padding: 8px 12px; margin: 0 0 10px; font-size: 1.1rem; line-height: 2.3; }
.yg-s { border-radius: 6px; transition: background .3s; margin-right: .5em; padding: 0 2px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.yg-s.hi { background: #fde68a; box-shadow: 0 0 0 2px #f59e0b; }
.yg-chart { background: #fff; border: 2px solid var(--line, #e5e7eb); border-radius: 12px; padding: 6px 4px 4px; }
.yg-svg { display: block; width: 100%; height: auto; max-width: 520px; margin: 0 auto; touch-action: manipulation; }
.yg-grid { stroke: #e5e7eb; stroke-width: 1; } .yg-grid.z { stroke: #6b7280; stroke-width: 1.5; }
.yg-t, .yg-u { font-size: 11px; fill: #4b5563; } .yg-tt { font-size: 13px; font-weight: 700; fill: #1f2937; }
.yg-lab { font-size: 13px; font-weight: 700; fill: #1f2937; }
.yg-col { fill: transparent; cursor: pointer; }
.yg-bar { fill: #93c5fd; stroke: var(--yg-b); stroke-width: 1.5; pointer-events: none; transition: y .2s, height .2s; }
.yg-bar.hi { fill: #fcd34d; stroke: #d97706; }
.yg-bar.lk { fill: #86efac; stroke: var(--yg-g); }
.yg-bar.sh { fill: #e9d5ff; stroke: #7c3aed; stroke-dasharray: 4 3; }
.yg-v { font-size: 13px; font-weight: 700; fill: #1f2937; pointer-events: none; } .yg-v.sh { fill: #7c3aed; }
.yg-ud { display: flex; margin: 4px 0 0; }
.yg-udc { flex: 1; display: flex; justify-content: center; gap: 2px; }
.yg-b { min-width: 34px; min-height: 40px; border: 2px solid var(--line, #e5e7eb); background: #f9fafb; border-radius: 8px; font-size: .8rem; padding: 0; }
.yg-b:disabled { opacity: .35; cursor: default; }
.yg-claims { display: grid; gap: 8px; margin: 10px 0 0; }
.yg-c { border: 2px solid var(--line, #e5e7eb); border-radius: 12px; padding: 6px 10px; background: #fff; }
.yg-c.cur { border-color: var(--yg-b); } .yg-c.ok { border-color: #10b981; background: #f0fdf4; } .yg-c.sh { border-color: #7c3aed; background: #faf5ff; }
.yg-ct { margin: 0 0 4px; line-height: 2.1; font-size: 1.05rem; }
.yg-ct b { display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; border-radius: 50%; background: #e5e7eb; margin-right: 6px; font-size: .85rem; }
.yg-cb { display: flex; gap: 8px; }
.yg-yn { min-height: 44px; padding: 2px 16px; border: 2px solid var(--line, #e5e7eb); background: #fff; border-radius: 10px; font-weight: 700; }
.yg-yn.ok { border-color: #10b981; background: #d1fae5; } .yg-yn.ng { border-color: #f87171; background: #fee2e2; }
.yg-msg { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 0; padding: 8px 12px; border-radius: 12px; line-height: 2; border: 2px solid; }
.yg-msg.ok { border-color: #10b981; background: #ecfdf5; } .yg-msg.ng { border-color: #f87171; background: #fef2f2; } .yg-msg.info { border-color: #93c5fd; background: #eff6ff; }
.yg-mi svg { width: 24px; height: 24px; margin-top: 6px; }
.yg-acts { display: flex; justify-content: center; margin: 10px 0 0; }
.yg-go { min-height: 48px; padding: 4px 26px; border: 0; border-radius: 999px; background: #0f766e; color: #fff !important; font-weight: 700; }
.yg-shk { animation: yg-shk .4s; }
@keyframes yg-shk { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
@media (prefers-reduced-motion: reduce) { .yg-bar { transition: none; } .yg-shk { animation: none; } }
.yg-fin { margin: 0; padding: 8px 12px; border-radius: 12px; background: #ecfdf5; border: 2px solid #10b981; font-weight: 700; line-height: 2; width: 100%; }
/* check：文を 読みながら グラフが 見えるように、グラフを 上に とめる */
.yg-chk .yg-chart { position: sticky; top: 48px; z-index: 2; box-shadow: 0 4px 10px rgba(0,0,0,.08); }
.yg-c .yg-msg { margin: 8px 0 2px; }
