/* 全国ハプニングバー マップ — ダーク基調・モバイルファースト */

:root {
  --bg:        #0e0f13;
  --bg-elev:   #16181f;
  --bg-card:   #1b1e27;
  --line:      #2a2e3a;
  --text:      #e7e9ee;
  --text-dim:  #a3a8b5;
  --accent:    #c9a15a;   /* 落ち着いた金 */
  --accent-2:  #d96a8f;   /* 控えめなローズ */
  --radius:    12px;
  --header-h:  56px;
  --header-stats-h: 32px;   /* ヘッダー下部の統計バー（本日◯人・反応数） */
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN",
               "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(180deg, #14161d, #101218);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 14px;
  max-width: 1280px;
  margin: 0 auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: .02em;
}
.brand:hover { text-decoration: none; }
.brand-mark { color: var(--accent-2); font-size: .7em; }

.area-filter select {
  appearance: none;
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 34px 9px 14px;
  font-size: .95rem;
  min-height: 40px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text-dim) 50%),
    linear-gradient(135deg, var(--text-dim) 50%, transparent 50%);
  background-position: calc(100% - 18px) center, calc(100% - 13px) center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.area-filter select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.preview-banner {
  background: #3a2a12;
  color: #f0d8a8;
  border-top: 1px solid #5a4420;
  text-align: center;
  font-size: .85rem;
  padding: 6px 10px;
}

/* ---------- レイアウト（モバイル: 縦積み） ---------- */
.layout {
  display: flex;
  flex-direction: column;
  max-width: 1280px;
  margin: 0 auto;
}
.map-pane {
  position: relative;
}
#map {
  width: 100%;
  height: 46vh;
  min-height: 280px;
  background: #0a0b0f;
}
.list-pane {
  padding: 14px;
}
.list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.result-count {
  font-weight: 700;
  color: var(--accent);
  font-size: 1rem;
}

