/* ============================================================
   タダスポ — 無料スポットマップ
   iOS風 / 白基調 / アクセント #22C55E
============================================================ */
:root {
  --green: #22C55E;
  --green-dark: #16A34A;
  --green-bg: #F0FDF4;
  --yellow: #FACC15;
  --yellow-dark: #CA8A04;
  --yellow-bg: #FEFCE8;
  --ink: #111827;
  --ink-2: #4B5563;
  --ink-3: #9CA3AF;
  --line: #E5E7EB;
  --bg: #F7F8FA;
  --card: #FFFFFF;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(17,24,39,.04), 0 6px 20px rgba(17,24,39,.06);
  --shadow-lg: 0 -8px 40px rgba(17,24,39,.14);
  --tab-h: 62px;
  --font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Segoe UI", "Noto Sans JP", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.6;
  overscroll-behavior-y: none;
}
button { font-family: inherit; border: none; background: none; cursor: pointer; color: inherit; }
input, select, textarea { font-family: inherit; font-size: 15px; color: var(--ink); }
img { max-width: 100%; display: block; }
.hidden { display: none !important; }
svg { display: block; }

/* ============ ビュー切替 ============ */
.view {
  display: none;
  position: fixed;
  inset: 0 0 var(--tab-h) 0;
  flex-direction: column;
  background: var(--bg);
}
.view.active { display: flex; }

@media (min-width: 768px) {
  .view { max-width: 480px; left: 50%; transform: translateX(-50%); box-shadow: 0 0 60px rgba(17,24,39,.08); }
  body { background: #EEF0F3; }
}

/* ============ ホーム ============ */
.home-header {
  padding: calc(env(safe-area-inset-top, 0px) + 14px) 16px 12px;
  background: var(--card);
  z-index: 20;
}
.logo { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.logo-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--green); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  align-self: center;
}
.logo-mark svg { width: 17px; height: 17px; }
.logo-text { font-size: 21px; font-weight: 800; letter-spacing: .02em; }
.logo-sub { font-size: 11px; color: var(--ink-3); font-weight: 600; }

.search-bar {
  width: 100%; display: flex; align-items: center; gap: 9px;
  background: var(--bg); border-radius: 12px;
  padding: 11px 14px; text-align: left;
  transition: transform .15s ease;
}
.search-bar:active { transform: scale(.98); }
.search-bar svg { width: 17px; height: 17px; color: var(--ink-3); flex: none; }
.search-placeholder { color: var(--ink-3); font-size: 14px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

.map-wrap { flex: 1; position: relative; min-height: 0; }
#map { position: absolute; inset: 0; background: #E8ECEF; }

.map-legend {
  position: absolute; top: 12px; left: 12px; z-index: 500;
  display: flex; gap: 12px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border-radius: 999px; padding: 6px 14px;
  font-size: 11.5px; font-weight: 700; color: var(--ink-2);
  box-shadow: var(--shadow);
}
.map-legend span { display: flex; align-items: center; gap: 5px; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.dot-free { background: var(--green); }
.dot-cond { background: var(--yellow); }

.locate-btn {
  position: absolute; right: 12px; bottom: 16px; z-index: 500;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--card); color: var(--ink-2);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow); transition: transform .15s ease;
}
.locate-btn:active { transform: scale(.92); }
.locate-btn svg { width: 20px; height: 20px; }
.locate-btn.loading { color: var(--green); }
.locate-btn.loading svg { animation: locateSpin 1s linear infinite; }
@keyframes locateSpin { to { transform: rotate(360deg); } }

/* 現在地ドット */
.user-loc { position: relative; width: 18px; height: 18px; }
.user-loc-dot,
.user-loc-pulse {
  position: absolute; top: 50%; left: 50%; width: 16px; height: 16px;
  margin: -8px 0 0 -8px; border-radius: 50%;
}
.user-loc-dot {
  background: #2563EB; border: 3px solid #fff;
  box-shadow: 0 0 0 1px rgba(37,99,235,.35), 0 2px 6px rgba(0,0,0,.3);
}
.user-loc-pulse {
  background: rgba(37,99,235,.35);
  animation: userLocPulse 2s ease-out infinite;
}
@keyframes userLocPulse {
  0%   { transform: scale(1);   opacity: .7; }
  100% { transform: scale(3.4); opacity: 0; }
}

