/*
 * 説明サイトの「動く図」（public/js/manual-flow.js）の見た目。
 * お金の流れ（sections/cashflow）とデータの仕組み（sections/data-structure）で共有する。
 * ⚠️ クラスは小文字だけ（説明サイトのテストが大文字2文字＋ハイフンを本番の ID と照合する）
 */
.mf-root { margin: 1rem 0 .5rem; border: 1px solid #e5e7eb; border-radius: 12px; background: #fff; padding: .5rem; }
.mf-svg { width: 100%; height: auto; display: block; font-family: inherit; }
.mf-routes { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; padding: .25rem 0 .1rem; }
.mf-route { border: 1px solid #cbd5e1; border-radius: 9999px; padding: .2rem .8rem; font-size: .85rem; background: #fff; color: #334155; cursor: pointer; }
.mf-route.mf-route-on { background: #0d9488; border-color: #0d9488; color: #fff; font-weight: 700; }
.mf-axis-line { stroke: #cbd5e1; stroke-width: 2; }
.mf-axis-tick { stroke: #64748b; stroke-width: 2; }
.mf-axis-fill { stroke: #0d9488; stroke-width: 4; stroke-linecap: round; }
.mf-day { font-size: 18px; font-weight: 700; fill: #0f766e; text-anchor: middle; }
.mf-rail { stroke: #cbd5e1; stroke-width: 3; stroke-dasharray: 6 6; }
.mf-route-band { fill: #ccfbf1; stroke: #2dd4bf; stroke-width: 2; }
.mf-box { stroke-width: 2; }
.mf-box.mf-kind-self { fill: #eff6ff; stroke: #93c5fd; }
.mf-box.mf-kind-helper { fill: #f5f3ff; stroke: #c4b5fd; }
.mf-box.mf-kind-wait { fill: #f8fafc; stroke: #cbd5e1; }
.mf-box.mf-kind-customer { fill: #fff7ed; stroke: #fdba74; }
.mf-label { font-size: 18px; font-weight: 700; fill: #334155; text-anchor: middle; }
.mf-label.mf-small { font-size: 15px; }
.mf-sub { font-size: 13px; fill: #64748b; text-anchor: middle; }
.mf-station .mf-box { opacity: .6; }
.mf-station.mf-done .mf-box, .mf-station.mf-active .mf-box { opacity: 1; }
.mf-station.mf-active .mf-box { stroke-width: 4; }
.mf-station.mf-active.mf-kind-self .mf-box { stroke: #2563eb; }
.mf-station.mf-active.mf-kind-helper .mf-box { stroke: #7c3aed; }
.mf-station.mf-active.mf-kind-wait .mf-box { stroke: #475569; }
.mf-station.mf-active.mf-kind-customer .mf-box { stroke: #ea580c; }
.mf-legend-text { font-size: 15px; fill: #475569; }
.mf-bubble-box { fill: #fffbeb; stroke: #f59e0b; stroke-width: 1.5; }
.mf-bubble-text { font-size: 17px; fill: #78350f; }
.mf-bubble-head { font-size: 19px; font-weight: 700; }
.mf-tag-box { fill: #0d9488; }
.mf-tag-text { font-size: 18px; font-weight: 700; fill: #fff; text-anchor: middle; }
.mf-caption { font-size: 24px; font-weight: 700; fill: #1e293b; text-anchor: middle; }
.mf-dot { fill: #e2e8f0; }
.mf-dot.mf-dot-on { fill: #0d9488; }
.mf-span-bar { fill: #ccfbf1; stroke: #0d9488; stroke-width: 1.5; }
.mf-span-pay .mf-span-bar { fill: #fef3c7; stroke: #d97706; }
.mf-span-self .mf-span-bar { fill: #dbeafe; stroke: #2563eb; }
.mf-span-text { font-size: 17px; font-weight: 700; fill: #134e4a; text-anchor: middle; }
.mf-span-pay .mf-span-text { fill: #78350f; }
.mf-span-self .mf-span-text { fill: #1e3a8a; }
.mf-controls { display: flex; gap: .5rem; justify-content: center; padding: .25rem 0 .5rem; }
.mf-btn { border: 1px solid #cbd5e1; border-radius: 9999px; padding: .25rem .9rem; font-size: .875rem; background: #fff; color: #334155; cursor: pointer; }
.mf-btn:hover, .mf-route:hover { background: #f1f5f9; }
.mf-route.mf-route-on:hover { background: #0f766e; }
.mf-text li { margin: .2rem 0; }
.mf-note { font-size: .875rem; color: #64748b; }

/* データの仕組み: 誰が埋める欄か（あなた／Amazon（セラセン）／ガラスバリが計算／最初の取込） */
.mf-box.mf-kind-you { fill: #eff6ff; stroke: #93c5fd; }
.mf-box.mf-kind-amazon { fill: #fff7ed; stroke: #fdba74; }
.mf-box.mf-kind-calc { fill: #f1f5f9; stroke: #94a3b8; }
.mf-box.mf-kind-entry { fill: #f0fdf4; stroke: #86efac; }
.mf-station.mf-active.mf-kind-you .mf-box { stroke: #2563eb; }
.mf-station.mf-active.mf-kind-amazon .mf-box { stroke: #ea580c; }
.mf-station.mf-active.mf-kind-calc .mf-box { stroke: #475569; }
.mf-station.mf-active.mf-kind-entry .mf-box { stroke: #16a34a; }
/* 場所の枠（ガラスバリ／セラセン） */
.mf-zone { stroke-width: 2; stroke-dasharray: 8 6; }
.mf-zone.mf-zone-app { fill: #f8fafc; stroke: #94a3b8; }
.mf-zone.mf-zone-amazon { fill: #fffbf5; stroke: #fb923c; }
.mf-zone-label { font-size: 16px; font-weight: 700; }
.mf-zone-label.mf-zone-app { fill: #334155; }
.mf-zone-label.mf-zone-amazon { fill: #c2410c; }