.venue-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.venue-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 14px;
  cursor: pointer;
  transition: border-color .15s, transform .05s, background .15s;
}
.venue-card:hover { border-color: var(--accent); background: #20232e; }
.venue-card:active { transform: scale(.997); }
.venue-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* オススメ店舗（リスティング広告風の差別化） */
.venue-card.is-rec {
  position: relative;
  background: linear-gradient(180deg, #241f12, #1b1814);
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(201, 161, 90, .35), 0 6px 18px -8px rgba(201, 161, 90, .45);
}
.venue-card.is-rec:hover { background: linear-gradient(180deg, #2c2615, #221d16); }
.vc-rec-badge {
  display: inline-block;
  font-size: .72rem; font-weight: 800; letter-spacing: .03em;
  color: #1a1206; background: linear-gradient(180deg, #e7c989, #c9a15a);
  padding: 2px 10px; border-radius: 999px;
  margin-bottom: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.vc-name { font-weight: 700; font-size: 1.02rem; margin-bottom: 4px; }
.vc-addr { color: var(--text-dim); font-size: .86rem; margin-bottom: 8px; }
.vc-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.chip {
  display: inline-block;
  font-size: .76rem;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text-dim);
  background: #14161d;
  white-space: nowrap;
}
.chip-cat { color: #f0e0bd; border-color: #5a4a23; background: #2a2210; }
.chip-area { color: #cdd6e6; }
.chip-tag { color: #c8b8d6; }

.empty-msg { color: var(--text-dim); text-align: center; padding: 24px 0; }

/* ---------- InfoWindow ---------- */
.iw { color: #1a1a1a; max-width: 220px; }
.iw-name { font-weight: 700; margin-bottom: 4px; }
.iw-addr { font-size: .8rem; color: #555; margin-bottom: 6px; }
.iw-link { font-weight: 700; }

/* ---------- PC: 2カラム ---------- */
@media (min-width: 880px) {
  .layout {
    flex-direction: row;
    align-items: flex-start;
    height: calc(100vh - var(--header-h) - var(--header-stats-h));
    gap: 0;
  }
  .map-pane {
    flex: 1 1 58%;
    position: sticky;
    top: calc(var(--header-h) + var(--header-stats-h));
    align-self: stretch;
  }
  #map {
    height: calc(100vh - var(--header-h) - var(--header-stats-h));
    min-height: 0;
  }
  .list-pane {
    flex: 1 1 42%;
    max-width: 520px;
    height: calc(100vh - var(--header-h) - var(--header-stats-h));
    overflow-y: auto;
    border-left: 1px solid var(--line);
  }
}

/* ---------- venue.php 詳細ページ ---------- */
.venue-main {
  max-width: 820px;
  margin: 0 auto;
  padding: 16px 16px 60px;
}
.breadcrumb { margin: 4px 0 14px; }
.back-link { font-weight: 700; }

.venue-title {
  font-size: 1.4rem;
  line-height: 1.4;
  margin: 4px 0 10px;
}
.venue-address {
  color: var(--text-dim);
  margin: 0 0 12px;
  font-size: .95rem;
}
.venue-address .ico { margin-right: 6px; }

.venue-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }

.venue-map {
  width: 100%;
  height: 280px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 20px;
  background: #0a0b0f;
}

/* オーナー作成の整形済みHTMLブロック */
.rich-block {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 18px;
  overflow-x: auto;
}
.rich-block :first-child { margin-top: 0; }
.rich-block :last-child { margin-bottom: 0; }
.rich-block h2, .rich-block h3 { color: var(--accent); line-height: 1.4; }
.rich-block h2 { font-size: 1.18rem; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.rich-block a { color: var(--accent-2); }
.rich-block table {
  border-collapse: collapse;
  width: 100%;
  margin: 10px 0;
  font-size: .92rem;
}
.rich-block th, .rich-block td {
  border: 1px solid var(--line);
  padding: 7px 10px;
  text-align: left;
}
.rich-block th { background: #232734; color: var(--text); }
.rich-block img { max-width: 100%; height: auto; }
.rich-block ul, .rich-block ol { padding-left: 1.4em; }

.venue-phone {
  margin: 0 0 14px;
  font-size: 1rem;
}
.venue-phone .ico { margin-right: 6px; }
.venue-phone a { font-weight: 700; }
.chip-event { color: #f0c0d0; border-color: #5a2740; background: #2a1018; }

/* 一次情報リンク＋鮮度バッジ */
.link-with-badge { display: inline-flex; align-items: center; gap: 8px; }
.badge {
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
  line-height: 1.4;
}
.badge-ok   { color: #b9e6c2; background: #16301d; border: 1px solid #2f5a3a; }
.badge-warn { color: #f0c8a0; background: #33240f; border: 1px solid #6a4a1e; }
.btn-warn { opacity: .7; }

/* 要点として目立たせる情報ブロック */
.info-key { border-color: #44351a; }
.info-key .info-title { border-bottom-color: #44351a; }

/* 詳細（折りたたみ） */
.more-details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #14161d;
  margin-bottom: 18px;
}
.more-details > summary {
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 700;
  color: var(--accent);
  list-style: none;
  position: relative;
  padding-right: 36px;
}
.more-details > summary::-webkit-details-marker { display: none; }
.more-details > summary::after {
  content: '▾';
  position: absolute; right: 16px; top: 14px;
  transition: transform .15s;
}
.more-details[open] > summary::after { transform: rotate(180deg); }
.more-body { padding: 0 12px 6px; }
.more-note {
  color: var(--text-dim);
  font-size: .82rem;
  margin: 2px 4px 14px;
}

/* 構造化された情報ブロック */
.info-block {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 16px;
}
.info-title {
  font-size: 1.06rem;
  color: var(--accent);
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  line-height: 1.4;
}
.info-body {
  white-space: pre-line;      /* プレーンテキストの改行を保持 */
  word-break: break-word;
  color: var(--text);
  font-size: .95rem;
}

/* FAQ アコーディオン */
.faq-list { display: grid; gap: 8px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #14161d;
  overflow: hidden;
}
.faq-item > summary {
  cursor: pointer;
  padding: 11px 14px;
  font-weight: 700;
  font-size: .93rem;
  list-style: none;
  position: relative;
  padding-right: 34px;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after {
  content: '＋';
  position: absolute;
  right: 14px;
  color: var(--accent);
  font-weight: 700;
}
.faq-item[open] > summary::after { content: '−'; }
.faq-answer {
  padding: 0 14px 13px;
  white-space: pre-line;
  color: var(--text-dim);
  font-size: .9rem;
}

/* 利用規約（折りたたみ） */
.terms-toggle > summary {
  cursor: pointer;
  list-style: none;
  margin: 0;
}
.terms-toggle > summary::-webkit-details-marker { display: none; }
.terms-toggle[open] > summary { margin-bottom: 10px; }
.terms-toggle .info-body { color: var(--text-dim); font-size: .9rem; }

/* リンク・SNSボタン */
.venue-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 6px 0 24px;
}
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  border: 1px solid var(--line);
}
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn-site { background: var(--accent); color: #1a1300; border-color: var(--accent); }
.btn-sns  { background: var(--bg-card); color: var(--text); }

.venue-foot { margin-top: 24px; }

.not-found { text-align: center; padding: 60px 16px; }
.not-found h1 { font-size: 1.3rem; }

/* ===================== 申請フォーム / 管理パネル ===================== */

/* 一覧下・詳細下の申請リンク */
.list-foot { text-align: center; padding: 14px 0 6px; }
.submit-link {
  display: inline-block;
  font-size: .9rem;
  font-weight: 700;
  color: var(--accent);
  border: 1px dashed var(--line);
  border-radius: 999px;
  padding: 8px 16px;
}
.submit-link:hover { text-decoration: none; border-color: var(--accent); }
.venue-foot { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; }

/* フォームページ */
.form-main { max-width: 680px; margin: 0 auto; padding: 16px 16px 64px; }
.form-title { font-size: 1.3rem; margin: 6px 0 8px; }
.form-lead { color: var(--text-dim); font-size: .92rem; margin: 0 0 18px; }
.form-errors {
  background: #33120f; border: 1px solid #6a2820; border-radius: 10px;
  padding: 10px 14px; margin-bottom: 16px; color: #f0b8ad;
}
.form-errors p { margin: 4px 0; }
.form-done { text-align: center; padding: 40px 10px; }
.form-done h1 { font-size: 1.3rem; }

.intake-form { display: grid; gap: 14px; }
.fld { display: grid; gap: 6px; font-size: .9rem; font-weight: 700; color: var(--text-dim); }
.fld-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.req { color: #f0b8ad; font-size: .75rem; margin-left: 4px; }
.fld input,
.fld select,
.fld textarea {
  width: 100%;
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 1rem;
  font-weight: 400;
  font-family: inherit;
}
.fld textarea { resize: vertical; line-height: 1.6; }
.fld input:focus, .fld select:focus, .fld textarea:focus {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent);
}
.captcha-fld input { max-width: 120px; }
.btn-submit { margin-top: 6px; justify-content: center; }
.form-note { color: var(--text-dim); font-size: .8rem; margin-top: 4px; }

/* honeypot: 画面外へ（display:none はbotに見抜かれるため） */
.hp { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- 管理パネル ---------- */
.admin-main { max-width: 920px; margin: 0 auto; padding: 16px 14px 64px; }
.admin-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; }
.admin-bar h1 { font-size: 1.25rem; margin: 6px 0; }
.admin-meta { color: var(--text-dim); font-size: .85rem; }
.admin-meta strong { color: var(--accent); }
.admin-flash {
  background: #14301d; border: 1px solid #2f5a3a; color: #b9e6c2;
  border-radius: 10px; padding: 10px 14px; margin: 12px 0;
}

.sub-card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 16px; margin: 14px 0;
}
.sub-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.sub-type { font-size: .76rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.sub-type.is-change { color: #f0d8a8; background: #33270f; border: 1px solid #5a4420; }
.sub-type.is-new { color: #b9e6c2; background: #16301d; border: 1px solid #2f5a3a; }
.sub-id { color: var(--text-dim); font-size: .82rem; }
.sub-target { font-weight: 700; }
.sub-time { color: var(--text-dim); font-size: .76rem; margin-left: auto; }
.sub-message { background: #14161d; border-radius: 8px; padding: 8px 12px; font-size: .9rem; margin: 6px 0 12px; }

.diff-table { width: 100%; border-collapse: collapse; font-size: .86rem; margin-bottom: 12px; }
.diff-table th, .diff-table td { border: 1px solid var(--line); padding: 7px 10px; text-align: left; vertical-align: top; }
.diff-table thead th { background: #232734; }
.diff-table tbody th { width: 96px; color: var(--text-dim); font-weight: 700; }
.cell-old { color: var(--text-dim); white-space: pre-line; }
.cell-new { white-space: pre-line; }
.row-changed .cell-new { background: #2a2210; }
.chg { font-size: .7rem; color: #f0d8a8; border: 1px solid #5a4420; border-radius: 999px; padding: 1px 6px; margin-left: 4px; }

.sub-actions { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 12px; }
.sub-coords { display: flex; flex-wrap: wrap; gap: 10px; }
.sub-coords label, .sub-note { display: grid; gap: 4px; font-size: .8rem; color: var(--text-dim); font-weight: 700; }
.sub-coords input, .sub-coords select, .sub-note input {
  background: var(--bg-elev); color: var(--text); border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 10px; font-size: .92rem; font-weight: 400;
}
.sub-btns { display: flex; gap: 10px; }
.btn-warn-solid { background: #5a2820; color: #f0c8c0; border: 1px solid #6a3028; }

@media (max-width: 480px) {
  .fld-row { grid-template-columns: 1fr; }
  .sub-time { margin-left: 0; width: 100%; }
}

/* 申請URL（新規登録カード）/ 下書きレビュー */
.sub-url { font-size: .9rem; margin: 6px 0; word-break: break-all; }
.sub-hint { color: var(--text-dim); font-size: .82rem; margin: 0 0 10px; }
.draft-section { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 16px; }
.draft-section > h2 { font-size: 1.1rem; color: var(--accent); display: flex; align-items: center; gap: 8px; }
.draft-count { font-size: .8rem; background: #33270f; color: #f0d8a8; border: 1px solid #5a4420; border-radius: 999px; padding: 1px 9px; }
.draft-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin: 12px 0; }
.draft-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }

/* ===================== ラベル / 並び順 / 更新日 ===================== */
/* ラベル（シンプル・フラット・統一） */
.vc-labels { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
/* クリックで絞り込めるラベル */
.lb-filter { cursor: pointer; transition: border-color .12s, background .12s, color .12s; }
.lb-filter:hover { border-color: var(--accent); color: var(--accent); }
/* 有効な絞り込みチップ */
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.active-filters:empty { display: none; }
.af-chip {
  font-size: .78rem; font-weight: 700;
  padding: 4px 11px; border-radius: 999px; cursor: pointer;
  background: #2a2210; color: #f0d8a8; border: 1px solid var(--accent);
}
.af-chip:hover { background: #3a2f14; }
.af-clear {
  font-size: .76rem; padding: 4px 11px; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--text-dim); border: 1px solid var(--line);
}
.af-clear:hover { border-color: var(--accent); color: var(--accent); }
/* 一覧カードの口コミスニペット */
.vc-review {
  margin-top: 10px; padding: 8px 10px;
  background: #14161d; border: 1px solid var(--line);
  border-left: 3px solid var(--accent); border-radius: 8px;
  font-size: .82rem; line-height: 1.6;
}
.vc-review-badge { font-weight: 700; color: var(--accent); margin-right: 8px; }

/* ライブ感: 本日◯人がチェック */
.live-visitors {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .8rem; font-weight: 600; color: var(--text-dim);
  margin: 0;
}
/* ヘッダー下部の統計バー（本日◯人・反応数） */
.header-stats {
  min-height: var(--header-stats-h);
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 8px 18px;
  padding: 4px 14px;
  border-top: 1px solid var(--line);
  background: #0e1014;
}
.header-stats .live-visitors { font-size: .78rem; }
.header-stats .live-visitors b { color: #36d36b; font-weight: 800; }
.header-react {
  display: inline-flex; align-items: center; gap: 6px;
  padding-left: 14px; border-left: 1px solid var(--line);
}
.hr-label { font-size: .72rem; color: var(--muted); }
.hr-chip {
  font-size: .72rem; font-weight: 700; line-height: 1.6;
  padding: 1px 9px; border-radius: 999px;
  background: #191b22; border: 1px solid var(--line);
}
.hr-chip.hr-went { color: #f0d8a8; border-color: #5a4a22; }
.hr-chip.hr-want { color: #f0c0d0; border-color: #5a2838; }
@media (max-width: 520px) {
  .header-react { padding-left: 0; border-left: 0; }
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #36d36b; box-shadow: 0 0 0 0 rgba(54, 211, 107, .6);
  animation: livepulse 1.8s infinite;
}
@keyframes livepulse {
  0%   { box-shadow: 0 0 0 0 rgba(54, 211, 107, .55); }
  70%  { box-shadow: 0 0 0 7px rgba(54, 211, 107, 0); }
  100% { box-shadow: 0 0 0 0 rgba(54, 211, 107, 0); }
}
.vc-review-date { font-size: .72rem; color: var(--muted); margin-right: 8px; }
.vc-review-text { color: var(--text-dim); }
.lb {
  display: inline-flex; align-items: center;
  font-size: .72rem; font-weight: 600; line-height: 1.7;
  padding: 0 9px; border-radius: 5px;
  white-space: nowrap;
  border: 1px solid var(--line);
  background: #14161d;
  color: var(--text-dim);
  cursor: pointer;                 /* 将来: クリックで絞り込み */
  transition: border-color .12s, color .12s;
}
.lb:hover { border-color: var(--accent); color: var(--text); }
/* 控えめな色ヒント（フラット） */
.lb-rec    { color: #e3c27a; border-color: #4a3d20; }   /* オススメ */
.lb-hot    { color: #e0a565; border-color: #4a361c; }   /* 注目 */
.lb-new    { color: #8ec9a6; border-color: #2c4738; }   /* 新店 */
.lb-anniv  { color: #d99ab0; border-color: #49283a; }   /* 周年 */
.lb-nosite { color: #9aa0aa; }                          /* 公式なし */
.lb-area   { color: #a6b2cc; }                          /* エリア */
.lb-upd    { color: var(--text-dim); }                  /* 更新日 */

.venue-detail .venue-meta { gap: 6px; align-items: center; margin: 0 0 14px; flex-wrap: wrap; }

/* 詳細情報（常時表示） */
.more-open { margin-bottom: 4px; }
.more-open .more-body { padding: 0; }

/* 詳細ページ下部リンクの間隔・区切り */
.venue-foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px;
  margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line);
}
.venue-foot .submit-link { margin-left: auto; }

/* 管理: 公開店舗テーブル */
.pub-section { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 16px; }
.pub-section > h2 { font-size: 1.1rem; color: var(--accent); display: flex; align-items: center; gap: 8px; }
.pub-table { width: 100%; border-collapse: collapse; font-size: .86rem; margin-top: 8px; }
.pub-table th, .pub-table td { border: 1px solid var(--line); padding: 7px 10px; text-align: left; }
.pub-table thead th { background: #232734; }
.pub-table td.num { text-align: right; color: var(--text-dim); white-space: nowrap; }
.pub-table tr.is-rec { background: #20211a; }
.rec-form { margin: 0; }
.btn-ghost { background: transparent; color: var(--text-dim); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.pub-table .btn { min-height: 34px; padding: 4px 12px; font-size: .82rem; }

/* 管理: AIで再生成ボタン */
.btn-ai { background: #2a2440; color: #d8caf5; border: 1px solid #4a3f78; }
.btn-ai:hover { border-color: #7a68c0; color: #fff; filter: brightness(1.1); }

/* ===================== いった/いきたい リアクション ===================== */
.react-bar { display: flex; gap: 10px; margin: 0 0 16px; flex-wrap: wrap; }
.react-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .95rem; font-weight: 700;
  padding: 9px 18px; min-height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  transition: border-color .12s, background .12s, transform .05s;
}
.react-btn:hover { border-color: var(--accent); }
.react-btn:active { transform: scale(.97); }
.react-btn[data-kind="went"].reacted { border-color: #c9a15a; background: #2a2210; color: #f0d8a8; }
.react-btn[data-kind="want"].reacted { border-color: #d96a8f; background: #2a1018; color: #f0c0d0; }
.react-btn .rc {
  font-size: .9rem; font-weight: 800;
  min-width: 1.6em; text-align: center;
  padding: 1px 8px; border-radius: 999px;
  background: #0e0f13; color: var(--accent);
}
/* 一覧カード内の小さめボタン */
.react-bar-sm { gap: 8px; margin: 10px 0 0; }
.react-bar-sm .react-btn {
  font-size: .8rem; font-weight: 700;
  padding: 5px 12px; min-height: 34px; gap: 6px;
}
.react-bar-sm .react-btn .rc { font-size: .78rem; padding: 0 6px; }

/* ===================== 口コミ（みんなの声） ===================== */
.reviews-block { margin: 22px 0 8px; }
.reviews-note { font-size: .78rem; color: var(--muted); margin: 2px 0 12px; }
.review-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.review-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 12px 14px;
}
.review-body { margin: 0; font-size: .95rem; line-height: 1.7; }
.review-meta { margin: 8px 0 0; font-size: .72rem; color: var(--muted); }
.reviews-empty {
  margin: 18px 0 8px; padding: 12px 14px;
  background: var(--bg-card); border: 1px dashed var(--line); border-radius: 10px;
  font-size: .86rem; color: var(--text-dim); line-height: 1.7;
}

/* 近くの店（回遊導線） */
.related-block { margin: 22px 0 8px; }
.related-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.related-item {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 8px;
  padding: 10px 12px; transition: border-color .12s;
}
.related-item:hover { border-color: var(--accent); }
.related-main { display: flex; justify-content: space-between; align-items: center; gap: 8px; text-decoration: none; color: var(--text); }
.related-main:hover .related-name { color: var(--accent); }
.related-name { font-size: .9rem; font-weight: 600; }
.related-dist { font-size: .75rem; color: var(--accent); white-space: nowrap; }
.related-item .react-bar-sm { margin-top: 8px; }

/* 「みんなの声（N件）」リンク（一覧カード／近くの店カード共通） */
.vc-reviews-link {
  display: inline-flex; align-items: center;
  font-size: .78rem; font-weight: 700; color: #f0c0d0;
  text-decoration: none;
  padding: 5px 11px; min-height: 34px;
  border: 1px solid #5a2838; border-radius: 999px; background: #1a1016;
}
.vc-reviews-link:hover { background: #26121c; border-color: var(--accent-2); }

/* 周辺の店舗ジャンプ＆スムーズスクロール */
html { scroll-behavior: smooth; }
.react-btn-jump { text-decoration: none; }
#nearby { scroll-margin-top: calc(var(--header-h) + var(--header-stats-h) + 12px); }

/* トップへ戻るボタン */
.to-top {
  position: fixed; right: 16px; bottom: 16px; z-index: 50;
  background: var(--accent); color: #1a1206;
  font-weight: 800; font-size: .82rem;
  border: none; border-radius: 999px; padding: 10px 16px; cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,.5);
}
.to-top[hidden] { display: none; }
.to-top:hover { filter: brightness(1.08); }

/* ===================== SEO本文（トップ下部・クロール用） ===================== */
.seo-index { max-width: 1080px; margin: 0 auto; padding: 28px 18px 56px; }
.seo-index h1 { font-size: 1.25rem; line-height: 1.5; margin: 0 0 10px; }
.seo-lead { color: var(--text-dim); font-size: .9rem; line-height: 1.8; margin: 0 0 24px; }
.seo-h2 { font-size: 1.05rem; margin: 0 0 16px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.seo-areas { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px 28px; }
.seo-area-name { font-size: .95rem; color: var(--accent); margin: 0 0 8px; }
.seo-venue-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.seo-venue-list li { font-size: .85rem; line-height: 1.5; }
.seo-venue-list a { color: var(--text); text-decoration: none; font-weight: 600; }
.seo-venue-list a:hover { color: var(--accent); text-decoration: underline; }
.seo-addr { display: block; color: var(--muted); font-size: .76rem; font-weight: 400; }

/* 管理画面: 口コミ一覧 */
.admin-review-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.admin-review-item { background: var(--bg-card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.admin-review-item.is-hidden { opacity: .55; }
.ar-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; justify-content: space-between; }
.ar-meta { font-size: .72rem; color: var(--muted); }
.ar-body { margin: 8px 0 10px; font-size: .92rem; line-height: 1.65; }
.ar-actions { display: flex; gap: 8px; }
.btn-danger:hover { border-color: #d9596e; color: #ff8da0; }

/* 管理: 店名インライン編集 */
.rename-form { display: flex; align-items: center; gap: 6px; }
.rename-input {
  flex: 1 1 auto; min-width: 180px;
  background: #0e0f13; color: var(--text);
  border: 1px solid var(--line); border-radius: 6px;
  padding: 6px 8px; font-size: .85rem;
}
.rename-input:focus { border-color: var(--accent); outline: none; }
.btn-sm { padding: 5px 10px; min-height: 32px; font-size: .8rem; }
.row-view { color: var(--muted); text-decoration: none; font-size: 1rem; padding: 0 4px; }
.row-view:hover { color: var(--accent); }

/* SEO改善提案 */
.seo-q { font-size: .78rem; color: var(--muted); margin: 0 0 10px; }
.seo-diff { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.seo-col { display: flex; flex-direction: column; gap: 2px; }
.seo-label { font-size: .7rem; color: var(--muted); }
.seo-old { font-size: .85rem; color: var(--text-dim); text-decoration: line-through; }
.seo-new { font-size: .9rem; color: #9fe0b0; }
.seo-reason { font-size: .82rem; color: var(--text-dim); }

/* ===================== アンケート モーダル ===================== */
.survey-modal {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .6); padding: 16px;
}
.survey-modal[hidden] { display: none; }
.survey-box {
  position: relative;
  width: 100%; max-width: 420px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 20px 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
}
.survey-close {
  position: absolute; top: 8px; right: 10px;
  background: none; border: none; color: var(--text-dim);
  font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 4px 8px;
}
.survey-close:hover { color: var(--text); }
.survey-title { font-size: .82rem; color: var(--text-dim); margin-bottom: 10px; }
.survey-q { font-size: 1.15rem; font-weight: 700; margin-bottom: 16px; line-height: 1.5; }
.survey-opts { display: grid; gap: 9px; }
.survey-opt {
  width: 100%; text-align: left;
  padding: 13px 16px; min-height: 48px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--text); font-size: 1rem; font-weight: 600;
  cursor: pointer; transition: border-color .12s, background .12s;
}
.survey-opt:hover { border-color: var(--accent); background: #20232e; }
.survey-opt:active { transform: scale(.99); }
.survey-text {
  width: 100%; background: var(--bg-card); color: var(--text);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 12px; font-size: 1rem; font-family: inherit; resize: vertical;
}
.survey-send { margin-top: 10px; justify-content: center; width: 100%; }
.survey-prog { text-align: right; color: var(--text-dim); font-size: .78rem; margin-top: 12px; }
.survey-thanks { color: var(--text-dim); font-size: .9rem; margin: 0 0 14px; line-height: 1.6; }
