/* 銀行。style.css・flow.css・fm.css の上に重ねる（接頭辞 bk-） */
.bk-lead { margin: 0 0 10px; font-size: 13px; color: var(--ink2); max-width: 52em; }
.bk-lab { margin: 10px 0 6px; font-size: 12px; font-weight: 700; color: var(--muted); }
.bk-small { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.bk-h3 { margin: 14px 0 6px; font-size: 13.5px; }
.bk-k { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--muted); }
.bk-panel { padding: 14px 16px; min-width: 0; position: sticky; top: 12px; }
.bk-panel h3 { margin: 6px 0 6px; font-size: 17px; }
.bk-panel > p { margin: 0 0 6px; font-size: 13.5px; color: var(--ink2); }
.bk-dl { margin: 6px 0 0; display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 6px 12px; font-size: 13.5px; }
.bk-dl dt { font-size: 12px; font-weight: 700; color: var(--muted); padding-top: 2px; }
.bk-dl dd { margin: 0; color: var(--ink2); }
.bk-judge { margin: 8px 0 0; font-size: 13px; font-weight: 700; border-radius: 8px; padding: 7px 10px; }
.bk-judge.ok { background: #f0fdf4; color: #14532d; }
.bk-judge.ng { background: #fef2f2; color: #7f1d1d; }
.bk-judge.mid { background: #fffbeb; color: #78350f; }
.bk-why { margin: 6px 0 0; padding-left: 1.2em; font-size: 12.5px; color: var(--ink2); display: grid; gap: 2px; }
.bk-why.soft { color: var(--muted); }

/* システムの全体 */
.bk-map { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 14px; align-items: start; margin-bottom: 6px; }
.bk-maph { margin: 0 0 6px; font-size: 12px; font-weight: 700; color: var(--muted); }
.bk-mapcol .bk-maph + .bk-side, .bk-route + .bk-maph { margin-top: 12px; }
/* 6 つの箱を、1→2→3 と進み、3 の下の 4 から 4←5←6 と折り返す */
.bk-route { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 26px; }
.bk-route li { position: relative; min-width: 0; display: flex; }
.bk-route li:nth-child(4) { grid-row: 2; grid-column: 3; }
.bk-route li:nth-child(5) { grid-row: 2; grid-column: 2; }
.bk-route li:nth-child(6) { grid-row: 2; grid-column: 1; }
.bk-route li::after { position: absolute; color: #94a3b8; font-weight: 700; }
.bk-route li:nth-child(1)::after, .bk-route li:nth-child(2)::after { content: "→"; right: -20px; top: 50%; transform: translateY(-50%); }
.bk-route li:nth-child(3)::after { content: "↓"; left: 50%; bottom: -21px; transform: translateX(-50%); }
.bk-route li:nth-child(4)::after, .bk-route li:nth-child(5)::after { content: "←"; left: -20px; top: 50%; transform: translateY(-50%); }
.bk-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.bk-node { appearance: none; width: 100%; font: inherit; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--line); background: var(--paper); border-radius: 12px; padding: 9px 11px; color: var(--ink); min-width: 0; }
.bk-node b { font-size: 13.5px; }
.bk-node small { font-size: 11.5px; color: var(--muted); }
.bk-node.side { border-style: dashed; }
.bk-node:hover { border-color: #94a3b8; }
.bk-node[aria-pressed="true"] { background: #0f172a; border-color: #0f172a; color: #fff; }
.bk-node[aria-pressed="true"] small { color: #cbd5e1; }

/* 振込の流れ */
.bk-flow { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 14px; align-items: start; margin-top: 10px; }
.bk-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.bk-step { appearance: none; width: 100%; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: center; text-align: left; font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; cursor: pointer; }
.bk-step:hover { border-color: #94a3b8; }
.bk-step.on { border-color: #0d9488; background: #f0fdfa; }
.bk-sn { width: 26px; height: 26px; border-radius: 50%; background: var(--line2); color: var(--ink2); font: 600 12.5px/26px var(--latin); text-align: center; display: inline-block; flex: none; }
.bk-step.on .bk-sn, .bk-k .bk-sn { background: #0d9488; color: #fff; }
.bk-st { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; min-width: 0; }
.bk-st b { font-size: 14px; }
.bk-st small { font-size: 12px; color: var(--muted); }
.bk-nav { display: flex; gap: 6px; margin-top: 12px; }
.bk-nav button { appearance: none; font: inherit; font-size: 12.5px; font-weight: 700; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 5px 13px; cursor: pointer; }
.bk-nav button[disabled] { color: #94a3b8; cursor: default; }

/* 営業日と着金 */
.bk-timebox { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 12px; align-items: start; margin: 10px 0; }
.bk-timein, .bk-timeout, .bk-form, .bk-calcout, .bk-kanain, .bk-kanaout, .bk-dupout { padding: 12px 14px; min-width: 0; }
.bk-inputs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px 12px; align-items: end; }
.bk-inputs label, .bk-wide { display: grid; gap: 3px; font-size: 12px; font-weight: 700; color: var(--muted); min-width: 0; }
.bk-inputs input, .bk-wide input { font: inherit; font-size: 15px; font-weight: 500; color: var(--ink); background: #f8fafc; border: 1px solid #cbd5e1; border-radius: 9px; padding: 6px 9px; min-width: 0; width: 100%; }
.bk-banks { display: grid; gap: 6px; }
.bk-bank { appearance: none; font: inherit; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 1px; border: 1px solid var(--line); background: var(--paper); border-radius: 10px; padding: 7px 10px; color: var(--ink); }
.bk-bank b { font-size: 13px; }
.bk-bank small { font-size: 11.5px; color: var(--muted); }
.bk-bank:hover { border-color: #94a3b8; }
.bk-bank[aria-pressed="true"] { background: #0f172a; border-color: #0f172a; color: #fff; }
.bk-bank[aria-pressed="true"] small { color: #cbd5e1; }
.bk-timeout p { margin: 0 0 6px; font-size: 13.5px; color: var(--ink2); }
.bk-big { font: 700 24px var(--latin) !important; margin: 0 0 4px !important; }
.bk-big.ok { color: #15803d !important; }
.bk-big.wait { color: #1d4ed8 !important; }
.bk-timeout .bk-small { font-size: 12px; color: var(--muted); }
.bk-bar { position: relative; height: 18px; border-radius: 6px; background: #e2e8f0; margin-top: 10px; overflow: hidden; }
.bk-bar span { position: absolute; top: 0; bottom: 0; background: #5eead4; }
.bk-bar i { position: absolute; top: -2px; bottom: -2px; width: 2px; margin-left: -1px; background: #0f172a; }
.bk-ticks { display: flex; justify-content: space-between; font: 500 10.5px var(--latin); color: var(--muted); margin-top: 2px; }
.bk-cmp th { white-space: nowrap; }
.fm-table tr.on td, .fm-table tr.on th { background: #fef9c3; }

/* 利息 */
.bk-calc { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 12px; align-items: start; margin-top: 10px; }
.bk-form { margin: 0; }
.bk-res td small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.bk-res td b { font-family: var(--latin); }
.bk-res th { white-space: nowrap; width: 9.5em; }
.bk-res tr.sum th, .bk-res tr.sum td { border-top: 2px solid var(--line); font-size: 14px; }
.bk-res tr.sum b { color: #1d4ed8; font-size: 16px; }

/* データの形 */
.bk-tbl dl { margin: 6px 0 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 3px 10px; font-size: 12.5px; }
.bk-tbl dt { font-family: var(--latin); font-weight: 600; font-size: 12px; color: var(--ink); overflow-wrap: anywhere; }
.bk-tbl dd { margin: 0; color: var(--ink2); }
.bk-dup { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 12px; align-items: start; }
.bk-dupin { display: grid; gap: 10px; }
.bk-dupcases { display: grid; gap: 6px; }
.bk-case { appearance: none; font: inherit; font-size: 13px; font-weight: 700; text-align: left; cursor: pointer; border: 1px solid var(--line); background: var(--paper); border-radius: 10px; padding: 8px 11px; color: var(--ink); }
.bk-case:hover { border-color: #94a3b8; }
.bk-case[aria-pressed="true"] { background: #0f172a; border-color: #0f172a; color: #fff; }
.bk-dupout tr.bad td { background: #fef2f2; }
.bk-dupout tr.stop td { color: var(--muted); text-decoration: line-through; }
.bk-dupout tr.stop td:last-child { text-decoration: none; color: #15803d; font-weight: 700; }

/* 名義のカナ */
.bk-kana { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 12px; align-items: start; margin: 10px 0 14px; }
.bk-kanares { margin: 6px 0 0; font: 600 20px/1.5 var(--latin); background: #0f172a; color: #e2e8f0; border-radius: 8px; padding: 8px 12px; overflow-wrap: anywhere; word-break: break-all; }
.bk-kanares span.bad { background: #b91c1c; color: #fff; border-radius: 3px; }
.bk-kanares span.sp { color: #64748b; }

.bk-node:focus-visible, .bk-step:focus-visible, .bk-nav button:focus-visible, .bk-bank:focus-visible, .bk-case:focus-visible, .bk-inputs input:focus-visible, .bk-wide input:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; }

@media (max-width: 1100px) {
  .bk-map, .bk-flow, .bk-timebox, .bk-calc, .bk-dup, .bk-kana { grid-template-columns: minmax(0, 1fr); }
  .bk-panel { position: static; }
}
@media (max-width: 760px) {
  .bk-route { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .bk-route li:nth-child(n) { grid-row: auto; grid-column: auto; }
  .bk-route li:nth-child(n)::after { content: "↓"; right: auto; left: 50%; top: auto; bottom: -19px; transform: translateX(-50%); }
  .bk-route li:last-child::after { content: none; }
  .bk-side { grid-template-columns: minmax(0, 1fr); }
  .bk-dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .bk-dl dd { margin-bottom: 6px; }
  .bk-res th { width: auto; white-space: normal; }
  .bk-kanares { font-size: 17px; }
}
