/* solid（展開図・位置の表し方）。むかい合う めん＝同じ 色。よこ＝青、たて＝みどり、高さ＝むらさき */
.sd [hidden], .sd-guess[hidden], .sd-ctl[hidden] { display: none; }
.sd-guess { background: #fff8e6; border: 2px solid var(--orange, #f59e0b); border-radius: 12px; padding: 8px 12px 10px; margin-bottom: 8px; }
.sd-ask { font-weight: 700; margin: 0 0 6px; }
.sd-gb { display: flex; flex-wrap: wrap; gap: 8px; }
.sd-gb:empty { display: none; }
.sd-g, .sd-b { min-height: 48px; padding: 4px 16px; border: 2px solid var(--ink, #1f2937); background: #fff; border-radius: 12px; font-weight: 700; font-size: 1rem; color: var(--ink, #1f2937); cursor: pointer; }
.sd-g:disabled { opacity: .45; cursor: default; }
.sd-g[aria-pressed="true"] { opacity: 1; background: #eaf1ff; border-color: #2563eb; }
.sd-b:disabled { opacity: .4; cursor: default; }
.sd-b[aria-pressed="true"] { background: #fff4dc; border-color: #b45309; }
.sd-svg { width: 100%; height: auto; display: block; margin: 4px 0; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.sd-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 4px 0 10px; }
.sd-go { min-height: 52px; padding: 6px 22px; border: 0; border-radius: 14px; background: var(--teal-d, #0f8a72); color: #fff; font-weight: 700; font-size: 1.05rem; cursor: pointer; }
.sd-go:disabled { background: #9ca3af; cursor: default; }
.sd-read { background: #f3f6ff; border-radius: 12px; padding: 8px 14px; min-height: 56px; }
.sd-read p { margin: 4px 0; }
.sd-q { font-weight: 700; font-size: 1.05rem; }
.sd-res { font-weight: 700; color: var(--teal-d, #0f8a72); }
.sd-res.ng { color: #c2410c; }
.sd-note { font-size: .9rem; color: var(--sub, #4b5563); }
.sd-rd { color: #b91c1c; } .sd-xb { color: #1d4ed8; }
.sd-ctl { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.sd-dim { display: flex; align-items: center; gap: 6px; background: #f6f7f4; border-radius: 12px; padding: 4px 6px 4px 12px; border-left: 6px solid #9ca3af; }
.sd-dim.sd-x { border-left-color: #2563eb; } .sd-dim.sd-y { border-left-color: #059669; } .sd-dim.sd-z { border-left-color: #7c3aed; }
.sd-dl { font-size: .9rem; font-weight: 700; }
.sd-dv { min-width: 2.4em; text-align: center; }
.sd-pm { width: 46px; height: 46px; border: 2px solid var(--line, #e5e7eb); background: #fff; border-radius: 50%; font-size: 1.2rem; font-weight: 700; color: var(--ink, #1f2937); line-height: 1; padding: 0; cursor: pointer; }
.sd-pm:disabled { opacity: .35; }
/* SVG：展開図 */
.sd-fg { cursor: pointer; }
.sd-f { stroke: #334155; stroke-width: 2; stroke-linejoin: round; }
.sd-root { stroke: #6b7280; stroke-width: 3.5; }
.sd-over { stroke: #dc2626; stroke-width: 5; }
.sd-pick { stroke: #2563eb; stroke-width: 4; stroke-dasharray: 8 5; }
.sd-red { stroke: #dc2626; stroke-width: 7; stroke-linecap: round; }
.sd-ce { stroke: #7c3aed; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 2 7; }
.sd-ce.sd-ok { stroke: #dc2626; stroke-dasharray: none; }
.sd-t { font-size: 20px; font-weight: 700; fill: var(--ink, #1f2937); paint-order: stroke; stroke: #fff; stroke-width: 5px; stroke-linejoin: round; pointer-events: none; }
.sd-tk { font-size: 22px; fill: #6d28d9; }
.sd-tp { font-size: 19px; fill: #1d4ed8; }
/* SVG：位置 */
.sd-grid { stroke: #d6dde6; stroke-width: 1.5; }
.sd-box { stroke: #b6bec9; stroke-width: 1.5; stroke-dasharray: 5 5; }
.sd-tick { stroke: #6b7280; stroke-width: 2; }
.sd-n { font-size: 18px; fill: #4b5563; }
.sd-ar line { stroke-width: 4; stroke-linecap: round; }
.sd-axx line, .sd-axy line, .sd-axz line { stroke: #6b7280; stroke-width: 2.5; }
.sd-axx path, .sd-axy path, .sd-axz path { fill: #6b7280; }
.sd-path.sd-x line { stroke: #2563eb; stroke-width: 6; } .sd-path.sd-x path { fill: #2563eb; }
.sd-path.sd-y line { stroke: #059669; stroke-width: 6; } .sd-path.sd-y path { fill: #059669; }
.sd-path.sd-z line { stroke: #7c3aed; stroke-width: 6; } .sd-path.sd-z path { fill: #7c3aed; }
.sd-path.sd-ghost { opacity: .35; }
.sd-tx { fill: #1d4ed8; } .sd-ty { fill: #047857; } .sd-tz { fill: #6d28d9; } .sd-tn { font-size: 22px; }
.sd-o { fill: #1f2937; }
.sd-pt { fill: var(--orange, #f59e0b); stroke: #fff; stroke-width: 3; }
.sd-ghostp { opacity: .45; }
.sd-me { fill: #fff; stroke: var(--orange, #f59e0b); stroke-width: 5; }
.sd-me.ok { fill: var(--orange, #f59e0b); stroke: #0f8a72; }
.sd-me.ng { stroke: #dc2626; }
.sd-drop { stroke: #6b7280; stroke-width: 2; stroke-dasharray: 4 4; }
.sd-foot { fill: #6b7280; }
/* shapes（小1 いろいろな かたち）：ボタン 大きく、字 大きく */
.sd-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.sd-tabs[hidden] { display: none; }
.sd-pill { min-height: 48px; padding: 4px 16px; border: 2px solid var(--line, #e5e7eb); background: #fff; border-radius: 999px; font-weight: 700; font-size: 1rem; color: var(--ink, #1f2937); cursor: pointer; }
.sd-pill[aria-pressed="true"] { background: var(--ink, #1f2937); color: #fff; border-color: var(--ink, #1f2937); }
.sd-big { min-height: 56px; font-size: 1.1rem; padding: 6px 20px; }
.sd .sd-gb .sd-g { min-height: 56px; font-size: 1.1rem; }
.sd-obj .sd-sf { stroke: #1f2937; stroke-width: 2; stroke-linejoin: round; }
.sd-obj .sd-sc { stroke-width: 1; }
.sd-shd { fill: rgba(0, 0, 0, .12); }
.sd-hi { fill: none; stroke: var(--orange, #f59e0b); stroke-width: 6; stroke-linejoin: round; }
.sd-card0 { fill: #fff8e6; stroke: var(--orange, #f59e0b); stroke-width: 2; }
.sd-card { fill: #f8fafc; stroke: #cbd5e1; stroke-width: 2.5; }
.sd-card.ok { fill: #ecfdf5; stroke: #059669; stroke-width: 5; }
.sd-card.ng { fill: #fef2f2; stroke: #dc2626; stroke-width: 5; }
.sd-cell { cursor: pointer; }
.sd-t.sd-big { font-size: 24px; }
.sd-nm { font-size: 21px; }
.sd-slope { fill: #e7dcc8; stroke: #a8916b; stroke-width: 2; }
.sd-floor { stroke: #a8916b; stroke-width: 3; }
.sd-paper { fill: #fffdf7; stroke: #d6d3d1; stroke-width: 2; }
.sd-trace { fill: none; stroke: #1f2937; stroke-width: 5; stroke-linejoin: round; animation: sd-draw 1.3s ease-in-out forwards; }
@keyframes sd-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .sd-trace { animation: none; stroke-dashoffset: 0 !important; } }
