/* soc-graph（統計グラフを 読む）。ぼう＝青、聞いて いる もの＝オレンジ、正かい＝みどり、まちがい＝赤。字は 16px 以上 */
.sg { --sg-o: #f59e0b; --sg-ok: #10b981; --sg-okd: #047857; --sg-ng: #ef4444; --sg-ngd: #b91c1c; --sg-b: #1d6fc4; font-size: 1.05rem; position: relative; }
.sg [hidden] { display: none !important; }
.sg rt { font-size: .5em; font-weight: 500; }
.sg-wait { color: var(--sub, #4b5563); padding: 40px 0; text-align: center; }
.sg-qbox { background: linear-gradient(180deg, #fff8e6, #fffdf6); border: 2px solid var(--sg-o); border-radius: 16px; padding: 8px 12px 10px; margin-bottom: 10px; box-shadow: 0 2px 8px rgba(245, 158, 11, .12); }
.sg-qbox.sg-free { background: linear-gradient(180deg, #f1f8ff, #fbfdff); border-color: #93c5fd; box-shadow: none; }
.sg-q { margin: 0; font-weight: 700; font-size: 1.08rem; line-height: 1.75; }
.sg-q b { color: #b45309; }
.sg-ch { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.sg-ch:empty { display: none; }
.sg-c { flex: 1 1 90px; min-height: 48px; padding: 4px 8px; border-radius: 14px; border: 2px solid #e5d3a8; background: linear-gradient(180deg, #fff, #fff6e2); box-shadow: 0 3px 0 #ecd9ad;
  font: inherit; font-weight: 800; font-size: 1.02rem; color: var(--ink, #1f2937); cursor: pointer; line-height: 1.3; transition: transform .12s; }
.sg-c:active { transform: translateY(2px); }
.sg-c:disabled { cursor: default; opacity: .55; }
.sg-c.ok { opacity: 1; border-color: var(--sg-ok); background: linear-gradient(180deg, #f3fdf8, #d5f5e6); box-shadow: 0 3px 0 #a7e9cc; color: var(--sg-okd); }
.sg-c.ng { opacity: 1; border-color: var(--sg-ng); background: linear-gradient(180deg, #fff6f6, #ffe1e1); box-shadow: 0 3px 0 #fbb4b4; color: var(--sg-ngd); }
.sg-title { font-weight: 800; font-size: 1.08rem; color: #0f3b63; margin: 2px 2px 2px; line-height: 1.7; }
.sg-unit { font-size: .9rem; font-weight: 700; color: #334155; min-height: 4px; padding-left: 4px; }
.sg-plot { position: relative; border-radius: 16px; padding: 6px 0 4px; background: linear-gradient(180deg, #f7fbff, #edf4fb); box-shadow: inset 0 0 0 1px #d5e3f1, 0 4px 14px rgba(30, 91, 128, .12); }
.sg-svg { display: block; width: 100%; height: auto; overflow: visible; user-select: none; -webkit-user-select: none; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.sg-paper { fill: #fff; stroke: #c8d6e5; stroke-width: 1; }
.sg-grid { stroke: #dbe5ef; stroke-width: 1; }
.sg-base, .sg-ax { stroke: #475569; stroke-width: 1.6; }
.sg-tk { font-size: 16px; font-weight: 700; fill: #334155; transition: fill .3s; }
.sg-tk.sm { font-size: 14px; }
.sg-tk.glow { fill: #c2410c; font-size: 18px; }
.sg-xt { font-size: 14px; font-weight: 700; fill: #334155; }
.sg-brk { fill: none; stroke: #475569; stroke-width: 1.6; }
.sg-nop { pointer-events: none; }
.sg-hit { fill: transparent; stroke: none; }
.sg-b, .sg-sg, .sg-seg { cursor: pointer; outline: none; }
.sg-b.on .sg-hit { fill: rgba(245, 158, 11, .12); }
.sg-b:focus-visible .sg-bar, .sg-sg:focus-visible .sg-seg0 { stroke: var(--sg-o); stroke-width: 3; }
.sg-bar { stroke: #134a85; stroke-width: .8; }
.sg-bar.f { stroke: #b45309; }
.sg-lead { stroke: #c2410c; stroke-width: 2.6; stroke-dasharray: 6 4; }
.sg-bub rect { fill: #fff7ed; stroke: #ea580c; stroke-width: 2; }
.sg-bub text { font-size: 16px; font-weight: 800; fill: #c2410c; }
.sg-bub { animation: sg-pop .35s .3s both; }
@keyframes sg-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes sg-growx { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes sg-pop { from { opacity: 0; } to { opacity: 1; } }
/* HTML の 名前 */
.sg-labs { position: absolute; inset: 0; pointer-events: none; }
.sg-l { position: absolute; white-space: nowrap; line-height: 1.25; font-weight: 700; }
.sg-xl { transform: translate(-50%, 0); font-size: .78rem; color: #334155; text-align: center; }
.sg-nl { transform: translate(-100%, -50%); font-size: .85rem; color: #1f2937; text-align: right; max-width: 31%; white-space: normal; }
.sg-l.f { color: #c2410c; }
.sg-xn { transform: translate(-50%, -100%); font-size: .8rem; color: #64748b; }
.sg-ur { transform: translate(-100%, 0); font-size: .8rem; color: #334155; }
.sg-ur2 { transform: translate(-100%, -50%); font-size: .75rem; color: #64748b; }
.sg-qm { transform: translate(-50%, -50%); font-size: 2.4rem; color: #94a3b8; font-weight: 900; }
.sg-in { transform: translate(-50%, -50%); color: #fff; font-size: .82rem; text-align: center; text-shadow: 0 1px 2px rgba(0, 0, 0, .45); }
.sg-in small { display: block; font-size: .8rem; }
.sg-in rt { color: #fff; }
.sg-bl { transform: translate(0, -100%); font-size: .9rem; color: #0f3b63; }
/* おれ線 */
.sg-halo { fill: none; stroke: #fff; stroke-width: 7; stroke-linejoin: round; }
.sg-ln { fill: none; stroke: var(--sg-b); stroke-width: 3.4; stroke-linejoin: round; stroke-linecap: round; }
.sg-dot { fill: #fff; stroke: var(--sg-b); stroke-width: 2.6; cursor: pointer; }
.sg-dot.pop { animation: sg-pop .3s both; }
.sg-dot.on { fill: #ffedd5; stroke: #ea580c; stroke-width: 3.4; }
.sg-fog { fill: url(#none); fill: rgba(226, 232, 240, .75); stroke: #94a3b8; stroke-dasharray: 5 4; }
.sg-segl { fill: none; stroke-width: 8; stroke-linecap: round; opacity: .55; }
.sg-segl.ok { stroke: var(--sg-ok); } .sg-segl.ng { stroke: var(--sg-ng); }
.sg-run { stroke: #64748b; stroke-width: 2; stroke-dasharray: 4 3; }
.sg-rise { stroke: #ea580c; stroke-width: 3.4; }
/* 帯 */
.sg-seg0 { stroke: #fff; stroke-width: 1.5; transition: opacity .2s; }
.sg-bframe { fill: none; stroke: #334155; stroke-width: 1.4; pointer-events: none; }
.sg-sg.ask .sg-seg0 { stroke: var(--sg-o); stroke-width: 3; }
.sg-sg.on .sg-seg0 { stroke: #111827; stroke-width: 3; }
.sg-conn { opacity: .28; pointer-events: none; animation: sg-pop .5s both; }
.sg-conn.f { opacity: .6; }
.sg-fr { stroke: #111827; stroke-width: 2.4; stroke-dasharray: 5 4; animation: sg-pop .4s both; }
.sg-fhl { fill: none; stroke: var(--sg-o); stroke-width: 3.5; }
.sg-key { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; font-size: .9rem; }
.sg-ki { display: inline-flex; align-items: center; gap: 4px; }
.sg-ki i { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }
.sg-ki.f { font-weight: 800; color: #b45309; }
/* こたえ */
.sg-res { margin-top: 10px; padding: 8px 12px; border-radius: 14px; background: #fff; border: 2px solid #e5e7eb; line-height: 1.75; }
.sg-res p { margin: 4px 0; }
.sg-r .sg-m { display: inline-block; width: 28px; height: 28px; border-radius: 50%; color: #fff; text-align: center; line-height: 28px; margin-right: 6px; font-weight: 800; }
.sg-r.ok .sg-m { background: var(--sg-ok); } .sg-r.ng .sg-m { background: var(--sg-ng); }
.sg-read1 b { color: #c2410c; font-size: 1.15rem; }
.sg-sm { font-size: .92rem; color: #4b5563; }
.sg-next { display: block; margin: 8px 0 2px auto; min-height: 48px; padding: 4px 20px; border-radius: 999px; border: 0; background: linear-gradient(180deg, #2f86d6, #1d5fa8); color: #fff; font: inherit; font-weight: 800; box-shadow: 0 3px 0 #134a85; cursor: pointer; }
.sg-cred { text-align: right; font-size: .78rem; color: #6b7280; margin-top: 6px; line-height: 1.5; }
.sg-demo { color: #b45309; background: #fff3dc; border-radius: 6px; padding: 0 6px; }
@media (prefers-reduced-motion: reduce) { .sg *, .sg *::before { animation: none !important; transition: none !important; } }
.sg-unit { display: flex; justify-content: space-between; gap: 8px; } .sg-xn2 { color: #64748b; font-size: .82rem; }
.sg-ln, .sg-halo, .sg-segl, .sg-run, .sg-rise, .sg-lead, .sg-bub, .sg-fog, .sg-fr, .sg-fhl, .sg-paper, .sg-grid, .sg-base, .sg-tk, .sg-xt { pointer-events: none; }
.sg-nodots .sg-dot { pointer-events: none; }
