/* ===========================
   CSS Variables
=========================== */
:root {
  --color-primary: #e85d75;
  --color-primary-dark: #c94d65;
  --color-bg: #fafafa;
  --color-surface: #ffffff;
  --color-text: #1a1a2e;
  --color-text-muted: #666;
  --color-border: #e8e8e8;
  --color-badge-genre: #f0e6ff;
  --color-badge-genre-text: #7c3aed;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-hover: 0 6px 24px rgba(0,0,0,0.15);
  --transition: 0.2s ease;
}

/* ===========================
   Reset & Base
=========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif; background: var(--color-bg); color: var(--color-text); line-height: 1.7; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ===========================
   Header
=========================== */
.site-header { background: var(--color-surface); border-bottom: 1px solid var(--color-border); position: sticky; top: 0; z-index: 100; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.site-logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.1rem; color: var(--color-text); }
.site-logo:hover { text-decoration: none; }
.site-logo__icon { font-size: 1.4rem; }
.site-nav { display: flex; gap: 8px; }
.nav-link { padding: 6px 14px; border-radius: 20px; font-size: 0.9rem; color: var(--color-text-muted); transition: var(--transition); }
.nav-link:hover, .nav-link.active { background: var(--color-primary); color: #fff; text-decoration: none; }

/* ===========================
   Filter Bar
=========================== */
.filter-bar { background: var(--color-surface); border-bottom: 1px solid var(--color-border); padding: 12px 0; }
.filter-bar .container { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filter-input, .filter-select {
  padding: 8px 12px; border: 1px solid var(--color-border); border-radius: 8px;
  font-size: 0.9rem; background: var(--color-bg); color: var(--color-text);
  transition: var(--transition);
}
.filter-input { flex: 1; min-width: 180px; }
.filter-select { min-width: 130px; }
.filter-input:focus, .filter-select:focus { outline: none; border-color: var(--color-primary); }

.btn { padding: 8px 16px; border-radius: 8px; border: none; cursor: pointer; font-size: 0.9rem; transition: var(--transition); }
.btn--reset { background: #f0f0f0; color: var(--color-text-muted); }
.btn--reset:hover { background: #e0e0e0; }
.btn--back { background: var(--color-primary); color: #fff; display: inline-block; margin-top: 24px; }
.btn--back:hover { background: var(--color-primary-dark); text-decoration: none; }

.result-count { padding: 8px 0; font-size: 0.85rem; color: var(--color-text-muted); }

/* ===========================
   View Tabs
=========================== */
.view-tabs { display: flex; gap: 8px; padding: 12px 0; }
.tab-btn { padding: 7px 20px; border: 2px solid var(--color-primary); border-radius: 20px; background: transparent; color: var(--color-primary); cursor: pointer; font-size: 0.9rem; transition: var(--transition); }
.tab-btn.active, .tab-btn:hover { background: var(--color-primary); color: #fff; }

/* ===========================
   Shop Grid
=========================== */
.shop-grid-section { padding: 16px 0 40px; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }

.shop-card {
  background: var(--color-surface); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); cursor: pointer; transition: var(--transition);
}
.shop-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

.shop-card__thumb { position: relative; padding-top: 56.25%; overflow: hidden; background: #1a1a2e; }
.shop-card__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shop-card__thumb-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; }
.shop-card__banner { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.shop-card__banner-icon { font-size: 2.8rem; line-height: 1; filter: drop-shadow(0 2px 4px rgba(0,0,0,.2)); }
.shop-card__banner-genre { font-size: .8rem; font-weight: 700; color: rgba(255,255,255,.9); background: rgba(0,0,0,.15); padding: 2px 10px; border-radius: 999px; }
.shop-card__play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.3); opacity: 0; transition: var(--transition); }
.shop-card:hover .shop-card__play { opacity: 1; }
.shop-card__play-icon { width: 48px; height: 48px; background: rgba(255,255,255,0.9); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; padding-left: 4px; }

.shop-card__body { padding: 14px; }
.shop-card__tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.shop-card__name { font-weight: 700; font-size: 1rem; margin-bottom: 4px; }
.shop-card__location { font-size: 0.8rem; color: var(--color-text-muted); margin-bottom: 8px; }
.shop-card__desc { font-size: 0.85rem; color: var(--color-text-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.shop-card__members { font-size: 0.78rem; color: var(--color-primary); margin-top: 8px; }

/* Badge */
.badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 0.72rem; font-weight: 600; background: #fce4ec; color: #c62828; }
.badge--genre { background: var(--color-badge-genre); color: var(--color-badge-genre-text); }
.badge--pref { background: #e3f2fd; color: #1565c0; }

.post-badge { display: inline-block; padding: 3px 10px; border-radius: 4px; font-size: 0.78rem; font-weight: 600; background: #fce4ec; color: #c62828; margin-right: 4px; }
.post-badge--genre { background: var(--color-badge-genre); color: var(--color-badge-genre-text); }

/* ===========================
   Map
=========================== */
.map-section { width: 100%; }
#map { width: 100%; height: calc(100vh - 160px); min-height: 400px; }

/* Leaflet popup カスタム */
.leaflet-popup-content-wrapper { border-radius: var(--radius); }
.map-popup { font-family: inherit; }
.map-popup h3 { font-size: 0.95rem; margin-bottom: 4px; }
.map-popup p { font-size: 0.82rem; color: var(--color-text-muted); margin: 0; }
.map-popup a { font-size: 0.82rem; }

/* ===========================
   Modal
=========================== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000; padding: 16px; opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--color-surface); border-radius: var(--radius);
  width: 100%; max-width: 680px; max-height: 90vh; overflow-y: auto;
  position: relative; transform: translateY(20px); transition: transform 0.2s;
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-close {
  position: sticky; top: 0; float: right; margin: 12px 12px 0 0;
  width: 36px; height: 36px; border-radius: 50%; border: none;
  background: #f0f0f0; font-size: 1.2rem; cursor: pointer; z-index: 1;
  transition: var(--transition);
}
.modal-close:hover { background: #e0e0e0; }

.modal-body { padding: 20px 24px 24px; }
.modal-youtube { border-radius: 8px; overflow: hidden; margin-bottom: 16px; aspect-ratio: 16/9; }
.modal-youtube iframe { width: 100%; height: 100%; border: none; }
.modal-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; }
.modal-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.modal-address { font-size: 0.85rem; color: var(--color-text-muted); margin-bottom: 12px; }
.modal-desc { font-size: 0.9rem; margin-bottom: 16px; line-height: 1.8; }
.modal-members { font-size: 0.85rem; color: var(--color-primary); margin-bottom: 16px; }
.modal-links { display: flex; flex-wrap: wrap; gap: 8px; }
.modal-link { padding: 8px 16px; border: 2px solid var(--color-primary); border-radius: 8px; font-size: 0.85rem; color: var(--color-primary); transition: var(--transition); }
.modal-link:hover { background: var(--color-primary); color: #fff; text-decoration: none; }

/* ===========================
   Post / Article
=========================== */
.post {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

/* ---- 目次 ---- */
.toc-box {
  background: linear-gradient(135deg, #fdf0f3 0%, #f5f0ff 100%);
  border: 1px solid #e8d0da;
  border-radius: var(--radius);
  padding: 20px 24px 20px;
  margin: 0 0 36px;
}
.toc-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 12px;
  color: var(--color-text);
  letter-spacing: 0.03em;
}
.toc-list {
  padding-left: 22px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.toc-list li { margin: 0; }
.toc-list a {
  font-size: 0.88rem;
  color: #444;
  border-bottom: none;
  transition: var(--transition);
  line-height: 1.5;
}
.toc-list a:hover { color: var(--color-primary); text-decoration: none; }

/* ---- ヘッダー ---- */
.post-header {
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--color-border);
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}
.post-meta time { letter-spacing: 0.04em; }
.post-title {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  line-height: 1.45;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0;
  color: var(--color-text);
}
.post-thumbnail {
  width: 100%;
  border-radius: var(--radius);
  margin-top: 20px;
  box-shadow: var(--shadow);
}
.post-hero {
  width: 100%; height: 200px; border-radius: var(--radius); margin-top: 20px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
}
.post-hero--yonino   { background: linear-gradient(135deg, #e8537a, #f7a1b5); }
.post-hero--snowman  { background: linear-gradient(135deg, #3b82f6, #93c5fd); }
.post-hero--sixtones { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.post-hero--all, .post-hero--default { background: linear-gradient(135deg, #e8537a, #7c3aed); }
.post-hero__label {
  color: rgba(255,255,255,.9); font-weight: 700; font-size: 1rem;
  background: rgba(0,0,0,.15); padding: 6px 18px; border-radius: 999px;
  letter-spacing: 0.05em;
}

/* ---- 本文 ---- */
.post-body {
  font-size: 1rem;
  line-height: 1.9;
  color: #2c2c3e;
  letter-spacing: 0.02em;
}
.post-body p { margin-bottom: 1.4em; }

/* h2: 和風の区切り線スタイル */
.post-body h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 2.4em 0 0.8em;
  padding: 0.5em 0.8em;
  color: var(--color-text);
  background: linear-gradient(135deg, #fdf0f3 0%, #f5f0ff 100%);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 6px 6px 0;
  letter-spacing: 0.03em;
}

/* h3: シンプルなアクセントライン */
.post-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1.8em 0 0.6em;
  padding-bottom: 0.35em;
  color: var(--color-text);
  border-bottom: 2px dotted #d0b8c0;
  letter-spacing: 0.03em;
}

/* blockquote */
.post-body blockquote {
  border-left: 4px solid var(--color-primary);
  padding: 12px 20px;
  margin: 1.6em 0;
  background: #fdf5f7;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--color-text-muted);
  line-height: 1.8;
}
.post-body blockquote p { margin-bottom: 0; }

/* リスト */
.post-body ul, .post-body ol {
  padding-left: 1.6em;
  margin-bottom: 1.4em;
}
.post-body li { margin-bottom: 0.5em; }
.post-body ul li::marker { color: var(--color-primary); }

/* 強調・リンク */
.post-body strong { color: var(--color-text); font-weight: 700; }
.post-body a { color: var(--color-primary); border-bottom: 1px solid #f5b8c4; transition: var(--transition); }
.post-body a:hover { border-bottom-color: var(--color-primary); text-decoration: none; }

/* テーブル */
.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.6em 0;
  font-size: 0.9rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.post-body thead {
  background: linear-gradient(135deg, var(--color-primary) 0%, #c94d65 100%);
  color: #fff;
}
.post-body th {
  padding: 12px 16px;
  font-weight: 600;
  text-align: left;
  letter-spacing: 0.03em;
}
.post-body td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}
.post-body tbody tr:last-child td { border-bottom: none; }
.post-body tbody tr:nth-child(even) { background: #fdf5f7; }
.post-body tbody tr:hover { background: #fce8ed; transition: background var(--transition); }

/* hr */
.post-body hr {
  border: none;
  border-top: 2px dashed #ddd;
  margin: 2em 0;
}

/* ---- 関連店舗セクション ---- */
.related-shops {
  margin-top: 56px;
  padding-top: 32px;
  border-top: none;
  position: relative;
}
.related-shops::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), #c084fc, transparent);
  border-radius: 2px;
  margin-bottom: 28px;
}
.related-shops__heading {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text);
}
.related-shops__heading::before {
  content: '🍽';
  font-size: 1.2rem;
}
.shop-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

/* 記事内の店舗カードは小さめに */
.related-shops .shop-card { font-size: 0.92rem; }
.related-shops .shop-card__name { font-size: 0.95rem; }

/* ---- 記事フッター ---- */
.post-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.btn--back {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  padding: 10px 20px;
  border-radius: 24px;
  font-size: 0.88rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
  margin-top: 0;
}
.btn--back:hover {
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

/* ---- 記事一覧 ---- */
.page-title {
  font-size: 1.7rem;
  padding: 28px 0 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  padding-bottom: 56px;
}
.article-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--color-border);
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.article-card__thumb { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.article-card__body { padding: 16px 18px 20px; }
.article-card__meta {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-bottom: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.article-card__title { font-size: 0.98rem; margin-bottom: 8px; line-height: 1.55; font-weight: 700; }
.article-card__title a { color: var(--color-text); }
.article-card__title a:hover { color: var(--color-primary); text-decoration: none; }
.article-card__excerpt { font-size: 0.8rem; color: var(--color-text-muted); line-height: 1.7; }

/* ===========================
   Footer
=========================== */
.site-footer { background: var(--color-surface); border-top: 1px solid var(--color-border); padding: 24px 0; text-align: center; }
.footer-copy { font-size: 0.9rem; color: var(--color-text-muted); margin-bottom: 4px; }
.footer-note { font-size: 0.75rem; color: #aaa; }

/* ===========================
   Utilities
=========================== */
.loading { text-align: center; padding: 48px; color: var(--color-text-muted); }
.empty-message { text-align: center; padding: 48px; color: var(--color-text-muted); }
.no-results { grid-column: 1/-1; text-align: center; padding: 48px; color: var(--color-text-muted); }

/* ===========================
   Responsive
=========================== */
@media (max-width: 768px) {
  /* 記事 */
  .post { padding: 24px 16px 56px; }
  .post-body { font-size: 0.97rem; line-height: 1.85; }
  .post-body h2 { font-size: 1.1rem; margin: 2em 0 0.7em; }
  .post-body h3 { font-size: 1rem; }
  .post-body table { font-size: 0.82rem; display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .post-body th, .post-body td { padding: 8px 12px; white-space: nowrap; }
  .related-shops { margin-top: 40px; }
  .shop-cards { grid-template-columns: 1fr 1fr; gap: 12px; }
  .post-footer { flex-direction: column; gap: 10px; }
  .btn--back { width: 100%; justify-content: center; }

  /* 記事一覧 */
  .article-grid { grid-template-columns: 1fr; gap: 16px; }
  .page-title { font-size: 1.4rem; }
}

@media (max-width: 600px) {
  .filter-bar .container { flex-direction: column; }
  .filter-input, .filter-select { width: 100%; }
  .site-logo__text { font-size: 1rem; }
  .modal-body { padding: 16px; }
  .shop-cards { grid-template-columns: 1fr; }
  .post-body h2 { padding: 0.45em 0.7em; }
}
