/* モデル化とシミュレーションの部品（w-c3-sim.js） */
.w-c3-sim { background: #fff; border: 1px solid var(--line, #e2e8f0); border-radius: 14px; padding: 12px; }
.sm-top, .sm-ctr { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 10px; }
.sm-chip { font: inherit; font-size: 0.92rem; font-weight: 700; cursor: pointer; min-height: 44px; padding: 4px 14px; border: 2px solid var(--line, #e2e8f0); background: #fff; border-radius: 999px; color: var(--sub, #4b5563); }
.sm-chip[aria-pressed="true"] { border-color: var(--blue, #2563eb); color: var(--blue-d, #1d4ed8); background: var(--blue-l, #eaf1ff); }
.sm-btn { font: inherit; font-size: 0.92rem; font-weight: 700; cursor: pointer; min-height: 44px; padding: 4px 14px; border: 0; border-radius: 10px; background: var(--blue, #2563eb); color: #fff; }
.sm-btn.sub { background: #fff; color: var(--blue-d, #1d4ed8); border: 2px solid var(--blue-l, #eaf1ff); }
.sm-btn:disabled { opacity: .45; cursor: default; }
.sm-sliders { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 6px 16px; margin-bottom: 8px; }
.sm-slider { display: block; font-size: 0.9rem; color: var(--sub, #4b5563); }
.sm-sl-top { display: flex; justify-content: space-between; gap: 8px; }
.sm-sl-val { font-family: var(--mono, monospace); color: var(--orange-t, #b45309); }
.sm-slider input[type=range] { width: 100%; min-height: 44px; accent-color: var(--blue, #2563eb); }
.sm-rule { font: 700 0.95rem/1.6 var(--mono, monospace); color: var(--navy, #1e3a8a); background: var(--blue-l, #eaf1ff); border-radius: 10px; padding: 6px 10px; margin: 0 0 10px; }
.sm-two { display: grid; gap: 10px; }
@media (min-width: 760px) { .sm-two { grid-template-columns: 1fr 1.4fr; align-items: start; } }
.sm-tbl { max-height: 300px; overflow: auto; border: 1px solid var(--line, #e2e8f0); border-radius: 10px; }
.sm-t { margin: 0; width: 100%; font-family: var(--mono, monospace); font-size: 0.9rem; }
.sm-t th { position: sticky; top: 0; background: #f8fafc; }
.sm-t td, .sm-t th { text-align: right; padding: 4px 8px; }
.sm-t tr.now td { background: var(--orange-l, #fff4dc); font-weight: 700; }
.sm-t td.hot { color: var(--orange-t, #b45309); font-weight: 700; }
.sm-chart svg { width: 100%; max-width: 560px; height: auto; display: block; margin: 0 auto; }
.sm-chart.sq { max-width: 360px; margin: 0 auto; }
.sm-msg { font-size: 0.9rem; color: var(--sub, #4b5563); margin: 8px 0 0; }
.sm-stat { font-size: 0.95rem; margin: 0 0 8px; }
.sm-stat b { color: var(--orange-t, #b45309); font-family: var(--mono, monospace); }
.sm-det { margin: 8px 0; }
.sm-det summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; color: var(--blue-d, #1d4ed8); font-weight: 700; font-size: 0.92rem; }
/* SVG の中 */
.w-c3-sim .sm-grid { stroke: #e2e8f0; stroke-width: 1; }
.w-c3-sim .sm-axis { stroke: #94a3b8; stroke-width: 2; }
.w-c3-sim .sm-ax { font-size: 15px; fill: #4b5563; font-family: var(--mono, monospace); }
.w-c3-sim .sm-axl { font-size: 15px; fill: #4b5563; }
.w-c3-sim .sm-line { fill: none; stroke-width: 3; stroke-linejoin: round; }
.w-c3-sim .sm-line.main { stroke: #2563eb; }
.w-c3-sim .sm-line.ghost { stroke: #94a3b8; stroke-dasharray: 6 5; stroke-width: 2.5; }
.w-c3-sim .sm-dot.main { fill: #2563eb; }
.w-c3-sim .sm-hline { stroke: #f59e0b; stroke-width: 2; stroke-dasharray: 7 5; }
.w-c3-sim .sm-hl-t { font-size: 15px; fill: #b45309; font-weight: 700; }
.w-c3-sim .sm-bar { fill: #eaf1ff; stroke: #2563eb; stroke-width: 2; }
.w-c3-sim .sm-bar.hot { fill: #fff4dc; stroke: #f59e0b; }
.w-c3-sim .sm-wait { fill: #fff4dc; stroke: #f59e0b; stroke-width: 1.5; stroke-dasharray: 4 3; }
.w-c3-sim .sm-serve { fill: #2563eb; }
.w-c3-sim .sm-arr { fill: #b45309; }
.w-c3-sim .sm-sqr { fill: #fff; stroke: #94a3b8; stroke-width: 2; }
.w-c3-sim .sm-quarter { fill: #eaf1ff; stroke: #2563eb; stroke-width: 2; }
.w-c3-sim .sm-in { fill: #2563eb; }
.w-c3-sim .sm-out { fill: #f59e0b; }
