/* ============================================================
   Tokyo Golf Guide — Modern Redesign 2026
   Inspired by: Airbnb · Google Hotels · Booking.com
   Design principles: whitespace-first, clear hierarchy, minimal
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Brand */
  --brand:        #15803d;
  --brand-mid:    #16a34a;
  --brand-light:  #22c55e;
  --brand-pale:   #f0fdf4;
  --brand-border: #bbf7d0;

  /* Price pills */
  --p-cheap-bg: #dcfce7; --p-cheap-tx: #166534;
  --p-mid-bg:   #fef3c7; --p-mid-tx:   #92400e;
  --p-high-bg:  #fee2e2; --p-high-tx:  #991b1b;
  --p-mon-bg:   #ede9fe; --p-mon-tx:   #5b21b6;
  --p-unk-bg:   #f3f4f6; --p-unk-tx:   #6b7280;

  /* Neutrals */
  --bg:      #f9fafb;
  --surface: #ffffff;
  --border:  #e5e7eb;
  --hover:   #f3f4f6;

  /* Shadows */
  --sh-xs: 0 1px 2px rgba(0,0,0,.05);
  --sh-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --sh-md: 0 4px 12px rgba(0,0,0,.08);
  --sh-lg: 0 12px 28px rgba(0,0,0,.12);

  /* Text */
  --t1: #111827;
  --t2: #374151;
  --t3: #6b7280;
  --t4: #9ca3af;

  /* Radius */
  --r-xl: 16px;
  --r:    10px;
  --r-sm: 6px;
  --r-xs: 4px;

  /* Font */
  --font: 'Inter', -apple-system, BlinkMacSystemFont,
          "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
}

/* ================================================================
   HERO — 全画面グリーン背景
   ================================================================ */