/* カスタムピン */
.pin {
  position: relative;
  width: 30px; height: 30px; box-sizing: content-box;
  display: flex; align-items: center; justify-content: center;
}
.pin-body {
  width: 30px; height: 30px; border-radius: 50% 50% 50% 4px;
  transform: rotate(-45deg);
  display: flex; align-items: center; justify-content: center;
  border: 2.5px solid #fff;
  box-shadow: 0 3px 10px rgba(17,24,39,.3);
  transition: transform .15s ease;
}
.pin-inner { display: flex; transform: rotate(45deg); color: #fff; }
.pin-inner svg { width: 14px; height: 14px; }
.pin-free .pin-body { background: var(--green); }
.pin-cond .pin-body { background: var(--yellow); }
.pin { cursor: pointer; }
.pin:hover .pin-body { transform: rotate(-45deg) scale(1.12); }

/* カテゴリー横スクロール */
.category-scroll {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 12px 16px calc(env(safe-area-inset-bottom, 0px) + 12px);
  background: var(--card);
  scrollbar-width: none;
  border-top: 1px solid var(--line);
}
.category-scroll::-webkit-scrollbar { display: none; }

.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px;
  background: var(--bg); border: 1px solid transparent;
  font-size: 13px; font-weight: 700; color: var(--ink-2);
  transition: all .18s ease; white-space: nowrap;
}
.chip:active { transform: scale(.95); }
.chip.on {
  background: var(--green-bg); color: var(--green-dark);
  border-color: rgba(34,197,94,.35);
}
.chip svg { width: 15px; height: 15px; flex: none; }

/* ============ 共通ページ ============ */
.page-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(env(safe-area-inset-top, 0px) + 18px) 20px 12px;
  background: var(--card); border-bottom: 1px solid var(--line);
}
.page-header h1 { font-size: 19px; font-weight: 800; }
.page-body { flex: 1; overflow-y: auto; padding: 16px 16px 32px; -webkit-overflow-scrolling: touch; }

/* ============ 検索 ============ */
.search-input-wrap {
  display: flex; align-items: center; gap: 9px;
  background: var(--card); border-radius: 12px; padding: 0 14px;
  box-shadow: var(--shadow); margin-bottom: 12px;
}
.search-input-wrap svg { width: 17px; height: 17px; color: var(--ink-3); flex: none; }
.search-input-wrap input {
  flex: 1; border: none; outline: none; background: none; padding: 12px 0;
}

