/* kitatakasaki.com — phone-first. Colours come from the map's midori palette. */
:root {
  --green: #26856d; --deep: #0e5641; --light: #499e89; --indigo: #3e4594; --peri: #778cc5; --pale: #d8e2fc;
  --orange: #ea5f23; --yellow: #fdcd04; --pink: #f0a6c9; --charcoal: #373435;
  --ink: #1f2a3d; --muted: #5d6879; --line: #e2e6ee; --paper: #ffffff; --bg: #f5f7f4;
  --radius: 14px; --shadow: 0 2px 10px rgba(14, 40, 40, .18);
  --font: system-ui, -apple-system, 'Hiragino Sans', 'Noto Sans JP', 'Yu Gothic UI', sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--green); font-size: 15px; line-height: 1.5; -webkit-text-size-adjust: 100%; }
button { font: inherit; color: inherit; }
a { color: var(--indigo); }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* ---------- map ---------- */
.app { position: fixed; inset: 0; overflow: hidden; }
#map { position: absolute; inset: 0; background: #b4c0ea; }
.leaflet-container { font-family: var(--font); background: #26856d; }
.leaflet-tint-pane { mix-blend-mode: multiply; pointer-events: none; }
.map-tint { position: absolute; transition: background-color 2s, opacity 2s; }
.leaflet-control-attribution { font-size: 10px; background: rgba(255,255,255,.75) !important; }
.leaflet-top.leaflet-right, .leaflet-bottom.leaflet-right { right: 0; }

/* Pins: anchored at the bottom centre of the pin. */
.pin-wrap { width: 0 !important; height: 0 !important; background: none; border: 0; }
.pin { position: absolute; left: 0; top: 0; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; gap: 2px; background: none; border: 0; padding: 0 0 6px; cursor: pointer; }
.pin::after { content: ''; position: absolute; bottom: 0; left: 50%; width: 2px; height: 7px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
.pin__dot { order: 2; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2.5px solid currentColor; box-shadow: var(--shadow); }
.pin__label { order: 1; background: #fff; color: var(--ink); font-size: 12px; font-weight: 700; padding: 1px 7px; border-radius: 999px; box-shadow: var(--shadow); white-space: nowrap; }
.pin--ramen { color: var(--orange); } .pin--sweets { color: #d9679b; } .pin--cafe { color: #8a5a3c; } .pin--deli { color: #c98a1b; } .pin--izakaya { color: var(--indigo); }
.pin.is-closed .pin__dot { filter: grayscale(.85); opacity: .8; }
.pin.is-closed .pin__label { color: var(--muted); }
.pin.is-selected .pin__dot { transform: scale(1.2); box-shadow: 0 0 0 4px var(--yellow), var(--shadow); }
.pin--station { cursor: default; }
.pin--station .pin__dot { background: var(--indigo); border-color: #fff; color: #fff; font-weight: 800; font-size: 13px; }
.pin--station .pin__label { background: var(--indigo); color: #fff; }
#map.z-far .pin__label { display: none; }
.pin__label.is-hidden { visibility: hidden; }
#map.z-far .pin--station .pin__label { display: block; }
#map.is-night .pin.is-open .pin__dot { box-shadow: 0 0 0 3px rgba(253, 205, 4, .55), 0 0 18px 6px rgba(253, 205, 4, .6); }

/* Rain, when the forecast says so. */
.rain { position: absolute; inset: 0; pointer-events: none; z-index: 450; display: none; opacity: .35;
  background-image: repeating-linear-gradient(104deg, transparent 0 18px, rgba(255,255,255,.7) 18px 19px, transparent 19px 41px);
  background-size: 100% 120px; animation: rain .5s linear infinite; }
#map.is-rain + .rain { display: block; }
@keyframes rain { to { background-position: 0 120px; } }
@media (prefers-reduced-motion: reduce) { .rain { animation: none; } }

/* ---------- top bar ---------- */
.topbar { position: absolute; left: 0; right: 0; top: 0; z-index: 1000; display: flex; justify-content: space-between; align-items: flex-start; gap: 8px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 0; pointer-events: none; }
.topbar > * { pointer-events: auto; }
.brand { flex: none; display: flex; align-items: center; gap: 8px; background: var(--paper); border-radius: 999px; padding: 5px 12px 5px 6px; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); }
.brand__mark { width: 26px; height: 26px; border-radius: 8px; background: var(--green); display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 14px; box-shadow: inset 0 -4px 0 var(--yellow); }
.brand__name { font-weight: 800; letter-spacing: .02em; }
.top-right { display: flex; gap: 6px; min-width: 0; }
.pill { white-space: nowrap; }
.pill { background: var(--paper); border: 0; border-radius: 999px; padding: 6px 12px; box-shadow: var(--shadow); font-size: 13px; font-weight: 600; cursor: pointer; }
.pill--live { cursor: default; }
.pill--live::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #2fbf71; margin-right: 6px; box-shadow: 0 0 0 3px rgba(47,191,113,.25); }

/* ---------- the map with floating controls; pages over it ---------- */
:root { --tabbar-h: 60px; --top-h: calc(60px + env(safe-area-inset-top, 0px)); --bottom-gap: calc(10px + env(safe-area-inset-bottom, 0px)); }
.tabbar { position: absolute; left: 10px; right: 10px; bottom: var(--bottom-gap); z-index: 1300; height: var(--tabbar-h); display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--paper); border-radius: 20px; box-shadow: 0 6px 24px rgba(14, 40, 40, .28); overflow: hidden; }
.tabbar button { border: 0; background: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; cursor: pointer; color: var(--muted); font-size: 11px; font-weight: 700; padding: 4px 0; }
.tab__i { font-size: 20px; line-height: 1.1; filter: grayscale(.6); opacity: .8; }
.tabbar button[aria-selected="true"] { color: var(--deep); background: #e8f3ee; }
.tabbar button[aria-selected="true"] .tab__i { filter: none; opacity: 1; }
.sheet { position: absolute; left: 0; right: 0; top: var(--top-h); bottom: 0; z-index: 1100; background: var(--paper); border-radius: 18px 18px 0 0; box-shadow: 0 -4px 20px rgba(0,0,0,.18);
  display: flex; flex-direction: column; transition: transform .25s ease, visibility .25s; }
.sheet[data-state="closed"] { transform: translateY(105%); visibility: hidden; }
.sheet__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 14px 14px calc(var(--tabbar-h) + var(--bottom-gap) + 20px); display: flex; flex-direction: column; gap: 12px; }
.app.page-open .tabbar { left: 0; right: 0; bottom: 0; border-radius: 0; height: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px); box-shadow: 0 -1px 0 var(--line); }
.app.page-open .sheet { bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); }
.app.page-open .sheet__body { padding-bottom: 20px; }
/* Map credits: top right, clear of the floating cards and tab bar. */
.leaflet-bottom.leaflet-right { bottom: auto; top: calc(var(--top-h) + 46px); }
.map-ui { position: absolute; inset: 0; z-index: 1050; pointer-events: none; }
.map-ui > * { pointer-events: auto; }
.wx-chip { font-weight: 700; white-space: nowrap; }
.news-banner { position: absolute; left: 10px; right: 10px; top: calc(var(--top-h) - 4px); display: flex; align-items: center; gap: 6px; background: var(--paper); border-radius: 14px; box-shadow: var(--shadow); padding: 4px 4px 4px 12px; }
.news-banner__go { flex: 1; min-width: 0; border: 0; background: none; text-align: left; padding: 6px 0; font-weight: 700; cursor: pointer; display: flex; gap: 6px; align-items: center; color: var(--ink); }
.news-banner__go span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-banner__x, .preview__x { border: 0; background: none; font-size: 18px; line-height: 1; padding: 8px 10px; cursor: pointer; color: var(--muted); }
.glance, .preview { position: absolute; left: 10px; right: 10px; bottom: calc(var(--tabbar-h) + var(--bottom-gap) + 10px); background: var(--paper); border-radius: 18px; box-shadow: 0 6px 24px rgba(14, 40, 40, .25); }
.glance { border: 0; padding: 10px 14px; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 4px; color: var(--ink); font: inherit; }
.glance__row { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.glance__time { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.glance__in { color: var(--orange); font-weight: 800; font-size: 13px; }
.glance__dir { font-size: 12px; color: var(--muted); font-weight: 700; }
.glance__voice { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.glance__more { margin-left: auto; color: var(--indigo); font-weight: 700; font-size: 13px; }
.preview { display: flex; align-items: stretch; }
.preview__main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; border: 0; background: none; padding: 10px 4px 10px 12px; text-align: left; cursor: pointer; color: var(--ink); font: inherit; }
.preview__img { width: 72px; height: 54px; object-fit: cover; border-radius: 10px; flex: none; background: var(--bg); }
.preview__icon { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--bg); }
.preview__text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.preview__text strong { font-size: 16px; }
.preview__tip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview__go { flex: none; color: var(--muted); font-size: 22px; padding-right: 4px; }
@media (min-width: 900px) {
  .sheet, .sheet[data-state] { left: 16px; right: auto; top: var(--top-h); bottom: calc(var(--tabbar-h) + 26px); width: 400px; border-radius: 18px; }
  .sheet[data-state="closed"] { transform: translateX(-110%); }
  .sheet__body { padding-bottom: 20px; }
  .tabbar, .glance, .preview, .news-banner { left: 16px; right: auto; width: 400px; }
  .tabbar, .app.page-open .tabbar { bottom: 16px; left: 16px; right: auto; width: 400px; border-radius: 20px; height: var(--tabbar-h); padding-bottom: 0; }
  .app.page-open .sheet { bottom: calc(var(--tabbar-h) + 26px); }
}

/* ---------- content ---------- */
h2 { font-size: 16px; margin: 0; }
h3 { font-size: 15px; margin: 0 0 4px; }
p { margin: 0; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.card--row { flex-direction: row; align-items: center; gap: 12px; }
.card__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #eef0f4; color: var(--muted); white-space: nowrap; }
.chip--open { background: #e2f4ea; color: #16794a; }
.link-btn { background: none; border: 0; padding: 0; color: var(--indigo); font-weight: 700; cursor: pointer; text-align: left; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px 14px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--paper); font-weight: 700; text-decoration: none; color: var(--ink); cursor: pointer; }
.btn--primary { background: var(--green); border-color: var(--green); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.notice { background: #fff8d8; border: 1px solid #f3e19a; border-radius: 10px; padding: 8px 10px; }
.sim-note { padding: 0 2px; }

.train-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.train-col { background: var(--bg); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.train-col__dir { font-size: 13px; font-weight: 700; color: var(--muted); }
.train-col__time { font-size: 28px; font-weight: 800; letter-spacing: .01em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.train-col__time small { font-size: 12px; font-weight: 700; color: var(--muted); }
.train-col__in { display: block; font-size: 14px; font-weight: 800; color: var(--orange); }
.train-col__status { font-size: 12px; font-weight: 700; color: var(--indigo); }
.train-col__rest { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }

.hscroll { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.mini { flex: none; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center; text-align: left; background: var(--bg); border: 0; border-radius: 12px; padding: 8px 12px 8px 8px; cursor: pointer; }
.mini__icon { grid-row: span 2; width: 32px; height: 32px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.mini__name { font-weight: 700; font-size: 14px; white-space: nowrap; }
.mini__sub { font-size: 12px; color: var(--muted); white-space: nowrap; }
.cat-ramen { color: var(--orange); } .cat-sweets { color: #d9679b; } .cat-cafe { color: #8a5a3c; } .cat-deli { color: #c98a1b; } .cat-izakaya { color: var(--indigo); }
.wx { width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--yellow); }
.wx--cloudy { background: radial-gradient(circle at 60% 55%, #c7cfdd 40%, transparent 41%), radial-gradient(circle at 38% 60%, #dfe4ee 36%, transparent 37%); }
.wx--rain { background: radial-gradient(circle at 50% 40%, #aeb8ca 42%, transparent 43%), repeating-linear-gradient(100deg, transparent 0 5px, #3e4594 5px 6px); }
.wx--snow { background: radial-gradient(circle, #fff 30%, #dfe8f7 31%); }

.filters { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: none; }
.filter { flex: none; background: var(--bg); border: 1.5px solid var(--line); border-radius: 999px; padding: 5px 12px; font-weight: 700; font-size: 13px; cursor: pointer; }
.filter[aria-pressed="true"] { background: var(--deep); border-color: var(--deep); color: #fff; }
.shop-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.shop-row { width: 100%; display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; text-align: left; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; cursor: pointer; }
.shop-row__icon { width: 40px; height: 40px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; flex: none; }
.shop-row__main { display: flex; flex-direction: column; min-width: 0; }
.shop-row__main strong { font-size: 15px; }
.shop-row__tags { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shop-row__status { font-size: 13px; margin-top: 2px; }
.shop-row__side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; max-width: 92px; }
.q { font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 999px; color: #fff; }
.q--0 { background: #2fa36b; } .q--1 { background: #d79a00; } .q--2 { background: var(--orange); }
.btn.q--0, .btn.q--1, .btn.q--2 { color: #fff; border: 0; }

.view-head { display: flex; align-items: center; gap: 10px; }
.view-head h2 { font-size: 18px; }
.back { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--paper); font-size: 18px; cursor: pointer; }
.status-line { font-weight: 600; }
.hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours th { text-align: left; font-weight: 600; color: var(--muted); width: 4.5em; padding: 3px 0; }
.hours td { padding: 3px 0; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--ink); font-weight: 800; }
.facts { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.facts div { display: grid; grid-template-columns: 5.5em 1fr; gap: 8px; }
.facts dt { color: var(--muted); font-weight: 600; }
.facts dd { margin: 0; }
details summary { cursor: pointer; }

.view-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.post { border-bottom: 1px solid var(--line); padding-bottom: 12px; display: flex; flex-direction: column; gap: 4px; }
.post:last-child { border-bottom: 0; }
.post__title { font-size: 15px; }
.post__body { white-space: pre-line; }
.tag { font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 6px; color: #fff; background: var(--tag, var(--muted)); white-space: nowrap; }
.tag--event { background: var(--indigo); } .tag--shop { background: var(--orange); } .tag--news { background: var(--green); } .tag--fix { background: var(--charcoal); }

.form { display: flex; flex-direction: column; gap: 6px; }
.form label { font-weight: 700; font-size: 13px; margin-top: 6px; }
.form input, .form select, .form textarea { font: inherit; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; width: 100%; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.link-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }

/* ---------- static pages (shop, timetable, lists) ---------- */
.page { background: var(--bg); min-height: 100%; }
.page header.site { background: var(--green); color: #fff; padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 12px; display: flex; align-items: center; gap: 10px; }
.page header.site a { color: #fff; text-decoration: none; font-weight: 800; }
.page main { max-width: 760px; margin: 0 auto; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.page main h1 { font-size: 22px; margin: 4px 0 0; text-wrap: balance; }
.page .card { background: var(--paper); }
.page footer { max-width: 760px; margin: 0 auto; padding: 16px; font-size: 12px; color: var(--muted); }
.tt { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tt th, .tt td { border-bottom: 1px solid var(--line); padding: 6px 4px; text-align: left; vertical-align: top; }
.tt th { width: 3em; color: var(--muted); }
.tt td span { display: inline-block; min-width: 2.4em; }
.table-wrap { overflow-x: auto; }
.site__brand { display: flex; align-items: center; gap: 8px; }
.site__brand .brand__mark { width: 28px; height: 28px; }
.site__nav { margin-left: auto; display: flex; gap: 14px; }
.site__nav a { font-weight: 700; font-size: 14px; opacity: .92; }
.tt tr.is-now th, .tt tr.is-now td { background: #fff8d8; }
.tt .is-next { background: var(--yellow); border-radius: 4px; font-weight: 800; padding: 0 3px; }
.table-wrap.is-other { opacity: .55; }
.page h2 small, .page h1 small { font-weight: 600; font-size: .7em; }
.page .shop-row { text-decoration: none; color: inherit; grid-template-columns: 1fr auto; }
.bars { display: flex; align-items: flex-end; gap: 2px; height: 80px; }
.bars span { flex: 1; background: var(--green); border-radius: 2px 2px 0 0; min-height: 2px; }

/* ---------- messages ---------- */
.toast { position: fixed; left: 50%; top: calc(64px + env(safe-area-inset-top, 0px)); transform: translate(-50%, -20px); opacity: 0; z-index: 3000;
  background: var(--orange); color: #fff; font-weight: 800; padding: 10px 16px; border-radius: 12px; box-shadow: var(--shadow); transition: .25s; pointer-events: none; max-width: calc(100vw - 32px); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- picking a spot on the map ---------- */
.app.is-picking .sheet, .app.is-picking .topbar .top-right, .app.is-picking .tabbar, .app.is-picking .map-ui { display: none; }
.picker__cross { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; z-index: 1200; pointer-events: none;
  background: linear-gradient(#fff, #fff) center / 3px 100% no-repeat, linear-gradient(#fff, #fff) center / 100% 3px no-repeat; filter: drop-shadow(0 0 2px rgba(0,0,0,.7)); }
.picker__cross::after { content: ''; position: absolute; inset: 14px; border-radius: 50%; border: 3px solid var(--yellow); }
.picker__bar { position: absolute; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 1300; background: var(--paper);
  border-radius: 16px; padding: 12px 14px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.picker__bar .btn-row { justify-content: flex-end; }
@media (min-width: 900px) { .picker__bar { left: auto; width: 420px; } }

/* ---------- community posts on the map ---------- */
.bubble { position: absolute; left: 0; top: 0; transform: translate(-50%, calc(-100% - 6px)); width: 34px; height: 30px; border-radius: 12px; border: 2px solid #fff;
  background: var(--paper); box-shadow: var(--shadow); display: grid; place-items: center; font-size: 17px; line-height: 1; padding: 0; cursor: pointer; }
.bubble::after { content: ''; position: absolute; left: 50%; bottom: -8px; margin-left: -6px; border: 6px solid transparent; border-top-color: #fff; border-bottom: 0; }
#map.z-far .bubble { transform: translate(-50%, calc(-100% - 6px)) scale(.75); }

/* ---------- share ---------- */
.share-preview { display: grid; place-items: center; min-height: 120px; }
.share-preview img { width: min(100%, 300px); aspect-ratio: 9 / 16; object-fit: cover; border-radius: 14px; box-shadow: var(--shadow); }

/* ---------- まちの声 ---------- */
.post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.post__photo { width: 100%; max-height: 360px; object-fit: cover; border-radius: 12px; background: var(--bg); }
.post__body.is-clamped { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.post.is-focus { background: #fffbe6; border-radius: 12px; box-shadow: 0 0 0 6px #fffbe6; }
.post.is-featured .post__title::after { content: ' ★'; color: var(--yellow); }
.reply { background: #eef6f2; border-left: 4px solid var(--green); border-radius: 8px; padding: 8px 10px; font-size: 14px; }
.reply strong { color: var(--deep); margin-right: 4px; }
.rx { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.rx__btn { border: 1.5px solid var(--line); background: var(--paper); border-radius: 999px; padding: 3px 10px; font-size: 13px; font-weight: 700; cursor: pointer; }
.rx__btn[aria-pressed="true"] { border-color: var(--green); background: #e2f4ea; color: var(--deep); }
.rx__btn b { font-variant-numeric: tabular-nums; }
.appeal { background: linear-gradient(180deg, #f1f8f5, #fff); }
.prompt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.prompt { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border-radius: 12px; border: 1.5px solid var(--line);
  border-top: 4px solid var(--tag); background: var(--paper); font-weight: 700; font-size: 13px; cursor: pointer; line-height: 1.3; text-align: center; }
.prompt span { font-size: 24px; }
.appeal-mini { flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; border-left: 5px solid var(--tag); }
.appeal-mini p { font-weight: 700; }
.appeal-mini__e { font-size: 22px; margin-right: 6px; }
.appeal-mini .btn { flex: none; }
.form__type { display: flex; align-items: center; justify-content: space-between; }
.form__type .tag { font-size: 14px; padding: 4px 10px; }
.place { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.mine h3 { margin: 0; }

/* ---------- storefront photos ---------- */
.place-photo { margin: 4px 0 0; position: relative; }
.place-photo img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; background: var(--bg); }
.place-photo figcaption { position: absolute; right: 8px; bottom: 8px; font-size: 11px; font-weight: 600; color: #fff; background: rgba(20, 30, 40, .55); padding: 2px 8px; border-radius: 999px; }
.place-photo__preview { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; background: var(--bg); }
.photo-ask { flex-direction: row; align-items: flex-start; gap: 12px; border-style: dashed; border-width: 2px; }
.photo-ask__icon { font-size: 26px; line-height: 1; margin-top: 2px; }
.photo-ask h3 { margin: 0 0 2px; }
.photo-ask p { margin: 0 0 8px; }
.tips { margin: 0; padding-left: 1.2em; color: var(--muted); }
.photo-ask .btn-row { margin-top: 2px; }

/* ---------- 行く前のひとこと ---------- */
.tips-card p { margin: 0; }
.tips-list { list-style: none; margin: 0; padding: 0; }
.tip { padding: 10px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 5px; }
.tip:first-child { border-top: 0; padding-top: 2px; }
.tip__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tip__kind { font-size: 12px; font-weight: 700; color: var(--muted); }
.tip__body { margin: 0; }
.tip__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kind-pick { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.kind-pick legend { font-weight: 700; font-size: 13px; padding: 0; margin: 6px 0 6px; }
.form .kind-pick label { margin: 0; font-weight: 600; font-size: 13px; }
.kind-pick input { position: absolute; opacity: 0; pointer-events: none; }
.kind-pick span { display: inline-block; border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 12px; background: var(--paper); cursor: pointer; }
.kind-pick input:checked + span { border-color: var(--green); background: #e2f4ea; color: var(--deep); }
.kind-pick input:focus-visible + span { outline: 2px solid var(--indigo); outline-offset: 2px; }
.tip-count { margin: -2px 0 0; text-align: right; }
.chip--warn { background: #fff3c4; color: #8a6200; }
.pp-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.pp { margin: 0; display: flex; flex-direction: column; gap: 6px; width: 200px; }
.pp img { width: 200px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; background: var(--bg); }
.pp.is-used img { outline: 3px solid var(--green); outline-offset: 2px; }
.pp .btn-row { gap: 6px; }
.pp .btn { padding: 6px 10px; font-size: 13px; }
.pp-upload { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; }
.pp-upload input[name=author] { width: 9em; }
.pin--bus .pin__dot { background: #fff; border-color: #3e4594; font-size: 14px; line-height: 1; }
.pos-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 0; }

/* ---------- owner's page ---------- */
.check { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.check input { width: auto; }
.adm-media { display: flex; flex-wrap: wrap; gap: 10px; }
.adm-media figure { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.adm-media img, .adm-media canvas { width: 160px; height: 100px; object-fit: cover; border-radius: 10px; background: var(--bg); }
.adm-out { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.adm-out img { width: 100%; border-radius: 8px; box-shadow: var(--shadow); }
.form label select, .form label input:not([type=checkbox]) { margin-top: 4px; }
.form .btn-row > label { flex: 1; display: flex; flex-direction: column; font-weight: 700; font-size: 13px; }
.btn--warn { border-color: #e7b4a0; color: #9c3712; }
.human-check:empty { display: none; }

/* ---------- daily needs: quieter, smaller pins ---------- */
.pin--conveni, .pin--super, .pin--drug, .pin--variety, .pin--koban,
.cat-conveni, .cat-super, .cat-drug, .cat-variety, .cat-koban { color: #4d6b8a; }
.pin--post, .cat-post { color: #c9352b; }
.pin--minor .pin__dot { width: 24px; height: 24px; border-width: 2px; }
.pin--minor .pin__dot svg { width: 13px; height: 13px; }
.pin--minor .pin__label { font-size: 11px; font-weight: 600; }
#map:not(.z-near) .pin--minor .pin__label { display: none; }
#map.z-far .pin.is-selected .pin__label { display: block; }

/* ---------- first visits, sharing, empty states ---------- */
.sim-label { position: absolute; z-index: 1000; left: 12px; top: calc(var(--top-h) + 52px); display: flex; align-items: center; gap: 4px;
  background: rgba(255,255,255,.92); border-radius: 999px; padding: 3px 4px 3px 10px; font-size: 12px; font-weight: 700; box-shadow: var(--shadow); }
.sim-label span { cursor: pointer; }
.sim-label button { border: 0; background: none; font-size: 16px; line-height: 1; padding: 2px 6px; cursor: pointer; color: var(--muted); }
.app.is-picking .sim-label { display: none; }
.install { border-left: 5px solid var(--green); }
.share-row { display: flex; gap: 14px; }
.line { color: #06c755; font-weight: 800; text-decoration: none; }
.empty { text-align: center; padding: 18px 12px; border: 2px dashed var(--line); border-radius: var(--radius); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty__e { font-size: 34px; margin: 0; }
.empty h3 { margin: 0; }
.consent { color: var(--muted); }

/* ---------- Shinkansen connections ---------- */
.sk-row { display: flex; flex-direction: column; gap: 4px; padding-top: 8px; border-top: 1px solid var(--line); }
.sk-row:first-of-type { border-top: 0; padding-top: 0; }
.sk-local { font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.sk-in { color: var(--orange); font-weight: 800; font-size: 13px; }
.sk-opts { list-style: none; margin: 0; padding: 0 0 0 10px; border-left: 3px solid var(--pale); display: flex; flex-direction: column; gap: 4px; }
.sk-opt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-size: 14px; }
.sk-time { font-size: 18px; font-variant-numeric: tabular-nums; }
.sk-name { font-weight: 700; }
.sk-arr { color: var(--muted); font-variant-numeric: tabular-nums; }
.sk-opt.is-tight { opacity: .85; }
.chip--tight { background: #fff3c4; color: #8a6200; }
.sk-table th { width: auto; white-space: nowrap; font-size: 12px; }
.sk-table td { font-size: 13px; line-height: 1.35; }
.sk-table td small { color: var(--muted); }
.train-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.sk { border-top: 1px solid var(--line); padding-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.sk h3 { font-size: 15px; margin: 0; }

/* ---------- language, at the foot of the panel ---------- */
.sheet-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 8px; font-size: 13px; }
.sheet-foot .link-btn { font-weight: 600; color: var(--muted); }
.sheet-foot .link-btn[aria-pressed="true"] { color: var(--ink); font-weight: 800; }
