/* Layout: 1カラム。上に入力パネル、結果は駅名標を模したカードで縦に並ぶ */
:root {
  --bg: #F3F5F6;
  --surface: #FFFFFF;
  --surface-2: #E9EDEF;
  --ink: #12181D;
  --muted: #5A646C;
  --line: #D6DCE0;
  --accent: #0B6E64;
  --accent-ink: #FFFFFF;
  --accent-soft: #DCEFEC;
  --mid: #E8962E;
  --danger: #B3261E;
  --map-land: #F7F8F8;
  --map-water: #D9E6EB;
  --map-line-op: .32;
  --font-display: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
  --font-body: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
  --font-num: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(18, 24, 29, .06), 0 8px 24px rgba(18, 24, 29, .06);
  color-scheme: light; /* ライトモードのみ(2026-10-03 オーナー決定)。端末がダークでも明るい配色で表示 */
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; line-height: 1.75;
  font-feature-settings: "palt" 1;
}
a { color: var(--accent); }
img { max-width: 100%; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: 720px; margin-inline: auto; padding-inline: 20px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--mid); outline-offset: 2px; border-radius: 6px; }

/* header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--font-display); font-weight: 900; font-size: 1.15rem; letter-spacing: .04em; }
.brand-mark { width: 36px; height: 18px; flex: none; }
.brand-mark line { stroke: var(--ink); stroke-width: 2.4; }
.brand-mark circle { fill: var(--ink); }
.brand-mark .mid { fill: var(--mid); stroke: var(--bg); stroke-width: 2; }
.nav { display: flex; gap: 18px; font-size: .88rem; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--ink); }

/* hero */
.hero { padding-block: 40px 28px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; align-items: center; max-width: 1040px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.cta-primary, .cta-secondary { text-decoration: none; font-weight: 900; font-family: var(--font-display); letter-spacing: .04em; border-radius: 12px; padding: 12px 20px; font-size: .98rem; }
.cta-primary { background: var(--accent); color: var(--accent-ink); }
.cta-secondary { color: var(--ink); border: 1px solid var(--line); background: var(--surface); }
.hero-art { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 12px; box-shadow: var(--shadow); }
.hero-art svg { display: block; width: 100%; height: auto; }
.ha-water { fill: var(--map-water); }
.ha-net path { fill: none; stroke: var(--line); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ha-route { fill: none; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.ha-route.a { stroke: #0B6E64; } .ha-route.b { stroke: #E8962E; }
.ha-pin circle { stroke: var(--surface); stroke-width: 3; } .ha-pin.a circle { fill: #0B6E64; } .ha-pin.b circle { fill: #E8962E; }
.ha-pin text { fill: #fff; font: 700 13px var(--font-num); text-anchor: middle; }
.ha-dest { fill: var(--mid); stroke: var(--surface); stroke-width: 4; }
.ha-dest-halo { fill: var(--mid); fill-opacity: .2; }
.ha-label { fill: var(--muted); font: 700 12px var(--font-body); text-anchor: middle; }
.ha-sign rect { fill: var(--surface); stroke: var(--ink); stroke-width: 1.5; }
.ha-sign .ha-band { fill: var(--accent); stroke: none; }
.ha-sign-name { fill: var(--ink); font: 900 20px var(--font-display); text-anchor: middle; letter-spacing: .1em; }
.ha-sign-sub { fill: var(--muted); font: 700 10px var(--font-body); text-anchor: middle; }
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; max-width: 1040px; padding-block: 8px 36px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; min-width: 0; }
.feature h2 { margin: 0 0 6px; font-family: var(--font-display); font-weight: 900; font-size: 1rem; }
.feature p { margin: 0; font-size: .86rem; color: var(--muted); line-height: 1.7; }
.section-title { margin: 0 0 14px; font-family: var(--font-display); font-weight: 900; font-size: 1.4rem; }
.uses { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.uses li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .88rem; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .hero { grid-template-columns: minmax(0, 1fr); } }
.eyebrow { margin: 0 0 10px; color: var(--accent); font-weight: 700; font-size: .82rem; letter-spacing: .08em; }
h1 { margin: 0; font-family: var(--font-display); font-weight: 900; font-size: clamp(1.75rem, 4.6vw, 2.6rem); line-height: 1.35; letter-spacing: .01em; text-wrap: balance; }
.lede { margin: 16px 0 0; color: var(--muted); max-width: 36em; }
.br-sp { display: none; }

/* panel */
.finder { padding-block: 32px; border-top: 1px solid var(--line); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; display: grid; gap: 18px; }
.people { display: grid; gap: 10px; position: relative; }
.person { display: grid; grid-template-columns: 34px 6.5em minmax(0, 1fr) 36px; align-items: center; gap: 8px; position: relative; }
.person .dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-num); font-weight: 700; color: #fff; font-size: 1rem; }
.person input { width: 100%; min-width: 0; font: inherit; font-size: 16px; color: var(--ink); background: var(--surface-2); border: 1px solid transparent; border-radius: 10px; padding: 10px 12px; }
.person input:focus { outline: none; border-color: var(--accent); background: var(--surface); }
.person input.invalid { border-color: var(--danger); }
.person .name-in { font-size: 14px; }
.remove { width: 36px; height: 36px; border: 0; background: transparent; color: var(--muted); border-radius: 8px; cursor: pointer; font-size: 1.2rem; line-height: 1; }
.remove:hover { background: var(--surface-2); color: var(--ink); }
.remove:disabled { visibility: hidden; }
.suggest { position: absolute; left: calc(34px + 6.5em + 16px); right: 44px; top: 100%; margin-top: 4px; z-index: 4; list-style: none; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); max-height: 260px; overflow-y: auto; }
.suggest li { padding: 8px 10px; border-radius: 8px; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; }
.suggest li[aria-selected="true"], .suggest li:hover { background: var(--accent-soft); }
.suggest .lines { display: flex; gap: 3px; align-items: center; }
.suggest .lines i { width: 8px; height: 8px; border-radius: 2px; display: block; }
.add-person { justify-self: start; border: 1px dashed var(--line); background: transparent; color: var(--accent); font: inherit; font-weight: 700; font-size: .9rem; padding: 8px 14px; border-radius: 999px; cursor: pointer; }
.add-person:hover { border-color: var(--accent); }
.add-person:disabled { opacity: .4; cursor: default; }

fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font-weight: 700; font-size: .88rem; margin-bottom: 8px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); cursor: pointer; font-size: .92rem; font-weight: 500; transition: background .15s, border-color .15s; }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.chip input:focus-visible + span { outline: 3px solid var(--mid); outline-offset: 2px; }

.more-opts summary { cursor: pointer; font-weight: 700; font-size: .88rem; color: var(--muted); list-style: none; display: inline-flex; gap: 6px; align-items: center; }
.more-opts summary::-webkit-details-marker { display: none; }
.more-opts summary::before { content: "＋"; color: var(--accent); }
.more-opts[open] summary::before { content: "−"; }
.opts { display: grid; gap: 16px; margin-top: 14px; padding: 16px; background: var(--surface-2); border-radius: 12px; }
.opt-range label { font-weight: 700; font-size: .88rem; }
.opt-range input[type="range"] { width: 100%; accent-color: var(--accent); margin-top: 6px; }
.range-ends { display: flex; justify-content: space-between; font-size: .78rem; color: var(--muted); }
.switch { display: flex; align-items: center; gap: 10px; font-size: .92rem; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch .track { width: 42px; height: 24px; border-radius: 999px; background: var(--line); position: relative; flex: none; transition: background .15s; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); transition: transform .15s; }
.switch input:checked + .track { background: var(--accent); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { outline: 3px solid var(--mid); outline-offset: 2px; }

.search-btn { font: inherit; font-family: var(--font-display); font-weight: 900; font-size: 1.05rem; letter-spacing: .06em; color: var(--accent-ink); background: var(--accent); border: 0; border-radius: 12px; padding: 15px; cursor: pointer; transition: filter .15s, transform .1s; }
.search-btn:hover { filter: brightness(1.06); }
.search-btn:active { transform: translateY(1px); }
.form-error { margin: 0; color: var(--danger); font-size: .9rem; }

/* results */
.results { display: grid; gap: 16px; margin-top: 28px; }
.results-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.results-head h2 { margin: 0; font-family: var(--font-display); font-size: 1.15rem; font-weight: 900; }
.results-head .sample { font-size: .78rem; color: var(--muted); background: var(--surface-2); padding: 2px 10px; border-radius: 999px; }

.sign { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.sign.top { box-shadow: var(--shadow); }
.sign-band { display: flex; height: 6px; }
.sign-band i { flex: 1; }
.sign-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; padding: 16px 20px 10px; border-bottom: 1px solid var(--line); }
.rank { font-family: var(--font-num); font-weight: 600; letter-spacing: .08em; font-size: .82rem; color: var(--muted); text-transform: uppercase; }
.sign.top .rank { color: var(--mid); }
.sign-name { margin: 2px 0 0; font-family: var(--font-display); font-weight: 900; font-size: 2rem; line-height: 1.15; letter-spacing: .06em; overflow-wrap: anywhere; }
.sign-name small { font-size: .9rem; font-weight: 700; letter-spacing: .1em; margin-left: 2px; color: var(--muted); }
.sign-stat { text-align: right; }
.sign-stat .k { font-size: .72rem; color: var(--muted); display: block; }
.sign-stat .v { font-family: var(--font-num); font-weight: 700; font-size: 1.6rem; line-height: 1; font-variant-numeric: tabular-nums; }
.sign-stat .v small { font-size: .85rem; font-weight: 600; margin-left: 1px; }
.sign-body { padding: 12px 20px 16px; display: grid; gap: 12px; }
.trip { display: grid; grid-template-columns: 6em minmax(0, 1fr) 3.6em; gap: 4px 12px; align-items: center; }
.trip .who { font-size: .85rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.trip .who i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.trip .bar { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.trip .bar span { display: block; height: 100%; border-radius: 4px; }
.trip .min { font-family: var(--font-num); font-weight: 700; font-size: 1.35rem; text-align: right; font-variant-numeric: tabular-nums; line-height: 1; }
.trip .min small { font-size: .75rem; font-weight: 600; }
.trip .route { grid-column: 2 / 4; font-size: .78rem; color: var(--muted); line-height: 1.5; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; }
.route .leg { display: inline-flex; align-items: center; gap: 4px; }
.route .leg b { width: 4px; height: 12px; border-radius: 2px; display: inline-block; }
.route .arr { color: var(--line); }
.route .thru { font-size: .68rem; font-weight: 700; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; line-height: 1.4; }
.sign-foot { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; padding: 12px 20px; background: var(--surface-2); font-size: .82rem; }
.vibes { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); }
.vibes span b { color: var(--ink); font-weight: 700; letter-spacing: .1em; font-size: .7rem; }
.vibes .est { font-size: .72rem; }
.shop-link { font-weight: 700; text-decoration: none; white-space: nowrap; }
.shop-link:hover { text-decoration: underline; }

.results-foot { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.ghost-btn { font: inherit; font-size: .88rem; font-weight: 700; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; cursor: pointer; }
.ghost-btn:hover { border-color: var(--ink); }
.note { font-size: .78rem; color: var(--muted); margin: 14px 0 0; }
.empty { padding: 20px; text-align: center; color: var(--muted); background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }

/* ads */
.ad-slot { margin-top: 28px; }
.ad-slot:empty { display: none; }
.ad-slot .ad-label { display: block; font-size: .7rem; color: var(--muted); letter-spacing: .1em; margin-bottom: 4px; }
.ad-placeholder { display: grid; place-items: center; min-height: 100px; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); font-size: .8rem; background: var(--surface); }

/* content */
.content { padding-block: 36px; border-top: 1px solid var(--line); }
.content h2 { margin: 0 0 14px; font-family: var(--font-display); font-weight: 900; font-size: 1.4rem; text-wrap: balance; }
.content p { margin: 0 0 12px; max-width: 38em; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 12px; }
.steps li::before { content: counter(s); grid-row: span 2; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--accent); color: var(--accent); display: grid; place-items: center; font-family: var(--font-num); font-weight: 700; }
.steps strong { font-weight: 700; }
.steps span { color: var(--muted); font-size: .92rem; }
.scenes { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.scene { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; min-width: 0; }
.scene h3 { margin: 0 0 6px; font-size: 1rem; }
.scene p { margin: 0; font-size: .88rem; color: var(--muted); }
.faq { border-bottom: 1px solid var(--line); padding-block: 12px; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { margin: 8px 0 0; color: var(--muted); font-size: .92rem; }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); margin-top: 24px; }
.footer-inner { display: grid; gap: 12px; padding-block: 28px; }
.brand.small { font-size: 1rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .85rem; }
.footer-nav a { color: var(--muted); }
.copy { margin: 0; font-size: .78rem; color: var(--muted); }

/* policy pages */
.doc { padding-block: 40px; }
.doc h1 { font-size: clamp(1.6rem, 5vw, 2.2rem); margin-bottom: 8px; }
.doc .updated { color: var(--muted); font-size: .85rem; margin: 0 0 28px; }
.doc h2 { font-family: var(--font-display); font-size: 1.15rem; margin: 32px 0 8px; scroll-margin-top: 72px; }
.doc p, .doc li { max-width: 40em; }
.doc dl { display: grid; grid-template-columns: 8em minmax(0, 1fr); gap: 8px 16px; }
.doc dt { font-weight: 700; color: var(--muted); }
.doc dd { margin: 0; overflow-wrap: anywhere; }

@media (max-width: 520px) {
  .wrap { padding-inline: 16px; }
  .br-sp { display: inline; }
  .nav a:not(.nav-keep) { display: none; }
  .panel { padding: 16px; }
  .person { grid-template-columns: 30px minmax(0, 1fr) 32px; grid-template-areas: "dot name x" "dot st x"; row-gap: 6px; }
  .person .dot { grid-area: dot; align-self: start; margin-top: 4px; }
  .person .name-in { grid-area: name; padding-block: 6px; }
  .person .st-in { grid-area: st; }
  .person .remove { grid-area: x; }
  .suggest { left: 38px; right: 40px; }
  .sign-head, .sign-body, .sign-foot { padding-inline: 16px; }
  .sign-name { font-size: 1.7rem; }
  .trip { grid-template-columns: 4.8em minmax(0, 1fr) 3.2em; }
}
@media (prefers-reduced-motion: no-preference) {
  .sign { animation: rise .35s ease both; }
  .sign:nth-child(3) { animation-delay: .05s; }
  .sign:nth-child(4) { animation-delay: .1s; }
  @keyframes rise { from { transform: translateY(6px); } to { transform: none; } }
}

/* route map */
.routemap { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.map-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.map-title { font-weight: 700; font-size: .92rem; }
.map-toggle, .map-btn { font: inherit; font-size: .78rem; font-weight: 700; color: var(--accent); background: var(--accent-soft); border: 0; border-radius: 999px; padding: 5px 12px; cursor: pointer; }
.map-canvas { line-height: 0; }
.map-canvas svg { display: block; width: 100%; height: auto; }
.m-land { fill: var(--map-land); }
.m-water { fill: var(--map-water); }
.m-line { fill: none; stroke-width: 2; stroke-opacity: var(--map-line-op); stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.m-casing { fill: none; stroke: var(--surface); stroke-width: 9; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.m-route { fill: none; stroke-width: 5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.m-org { stroke: var(--surface); }
.m-org-l { font-family: var(--font-num); font-weight: 700; text-anchor: middle; }
.m-xfer { fill: var(--surface); stroke: var(--ink); }
.m-dest { fill: var(--mid); stroke: var(--surface); }
.m-dest-halo { fill: var(--mid); fill-opacity: .22; }
.m-org-t, .m-xfer-t, .m-dest-t, .m-bg-t { text-anchor: middle; paint-order: stroke; stroke: var(--map-land); stroke-width: 3px; stroke-linejoin: round; font-family: var(--font-body); }
.m-dest-t { fill: var(--ink); font-weight: 900; }
.m-org-t { fill: var(--ink); font-weight: 700; }
.m-xfer-t { fill: var(--muted); font-weight: 500; }
.m-bg-t { fill: var(--muted); }
.map-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 10px 16px; font-size: .8rem; border-top: 1px solid var(--line); }
.map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.map-legend i { width: 14px; height: 4px; border-radius: 2px; }
.map-legend .map-note { color: var(--muted); margin-left: auto; font-size: .72rem; }
.sign-stat { display: grid; justify-items: end; gap: 6px; }
.sign-stat .map-btn { margin-bottom: 4px; }
.map-btn[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.sign.is-selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.site-header .wrap, .site-footer .wrap { max-width: 1040px; }

/* station share */
.foot-actions { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.share-st { font: inherit; font-size: .8rem; font-weight: 700; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; cursor: pointer; }
.share-st[aria-expanded="true"] { border-color: var(--ink); }
.share-panel { padding: 14px 20px 18px; display: grid; gap: 8px; border-top: 1px solid var(--line); }
.share-label { font-size: .8rem; font-weight: 700; color: var(--muted); }
.share-text { width: 100%; font: inherit; font-size: .85rem; line-height: 1.6; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; resize: vertical; }
.share-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.share-actions > * { font: inherit; font-size: .85rem; font-weight: 700; border-radius: 999px; padding: 8px 16px; cursor: pointer; text-decoration: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.share-actions .share-copy { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.share-actions .share-line { background: #06C755; color: #fff; border-color: #06C755; }

/* ── 下部追従バー(トップ) ── */
.page-top { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); padding-bottom: env(safe-area-inset-bottom, 0px); background: var(--accent); box-shadow: 0 -4px 18px rgba(0, 0, 0, .12); }
.dock a { display: flex; align-items: center; justify-content: center; min-height: 60px; padding-inline: 12px; text-decoration: none; font-family: var(--font-display); font-weight: 900; font-size: 1rem; letter-spacing: .04em; text-align: center; line-height: 1.3; }
.dock-about { color: var(--accent-ink); background: var(--accent); position: relative; }
.dock-go { color: #1F1406; background: var(--mid); }
.dock-go::after { content: "→"; margin-left: 8px; }
.dock a:hover { filter: brightness(1.05); }

/* ── 検索ページ ── */
.tool { padding-block: 16px 24px; display: grid; gap: 14px; }
.tool-title { font-size: 1.25rem; margin: 0; }
.site-footer.slim .footer-inner { padding-block: 18px; gap: 6px; }
.summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.summary-who { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; min-width: 0; font-weight: 700; font-size: .92rem; }
.sw { display: inline-flex; align-items: center; gap: 6px; }
.sw i { width: 20px; height: 20px; border-radius: 50%; color: #fff; font: 700 .72rem var(--font-num); font-style: normal; display: grid; place-items: center; }
.sw-purpose { font-size: .78rem; font-weight: 500; color: var(--muted); background: var(--surface-2); border-radius: 999px; padding: 2px 10px; }
.summary-edit { flex: none; font: inherit; font-size: .82rem; font-weight: 700; color: var(--accent); background: var(--accent-soft); border: 0; border-radius: 999px; padding: 7px 12px; cursor: pointer; }

.panel.compact { padding: 14px; gap: 12px; box-shadow: none; }
.panel.compact .people { gap: 8px; }
.panel.compact .person { grid-template-columns: 28px minmax(0, 1fr) 7.5em 30px; grid-template-areas: none; gap: 6px; row-gap: 0; }
.panel.compact .person > * { grid-area: auto; }
.panel.compact .person .dot { width: 26px; height: 26px; font-size: .9rem; margin-top: 0; align-self: center; }
.panel.compact .person input { padding: 9px 10px; }
.panel.compact .person .name-in { font-size: 13px; padding-block: 9px; }
.panel.compact .remove { width: 30px; height: 30px; }
.panel.compact .suggest { left: 34px; right: calc(7.5em + 42px); }
.form-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.panel.compact .add-person { padding: 6px 12px; font-size: .84rem; }
.panel.compact .more-opts { margin-left: auto; }
.panel.compact .opts { margin-top: 10px; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips.scroll::-webkit-scrollbar { display: none; }
.chips.scroll .chip span { white-space: nowrap; padding: 7px 14px; font-size: .88rem; }
.panel.compact .search-btn { padding: 13px; }

.page-tool .results { margin-top: 0; gap: 10px; }
.page-tool .results-head h2 { font-size: 1rem; }
.cands { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.cands::-webkit-scrollbar { display: none; }
.cand { flex: none; display: inline-flex; align-items: baseline; gap: 6px; font: inherit; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 7px 12px; cursor: pointer; }
.cand-rank { font: 700 .9rem var(--font-num); color: var(--muted); }
.cand-name { font-weight: 900; font-family: var(--font-display); }
.cand-diff { font-size: .74rem; color: var(--muted); }
.cand.on { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.cand.on .cand-rank, .cand.on .cand-diff { color: inherit; opacity: .75; }
.cand.more { color: var(--accent); font-weight: 700; font-size: .84rem; border-style: dashed; }

.detail { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.detail .routemap { position: relative; border: 0; border-radius: 0; border-bottom: 1px solid var(--line); }
.detail .map-toggle { position: absolute; right: 10px; bottom: 10px; box-shadow: var(--shadow); }
.detail-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; padding: 12px 16px 8px; }
.detail .sign-name { font-size: 1.7rem; }
.detail .sign-body { padding: 4px 16px 10px; gap: 10px; }
.detail .vibes { padding: 0 16px 10px; font-size: .8rem; }
.detail-actions { display: flex; gap: 8px; padding: 0 16px 14px; }
.detail-actions > * { flex: 1; text-align: center; font: inherit; font-size: .9rem; font-weight: 700; border-radius: 10px; padding: 10px 12px; cursor: pointer; text-decoration: none; }
.act-share { background: var(--accent); color: var(--accent-ink); border: 0; }
.act-shop { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.pr-label { display: inline-block; margin-left: 6px; padding: 0 6px; font-size: .68rem; font-weight: 700; line-height: 1.6; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; vertical-align: 1px; }
.act-share[aria-expanded="true"] { filter: brightness(.92); }
.detail .share-panel { padding: 0 16px 16px; border-top: 0; }
.page-tool .note { margin: 0; }
.page-tool .ad-slot { margin-top: 4px; }
@media (max-width: 520px) {
  .panel.compact .person { grid-template-columns: 26px minmax(0, 1fr) 5.6em 28px; }
  .panel.compact .suggest { left: 32px; right: calc(5.6em + 38px); }
  .dock a { font-size: .92rem; }
}

/* 表示数の切り替え */
.count-sel { display: inline-flex; align-items: center; gap: 2px; margin-left: auto; font-size: .78rem; color: var(--muted); }
.count-sel span { margin-right: 4px; }
.count-btn { font: inherit; font-family: var(--font-num); font-weight: 700; font-size: .95rem; min-width: 34px; min-height: 30px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.count-btn:first-of-type { border-radius: 8px 0 0 8px; }
.count-btn:last-of-type { border-radius: 0 8px 8px 0; }
.count-btn + .count-btn { margin-left: -1px; }
.count-btn[aria-pressed="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.page-tool .results-head { align-items: center; }
/* 対応エリア */
.plan { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .9rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.plan th, .plan td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.plan th { font-size: .78rem; color: var(--muted); background: var(--surface-2); }
.plan td:nth-child(3), .plan td:nth-child(5) { font-family: var(--font-num); font-weight: 600; font-variant-numeric: tabular-nums; }
.st { display: inline-block; font-size: .75rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.st.done { background: var(--accent); color: var(--accent-ink); }
.st.next { background: var(--mid); color: #1F1406; }
.st.plan { background: var(--accent-soft); color: var(--ink); }
.st.later { background: var(--surface-2); color: var(--muted); }
.doc .fine { font-size: .8rem; color: var(--muted); }
.pick-missing { margin: 0 0 12px; padding: 10px 14px; font-size: .85rem; color: var(--ink); background: var(--surface-2); border-left: 3px solid var(--accent); border-radius: 6px; }
