/* ======= スイグルメ v1 — 食べログ風UI（白×オレンジ・リスト主役） ======= */
:root {
  --brand: #eb6100;        /* 食べログ系オレンジ */
  --brand-dark: #c94f00;
  --score: #f19700;        /* 評価数字のオレンジゴールド */
  --bg: #f5f3ef;           /* ベージュがかった背景 */
  --card: #ffffff;
  --line: #e0ddd6;
  --text: #222222;
  --sub: #777777;
  --link: #1a66a8;
  --red: #d9534f;
  --orange: #f08c3a;
  --blue: #4a90d9;
  --gray: #9aa0a6;
  --green: #2e8b57;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: var(--link); }

/* ---------- 年齢確認ゲート ---------- */
#age-gate {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(40, 34, 28, .82);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
#age-gate.hidden { display: none; }
.age-card {
  background: #fff;
  border-radius: 12px;
  max-width: 440px; width: 100%;
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0,0,0,.3);
}
.age-card .logo-mark { font-size: 44px; }
.age-card h1 { font-size: 26px; margin: 8px 0 2px; letter-spacing: .05em; color: var(--text); }
.age-card h1 .accent { color: var(--brand); }
.age-card .tagline { color: var(--brand); font-size: 13px; font-weight: 700; margin-bottom: 18px; }
.age-card p { color: var(--sub); font-size: 14px; margin-bottom: 22px; }
.age-card p strong { color: var(--text); }
.age-buttons { display: flex; gap: 12px; }
.age-buttons button {
  flex: 1; padding: 14px 8px; font-size: 16px; font-weight: 700;
  border-radius: 8px; border: none; cursor: pointer;
}
#age-yes { background: var(--brand); color: #fff; }
#age-yes:hover { background: var(--brand-dark); }
#age-no { background: #f1efe9; color: var(--sub); border: 1px solid var(--line); }
.age-note { font-size: 11px; color: var(--sub); margin-top: 16px; }

/* ---------- ヘッダー（白・検索バー付き） ---------- */
header {
  position: sticky; top: 0; z-index: 500;
  background: #fff;
  border-bottom: 2px solid var(--brand);
  padding: 10px 16px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand-mark { width: 38px; height: 38px; display: block; border-radius: 22%; }
.brand .name, .brand .tag { align-self: center; }
.age-logo { width: 76px; height: 76px; border-radius: 22%; }
.brand .name { font-size: 24px; font-weight: 800; letter-spacing: .02em; color: var(--text); }
.brand .name .accent { color: var(--brand); }
.brand .tag { font-size: 11px; color: var(--sub); }
.searchbox {
  flex: 1; min-width: 180px; max-width: 420px;
  display: flex; align-items: center; gap: 8px;
  background: #f1efe9; border: 1px solid var(--line); border-radius: 6px;
  padding: 8px 12px;
}
.searchbox input {
  flex: 1; border: none; background: transparent; outline: none;
  font-size: 14px; color: var(--text);
}
.head-conds { display: flex; gap: 8px; align-items: center; }
.head-conds label {
  display: flex; align-items: center; gap: 4px;
  background: #f1efe9; border: 1px solid var(--line); border-radius: 6px;
  padding: 6px 10px; font-size: 12px;
}
.head-conds input, .head-conds select { border: none; outline: none; background: transparent; font-size: 13px; max-width: 130px; }
@media (max-width: 860px) { .head-conds { order: 4; width: 100%; } }

.area-pill {
  margin-left: auto;
  background: #fff; border: 1px solid var(--line);
  border-radius: 6px; padding: 7px 14px; font-size: 13px;
  color: var(--text); cursor: pointer; font-weight: 600;
  text-decoration: none;
}
.area-pill .dot { color: var(--brand); }

/* ---------- フィルター ---------- */
#filters {
  background: #fff; border-bottom: 1px solid var(--line);
  padding: 10px 16px 2px;
  display: flex; flex-direction: column; gap: 4px;
}
.chip-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
.chip-row::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  background: #fff; border: 1px solid var(--line);
  color: #555; border-radius: 999px;
  padding: 6px 14px; font-size: 13px; cursor: pointer; white-space: nowrap;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.active { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 700; }
