:root {
  --accent: #d62246;
  --accent-dark: #a3132f;
  --ink: #2b2024;
  --ink-soft: #6b5a5f;
  --line: #eee3de;
  --bg: #fdf9f7;
  --radius: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, system-ui, sans-serif;
  line-height: 1.6;
}

/* ---------- ヒーロー ---------- */
.hero {
  background: linear-gradient(120deg, #8e0e26 0%, #d62246 60%, #f0633f 100%);
  color: #fff;
  padding: 36px 18px 34px;
  text-align: center;
}
.hero h1 { margin: 0; font-size: clamp(1.4rem, 4.5vw, 2.2rem); letter-spacing: .02em; }
.hero-sub { margin: 8px 0 0; font-size: clamp(.78rem, 2.4vw, .95rem); opacity: .94; }
.hero-num { font-weight: 800; font-size: 1.25em; }
.hero-mapbtn {
  margin-top: 18px;
  background: #fff;
  color: var(--accent-dark);
  border: none;
  cursor: pointer;
  font-weight: 800;
  font-size: 1rem;
  border-radius: 999px;
  padding: 13px 30px;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  transition: transform .12s;
}
.hero-mapbtn:hover { transform: scale(1.04); }

/* ---------- 絞り込みバー ---------- */
.bar {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(120,40,50,.06);
}
.bar-main {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px 16px 8px;
  max-width: 1200px;
  margin: 0 auto;
}
#f-q {
  flex: 1;
  min-width: 0;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: .88rem;
  background: #fff;
  color: var(--ink);
}
#f-q:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.bar select {
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: .82rem;
  background: #fff;
  color: var(--ink);
}
.bar-mapbtn {
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: 800;
  font-size: .85rem;
  border-radius: 999px;
  padding: 9px 16px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(214,34,70,.35);
}
.bar-mapbtn:hover { background: var(--accent-dark); }
.cnt {
  font-size: .8rem;
  font-weight: 800;
  color: var(--accent-dark);
  white-space: nowrap;
}

/* 詳細絞り込み（折りたたみ） */
.bar-more { max-width: 1200px; margin: 0 auto; }
.bar-more > summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 16px 9px;
  font-size: .8rem;
  font-weight: 700;
  color: var(--ink-soft);
}
.bar-more > summary::-webkit-details-marker { display: none; }
.bar-more .caret { transition: transform .2s; }
.bar-more[open] .caret { transform: rotate(180deg); }
.active-filters {
  color: var(--accent-dark);
  background: #ffe9e1;
  border-radius: 999px;
  padding: 1px 9px;
  font-size: .72rem;
}
.active-filters:empty { display: none; }
.bar-body { padding: 2px 16px 13px; }

