/* HIBIKIBA — 駅や施設の案内サインをモチーフにした暗い盤面。配色は固定 */
:root{
  --bg:#121417;
  --panel:#1b1e22;
  --panel2:#24282d;
  --panel3:#2d3238;
  --rule:#353b42;
  --ink:#f3f3ef;
  --sub:#a4aab1;
  --mute:#767d85;
  --accent:#ffd23f;        /* 案内サインの黄 */
  --accent-ink:#16181b;
  --dry:#9aa1a9;
  --wave-off:#3a4047;
  --line:#2f9be6;          /* 選んでいる場所の系統色（JSで切り替え） */
  --rec:#ff4b4b;
  --r:14px;
  --font: "Inter", "Zen Kaku Gothic New", system-ui, -apple-system, "Hiragino Sans", sans-serif;
  color-scheme: dark;
}
*{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; text-size-adjust:100%; }
body{
  margin:0; background:var(--bg); color:var(--ink);
  font-family:var(--font); font-size:15px; line-height:1.7;
  font-feature-settings:"palt" 0;
  -webkit-font-smoothing:antialiased;
  -webkit-tap-highlight-color:transparent;
}
[hidden]{ display:none !important; }
button{ font:inherit; color:inherit; }
a{ color:var(--accent); }
svg{ display:block; }
.sr-only{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; }

/* ───── 上部 ───── */
.masthead{
  max-width:1200px; margin:0 auto; padding:16px 20px 0;
  display:flex; align-items:center; justify-content:space-between; gap:12px;
}
.brand{ display:flex; align-items:center; gap:10px; color:var(--ink); text-decoration:none; }
.brand-mark{ width:30px; height:30px; }
.brand-name{ font-weight:800; letter-spacing:.08em; font-size:17px; }
.brand-kana{ font-size:12px; color:var(--sub); letter-spacing:.1em; }
.mast-link{ color:var(--sub); font-size:13px; text-decoration:none; border:1px solid var(--rule); border-radius:99px; padding:4px 14px; }
.mast-link:hover{ color:var(--ink); border-color:var(--sub); }

.hero{ max-width:1200px; margin:0 auto; padding:26px 20px 22px; }
.hero h1{ margin:0; font-size:clamp(22px, 3.2vw, 34px); line-height:1.4; font-weight:700; letter-spacing:.01em; text-wrap:balance; }
.hero-lead{ margin:10px 0 0; color:var(--sub); font-size:14.5px; }
.nb{ display:inline-block; }    /* 文節の途中で折り返さない */
.br-sp{ display:none; }

/* ───── 2段組み ───── */
.app{ max-width:1200px; margin:0 auto; padding:0 20px; display:grid; gap:18px; grid-template-columns:minmax(0, 1fr); }
.col-main, .col-side{ display:grid; gap:18px; align-content:start; min-width:0; grid-template-columns:minmax(0, 1fr); }  /* 長いファイル名で列が広がらないように */
@media (min-width:980px){
  .app{ grid-template-columns:minmax(0, 1.08fr) minmax(0, 1fr); gap:22px; }
  .col-main{ position:sticky; top:14px; }
}

section.board, section.deck, section.places, section.tune, section.export{
  background:var(--panel); border:1px solid var(--rule); border-radius:var(--r);
}

