:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --fg: #2b3440;
  --heading: #1f3a5f;     /* 紺 */
  --muted: #6b7480;
  --line: #e6e2d6;
  --panel: #f6f3ea;
  --teal: #2a9d98;
  --teal-soft: #e5f4f2;
  --teal-line: #c9e8e4;
  --cta-from: #f0603a;
  --cta-to: #f7924b;
  --coral: #e8505b;
  --coral-soft: #fdeceb;
  --yellow: #f5b82e;
  --yellow-soft: #fff4d6;
  --accent: #1f6feb;
  --station: #7a3fd1;
  --facility: #1f6feb;
  --ok: #1a7f37;
  --warn: #9a6700;
  --hl: #fff6d6;
  --shadow: 0 4px 16px rgba(31, 58, 95, .10);
  --shadow-cta: 0 6px 18px rgba(240, 96, 58, .35);
  --radius: 20px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg); }
body { font-family: "Noto Sans JP", system-ui, -apple-system, "Hiragino Sans", "Yu Gothic UI", sans-serif; font-size: 16px; line-height: 1.7; }
a { color: var(--accent); }
.round { font-family: "Zen Maru Gothic", "Noto Sans JP", sans-serif; }
[hidden] { display: none !important; }

/* ---------- 共通ヘッダー ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: var(--surface); border-bottom: 1px solid var(--line); position: relative; z-index: 1200; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--heading); font-weight: 900; font-size: 19px; white-space: nowrap; }
.logo svg { width: 34px; height: 30px; flex: none; }
.menu-btn { background: none; border: 0; color: var(--heading); cursor: pointer; display: grid; justify-items: center; font-size: 10px; line-height: 1; gap: 3px; padding: 4px; min-width: 48px; min-height: 44px; }
.menu-btn svg { width: 26px; height: 22px; }
.menu { position: absolute; right: 12px; top: 58px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 6px; min-width: 220px; }
.menu a { display: block; padding: 12px 14px; border-radius: 10px; color: var(--fg); text-decoration: none; }
.menu a:hover { background: var(--panel); }

/* ---------- TOP ---------- */
.page { max-width: 760px; margin: 0 auto; }
.hero { position: relative; overflow: hidden; padding: 28px 20px 0; background: linear-gradient(180deg, #eaf5fb 0%, #f4f8ee 70%, var(--bg) 100%); }
.hero h1 { position: relative; z-index: 1; margin: 0; color: var(--heading); font-size: clamp(28px, 7.4vw, 40px); line-height: 1.45; font-weight: 900; letter-spacing: .02em; }
.hero h1 em { font-style: normal; color: var(--cta-from); background: linear-gradient(transparent 70%, var(--yellow-soft) 70%); }
.hero .lead { position: relative; z-index: 1; margin: 12px 0 0; font-size: 15px; max-width: 62%; }
.hero-art { position: absolute; right: -8px; top: 70px; width: 52%; max-width: 330px; aspect-ratio: 1; }
.hero-art img, .about-art img, .post-art img { width: 100%; height: 100%; object-fit: contain; }
.hero-spacer { height: 150px; }
.cta { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 12px; width: min(100%, 460px); margin: -24px auto 0; min-height: 64px; padding: 12px 24px;
  border: 0; border-radius: 999px; background: linear-gradient(90deg, var(--cta-from), var(--cta-to)); color: #fff; font-size: 23px; font-weight: 900; cursor: pointer; box-shadow: var(--shadow-cta); text-decoration: none; }
.cta svg { width: 24px; height: 24px; flex: none; }
.cta .chev { margin-left: auto; font-size: 22px; }
.cta .label { margin-left: auto; }
.top-search { margin: 16px 16px 0; position: relative; }
.top-search input { width: 100%; min-height: 54px; border: 2px solid var(--line); border-radius: 999px; padding: 0 20px 0 50px; font-size: 16px; background: var(--surface); color: var(--fg); }
.top-search svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; color: var(--muted); }

.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); margin: 24px 16px 0; padding: 22px 20px; }
.card h2 { margin: 0; color: var(--heading); font-size: 24px; font-weight: 900; line-height: 1.4; }
.underline { background-image: linear-gradient(transparent 78%, var(--teal-soft) 78%); padding-right: 4px; }
.about { display: grid; grid-template-columns: 1fr 44%; gap: 12px; align-items: center; }
.about p { margin: 12px 0 0; font-size: 15px; }
.about-art { aspect-ratio: 1; }