.chip.smoke-all.active { background: var(--red); border-color: var(--red); }
.chip.smoke-room.active { background: var(--orange); border-color: var(--orange); }
.chip.smoke-heated.active { background: var(--blue); border-color: var(--blue); }
.chip.smoke-booth.active { background: var(--gray); border-color: var(--gray); }
.chip.pref-chip { font-weight: 700; }
.chip.pref-chip.active { background: #2b6cb0; border-color: #2b6cb0; color: #fff; }

/* ---------- レイアウト（食べログ準拠：PC/スマホともリストのみ・地図はボタンで） ---------- */
main {
  max-width: 900px; margin: 0 auto; padding: 0 16px 60px;
}
#list-pane { min-width: 0; }
#map-wrap { display: none; }
body.map-open #map-wrap {
  display: block;
  position: fixed; inset: 0; z-index: 550;
  height: 100vh; margin: 0; padding: 0;
}
#map { width: 100%; height: 100%; background: #e8e6e0; }
#list-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 2px 8px; }
#result-count { font-size: 13px; color: var(--sub); }
#result-count strong { color: var(--brand); font-size: 18px; }
#sort {
  border: 1px solid var(--line); border-radius: 6px; background: #fff;
  color: var(--text); font-size: 13px; padding: 6px 10px; cursor: pointer;
}
#store-list { display: flex; flex-direction: column; gap: 12px; }