.hero {
  min-height: 100svh;
  background:
    radial-gradient(ellipse at 20% 70%, rgba(34,197,94,.18) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 20%, rgba(16,120,50,.25) 0%, transparent 50%),
    linear-gradient(160deg, #052e10 0%, #0d4a1f 40%, #144d20 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 20px 60px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='40' cy='40' r='35' fill='none' stroke='%23ffffff' stroke-width='.4' stroke-opacity='.04'/%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; text-align: center; width: 100%; max-width: 580px; }
.hero-title-wrap { margin-bottom: 32px; }
.hero-icon { font-size: 3rem; display: block; margin-bottom: 12px; filter: drop-shadow(0 2px 8px rgba(0,0,0,.4)); }
.hero-h1 { font-size: clamp(2.2rem,8vw,3.6rem); font-weight: 900; color: #fff; line-height: 1.1; letter-spacing: -.04em; text-shadow: 0 2px 16px rgba(0,0,0,.4); }
.hero-sub { margin-top: 10px; font-size: 12px; color: rgba(255,255,255,.6); letter-spacing: .12em; }
.hero-card { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 16px 48px rgba(0,0,0,.35); }
.hero-tabs { display: flex; border-bottom: 2px solid #f3f4f6; }
.htab {
  flex: 1; height: 48px; border: none; background: transparent;
  font-size: 13px; font-weight: 600; font-family: var(--font); color: #6b7280;
  cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px;
  transition: color .15s, border-color .15s; white-space: nowrap; padding: 0 6px;
}
.htab:hover  { color: #15803d; }
.htab.active { color: #15803d; border-bottom-color: #16a34a; }
.hero-kw { padding: 16px 20px; }
.hero-kw-row {
  display: flex; border: 2px solid #e5e7eb; border-radius: 8px;
  overflow: hidden; margin-bottom: 10px; transition: border-color .15s;
}
.hero-kw-row:focus-within { border-color: #16a34a; }
.hero-kw-row input {
  flex: 1; height: 52px; border: none; padding: 0 16px;
  font-size: 15px; font-family: var(--font); color: #111; outline: none; min-width: 0;
}
.hero-kw-row input::placeholder { color: #9ca3af; }
.hero-kw-btn {
  width: 80px; background: #16a34a; color: #fff; border: none;
  font-size: 16px; font-weight: 800; font-family: var(--font);
  cursor: pointer; transition: background .15s; flex-shrink: 0;
}
.hero-kw-btn:hover { background: #15803d; }
.hero-loc-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: 46px; border-radius: 8px; border: 2px solid #e5e7eb;
  background: #f9fafb; color: #374151; font-size: 14px; font-weight: 500;
  font-family: var(--font); cursor: pointer; transition: all .15s;
}
.hero-loc-btn:hover  { border-color: #16a34a; color: #15803d; background: #f0fdf4; }
.hero-loc-btn.loading { opacity: .65; pointer-events: none; }
.hero-panel-stub { padding: 20px; }
.hero-open-drawer {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; height: 54px; padding: 0 18px; border-radius: 10px;
  border: 2px solid #e5e7eb; background: #f9fafb; cursor: pointer;
  font-family: var(--font); transition: all .15s;
}
.hero-open-drawer:hover { border-color: #16a34a; background: #f0fdf4; }
.hod-text  { font-size: 15px; font-weight: 600; color: #111; }
.hod-badge { font-size: 12px; font-weight: 700; background: #16a34a; color: #fff; padding: 2px 10px; border-radius: 12px; }
.hod-arrow { font-size: 20px; color: #9ca3af; }
/* Drawers */
.drawer-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 500; backdrop-filter: blur(3px); }
.drawer-overlay.open { display: block; }
.search-drawer {
  position: fixed; bottom: -100%; left: 0; right: 0;
  max-height: 90dvh; background: #fff; border-radius: 20px 20px 0 0;
  box-shadow: 0 -8px 40px rgba(0,0,0,.2); z-index: 600;
  display: flex; flex-direction: column;
  transition: bottom .32s cubic-bezier(.4,0,.2,1);
}
.search-drawer.open { bottom: 0; }
@media (min-width: 640px) {
  .search-drawer {
    left: 50%; right: auto; bottom: auto; top: 50%;
    width: min(680px,95vw); max-height: 85vh; border-radius: 16px;
    transform: translate(-50%,-40%); opacity: 0;
    transition: transform .28s, opacity .28s; pointer-events: none;
  }
  .search-drawer.open { transform: translate(-50%,-50%); opacity: 1; pointer-events: auto; }
}
.drawer-handle { width: 36px; height: 4px; background: #e5e7eb; border-radius: 2px; margin: 10px auto 4px; flex-shrink: 0; }
@media (min-width: 640px) { .drawer-handle { display: none; } }
.drawer-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid #f3f4f6; flex-shrink: 0; }
.drawer-title { font-size: 16px; font-weight: 700; color: #111; }
.drawer-close { width: 32px; height: 32px; border-radius: 50%; border: 1px solid #e5e7eb; background: #f9fafb; font-size: 16px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .15s; color: #6b7280; }
.drawer-close:hover { background: #f3f4f6; }
.drawer-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.region-table {}
.rrow { display: flex; align-items: flex-start; gap: 16px; padding: 12px 20px; border-bottom: 1px solid #f7f7f7; }
.rlabel { width: 72px; font-size: 13px; font-weight: 700; color: #111; flex-shrink: 0; padding-top: 4px; }
.ritems { flex: 1; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.crow { display: flex; align-items: flex-start; gap: 16px; padding: 12px 20px; border-bottom: 1px solid #f7f7f7; }
.clabel { width: 90px; font-size: 13px; font-weight: 700; color: #111; flex-shrink: 0; padding-top: 4px; }
.citems { flex: 1; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.fck { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; color: #374151; user-select: none; padding: 5px 0; white-space: nowrap; }
.fck:hover .fcb { border-color: #16a34a; background: #f0fdf4; }
.fcb { width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid #d1d5db; background: #f5f5f5; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all .15s; }
.fck.checked .fcb { border-color: #16a34a; background: #16a34a; }
.fck.checked .fcb::after { content: ""; display: block; width: 5px; height: 9px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg) translateY(-1px); }
.drawer-footer { padding: 14px 20px; border-top: 1px solid #f3f4f6; display: flex; gap: 10px; flex-shrink: 0; background: #fff; }
.drawer-reset { height: 48px; padding: 0 20px; border-radius: 8px; border: 1.5px solid #e5e7eb; background: transparent; color: #6b7280; font-size: 14px; font-family: var(--font); cursor: pointer; }
.drawer-reset:hover { border-color: #6b7280; }
.drawer-apply { flex: 1; height: 48px; border-radius: 8px; border: none; background: #16a34a; color: #fff; font-size: 15px; font-weight: 700; font-family: var(--font); cursor: pointer; transition: background .15s; }
.drawer-apply:hover { background: #15803d; }
.dist-badge { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 9px; background: #f0fdf4; color: #15803d; font-size: 10px; font-weight: 700; border: 1px solid #bbf7d0; margin-left: 2px; }

/* ================================================================
   HEADER — clean white, google-style
   ================================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--sh-xs);
}

.header-top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 24px;
  max-width: 1280px;
  margin: 0 auto;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--t1);
  text-decoration: none;
  flex-shrink: 0;
}
.logo-mark {
  width: 34px;
  height: 34px;
  background: var(--brand-mid);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.logo-text {
  font-size: 15px;
  font-weight: 700;
  color: var(--t1);
  white-space: nowrap;
  letter-spacing: -.02em;
}
.logo-sub {
  font-size: 11px;
  color: var(--t3);
  font-weight: 400;
  margin-top: -2px;
  display: block;
}

/* Search bar — Airbnb style */
.search-box {
  flex: 1;
  max-width: 520px;
  position: relative;
}
.search-box input {
  width: 100%;
  height: 42px;
  padding: 0 16px 0 44px;
  border-radius: 24px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--t1);
  font-size: 14px;
  font-family: var(--font);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.search-box input::placeholder { color: var(--t4); }
.search-box input:focus {
  border-color: var(--brand-mid);
  box-shadow: 0 0 0 3px rgba(22,163,74,.1);
  background: var(--surface);
}
.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--t3);
  font-size: 16px;
  pointer-events: none;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.header-count {
  font-size: 13px;
  color: var(--t3);
  white-space: nowrap;
}
.header-count strong { color: var(--t1); font-weight: 600; }

/* ヒーロー通過後にヘッダーをフェードイン */
.site-header {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .25s, transform .25s;
  pointer-events: none;
}
.site-header.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ── Area nav ── */
/* --- 都道府県タブ --- */
.pref-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.pref-nav::-webkit-scrollbar { display: none; }
.pref-nav-inner {
  display: inline-flex;
  padding: 0 24px;
  gap: 4px;
}
.pref-tab {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--t3);
  border: none;
  background: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}
.pref-tab:hover  { color: var(--brand-mid); }
.pref-tab.active { color: var(--brand); border-bottom-color: var(--brand); }

/* --- 都道府県セクションヘッダー --- */
.pref-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0 6px;
  margin: 16px 0 0;
  border-bottom: 2px solid var(--brand);
}
.pref-label {
  font-size: 15px;
  font-weight: 800;
  color: var(--brand);
}
.pref-count {
  font-size: 12px;
  color: var(--t3);
  background: var(--bg);
  padding: 1px 7px;
  border-radius: 10px;
}

.area-nav {
  border-top: 1px solid var(--border);
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  background: var(--surface);
}
.area-nav::-webkit-scrollbar { display: none; }
.area-nav-inner {
  display: inline-flex;
  padding: 0 24px;
  max-width: 1280px;
  gap: 2px;
}
.area-nav a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--t3);
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}
.area-nav a:hover  { color: var(--brand-mid); border-bottom-color: var(--brand-border); }
.area-nav a.active { color: var(--brand);     border-bottom-color: var(--brand); }
.nav-count {
  background: var(--bg);
  border-radius: 8px;
  padding: 1px 5px;
  font-size: 10px;
}
.nav-divider { color: var(--border); font-size: 18px; align-self: center; padding: 0 4px; }

/* ================================================================
   FILTER BAR — Google Hotels style
   ================================================================ */
.filter-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.filter-bar::-webkit-scrollbar { display: none; }
.filter-bar-inner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  min-width: 100%;
}
.filter-sep { width: 1px; height: 20px; background: var(--border); flex-shrink: 0; margin: 0 2px; }

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  padding: 0 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--t2);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: all .15s;
}
.filter-chip:hover { border-color: var(--t2); background: var(--hover); }
.filter-chip.active {
  border-color: var(--t1);
  background: var(--t1);
  color: #fff;
}
.chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* 詳細検索ボタン */
.adv-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  border-radius: 20px;
  border: 1.5px solid var(--brand-mid);
  background: var(--brand-pale);
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: all .15s;
  flex-shrink: 0;
}
.adv-filter-btn:hover { background: var(--brand-mid); color: #fff; }
.adv-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  background: var(--brand);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 0 4px;
}

/* ================================================================
   SORT + ACTIVE FILTERS
   ================================================================ */
.sort-wrap { max-width: 1280px; margin: 0 auto; }
.sort-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.sort-bar::-webkit-scrollbar { display: none; }
.sort-label { font-size: 12px; color: var(--t4); flex-shrink: 0; }
.sort-btn {
  height: 28px;
  padding: 0 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--t3);
  font-size: 12px;
  font-family: var(--font);
  white-space: nowrap;
  transition: all .15s;
}
.sort-btn:hover { border-color: var(--t3); color: var(--t2); }
.sort-btn.active {
  border-color: var(--t1);
  background: var(--t1);
  color: #fff;
  font-weight: 600;
}

/* Active filter pills */
.active-filters-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 0 24px 10px;
  max-width: 1280px;
  margin: 0 auto;
}
.af-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 26px;
  padding: 0 10px;
  border-radius: 13px;
  background: var(--brand-pale);
  border: 1px solid var(--brand-border);
  font-size: 12px;
  color: var(--brand);
}
.af-pill button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--brand);
  font-size: 14px;
  line-height: 1;
  padding: 0;
}
.af-clear { font-size: 12px; color: var(--t4); background: none; border: none; text-decoration: underline; }

/* ================================================================
   MAIN
   ================================================================ */
.site-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 24px 60px;
}

/* Intro */
.intro-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 20px 24px;
  margin-bottom: 20px;
}
.intro-box h2 { font-size: 15px; font-weight: 700; color: var(--t1); margin-bottom: 6px; }
.intro-box p  { font-size: 13px; color: var(--t3); line-height: 1.8; }
.intro-box a  { color: var(--brand-mid); text-decoration: underline; }

/* Ranking */
.ranking-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 20px 24px;
  margin-bottom: 20px;
}
.section-title { font-size: 16px; font-weight: 700; color: var(--t1); margin-bottom: 4px; }
.section-desc  { font-size: 12px; color: var(--t4); margin-bottom: 14px; }

.rank-table-wrap { overflow-x: auto; }
.rank-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.rank-table th {
  padding: 8px 14px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: var(--t4);
  text-transform: uppercase;
  letter-spacing: .06em;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.rank-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--bg);
  white-space: nowrap;
}
.rank-table tbody tr:hover td { background: var(--bg); }
.rank-1 td { background: #FFFBEB; }
.rank-2 td { background: #FAFAFA; }
.rank-3 td { background: #FFF7ED; }
.price-highlight { font-weight: 700; color: var(--brand); }

/* 24h pills */
.tags-24h { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tag-24h-pill {
  display: inline-flex; align-items: center;
  height: 28px; padding: 0 12px;
  border-radius: 14px;
  background: #EFF6FF; border: 1px solid #BFDBFE;
  color: #1D4ED8; font-size: 12px; font-weight: 500;
}

/* Ward Section */
.ward-section { margin-bottom: 36px; }
.ward-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  scroll-margin-top: 110px;
}
.ward-heading h2 { font-size: 16px; font-weight: 700; color: var(--t1); }
.ward-count {
  font-size: 12px;
  color: var(--t4);
  background: var(--bg);
  border-radius: 10px;
  padding: 2px 9px;
  border: 1px solid var(--border);
}

/* ================================================================
   CARDS GRID
   ================================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 1100px) { .cards-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 760px)  { .cards-grid { grid-template-columns: repeat(2,1fr); gap: 12px; } }
@media (max-width: 480px)  { .cards-grid { grid-template-columns: 1fr; } }

/* ================================================================
   FACILITY CARD — Airbnb-inspired
   ================================================================ */
.card {
  background: var(--surface);
  border-radius: var(--r-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--sh-sm);
  border: 1px solid var(--border);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-lg);
}

/* Thumbnail — clean gradient, no text inside */
.card-thumb {
  position: relative;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
/* Gradient by type — more refined */
.thumb-outdoor  { background: linear-gradient(135deg, #166534 0%, #15803d 40%, #16a34a 100%); }
.thumb-indoor   { background: linear-gradient(135deg, #1e3a5f 0%, #1d4ed8 100%); }
.thumb-simulator{ background: linear-gradient(135deg, #1e1b4b 0%, #4338ca 100%); }

/* Subtle mesh pattern overlay */
.card-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255,255,255,.08) 0%, transparent 60%),
    radial-gradient(circle, rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: auto, 16px 16px;
}
.thumb-emoji {
  font-size: 3rem;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.3));
  user-select: none;
}

/* Top-right: type label */
.thumb-type {
  position: absolute;
  top: 10px;
  right: 10px;
  height: 22px;
  padding: 0 9px;
  border-radius: 11px;
  background: rgba(0,0,0,.25);
  backdrop-filter: blur(4px);
  color: rgba(255,255,255,.95);
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  z-index: 2;
}

/* Bottom-left: yard badge */
.thumb-yard {
  position: absolute;
  bottom: 10px;
  left: 10px;
  height: 22px;
  padding: 0 9px;
  border-radius: 11px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  z-index: 2;
}
.yard-l { background: #ef4444; color: #fff; }
.yard-m { background: #f97316; color: #fff; }
.yard-s { background: #22c55e; color: #fff; }

/* Bottom-right: favorite */
.fav-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.85);
  color: var(--t4);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: color .15s, background .15s;
}
.fav-btn:hover { color: #ef4444; background: #fff; }
.fav-btn.active { color: #ef4444; }


/* ── Card Body ── */
.card-body {
  padding: 14px 16px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Price + ward row */
.card-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.ward-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-pale);
  border: 1px solid var(--brand-border);
  padding: 2px 8px;
  border-radius: var(--r-xs);
}
/* Price pill — right aligned */
.price-pill {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 12px;
  white-space: nowrap;
}
.pp-cheap   { background: var(--p-cheap-bg); color: var(--p-cheap-tx); }
.pp-mid     { background: var(--p-mid-bg);   color: var(--p-mid-tx); }
.pp-high    { background: var(--p-high-bg);  color: var(--p-high-tx); }
.pp-monthly { background: var(--p-mon-bg);   color: var(--p-mon-tx); }
.pp-unknown { background: var(--p-unk-bg);   color: var(--p-unk-tx); }

/* Name */
.card-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--t1);
  line-height: 1.35;
  letter-spacing: -.01em;
}
.card-name a { color: inherit; text-decoration: none; }
.card-name a:hover { color: var(--brand); text-decoration: underline; }

/* Meta info */
.card-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.meta-line {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 12px;
  color: var(--t3);
  line-height: 1.5;
}
.meta-line .ico { flex-shrink: 0; font-size: 11px; opacity: .8; }
.meta-line strong { color: var(--t2); font-weight: 600; }

/* Tags */
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.ctag {
  height: 20px;
  padding: 0 7px;
  border-radius: var(--r-xs);
  font-size: 11px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  background: var(--bg);
  color: var(--t3);
  border: 1px solid var(--border);
}
.ct-24h    { background: #EFF6FF; color: #1D4ED8; border-color: #BFDBFE; }
.ct-lesson { background: #F5F3FF; color: #6D28D9; border-color: #DDD6FE; }
.ct-women  { background: #FDF2F8; color: #9D174D; border-color: #FBCFE8; }
.ct-cheap  { background: var(--p-cheap-bg); color: var(--p-cheap-tx); border-color: #86EFAC; }
.ct-top    { background: #FFF7ED; color: #C2410C; border-color: #FED7AA; }
.ct-early  { background: var(--brand-pale); color: var(--brand); border-color: var(--brand-border); }
.ct-park   { background: #F8FAFC; color: #475569; border-color: #CBD5E1; }
.ct-pub    { background: #F0F9FF; color: #0369A1; border-color: #BAE6FD; }

/* ── Card Footer ── */
.card-footer {
  padding: 10px 16px;
  border-top: 1px solid var(--bg);
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-map {
  flex: 1;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: var(--r-sm);
  background: var(--brand-mid);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  transition: background .15s;
}
.btn-map:hover { background: var(--brand); color: #fff; }
.btn-web {
  height: 34px;
  width: 34px;
  border-radius: var(--r-sm);
  background: var(--bg);
  color: var(--t3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  transition: background .15s;
  border: 1px solid var(--border);
}
.btn-web:hover { background: var(--border); }

/* ── No Result ── */
#no-result {
  display: none;
  text-align: center;
  padding: 80px 24px;
  color: var(--t4);
}
.no-result-icon { font-size: 3.5rem; margin-bottom: 16px; }
#no-result p { font-size: 16px; color: var(--t3); margin-bottom: 8px; font-weight: 500; }
#no-result small { font-size: 13px; }

/* ── Ad ── */
.ad-unit {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  margin: 16px 0;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* ── FAQ ── */
.faq-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 20px 24px;
  margin-bottom: 20px;
}
.faq-section details {
  border-bottom: 1px solid var(--bg);
}
.faq-section details:last-child { border-bottom: none; }
.faq-section summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--t2);
  list-style: none;
  padding: 13px 0 13px 28px;
  position: relative;
  user-select: none;
  transition: color .15s;
}
.faq-section summary::-webkit-details-marker { display: none; }
.faq-section summary::before {
  content: "Q";
  position: absolute; left: 0; top: 13px;
  width: 20px; height: 20px;
  background: var(--brand-mid); color: #fff;
  font-size: 11px; font-weight: 700;
  border-radius: var(--r-xs);
  display: flex; align-items: center; justify-content: center;
  text-align: center; line-height: 20px;
}
.faq-section details[open] summary { color: var(--brand); }
.faq-section details p {
  padding: 6px 0 13px 28px;
  font-size: 13px;
  color: var(--t3);
  line-height: 1.8;
}

/* ── Guide ── */
.guide-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 20px 24px;
  margin-bottom: 20px;
}
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px,1fr));
  gap: 12px;
  margin-top: 14px;
}
.guide-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 16px;
}
.guide-icon { font-size: 1.6rem; margin-bottom: 10px; }
.guide-card h3 { font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--t1); }
.guide-card p  { font-size: 12px; color: var(--t3); line-height: 1.75; }

/* ── Footer ── */
footer {
  background: #111827;
  color: rgba(255,255,255,.45);
  text-align: center;
  padding: 40px 24px;
  font-size: 12px;
  line-height: 2.2;
  margin-top: 40px;
}
footer .f-logo { font-size: 14px; font-weight: 700; color: rgba(255,255,255,.85); margin-bottom: 4px; }
footer a { color: rgba(255,255,255,.65); }
footer a:hover { color: #fff; }

/* ================================================================
   詳細検索モーダル
   ================================================================ */
.filter-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 300;
  backdrop-filter: blur(2px);
}
.filter-overlay.open { display: block; }

.filter-modal {
  position: fixed;
  top: 0;
  right: -500px;
  width: min(480px, 100vw);
  height: 100dvh;
  background: var(--surface);
  z-index: 400;
  display: flex;
  flex-direction: column;
  transition: right .3s cubic-bezier(.4,0,.2,1);
  box-shadow: -6px 0 30px rgba(0,0,0,.15);
}
.filter-modal.open { right: 0; }

.filter-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.fm-title { font-size: 16px; font-weight: 700; color: var(--t1); }
.fm-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--t2);
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.fm-close:hover { background: var(--hover); }

.filter-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.fm-group { display: flex; flex-direction: column; gap: 10px; }
.fm-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--t1);
}
.fm-hint { font-size: 11px; color: var(--t4); }

/* 駅名入力 */
.station-wrap { position: relative; }
.station-input {
  width: 100%;
  height: 42px;
  padding: 0 42px 0 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  font-size: 14px;
  font-family: var(--font);
  color: var(--t1);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  background: var(--bg);
}
.station-input:focus {
  border-color: var(--brand-mid);
  box-shadow: 0 0 0 3px rgba(22,163,74,.1);
  background: var(--surface);
}
.station-input::placeholder { color: var(--t4); }
.station-icon {
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--t4); font-size: 15px; pointer-events: none;
}
.station-suggestions {
  display: none;
  position: absolute;
  top: calc(100% + 4px); left: 0; right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--sh-md);
  z-index: 10;
  max-height: 220px;
  overflow-y: auto;
}
.sug-item {
  padding: 10px 16px;
  font-size: 13px;
  cursor: pointer;
  border-bottom: 1px solid var(--bg);
  transition: background .1s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sug-item:last-child { border-bottom: none; }
.sug-item:hover { background: var(--brand-pale); }
.sug-item mark { background: none; color: var(--brand-mid); font-weight: 700; }

/* Ward chips */
.modal-chip-wrap { display: flex; flex-wrap: wrap; gap: 6px; }
.ward-chip-count {
  background: rgba(0,0,0,.06);
  border-radius: 6px;
  padding: 0 5px;
  font-size: 10px;
  margin-left: 2px;
}

/* Chips */
.modal-chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.modal-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 34px;
  padding: 0 14px;
  border-radius: 17px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--t2);
  font-size: 13px;
  font-family: var(--font);
  white-space: nowrap;
  transition: all .15s;
}
.modal-chip:hover { border-color: var(--t2); background: var(--hover); }
.modal-chip.active {
  border-color: var(--t1);
  background: var(--t1);
  color: #fff;
  font-weight: 600;
}
.modal-chip.active .ward-chip-count { background: rgba(255,255,255,.2); }

/* Modal footer */
.filter-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.fm-reset {
  height: 46px;
  padding: 0 20px;
  border-radius: var(--r);
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--t2);
  font-size: 14px;
  font-family: var(--font);
  transition: all .15s;
}
.fm-reset:hover { border-color: var(--t2); }
.fm-apply {
  flex: 1;
  height: 46px;
  border-radius: var(--r);
  border: none;
  background: var(--t1);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font);
  transition: background .15s;
}
.fm-apply:hover { background: #374151; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 768px) {
  .hero { padding: 28px 14px 24px; }
  .hero-title { font-size: 1.4rem; }
  .hero-logo-mark { font-size: 2rem; }
  .stab { font-size: 12px; height: 42px; }
  .hero-search-btn { width: 72px; font-size: 14px; }


  .header-top { padding: 10px 16px; }
  .logo-text, .logo-sub { display: none; }
  .area-nav-inner { padding: 0 16px; }
  .filter-bar-inner { padding: 8px 16px; }
  .sort-bar, .active-filters-bar { padding-left: 16px; padding-right: 16px; }
  .site-main { padding: 14px 16px 60px; }
  .ranking-section, .faq-section, .guide-section, .intro-box { padding: 16px; }
  .guide-grid { grid-template-columns: 1fr 1fr; }

  /* Mobile: bottom sheet */
  .filter-modal {
    top: auto; right: 0; bottom: -100vh; width: 100vw;
    height: 92dvh;
    border-radius: 20px 20px 0 0;
    transition: bottom .3s cubic-bezier(.4,0,.2,1);
  }
  .filter-modal.open { bottom: 0; }
}
@media (max-width: 480px) {
  .guide-grid { grid-template-columns: 1fr; }
  .card-thumb { height: 110px; }
  .thumb-emoji { font-size: 2.4rem; }
}

/* ── Drawer other-pref rows ── */
.rrow-pref { border-top: 2px solid #e5e7eb; margin-top: 4px; padding-top: 8px; }
.rrow-pref .rlabel { color: #2563eb; font-weight: 700; }

/* ── Affiliate Section ── */
.affiliate-section {
  margin: 32px 0;
  padding: 28px 20px;
  background: linear-gradient(135deg, #f0fdf4 0%, #f0f9ff 100%);
  border-radius: 16px;
  border: 1px solid #d1fae5;
}
.aff-header { margin-bottom: 20px; }
.aff-disclosure {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 4px;
}
.aff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 640px) { .aff-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 400px) { .aff-grid { grid-template-columns: 1fr; } }

.aff-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  padding: 16px 14px;
  text-decoration: none;
  color: inherit;
  border: 1px solid #e5e7eb;
  transition: box-shadow .15s, transform .15s;
  gap: 6px;
}
.aff-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
  transform: translateY(-2px);
  border-color: #6ee7b7;
}
.aff-icon { font-size: 2rem; line-height: 1; }
.aff-name { font-weight: 700; font-size: 14px; color: #111827; }
.aff-desc { font-size: 12px; color: #6b7280; line-height: 1.5; flex: 1; }
.aff-cta  {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #059669;
  display: flex;
  align-items: center;
  gap: 4px;
}
.aff-card:hover .aff-cta { color: #047857; }

/* ── View Toggle ── */
.view-toggle {
  display: flex;
  gap: 4px;
  background: #f3f4f6;
  border-radius: 8px;
  padding: 3px;
  margin-left: auto;
}
.vt-btn {
  padding: 6px 14px;
  border: none;
  background: transparent;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  transition: all .15s;
}
.vt-btn.active {
  background: #fff;
  color: #111827;
  box-shadow: 0 1px 3px rgba(0,0,0,.12);
}
.vt-btn:hover:not(.active) { color: #374151; }

/* ── Map Container ── */
#map-view {
  display: none;
  width: 100%;
  height: 520px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid #e5e7eb;
}
#map-view.map-active { display: block; }
@media (max-width: 600px) { #map-view { height: 420px; } }

/* ── Map Popup ── */
.map-popup { font-size: 13px; line-height: 1.5; min-width: 160px; }
.mp-name   { font-weight: 700; font-size: 14px; color: #111827; margin-bottom: 4px; }
.mp-meta   { color: #6b7280; font-size: 12px; margin-bottom: 4px; }
.mp-price  { font-weight: 600; color: #059669; margin-bottom: 4px; }
.mp-type   {
  display: inline-block;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  margin-bottom: 6px;
}
.mp-link   { display: block; margin-top: 4px; }
.mp-link a { color: #2563eb; text-decoration: none; font-weight: 600; font-size: 12px; }
.mp-link a:hover { text-decoration: underline; }
