/* soc-flow（流れを 組み立てる）。えらんだ＝オレンジ、正かい＝みどり、まちがい＝赤、輸入＝青・輸出＝オレンジ。字は 16px 以上（図の 小さい 字を のぞく） */
.sf { --o: #f59e0b; --ok: #10b981; --okd: #047857; --ng: #ef4444; --ngd: #b91c1c; --in: #2563eb; --out: #ea580c; font-size: 1.05rem; position: relative; }
.sf [hidden] { display: none !important; }
.sf rt { font-size: .5em; font-weight: 500; }
.sf-qbox { background: linear-gradient(180deg, #fff8e6, #fffdf6); border: 2px solid var(--o); border-radius: 16px; padding: 8px 14px; margin-bottom: 10px; box-shadow: 0 2px 8px rgba(245, 158, 11, .12); }
.sf-q { margin: 0; font-weight: 700; font-size: 1.08rem; line-height: 1.75; }
.sf-ic { display: block; width: 36px; height: 36px; flex: 0 0 auto; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .18)); }

/* よそう */
.sf-guess { margin-bottom: 10px; padding: 8px 12px 10px; border-radius: 16px; background: linear-gradient(180deg, #eef6ff, #fff); border: 2px solid #bcd0ff; }
.sf-gq { margin: 0 0 6px; font-weight: 700; line-height: 1.7; }
.sf-tag { display: inline-block; margin-right: 6px; padding: 0 10px; border-radius: 999px; background: #2563eb; color: #fff; font-size: .85rem; vertical-align: 2px; }
.sf-gch { display: flex; flex-wrap: wrap; gap: 8px; }
.sf-gb { flex: 1 1 120px; }
.sf-wait .sf-pool { display: none; }
.sf-wait .sf-stage { opacity: .4; pointer-events: none; filter: saturate(.6); }
.sf-gr { margin: 6px 0 0; padding: 4px 10px; border-radius: 10px; font-weight: 700; }
.sf-gr.hit { background: #e3f8ef; color: var(--okd); }
.sf-gr.miss { background: #fff3dc; color: #92400e; }

/* ボタン */
.sf-b { min-height: 48px; padding: 4px 16px; border-radius: 14px; border: 2px solid #1e5b80; background: #fff; color: #1e5b80; font: inherit; font-weight: 800; line-height: 1.35; cursor: pointer; box-shadow: 0 3px 0 #b6cfe0; transition: transform .1s; }
.sf-b:active { transform: translateY(2px); box-shadow: 0 1px 0 #b6cfe0; }
.sf-b:disabled { opacity: .45; cursor: default; }
.sf-b.on { background: var(--o); border-color: #d97706; color: #fff; box-shadow: 0 3px 0 #b45309; opacity: 1; }
.sf-go { background: linear-gradient(180deg, #2f7fb0, #1e5b80); color: #fff; box-shadow: 0 3px 0 #123c56; }
.sf-re { border-color: #6b7280; color: #374151; box-shadow: 0 3px 0 #d1d5db; }
.sf-acts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 10px; }
.sf-acts .sf-b { flex: 1 1 140px; max-width: 280px; }

/* カード */
.sf-card { position: relative; display: inline-flex; align-items: center; gap: 4px; min-height: 48px; max-width: 100%; padding: 6px 10px; box-sizing: border-box; border-radius: 14px; cursor: grab; touch-action: none;
  background: linear-gradient(180deg, #fff 0%, #fffdf7 60%, #f6f0e0 100%); border: 2px solid #d9d2bf; box-shadow: 0 3px 0 #e3dbc6, 0 5px 12px rgba(80, 60, 20, .12);
  color: var(--ink, #1f2937); font-weight: 700; font-size: .95rem; line-height: 1.45; text-align: left; user-select: none; -webkit-user-select: none; transition: transform .15s, box-shadow .15s, border-color .15s, background .2s; outline: none; }
.sf-card .sf-ic { width: 30px; height: 30px; }
.sf-card:focus-visible { box-shadow: 0 0 0 4px #bfdbfe, 0 3px 0 #e3dbc6; }
.sf-t { word-break: keep-all; overflow-wrap: anywhere; }
.sf-sel { border-color: var(--o); background: linear-gradient(180deg, #fffaf0, #ffefc9); transform: translateY(-3px) rotate(-1deg); box-shadow: 0 0 0 4px rgba(245, 158, 11, .3), 0 8px 16px rgba(180, 83, 9, .22); }
.sf-lift { opacity: .35; }
.sf-ghost { position: fixed; z-index: 9999; pointer-events: none; margin: 0; transform: rotate(-3deg) scale(1.05); opacity: .96; box-shadow: 0 14px 28px rgba(0, 0, 0, .25); border-color: var(--o); }
.sf-mark { position: absolute; top: -10px; right: -8px; width: 24px; height: 24px; border-radius: 50%; color: #fff; font-size: .95rem; font-style: normal; line-height: 24px; text-align: center; pointer-events: none; }
.sf-mark:empty { display: none; }
.sf-card.sf-ok { border-color: var(--ok); background: linear-gradient(180deg, #f3fdf8, #dcf7ea); box-shadow: 0 3px 0 #a7e9cc; }
.sf-ok .sf-mark { background: var(--ok); }
.sf-card.sf-ng { border-color: var(--ng); background: linear-gradient(180deg, #fff6f6, #ffe1e1); box-shadow: 0 3px 0 #fbb4b4; }
.sf-ng .sf-mark { background: var(--ng); }
.sf-shk { animation: sf-shake .35s 2; }
.sf-done .sf-card { cursor: default; }
.sf-card.sf-out { opacity: .4; text-decoration: line-through; }
@keyframes sf-shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* カードおき場 */
.sf-pool { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 8px; min-height: 60px; padding: 12px 8px; margin-top: 12px; border-radius: 18px;
  background: linear-gradient(180deg, #f6e7c8 0%, #efd9ad 100%); box-shadow: inset 0 2px 6px rgba(120, 80, 20, .25), 0 1px 0 #fff; border: 1px solid #e0c48e; }
.sf-pool.sf-empty { min-height: 0; padding: 4px; opacity: .5; }
.sf-done .sf-pool.sf-empty { display: none; }
.sf-picking .sf-pool { outline: 2px dashed rgba(180, 83, 9, .35); outline-offset: -6px; }
.sf-stage { position: relative; }

/* わく（slot）とならび */
.sf-seq { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 10px; border-radius: 18px; background: linear-gradient(180deg, #f2f8ff, #fff); border: 2px solid #dbe7f5; }
.sf-slot { position: relative; display: flex; align-items: center; justify-content: center; min-height: 58px; padding: 4px 4px 4px 34px; border-radius: 14px; border: 2.5px dashed #9db4cf; background: rgba(255, 255, 255, .75); cursor: pointer; transition: background .3s, box-shadow .3s, border-color .3s; }
.sf-slot > .sf-card { width: 100%; }
.sf-slot.sf-full { border-style: solid; border-color: #c9d8ea; }
.sf-picking .sf-slot, .sf-picking .sf-blank, .sf-picking .sf-dest, .sf-picking .sf-lane, .sf-picking .sf-pad { box-shadow: 0 0 0 3px rgba(245, 158, 11, .4); }
.sf-no { position: absolute; top: 50%; left: 6px; transform: translateY(-50%); width: 24px; height: 24px; border-radius: 50%; background: #1f4f87; color: #fff; font-weight: 800; font-size: .9rem; line-height: 24px; text-align: center; z-index: 1; }
.sf-arr { position: relative; height: 26px; }
.sf-arr::before { content: ""; position: absolute; left: 50%; top: 2px; bottom: 8px; width: 6px; margin-left: -3px; border-radius: 3px; background: linear-gradient(180deg, #9db4cf, #5b87b8); }
.sf-arr::after { content: ""; position: absolute; left: 50%; bottom: 0; margin-left: -9px; border: 9px solid transparent; border-top: 10px solid #5b87b8; border-bottom: 0; }
.sf-dakara { height: 40px; }
.sf-dakara span { position: absolute; left: calc(50% + 14px); top: 50%; transform: translateY(-50%); padding: 0 10px; border-radius: 999px; background: #fff3dc; color: #b45309; font-weight: 800; font-size: .9rem; border: 1.5px solid #fbd38d; }
.sf-lit { border-color: var(--ok) !important; background: linear-gradient(180deg, #f0fdf7, #d7f5e7) !important; box-shadow: 0 0 0 3px rgba(16, 185, 129, .3), 0 0 16px rgba(16, 185, 129, .35) !important; }

/* 1年の 輪 */
.sf-ring { display: block; position: relative; aspect-ratio: 1 / 1; padding: 0; max-width: 460px; margin: 0 auto; background: radial-gradient(circle at 50% 50%, #fffdf2 0%, #f3f9e8 55%, #e3f1d7 100%); }
.sf-ringsvg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sf-ringsvg circle { fill: none; stroke: #9cc97a; stroke-width: 5; stroke-dasharray: 2 3; }
.sf-ringsvg path { fill: #5c9b3c; }
.sf-ringc { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-weight: 800; font-size: 1.3rem; color: #4d7c2f; }
.sf-ring .sf-slot { position: absolute; box-sizing: border-box; width: 30%; min-height: 54px; transform: translate(-50%, -50%); padding: 3px; background: rgba(255, 255, 255, .92); }
.sf-ring .sf-no { left: -7px; top: -7px; transform: none; width: 22px; height: 22px; line-height: 22px; font-size: .8rem; }
.sf-ring .sf-card { padding: 4px 5px; font-size: .82rem; justify-content: center; text-align: center; gap: 2px; min-height: 42px; }
.sf-ring .sf-card .sf-ic { display: none; }
.sf-spin .sf-ringsvg circle { stroke: #10b981; animation: sf-dash 1.2s linear infinite; }
@keyframes sf-dash { to { stroke-dashoffset: -10; } }

/* 自動車の ライン */
.sf-lineseq { gap: 10px; background: linear-gradient(180deg, #eef2f6, #fff); }
.sf-belt { position: relative; height: 70px; border-radius: 12px; background: linear-gradient(180deg, #dfe6ec 0%, #dfe6ec 62%, #4b5563 62%, #374151 80%, #9ca3af 80%); overflow: hidden; }
.sf-roll { position: absolute; left: 0; right: 0; bottom: 4px; height: 8px; background: repeating-linear-gradient(90deg, #6b7280 0 6px, #d1d5db 6px 14px); }
.sf-car { position: absolute; left: -6px; bottom: 22px; width: 56px; height: 40px; transition: left .8s ease-in-out; }
.sf-car svg { width: 100%; height: 100%; }
.sf-stations { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.sf-lineseq .sf-slot { flex-direction: column; min-height: 76px; padding: 22px 2px 4px; }
.sf-lineseq .sf-no { top: 4px; left: 50%; transform: translateX(-50%); }
.sf-lineseq .sf-slot .sf-card { flex-direction: column; padding: 3px 2px; font-size: .78rem; text-align: center; gap: 0; min-height: 44px; justify-content: center; }
.sf-lineseq .sf-slot .sf-card .sf-ic { display: none; }
.sf-lineseq .sf-slot .sf-card { font-size: .74rem; letter-spacing: -.02em; word-break: keep-all; }

/* build（道をつなぐ） */
.sf-path { position: relative; display: flex; flex-direction: column; padding: 10px; border-radius: 18px; background: linear-gradient(180deg, #f2f8ff, #fff); border: 2px solid #dbe7f5; }
.sf-node { display: flex; align-items: center; gap: 8px; min-height: 58px; padding: 6px 12px; border-radius: 16px; background: linear-gradient(180deg, #fff, #f5f7fa); border: 2px solid #d5dde6; box-shadow: 0 3px 0 #dbe3ec; font-weight: 700; transition: all .3s; }
.sf-node.sf-blank { justify-content: center; border: 2.5px dashed #9db4cf; background: rgba(255, 255, 255, .7); box-shadow: none; cursor: pointer; }
.sf-node.sf-blank > .sf-card { width: 100%; }
.sf-qm { font-size: 1.5rem; color: #9db4cf; font-weight: 800; }
.sf-blank.sf-full .sf-qm { display: none; }
.sf-arr-d.has-via { height: 44px; }
.sf-arr-d span { position: absolute; left: calc(50% + 14px); top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: 4px; font-size: .85rem; color: #4b5563; }
.sf-arr-d span .sf-ic { width: 26px; height: 26px; }
.sf-token { position: absolute; left: 0; top: 0; z-index: 3; width: 44px; height: 44px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fff, #fff3c4); box-shadow: 0 0 0 3px var(--o), 0 6px 14px rgba(0, 0, 0, .25); display: flex; align-items: center; justify-content: center; transition: transform .7s ease-in-out; pointer-events: none; }
.sf-token .sf-ic { width: 32px; height: 32px; }

/* 輸入・輸出 */
.sf-tr { display: flex; flex-direction: column; gap: 8px; }
.sf-land { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; border-radius: 16px; font-size: 1.1rem; }
.sf-land .sf-ic { width: 40px; height: 40px; }
.sf-far { background: linear-gradient(180deg, #d9f0fb, #b7e0f4); border: 2px solid #8ccbe8; }
.sf-home { background: linear-gradient(180deg, #fff6e5, #fde7c2); border: 2px solid #f3c77d; }
.sf-lanes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sf-lane { position: relative; min-height: 150px; border-radius: 16px; padding: 6px; cursor: pointer; overflow: hidden; }
.sf-lane::before { content: ""; position: absolute; left: 50%; top: 34px; bottom: 10px; width: 46px; margin-left: -23px; opacity: .22; clip-path: polygon(30% 0, 70% 0, 70% 78%, 100% 78%, 50% 100%, 0 78%, 30% 78%); }
.sf-lin { background: linear-gradient(180deg, #eef4ff, #dbe7ff); border: 2.5px solid #93b4f5; }
.sf-lin::before { background: var(--in); }
.sf-lout { background: linear-gradient(0deg, #fff3e6, #ffe2c4); border: 2.5px solid #f8b47a; }
.sf-lout::before { background: var(--out); transform: rotate(180deg); }
.sf-lh { position: relative; text-align: center; font-weight: 800; font-size: 1.05rem; padding: 2px 0 6px; }
.sf-lin .sf-lh { color: var(--in); } .sf-lout .sf-lh { color: var(--out); }
.sf-lbin { position: relative; display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.sf-lbin .sf-card { font-size: .88rem; padding: 4px 6px; }
.sf-lbin .sf-card .sf-ic { width: 24px; height: 24px; }
.sf-moving .sf-lin::before { animation: sf-down 1.4s ease-in-out infinite; }
.sf-moving .sf-lout::before { animation: sf-up 1.4s ease-in-out infinite; }
@keyframes sf-down { 0% { transform: translateY(-12px); } 100% { transform: translateY(12px); } }
@keyframes sf-up { 0% { transform: rotate(180deg) translateY(-12px); } 100% { transform: rotate(180deg) translateY(12px); } }

/* 前・後 の 表 */
.sf-grid { display: grid; gap: 6px; padding: 8px; border-radius: 18px; background: linear-gradient(180deg, #faf6ee, #fff); border: 2px solid #eadfc8; }
.sf-gh { text-align: center; font-weight: 800; padding: 4px; border-radius: 10px; }
.sf-gh.c0 { background: #ede7dc; color: #6b5b45; } .sf-gh.c1 { background: #dcf3e7; color: #047857; } .sf-gh.c2 { background: #dbeafe; color: #1d4ed8; }
.sf-gr0 { grid-column: 1 / -1; margin-top: 4px; padding: 2px 4px 0; border-top: 1.5px dashed #e5dccb; display: flex; align-items: center; font-weight: 800; font-size: .9rem; color: #6b5b45; }
.sf-cell { position: relative; display: flex; align-items: center; min-height: 64px; padding: 6px 8px; border-radius: 12px; background: #fff; border: 2px solid #e5dccb; font-weight: 700; font-size: .9rem; line-height: 1.5; }
.sf-cell.sf-blank { border: 2.5px dashed #9db4cf; background: rgba(255, 255, 255, .7); cursor: pointer; padding: 3px; }
.sf-cell.sf-blank > .sf-card { width: 100%; font-size: .85rem; padding: 4px 6px; }
.sf-cell.sf-to::after { content: "▶"; position: absolute; right: -9px; top: 50%; transform: translateY(-50%); font-size: .7rem; color: #b59a6a; z-index: 1; }

/* branch（行き先） */
.sf-dests { display: grid; gap: 8px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .sf-dests.n2 { grid-template-columns: 1fr 1fr; } .sf-dests.n3 { grid-template-columns: repeat(3, 1fr); } .sf-dests.n4 { grid-template-columns: repeat(2, 1fr); } }
.sf-dest { --c: #2563eb; --cl: #eaf1ff; --cm: #bcd0ff; display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; cursor: pointer; background: linear-gradient(180deg, var(--cl), #fff); border: 2px solid var(--cm); box-shadow: 0 4px 0 var(--cm); transition: box-shadow .3s; }
.sf-dest.c0 { --c: #c2410c; --cl: #fff1e6; --cm: #fdc9a0; } .sf-dest.c1 { --c: #047857; --cl: #e3f8ef; --cm: #9fe0c4; } .sf-dest.c2 { --c: #1d4ed8; --cl: #eaf1ff; --cm: #bcd0ff; } .sf-dest.c3 { --c: #7c3aed; --cl: #f1eafe; --cm: #cdb8fb; }
.sf-dh { display: flex; align-items: center; gap: 8px; padding: 6px 10px; color: var(--c); font-size: 1.05rem; border-bottom: 2px dashed var(--cm); }
.sf-dbin { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; min-height: 52px; }
.sf-dbin .sf-card { font-size: .9rem; padding: 4px 8px; }
.sf-next { display: none; flex-wrap: wrap; align-items: center; gap: 4px; padding: 6px 10px 10px; }
.sf-nx { padding: 2px 10px; border-radius: 999px; background: #fff; border: 1.5px solid var(--cm); color: var(--c); font-weight: 700; font-size: .85rem; animation: sf-pop .4s both; }
.sf-nx + .sf-nx::before { content: "→ "; color: #9ca3af; }
.sf-dest.sf-lit .sf-next { display: flex; }
.sf-dest.sf-lit { background: linear-gradient(180deg, var(--cl), #fff) !important; border-color: var(--c) !important; }
@keyframes sf-pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* hub（119） */
.sf-hub .sf-pool { display: none; }
.sf-hubst { position: relative; padding: 8px 6px 8px; border-radius: 18px; background: linear-gradient(180deg, #fff5f5, #fff); border: 2px solid #fecaca; }
.sf-hubsvg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sf-hubsvg path { fill: none; stroke: #e5e7eb; stroke-width: 4; stroke-linecap: round; }
.sf-go1 .sf-hl0, .sf-go2 .sf-hl { stroke: #ef4444; stroke-dasharray: 8 6; animation: sf-dash2 .6s linear infinite; }
@keyframes sf-dash2 { to { stroke-dashoffset: -14; } }
.sf-hn { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 0 auto; padding: 6px 8px; border-radius: 14px; background: #fff; border: 2px solid #e5e7eb; box-shadow: 0 3px 0 #e5e7eb; font: inherit; font-weight: 700; font-size: .9rem; line-height: 1.35; text-align: center; color: var(--ink, #1f2937); transition: all .3s; }
.sf-from { width: 64%; cursor: pointer; flex-direction: row; justify-content: center; min-height: 52px; }
.sf-from:disabled { cursor: default; }
.sf-center { width: 56%; margin-top: 40px; flex-direction: row; justify-content: center; }
.sf-outs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 56px; }
.sf-o { min-width: 0; margin: 0; padding: 4px 3px; font-size: .85rem; opacity: .55; }
.sf-o .sf-ic { width: 32px; height: 32px; }
.sf-do { display: none; font-size: .75rem; color: #b91c1c; font-weight: 700; }
.sf-o.sf-lit { opacity: 1; transform: translateY(-3px); }
.sf-o.sf-lit .sf-do { display: block; animation: sf-pop .4s both; }
.sf-pulse { animation: sf-pulse 1.2s ease-in-out infinite; border-color: var(--o); }
@keyframes sf-pulse { 50% { box-shadow: 0 0 0 8px rgba(245, 158, 11, .25), 0 3px 0 #e5e7eb; } }

/* cycle（矢じるしの 図） */
.sf-cyc { border-radius: 18px; background: radial-gradient(circle at 50% 45%, #fffdf5, #f2f6fb 70%); border: 2px solid #dbe7f5; padding: 4px; }
.sf-cyc-in { position: relative; aspect-ratio: 1 / 1; max-width: 480px; margin: 0 auto; }
.sf-cyc.two .sf-cyc-in { aspect-ratio: 4 / 3; }
.sf-cycsvg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sf-edge { fill: none; stroke: #cbd5e1; stroke-width: 3.2; vector-effect: non-scaling-stroke; stroke-linecap: round; transition: stroke .3s; }
.sf-edge.has { stroke: #f59e0b; }
.sf-moving .sf-edge.has { stroke: var(--ok); stroke-dasharray: 9 6; animation: sf-dash2 .8s linear infinite; }
.sf-cbox { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; width: 27%; padding: 4px 2px; border-radius: 16px; background: linear-gradient(180deg, #fff, #f0f4f8); border: 2px solid #b6c8dc; box-shadow: 0 4px 0 #c9d6e4, 0 6px 14px rgba(0, 0, 0, .08); font-size: 1rem; z-index: 1; pointer-events: none; }
.sf-cbox .sf-ic { width: 38px; height: 38px; }
.sf-cbox.small { width: 22%; font-size: .85rem; background: linear-gradient(180deg, #fff8ec, #ffeccc); border-color: #f3c77d; box-shadow: 0 3px 0 #f3d9a5; }
.sf-cbox.small .sf-ic { width: 30px; height: 30px; }
.sf-pad { position: absolute; z-index: 2; transform: translate(-50%, -50%); width: 36px; height: 36px; padding: 0; border-radius: 50%; border: 2.5px dashed #94a3b8; background: #fff; cursor: pointer; font: inherit; font-weight: 800; color: #fff; }
.sf-pad.has { border-style: solid; border-color: #d97706; background: var(--o); }
.sf-pad.sf-out { opacity: .25; }
.sf-done .sf-pad.has { border-color: var(--okd); background: var(--ok); }
.sf-clist { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.sf-crow { display: flex; flex-direction: column; gap: 4px; padding: 6px 8px; border-radius: 12px; background: #f8fafc; border: 1.5px solid #e2e8f0; }
.sf-cfrom { font-weight: 800; font-size: .9rem; color: #b45309; }
.sf-chold { display: flex; flex-wrap: wrap; gap: 6px; }
.sf-chold .sf-card { font-size: .9rem; padding: 4px 8px; }

/* timing */
.sf-tm { position: relative; padding: 10px; border-radius: 18px; background: linear-gradient(180deg, #e8f4fc 0%, #f6fbff 55%, #e9f1e2 55%, #dfead6 100%); border: 2px solid #dbe7f5; }
.sf-tmroad { position: relative; height: 124px; margin: 0 4px; }
.sf-tmroad::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 14px; border-radius: 4px; background: linear-gradient(180deg, #6b7280, #4b5563); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .2); }
.sf-tmroad::before { content: ""; position: absolute; left: 6%; right: 6%; bottom: 12px; height: 2px; z-index: 1; background: repeating-linear-gradient(90deg, #fde68a 0 10px, transparent 10px 18px); }
.sf-tmA, .sf-tmB { position: absolute; top: 0; display: flex; flex-direction: column; align-items: center; font-size: .78rem; line-height: 1.3; }
.sf-tmA { left: 0; } .sf-tmB { right: 0; }
.sf-tmA .sf-ic, .sf-tmB .sf-ic { width: 44px; height: 44px; }
.sf-tmtr { position: absolute; left: 0; bottom: 14px; z-index: 2; transition: left .5s linear; }
.sf-tmtr .sf-ic { width: 44px; height: 44px; }
.sf-tmyard { display: flex; align-items: flex-end; gap: 8px; min-height: 50px; margin: 6px 0; padding: 4px 8px; border-radius: 12px; background: repeating-linear-gradient(45deg, #f3f4f6 0 8px, #e5e7eb 8px 16px); border: 2px solid #d1d5db; }
.sf-tmyl { font-weight: 800; font-size: .85rem; color: #6b7280; }
.sf-tmpile { display: flex; flex-wrap: wrap; gap: 2px; }
.sf-tmbox .sf-ic { width: 26px; height: 26px; animation: sf-pop .3s both; }
.sf-r-early .sf-tmyard { border-color: var(--ng); background: repeating-linear-gradient(45deg, #fff1f1 0 8px, #fee2e2 8px 16px); }
.sf-stop .sf-tmB, .sf-r-late .sf-tmB { color: var(--ngd); }
.sf-stop .sf-tmB .sf-ic, .sf-r-late .sf-tmB .sf-ic { filter: grayscale(1); }
.sf-r-just .sf-tmB .sf-ic { filter: drop-shadow(0 0 6px rgba(16, 185, 129, .8)); }
.sf-tmbar { position: relative; height: 40px; margin: 8px 12px 0; border-top: 3px solid #94a3b8; }
.sf-tmt { position: absolute; top: 2px; transform: translateX(-50%); font-size: .75rem; font-weight: 700; color: #475569; }
.sf-tmt.need { color: #b45309; }
.sf-tmt.need i { position: absolute; top: 15px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-style: normal; font-size: .7rem; }
.sf-tmclock { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); padding: 2px 10px; border-radius: 10px; background: #1f2937; color: #fde68a; font-weight: 800; font-family: ui-monospace, monospace; font-size: .95rem; }
.sf-tmctl { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.sf-pm { flex: 0 0 48px; padding: 0; font-size: 1.4rem; }
.sf-tmdep { flex: 1; text-align: center; font-weight: 700; font-size: .95rem; line-height: 1.5; }
.sf-tmdep b { color: #b45309; font-size: 1.15rem; }
.sf-range { width: 100%; height: 36px; accent-color: var(--o); }

/* メッセージ */
.sf-msg { margin-top: 10px; line-height: 1.75; }
.sf-msg:empty { display: none; }
.sf-msg p { margin: 4px 0; }
.sf-msg.sf-ok { padding: 8px 12px; border-radius: 14px; background: #ecfdf5; border: 2px solid #a7f3d0; }
.sf-msg.sf-ng { padding: 8px 12px; border-radius: 14px; background: #fff5f5; border: 2px solid #fecaca; }
.sf-big { font-weight: 800; font-size: 1.12rem; }
.sf-ok .sf-big { color: var(--okd); } .sf-ng .sf-big { color: var(--ngd); }
.sf-note { margin-top: 6px; text-align: right; font-size: .78rem; color: var(--sub, #4b5563); }
@media (prefers-reduced-motion: reduce) { .sf *, .sf *::before { transition: none !important; animation: none !important; } }
