/* SpotPin
 * 構成: スマホは地図を全画面にして、検索・チップ・操作ボタンを地図の上に浮かせる。
 *       PC（1024px 以上）は「一覧｜地図｜詳細」の3列。
 */
:root {
  --ground: #f4f5f7;
  --surface: #ffffff;
  --ink: #15171c;
  --text: #3a3f49;
  --muted: #4e5562;
  --faint: #8a919c;
  --line: #e3e6ea;
  --accent: #c9441c;
  --accent-dark: #a5360f;
  --accent-soft: #fbede8;
  --blue: #1f6feb;
  --danger: #b42318;
  --shadow: 0 6px 20px rgba(21, 23, 28, 0.14);
  --shadow-sm: 0 2px 8px rgba(21, 23, 28, 0.1);
  --radius: 16px;
  --font: 'Zen Kaku Gothic New', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', sans-serif;
  --num: 'Outfit', 'Zen Kaku Gothic New', sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --nav-h: 76px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--ground);
  -webkit-tap-highlight-color: transparent;
  line-height: 1.6;
}
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
button { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.muted { color: var(--muted); }
.mono { font-family: var(--num); font-variant-numeric: tabular-nums; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.center { text-align: center; }
.fineprint { font-size: 12px; color: var(--muted); margin: 0; }

/* ---------------- ブランド・ボタン ---------------- */
.brand { display: inline-flex; align-items: center; gap: 8px; font-family: var(--num); font-weight: 700; font-size: 20px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 24px; height: 24px; stroke: none; }
.brand-mark path { fill: var(--accent); }
.brand-mark circle { fill: #fff; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 18px; border-radius: 14px; border: none;
  font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn:disabled { opacity: 0.6; cursor: default; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-soft { background: var(--ground); color: var(--ink); }
.btn-soft:hover { background: #e9ebef; }
.btn-danger-ghost { background: transparent; color: var(--danger); border: 1px solid #f0c9c4; }
.btn-block { width: 100%; }
.btn-grow { flex: 1; }
.btn-sm { min-height: 40px; padding: 0 16px; border-radius: 999px; font-size: 14px; }
.btn-icon { padding: 0; width: 52px; }
.link-btn { background: none; border: none; padding: 0 8px; min-height: 44px; font-size: 14px; font-weight: 700; color: var(--ink); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.link-btn.accent { color: var(--accent); }
.round-btn { width: 44px; height: 44px; border-radius: 50%; border: none; background: var(--surface); box-shadow: var(--shadow-sm); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.round-btn svg { width: 20px; height: 20px; }
.notice { margin: 0; font-size: 13px; line-height: 1.7; padding: 10px 12px; border-radius: 10px; background: #e8eef8; color: #234c8c; }
.notice-error { background: #fdecea; color: var(--danger); }

/* ---------------- トップページ ---------------- */
.landing { min-height: 100%; display: flex; flex-direction: column; }
.landing-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; max-width: 1080px; width: 100%; margin: 0 auto; }
.landing-inner { max-width: 1080px; width: 100%; margin: 0 auto; padding: 8px 20px 0; display: flex; flex-direction: column; gap: 48px; }
.hero { display: grid; gap: 28px; align-items: center; }
.hero-text { display: flex; flex-direction: column; gap: 16px; }
.eyebrow { margin: 0; font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: 0.06em; }
.hero h1 { margin: 0; font-size: clamp(32px, 5vw, 48px); line-height: 1.3; letter-spacing: -0.01em; text-wrap: balance; }
.lead { margin: 0; font-size: 16px; line-height: 1.85; color: var(--text); max-width: 34em; }
.g-mark { width: 20px; height: 20px; stroke: none; }
.g-mark circle { fill: #fff; }
.g-mark text { fill: var(--ink); font-family: var(--num); font-size: 13px; font-weight: 700; }
.hero-visual { display: flex; justify-content: center; }
.mock-map { position: relative; width: 100%; max-width: 440px; height: 320px; border-radius: 22px; overflow: hidden; background: #eef0ea; border: 1px solid var(--line); }
.mock-road { position: absolute; background: #fff; box-shadow: 0 0 0 2px #dadde0; }
.mock-road.r1 { left: -10%; right: -10%; top: 46%; height: 10px; transform: rotate(-4deg); }
.mock-road.r2 { top: -10%; bottom: 20%; left: 52%; width: 10px; transform: rotate(6deg); }
.mock-road.r3 { top: -10%; bottom: 30%; left: 18%; width: 9px; transform: rotate(4deg); }
.mock-park { position: absolute; left: 8%; top: 12%; width: 30%; height: 24%; border-radius: 12px; background: #dcebd5; }
.mock-sea { position: absolute; left: -10%; right: -10%; bottom: -30%; height: 50%; background: #cfe3ee; border-radius: 40%; }
.mock-pin { position: absolute; width: 50px; height: 50px; border-radius: 50%; background: #fff; padding: 3px; box-shadow: var(--shadow); }
.mock-pin span { display: block; width: 100%; height: 100%; border-radius: 50%; background: #8fa8b8; }
.mock-pin.is-accent { background: var(--accent); }
.mock-pin.is-accent span { background: #b69a7c; }
.mock-pin.p1 { left: 14%; top: 22%; }
.mock-pin.p2 { left: 56%; top: 10%; }
.mock-pin.p3 { left: 72%; top: 40%; }
.mock-pin.p3 span { background: #7d9b76; }
.mock-card { position: absolute; left: 14px; right: 14px; bottom: 14px; background: #fff; border-radius: 16px; padding: 10px; display: flex; gap: 12px; align-items: center; box-shadow: var(--shadow); }
.mock-thumb { width: 56px; height: 56px; border-radius: 10px; background: #b69a7c; flex-shrink: 0; }
.mock-card-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mock-card-text strong { font-size: 15px; }
.mock-card-text small { font-size: 12px; color: var(--muted); }
.mock-card-text em { font-style: normal; font-family: var(--num); font-weight: 700; font-size: 12px; color: var(--accent); }

.features h2, .pricing h2 { margin: 0 0 14px; font-size: 22px; }
.feature-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.feature { background: var(--surface); border-radius: var(--radius); padding: 18px; display: flex; gap: 14px; align-items: flex-start; }
.feature > svg { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--ground); flex-shrink: 0; }
.feature h3 { margin: 0 0 4px; font-size: 16px; }
.feature p { margin: 0; font-size: 14px; line-height: 1.75; color: var(--text); }
.privacy-band { background: var(--ink); color: #fff; border-radius: 20px; padding: 22px 22px; display: flex; flex-direction: column; gap: 8px; }
.privacy-band h2 { margin: 0; font-size: 17px; display: flex; gap: 8px; align-items: center; }
.privacy-band h2 svg { width: 20px; height: 20px; }
.privacy-band p { margin: 0; font-size: 14px; line-height: 1.85; color: #c9cdd4; max-width: 60em; }
.pricing { display: flex; flex-direction: column; gap: 10px; }
.pricing-lead { margin: -6px 0 4px; font-size: 14px; color: var(--text); }
.plan-table-wrap { background: var(--surface); border-radius: var(--radius); overflow-x: auto; }
.plan-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.plan-table th, .plan-table td { padding: 10px 6px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.plan-table tbody th[scope="row"] { text-align: left; font-weight: 500; color: var(--text); padding-left: 12px; line-height: 1.5; }
.plan-table thead th { padding: 14px 2px 10px; vertical-align: bottom; width: 70px; }
.plan-table thead th:first-child { width: auto; }
.plan-name { display: block; font-family: var(--num); font-weight: 700; font-size: 12px; }
.plan-price { display: block; font-family: var(--num); font-weight: 700; font-size: 17px; line-height: 1.3; white-space: nowrap; }
.plan-price small { font-size: 10px; font-weight: 600; color: var(--muted); }
.plan-status { display: inline-block; margin-top: 6px; font-size: 10px; font-weight: 700; padding: 2px 6px; white-space: nowrap; border-radius: 999px; background: var(--ground); color: var(--muted); }
.plan-status.is-live { background: var(--accent-soft); color: var(--accent-dark); }
.plan-table .is-featured { background: #fbfaf8; }
.plan-table thead .is-featured { box-shadow: inset 0 3px 0 var(--accent); }
.plan-table .yes { color: var(--accent); font-weight: 700; }
.plan-table .no { color: var(--faint); }
.plan-group th { text-align: left; font-size: 12px; font-weight: 700; color: var(--muted); background: var(--ground); padding: 7px 14px; }
.plan-table tbody tr:last-child > * { border-bottom: none; }
.pricing .fineprint a { color: var(--accent); }
.pricing-more { margin: 0; font-size: 14px; }
.pricing-more a { color: var(--accent); font-weight: 700; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (min-width: 640px) {
  .plan-table { font-size: 14px; }
  .plan-table thead th { width: 17%; padding: 16px 6px 12px; }
  .plan-name { font-size: 14px; }
  .plan-price { font-size: 24px; }
  .plan-price small { font-size: 11px; }
  .plan-status { font-size: 11px; padding: 2px 8px; }
}
/* 料金ページ */
.pricing-hero { display: flex; flex-direction: column; gap: 14px; padding-top: 16px; }
.pricing-hero h1 { margin: 0; font-size: clamp(28px, 4.5vw, 40px); line-height: 1.35; }
.upgrade-features h2, .faq h2 { margin: 0 0 14px; font-size: 22px; }
.uf-group { margin-bottom: 24px; }
.uf-group h3 { margin: 0 0 10px; font-size: 16px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.uf-group h3 span { font-size: 13px; font-weight: 500; color: var(--muted); }
.uf-cards { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.uf-card { background: var(--surface); border-radius: var(--radius); padding: 16px 18px; }
.uf-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 6px; }
.uf-top h4 { margin: 0; font-size: 15px; line-height: 1.5; }
.uf-card p { margin: 0; font-size: 14px; line-height: 1.8; color: var(--text); }
.uf-chip { flex-shrink: 0; font-family: var(--num); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-dark); }
.uf-chip.is-prof { background: var(--ink); color: #fff; }
.faq { display: flex; flex-direction: column; gap: 8px; }
.faq details { background: var(--surface); border-radius: 14px; padding: 0 18px; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 700; font-size: 15px; }
.faq details p { margin: 0 0 14px; font-size: 14px; line-height: 1.8; color: var(--text); }
.site-footer { margin-top: 56px; padding: 28px 20px calc(28px + var(--safe-b)); display: flex; flex-direction: column; gap: 10px; align-items: center; font-size: 13px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; }
.site-footer p { margin: 0; font-size: 12px; color: var(--muted); }

@media (min-width: 900px) {
  .hero { grid-template-columns: 1fr 1fr; gap: 48px; padding-top: 24px; }
  .hero-text .btn-block { width: auto; align-self: flex-start; padding: 0 28px; }
}

/* ---------------- 1枚だけの案内ページ ---------------- */
.center-page { min-height: 100%; display: grid; place-items: center; padding: 24px 16px; }
.center-card { max-width: 440px; background: var(--surface); border-radius: 20px; padding: 28px 24px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow); }
.center-card h1 { margin: 0; font-size: 20px; line-height: 1.5; }
.center-card p { margin: 0; font-size: 14px; line-height: 1.85; color: var(--text); }

/* ---------------- アプリ（スマホ） ---------------- */
.app { position: fixed; inset: 0; overflow: hidden; }
.topbar {
  position: absolute; left: 0; right: 0; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 10px; padding: calc(12px + var(--safe-t)) 16px 0;
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.search { flex: 1; display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 16px; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-sm); min-width: 0; }
.search svg { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }
.search input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; font: inherit; font-size: 16px; color: var(--ink); }
.avatar-btn { width: 50px; height: 50px; border-radius: 50%; border: none; padding: 3px; background: var(--surface); box-shadow: var(--shadow-sm); cursor: pointer; display: grid; place-items: center; flex-shrink: 0; }
.avatar-btn img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.avatar-btn svg { width: 24px; height: 24px; color: var(--muted); }
.chips { position: absolute; left: 0; right: 0; top: calc(70px + var(--safe-t)); z-index: 30; display: flex; gap: 8px; padding: 0 16px; overflow-x: auto; scrollbar-width: none; pointer-events: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { pointer-events: auto; height: 36px; padding: 0 14px; border-radius: 999px; border: none; background: var(--surface); box-shadow: var(--shadow-sm); font-size: 13px; cursor: pointer; white-space: nowrap; flex-shrink: 0; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; font-weight: 700; }

.app-body { position: absolute; inset: 0; }
.map-area { position: absolute; inset: 0; }
.map { position: absolute; inset: 0; background: #eef0ea; }
.map-controls { position: absolute; right: 16px; bottom: calc(var(--nav-h) + var(--safe-b) + 112px); z-index: 20; display: flex; flex-direction: column; gap: 10px; }
.map-btn { width: 48px; height: 48px; border-radius: 14px; border: none; background: var(--surface); box-shadow: var(--shadow-sm); display: grid; place-items: center; cursor: pointer; }
.map-btn svg { width: 20px; height: 20px; }
.map-btn[aria-pressed="true"] { background: var(--ink); color: #fff; }
.locate-icon { color: var(--blue); }

.nearest-card {
  position: absolute; left: 16px; right: 16px; bottom: calc(var(--nav-h) + var(--safe-b) + 16px); z-index: 20;
  display: flex; gap: 12px; align-items: center; text-align: left;
  background: var(--surface); border: none; border-radius: 18px; padding: 10px 14px 10px 10px; box-shadow: var(--shadow); cursor: pointer;
}
.spot-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.spot-text strong { font-size: 15px; }
.spot-text .muted { font-size: 12px; }
.label { font-size: 11px; font-weight: 700; color: var(--muted); margin: 0; }
.dist { font-family: var(--num); font-weight: 700; font-size: 14px; color: var(--accent); white-space: nowrap; }
.thumb { width: 56px; height: 56px; border-radius: 12px; background: var(--ground) center / cover no-repeat; flex-shrink: 0; display: grid; place-items: center; }
.thumb.lg { width: 64px; height: 64px; }
.thumb svg { width: 22px; height: 22px; color: var(--faint); }

.bottom-nav {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 35;
  height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: var(--surface); border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center;
}
.nav-item { border: none; background: none; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: var(--muted); cursor: pointer; min-height: 48px; justify-content: center; }
.nav-item svg { width: 22px; height: 22px; }
.nav-item[aria-current="page"] { color: var(--ink); font-weight: 700; }
.nav-add { justify-self: center; margin-top: -28px; display: inline-flex; align-items: center; gap: 6px; height: 54px; padding: 0 22px; border-radius: 999px; border: none; background: var(--accent); color: #fff; font-size: 15px; font-weight: 700; box-shadow: 0 8px 18px rgba(201, 68, 28, 0.35); cursor: pointer; }
.nav-add svg { width: 20px; height: 20px; stroke-width: 2.6; }

/* 一覧（スマホでは全画面に切り替え） */
.list-panel { display: none; }
body[data-view="list"] .list-panel {
  display: flex; position: absolute; inset: 0; z-index: 25;
  padding: calc(126px + var(--safe-t)) 16px calc(var(--nav-h) + var(--safe-b) + 16px);
  background: var(--ground); overflow-y: auto;
}
body[data-view="list"] .nearest-card, body[data-view="list"] .map-controls { display: none; }
.list-panel { flex-direction: column; gap: 12px; }
.list-head { display: flex; justify-content: space-between; align-items: baseline; }
.list-head h1 { margin: 0; font-size: 22px; }
.count { font-family: var(--num); font-weight: 600; color: var(--muted); }
.count.is-full { color: var(--danger); }
.tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.tab { border: none; background: none; height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; font-size: 14px; color: var(--muted); cursor: pointer; }
.tab[aria-selected="true"] { color: var(--ink); font-weight: 700; box-shadow: inset 0 -3px 0 var(--accent); }
.lock { width: 12px; height: 12px; }
.segmented { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); background: #e7e9ec; border-radius: 10px; padding: 3px; }
.segmented button { height: 36px; border: none; border-radius: 8px; background: transparent; font-size: 13px; color: var(--muted); cursor: pointer; }
.segmented button[aria-pressed="true"] { background: var(--surface); color: var(--ink); font-weight: 700; box-shadow: 0 1px 3px rgba(21, 23, 28, 0.12); }
.spot-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.spot-row { width: 100%; display: flex; gap: 12px; align-items: center; text-align: left; background: var(--surface); border: none; border-radius: 16px; padding: 10px; cursor: pointer; }
.spot-row.is-selected { box-shadow: inset 0 0 0 2px var(--accent); background: var(--accent-soft); }
.spot-row .dist { font-size: 12px; }
.chev { width: 18px; height: 18px; color: var(--faint); flex-shrink: 0; }
.empty { text-align: center; padding: 32px 12px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.plan-box { margin-top: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; }
.plan-box-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.plan-box-text { display: flex; flex-direction: column; line-height: 1.4; }
.plan-box-text small { font-size: 11px; color: var(--muted); }
.plan-box-text strong { font-size: 16px; }
.btn-upgrade { min-height: 36px; padding: 0 14px; font-size: 13px; background: var(--accent); color: #fff; }
.btn-upgrade:disabled { opacity: 1; background: #e3e6ea; color: var(--faint); cursor: not-allowed; }
.plan-meter { height: 6px; border-radius: 999px; background: var(--ground); overflow: hidden; }
.plan-meter span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: inherit; transition: width 0.3s; }
.plan-meter span.is-full { background: var(--danger); }
.plan-note { margin: 0; font-size: 12px; color: var(--muted); }
.plan-box-foot { margin: 0; display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.plan-box-foot a { color: var(--accent); font-weight: 700; text-decoration: none; }
.plan-box-foot a:hover { text-decoration: underline; }
.text-link { color: var(--accent); font-weight: 700; }

/* 詳細（スマホは下から出るパネル） */
.detail {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 40;
  max-height: 78%; display: flex; flex-direction: column;
  background: var(--surface); border-radius: 24px 24px 0 0; box-shadow: 0 -8px 24px rgba(21, 23, 28, 0.12);
  padding-bottom: var(--safe-b);
}
.detail-grip { width: 40px; height: 5px; border-radius: 3px; background: #d5d9df; margin: 10px auto 0; flex-shrink: 0; }
.detail-close { position: absolute; right: 12px; top: 12px; z-index: 2; }
.detail-scroll { overflow-y: auto; }
.detail-photos { display: flex; gap: 8px; padding: 14px 16px 0; overflow-x: auto; scroll-snap-type: x mandatory; }
.detail-photo { position: relative; width: min(78%, 300px); aspect-ratio: 4 / 3; flex-shrink: 0; border: none; border-radius: 16px; background: var(--ground) center / cover no-repeat; cursor: zoom-in; scroll-snap-align: start; }
.detail-photo.is-broken { cursor: default; }
.photo-count { position: absolute; left: 10px; bottom: 10px; font-size: 11px; color: #fff; background: rgba(21, 23, 28, 0.55); padding: 2px 8px; border-radius: 999px; }
.detail-main { padding: 16px 20px 0; display: flex; flex-direction: column; gap: 8px; }
.detail-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-right: 44px; }
.detail-title h2 { margin: 0; font-size: 21px; line-height: 1.4; }
.detail-note { margin: 0; font-size: 14px; line-height: 1.85; color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; }
.detail-meta { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--muted); }
.detail-actions { display: flex; gap: 10px; padding: 16px; margin-top: 8px; border-top: 1px solid #eef0f2; flex-shrink: 0; }
body.has-detail .nearest-card, body.has-detail .map-controls { display: none; }

/* 位置を決めるモード */
.pick { position: absolute; inset: 0; z-index: 45; pointer-events: none; }
.pick > * { pointer-events: auto; }
.pick-top { position: absolute; left: 16px; right: 16px; top: calc(12px + var(--safe-t)); display: flex; gap: 10px; align-items: center; }
.pick-hint { margin: 0; flex: 1; background: var(--ink); color: #fff; border-radius: 14px; padding: 12px 16px; font-size: 14px; font-weight: 700; line-height: 1.5; }
.pick-center { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none !important; }
.pick-cross::before, .pick-cross::after { content: ''; position: absolute; background: rgba(21, 23, 28, 0.35); }
.pick-cross::before { left: -60px; top: 0; width: 120px; height: 1px; }
.pick-cross::after { left: 0; top: -60px; width: 1px; height: 120px; }
.pick-pin { position: absolute; left: -24px; top: -62px; width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 16px rgba(21, 23, 28, 0.28); }
.pick-pin::after { content: ''; position: absolute; left: 22px; top: 48px; width: 3px; height: 14px; background: var(--accent); }
.pick-pin svg { width: 22px; height: 22px; stroke-width: 2.6; }
.pick-sheet { position: absolute; left: 0; right: 0; bottom: 0; background: var(--surface); border-radius: 24px 24px 0 0; padding: 18px 16px calc(20px + var(--safe-b)); display: flex; flex-direction: column; gap: 12px; box-shadow: 0 -8px 24px rgba(21, 23, 28, 0.1); }
.pick-sheet > div:first-child { display: flex; flex-direction: column; gap: 2px; }
.sheet-label { font-size: 12px; font-weight: 700; color: var(--muted); }
.pick-sheet .mono { font-size: 17px; font-weight: 600; }
.pick-actions { display: flex; gap: 10px; }
body.is-picking .topbar, body.is-picking .chips, body.is-picking .bottom-nav, body.is-picking .nearest-card, body.is-picking .map-controls, body.is-picking .detail { display: none !important; }

/* ---------------- 地図のピン ---------------- */
.sp-leaflet-icon { background: none; border: none; }
.sp-pin { display: flex; flex-direction: column; align-items: center; cursor: pointer; transform-origin: 50% 100%; transition: transform 0.15s; }
.sp-pin-head { width: 52px; height: 52px; border-radius: 50%; background: #fff; padding: 3px; box-shadow: 0 6px 14px rgba(21, 23, 28, 0.25); }
.sp-pin-photo { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: var(--accent-soft) center / cover no-repeat; }
.sp-pin-photo.has-photo .sp-pin-icon { display: none; }
.sp-pin-icon { width: 22px; height: 22px; stroke: none; }
.sp-pin-icon path { fill: var(--accent); }
.sp-pin-icon circle { fill: #fff; }
.sp-pin-tail { width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-top: 10px solid #fff; margin-top: -1px; }
.sp-pin.is-selected { transform: scale(1.15); z-index: 10; }
.sp-pin.is-selected .sp-pin-head { background: var(--accent); }
.sp-pin.is-selected .sp-pin-tail { border-top-color: var(--accent); }
.sp-pin.is-dim { opacity: 0.35; }
.sp-me { width: 20px; height: 20px; border-radius: 50%; background: var(--blue); border: 3px solid #fff; box-shadow: 0 0 0 9px rgba(31, 111, 235, 0.18); }

/* ---------------- ダイアログ ---------------- */
dialog { color: var(--ink); }
.sheet-dialog { border: none; padding: 0; margin: auto 0 0; width: 100%; max-width: 100%; max-height: 92dvh; border-radius: 22px 22px 0 0; background: var(--surface); box-shadow: var(--shadow); }
.sheet-dialog::backdrop { background: rgba(21, 23, 28, 0.45); }
.form { display: flex; flex-direction: column; max-height: 92dvh; }
.dialog-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 8px 8px; border-bottom: 1px solid #eef0f2; flex-shrink: 0; }
.dialog-head > :first-child { justify-self: start; }
.dialog-head > :last-child { justify-self: end; }
.dialog-head h2 { margin: 0; font-size: 16px; }
.form-body { overflow-y: auto; padding: 18px 16px calc(24px + var(--safe-b)); display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 10px; }
.group-head { display: flex; justify-content: space-between; align-items: center; }
.group-head h3 { margin: 0; font-size: 14px; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 700; }
.field input, .field textarea { font: inherit; font-weight: 400; font-size: 16px; color: var(--ink); border: 1px solid #d5d9df; border-radius: 12px; padding: 12px 14px; background: #fff; width: 100%; }
.field textarea { resize: vertical; line-height: 1.7; }
.req { color: var(--accent); }
.photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.photo-tile { position: relative; aspect-ratio: 4 / 3; border-radius: 14px; background: var(--ground) center / cover no-repeat; }
.photo-tile.is-broken::after { content: '読み込めません'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; color: var(--muted); }
.photo-remove { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 50%; border: none; background: rgba(21, 23, 28, 0.6); color: #fff; display: grid; place-items: center; cursor: pointer; }
.photo-remove svg { width: 14px; height: 14px; stroke-width: 2.6; }
.photo-add { aspect-ratio: 4 / 3; border-radius: 14px; border: 2px dashed #cdd2d9; background: #f8f9fa; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font-size: 13px; color: var(--muted); cursor: pointer; }
.photo-add svg { width: 26px; height: 26px; }
.pro-box { background: var(--ground); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.pro-title { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.pro-badge { font-family: var(--num); font-size: 10px; font-weight: 700; color: #fff; background: var(--ink); padding: 2px 7px; border-radius: 5px; letter-spacing: 0.04em; vertical-align: 2px; }
.pro-row { display: flex; justify-content: space-between; align-items: center; min-height: 44px; padding: 0 14px; background: #fff; border-radius: 10px; font-size: 14px; color: var(--muted); }
.pro-row .lock { width: 16px; height: 16px; }

.account { display: flex; gap: 12px; align-items: center; }
.account img { width: 48px; height: 48px; border-radius: 50%; }
.account div { display: flex; flex-direction: column; min-width: 0; }
.account .muted { font-size: 13px; overflow-wrap: anywhere; }
.field-set { border: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.field-set legend, .legend { font-size: 15px; font-weight: 700; padding: 0; margin: 0 0 4px; }
.option { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 14px; border: 1px solid var(--line); cursor: pointer; }
.option:has(input:checked) { border: 2px solid var(--ink); }
.option.is-disabled { cursor: default; opacity: 0.7; }
.option input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); }
.option > span { display: flex; flex-direction: column; gap: 2px; }
.option small, .row-field small { font-size: 12px; color: var(--muted); font-weight: 400; }
.row-field { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; background: var(--ground); border-radius: 12px; }
.row-field span { display: flex; flex-direction: column; font-size: 14px; }
.row-field select { font: inherit; font-size: 14px; height: 40px; border-radius: 10px; border: 1px solid #d5d9df; background: #fff; color: var(--ink); padding: 0 8px; max-width: 55%; }
.row-field input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--ink); }
.link-list { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; }

.viewer { border: none; padding: 0; background: transparent; max-width: 96vw; max-height: 94dvh; }
.viewer::backdrop { background: rgba(10, 11, 14, 0.9); }
.viewer img { display: block; max-width: 96vw; max-height: 74dvh; object-fit: contain; margin: 0 auto; border-radius: 8px; }
.viewer-close { position: fixed; top: calc(12px + var(--safe-t)); right: 12px; width: 44px; height: 44px; border-radius: 50%; border: none; background: rgba(255, 255, 255, 0.92); display: grid; place-items: center; cursor: pointer; }
.viewer-close svg { width: 20px; height: 20px; }
.exif { margin: 12px auto 0; max-width: 520px; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; color: #fff; }
.exif div { background: rgba(255, 255, 255, 0.1); border-radius: 10px; padding: 8px 12px; }
.exif dt { font-size: 11px; color: #c9cdd4; }
.exif dd { margin: 0; font-size: 14px; font-family: var(--num); overflow-wrap: anywhere; }

/* ---------------- 共有画面 ---------------- */
.share-view { min-height: 100%; display: flex; flex-direction: column; }
.share-head { display: flex; justify-content: space-between; align-items: center; padding: calc(12px + var(--safe-t)) 16px 12px; background: var(--surface); border-bottom: 1px solid var(--line); }
.share-map { position: relative; inset: auto; height: 50dvh; min-height: 280px; }
.share-card { max-width: 640px; width: 100%; margin: 0 auto; padding: 20px 16px calc(28px + var(--safe-b)); display: flex; flex-direction: column; gap: 10px; }
.share-card h1 { margin: 0; font-size: 22px; line-height: 1.4; }
.share-card p { margin: 0; }
.share-card .detail-actions { padding: 8px 0 0; border: none; margin: 0; }

/* ---------------- トースト ---------------- */
.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + var(--safe-b) + 24px); transform: translate(-50%, 16px); z-index: 100; max-width: min(92vw, 480px); background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 14px; font-size: 14px; line-height: 1.6; text-align: center; opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: var(--danger); }

/* ---------------- 規約などの文書ページ ---------------- */
.doc { max-width: 760px; margin: 0 auto; padding: 24px 20px 56px; background: #fff; min-height: 100%; line-height: 1.9; font-size: 15px; }
.doc h1 { font-size: 24px; margin: 8px 0 4px; line-height: 1.4; }
.doc h2 { font-size: 17px; margin: 32px 0 8px; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.doc .updated { color: var(--muted); font-size: 13px; margin: 0 0 16px; }
.doc .back { font-size: 14px; }
.doc a { color: var(--accent); }
.doc ul, .doc ol { padding-left: 1.4em; }
.spec-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 14px; line-height: 1.8; }
.spec-table th, .spec-table td { border-top: 1px solid var(--line); padding: 12px 8px; text-align: left; vertical-align: top; }
.spec-table tr:last-child > * { border-bottom: 1px solid var(--line); }
.spec-table th { width: 32%; font-weight: 700; background: var(--ground); }
.spec-table small { color: var(--muted); }
@media (max-width: 560px) {
  .spec-table th, .spec-table td { display: block; width: auto; }
  .spec-table td { border-top: none; padding-top: 6px; }
}
.contact-form { display: flex; flex-direction: column; gap: 16px; margin-top: 20px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; }
.contact-form input, .contact-form select, .contact-form textarea { font: inherit; font-weight: 400; font-size: 16px; color: var(--ink); padding: 11px 13px; border: 1px solid #d5d9df; border-radius: 10px; width: 100%; background: #fff; }
.contact-form textarea { resize: vertical; }
.contact-form button { align-self: center; }
.honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------------- PC（3列） ---------------- */
.desktop-only { display: none !important; }
@media (min-width: 1024px) {
  .desktop-only { display: inline-flex !important; }
  .app { display: grid; grid-template-rows: auto auto 1fr; }
  .topbar { position: static; background: var(--surface); border-bottom: 1px solid var(--line); padding: 12px 20px; gap: 16px; }
  .search { max-width: 520px; background: var(--ground); box-shadow: none; height: 44px; }
  .topbar .btn { min-height: 44px; margin-left: auto; }
  .avatar-btn { width: 44px; height: 44px; box-shadow: none; border: 1px solid var(--line); }
  .chips { position: static; padding: 10px 20px; background: var(--surface); border-bottom: 1px solid var(--line); }
  .chip { box-shadow: none; border: 1px solid var(--line); }
  .chip[aria-pressed="true"] { border-color: var(--ink); }
  .app-body { position: relative; display: grid; grid-template-columns: 380px 1fr; min-height: 0; }
  .list-panel, body[data-view="list"] .list-panel { display: flex; position: static; padding: 16px; background: var(--surface); border-right: 1px solid var(--line); overflow-y: auto; }
  .map-area { position: relative; }
  .map-controls { bottom: 24px; right: 20px; }
  .bottom-nav, .nearest-card { display: none !important; }
  .detail { left: auto; right: 20px; top: 20px; bottom: 20px; width: 380px; max-height: none; border-radius: 20px; box-shadow: var(--shadow); }
  .detail-grip { display: none; }
  .detail-photos { padding-top: 16px; }
  body.has-detail .map-controls { display: flex; right: 420px; }
  .pick-top { left: 20px; right: auto; max-width: 520px; top: 20px; }
  .pick-sheet { left: 50%; right: auto; bottom: 24px; width: 440px; transform: translateX(-50%); border-radius: 20px; }
  .sheet-dialog { margin: auto; max-width: 520px; border-radius: 20px; }
  .toast { bottom: 32px; }
}