/* ───── 行き先表示 ───── */
.board{ padding:0 0 16px; overflow:hidden; }
.board-head{
  display:flex; align-items:center; gap:14px;
  padding:16px 18px 14px;
  border-top:6px solid var(--line);
  transition:border-color .25s;
}
.num{
  flex:none; min-width:54px; height:42px; padding:0 8px;
  display:grid; place-items:center;
  background:#fff; color:#16181b; border:4px solid var(--line); border-radius:10px;
  font-weight:800; font-size:16px; letter-spacing:.02em; font-variant-numeric:tabular-nums;
  transition:border-color .25s;
}
.board-title{ min-width:0; flex:1; }
.board-title h2{ margin:0; font-size:clamp(24px, 3.4vw, 32px); line-height:1.15; font-weight:700; letter-spacing:.04em; }
.board-title .en{ display:block; margin-top:4px; color:var(--sub); font-size:12px; font-weight:600; letter-spacing:.24em; }
.board-pict{ flex:none; width:52px; height:52px; border-radius:10px; background:#fff; display:grid; place-items:center; }
.board-pict svg{ width:36px; height:36px; fill:none; stroke:#16181b; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.board-desc{ margin:0 18px; color:var(--sub); font-size:13.5px; line-height:1.75; min-height:3.5em; }

.route{ margin:14px 18px 0; padding:12px 0 2px; border-top:1px solid var(--rule); }
.route-head{ display:flex; align-items:baseline; justify-content:space-between; }
.route-label{ font-size:13px; color:var(--sub); }
.route-val{ font-size:24px; font-weight:700; font-variant-numeric:tabular-nums; letter-spacing:.01em; }
.route-track{ position:relative; height:72px; margin-top:2px; cursor:pointer; touch-action:pan-y; -webkit-user-select:none; user-select:none; }
.route-track.drag{ cursor:grabbing; }
.route-track.drag .pin{ transition:none; }
.route-svg{ position:absolute; inset:8px 0 0; width:100%; height:64px; overflow:visible; }
.route-svg .r-line{ stroke:var(--line); stroke-width:7; stroke-linecap:round; transition:stroke .25s; }
.route-svg .r-stop{ fill:#fff; stroke:var(--line); stroke-width:2.5; }
.route-svg .r-lab{ fill:var(--mute); font-size:11px; text-anchor:middle; font-family:var(--font); font-variant-numeric:tabular-nums; }
.route-svg .r-unit{ fill:var(--mute); }
.route-svg .r-src{ fill:var(--line); }
.route-svg .r-icon path, .route-svg .r-icon circle, .route-svg .r-icon rect{ fill:none; stroke:#fff; stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round; }
.route-svg .r-cap{ fill:var(--sub); font-size:11px; text-anchor:start; font-family:var(--font); }
.pin{
  position:absolute; left:0; top:0; pointer-events:none;
  transition:transform .08s linear;
}
.pin b{
  position:absolute; left:0; bottom:-6px; transform:translateX(-50%);
  white-space:nowrap; font-size:11px; font-weight:700; letter-spacing:.06em;
  background:var(--accent); color:var(--accent-ink); padding:2px 8px; border-radius:6px;
}
.pin i{
  position:absolute; left:0; top:36px; width:22px; height:22px; transform:translate(-50%, 0);
  border-radius:50%; background:var(--accent); border:4px solid var(--accent-ink); box-shadow:0 0 0 2px var(--accent);
}
.pin b::after{ content:""; position:absolute; left:50%; bottom:-5px; margin-left:-5px; border:5px solid transparent; border-bottom:0; border-top-color:var(--accent); }
.route-track input[type=range]{
  position:absolute; inset:0; width:100%; height:100%; margin:0; opacity:0; pointer-events:none;
  -webkit-appearance:none; appearance:none; background:transparent;
}
.route-track input[type=range]::-webkit-slider-thumb{ -webkit-appearance:none; width:44px; height:72px; }
.route-track input[type=range]::-moz-range-thumb{ width:44px; height:72px; border:0; }
.route-track:has(input:focus-visible) .pin i{ box-shadow:0 0 0 2px var(--accent), 0 0 0 6px rgba(255,210,63,.35); }
.route-ends{ display:flex; justify-content:space-between; font-size:11px; color:var(--mute); padding:0 2px; }

.lat{ margin-top:12px; padding-top:10px; border-top:1px dashed var(--rule); }
.sl.lat input[type=range]::-webkit-slider-runnable-track{
  background:linear-gradient(to right, var(--panel3) min(var(--p), 50%), var(--accent) min(var(--p), 50%), var(--accent) max(var(--p), 50%), var(--panel3) max(var(--p), 50%));
}
.sl.lat input[type=range]::-moz-range-progress{ background:transparent; }
.lat-ends{ grid-column:1 / -1; display:flex; justify-content:space-between; font-size:11px; color:var(--mute); margin-top:-2px; }
.specs{ display:grid; grid-template-columns:repeat(3, 1fr); margin:14px 18px 0; border:1px solid var(--rule); border-radius:10px; overflow:hidden; }
.specs div{ padding:8px 12px; }
.specs div + div{ border-left:1px solid var(--rule); }
.specs dt{ font-size:11px; color:var(--mute); }
.specs dd{ margin:0; font-size:16px; font-weight:700; font-variant-numeric:tabular-nums; }

/* ───── 入力と再生 ───── */
.deck{ padding:16px 18px; }
.deck-in{ display:flex; gap:10px; flex-wrap:wrap; }
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  min-height:44px; padding:0 18px; border-radius:10px; cursor:pointer;
  border:1px solid var(--rule); background:var(--panel2); font-weight:600; font-size:14px;
}
.btn svg{ width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.btn:hover:not(:disabled){ background:var(--panel3); }
.btn:disabled{ opacity:.45; cursor:default; }
.btn-load{ flex:1 1 180px; }
.btn-rec{ flex:1 1 140px; }
.btn-rec .dot{ width:12px; height:12px; border-radius:50%; background:var(--rec); }
.btn-rec.on{ background:var(--rec); border-color:var(--rec); color:#fff; }
.btn-rec.on .dot{ background:#fff; border-radius:2px; animation:blink 1s steps(2) infinite; }
@keyframes blink{ 50%{ opacity:.3; } }

.wave{ position:relative; margin-top:14px; height:128px; border-radius:10px; background:#0d0f11; border:1px solid var(--rule); overflow:hidden; cursor:pointer; }
.wave canvas{ position:absolute; inset:10px 8px 22px; width:calc(100% - 16px); height:calc(100% - 32px); }
.wave.rec{ border-color:var(--rec); }
.wave-empty{
  position:absolute; inset:8px; border:1.5px dashed var(--rule); border-radius:8px;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; text-align:center; padding:8px; cursor:default;
}
.wave-empty p{ margin:0; color:var(--sub); font-size:13.5px; }
.tests{ display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-top:10px; }
.tests span{ font-size:12px; color:var(--mute); margin-right:2px; }
.chip[aria-pressed="true"]{ border-color:var(--accent); color:var(--accent); font-weight:700; }
.chip{
  border:1px solid var(--rule); background:var(--panel2); border-radius:99px; padding:5px 14px; font-size:13px; cursor:pointer;
}
.chip:hover:not(:disabled){ border-color:var(--accent); color:var(--accent); }
.wave-busy{
  position:absolute; right:10px; top:8px; display:flex; align-items:center; gap:6px;
  font-size:11px; color:var(--accent); letter-spacing:.06em; opacity:0; transition:opacity .15s;
}
.wave-busy.show{ opacity:1; }
.wave-busy span{ width:10px; height:10px; border-radius:50%; border:2px solid var(--accent); border-right-color:transparent; animation:spin .7s linear infinite; }
@keyframes spin{ to{ transform:rotate(360deg); } }
.wave-name{ position:absolute; left:10px; bottom:4px; right:10px; font-size:11px; color:var(--mute); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

.transport{ display:flex; align-items:center; gap:10px; margin-top:12px; flex-wrap:wrap; }
.tbtn{
  width:48px; height:48px; border-radius:50%; display:grid; place-items:center; cursor:pointer;
  border:1px solid var(--rule); background:var(--panel2);
}
.tbtn svg{ width:20px; height:20px; fill:currentColor; }
.tbtn.play{ width:56px; height:56px; background:var(--accent); color:var(--accent-ink); border-color:var(--accent); }
.tbtn.play svg{ width:24px; height:24px; }
.tbtn:disabled{ opacity:.4; cursor:default; }
.i-pause{ display:none; }
.playing .i-play{ display:none; }
.playing .i-pause{ display:block; }
.time{ font-variant-numeric:tabular-nums; font-size:14px; color:var(--sub); min-width:7.5em; }
.ab{ margin-left:auto; display:flex; border:1px solid var(--rule); border-radius:10px; overflow:hidden; }
.ab button{ border:0; background:transparent; padding:0 14px; min-height:40px; cursor:pointer; font-size:13px; color:var(--sub); }
.ab button + button{ border-left:1px solid var(--rule); }
.ab button[aria-pressed="true"]{ background:var(--panel3); color:var(--ink); font-weight:700; }
.ab #bWet[aria-pressed="true"]{ color:var(--accent); }
.ab button:disabled{ opacity:.45; cursor:default; }

/* ───── まとめて処理 ───── */
.wave-empty small{ font-size:12px; color:var(--mute); }
.batch{ margin-top:14px; padding-top:12px; border-top:1px solid var(--rule); }
.batch-head{ display:flex; align-items:baseline; gap:10px; }
.batch-head b{ font-size:14px; }
.batch-count{ font-size:12px; color:var(--mute); font-variant-numeric:tabular-nums; }
.batch-head .reset{ margin-left:auto; }
.batch-list{ list-style:none; margin:8px 0 0; padding:0; max-height:236px; overflow-y:auto; border:1px solid var(--rule); border-radius:10px; }
.batch-list li{ display:flex; align-items:stretch; }
.batch-list li + li{ border-top:1px solid var(--rule); }
.brow{ flex:1; min-width:0; display:flex; align-items:center; gap:10px; padding:8px 12px; border:0; background:transparent; text-align:left; cursor:pointer; font-size:13px; }
.brow:hover:not(:disabled){ background:var(--panel2); }
.brow i{ font-style:normal; font-size:11px; color:var(--mute); font-variant-numeric:tabular-nums; }
.brow span{ flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.brow small{ font-size:12px; color:var(--sub); font-variant-numeric:tabular-nums; }
.brow[aria-current="true"]{ background:var(--panel3); }
.brow[aria-current="true"] i{ color:var(--accent); }
.brow[aria-current="true"] span{ font-weight:700; }
.bdel{ flex:none; width:40px; border:0; border-left:1px solid var(--rule); background:transparent; color:var(--mute); cursor:pointer; font-size:16px; }
.bdel:hover:not(:disabled){ color:var(--ink); background:var(--panel2); }
.brow:disabled, .bdel:disabled{ opacity:.5; cursor:default; }
.btn-zip{ width:100%; margin-top:10px; }
.batch-note{ margin:6px 0 0; font-size:12px; color:var(--mute); }

/* ───── 保存 ───── */
.export{ padding:16px 18px; display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
.btn-save{ background:var(--accent); color:var(--accent-ink); border-color:var(--accent); font-size:16px; font-weight:700; min-height:52px; padding:0 26px; }
.btn-save:hover:not(:disabled){ background:#ffdc66; }
.btn-save svg{ width:20px; height:20px; stroke-width:2.4; }
.export-note{ margin:0; flex:1 1 220px; color:var(--sub); font-size:12.5px; line-height:1.7; }

/* ───── 場所の一覧 ───── */
.places, .tune{ padding:16px 18px 18px; }
.sec-title{ margin:0 0 12px; font-size:16px; font-weight:700; display:flex; align-items:baseline; gap:10px; }
.sec-title small{ font-size:11px; color:var(--mute); letter-spacing:.18em; font-weight:600; }
.vgroup + .vgroup{ margin-top:14px; }
.vgroup-title{ margin:0 0 8px; font-size:13px; font-weight:700; display:flex; align-items:center; gap:8px; }
.vgroup-title .line{ display:inline-grid; place-items:center; width:22px; height:22px; border-radius:6px; background:var(--c); color:#fff; font-size:12px; font-weight:800; }
.vgroup-title small{ color:var(--mute); font-size:10.5px; letter-spacing:.16em; font-weight:600; }
.vlist{ display:grid; grid-template-columns:repeat(auto-fill, minmax(min(98px, 100%), 1fr)); gap:8px; }
.vcard{
  position:relative; display:flex; flex-direction:column; align-items:flex-start; gap:2px;
  padding:9px 10px 9px; min-height:96px; text-align:left; cursor:pointer;
  border:1px solid var(--rule); border-radius:10px; background:var(--panel2);
  transition:background .12s, border-color .12s, transform .12s;
}
.vcard:hover{ background:var(--panel3); }
.vcard:active{ transform:scale(.98); }
.vno{ font-size:10px; font-weight:800; letter-spacing:.04em; color:var(--c, var(--line)); border:1.5px solid currentColor; border-radius:4px; padding:0 4px; line-height:1.5; }
.vicon{ width:26px; height:26px; margin:6px 0 4px; fill:none; stroke:var(--ink); stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.vjp{ font-size:13px; font-weight:700; line-height:1.3; }
.ven{ font-size:9.5px; color:var(--mute); letter-spacing:.12em; font-weight:600; }
.vcard.on{ background:#fff; border-color:#fff; color:#16181b; box-shadow:0 0 0 3px var(--accent); }
.vcard.on .vicon{ stroke:#16181b; }
.vcard.on .ven{ color:#5d636a; }
.vcard.on .vno{ background:var(--c); color:#fff; border-color:var(--c); }

/* ───── 調整 ───── */
.tune .sec-title{ justify-content:space-between; }
.reset{ border:0; background:none; color:var(--sub); font-size:12px; cursor:pointer; text-decoration:underline; text-underline-offset:3px; padding:4px 0; }
.reset:hover{ color:var(--ink); }
.sliders{ display:grid; gap:12px 22px; grid-template-columns:repeat(auto-fit, minmax(min(210px, 100%), 1fr)); }
.sl{ display:grid; grid-template-columns:1fr auto; align-items:baseline; row-gap:4px; }
.sl label{ font-size:13px; color:var(--sub); }
.sl output{ font-size:14px; font-weight:700; font-variant-numeric:tabular-nums; }
.sl input{ grid-column:1 / -1; }
.sl input[type=range]{
  -webkit-appearance:none; appearance:none; width:100%; height:28px; margin:0; background:transparent; cursor:pointer; touch-action:pan-y;
  --p:50%;
}
.sl input[type=range]::-webkit-slider-runnable-track{
  height:6px; border-radius:3px;
  background:linear-gradient(to right, var(--accent) var(--p), var(--panel3) var(--p));
}
.sl input[type=range]::-moz-range-track{ height:6px; border-radius:3px; background:var(--panel3); }
.sl input[type=range]::-moz-range-progress{ height:6px; border-radius:3px; background:var(--accent); }
.sl input[type=range]::-webkit-slider-thumb{
  -webkit-appearance:none; width:20px; height:20px; margin-top:-7px; border-radius:50%;
  background:#fff; border:3px solid var(--accent-ink); box-shadow:0 0 0 1.5px var(--accent);
}
.sl input[type=range]::-moz-range-thumb{ width:16px; height:16px; border-radius:50%; background:#fff; border:3px solid var(--accent-ink); box-shadow:0 0 0 1.5px var(--accent); }
.sl input[type=range]:focus-visible{ outline:none; }
.sl input[type=range]:focus-visible::-webkit-slider-thumb{ box-shadow:0 0 0 1.5px var(--accent), 0 0 0 6px rgba(255,210,63,.35); }

.chimes{ margin-top:16px; padding-top:14px; border-top:1px solid var(--rule); display:flex; align-items:center; flex-wrap:wrap; gap:10px 14px; }
.chimes-label{ font-size:13px; color:var(--sub); }
.seg{ display:flex; flex-wrap:wrap; border:1px solid var(--rule); border-radius:10px; overflow:hidden; }
.seg button{ border:0; background:transparent; padding:0 16px; min-height:38px; font-size:13px; color:var(--sub); cursor:pointer; }
.seg button + button{ border-left:1px solid var(--rule); }
.seg button.on{ background:var(--accent); color:var(--accent-ink); font-weight:700; }
.check{ display:inline-flex; align-items:center; gap:6px; font-size:13px; color:var(--sub); cursor:pointer; }
.check input{ width:18px; height:18px; accent-color:var(--accent); margin:0; }

/* ───── スマホ下の帯 ───── */
.dock{ display:none; }
@media (max-width:979px){
  .dock{
    position:fixed; left:0; right:0; bottom:0; z-index:20;
    display:flex; align-items:center; gap:10px;
    padding:10px 14px calc(10px + env(safe-area-inset-bottom));
    background:rgba(18,20,23,.94); border-top:1px solid var(--rule);
    -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px);
  }
  body.has-dock{ padding-bottom:84px; }
}
.dock-play{ flex:none; width:46px; height:46px; border-radius:50%; border:0; background:var(--accent); color:var(--accent-ink); display:grid; place-items:center; cursor:pointer; }
.dock-play svg{ width:20px; height:20px; fill:currentColor; }
.dock-play:disabled{ opacity:.45; }
.dock-venue{ flex:1; min-width:0; display:flex; align-items:center; gap:8px; font-size:14px; font-weight:700; white-space:nowrap; overflow:hidden; }
.dock-venue span{ overflow:hidden; text-overflow:ellipsis; }
.dock-venue b{ flex:none; font-size:11px; background:#fff; color:#16181b; border:3px solid var(--line); border-radius:6px; padding:0 4px; }
.dock-ab, .dock-save{ flex:none; min-height:40px; padding:0 14px; border-radius:10px; font-size:13px; font-weight:700; cursor:pointer; }
.dock-ab{ border:1px solid var(--rule); background:var(--panel2); color:var(--sub); }
.dock-ab[aria-pressed="true"]{ color:var(--ink); background:var(--panel3); }
.dock-save{ border:0; background:#fff; color:#16181b; }
.dock button:disabled{ opacity:.45; }

/* ───── 説明 ───── */
.guide{ max-width:1200px; margin:56px auto 0; padding:0 20px; }
.guide-sec{ padding:34px 0; border-top:1px solid var(--rule); }
.guide-sec h2{ margin:0 0 16px; font-size:22px; font-weight:700; }
.guide-lead{ margin:-6px 0 18px; color:var(--sub); }
.steps{ list-style:none; margin:0; padding:0; display:grid; gap:12px; grid-template-columns:repeat(auto-fit, minmax(min(240px, 100%), 1fr)); counter-reset:st; }
.steps li{ counter-increment:st; background:var(--panel); border:1px solid var(--rule); border-radius:var(--r); padding:16px 18px 18px; display:flex; flex-direction:column; gap:6px; }
.steps li::before{ content:counter(st); width:28px; height:28px; border-radius:50%; background:var(--accent); color:var(--accent-ink); font-weight:800; display:grid; place-items:center; font-size:14px; }
.steps b{ font-size:16px; }
.steps span{ color:var(--sub); font-size:14px; }
.venue-notes{ display:grid; gap:10px; grid-template-columns:repeat(auto-fill, minmax(min(260px, 100%), 1fr)); }
.vnote{ background:var(--panel); border:1px solid var(--rule); border-radius:12px; padding:14px 16px; }
.vnote h3{ margin:0 0 4px; font-size:15px; display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.vnote h3 small{ color:var(--mute); font-size:10.5px; letter-spacing:.14em; font-weight:600; }
.vnote p{ margin:0; color:var(--sub); font-size:13.5px; }
.uses{ list-style:none; margin:0; padding:0; display:grid; gap:10px; grid-template-columns:repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.uses li{ background:var(--panel); border:1px solid var(--rule); border-radius:12px; padding:14px 16px; color:var(--sub); font-size:14px; }
.uses b{ display:block; color:var(--ink); font-size:15px; margin-bottom:4px; }
.faq details{ border-bottom:1px solid var(--rule); }
.faq summary{ cursor:pointer; padding:14px 28px 14px 0; font-weight:700; list-style:none; position:relative; }
.faq summary::-webkit-details-marker{ display:none; }
.faq summary::after{ content:"+"; position:absolute; right:4px; top:12px; color:var(--accent); font-size:20px; font-weight:400; line-height:1.2; }
.faq details[open] summary::after{ content:"−"; }
.faq details p{ margin:0 0 16px; color:var(--sub); font-size:14px; }
.guide-more{ margin:8px 0 0; padding:8px 0 0; }
.guide-more a{ display:inline-flex; gap:6px; font-weight:700; text-decoration:none; border:1px solid var(--accent); border-radius:99px; padding:8px 20px; }
.guide-more a:hover{ background:var(--accent); color:var(--accent-ink); }

.site-footer{ max-width:1200px; margin:40px auto 0; padding:22px 20px 34px; border-top:1px solid var(--rule); }
.footer-links{ display:flex; flex-wrap:wrap; gap:6px 10px; font-size:12.5px; color:var(--mute); }
.footer-links a{ color:var(--sub); text-decoration:none; }
.footer-links a:hover{ color:var(--ink); text-decoration:underline; }

/* ───── 通知・ドロップ ───── */
.toast{
  position:fixed; left:50%; bottom:28px; z-index:40; transform:translate(-50%, 20px);
  background:#fff; color:#16181b; font-size:13.5px; font-weight:600; padding:10px 18px; border-radius:10px;
  box-shadow:0 8px 30px rgba(0,0,0,.4); opacity:0; pointer-events:none; transition:opacity .2s, transform .2s;
  max-width:calc(100% - 32px); text-align:center;
}
.toast.show{ opacity:1; transform:translate(-50%, 0); }
body.has-dock .toast{ bottom:96px; }
@media (min-width:980px){ body.has-dock .toast{ bottom:28px; } }
.drop{
  position:fixed; inset:0; z-index:50; display:grid; place-items:center; pointer-events:none; opacity:0; transition:opacity .15s;
  background:rgba(18,20,23,.85);
}
.drop span{ border:2px dashed var(--accent); color:var(--accent); border-radius:16px; padding:40px 56px; font-size:18px; font-weight:700; }
.drop.show{ opacity:1; }

@media (max-width:620px){
  .masthead{ padding:12px 16px 0; }
  .hero{ padding:18px 16px 16px; }
  .hero h1{ font-size:22px; }
  .br-sp{ display:inline; }
  .hero-lead{ font-size:13.5px; }
  .app{ padding:0 12px; gap:12px; }
  .col-main, .col-side{ gap:12px; }
  .board-head{ padding:14px 14px 12px; gap:10px; }
  .num{ min-width:46px; height:36px; font-size:14px; border-width:3px; }
  .board-pict{ width:42px; height:42px; }
  .board-pict svg{ width:30px; height:30px; }
  .board-desc{ margin:0 14px; font-size:13px; min-height:0; }
  .route{ margin:12px 14px 0; }
  .specs{ margin:12px 14px 0; }
  .specs div{ padding:7px 9px; }
  .specs dd{ font-size:14px; }
  .deck, .places, .tune, .export{ padding:14px; }
  .wave{ height:112px; }
  .ab{ margin-left:0; }
  .time{ min-width:0; flex:1; white-space:nowrap; font-size:13px; }
  .transport{ gap:8px; flex-wrap:nowrap; }
  .tbtn{ width:44px; height:44px; flex:none; }
  .tbtn.play{ width:52px; height:52px; }
  .ab button{ padding:0 10px; }
  .chimes{ display:grid; grid-template-columns:1fr; }
  .seg{ display:grid; grid-template-columns:repeat(4, 1fr); }
  .vlist{ grid-template-columns:repeat(4, minmax(0, 1fr)); gap:6px; }
  .vcard{ padding:7px 6px; min-height:84px; align-items:center; text-align:center; }
  .vicon{ width:24px; height:24px; margin:4px 0 2px; }
  .vjp{ font-size:11.5px; }
  .ven{ display:none; }
  .vno{ font-size:9px; }
  .guide{ padding:0 16px; margin-top:36px; }
  .guide-sec{ padding:26px 0; }
  .guide-sec h2{ font-size:19px; }
  .site-footer{ padding:20px 16px 30px; }
}
@media (prefers-reduced-motion:reduce){
  *{ transition:none !important; animation:none !important; }
}

/* 幅の狭いスマホ：聴き比べを下の段へ回して、再生時間を切らさない */
@media (max-width:380px){
  .transport{ flex-wrap:wrap; }
  .ab{ width:100%; }
  .ab button{ flex:1; }
}