/* ---------- 店舗カード（食べログ風：写真左・情報右） ---------- */
.store-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 8px; padding: 14px; cursor: pointer;
  display: flex; gap: 14px;
  transition: box-shadow .15s;
}
.store-card:hover, .store-card.selected { box-shadow: 0 2px 12px rgba(235, 97, 0, .18); border-color: #f0b285; }
.thumb {
  flex: 0 0 96px; width: 96px; height: 96px;
  border-radius: 6px; display: flex; align-items: center; justify-content: center;
  font-size: 40px; background: #f7f1e8; border: 1px solid var(--line);
  overflow: hidden;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb img.icon { object-fit: contain; padding: 16px; box-sizing: border-box; }
.detail-link { font-size: 12px; font-weight: 700; }
.map-jump {
  background: #fff; border: 1px solid var(--line); color: var(--sub);
  border-radius: 999px; padding: 5px 12px; font-size: 12px; cursor: pointer;
}
.map-jump:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- 店舗詳細ページ ---------- */
#store-page { max-width: 840px; margin: 0 auto; padding: 14px 16px 50px; }
.sd-breadcrumb { font-size: 12px; color: var(--sub); margin: 4px 0 14px; }
.sd-breadcrumb a { color: var(--sub); }
.sd-head { display: flex; gap: 18px; align-items: flex-start; }
.sd-photo {
  flex: 0 0 240px; width: 240px; height: 180px;
  border-radius: 10px; overflow: hidden; background: #f7f1e8; border: 1px solid var(--line);
}
.sd-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sd-photo img.icon { object-fit: contain; padding: 34px; box-sizing: border-box; }
.sd-title h1 { font-size: 24px; line-height: 1.35; }
.sd-title .genre { font-size: 13px; color: var(--sub); margin-top: 4px; }
.sd-badges { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.sd-tabs {
  display: flex; margin: 4px 0 16px; border: 1px solid var(--line); border-radius: 8px;
  overflow: hidden; background: #fff;
}
.sd-tabs a {
  flex: 1; text-align: center; padding: 11px 4px; font-size: 13px; font-weight: 700;
  color: #6b5d4f; text-decoration: none; border-right: 1px solid var(--line);
}
.sd-tabs a:last-child { border-right: none; }
.sd-tabs a.on, .sd-tabs a:hover { background: #6b5d4f; color: #fff; }
.sd-rating { margin-top: 6px; font-size: 14px; }
.sd-rating .stars { color: var(--score); letter-spacing: 1px; }
.sd-rating b { color: var(--score); font-size: 20px; }
.sd-rating .cnt { color: var(--sub); font-size: 12px; }
.sd-catch { margin-top: 18px; font-size: 17px; font-weight: 800; }
.sd-intro { margin-top: 10px; font-size: 14px; line-height: 1.9; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; }

/* ---------- Googleライブ表示（パイロット） ---------- */
.g-live-box:empty { display: none; }
.g-badge { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; font-size: 13px; }
.g-mark { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; font-weight: 800; color: #4285F4; font-size: 11px; }
.g-rating { color: var(--score); font-weight: 800; }
.g-count { color: var(--sub); font-size: 12px; }
.g-open { color: var(--green); font-size: 11px; }
.g-closed { color: var(--red); font-size: 11px; font-weight: 700; }
.g-link { font-size: 12px; margin-left: auto; }
.g-photo { max-width: 220px; max-height: 160px; border-radius: 8px; margin-top: 8px; display: block; object-fit: cover; }
.g-attr { font-size: 10px; color: var(--sub); margin-top: 3px; }

/* ---------- コース・メニュー ---------- */
.sd-courses { margin-top: 20px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; }
.sd-courses h2 { font-size: 16px; margin-bottom: 10px; }
.course { border-top: 1px solid #f0ede6; padding: 12px 2px; }
.course .c-head { display: flex; align-items: baseline; gap: 12px; }
.course .c-head b { font-size: 14px; flex: 1; }
.course .c-price { color: var(--brand-dark); font-weight: 800; font-size: 16px; white-space: nowrap; }
.course .c-note { font-size: 12px; color: var(--sub); margin-top: 4px; }

/* ---------- 口コミ ---------- */
.sd-reviews { margin-top: 20px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; }
.sd-reviews h2 { font-size: 16px; margin-bottom: 12px; }
.review { border-top: 1px solid var(--line); padding: 12px 2px; }
.review .rv-head { font-size: 13px; display: flex; gap: 10px; align-items: baseline; }
.review .stars { color: var(--score); }
.review .rv-date { color: var(--sub); font-size: 11px; margin-left: auto; }
.review .rv-body { font-size: 14px; margin-top: 4px; line-height: 1.7; }
.rv-empty { color: var(--sub); font-size: 13px; padding: 8px 0 14px; }
.rv-photo { max-width: 160px; max-height: 120px; border-radius: 8px; margin-top: 8px; display: block; border: 1px solid var(--line); object-fit: cover; }
.rv-report { margin-top: 8px; font-size: 11px; color: var(--sub); background: none; border: 1px solid var(--line); border-radius: 20px; padding: 3px 10px; cursor: pointer; }
.rv-report:hover { color: #c0392b; border-color: #c0392b; }
.rv-report.done, .rv-report:disabled { color: var(--sub); border-color: var(--line); background: #f3f3f3; cursor: default; opacity: .7; }
#review-form { border-top: 1px dashed var(--line); padding-top: 14px; margin-top: 6px; }
#review-form.hidden { display: none; }

/* ---------- 予約セクション ---------- */
.sd-reserve { margin-top: 16px; background: #fff; border: 2px solid var(--brand); border-radius: 10px; padding: 16px 18px; }
.sd-reserve h2 { font-size: 16px; margin-bottom: 10px; }
.sd-reserve-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.rv-btn {
  display: inline-block; border: 1px solid var(--brand); color: var(--brand);
  background: #fff; border-radius: 8px; padding: 10px 18px;
  font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: none;
}
.rv-btn.primary { background: var(--brand); color: #fff; }
.rv-btn.primary:hover { background: var(--brand-dark); }
.rv-btn:hover { background: #fff4e8; }
.rv-btn.primary:hover { background: var(--brand-dark); }
#reserve-form { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 14px; }
#reserve-form.hidden, #reserve-done.hidden { display: none; }
.rv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.rv-grid label { display: flex; flex-direction: column; font-size: 12px; color: var(--sub); gap: 4px; }
.rv-grid label.wide { grid-column: 1 / -1; }
.rv-grid input, .rv-grid select {
  border: 1px solid var(--line); border-radius: 6px; padding: 9px 10px; font-size: 14px; background: #fff;
}
.rv-note { font-size: 11px; color: var(--sub); margin-top: 10px; }
#reserve-done { margin-top: 12px; background: #f0f8f1; border: 1px solid #bfdec5; color: #23663b; border-radius: 8px; padding: 12px 14px; font-size: 13px; }
@media (max-width: 680px) { .rv-grid { grid-template-columns: 1fr 1fr; } }

.sd-smoke {
  margin-top: 20px; background: #fff; border: 1px solid var(--line);
  border-left: 6px solid var(--gray); border-radius: 10px; padding: 16px 18px;
}
.sd-smoke.smoke-all-border { border-left-color: var(--red); }
.sd-smoke.smoke-room-border { border-left-color: var(--orange); }
.sd-smoke.smoke-heated-border { border-left-color: var(--blue); }
.sd-smoke h2 { font-size: 15px; color: var(--sub); }
.sd-smoke-main { font-size: 22px; font-weight: 800; margin-top: 4px; }
.sd-smoke-sub { font-size: 13px; color: var(--sub); margin-top: 4px; }
.sd-smoke-actions { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.checkin-btn.big { font-size: 14px; padding: 10px 20px; }
.sd-checkin-count { font-size: 13px; color: var(--sub); }
.sd-checkin-count strong { color: var(--score); font-size: 20px; }
.sd-note { font-size: 11px; color: var(--sub); margin-top: 10px; }
.sd-info { width: 100%; margin-top: 20px; border-collapse: collapse; background: #fff; font-size: 14px; }
.sd-info th, .sd-info td { border: 1px solid var(--line); padding: 11px 14px; text-align: left; vertical-align: top; }
.sd-info th { background: #f7f4ee; width: 130px; font-weight: 700; color: #555; }
.sd-no { font-size: 12px; color: var(--sub); margin-top: 4px; }
#sd-map { width: 100%; height: 300px; margin-top: 20px; border-radius: 10px; border: 1px solid var(--line); display: block; }
.sd-map-note { font-size: 12px; color: var(--sub); margin-top: 8px; }
@media (max-width: 680px) {
  .sd-head { flex-direction: column; }
  .sd-photo { width: 100%; flex-basis: auto; height: 200px; }
}
.store-card .body { flex: 1; min-width: 0; }
.store-card h3 { font-size: 17px; line-height: 1.4; }
.store-card h3 .num { color: var(--sub); font-size: 13px; font-weight: 400; margin-right: 6px; }
.store-card .genre { font-size: 12px; color: var(--sub); margin-top: 2px; }
.score-row { display: flex; align-items: center; gap: 12px; margin-top: 6px; flex-wrap: wrap; }
.score {
  color: var(--score); font-weight: 800; font-size: 16px;
  display: flex; align-items: center; gap: 4px;
}
.score .label { font-size: 11px; color: var(--sub); font-weight: 400; }
.verified { font-size: 11px; color: var(--green); }
.badge {
  display: inline-block; font-size: 11px; font-weight: 700;
  border-radius: 4px; padding: 2px 8px; white-space: nowrap;
}
.badge.smoke-all { background: var(--red); color: #fff; }
.badge.smoke-room { background: var(--orange); color: #fff; }
.badge.smoke-heated { background: var(--blue); color: #fff; }
.badge.smoke-booth { background: var(--gray); color: #fff; }
.badge.paper { background: #fff4e8; color: var(--brand-dark); border: 1px solid #f0b285; }
.badge.attr { background: #f4f2ec; color: #666; border: 1px solid var(--line); font-weight: 400; }
.store-card .meta { font-size: 12px; color: var(--sub); margin-top: 6px; }
.store-card .meta .budget { color: var(--brand-dark); font-weight: 700; }
.store-card .meta .dist { color: var(--green); font-weight: 700; }
.loc-btn.on { border-color: var(--green); color: var(--green); font-weight: 700; }
.actions { display: flex; gap: 10px; margin-top: 8px; align-items: center; flex-wrap: wrap; }
.checkin-btn {
  background: #fff; border: 1px solid var(--brand); color: var(--brand);
  border-radius: 999px; padding: 5px 14px; font-size: 12px; font-weight: 700; cursor: pointer;
}
.checkin-btn:hover { background: #fff4e8; }
.checkin-btn.done { background: var(--brand); color: #fff; }
.actions a { font-size: 12px; }

.paywall-card {
  display: flex; gap: 16px; align-items: center;
  background: linear-gradient(135deg, #fff8ef, #fff2e0);
  border: 2px dashed var(--brand); border-radius: 10px;
  padding: 20px; margin-top: 4px;
}
.paywall-card .pw-icon { font-size: 34px; }
.paywall-card .pw-body { display: flex; flex-direction: column; gap: 6px; }
.paywall-card .pw-body b { font-size: 16px; }
.paywall-card .pw-body span { font-size: 13px; color: var(--sub); }
.paywall-card .pw-body .rv-btn { align-self: flex-start; margin-top: 4px; }

#more-btn {
  margin: 8px auto 0; display: block; width: 100%;
  background: #fff; border: 1px solid var(--brand); color: var(--brand);
  border-radius: 8px; padding: 12px; font-size: 14px; font-weight: 700; cursor: pointer;
}
#more-btn:hover { background: #fff4e8; }

/* ---------- 地図ポップアップ ---------- */
.leaflet-popup-content-wrapper { border-radius: 8px; }
.popup h3 { font-size: 14px; margin-bottom: 4px; }
.popup .meta { font-size: 11px; color: var(--sub); }

/* ---------- フッター（ダーク） ---------- */
footer {
  background: #3d3630; color: #cfc8bf;
  padding: 22px 16px 30px; font-size: 11px;
}
footer p { max-width: 1000px; margin: 0 auto 6px; }

/* ---------- 地図切り替えボタン（食べログの「このエリアを地図で見る」相当・全デバイス） ---------- */
#map-toggle {
  display: block;
  position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%);
  z-index: 601;
  background: var(--brand); color: #fff; border: none; border-radius: 999px;
  padding: 12px 26px; font-size: 14px; font-weight: 700; cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
#map-toggle:hover { background: var(--brand-dark); }

/* ---------- トップページ（食べログ風） ---------- */
.hero {
  background:
    linear-gradient(rgba(22, 13, 6, .5), rgba(22, 13, 6, .74)),
    url("assets/hero-bg.webp") center 35% / cover no-repeat,
    linear-gradient(135deg, #2b1c0e, #4a2e12 55%, #7a4a15);
  padding: 56px 16px 44px;
}
.hero-inner { max-width: 900px; margin: 0 auto; text-align: center; }
.hero h2 { color: #fff; font-size: 24px; margin-bottom: 18px; letter-spacing: .02em; }
.hero h2 .accent { color: var(--score); }
.hero-search { display: flex; max-width: 640px; margin: 0 auto; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,.3); }
.hero-search input { flex: 1; border: none; outline: none; padding: 15px 16px; font-size: 15px; }
.hero-search button { border: none; background: var(--brand); color: #fff; font-size: 15px; font-weight: 700; padding: 0 26px; cursor: pointer; }
.hero-search button:hover { background: var(--brand-dark); }
.hero-conds { display: flex; gap: 10px; justify-content: center; margin-top: 10px; flex-wrap: wrap; }
.hero-conds label {
  background: rgba(255,255,255,.94); border-radius: 8px; padding: 8px 12px;
  font-size: 13px; display: flex; align-items: center; gap: 6px;
}
.hero-conds input, .hero-conds select { border: none; outline: none; background: transparent; font-size: 14px; }
.hero-loc-btn {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 14px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.4);
  color: #fff; border-radius: 999px; padding: 8px 18px; font-size: 13px;
  text-decoration: none; font-weight: 700;
}
.hero-loc-btn:hover { background: rgba(255,255,255,.24); }
.hero-count { color: #e8d9c4; font-size: 13px; margin-top: 10px; }
.hero-count strong { color: #fff; font-size: 20px; }

.top-wrap { max-width: 1000px; margin: 0 auto; padding: 8px 16px 48px; }
.top-section { margin-top: 34px; }
.top-section h2 { font-size: 20px; border-left: 5px solid var(--brand); padding-left: 10px; margin-bottom: 16px; }
.top-section h2 .sub { font-size: 13px; color: var(--sub); font-weight: 400; margin-left: 8px; }

.smoke-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.smoke-card {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 16px 14px; text-decoration: none; color: var(--text); text-align: center;
  border-top: 4px solid var(--gray); transition: box-shadow .15s;
}
.smoke-card:hover { box-shadow: 0 3px 14px rgba(0,0,0,.12); }
.smoke-card.smoke-all { border-top-color: var(--red); }
.smoke-card.smoke-room { border-top-color: var(--orange); }
.smoke-card.smoke-heated { border-top-color: var(--blue); }
.sc-mark img { width: 44px; height: 44px; }
.sc-label { font-weight: 800; font-size: 15px; margin-top: 4px; }
.sc-count { color: var(--brand); font-size: 24px; font-weight: 800; margin-top: 2px; }
.sc-count span { font-size: 12px; color: var(--sub); font-weight: 400; margin-left: 2px; }
.sc-desc { font-size: 11px; color: var(--sub); margin-top: 6px; line-height: 1.5; }

.area-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.area-btn {
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 10px 16px; text-decoration: none; color: var(--text);
  font-size: 14px; font-weight: 700;
}
.area-btn span { color: var(--brand); font-size: 12px; font-weight: 400; margin-left: 8px; }
.area-btn:hover { border-color: var(--brand); }

.genre-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 14px; }
.genre-card { position: relative; display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 1/1; text-decoration: none; }
.gc-img { width: 100%; height: 100%; background: #3b3128; display: flex; align-items: center; justify-content: center; }
.gc-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gc-img span { font-size: 46px; }
.gc-img .gc-icon { width: 55%; height: 55%; object-fit: contain; }
.gc-img { background: #fff4e8; }
.gc-overlay {
  position: absolute; inset: auto 0 0 0; padding: 26px 10px 10px;
  background: linear-gradient(transparent, rgba(0,0,0,.75));
  color: #fff; display: flex; flex-direction: column;
}
.gc-overlay b { font-size: 15px; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.gc-overlay span { font-size: 11px; opacity: .9; }

.feature-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature-card {
  display: block; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  text-decoration: none; color: var(--text);
  transition: box-shadow .15s;
}
.feature-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.15); }
.fc-img { aspect-ratio: 16/9; background: #3b3128; }
.fc-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fc-body { display: flex; flex-direction: column; padding: 12px 14px 14px; }
.fc-body b { font-size: 15px; }
.fc-body span { font-size: 12px; color: var(--sub); margin-top: 3px; }

.chip-row.wrap { flex-wrap: wrap; }
#kodawari-chips .chip, #genre-chips .chip { text-decoration: none; }

@media (max-width: 860px) {
  .smoke-cards { grid-template-columns: repeat(2, 1fr); }
  .genre-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-cards { grid-template-columns: 1fr; }
  .hero h2 { font-size: 19px; }
}

/* ---------- マイページ ---------- */
#mypage { max-width: 840px; margin: 0 auto; padding: 16px 16px 50px; }
.mp-title { font-size: 22px; margin: 6px 0 14px; }
.mp-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; margin-bottom: 14px; }
.mp-card h2 { font-size: 16px; margin-bottom: 10px; }
.mp-prof-row { display: flex; align-items: center; gap: 14px; }
.mp-avatar { width: 56px; height: 56px; border-radius: 50%; background: #fff4e8; border: 2px solid var(--brand); display: flex; align-items: center; justify-content: center; font-size: 28px; }
.mp-prof-body { flex: 1; }
.mp-nickname { font-size: 18px; font-weight: 800; }
.mp-sub { font-size: 12px; color: var(--sub); margin-top: 2px; }
#profile-form { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 14px; }
#profile-form.hidden { display: none; }
.mp-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.mp-stat { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 6px; text-align: center; text-decoration: none; color: var(--text); }
.mp-stat b { display: block; color: var(--brand); font-size: 22px; }
.mp-stat span { font-size: 11px; color: var(--sub); }
.mp-list { display: flex; flex-direction: column; gap: 8px; }
.mp-mini { display: flex; gap: 10px; align-items: center; text-decoration: none; color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 8px; }
.mp-mini:hover { border-color: var(--brand); }
.mm-thumb { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 6px; overflow: hidden; background: #f7f1e8; }
.mm-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mm-thumb img.icon { object-fit: contain; padding: 8px; box-sizing: border-box; }
.mm-body { display: flex; flex-direction: column; min-width: 0; }
.mm-body b { font-size: 14px; }
.mm-body span { font-size: 11px; color: var(--sub); }
.mm-date { color: var(--green) !important; }
.mp-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.mp-table th, .mp-table td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.mp-table th { background: #f7f4ee; font-size: 12px; }
.mp-points-big { font-size: 15px; }
.mp-points-big b { color: var(--brand); font-size: 30px; }
.pt-log { margin-top: 10px; font-size: 12px; color: var(--sub); display: flex; flex-direction: column; gap: 4px; }
.mp-soon, .mp-menu div { font-size: 14px; padding: 8px 0; border-top: 1px solid #f0ede6; }
.soon-badge { background: #eee; color: #999; font-size: 10px; border-radius: 999px; padding: 2px 8px; margin-left: 6px; }
/* ---------- 引き継ぎ ---------- */
.tf-code-box { background: #fff8ef; border: 1px dashed var(--brand); border-radius: 8px; padding: 14px; font-size: 12px; color: var(--sub); margin-bottom: 14px; }
.tf-code { display: block; font-size: 22px; letter-spacing: 2px; color: var(--brand-dark); margin: 6px 0 10px; font-family: ui-monospace, monospace; }
.tf-row { display: flex; gap: 8px; margin-top: 8px; }
.tf-restore b { font-size: 14px; }
.tf-restore input { flex: 1; border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; font-size: 14px; font-family: ui-monospace, monospace; }

/* ---------- プレミアム ---------- */
.mp-lead { font-size: 15px; margin-bottom: 16px; }
.pm-compare { overflow-x: auto; }
.pm-col { background: #fff8ef; }
.pm-cta { margin-top: 18px; text-align: center; }
.rv-btn.big { font-size: 16px; padding: 14px 34px; }
.pm-active {
  background: #fff4e8; border: 1px solid var(--brand); color: var(--brand-dark);
  border-radius: 8px; padding: 12px 14px; font-size: 14px; margin-bottom: 12px; font-weight: 700;
}
.pm-cta .rv-note { margin-top: 12px; }
#pm-join.hidden, #pm-leave.hidden { display: none; }

.save-btn {
  background: #fff; border: 1px solid var(--line); color: var(--sub);
  border-radius: 999px; padding: 5px 12px; font-size: 12px; cursor: pointer;
}
.save-btn.on { border-color: var(--brand); color: var(--brand); font-weight: 700; background: #fff4e8; }
@media (max-width: 680px) { .mp-stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- モバイル微調整 ---------- */
@media (max-width: 860px) {
  .brand .tag { display: none; }
  .searchbox { order: 3; max-width: none; width: 100%; }
  .area-pill { margin-left: 0; }
}