.area { background: var(--teal-soft); border: 1px solid var(--teal-line); box-shadow: none; }
.sec-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sec-h svg { width: 30px; height: 30px; color: var(--teal); flex: none; }
.sec-h .note { margin-left: auto; font-size: 12px; color: var(--muted); }
.area h3 { margin: 16px 0 8px; font-size: 15px; color: var(--heading); }
.pref-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.pref { flex: none; min-width: 92px; min-height: 56px; border-radius: 12px; border: 0; background: var(--surface); color: var(--muted); font-size: 15px; line-height: 1.2; display: grid; place-content: center; text-align: center; text-decoration: none; }
.pref small { font-size: 11px; }
.pref.on { background: var(--teal); color: #fff; font-weight: 700; }
.pref[aria-disabled="true"] { opacity: .75; cursor: default; }
.dash { border: 0; border-top: 2px dashed var(--teal-line); margin: 14px 0 0; }
.muni-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.muni { min-height: 44px; display: grid; place-items: center; border-radius: 10px; background: var(--surface); border: 1px solid var(--teal-line); color: var(--fg); text-decoration: none; font-size: 15px; line-height: 1.2; text-align: center; padding: 4px; }
.muni:hover { border-color: var(--teal); }
.muni.zero { color: var(--muted); }
.more { margin-top: 10px; background: none; border: 0; color: var(--teal); font-weight: 700; cursor: pointer; font-size: 15px; min-height: 44px; }

.stats { background: linear-gradient(180deg, var(--yellow-soft), var(--surface) 60%); }
.stats .sec-h svg { color: var(--yellow); }
.stat-main { display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: 2px 6px; margin-top: 16px; color: var(--heading); font-weight: 900; font-size: 18px; }
.stat-main b { font-size: 48px; line-height: 1.1; color: #1e63b8; font-family: "Zen Maru Gothic", sans-serif; }
.stat-main b.teal { color: var(--teal); }
.updated { display: table; margin: 12px auto 0; padding: 4px 16px; border-radius: 999px; background: var(--yellow-soft); color: var(--muted); font-size: 14px; }

.post { display: grid; grid-template-columns: 34% 1fr; gap: 12px; align-items: center; background: linear-gradient(135deg, var(--coral-soft), var(--surface)); }
.post h2 { font-size: 22px; color: #7a2d3a; }
.post p { margin: 8px 0 0; font-size: 14px; }
.post-art { aspect-ratio: 1; }
.btn-coral { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 14px; min-height: 56px; border-radius: 999px; background: var(--coral); color: #fff; font-weight: 900; font-size: 19px; text-decoration: none; box-shadow: 0 6px 16px rgba(232, 80, 91, .3); }
.btn-coral svg { width: 20px; height: 20px; }

.footer { margin-top: 32px; padding: 20px 16px 28px; background: var(--surface); border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.footer .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer .logo { font-size: 16px; }
.footer .links a { color: var(--muted); text-decoration: none; margin-left: 12px; }
.footer .caution { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); text-align: center; }
.footer .caution::before { content: "!"; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--coral); color: #fff; font-weight: 900; font-size: 12px; margin-right: 6px; }

/* イラスト：画像がなければSVGの仮絵を出す */
.art { position: relative; }
.art img { display: block; }
.art .fallback { display: none; width: 100%; height: 100%; }
.art.noimg img { display: none; }
.art.noimg .fallback { display: block; }

@media (min-width: 761px) {
  .hero { padding: 48px 40px 0; }
  .hero .lead { font-size: 17px; }
  .hero-spacer { height: 190px; }
}

/* ---------- 地域ページ ---------- */
.crumbs { font-size: 13px; color: var(--muted); padding: 14px 16px 0; }
.crumbs a { color: var(--muted); }
.area-title { margin: 8px 16px 0; color: var(--heading); font-size: 24px; line-height: 1.45; font-weight: 900; }
.area-sum { margin: 8px 16px 0; }
.area-actions { display: flex; gap: 10px; margin: 16px 16px 0; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--teal); color: var(--teal); background: var(--surface); text-decoration: none; font-weight: 700; }
.pill.solid { background: var(--teal); color: #fff; }
.cards { margin: 16px 16px 0; display: grid; gap: 12px; }
.pcard { display: block; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); padding: 14px 16px; color: inherit; text-decoration: none; }
.pcard .nm { font-weight: 700; font-size: 17px; color: var(--heading); }

/* ---------- 地図ページ ---------- */
body.mode-map { height: 100dvh; overflow: hidden; }
body.mode-map .app { display: grid; grid-template-rows: auto auto 1fr; height: 100dvh; }
.toolbar { padding: 8px 16px; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; background: var(--surface); }
.toolbar .search { flex: 1 1 220px; min-width: 0; }
.toolbar .search input { width: 100%; padding: 8px 12px; font-size: 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--fg); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: var(--panel); color: var(--fg); padding: 6px 12px; border-radius: 999px; font-size: 14px; cursor: pointer; min-height: 36px; }
.chip[aria-pressed="true"] { background: var(--teal); color: #fff; border-color: var(--teal); }
#main { display: grid; grid-template-columns: 360px 1fr; min-height: 0; position: relative; }
.side { overflow-y: auto; border-right: 1px solid var(--line); background: var(--surface); position: relative; }
.mapwrap { position: relative; min-height: 0; }
#map { position: absolute; inset: 0; }
.count { padding: 10px 16px; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.item { display: block; padding: 10px 16px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.item:hover, .item:focus { background: var(--panel); outline: none; }
.item .nm { font-weight: 700; font-size: 15px; color: var(--heading); }
.sub { font-size: 13px; color: var(--muted); margin-top: 2px; line-height: 1.5; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.tag { font-size: 12px; padding: 1px 8px; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; line-height: 1.6; }
.tag.st { color: var(--station); border-color: var(--station); }
.tag.fa { color: var(--facility); border-color: var(--facility); }
.tag.open { color: var(--ok); border-color: var(--ok); }
.tag.warn { color: var(--warn); border-color: var(--warn); }
.locate { position: absolute; right: 12px; bottom: 28px; z-index: 500; background: var(--surface); color: var(--fg); border: 1px solid var(--line);
  border-radius: 999px; padding: 10px 16px; font-size: 15px; box-shadow: var(--shadow); cursor: pointer; }
.credit { padding: 12px 16px; font-size: 12px; color: var(--muted); line-height: 1.6; }

.detail-head { padding: 12px 16px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 2; }
.back { font-size: 14px; text-decoration: none; }
.detail-head h2 { font-size: 20px; margin: 4px 0 2px; color: var(--heading); line-height: 1.4; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; font-size: 14px; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; cursor: pointer; text-decoration: underline; }
.area-h { margin: 0; padding: 10px 16px 6px; font-size: 14px; color: var(--heading); background: var(--teal-soft); border-bottom: 1px solid var(--line); }
.toilet { padding: 12px 16px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 56px 1fr; gap: 12px; }
.toilet.hl { background: var(--hl); }
.lv { font-weight: 900; font-size: 18px; text-align: center; border: 2px solid var(--heading); color: var(--heading); border-radius: 10px; padding: 6px 0; align-self: start; }
.lv.unknown { font-size: 11px; border-style: dashed; color: var(--muted); border-color: var(--muted); }
.toilet .nm { font-weight: 700; font-size: 15px; }
.toilet dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; margin: 6px 0 0; font-size: 14px; line-height: 1.6; }
.toilet dt { color: var(--muted); white-space: nowrap; }
.toilet dd { margin: 0; }
.toilet img { width: 100%; max-height: 150px; object-fit: cover; border-radius: 10px; margin-top: 8px; background: var(--panel); }
.toilet .tlinks { margin-top: 6px; font-size: 13px; display: flex; gap: 12px; flex-wrap: wrap; }
.pending { color: var(--muted); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--heading); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-size: 14px; z-index: 3000; opacity: 0; transition: opacity .2s; pointer-events: none; }
.toast.show { opacity: 1; }

.toggle-list { display: none; }
@media (max-width: 760px) {
  #main { grid-template-columns: 1fr; }
  .side { display: none; position: absolute; inset: 0; z-index: 1100; border-right: 0; }
  #main.show-side .side { display: block; }
  .toggle-list { display: inline-block; }
  .logo { font-size: 17px; }
}

/* ---------- 追加：地図・一覧デザイン ---------- */
.pc-nav { display: none; margin-left: auto; gap: 24px; }
.pc-nav a { color: var(--heading); text-decoration: none; font-weight: 700; font-size: 15px; }
@media (min-width: 761px) { .pc-nav { display: flex; } }

body.mode-map .app { grid-template-rows: auto 1fr; }
.map-view { display: grid; grid-template-rows: auto 1fr; min-height: 0; }
.toolbar { gap: 10px 10px; padding: 10px 16px; }
.toolbar .search { position: relative; }
.toolbar .search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); }
.toolbar .search input { min-height: 46px; padding-left: 44px; border: 2px solid var(--line); background: var(--surface); }
.chip { min-height: 40px; padding: 6px 16px; background: var(--surface); border: 1.5px solid var(--line); font-weight: 700; color: var(--heading); }
.chip[aria-pressed="true"] { background: #1f6feb; border-color: #1f6feb; color: #fff; }
.seg { display: none; width: 100%; background: var(--panel); border-radius: 999px; padding: 4px; }
.seg button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border: 0; border-radius: 999px; background: none; color: var(--heading); font-size: 15px; font-weight: 700; cursor: pointer; }
.seg button svg { width: 20px; height: 20px; }
.seg button[aria-selected="true"] { background: #1f6feb; color: #fff; }

.count { font-size: 15px; color: var(--heading); font-weight: 700; background: var(--bg); border-bottom: 0; padding: 14px 16px 6px; }
.count b { font-size: 18px; }
.side { background: var(--bg); }
.plist { display: grid; gap: 12px; padding: 6px 12px 12px; }

.pcard { display: grid; grid-template-columns: 96px 1fr 16px; gap: 12px; align-items: start; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); padding: 12px; color: inherit; text-decoration: none; border: 1px solid var(--line); }
.pcard:hover, .pcard:focus { border-color: #1f6feb; outline: none; }
.thumb { width: 96px; height: 96px; border-radius: 10px; object-fit: cover; background: var(--teal-soft); display: grid; place-items: center; color: var(--teal); font-size: 34px; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.pcard .top { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--heading); }
.kind { display: inline-block; padding: 0 10px; border-radius: 6px; color: #fff; font-size: 12px; font-weight: 700; line-height: 22px; }
.kind.fa { background: #1f6feb; } .kind.st { background: #7a3fd1; }
.dist::before { content: ""; display: inline-block; width: 10px; height: 13px; margin-right: 4px; vertical-align: -1px; background: var(--heading);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 13'%3E%3Cpath d='M5 0a5 5 0 0 0-5 5c0 3.6 5 8 5 8s5-4.4 5-8a5 5 0 0 0-5-5Zm0 7a2 2 0 1 1 0-4 2 2 0 0 1 0 4Z'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 13'%3E%3Cpath d='M5 0a5 5 0 0 0-5 5c0 3.6 5 8 5 8s5-4.4 5-8a5 5 0 0 0-5-5Zm0 7a2 2 0 1 1 0-4 2 2 0 0 1 0 4Z'/%3E%3C/svg%3E") no-repeat center / contain; }
.pcard .nm { margin-top: 2px; font-weight: 900; font-size: 17px; color: var(--heading); line-height: 1.4; }
.pcard .addr { font-size: 13px; color: var(--muted); }
.pcard .chev { color: var(--muted); font-size: 22px; line-height: 1; }
.badges, .floors { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.b { font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 6px; line-height: 22px; background: var(--panel); color: var(--heading); }
.b.open { background: #e3f5e8; color: #1a7f37; }
.b.os { background: #e6f0ff; color: #1f5fc9; }
.b.warn { background: #fff1d6; color: #8a5a00; }
.f { font-size: 12px; padding: 0 8px; border-radius: 6px; line-height: 22px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); }
.f.gate { border-color: #7a3fd1; color: #7a3fd1; font-weight: 700; }
.src { margin-top: 6px; font-size: 12px; color: var(--muted); }

/* ピン */
.pin { width: 30px; height: 40px; filter: drop-shadow(0 2px 2px rgba(0,0,0,.35)); }
.pin.big { width: 40px; height: 54px; }
.cl { width: 42px; height: 42px; border-radius: 50%; background: #1f6feb; color: #fff; font: 700 16px/36px system-ui; text-align: center; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(31,111,235,.25), 0 2px 6px rgba(0,0,0,.3); }
.cl.lg { width: 50px; height: 50px; line-height: 44px; }
.legend { position: absolute; top: 12px; right: 12px; z-index: 500; display: none; gap: 14px; background: var(--surface); border-radius: 999px; padding: 8px 16px; box-shadow: var(--shadow); font-size: 14px; font-weight: 700; color: var(--heading); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg { width: 12px; height: 16px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; display: inline-block; }
.lg.fa { background: #1f6feb; } .lg.st { background: #7a3fd1; }
.leaflet-top.leaflet-left { top: auto; bottom: 110px; left: auto; right: 12px; }
.leaflet-bar a { width: 44px !important; height: 44px !important; line-height: 44px !important; font-size: 22px !important; }
.locate { display: grid; justify-items: center; gap: 2px; width: 56px; padding: 8px 0; border-radius: 14px; font-size: 11px; font-weight: 700; color: var(--heading); bottom: 40px; }
.locate svg { width: 24px; height: 24px; }

/* 下からのシート（スマホでピンをタップ） */
.sheet { position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 900; background: var(--surface); border-radius: 22px 22px 16px 16px; box-shadow: 0 -4px 24px rgba(0,0,0,.18); padding: 10px 16px 16px; }
.sheet::before { content: ""; display: block; width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 8px; }
.sheet .close { position: absolute; right: 10px; top: 10px; width: 40px; height: 40px; border: 0; background: none; font-size: 24px; color: var(--muted); cursor: pointer; }
.sheet .head { display: grid; grid-template-columns: 84px 1fr; gap: 12px; align-items: center; }
.sheet .thumb { width: 84px; height: 84px; }
.sheet .nm { font-weight: 900; font-size: 20px; color: var(--heading); line-height: 1.35; margin-top: 4px; }
.sheet .floors-line { margin-top: 8px; font-weight: 700; color: var(--heading); }
.btn-blue { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; margin-top: 12px; border-radius: 999px; background: #1f6feb; color: #fff; font-weight: 900; font-size: 18px; text-decoration: none; }

@media (min-width: 761px) {
  .legend { display: flex; }
  #main { grid-template-columns: 400px 1fr; }
  .sheet { display: none !important; }
}
@media (max-width: 760px) {
  .toolbar { background: var(--bg); border-bottom: 0; }
  .seg { display: flex; }
  .toggle-list { display: none !important; }
  .side { background: var(--bg); }
  .plist { padding: 6px 12px 16px; }
}

/* ---------- 切り出し画像 ---------- */
.logo-mark { width: 34px; height: auto; flex: none; }
.footer .logo-mark { width: 28px; }
.hero-art { aspect-ratio: 293 / 288; top: 56px; right: 0; width: 56%; max-width: 360px;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22%), linear-gradient(to bottom, #000 80%, transparent 100%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent 0, #000 22%); }
.hero-art img, .about-art img, .post-art img { width: 100%; height: auto; display: block; }
.about-art { aspect-ratio: auto; }
.about-art img { border-radius: 16px; }
.post-art { aspect-ratio: auto; }
.post-art img { border-radius: 50%; }
.stats { position: relative; overflow: hidden; }
.stats-sky { position: absolute; right: 0; top: 0; width: 55%; max-width: 260px; opacity: .9; pointer-events: none; }
.stat-body { position: relative; display: grid; grid-template-columns: 30% 1fr; align-items: center; gap: 8px; margin-top: 12px; }
.stats-art { width: 100%; height: auto; }
.stat-body .stat-main { margin-top: 0; justify-content: flex-start; }
.stat-body .stat-main b { font-size: clamp(34px, 9vw, 48px); }
.stat-body .updated { margin: 8px 0 0; }
/* ---------- スマホ幅の調整 ---------- */
.hero { padding-bottom: 0; }
.hero h1 { font-size: clamp(27px, 7.2vw, 40px); }
.hero .lead { max-width: 54%; font-size: 14px; }
.hero-art { top: auto; bottom: 0; width: 64%; max-width: 400px; }
.hero-spacer { height: 110px; }
.cta { margin-top: -30px; }
.about { grid-template-columns: 1fr 46%; }
.about h2 { grid-column: 1 / -1; }
.about p { margin-top: 4px; }
.stats .sec-h { position: relative; z-index: 1; }
.stats-sky { top: 8px; width: 50%; opacity: .75; }
.stat-body { grid-template-columns: 26% 1fr; }
.stat-body .stat-main { font-size: 16px; }
.stat-body .stat-main b { font-size: clamp(32px, 8.6vw, 48px); }
.post { grid-template-columns: 32% 1fr; }
.post h2 { font-size: clamp(17px, 4.8vw, 22px); }
.btn-coral { font-size: clamp(15px, 4.4vw, 19px); white-space: nowrap; padding: 0 14px; }
@media (min-width: 761px) {
  .hero-spacer { height: 170px; }
  .hero .lead { max-width: 50%; }
}
.cta { width: min(calc(100% - 32px), 460px); }
.hero .lead { max-width: 48%; }

@media (max-width: 760px) { .leaflet-control-zoom { display: none; } }

/* ---------- 修正提案シート ---------- */
.modal { position: fixed; inset: 0; z-index: 2000; background: rgba(20, 28, 40, .45); display: flex; align-items: flex-end; justify-content: center; }
.msheet { width: min(100%, 520px); max-height: 92dvh; overflow-y: auto; background: var(--surface); border-radius: 24px 24px 0 0; padding: 10px 20px 20px; box-shadow: 0 -8px 30px rgba(0,0,0,.2); }
@media (min-width: 761px) { .modal { align-items: center; } .msheet { border-radius: 24px; } }
.msheet::before { content: ""; display: block; width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 10px; }
.mhead { display: flex; align-items: center; gap: 8px; }
.mhead h2 { flex: 1; margin: 0; font-size: 22px; font-weight: 900; color: var(--heading); }
.iconbtn { width: 44px; height: 44px; border: 0; background: none; font-size: 24px; color: var(--muted); cursor: pointer; border-radius: 50%; }
.iconbtn:hover { background: var(--panel); }
.tsum { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: center; margin: 12px 0; }
.tsum .thumb { width: 72px; height: 54px; border-radius: 8px; font-size: 24px; }
.tsum b { display: block; font-size: 16px; color: var(--heading); }
.tsum span { font-size: 13px; color: var(--muted); }
.frow { display: grid; grid-template-columns: 28px 76px 1fr auto; gap: 8px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.frow .ic { font-size: 18px; text-align: center; }
.frow .k { font-weight: 700; color: var(--heading); font-size: 14px; }
.frow .v { font-size: 14px; }
.frow .v img { width: 110px; height: 64px; object-fit: cover; border-radius: 8px; display: block; }
.diff { border: 0; background: #e6f0ff; color: #1f5fc9; font-weight: 700; border-radius: 999px; padding: 6px 16px; min-height: 36px; cursor: pointer; }
.caution-box { display: flex; align-items: center; gap: 12px; background: var(--yellow-soft); border-radius: 14px; padding: 12px 14px; margin-top: 12px; font-size: 13px; line-height: 1.6; }
.caution-box .ic { font-size: 22px; }
.btn-danger, .btn-primary { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 54px; margin-top: 14px; border: 0; border-radius: 999px; font-size: 17px; font-weight: 900; color: #fff; cursor: pointer; font-family: inherit; }
.btn-danger { background: var(--coral); }
.btn-primary { background: #1f6feb; }
.btn-primary:disabled { opacity: .45; cursor: default; }
.btn-ghost { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 50px; margin-top: 10px; border: 0; border-radius: 999px; background: var(--panel); color: var(--heading); font-weight: 700; font-size: 16px; cursor: pointer; }
.login-note { margin-top: 12px; text-align: center; font-size: 12px; color: var(--muted); line-height: 1.7; }
.login-note a { color: #1f6feb; }
.field { display: grid; grid-template-columns: 76px 1fr; gap: 10px; align-items: start; padding: 12px 0; border-top: 1px solid var(--line); }
.field > label, .field > .lbl { font-weight: 700; color: var(--heading); font-size: 14px; padding-top: 10px; }
.field small { font-weight: 400; color: var(--muted); }
.inp { width: 100%; min-height: 46px; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 14px; font-size: 16px; background: var(--surface); color: var(--fg); font-family: inherit; }
textarea.inp { min-height: 80px; padding: 10px 14px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.opt { border: 1.5px solid var(--line); background: var(--surface); color: var(--heading); border-radius: 999px; padding: 6px 16px; min-height: 40px; font-weight: 700; cursor: pointer; font-family: inherit; font-size: 14px; }
.opt[aria-pressed="true"] { background: #1f6feb; border-color: #1f6feb; color: #fff; }
.wheel { height: 200px; overflow-y: auto; scroll-snap-type: y mandatory; background: var(--panel); border-radius: 12px; position: relative; scrollbar-width: none; }
.wheel::-webkit-scrollbar { display: none; }
.wheel .pad { height: 80px; }
.wheel button { display: block; width: 100%; height: 40px; border: 0; background: none; scroll-snap-align: center; font-size: 17px; color: var(--muted); cursor: pointer; font-family: inherit; }
.wheel button.on { color: var(--heading); font-weight: 900; font-size: 21px; background: #e6f0ff; }
.seg2 { display: flex; background: var(--panel); border-radius: 999px; padding: 4px; }
.seg2 button { flex: 1; min-height: 42px; border: 0; border-radius: 999px; background: none; font-weight: 700; color: var(--heading); cursor: pointer; font-family: inherit; font-size: 15px; }
.seg2 button[aria-pressed="true"] { background: #e6f0ff; color: #1f5fc9; }
.reasons { display: grid; gap: 8px; margin-top: 8px; }
.reason { display: grid; grid-template-columns: 24px 30px 1fr; gap: 10px; align-items: center; text-align: left; border: 1.5px solid var(--line); background: var(--surface); border-radius: 14px; padding: 12px 14px; cursor: pointer; font-family: inherit; color: var(--fg); }
.reason .radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--muted); }
.reason .ic { font-size: 20px; text-align: center; }
.reason b { display: block; color: var(--heading); font-size: 15px; }
.reason small { color: var(--muted); font-size: 12px; }
.reason[aria-pressed="true"] { border-color: #1f6feb; background: #eef4ff; }
.reason[aria-pressed="true"] .radio { border: 7px solid #1f6feb; }
.notice { display: flex; align-items: center; gap: 10px; background: var(--yellow-soft); border-radius: 12px; padding: 10px 12px; margin-top: 10px; font-size: 13px; }
.notice .opt { margin-left: auto; white-space: nowrap; }
.photo-row { display: grid; grid-template-columns: 1fr 1.3fr; gap: 10px; margin-top: 8px; }
.photo-add { display: grid; place-items: center; min-height: 72px; border: 1.5px dashed var(--line); border-radius: 12px; color: var(--muted); cursor: pointer; font-size: 14px; overflow: hidden; }
.photo-add img { width: 100%; height: 72px; object-fit: cover; }
.photo-row .caution-box { margin-top: 0; }
.done { text-align: center; padding: 10px 0 0; }
.done .check { width: 72px; height: 72px; margin: 6px auto 0; border-radius: 50%; background: var(--teal); color: #fff; font-size: 40px; line-height: 72px; font-weight: 900; }
.done h2 { margin: 14px 0 0; font-size: 21px; color: var(--heading); }
.done p { margin: 4px 0 0; color: var(--heading); font-weight: 700; font-size: 15px; }
.preview { margin-top: 16px; background: var(--panel); border-radius: 16px; padding: 14px; font-size: 13px; color: var(--muted); }
.preview .pv { display: flex; align-items: center; gap: 12px; background: var(--surface); border-radius: 12px; padding: 12px 14px; margin: 10px 0; text-align: left; color: var(--fg); }
.pending-label { display: inline-block; margin-left: 6px; padding: 0 8px; border-radius: 999px; background: var(--yellow-soft); color: #8a5a00; font-size: 12px; font-weight: 700; line-height: 20px; white-space: nowrap; }
.field { grid-template-columns: 88px 1fr; }
.field > label small, .field > .lbl small { display: block; }

/* ---------- 施設ページ ---------- */
.ppage { max-width: 1200px; margin: 0 auto; padding-bottom: 24px; }
.ppage .crumbs a { color: #1f6feb; text-decoration: none; }
.ph-top { display: grid; grid-template-areas: "info" "map" "desc"; gap: 14px; padding: 12px 16px 0; }
.ph-map { grid-area: map; position: relative; border-radius: 16px; overflow: hidden; height: 170px; box-shadow: var(--shadow); }
#placeMap { position: absolute; inset: 0; }
.mapbtn { position: absolute; right: 10px; top: 10px; z-index: 500; background: var(--surface); color: #1f6feb; font-weight: 700; font-size: 14px; padding: 8px 14px; border-radius: 10px; text-decoration: none; box-shadow: var(--shadow); }
.ph-info { grid-area: info; }
.ph-info h1 { margin: 0; font-size: clamp(26px, 7vw, 36px); line-height: 1.3; color: var(--heading); font-weight: 900; }
.ph-info .addr { margin-top: 4px; color: var(--fg); font-size: 15px; }
.ptags { display: flex; gap: 8px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.ptags .kind { font-size: 13px; line-height: 26px; padding: 0 14px; border-radius: 999px; }
.ptags .cnt { border: 1.5px solid var(--line); border-radius: 999px; padding: 0 14px; line-height: 26px; font-size: 14px; color: var(--heading); font-weight: 700; }
.pbtns { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.pbtn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 0 16px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--heading); font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; font-family: inherit; }
.pbtn.primary { background: #1f6feb; border-color: #1f6feb; color: #fff; }
.pbtn.small { font-size: 13px; line-height: 1.3; }
.ph-desc { grid-area: desc; margin: 0; font-size: 14px; line-height: 1.8; }
.atabs { position: sticky; top: 0; z-index: 900; display: flex; overflow-x: auto; background: var(--surface); border-bottom: 1px solid var(--line); margin-top: 16px; scrollbar-width: none; }
.atabs button { flex: 1 0 auto; min-height: 56px; padding: 6px 16px; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--heading); font-weight: 700; font-size: 15px; cursor: pointer; font-family: inherit; line-height: 1.3; }
.atabs button small { display: block; font-weight: 400; color: var(--muted); }
.atabs button.on { color: #1f6feb; border-bottom-color: #1f6feb; }
.ph-body { display: grid; gap: 20px; padding: 0 16px; }
.asec h3 { margin: 22px 0 10px; font-size: 20px; color: var(--heading); }
.asec h3 small { font-size: 15px; font-weight: 700; }
.tcard { display: grid; grid-template-columns: 132px 1fr; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 10px; margin-bottom: 12px; box-shadow: var(--shadow); scroll-margin-top: 80px; }
.tcard.hl { background: var(--hl); border-color: var(--yellow); }
.tphoto { position: relative; width: 132px; height: 104px; border-radius: 10px; overflow: hidden; background: var(--teal-soft); }
.tphoto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lvb { position: absolute; left: 6px; top: 6px; background: rgba(255,255,255,.95); color: #1f6feb; font-weight: 900; font-size: 18px; padding: 0 10px; border-radius: 8px; line-height: 30px; border: 2px solid #cfe0ff; }
.tbody h4 { margin: 0; font-size: 17px; color: var(--heading); line-height: 1.4; }
.tsub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.tsub.gate { color: #7a3fd1; font-weight: 700; }
.tsub.gate.unknown { color: var(--muted); font-weight: 400; }
.eq { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-top: 6px; }
.b.bed { background: #e3f5e8; color: #1a7f37; }
.eqi { font-size: 12px; padding: 0 8px; line-height: 22px; border-radius: 6px; border: 1px solid var(--line); color: var(--heading); }
.hrs { margin-top: 6px; font-size: 13px; line-height: 1.6; }
.hrs small { display: block; color: var(--muted); }
.tnote { margin-top: 4px; font-size: 12px; color: var(--muted); }
.meta { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; margin-top: 6px; font-size: 12px; color: var(--muted); }
.srcb { background: #e3f5e8; color: #1a7f37; font-weight: 700; padding: 0 10px; border-radius: 999px; line-height: 22px; }
.tact { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 13px; }
.tact a, .tact .linkbtn { color: #1f6feb; text-decoration: none; font-size: 13px; }
.btn-confirm { min-height: 44px; padding: 0 22px; border-radius: 999px; border: 2px solid #1f6feb; background: var(--surface); color: #1f6feb; font-weight: 900; font-size: 15px; cursor: pointer; font-family: inherit; }
.btn-confirm.done { border-color: var(--teal); color: var(--teal); cursor: default; }
.ph-aside { display: grid; gap: 14px; align-content: start; }
.abox { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; color: inherit; text-decoration: none; }
.abox h3 { margin: 0 0 8px; font-size: 15px; color: var(--heading); }
.abox dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: 13px; }
.abox dt { color: var(--muted); }
.abox dd { margin: 0; }
.abox dd small { color: var(--muted); }
.station-box { display: grid; grid-template-columns: 40px 1fr; gap: 10px; background: #eef4ff; border-color: #cfe0ff; font-size: 14px; }
.station-box .ic { font-size: 30px; }
.station-box small { color: var(--muted); }
.station-box .lnk { color: #1f6feb; font-weight: 700; }
.post-box { background: var(--yellow-soft); border-color: #f3dfa6; display: grid; gap: 6px; }
.post-box b { color: #8a4a00; }
.post-box small { color: var(--muted); }
.post-box .pbtn { border-radius: 999px; border: 2px solid var(--heading); margin-top: 6px; }
.asrc { font-size: 12px; color: var(--muted); line-height: 1.7; }
@media (min-width: 900px) {
  .ph-top { grid-template-columns: 420px 1fr; grid-template-areas: "map info" "map desc"; column-gap: 24px; padding: 16px 24px 0; }
  .ph-map { height: 240px; }
  .ph-body { grid-template-columns: 1fr 300px; padding: 0 24px; gap: 24px; }
  .ph-aside { position: sticky; top: 70px; margin-top: 22px; }
  .tcard { grid-template-columns: 170px 1fr 200px; align-items: start; }
  .tphoto { width: 170px; height: 120px; }
  .tact { grid-column: auto; flex-direction: column; align-items: stretch; gap: 8px; }
  .btn-confirm { width: 100%; }
  .tact a, .tact .linkbtn { text-align: left; }
}
@media (max-width: 420px) {
  .tcard { grid-template-columns: 112px 1fr; }
  .tphoto { width: 112px; height: 96px; }
}

/* ---------- TOP検索のサジェスト ---------- */
.top-search { z-index: 5; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 10px 30px rgba(31, 58, 95, .18); max-height: min(60vh, 460px); overflow-y: auto; }
.suggest li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; min-height: 52px; padding: 8px 12px; border-radius: 12px; cursor: pointer; }
.suggest li[aria-selected="true"], .suggest li:hover { background: var(--panel); }
.sg-kind { font-size: 12px; font-weight: 700; color: #fff; border-radius: 6px; padding: 0 8px; line-height: 22px; }
.sg-kind.facility { background: #1f6feb; } .sg-kind.station { background: #7a3fd1; } .sg-kind.area { background: var(--teal); }
.sg-main { min-width: 0; display: grid; }
.sg-label { font-weight: 700; color: var(--heading); font-size: 15px; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-label mark { background: var(--yellow-soft); color: inherit; border-radius: 3px; padding: 0 1px; }
.sg-sub { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-extra { font-size: 12px; color: var(--muted); white-space: nowrap; }
.suggest .sg-all { display: block; border-top: 1px solid var(--line); border-radius: 0 0 12px 12px; color: #1f6feb; font-weight: 700; font-size: 15px; line-height: 36px; }

/* ---------- メニュー（PC：右上のドロップダウン／スマホ：下からのパネル） ---------- */
.menu { position: absolute; right: 12px; top: 58px; background: none; border: 0; box-shadow: none; padding: 0; min-width: 0; }
.menu-backdrop { display: none; }
.menu-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 6px; min-width: 240px; display: grid; }
.menu-panel a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px; color: var(--fg); text-decoration: none; font-weight: 700; }
.menu-panel a:hover { background: var(--panel); }
.menu-close { display: none; }
.share-ic { width: 1.15em; height: 1.15em; vertical-align: -0.2em; flex: none; }
@media (max-width: 760px) {
  .menu { position: fixed; inset: 0; top: 0; right: 0; z-index: 2500; }
  .menu-backdrop { display: block; position: absolute; inset: 0; background: rgba(20, 28, 40, .45); }
  .menu-panel { position: absolute; left: 0; right: 0; bottom: 0; min-width: 0; border: 0; border-radius: 24px 24px 0 0; padding: 10px 16px calc(16px + env(safe-area-inset-bottom)); gap: 4px; box-shadow: 0 -8px 30px rgba(0,0,0,.2); animation: menu-up .18s ease-out; }
  .menu-panel::before { content: ""; width: 44px; height: 5px; border-radius: 3px; background: var(--line); justify-self: center; margin-bottom: 6px; }
  .menu-panel a { min-height: 58px; font-size: 17px; padding: 0 16px; background: var(--panel); border-radius: 14px; }
  .menu-close { display: flex; align-items: center; justify-content: center; min-height: 58px; margin-top: 8px; border: 2px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--heading); font-size: 18px; font-weight: 900; cursor: pointer; font-family: inherit; }
  body.menu-open { overflow: hidden; }
}
@keyframes menu-up { from { transform: translateY(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .menu-panel { animation: none; } }
.ph-info a.addr { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; color: #1f6feb; text-decoration: underline; text-underline-offset: 3px; }
.ph-info a.addr .ext { font-size: 13px; }
a.gmap { color: #1f6feb; }

/* ---------- 新規投稿フロー ---------- */
.post-page { max-width: 560px; margin: 0 auto; padding: 0 16px 110px; }
.p-top { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; padding-top: 10px; }
.stepper { display: flex; justify-content: center; align-items: center; gap: 0; margin: 0; padding: 0; list-style: none; }
.stepper li { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 15px; color: var(--muted); background: var(--surface); border: 1.5px solid var(--line); position: relative; }
.stepper li + li { margin-left: 22px; }
.stepper li + li::before { content: ""; position: absolute; right: 100%; width: 22px; top: 50%; border-top: 2px dotted var(--line); }
.stepper li.on { background: #1f6feb; border-color: #1f6feb; color: #fff; }
.stepper li.done { color: #1f6feb; border-color: #1f6feb; }
.stepper li.skip { opacity: .45; }
.p-body h1 { margin: 18px 0 0; font-size: 23px; color: var(--heading); line-height: 1.4; }
.p-lead { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.center { text-align: center; }
.p-search { margin-top: 14px; }
.p-search .inp { border-radius: 999px; min-height: 50px; padding-left: 18px; }
.p-sec-h { display: flex; justify-content: space-between; align-items: center; margin: 18px 0 8px; color: var(--heading); }
.p-list { display: grid; gap: 10px; }
.p-pick { display: grid; grid-template-columns: 84px 1fr 16px; gap: 12px; align-items: center; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px; cursor: pointer; font-family: inherit; color: var(--fg); box-shadow: var(--shadow); }
.p-pick .thumb { width: 84px; height: 64px; }
.p-pick-main { display: grid; gap: 2px; justify-items: start; }
.p-pick-main b { color: var(--heading); font-size: 16px; }
.p-pick-main b mark { background: var(--yellow-soft); color: inherit; }
.p-pick-main .dist { font-size: 13px; color: var(--muted); }
.p-pick .chev { color: var(--muted); font-size: 22px; }
.p-empty { color: var(--muted); font-size: 14px; }
.p-addnew { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 60px; margin-top: 16px; border: 2px solid #1f6feb; border-radius: 16px; background: var(--surface); color: #1f6feb; font-weight: 900; font-size: 16px; cursor: pointer; font-family: inherit; }
.p-map { position: relative; height: 240px; border-radius: 16px; overflow: hidden; margin-top: 14px; box-shadow: var(--shadow); }
#postMap { position: absolute; inset: 0; }
.p-pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); z-index: 500; pointer-events: none; }
.p-here { position: absolute; right: 10px; bottom: 10px; z-index: 500; border: 0; border-radius: 999px; background: var(--surface); color: #1f6feb; font-weight: 700; padding: 10px 16px; box-shadow: var(--shadow); cursor: pointer; font-family: inherit; }
.field1 { margin-top: 16px; }
.field1 > label, .field1 > .lbl { display: block; font-weight: 700; color: var(--heading); margin-bottom: 6px; }
.field1 em { color: var(--coral); font-style: normal; font-size: 13px; }
.field1 small { color: var(--muted); font-weight: 400; }
.p-kinds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.p-kinds .opt, .p-kinds .opt { min-height: 48px; }
.p-head { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: center; margin-top: 14px; }
.p-head .thumb { width: 72px; height: 56px; font-size: 26px; }
.p-head b { display: block; color: var(--heading); font-size: 17px; }
.p-head span { font-size: 13px; color: var(--muted); }
.p-dup { margin-top: 16px; background: var(--yellow-soft); border-radius: 14px; padding: 12px; display: grid; gap: 8px; }
.p-dup small { color: var(--muted); }
.p-dup-card { display: grid; grid-template-columns: 80px 1fr; gap: 10px; align-items: center; background: var(--surface); border-radius: 10px; padding: 8px; }
.p-dup-card img { width: 80px; height: 60px; object-fit: cover; border-radius: 8px; }
.p-dup-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.p-dup-btns .opt { border-radius: 12px; border-color: #1f6feb; color: #1f6feb; min-height: 52px; line-height: 1.3; }
.p-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.p-card { display: grid; justify-items: center; align-content: center; gap: 4px; min-height: 84px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--heading); font-weight: 700; font-size: 13px; line-height: 1.3; cursor: pointer; font-family: inherit; padding: 8px 4px; }
.p-card .ic { font-size: 24px; }
.p-card[aria-pressed="true"] { background: #1f6feb; border-color: #1f6feb; color: #fff; }
.p-radios { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; font-size: 15px; }
.p-radios label { display: flex; align-items: center; gap: 6px; min-height: 40px; cursor: pointer; }
.p-radios input { width: 20px; height: 20px; accent-color: #1f6feb; }
.p-times { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.p-times .inp { width: auto; flex: 1; }
.p-photo { margin-top: 16px; }
.p-photo b { color: var(--heading); }
.p-photo-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; margin-top: 6px; }
.p-photo-row img, .p-photo-ph { width: 100%; height: 130px; object-fit: cover; border-radius: 12px; background: var(--panel); display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.p-photo .photo-add { min-height: 130px; text-align: center; line-height: 1.6; }
.caution-box.warn { background: var(--yellow-soft); margin-top: 16px; }
.p-skip { display: block; margin: 14px auto 0; font-size: 15px; }
.p-login { margin-top: 16px; background: #eef4ff; border-radius: 14px; padding: 12px 14px; font-size: 14px; }
.p-login-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.p-confirm { margin-top: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 4px 14px; }
.p-row { display: grid; grid-template-columns: 76px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.p-row:first-child { border-top: 0; }
.p-row.head { grid-template-columns: 1fr auto; }
.p-row.head .p-head { margin: 0; }
.p-row .k { color: var(--muted); }
.p-row .v img { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; margin-right: 6px; }
.p-sub { margin: 20px 0 8px; font-size: 16px; color: var(--heading); }
.p-preview { display: grid; grid-template-columns: 112px 1fr; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 10px; box-shadow: var(--shadow); }
.p-preview .tphoto { width: 112px; height: 90px; }
.p-preview h4 { margin: 0; color: var(--heading); font-size: 16px; }
.b.user { background: #fff1d6; color: #8a5a00; }
.b.wait { background: #fde4e6; color: #b3303b; }
.p-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bg) 30%); }
.p-bar .btn-primary { max-width: 528px; margin: 0 auto; }
.p-done { text-align: center; padding-top: 28px; position: relative; }
.p-done .check { width: 84px; height: 84px; margin: 0 auto; border-radius: 50%; background: #1f6feb; color: #fff; font-size: 48px; line-height: 84px; font-weight: 900; }
.p-done h1 { margin-top: 16px; }
.p-done > p { color: var(--heading); font-weight: 700; }
.p-status { margin: 16px 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: grid; gap: 10px; }
.p-status-box { display: flex; align-items: center; justify-content: center; gap: 12px; background: var(--yellow-soft); border-radius: 12px; padding: 12px; color: #8a5a00; }
.p-status-box .ic { font-size: 32px; }
.p-status > small { color: var(--muted); }
.p-done .btn-primary { text-decoration: none; }
.btn-outline { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 52px; margin-top: 10px; border: 2px solid #1f6feb; border-radius: 999px; background: var(--surface); color: #1f6feb; font-weight: 700; font-size: 16px; cursor: pointer; font-family: inherit; }
.p-thanks { margin-top: 18px; font-size: 13px; color: var(--muted); font-weight: 400 !important; }
.p-done-art { display: block; width: 62%; max-width: 260px; margin: 8px 0 0 auto; }
.p-here { bottom: 28px; }
.p-done-art { border-radius: 16px; }
.pending-subs { margin-top: 20px; background: var(--yellow-soft); border-color: #f3dfa6; }
.pending-subs p { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.pending-subs ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.pending-subs li { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; background: var(--surface); border-radius: 10px; padding: 8px 10px; font-size: 14px; }
.lvb-s { font-weight: 900; color: #1f6feb; border: 2px solid #cfe0ff; border-radius: 6px; padding: 0 6px; }

/* 施設ページ：スクロールしても施設名を固定表示 */
.psticky { position: sticky; top: 0; z-index: 900; background: var(--surface); margin-top: 16px; }
.psticky.has-tabs, .psticky.stuck { border-bottom: 1px solid var(--line); }
.psticky.stuck { box-shadow: 0 4px 12px rgba(31, 58, 95, .08); }
.psticky .atabs { position: static; margin-top: 0; border-bottom: 0; }
.pst-name { display: flex; align-items: baseline; gap: 10px; padding: 0 16px; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .2s, opacity .2s, padding .2s; }
.pst-name b { font-size: 17px; color: var(--heading); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pst-name span { font-size: 12px; color: var(--muted); white-space: nowrap; }
.psticky.stuck .pst-name { max-height: 48px; opacity: 1; padding: 10px 16px 4px; }
.psticky.stuck:not(.has-tabs) .pst-name { padding-bottom: 10px; }
@media (min-width: 900px) { .pst-name { padding-left: 24px; padding-right: 24px; } .psticky.stuck .pst-name { padding: 10px 24px 4px; } }
@media (prefers-reduced-motion: reduce) { .pst-name { transition: none; } }

/* ---------- TOPヒーロー（作り直し）：背景を画像の空の色に合わせ、画像の端をぼかしてなじませる ---------- */
.hero { background: linear-gradient(180deg, #f3fcfd 0%, #e2f4fd 55%, #d8effc 100%); padding: 28px 20px 0; min-height: 360px; }
.hero h1, .hero .lead { position: relative; z-index: 1; }
.hero .lead { max-width: 52%; text-shadow: 0 0 6px #f3fcfd, 0 0 12px #f3fcfd; }
.hero-art { top: auto; bottom: 0; right: 0; width: 70%; max-width: 440px; aspect-ratio: 307 / 308;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 30%), linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0, #000 30%), linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%);
  mask-composite: intersect; }
.hero-spacer { height: 150px; }
.cta { margin-top: -36px; }
@media (min-width: 761px) {
  .hero { min-height: 440px; padding: 48px 40px 0; }
  .hero-art { width: 52%; }
  .hero .lead { max-width: 44%; }
  .hero-spacer { height: 190px; }
}
.suggest .sg-new { display: block; color: var(--coral); font-weight: 700; font-size: 15px; line-height: 1.5; padding-top: 10px; padding-bottom: 10px; }
.suggest .sg-new small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.hero { background: linear-gradient(180deg, #f3fcfd 0%, #e2f4fd 50%, #d8effc 78%, #ffffff 100%); }
