/* shape：図形を うごかす・かさねる */
.sp-q { background: #fff8e6; border: 2px solid var(--orange, #f59e0b); border-radius: 12px; padding: 8px 12px 10px; margin-bottom: 8px; }
.sp-ask { font-weight: 700; margin: 0 0 6px; }
.sp-row, .sp-ctl, .sp-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.sp-ctl[hidden], .sp-q[hidden] { display: none; }
.sp-b, .sp-g { 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; }
.sp-b.sp-sub { border-color: #9ca3af; }
.sp-b[aria-pressed="true"] { background: #fff4dc; border-color: #b45309; }
.sp-b:disabled { opacity: .5; }
.sp-pill { min-height: 44px; padding: 2px 14px; border: 2px solid var(--line, #e5e7eb); background: #fff; border-radius: 999px; font-weight: 700; font-size: .9rem; color: var(--ink, #1f2937); }
.sp-pill[aria-pressed="true"] { background: var(--ink, #1f2937); color: #fff; border-color: var(--ink, #1f2937); }
.sp-svg { width: 100%; height: auto; display: block; margin: 4px 0 8px; user-select: none; -webkit-user-select: none; }
.sp-svg.sp-drag { touch-action: none; cursor: pointer; }
.sp-grid { stroke: #e2e8f0; stroke-width: 1; }
.sp-a { fill: #bfd4ff; fill-opacity: .75; stroke: #2563eb; stroke-width: 3; stroke-linejoin: round; }
.sp-bp { fill: #fbbf24; fill-opacity: .7; stroke: #b45309; stroke-width: 3; stroke-linejoin: round; }
.sp-bp.on { fill-opacity: .45; stroke-dasharray: 7 4; }
.sp-nm { font-size: 19px; font-weight: 700; fill: var(--ink, #1f2937); paint-order: stroke; stroke: #fff; stroke-width: 4px; }
.sp-nm.a { fill: #1d4ed8; }
.sp-nm.b { fill: #92400e; }
.sp-no { font-size: 20px; font-weight: 700; fill: var(--ink, #1f2937); paint-order: stroke; stroke: #fff; stroke-width: 4px; }
.sp-ura { font-size: 16.5px; font-weight: 700; fill: #92400e; }
.sp-pair { stroke-width: 3; stroke-dasharray: 6 4; }
.sp-w { stroke: #fff; stroke-width: 1.5; fill-opacity: .85; }
.sp-ghost { fill-opacity: .18; stroke: none; }
.sp-deg { font-size: 17px; font-weight: 700; fill: var(--ink, #1f2937); paint-order: stroke; stroke: #fff; stroke-width: 4px; }
.sp-deg.sm { font-size: 16.5px; }
.sp-cap { font-size: 16.5px; font-weight: 700; fill: var(--sub, #4b5563); }
.sp-base { stroke: var(--ink, #1f2937); stroke-width: 2.5; fill: none; }
.sp-diag { stroke: var(--ink, #1f2937); stroke-width: 2.5; stroke-dasharray: 8 5; }
.sp-v { fill: #fff; stroke: #2563eb; stroke-width: 3; }
.sp-sel { fill: #fde68a; stroke: #b45309; stroke-width: 2; }
.sp-axis { stroke: var(--teal-d, #0f8a72); stroke-width: 3; stroke-dasharray: 10 6; }
.sp-axis.dim, .sp-ctr.dim { opacity: .3; }
.sp-ctr { fill: var(--teal-d, #0f8a72); }
.sp-right { fill: none; stroke: var(--ink, #1f2937); stroke-width: 1.5; }
.sp-len { font-size: 16.5px; font-weight: 700; paint-order: stroke; stroke: #fff; stroke-width: 4px; }
.sp-len.a { fill: #1d4ed8; }
.sp-len.b { fill: #92400e; }
.sp-read { background: #f3f6ff; border-radius: 12px; padding: 8px 14px; min-height: 56px; font-size: .95rem; line-height: 1.8; }
.sp-read p { margin: 4px 0; }
.sp-res { font-weight: 700; color: var(--teal-d, #0f8a72); }
.sp-deg.ctr { font-size: 16.5px; }
.sp-kn { stroke: #dc2626; stroke-width: 6; stroke-linecap: round; }
.sp-ka { fill: #dc2626; fill-opacity: .55; stroke: none; }
.sp-len.k { fill: #b91c1c; }
.sp-a.sp-mv { fill-opacity: .35; stroke-dasharray: 8 5; }
.sp-gp { fill: none; stroke: #b45309; stroke-width: 2.5; stroke-dasharray: 6 5; }
.sp-gl { fill: none; stroke: #94a3b8; stroke-width: 2; stroke-dasharray: 4 5; }
.sp-ok { font-size: 22px; font-weight: 700; fill: #0f8a72; paint-order: stroke; stroke: #fff; stroke-width: 5px; }
