/* soc-section（社会 断面＋スライダー）。空・水・地層の グラデーション、正かい＝みどり・まちがい＝赤・えらんだ＝オレンジ。字は 16px 以上 */
.ssec { font-size: 1.05rem; position: relative; --ssec-o: #f59e0b; --ssec-ok: #10b981; --ssec-ng: #ef4444; }
.ssec [hidden] { display: none !important; }
.ssec rt { font-size: .5em; font-weight: 500; }
.ssec-lead { margin: 0 0 8px; color: var(--sub, #4b5563); }
.ssec-q { background: linear-gradient(180deg, #fff8e6, #fffdf6); border: 2px solid var(--ssec-o); border-radius: 16px; padding: 8px 14px; margin-bottom: 10px; font-weight: 700; font-size: 1.1rem; line-height: 1.7; box-shadow: 0 2px 8px rgba(245, 158, 11, .12); }
.ssec-q:empty { display: none; }
.ssec-stage { position: relative; border-radius: 18px; overflow: hidden; background: #dff1fc; box-shadow: 0 6px 20px rgba(30, 91, 128, .18), inset 0 0 0 1px rgba(30, 91, 128, .15); }
.ssec-svg { display: block; width: 100%; height: auto; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.ssec-labs { position: absolute; inset: 0; pointer-events: none; }
.ssec-lab { position: absolute; transform: translate(-50%, -50%); white-space: nowrap; padding: 1px 8px; border-radius: 999px; background: rgba(255, 255, 255, .9); color: #1f2937; font-weight: 700; font-size: .82rem; line-height: 1.5; box-shadow: 0 1px 3px rgba(0, 0, 0, .18); transition: background .25s, color .25s, transform .25s; }
.ssec-lab.on { background: var(--ssec-o); color: #fff; transform: translate(-50%, -50%) scale(1.08); }
.ssec-lab.ok { background: var(--ssec-ok); color: #fff; }
.ssec-lab.ng { background: var(--ssec-ng); color: #fff; }
.ssec-lab.blue { background: #2563eb; color: #fff; }
.ssec-lab.sm { font-size: .72rem; padding: 0 6px; }

/* SVG の 中の 字（かなと 数字） */
text.ssec-t { font-size: 13px; font-weight: 700; fill: #1f2937; paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round; }
text.ssec-t2 { font-size: 15px; font-weight: 800; fill: #b45309; paint-order: stroke; stroke: #fff; stroke-width: 3.5px; stroke-linejoin: round; }
text.ssec-tk { font-size: 11px; font-weight: 700; fill: #374151; }
text.ssec-sm { font-size: 10px; font-weight: 700; fill: #374151; }
.ssec-dash { fill: none; stroke: #b45309; stroke-width: 1.6; stroke-dasharray: 4 3; }
.ssec-gl { fill: none; stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; }
.ssec-wind { fill: none; stroke-width: 5; stroke-linecap: round; opacity: .85; }
.ssec-fall { pointer-events: none; }
.ssec-run { pointer-events: none; }
.ssec-soak { pointer-events: none; }
.ssec-ring { cursor: pointer; transition: stroke-width .2s; }
.ssec-ring:hover { stroke-width: 3; }
.ssec-cloud { transition: opacity .4s; }

/* よそう */
.ssec-gb { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.ssec-gb:empty { display: none; }
.ssec-g { flex: 1 1 140px; min-height: 48px; padding: 6px 12px; border-radius: 14px; border: 2px solid #d9d2bf; background: linear-gradient(180deg, #fff, #f6f0e0); box-shadow: 0 3px 0 #e3dbc6; font: inherit; font-weight: 700; color: var(--ink, #1f2937); cursor: pointer; line-height: 1.4; }
.ssec-g.on { border-color: var(--ssec-o); background: linear-gradient(180deg, #fffaf0, #ffefc9); box-shadow: 0 0 0 3px rgba(245, 158, 11, .3); }
.ssec-g:disabled:not(.on) { opacity: .5; }

/* そうさ */
.ssec-ctl { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; transition: opacity .3s; }
.ssec-ctl.off { opacity: .45; pointer-events: none; }
.ssec-sl { background: #f8fafc; border: 2px solid #e2e8f0; border-radius: 14px; padding: 6px 10px 8px; }
.ssec-sll { font-weight: 700; font-size: .95rem; margin-bottom: 2px; }
.ssec-slr { display: flex; align-items: center; gap: 8px; }
.ssec-slr input[type=range] { flex: 1; min-width: 0; height: 36px; accent-color: var(--ssec-o); }
.ssec-ends { display: flex; justify-content: space-between; font-size: .8rem; color: var(--sub, #4b5563); padding: 0 52px; }
.ssec-b { min-height: 48px; padding: 4px 16px; border-radius: 14px; border: 2px solid #1e5b80; background: #fff; color: #1e5b80; font: inherit; font-weight: 800; cursor: pointer; box-shadow: 0 3px 0 #b6cfe0; }
.ssec-b:disabled { opacity: .45; cursor: default; }
.ssec-pm { flex: 0 0 44px; width: 44px; padding: 0; font-size: 1.4rem; }
.ssec-go { background: linear-gradient(180deg, #2f7fb0, #1e5b80); color: #fff; border-color: #1e5b80; box-shadow: 0 3px 0 #123c56; }
.ssec-tg { display: flex; gap: 8px; }
.ssec-tg .ssec-b { flex: 1; }
.ssec-tg .ssec-b[aria-pressed="true"], .ssec-tg .ssec-b.on { background: var(--ssec-o); border-color: #d97706; color: #fff; box-shadow: 0 3px 0 #b45309; }

/* けっか */
.ssec-read { margin-top: 10px; line-height: 1.7; }
.ssec-read:empty { display: none; }
.ssec-read p { margin: 4px 0; }
.ssec-res { font-weight: 800; color: #047857; background: #e3f8ef; border-radius: 12px; padding: 4px 10px; }
.ssec-res.ng { color: #b45309; background: #fff3dc; }
.ssec-note { margin-top: 6px; text-align: right; font-size: .78rem; color: var(--sub, #4b5563); }
.ssec-note:empty { display: none; }
@media (prefers-reduced-motion: reduce) { .ssec * { transition: none !important; animation: none !important; } }