.frow {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 9px;
}
.frow:last-child { margin-bottom: 0; }
.flabel {
  font-size: .73rem;
  font-weight: 700;
  color: var(--ink-soft);
  min-width: 3.8em;
}
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  --c: var(--accent);
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 4px 11px;
  font-size: .78rem;
  cursor: pointer;
  user-select: none;
  transition: all .12s;
  line-height: 1.4;
}
.chip:hover { border-color: var(--c); color: var(--c); }
.chip.active { background: var(--c); border-color: var(--c); color: #fff; }

.seg { display: flex; gap: 0; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.seg button {
  border: none;
  background: #fff;
  color: var(--ink-soft);
  font-size: .76rem;
  padding: 5px 12px;
  cursor: pointer;
  border-right: 1px solid var(--line);
}
.seg button:last-child { border-right: none; }
.seg button.on { background: var(--accent); color: #fff; font-weight: 700; }
.resetbtn, .linklike {
  background: none;
  border: none;
  color: var(--accent-dark);
  font-size: .76rem;
  cursor: pointer;
  text-decoration: underline;
  margin-left: auto;
}

/* ---------- グリッド ---------- */
.grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 16px 80px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.gcard {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(120,40,50,.07);
  transition: transform .12s, box-shadow .12s;
  display: flex;
  flex-direction: column;
}
.gcard:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(120,40,50,.16); }
.gphoto {
  display: block;
  height: 165px;
  background-size: cover;
  background-position: center;
  position: relative;
  text-decoration: none;
}
.gbody h2 a { color: inherit; text-decoration: none; }
.gbody h2 a:hover { color: var(--accent-dark); }
.gphoto .badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: .72rem;
  font-weight: 700;
  color: #fff;
  padding: 4px 11px;
  border-radius: 999px;
  box-shadow: 0 1px 4px rgba(0,0,0,.25);
}
.gphoto .pandas {
  position: absolute;
  bottom: 8px;
  right: 10px;
  font-size: .78rem;
  letter-spacing: 1px;
  background: rgba(0,0,0,.45);
  border-radius: 999px;
  padding: 2px 8px;
}
.pandas .off { filter: grayscale(1); opacity: .35; }
.pandas .g-label {
  font-size: .64rem;
  font-weight: 700;
  color: #fff;
  margin-right: 4px;
  letter-spacing: .04em;
  vertical-align: 1px;
}

/* 昼/夜タグ */
.meal-tag {
  position: absolute;
  bottom: 8px;
  left: 10px;
  font-size: .7rem;
  font-weight: 700;
  color: #5a3d00;
  background: rgba(255,236,179,.95);
  border-radius: 999px;
  padding: 2px 9px;
}
.meal-tag.night { color: #e8e4ff; background: rgba(43,38,66,.85); }

/* ゾーン行（エリア絞り込み） */
#district-filters { display: flex; flex-direction: column; gap: 7px; }
.zone-row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.zone-chip {
  font-weight: 800;
  border-style: dashed;
  --c: var(--accent-dark);
}
.gbody { padding: 13px 15px 14px; display: flex; flex-direction: column; flex: 1; }
.gbody h2 { margin: 0; font-size: 1.02rem; line-height: 1.4; font-weight: 700; }
.gprice { color: var(--accent-dark); font-weight: 800; font-size: .92rem; margin: 7px 0 4px; }
.gbuffet { font-size: .78rem; color: var(--ink); margin: 0 0 6px; line-height: 1.55; }
.gsub { font-size: .75rem; color: var(--ink-soft); line-height: 1.6; }
.gcaution {
  font-size: .73rem;
  color: #8a5a00;
  background: #fff4d6;
  border: 1px solid #f0d68a;
  border-radius: 8px;
  padding: 5px 9px;
  margin: 7px 0 0;
  line-height: 1.5;
}
.gbtns { margin-top: auto; padding-top: 11px; display: flex; gap: 8px; flex-wrap: wrap; }
.gbtn {
  font-size: .76rem;
  text-decoration: none;
  border-radius: 8px;
  padding: 6px 10px;
  border: 1.5px solid var(--accent);
  color: var(--accent-dark);
  background: #fff;
}
.gbtn:hover { background: #ffe9e1; }
.gbtn.p { background: var(--accent); color: #fff; }
.gbtn.p:hover { background: var(--accent-dark); }

.empty {
  text-align: center;
  color: var(--ink-soft);
  padding: 50px 16px 90px;
  font-size: .9rem;
}

/* ---------- 地図オーバーレイ & FAB ---------- */
.overlay { position: fixed; inset: 0; z-index: 1500; background: #fff; }
#bigmap { width: 100%; height: 100%; }
.closebtn {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1600;
  background: var(--ink);
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 11px 18px;
  font-size: .9rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
}

.mapfab {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: linear-gradient(120deg, var(--accent) 0%, #f0633f 100%);
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 15px 34px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .02em;
  box-shadow: 0 8px 24px rgba(214,34,70,.45);
  animation: fabpulse 2.4s ease-in-out infinite;
}
.mapfab:hover { animation-play-state: paused; transform: translateX(-50%) scale(1.05); }
@keyframes fabpulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(214,34,70,.45); }
  50%      { box-shadow: 0 8px 34px rgba(214,34,70,.75); }
}

/* 地図ポップアップ */
.leaflet-popup-content { margin: 10px 12px; }
.popup-title { font-weight: 700; font-size: .95rem; margin-bottom: 3px; }
.popup-price { color: var(--accent-dark); font-weight: 700; font-size: .85rem; }
.popup-link { display: inline-block; margin-top: 6px; font-size: .8rem; }

/* ---------- 店舗詳細ページ ---------- */
.dheader {
  background: linear-gradient(120deg, #8e0e26 0%, #d62246 100%);
  padding: 14px 18px;
}
.dheader a { color: #fff; text-decoration: none; font-weight: 700; font-size: .9rem; }
.detail {
  max-width: 760px;
  margin: 22px auto 30px;
  padding: 0 16px;
}
.dphoto {
  height: 240px;
  border-radius: var(--radius) var(--radius) 0 0;
  background-size: cover;
  background-position: center;
  position: relative;
  border: 1px solid var(--line);
  border-bottom: none;
}
.dphoto .badge { position: absolute; top: 12px; left: 12px; font-size: .78rem; font-weight: 700; color: #fff; padding: 5px 13px; border-radius: 999px; }
.dphoto .pandas { position: absolute; bottom: 10px; right: 12px; font-size: .9rem; background: rgba(0,0,0,.45); border-radius: 999px; padding: 3px 10px; }
.dbody {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 20px 22px 24px;
  box-shadow: 0 2px 10px rgba(120,40,50,.07);
}
.dbody h1 { margin: 0; font-size: 1.4rem; line-height: 1.4; }
.dmeal { margin: 8px 0 0; font-size: .85rem; font-weight: 700; color: var(--ink-soft); }
.detail .gprice { font-size: 1.08rem; margin: 12px 0 8px; }
.meta-table { margin: 14px 0; border-top: 1px solid var(--line); font-size: .88rem; }
.meta-table > div { display: flex; gap: 12px; padding: 9px 2px; border-bottom: 1px solid var(--line); line-height: 1.6; }
.meta-table span { flex-shrink: 0; width: 5.5em; font-size: .76rem; font-weight: 700; color: var(--ink-soft); padding-top: 2px; }
.detail .note { font-size: .86rem; background: #fbf2ee; border-radius: 8px; padding: 10px 12px; color: var(--ink); line-height: 1.7; }
.detail .gbtns { margin: 16px 0; }
#dmap {
  height: 300px;
  border-radius: 12px;
  border: 1px solid var(--line);
  margin-top: 6px;
}
.ig-section { margin: 18px 0 14px; }
.ig-title { font-size: .95rem; margin: 0 0 10px; color: var(--ink); }
.dnote { font-size: .72rem; color: var(--ink-soft); }
.detail-body { background: var(--bg); }
.detail-body .site-footer { text-align: center; }

/* ---------- フッター ---------- */
.site-footer {
  max-width: 1200px;
  margin: 0 auto 36px;
  padding: 0 16px;
  font-size: .74rem;
  color: var(--ink-soft);
}
.site-footer .updated { opacity: .8; }

/* ---------- モバイル ---------- */
@media (max-width: 640px) {
  .bar-main { flex-wrap: wrap; }
  #f-q { flex-basis: 100%; order: -1; }
  .grid { grid-template-columns: 1fr; padding-bottom: 96px; }
  .gphoto { height: 150px; }
}
