:root {
  color-scheme: light;
  --paper: #faf8f2;
  --ink: #292721;
  --muted: #58544d;
  --line: #dedbd3;
  --brand: #873b27;
  --brand-dark: #69301f;
  --serif: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  font: 16px/1.5 "Yu Gothic UI", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select, summary { font: inherit; }
button, a, input, select, summary { touch-action: manipulation; }
button, summary { cursor: pointer; }
button { color: inherit; }
a { color: var(--brand); text-underline-offset: .18em; }
:focus-visible { outline: 3px solid #216a8a; outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.shell { width: min(100% - 2rem, 68rem); margin-inline: auto; }
.mast { background: #fff; border-bottom: 1px solid var(--line); }
.mast-inner, .mast nav, .mast nav button, .gps, .keyword, .quick, .now-option, #filter-toggle, .results-head, .card-tools, .card-info { display: flex; align-items: center; }
.mast-inner { justify-content: space-between; gap: .5rem; min-height: 3.5rem; }
.mast h1 { margin: 0; line-height: 1.2; }
.brand { color: var(--ink); text-decoration: none; font: 700 1.65rem/1.2 var(--serif); }
.brand span { color: var(--brand); font: 700 1.08rem/1.3 "Yu Gothic UI", Meiryo, sans-serif; }
.mast nav { gap: .35rem; }
.mast nav button { border: 0; min-height: 44px; background: transparent; padding: .25rem .4rem; font-size: .9rem; gap: .2rem; }
.mast nav button[aria-pressed="true"] { color: var(--brand); font-weight: 700; }
#saved > span:first-child { font: 1.45rem/1 Georgia, serif; }
#saved-count { font-size: .8rem; }
.hero { margin: 1rem 0; padding: 1.7rem 2rem; border-radius: .5rem; color: #fffaf3; background: linear-gradient(95deg, #23160bef 0%, #28180dd9 45%, #24160b30 100%), url('/unagi/cover.jpg') center 57% / cover; }
.hero p, .hero h2 { margin: 0; }
.hero .coverage { font-size: .9rem; font-weight: 650; letter-spacing: .04em; }
.hero h2 { margin: .25rem 0 .45rem; font: 700 clamp(1.65rem, 4vw, 2.45rem)/1.35 var(--serif); }
#hero-guide { max-width: 29em; line-height: 1.6; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .9rem; margin-top: .9rem; }
.hero-actions a { color: inherit; font-size: .9rem; padding-block: .65rem; }
.gps { min-height: 46px; gap: .65rem; padding: .5rem 1rem; color: #40291b; background: #fffaf3; border: 1px solid #fff; border-radius: .32rem; font-size: .97rem; font-weight: 700; }
.gps:hover { background: #fff; }
.gps:disabled { cursor: progress; }
.locator { position: relative; height: 1rem; width: 1rem; border: 1.7px solid var(--brand); border-radius: 50%; }
.locator::before { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--brand); }
.workspace { display: grid; grid-template-columns: minmax(16rem, 19rem) minmax(0, 1fr); gap: 2rem; align-items: start; }
.finder, .results { min-width: 0; }
.keyword { gap: .8rem; padding-left: .85rem; background: #fff; border: 1px solid #afa99d; border-radius: .4rem; }
.keyword:focus-within { outline: 2px solid #216a8a; }
.keyword input { min-width: 0; width: 100%; min-height: 46px; appearance: none; border: 0; border-radius: .4rem; outline: 0; padding: .5rem .65rem .5rem 0; background: #fff; color: var(--ink); }
.keyword input::placeholder { color: #58544d; opacity: 1; }
.lens { flex: none; width: .93rem; height: .93rem; border: 2px solid #706b61; border-radius: 50%; position: relative; }
.lens::after { content: ""; position: absolute; width: .43rem; height: 2px; right: -.34rem; bottom: -.15rem; transform: rotate(45deg); background: #706b61; }
.quick { margin-top: .5rem; gap: .45rem; flex-wrap: wrap; }
.now-option, #filter-toggle { min-height: 44px; gap: .4rem; padding: .35rem .7rem; background: #fff; border: 1px solid #cfcabe; border-radius: .35rem; font-size: .875rem; cursor: pointer; }
.now-option input, .check input { width: 1rem; height: 1rem; margin: 0; accent-color: #48463d; }
.now-option:has(:checked), #filter-toggle[aria-expanded="true"] { border-color: #655d50; background: #eeebe3; }
.chevron { width: .45rem; height: .45rem; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: translateY(-2px) rotate(45deg); }
#filter-toggle[aria-expanded="true"] .chevron { transform: translateY(2px) rotate(225deg); }
.filter-body { display: grid; gap: .8rem; margin-top: .6rem; padding: .9rem; border: 1px solid var(--line); border-radius: .45rem; background: #fff; }
.filter-body label { display: block; color: var(--muted); font-size: .875rem; font-weight: 600; margin: 0 0 .25rem; }
select { width: 100%; min-height: 44px; border: 1px solid #b7b1a6; padding: .35rem .45rem; background: #fff; border-radius: .3rem; color: var(--ink); }
.select-row { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; }
.select-row > div { min-width: 0; }
label.check { display: inline-flex; align-items: center; min-height: 36px; gap: .5rem; margin: 0; }
.linkbutton, .empty button { border: 0; background: transparent; text-decoration: underline; padding: .4rem 0; color: var(--brand); justify-self: start; }
.area-nav, footer { display: flex; gap: .5rem 1rem; flex-wrap: wrap; align-items: center; }
.area-nav { border-top: 1px solid var(--line); padding-top: .65rem; font-size: .88rem; }
.notice { margin: .5rem 0; padding: .55rem .7rem; border-left: 3px solid #9b764f; color: #53402e; background: #f3eee5; font-size: .9rem; }
.results { scroll-margin-top: .65rem; }
.results-head { justify-content: space-between; gap: .5rem; flex-wrap: wrap; margin: 0 0 .55rem; }
.results-head h2 { margin: 0; font-size: 1.28rem; line-height: 1.4; }
.results-head p { margin: 0; color: var(--muted); font-size: .875rem; }
.results-head p span + span::before { content: " · "; }
.explain { font-size: .875rem; color: var(--muted); margin: 0 0 .55rem; }
.card, .empty { position: relative; background: #fff; padding: .8rem .95rem; border: 1px solid var(--line); border-radius: .5rem; margin: 0 0 .5rem; overflow-wrap: anywhere; }
.card-info { flex-wrap: wrap; gap: 0 .4rem; min-height: 2rem; padding-right: 2.8rem; line-height: 1.5; color: var(--muted); font-size: .83rem; }
.card-info span + span::before { content: "· "; }
.dist { color: #36332d; font-weight: 650; }
.card-tools { position: absolute; right: .18rem; top: .06rem; gap: 0; }
.heart { min-width: 44px; min-height: 44px; padding: 0; background: transparent; border: 0; color: #655f55; }
.heart { font: 1.45rem Georgia, serif; }
.heart[aria-pressed="true"] { color: var(--brand); }
.card h3 { margin: .3rem 0 .1rem; font: 700 1.27rem/1.4 var(--serif); }
.card .time, .booking-note { color: #4f4a42; font-size: .9rem; line-height: 1.5; margin: .18rem 0; }
.tag { display: inline-block; font-size: .83rem; padding: .1rem .42rem; background: #f4eee3; color: #6c4b2d; border-radius: .2rem; margin: .2rem .3rem .1rem 0; }
.schedule-status { font-size: .875rem; color: #305036; font-weight: 650; margin: .2rem 0; }
.unknown-label { color: #6a4a29; }
.more { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .4rem .85rem; border-radius: .34rem; border: 1px solid #cbc6bb; background: #fff; color: #48443e; font-weight: 600; font-size: .9rem; }
.more:hover { background: var(--paper); }
.more { width: 100%; margin: .15rem 0 .55rem; }
.unverified { margin-top: .85rem; }
.unverified summary { padding: .75rem 0; color: #625342; font-weight: 650; }
.empty p { font-size: .92rem; margin: .35rem 0; }
.empty button { margin-right: .8rem; }
footer { border-top: 1px solid var(--line); margin-top: 2rem; padding-block: 1rem 1.75rem; font-size: .875rem; }
footer span { font-weight: 650; }
dialog { padding: 0; width: min(34rem, calc(100% - 1.5rem)); max-height: 88dvh; border: 1px solid var(--line); border-radius: .6rem; color: var(--ink); }
dialog::backdrop { background: #211b16a8; }
.dialog-bar { position: sticky; top: 0; z-index: 1; background: var(--paper); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: .2rem 1rem; font-size: .9rem; }
.dialog-bar button { border: 0; min-width: 44px; min-height: 44px; background: transparent; font-size: 1.5rem; }
.dialog-body { padding: 1rem 1.2rem; }
.dialog-body h2 { font: 700 1.5rem/1.45 var(--serif); margin: .25rem 0; }
.location { font-size: .9rem; color: var(--muted); margin: .25rem 0; }
@media (max-width: 750px) {
  .shell { width: calc(100% - 28px); }
  .mast-inner { min-height: 53px; }
  .hero { margin: 12px 0 10px; padding: 1rem 1.1rem; background-image: linear-gradient(90deg, #211409f2, #24170cd9 60%, #23170d9e), url('/unagi/cover.jpg'); }
  .workspace { display: block; }
  .finder { margin-bottom: .7rem; }
  .results-head { margin-bottom: .45rem; }
  .results-head h2 { font-size: 1.18rem; }
}
@media (max-width: 360px) {
  .shell { width: calc(100% - 22px); }
  .card { padding: .7rem .75rem; }
}

.workspace:has(.finder[hidden]) { grid-template-columns: minmax(0, 1fr); }
#station-options, #station-origin { margin: .6rem 0; border: 1px solid var(--line); border-radius: .6rem; background: white; }
.station-caption { margin: 0; padding: .6rem .8rem .35rem; font-size: .85rem; color: var(--muted); }
.station-option { display: grid; gap: .12rem; width: 100%; padding: .6rem .8rem; border: 0; border-top: 1px solid var(--line); background: white; color: var(--ink); text-align: left; cursor: pointer; }
.station-option small { color: var(--muted); overflow-wrap: anywhere; }
.station-option:hover, .station-option:focus-visible { background: var(--paper); }
#more-stations { margin: .3rem .8rem; }
#station-origin { display: flex; justify-content: space-between; align-items: center; padding: .5rem .8rem; color: var(--brand-dark); }
.station-source { max-width: 100%; }
.station-source summary { cursor: pointer; }
