/* Laravel の全体地図。style.css と flow.css の上に重ねる */
.fhead p a, .srcl a, .lv-go a { color: #1d4ed8; text-underline-offset: 2px; }
.hint { display: inline-block; vertical-align: middle; font-size: 10.5px; font-weight: 700; line-height: 1.5; color: #475569; background: #f8fafc; border: 1px dashed #94a3b8; border-radius: 999px; padding: 0 8px; margin-left: 6px; white-space: nowrap; }
.aitag { font-size: 12px; font-weight: 700; color: #6d28d9; background: #ede9fe; border-radius: 6px; padding: 2px 8px; margin-right: 8px; vertical-align: middle; }
.srcl { margin: 10px 0 0; font-size: 12px; color: var(--muted); }
.lv-go { margin: 8px 0 0; font-size: 13px; font-weight: 700; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.lv-go a { text-decoration: none; }
.lv-go a:hover { text-decoration: underline; }
.lv-pre { margin: 8px 0 0; background: #0f172a; color: #e2e8f0; border-radius: 10px; padding: 10px 12px; overflow-x: auto; font-family: var(--latin); font-size: 12.5px; line-height: 1.6; }
.lv-pre code { white-space: pre; }

/* カード */
.lv-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.lv-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.lv-card { padding: 13px 15px; min-width: 0; display: flex; flex-direction: column; }
.lv-card h3 { margin: 0 0 5px; font-size: 15px; }
.lv-card > p { margin: 0; font-size: 13px; color: var(--ink2); }
.lv-card .srcl { margin-top: auto; padding-top: 8px; }
.lv-card.ai { background: #faf8ff; border-color: #dccdfb; }

/* 部品の地図。グループの色: 入口 青・確かめる 赤・データ 緑・あとで 橙・準備 紫・画面 灰 */
.lv-where { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 12px; align-items: start; }
.lv-map { display: grid; gap: 8px; min-width: 0; }
.lv-row { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 8px; align-items: start; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.lv-gname { margin: 6px 0 0; font-size: 12.5px; font-weight: 700; }
.g-in .lv-gname { color: #1d4ed8; }
.g-check .lv-gname { color: #b91c1c; }
.g-data .lv-gname { color: #047857; }
.g-later .lv-gname { color: #c2410c; }
.g-setup .lv-gname { color: #6d28d9; }
.g-view .lv-gname { color: #475569; }
.lv-btns { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 6px; }
.lv-b { appearance: none; width: 100%; font: inherit; text-align: left; display: flex; flex-direction: column; gap: 1px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 10px; background: #f8fafc; color: var(--ink); cursor: pointer; scroll-margin-top: 12px; }
.lv-b b { font-size: 13px; }
.lv-b small { font: 500 11px var(--latin); color: var(--muted); }
.lv-b:hover { border-color: #94a3b8; }
.lv-b[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.lv-b[aria-pressed="true"] small { color: #cbd5e1; }
.lv-detail { padding: 14px 16px; position: sticky; top: 12px; }
.lv-dg { margin: 0; font-size: 11.5px; font-weight: 700; }
.lv-detail.g-in .lv-dg { color: #1d4ed8; }
.lv-detail.g-check .lv-dg { color: #b91c1c; }
.lv-detail.g-data .lv-dg { color: #047857; }
.lv-detail.g-later .lv-dg { color: #c2410c; }
.lv-detail.g-setup .lv-dg { color: #6d28d9; }
.lv-detail.g-view .lv-dg { color: #475569; }
.lv-detail h3 { margin: 2px 0 6px; font-size: 18px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.lv-detail h3 small { font: 600 12.5px var(--latin); color: var(--muted); }
.lv-what { margin: 0; font-size: 13.5px; color: var(--ink); }
.lv-hint { margin: 8px 0 0; font-size: 13px; color: var(--ink2); background: #f8fafc; border-radius: 8px; padding: 6px 9px; }
.lv-dl { margin: 10px 0 0; display: grid; gap: 8px; }
.lv-dl dt { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.lv-dl dd { margin: 2px 0 0; }
.lv-dl code { display: inline-block; font: 600 12.5px var(--latin); color: var(--ink); background: var(--line2); border-radius: 7px; padding: 2px 8px; overflow-wrap: anywhere; }

/* クイズ */
.lv-quiz { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; counter-reset: q; }
.lv-quiz li { counter-increment: q; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; min-width: 0; }
.lv-quiz li.ok { border-color: #86efac; background: #f0fdf4; }
.lv-quiz li.ng { border-color: #fca5a5; background: #fef2f2; }
.lv-q { margin: 0; font-size: 14px; font-weight: 700; }
.lv-q::before { content: counter(q) '. '; font-family: var(--latin); color: var(--muted); }
.lv-ch { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.lv-ch button { appearance: none; font: inherit; font-size: 13px; font-weight: 700; color: var(--ink); background: var(--paper); border: 1px solid #cbd5e1; border-radius: 999px; padding: 5px 13px; cursor: pointer; }
.lv-ch button:hover { border-color: #64748b; }
.lv-ch button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.lv-why { margin-top: 10px; }
.lv-why b { display: block; font-size: 13.5px; }
.lv-why p { margin: 4px 0 0; font-size: 13px; color: var(--ink2); }
.lv-why .lv-go { margin-top: 6px; }
.lv-score { margin: 10px 0 0; font-size: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.lv-score:empty { display: none; }
.lv-score b { font-family: var(--latin); font-size: 18px; color: #0f766e; }

/* リクエストの流れ */
.lv-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 18px; }
.lv-flow li { position: relative; min-width: 0; }
.lv-flow li:not(:last-child)::after { content: '→'; position: absolute; right: -15px; top: 50%; transform: translateY(-50%); color: #94a3b8; font-weight: 700; }
.lv-flow button { appearance: none; width: 100%; height: 100%; font: inherit; text-align: left; display: flex; flex-direction: column; gap: 2px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); cursor: pointer; }
.lv-flow button:hover { border-color: #94a3b8; }
.lv-fn { width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: #fff; font: 600 11px/20px var(--latin); text-align: center; }
.lv-flow b { font-size: 13.5px; }
.lv-flow small { font-size: 11.5px; color: var(--ink2); }

/* artisan */
.lv-art { padding: 6px 14px; }
.lv-artl { margin: 0; display: grid; }
.lv-a { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 4px 16px; padding: 9px 0; border-bottom: 1px solid var(--line2); align-items: baseline; }
.lv-a:last-child { border-bottom: 0; }
.lv-a dt code { display: inline-block; font: 600 12.5px var(--latin); color: #e2e8f0; background: #0f172a; border-radius: 7px; padding: 3px 9px; overflow-wrap: anywhere; }
.lv-a dd { margin: 0; font-size: 13px; color: var(--ink2); }
.lv-a .srcl { display: block; margin: 3px 0 0; }
.lv-a.warn dd { color: #b91c1c; font-weight: 700; }
.lv-a.warn .srcl { font-weight: 400; }
.lv-ah { display: block; margin-top: 2px; }

/* チェックリスト */
.cklist { padding: 10px 16px; }
.mlist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 18px; }
.mlist label { display: flex; gap: 9px; align-items: flex-start; font-size: 13.5px; cursor: pointer; padding: 5px 0; }
.mlist input { flex: none; width: 17px; height: 17px; margin: 2px 0 0; accent-color: #0d9488; cursor: pointer; }
.mlist input:checked + span { color: var(--muted); text-decoration: line-through; }
.ckfoot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.ckcount { font-family: var(--latin); font-size: 13px; color: var(--muted); }
.ckreset { appearance: none; border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 12.5px; font-weight: 700; color: var(--ink2); cursor: pointer; }

.lv-b:focus-visible, .lv-ch button:focus-visible, .lv-flow button:focus-visible, .lv-pre:focus-visible, .lv-go a:focus-visible, .srcl a:focus-visible, .mlist input:focus-visible, .ckreset:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; }

@media (max-width: 1100px) {
  .lv-where { grid-template-columns: minmax(0, 1fr); }
  .lv-where > .lv-detail { display: none; }
  .lv-detail { position: static; }
  .lv-grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lv-flow { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lv-flow li:nth-child(4)::after { content: none; }
}
@media (max-width: 760px) {
  .lv-grid3, .lv-grid2, .lv-quiz, .mlist { grid-template-columns: minmax(0, 1fr); }
  .lv-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .lv-gname { margin: 0; }
  .lv-flow { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .lv-flow li::after { content: '↓' !important; right: auto !important; left: 18px; top: auto !important; bottom: -15px; transform: none !important; }
  .lv-flow li:last-child::after { content: none !important; }
  .lv-a { grid-template-columns: minmax(0, 1fr); }
}