.filter-row { display: flex; gap: 8px; margin-bottom: 4px; }
.pill-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--card); border-radius: 999px; padding: 9px 14px;
  font-size: 13px; font-weight: 700; color: var(--ink-2);
  box-shadow: var(--shadow); transition: all .18s ease;
}
.pill-btn svg { width: 15px; height: 15px; }
.pill-btn.on { background: var(--green); color: #fff; }
.pill-btn:active { transform: scale(.96); }

.select-wrap { position: relative; }
.select-wrap::after {
  content: ""; position: absolute; right: 13px; top: 50%;
  width: 7px; height: 7px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
.select-wrap select {
  appearance: none; border: none; outline: none;
  background: var(--card); border-radius: 999px; padding: 9px 32px 9px 14px;
  font-size: 13px; font-weight: 700; color: var(--ink-2);
  box-shadow: var(--shadow);
}
.select-wrap.on select { background: var(--green); color: #fff; }
.select-wrap.on::after { border-color: #fff; }

.filter-label { font-size: 12.5px; font-weight: 800; color: var(--ink-3); margin: 14px 2px 8px; }
.chip-cloud { display: flex; flex-wrap: wrap; gap: 8px; }

/* タグ入力（オートコンプリート） */
.tag-picker { display: flex; flex-direction: column; gap: 8px; }
.tag-selected { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-selected:empty { display: none; }
.tag-chip {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--green-bg); color: var(--green-dark);
  border-radius: 999px; padding: 5px 6px 5px 11px;
  font-size: 12.5px; font-weight: 700;
}
.tag-chip button {
  width: 17px; height: 17px; border-radius: 50%;
  background: rgba(22,163,74,.18); color: var(--green-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; line-height: 1;
}
.tag-input-wrap { position: relative; }
.tag-input {
  width: 100%; background: var(--card); border: 1.5px solid var(--line);
  border-radius: 12px; padding: 11px 14px; outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.tag-input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(34,197,94,.14); }
.tag-suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); overflow: hidden; max-height: 264px; overflow-y: auto;
}
.tag-suggest-item {
  display: flex; align-items: center; gap: 6px; width: 100%; text-align: left;
  padding: 11px 14px; font-size: 14px; font-weight: 600; color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.tag-suggest-item:last-child { border-bottom: none; }
.tag-suggest-item:active { background: var(--bg); }
.tag-suggest-item svg { width: 14px; height: 14px; color: var(--green-dark); flex: none; }
.tag-suggest-item.add { color: var(--green-dark); font-weight: 700; }

.result-head { display: flex; align-items: baseline; justify-content: space-between; margin-top: 8px; }
.text-btn { font-size: 12.5px; font-weight: 700; color: var(--green-dark); padding: 4px; }

/* ============ カード ============ */
.card-list { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }

.spot-card {
  display: flex; gap: 12px; align-items: stretch;
  background: var(--card); border-radius: var(--radius);
  padding: 10px; box-shadow: var(--shadow);
  text-align: left; width: 100%;
  transition: transform .15s ease;
  animation: rise .3s ease both;
}
.spot-card:active { transform: scale(.98); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.card-thumb {
  width: 92px; height: 92px; border-radius: 12px; flex: none;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-thumb svg { width: 32px; height: 32px; }

.card-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.card-badges { display: flex; gap: 6px; margin-bottom: 3px; }
.badge {
  font-size: 10.5px; font-weight: 800; padding: 2.5px 8px; border-radius: 999px;
}
.badge-free { background: var(--green-bg); color: var(--green-dark); }
.badge-cond { background: var(--yellow-bg); color: var(--yellow-dark); }
.badge-cat { background: var(--bg); color: var(--ink-2); display: inline-flex; align-items: center; gap: 3px; }
.badge-cat svg { width: 11px; height: 11px; flex: none; }
.badge-period { background: #EEF2FF; color: #4F46E5; display: inline-flex; align-items: center; gap: 3px; }
.badge-period svg { width: 11px; height: 11px; flex: none; }
.badge-ended { background: #F3F4F6; color: var(--ink-3); display: inline-flex; align-items: center; gap: 3px; }
.badge-ended svg { width: 11px; height: 11px; flex: none; }
.card-name { font-size: 15px; font-weight: 800; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.card-desc { font-size: 12px; color: var(--ink-2); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.card-meta { margin-top: auto; display: flex; align-items: center; gap: 10px; font-size: 11.5px; color: var(--ink-3); font-weight: 600; }
.card-meta .stars { color: #F59E0B; letter-spacing: 1px; font-size: 11px; }
.card-meta svg { width: 12px; height: 12px; display: inline-block; vertical-align: -1.5px; }

.empty-state {
  text-align: center; padding: 48px 24px; color: var(--ink-3);
}
.empty-state svg { width: 42px; height: 42px; display: block; margin: 0 auto 14px; }
.empty-state p { font-size: 14px; font-weight: 600; }
.empty-state small { font-size: 12px; }

/* ============ 投稿フォーム ============ */
.field-label { display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 800; margin: 18px 2px 8px; }
.field-label .req { font-size: 10px; font-weight: 800; color: #fff; background: var(--green); border-radius: 5px; padding: 1.5px 6px; }
.field-label .opt { font-size: 10.5px; font-weight: 700; color: var(--ink-3); }
.field-hint { font-size: 12px; color: var(--ink-3); margin: -4px 2px 8px; }

.field {
  width: 100%; background: var(--card); border: 1.5px solid var(--line);
  border-radius: 12px; padding: 12px 14px; outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(34,197,94,.14); }
.field.invalid { border-color: #EF4444; }
textarea.field { resize: vertical; min-height: 80px; }

.photo-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.photo-add {
  width: 84px; height: 84px; border-radius: 12px;
  border: 1.8px dashed #CBD5E1; color: var(--ink-3);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: 11px; font-weight: 700; cursor: pointer;
  background: var(--card); transition: all .18s ease;
}
.photo-add:active { transform: scale(.95); }
.photo-add svg { width: 24px; height: 24px; }
.photo-item { width: 84px; height: 84px; border-radius: 12px; overflow: hidden; position: relative; }
.photo-item img { width: 100%; height: 100%; object-fit: cover; }
.photo-item .rm {
  position: absolute; top: 4px; right: 4px; width: 22px; height: 22px;
  border-radius: 50%; background: rgba(17,24,39,.65); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 13px; line-height: 1;
}

.pick-map { height: 220px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #E8ECEF; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.seg { display: flex; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 3px; gap: 3px; }
.seg button {
  flex: 1; padding: 9px 6px; border-radius: 9px;
  font-size: 13.5px; font-weight: 700; color: var(--ink-3);
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: all .18s ease;
}
.seg button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 4px rgba(17,24,39,.12); }
.seg-price button.on { color: var(--ink); }
.seg-mini { padding: 2.5px; }
.seg-mini button { padding: 6px 14px; font-size: 12.5px; flex: none; }

.star-input { display: flex; gap: 4px; }
.star-input button { font-size: 30px; color: #E5E7EB; transition: transform .12s ease, color .12s ease; padding: 0 2px; }
.star-input button.on { color: #F59E0B; }
.star-input button:active { transform: scale(1.2); }

.primary-btn {
  width: 100%; margin-top: 26px;
  background: var(--green); color: #fff;
  font-size: 16px; font-weight: 800; letter-spacing: .04em;
  padding: 15px; border-radius: 14px;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.primary-btn:active { transform: scale(.98); }
.primary-btn:disabled { opacity: .6; }

/* ============ 保存 ============ */
.saved-map { position: absolute; inset: 58px 0 0; z-index: 5; }
@supports (top: env(safe-area-inset-top)) {
  .saved-map { top: calc(env(safe-area-inset-top, 0px) + 58px); }
}

/* ============ プロフィール ============ */
.profile-hero {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 24px 20px; text-align: center;
}
.profile-avatar {
  width: 76px; height: 76px; border-radius: 50%;
  background: var(--green-bg); border: 2.5px solid rgba(34,197,94,.4);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 10px; overflow: hidden;
}
.profile-avatar img, .poster-avatar img, .avatar-row button img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
}
.avatar-fill {
  width: 100%; height: 100%; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.avatar-fill svg { width: 55%; height: 55%; }
.profile-name { font-size: 18px; font-weight: 800; }
.profile-stats {
  display: flex; justify-content: center; gap: 0; margin-top: 16px;
  border-top: 1px solid var(--line); padding-top: 16px;
}
.pstat { flex: 1; }
.pstat b { display: block; font-size: 19px; font-weight: 800; color: var(--ink); }
.pstat span { font-size: 11.5px; color: var(--ink-3); font-weight: 700; }
.pstat + .pstat { border-left: 1px solid var(--line); }

.logout-btn {
  width: 100%; margin-top: 14px; padding: 13px;
  background: var(--card); border-radius: 14px; box-shadow: var(--shadow);
  font-size: 14px; font-weight: 700; color: #EF4444;
}
.link-btn {
  width: 100%; padding: 13px;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  background: var(--card); border-radius: 14px; box-shadow: var(--shadow);
  font-size: 14px; font-weight: 700; color: var(--ink-2);
}
.link-btn svg { width: 17px; height: 17px; }
.link-btn:active { transform: scale(.98); }
.section-title { font-size: 14px; font-weight: 800; margin: 22px 2px 10px; }

/* 利用規約・プライバシーへのリンク（マイページ下部） */
.legal-links {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 16px; font-size: 12.5px; color: var(--ink-3);
}
.legal-links button {
  color: var(--ink-2); font-weight: 700; font-size: 12.5px;
  text-decoration: underline; text-underline-offset: 2px;
}
.legal-links button:active { opacity: .6; }

/* ログインシートの同意文 */
.login-agree {
  margin-top: 12px; font-size: 11.5px; line-height: 1.6; color: var(--ink-3); text-align: center;
}
.login-agree button {
  color: var(--green-dark); font-weight: 700; font-size: 11.5px;
  text-decoration: underline; text-underline-offset: 2px;
}

/* 規約・ポリシー本文 */
.legal { font-size: 14px; line-height: 1.85; color: var(--ink-2); padding-bottom: 8px; }
.legal > p { margin-bottom: 14px; }
.legal h2 {
  font-size: 15px; font-weight: 800; color: var(--ink);
  margin: 24px 0 8px; padding-top: 4px;
}
.legal ul { margin: 0 0 14px; padding-left: 20px; }
.legal li { margin-bottom: 7px; list-style: disc; }
.legal b { color: var(--ink); font-weight: 700; }
.legal-updated { font-size: 12.5px; color: var(--ink-3); margin-bottom: 16px !important; }
.legal-note { margin-top: 20px; font-size: 13px; color: var(--ink-3); }

/* 広告枠（控えめ・静的・追従なし） */
.ad-slot {
  position: relative; width: 100%;
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.ad-slot .ad-label {
  position: absolute; top: 6px; left: 8px;
  font-size: 9px; font-weight: 700; letter-spacing: .04em;
  color: var(--ink-3); background: var(--card);
  padding: 1px 6px; border-radius: 999px; border: 1px solid var(--line);
}
.ad-slot .ad-inner {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--ink-3);
}
.ad-banner { height: 64px; margin-bottom: 16px; }
.ad-card { height: 100px; margin-top: 18px; }
/* ホーム下部：カテゴリーバーとタブバーの間にフラットに敷く */
.ad-home {
  flex: none; height: 56px; margin: 0; border-radius: 0;
  border-left: none; border-right: none; border-bottom: none;
}

.admin-entry-btn {
  width: 100%; margin-top: 10px; padding: 13px;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  background: #111827; color: #fff; border-radius: 14px;
  font-size: 14px; font-weight: 800; box-shadow: var(--shadow);
}
.admin-entry-btn svg { width: 17px; height: 17px; }
.admin-entry-btn:active { transform: scale(.98); }

/* ============ 管理者パネル ============ */
.back-btn {
  width: 34px; height: 34px; border-radius: 10px; margin-right: 4px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg); color: var(--ink-2); flex: none;
}
.back-btn svg { width: 20px; height: 20px; }
.back-btn:active { transform: scale(.92); }
#view-admin .page-header h1 { flex: 1; }

.admin-count { font-size: 12.5px; color: var(--ink-3); font-weight: 700; margin: 2px 2px 12px; }
.admin-item {
  background: var(--card); border-radius: 14px; box-shadow: var(--shadow);
  padding: 12px; margin-bottom: 10px;
}
.admin-item-head { display: flex; gap: 10px; align-items: flex-start; }
.admin-thumb {
  width: 52px; height: 52px; border-radius: 10px; flex: none;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.admin-thumb img { width: 100%; height: 100%; object-fit: cover; }
.admin-thumb svg { width: 22px; height: 22px; }
.admin-item-main { flex: 1; min-width: 0; }
.admin-item-name { font-size: 14.5px; font-weight: 800; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.admin-item-sub { font-size: 12px; color: var(--ink-3); font-weight: 600; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-flag {
  font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 999px;
}
.admin-flag-hidden { background: #FEF2F2; color: #EF4444; }
.admin-flag-report { background: var(--yellow-bg); color: var(--yellow-dark); }
.admin-flag-banned { background: #111827; color: #fff; }
.admin-flag-handled { background: var(--green-bg); color: var(--green-dark); }

.admin-tabbar { margin: 12px 16px 0; }
.admin-contact-msg {
  margin-top: 10px; padding: 10px 12px; background: var(--bg);
  border-radius: 10px; font-size: 13.5px; line-height: 1.55; color: var(--ink);
  white-space: pre-wrap; word-break: break-word;
}

.admin-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.admin-btn {
  flex: 1; min-width: 88px; padding: 9px 8px; border-radius: 10px;
  font-size: 12.5px; font-weight: 700; background: var(--bg); color: var(--ink-2);
  display: flex; align-items: center; justify-content: center; gap: 5px;
}
.admin-btn svg { width: 14px; height: 14px; }
.admin-btn:active { transform: scale(.96); }
.admin-btn.danger { background: #FEF2F2; color: #EF4444; }
.admin-btn.warn { background: var(--yellow-bg); color: var(--yellow-dark); }
.admin-btn.on { background: var(--green-bg); color: var(--green-dark); }
.admin-btn:disabled { opacity: .5; }

/* ============ シート共通 ============ */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 900;
  background: rgba(17,24,39,.45);
  animation: fade .25s ease;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.spot-sheet, .login-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 950;
  margin: 0 auto; max-width: 560px;
  background: var(--card); border-radius: 22px 22px 0 0;
  box-shadow: var(--shadow-lg);
  max-height: 88dvh; overflow-y: auto;
  animation: slideUp .32s cubic-bezier(.32,.72,.28,1);
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 20px);
  -webkit-overflow-scrolling: touch;
}
@keyframes slideUp { from { transform: translateY(60px); opacity: 0; } to { transform: none; opacity: 1; } }

.sheet-handle {
  width: 38px; height: 4.5px; border-radius: 3px; background: #D7DBE0;
  margin: 10px auto 6px;
  position: sticky; top: 10px;
}

/* スポット詳細 */
.sheet-photos {
  display: flex; overflow-x: auto; gap: 8px;
  padding: 8px 16px 0; scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.sheet-photos::-webkit-scrollbar { display: none; }
.sheet-photo {
  flex: none; width: min(78vw, 420px); aspect-ratio: 16/10;
  border-radius: var(--radius); overflow: hidden; scroll-snap-align: center;
  display: flex; align-items: center; justify-content: center;
}
.sheet-photo:only-child { width: 100%; }
.sheet-photo img { width: 100%; height: 100%; object-fit: cover; }
.sheet-photo svg { width: 54px; height: 54px; }
.sheet-photo { position: relative; }
.photo-ctl {
  position: absolute; top: 8px; right: 8px;
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(17,24,39,.62); color: #fff; backdrop-filter: blur(2px);
  font-size: 13px; line-height: 1;
}
.photo-ctl svg { width: 15px; height: 15px; }
.photo-ctl:active { transform: scale(.9); }
.add-photo-tile {
  flex-direction: column; gap: 6px;
  background: var(--bg); border: 2px dashed var(--line); color: var(--ink-3);
  font-size: 12.5px; font-weight: 700;
}
.add-photo-tile svg { width: 26px !important; height: 26px !important; }

.add-photo-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 14px;
  padding: 10px 14px; border-radius: 12px; width: 100%; justify-content: center;
  background: var(--green-bg); color: var(--green-dark); font-size: 13.5px; font-weight: 700;
}
.add-photo-link svg { width: 16px; height: 16px; flex: none; }
.add-photo-link:active { transform: scale(.98); }

.sheet-body { padding: 14px 20px 0; }
.sheet-title { font-size: 20px; font-weight: 800; margin: 6px 0 2px; }
.sheet-desc { font-size: 14px; color: var(--ink-2); margin-top: 8px; }

.sheet-stars { color: #F59E0B; font-size: 15px; letter-spacing: 2px; }
.sheet-stars small { color: var(--ink-3); font-weight: 700; letter-spacing: 0; margin-left: 4px; font-size: 12px; }

.info-list { margin-top: 14px; border-top: 1px solid var(--line); }
.info-row {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 0; border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}
.info-row svg { width: 17px; height: 17px; color: var(--ink-3); flex: none; margin-top: 2px; }
.info-row .k { color: var(--ink-3); font-weight: 700; width: 62px; flex: none; }
.info-row .v { color: var(--ink); font-weight: 600; flex: 1; }

.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tag-row span {
  font-size: 12px; font-weight: 700; color: var(--green-dark);
  background: var(--green-bg); border-radius: 999px; padding: 3.5px 10px;
}
.tag-row .warn-tag {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--yellow-dark); background: var(--yellow-bg);
}
.tag-row .warn-tag svg { width: 13px; height: 13px; flex: none; }

.poster-row {
  display: flex; align-items: center; gap: 10px; margin-top: 14px;
  font-size: 12.5px; color: var(--ink-3); font-weight: 600;
}
.poster-avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--bg);
  display: flex; align-items: center; justify-content: center; font-size: 17px; flex: none;
  overflow: hidden;
}
.poster-row b { color: var(--ink); font-size: 13px; display: block; }

.report-link {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 12px; font-size: 12px; font-weight: 700; color: var(--ink-3);
}
.report-link svg { width: 13px; height: 13px; flex: none; }
.report-link:active { opacity: .6; }

.owner-actions { display: flex; gap: 10px; margin-top: 14px; }
.owner-btn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px; border-radius: 12px; font-size: 13.5px; font-weight: 700;
  background: var(--bg); color: var(--ink-2);
}
.owner-btn svg { width: 15px; height: 15px; flex: none; }
.owner-btn:active { transform: scale(.97); }
.owner-btn.danger { background: #FEF2F2; color: #EF4444; }

.sheet-actions {
  display: flex; gap: 10px; padding: 16px 20px 0;
  position: sticky; bottom: 0;
  background: linear-gradient(to top, var(--card) 75%, transparent);
}
.gmap-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px;
  background: var(--green); color: #fff;
  font-size: 14.5px; font-weight: 800; padding: 13px; border-radius: 13px;
  text-decoration: none; transition: transform .15s ease;
}
.gmap-btn:active { transform: scale(.97); }
.gmap-btn svg { width: 17px; height: 17px; }
.icon-btn {
  width: 50px; height: 48px; border-radius: 13px;
  background: var(--bg); color: var(--ink-2);
  display: flex; align-items: center; justify-content: center;
  transition: all .18s ease;
}
.icon-btn svg { width: 21px; height: 21px; }
.icon-btn:active { transform: scale(.9); }
.icon-btn:disabled { opacity: .5; }
.icon-btn.on-like { background: #FEF2F2; color: #EF4444; }
.icon-btn.on-like svg { fill: #EF4444; }
.icon-btn.on-save { background: var(--green-bg); color: var(--green-dark); }
.icon-btn.on-save svg { fill: var(--green-dark); }
.icon-btn .cnt { font-size: 11px; font-weight: 800; margin-left: 3px; }

/* ログイン */
.login-sheet { padding: 0 24px calc(env(safe-area-inset-bottom, 0px) + 28px); }
.login-sheet h2 { font-size: 20px; font-weight: 800; margin-top: 10px; }
.login-lead { font-size: 13px; color: var(--ink-2); margin-top: 10px; }
.auth-tabs { margin-top: 14px; }
.auth-tabs button { padding: 10px 6px; font-size: 14px; }
.avatar-row { display: flex; gap: 10px; flex-wrap: wrap; }
.avatar-row button {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--bg); border: 2px solid transparent;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s ease; overflow: hidden; flex: none;
}
.avatar-row button svg { width: 22px; height: 22px; }
.avatar-row button.on { transform: scale(1.08); }
.avatar-row button.on:not(.avatar-upload) { box-shadow: 0 0 0 2.5px var(--card), 0 0 0 5px var(--green); }
.avatar-row button:active { transform: scale(.92); }
.avatar-upload {
  border: 1.8px dashed #CBD5E1 !important;
  color: var(--ink-3); flex-direction: column; gap: 1px;
}
.avatar-upload svg { width: 18px; height: 18px; }
.avatar-upload span { font-size: 8.5px; font-weight: 700; line-height: 1; }
.avatar-upload.on { border-style: solid !important; border-color: var(--green) !important; color: var(--green-dark); }

/* ============ タブバー ============ */
.tab-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 800;
  height: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(255,255,255,.94); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  display: flex;
  margin: 0 auto; max-width: 480px;
}
@media (max-width: 767px) { .tab-bar { max-width: none; } }
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: 10px; font-weight: 700; color: var(--ink-3);
  transition: color .18s ease;
}
.tab svg { width: 23px; height: 23px; }
.tab.active { color: var(--green-dark); }
.tab:active { transform: scale(.94); }

.post-fab {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--green); color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin-top: -18px; margin-bottom: 1px;
  box-shadow: var(--shadow);
  border: 3.5px solid var(--card);
  transition: transform .15s ease;
}
.post-fab svg { width: 19px; height: 19px; }
.tab-post:active .post-fab { transform: scale(.92); }
.tab-post.active span:last-child { color: var(--green-dark); }

/* ============ トースト ============ */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--tab-h) + 22px);
  transform: translateX(-50%) translateY(16px);
  background: rgba(17,24,39,.92); color: #fff;
  font-size: 13.5px; font-weight: 700;
  padding: 11px 20px; border-radius: 999px;
  opacity: 0; pointer-events: none; z-index: 1000;
  transition: all .28s cubic-bezier(.32,.72,.28,1);
  max-width: 86vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Mapbox GL 微調整 */
.mapboxgl-ctrl-attrib { font-size: 9px !important; opacity: .8; }
.mapboxgl-ctrl-logo { transform: scale(.8); transform-origin: bottom left; }
