/* ══════════════════════════════════════
   CSS変数
══════════════════════════════════════ */
:root {
  --accent:       #e47a61;
  --accent-dark:  #c9634c;
  --accent-light: #f9ede9;
  --bg:           #fbf7f2;
  --bg-card:      #ffffff;
  --text:         #2f2a26;
  --text-sub:     #6b6560;
  --text-muted:   #6b6560;
  --bg-hover:     #f5f0ea;
  --border:       #e8e0d8;
  --shadow:       0 2px 12px rgba(0,0,0,.07);
  --shadow-hover: 0 8px 32px rgba(0,0,0,.13);
  --radius:       12px;
  --radius-sm:    6px;
  --radius-md:    8px;
  --radius-lg:    20px;
  --radius-xl:    28px;
  --header-h:     70px;
  --ease:         .22s ease;
  --container:    1120px;

  /* カテゴリカラー */
  --cat-stay:  #f59e0b;
  --cat-eat:   #44FFFF;
  --cat-play:  #22c55e;
  --cat-sight: #3b82f6;
  --cat-hosp:  #ef4444;
  --cat-sightseeing: #3b82f6;
  --cat-hospital:    #ef4444;
}

/* ══════════════════════════════════════
   Reset
══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 15px;
}
img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ════════════════════════════════════════
   HEADER + ナビゲーション
════════════════════════════════════════ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #f0f0f0;
  padding: 12px 0;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.site-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: 60px;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* グローバルナビ */
.global-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  gap: 2px;
  align-items: center;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 6px 13px;
  border-radius: 20px;
  font-family: 'Potta One', cursive;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: background var(--ease), color var(--ease);
  color: var(--text);
  min-height: 70px;
}

.nav-link img {
  width: 70px;
  height: 70px;
  margin-bottom: 4px;
  object-fit: contain;
}

.nav-link:hover { color: #fff; }
.nav-stay:hover  { background: var(--cat-stay);  }
.nav-eat:hover   { background: var(--cat-eat);   }
.nav-play:hover  { background: var(--cat-play);  }
.nav-sight:hover { background: var(--cat-sight); }
.nav-hosp:hover  { background: var(--cat-hosp);  }

/* ハンバーガー（PC時は非表示） */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 101;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 3px;
  background-color: #333;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ナビオーバーレイ */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 99;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ─────────────────────────────────────
   タブレット（1040px以下）
───────────────────────────────────────── */
@media (max-width: 1040px) {
  .nav-list {
    gap: 4px;
  }

  .nav-link {
    padding: 6px 10px;
    font-size: 11px;
    min-height: 56px;
  }

  .nav-link img {
    height: 50px;
  }
}

/* ─────────────────────────────────────
   モバイル（760px以下） ← ハンバーガーメニュー表示
───────────────────────────────────────── */
@media (max-width: 760px) {
  .header-inner {
    height: 56px;
    padding: 0 12px;
  }

  .site-logo {
    height: 40px;
  }

  .logo-icon {
    height: 40px;
  }

  /* ハンバーガーボタンを表示 */
  .hamburger {
    display: flex;
  }

  /* グローバルナビをドロワーに変換 */
  .global-nav {
    position: fixed;
    top: 56px;
    left: 0;
    width: 100%;
    max-width: 280px;
    height: calc(100vh - 56px);
    background: white;
    margin: 0;
    padding: 0;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 100;
    overflow-y: auto;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
  }

  .global-nav.active {
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
  }

  .nav-link {
    flex-direction: row;
    padding: 6px 6px;
    min-height: auto;
    border-bottom: 1px solid #f0f0f0;
    justify-content: flex-start;
  }

  .nav-link img {
    height: 50px;
    margin-bottom: 0;
    margin-right: 12px;
  }

  .nav-link {
    font-size: 14px;
  }
}

/* ─────────────────────────────────────
   小さいモバイル（480px以下）
───────────────────────────────────────── */
@media (max-width: 480px) {
  .header-inner {
    height: 52px;
    padding: 0 10px;
  }

  .logo-icon {
    height: 40px;
  }

  .global-nav {
    top: 52px;
    height: calc(100vh - 52px);
    max-width: 250px;
  }

  .nav-link {
    padding: 4px 4px;
    font-size: 13px;
  }

  .nav-link img {
    height: 44px;
    margin-right: 10px;
  }
}


/* ════════════════════════════════════════
   HERO + 検索フォーム
════════════════════════════════════════ */

.hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #fff5f0 0%, #fffbf8 100%);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url(../../images/main_pc.png) center/cover no-repeat;
  opacity: 0.5;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.4);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  padding: 40px 16px;
  margin: 0 auto;
}

.hero-eyebrow {
  text-align: center;
  font-size: 14px;
  color: var(--accent-color);
  font-weight: 600;
  margin: 0 0 12px 0;
  letter-spacing: 0.5px;
}

.hero-title {
  text-align: center;
  font-family: 'Potta One', cursive;
  font-size: 36px;
  color: #333;
  margin: 0 0 32px 0;
  line-height: 1.3;
  font-weight: 400;
}

/* 検索フォーム */
.search-form {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.search-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.search-field {
  display: flex;
  flex-direction: column;
}

.search-label {
  font-size: 13px;
  font-weight: 600;
  color: #555;
  margin-bottom: 8px;
  display: block;
}

.search-select {
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  font-family: 'Noto Sans JP', sans-serif;
  background: white;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.search-select:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(228, 122, 97, 0.1);
}

/* こだわり行 */
.kodawari-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.kodawari-label {
  font-size: 13px;
  font-weight: 600;
  color: #555;
  flex-shrink: 0;
}

.kodawari-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #666;
  cursor: pointer;
  user-select: none;
}

.kodawari-item input[type="checkbox"] {
  cursor: pointer;
  width: 16px;
  height: 16px;
  accent-color: var(--accent-color);
}

/* ボタン */
.search-btn-wrap {
  display: flex;
  justify-content: center;
}

.btn-search {
  padding: 12px 32px;
  background: var(--accent);
  color: white;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Noto Sans JP', sans-serif;
  border: 2px solid var(--accent);
  transition: background var(--ease), transform var(--ease), box-shadow var(--ease);
  box-shadow: 0 4px 20px rgba(228,122,97,.4);

}

.btn-search:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(228,122,97,.45);

}

.btn-search:active {
  transform: translateY(0);
}

/* ─────────────────────────────────────
   タブレット（800px以下）
───────────────────────────────────────── */
@media (max-width: 800px) {
  .hero {
    min-height: 450px;
  }

  .hero-content {
    padding: 32px 16px;
  }

  .hero-title {
    font-size: 28px;
    margin-bottom: 24px;
  }

  .search-form {
    padding: 20px;
  }

  .search-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
  }

  .kodawari-row {
    gap: 10px;
  }

  .kodawari-item {
    font-size: 12px;
  }
}

/* ─────────────────────────────────────
   モバイル（760px以下）
───────────────────────────────────────── */
@media (max-width: 760px) {
  .hero {
    min-height: 400px;
    padding-top: 20px;
  }

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url(../../images/main_mobile.png) center/cover no-repeat;
  opacity: 0.5;
}

  .hero-content {
    padding: 24px 12px;
  }

  .hero-eyebrow {
    font-size: 12px;
    margin-bottom: 8px;
  }

  .hero-title {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .search-form {
    padding: 16px;
    border-radius: 10px;
  }

  .search-row {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 12px;
  }

  .search-label {
    font-size: 12px;
    margin-bottom: 6px;
  }

  .search-select {
    padding: 9px 10px;
    font-size: 13px;
    border-radius: 5px;
  }

  .kodawari-row {
    gap: 8px;
    margin-bottom: 16px;
  }

  .kodawari-label {
    font-size: 12px;
    width: 100%;
  }

  .kodawari-item {
    font-size: 12px;
    padding: 4px 0;
  }

  .kodawari-item input[type="checkbox"] {
    width: 14px;
    height: 14px;
  }

  .btn-search {
    width: 100%;
    padding: 11px 24px;
    font-size: 13px;
  }
}

/* ─────────────────────────────────────
   小さいモバイル（480px以下）
───────────────────────────────────────── */
@media (max-width: 480px) {
  .hero {
    min-height: 360px;
  }

 .hero-bg {
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   bottom: 0;
   background: url(../../images/main_mobile.png) center/cover no-repeat;
   opacity: 0.5;
 }

  .hero-content {
    padding: 20px 10px;
  }

  .hero-eyebrow {
    font-size: 11px;
    margin-bottom: 6px;
  }

  .hero-title {
    font-size: 20px;
    margin-bottom: 16px;
  }

  .search-form {
    padding: 14px;
  }

  .search-row {
    gap: 8px;
  }

  .search-label {
    font-size: 11px;
    margin-bottom: 5px;
  }

  .search-select {
    padding: 8px 9px;
    font-size: 12px;
  }

  .kodawari-row {
    gap: 6px;
  }

  .btn-search {
    padding: 10px 20px;
    font-size: 12px;
  }
}

/* ══════════════════════════════════════
   Top画面 Map検索
══════════════════════════════════════ */
.top-area-search {
  padding: 48px 16px;
  background: #fffaf3;
}

.top-area-search__inner {
  max-width: 980px;
  margin: 0 auto;
}

.top-area-search__lead {
  text-align: left;
  color: #666;
  margin-bottom: 24px;
}

.ito-map-layout {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: 28px;
  align-items: stretch;
  max-width: 900px;
  margin: 0 auto;
}

.ito-map-left {
  min-width: 0;
}

.ito-map-wrap {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 28px rgba(0,0,0,0.12);
}

.ito-map-img {
  display: block;
  width: 100%;
  height: auto;
}

.ito-map-right {
  background: #fff;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 28px;
}

.area-selected-text {
  text-align: center;
  font-weight: 1000;
  color: #5a3b24;
  margin-bottom: 18px;
}

.map-filter-box {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0 0 22px;
}

.map-filter-box label {
  display: block;
  background: #fffaf3;
  border: 1px solid #ead8c5;
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 700;
  color: #5a3b24;
}

.map-search-submit {
  width: 100%;
  padding: 15px 20px;
  border: none;
  border-radius: 999px;
  background: #8b5e34;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
}

.ito-map-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: block;
  pointer-events: auto;
}

.ito-map-area {
  fill: rgba(228, 122, 97, 0);
  stroke: rgba(255, 255, 255, 0);
  stroke-width: 0.6;
  cursor: pointer;
  transition: fill 0.2s ease, stroke 0.2s ease;
}

.ito-map-area:hover,
.ito-map-area.is-active {
  fill: rgba(228, 122, 97, 0.32);
  stroke: rgba(255, 255, 255, 0.9);
}

.ito-map-label {
  position: absolute;
  z-index: 3;
  transform: translate(-50%, -50%);
  background: rgba(255,255,255,0.94);
  color: #5a3b24;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
  white-space: nowrap;
}

.ito-map-label.is-active {
  background: var(--accent);
  color: #fff;
}

@media (max-width: 768px) {
  .ito-map-layout {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  .ito-map-wrap {
    margin: 0 auto;
  }

  .map-filter-box {
    grid-template-columns: 1fr 1fr;
  }

  .map-filter-box label {
    text-align: center;
    padding: 10px 6px;
    font-size: 14px;
  }
}

/* ══════════════════════════════════════
   Section 共通
══════════════════════════════════════ */
.section { padding: 72px 0; }
.section:nth-child(even) { background: #fff; }

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
  gap: 12px;
  flex-wrap: wrap;
}
.section-title {
  font-family: 'Potta One', cursive;
  font-size: clamp(20px, 3.5vw, 28px);
  color: var(--text);
  position: relative;
  padding-bottom: 10px;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 36px; height: 3px;
  background: var(--accent);
  border-radius: 2px;
}
.section-sub {
  font-size: 13px;
  color: var(--text-sub);
}
.section-more {
  font-size: 13px;
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
  transition: opacity var(--ease);
}
.section-more:hover { opacity: .7; }
.section-footer { margin-top: 40px; text-align: center; }

/* ══════════════════════════════════════
   Button
══════════════════════════════════════ */
.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  transition: var(--ease);
  cursor: pointer;
  text-align: center;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--accent);
}
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}
.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn-outline:hover {
  background: var(--accent);
  color: #fff;
}

/* ══════════════════════════════════════
   Badge（カテゴリ）
══════════════════════════════════════ */
.badge-orange { background: var(--cat-stay);  color:#fff; }
.badge-yellow { background: var(--cat-eat);   color:#fff; }
.badge-green  { background: var(--cat-play);  color:#fff; }
.badge-blue   { background: var(--cat-sight); color:#fff; }
.badge-red    { background: var(--cat-hosp);  color:#fff; }

/* ════════════════════════════════════════
   マップセクション
════════════════════════════════════════ */

.map-section {
  padding: 48px 16px;
  background: #fafafa;
}

.map-panel {
  display: flex;
  gap: 24px;
  align-items: stretch;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.map-copy {
  flex: 0 0 280px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.map-copy h3 {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.map-copy > p {
  font-size: 13px;
  color: #666;
  margin: 0 0 16px 0;
  line-height: 1.5;
}

.map-copy ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.map-copy li {
  display: flex;
  align-items: center;
}

.map-copy li p {
  font-size: 12px;
  color: #555;
  margin: 0;
  padding-left: 12px;
}

.map-orange { color: var(--cat-stay); }
.map-blue { color: var(--cat-eat); }
.map-yellow { color: var(--cat-play); }
.map-green { color: var(--cat-sightseeing); }
.map-red { color: var(--cat-hospital); }

.map-orange::before { content: "●"; margin-right: 8px; }
.map-blue::before { content: "●"; margin-right: 8px; }
.map-yellow::before { content: "●"; margin-right: 8px; }
.map-green::before { content: "●"; margin-right: 8px; }
.map-red::before { content: "●"; margin-right: 8px; }

.map-frame-wrap {
  flex: 1;
  min-height: 400px;
  border-radius: 8px;
  overflow: hidden;
}

.map-frame-wrap iframe {
  display: block;
  width: 100%;
  height: 100%;
}

/* ─────────────────────────────────────
   タブレット（1040px以下）
───────────────────────────────────────── */
@media (max-width: 1040px) {
  .map-section {
    padding: 40px 16px;
  }

  .map-panel {
    gap: 20px;
  }

  .map-copy {
    flex: 0 0 240px;
    padding: 20px;
  }

  .map-copy h3 {
    font-size: 14px;
    margin-bottom: 6px;
  }

  .map-copy > p {
    font-size: 12px;
    margin-bottom: 12px;
  }

  .map-copy li p {
    font-size: 11px;
  }

  .map-frame-wrap {
    min-height: 350px;
  }
}


/* ─────────────────────────────────────
   モバイル（760px以下）
───────────────────────────────────────── */
@media (max-width: 760px) {
  .map-section {
    padding: 32px 12px;
  }

  .map-panel {
    flex-direction: column;
    gap: 16px;
    border-radius: 10px;
  }

  .map-copy {
    flex: 1 0 auto;
    padding: 16px;
  }

  .map-copy h3 {
    font-size: 13px;
    margin-bottom: 6px;
  }

  .map-copy > p {
    font-size: 11px;
    margin-bottom: 10px;
  }

  .map-copy ul {
    gap: 6px;
  }

  .map-copy li p {
    font-size: 10px;
    padding-left: 10px;
  }

  .map-frame-wrap {
    min-height: 300px;
    border-radius: 6px;
  }
}

/* ─────────────────────────────────────
   小さいモバイル（480px以下）
───────────────────────────────────────── */
@media (max-width: 480px) {
  .map-section {
    padding: 24px 10px;
  }

  .map-panel {
    gap: 12px;
  }

  .map-copy {
    padding: 12px;
  }

  .map-copy h3 {
    font-size: 12px;
  }

  .map-copy > p {
    font-size: 10px;
    margin-bottom: 8px;
  }

  .map-copy ul {
    gap: 5px;
  }

  .map-copy li p {
    font-size: 9px;
  }

  .map-frame-wrap {
    min-height: 250px;
  }
}

/* ══════════════════════════════════════
   マップビュー全体ラップ（list.php）
══════════════════════════════════════ */
.map-view-wrap {
  display: flex !important;
  flex-direction: column !important;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
}

/* マップ本体 */
#listMap {
  width: 100% !important;
  height: 480px !important;
  flex-shrink: 0;
  background: #e8e0d8;
  z-index: 0;
}

/* ── カードグリッド本体 ── */
#mapCardStrip {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
  flex-direction: unset !important;
  flex-wrap: unset !important;
  overflow-x: unset !important;
  overflow-y: auto !important;
  gap: 12px !important;
  padding: 16px !important;
/*  max-height: 460px;*/
  background: var(--bg-card);
  border-top: 2px solid var(--border);
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
#mapCardStrip::-webkit-scrollbar { width: 4px; }
#mapCardStrip::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

/* 個別カード */
#mapCardStrip .map-strip-card {
  display: flex !important;
  flex-direction: column !important;
  flex: unset !important;         /* flex: 0 0 180px などを解除 */
  width: auto !important;
  min-width: 0 !important;
  scroll-snap-align: unset !important;
  border-radius: 10px;
  border: 2px solid transparent;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
  background: #fff;
}
#mapCardStrip .map-strip-card.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(228,122,97,.25);
}
#mapCardStrip .map-strip-card:hover {
  border-color: var(--accent);
}

/* カード内 画像 */
#mapCardStrip .map-strip-img {
  width: 100% !important;
  height: 100px !important;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}
#mapCardStrip .map-strip-noimg {
/*
  width: 100% !important;
  height: 100px !important;
  background: #f0ebe4;
  flex-shrink: 0;
*/
  background: url(../../images/now_printing_s.png) center/cover no-repeat;
  width: 100%;
  height: 100px;
}

/* カード内 情報 */
#mapCardStrip .map-strip-info {
  padding: 6px 8px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
#mapCardStrip .map-strip-badge {
  display: inline-block;
  font-size: .65rem;
  font-weight: 700;
  color: #fff;
  padding: 2px 6px;
  border-radius: 6px;
  align-self: flex-start;
}
#mapCardStrip .map-strip-name {
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: .8rem;
  font-weight: 700;
  color: #333;
  text-decoration: none;
  margin-top: 3px;
  line-height: 1.3;
}
#mapCardStrip .map-strip-name:hover { color: var(--accent); }
#mapCardStrip .map-strip-area {
  font-size: .7rem;
  color: #888;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── レスポンシブ ── */
@media (max-width: 1040px) {
  #mapCardStrip {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  #listMap {
    height: 320px !important;
  }
  #mapCardStrip {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)) !important;
    gap: 8px !important;
    padding: 12px !important;
    max-height: 360px;
  }
  #mapCardStrip .map-strip-img,
  #mapCardStrip .map-strip-noimg {
/*
    height: 80px !important;
*/
  background: url(../../images/now_printing_s.png) center/cover no-repeat;
  height: 80px;
  }
}

@media (max-width: 480px) {
  #listMap {
    height: 260px !important;
  }
  #mapCardStrip {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)) !important;
    gap: 6px !important;
    padding: 10px !important;
    max-height: 300px;
  }
  #mapCardStrip .map-strip-img,
  #mapCardStrip .map-strip-noimg {
/*
    height: 70px !important;
*/
  background: url(../../images/now_printing_s.png) center/cover no-repeat;
  height: 70px;
  }
}

/* ── Leaflet カスタムピン ── */
.map-pin {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--pin-color, #e47a61);
  color: #fff;
  border-radius: 20px 20px 20px 0;
  transform: rotate(-45deg);
  width: 36px;
  height: 36px;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
  border: 2px solid rgba(255,255,255,.8);
}
.map-pin-label {
  transform: rotate(45deg);
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: -.02em;
  line-height: 1;
  text-align: center;
  max-width: 28px;
}

/* ══════════════════════════════════════
   マップ下カードグリッド
══════════════════════════════════════ */

/* ★ グリッド本体 */
.map-card-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  padding: 16px;
  background: var(--bg-card);
  border-top: 2px solid var(--border);
  max-height: 460px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.map-card-strip::-webkit-scrollbar { width: 4px; }
.map-card-strip::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

/* 個別カード */
.map-strip-card {
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  border: 2px solid transparent;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
  background: #fff;
  /* flex: 0 0 〜 は削除（gridで管理） */
}
.map-strip-card.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(228,122,97,.25);
}
.map-strip-card:hover {
  border-color: var(--accent);
}

.map-strip-img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}
.map-strip-noimg {
/*
  width: 100%;
  height: 100px;
  background: #f0ebe4;
  flex-shrink: 0;
*/
  background: url(../../images/now_printing_s.png) center/cover no-repeat;
  width: 100%;
  height: 100px;

}
.map-strip-info {
  padding: 6px 8px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.map-strip-badge {
  display: inline-block;
  font-size: .65rem;
  font-weight: 700;
  color: #fff;
  padding: 2px 6px;
  border-radius: 6px;
  align-self: flex-start;
}
.map-strip-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: .8rem;
  font-weight: 700;
  color: #333;
  text-decoration: none;
  margin-top: 3px;
  line-height: 1.3;
}
.map-strip-name:hover { color: var(--accent); }
.map-strip-area {
  font-size: .7rem;
  color: #888;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ════════════════════════════════════════
   こだわり検索
════════════════════════════════════════ */

.recommend-section {
  padding: 48px 16px;
}

.recommend-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 20px;
  align-items: stretch;
}

.recommend-card {
  min-width: 0;
}

.recommend-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.recommend-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}
.recommend-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-hover);
}
.recommend-thumb img {
  width: 100%;
  max-width :300px;
  height: 100%;
  max-width: none;
  object-fit: contain;
  margin: 0 auto;
}

.recommend-card:hover .spot-thumb img { transform: scale(1.04); }
.recommend-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.recommend-name {
 text-align: center;
 font-size: .95rem;
 font-weight: 700;
 line-height: 1.4;
 margin:0; 
}

@media (max-width: 768px) {
  .recommend-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* ════════════════════════════════════════
   新着スポット
════════════════════════════════════════ */

.latest-section {
  padding: 48px 16px;
}

.swiper {
  padding-bottom: 40px;
}

.swiper-slide {
  height: auto;
}

/* 新着カード */
.latest-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.latest-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.latest-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transform: translateY(-4px);
}

/* サムネイル */
.latest-thumb {
  position: relative;
  width: 100%;
  padding-bottom: 66.67%;
  overflow: hidden;
  background: #f5f5f5;
}

.latest-thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.latest-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  color: white;
  z-index: 2;
}

.badge-stay        { background: var(--cat-stay);        color: #fff; }
.badge-eat         { background: var(--cat-eat);         color: #fff; }
.badge-play        { background: var(--cat-play);        color: #fff; }
.badge-sightseeing { background: var(--cat-sightseeing); color: #fff; }
.badge-hospital    { background: var(--cat-hospital);    color: #fff; }

/* latest-card バッジ（同じ変数を使う） */
.badge-sub { background: #f0ebe4; color: var(--text); border: 1px solid var(--border); }

/* 本体 */
.latest-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 12px;
}

.latest-name {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin: 0 0 6px 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.latest-area {
  font-size: 12px;
  color: #666;
  margin: 0 0 4px 0;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.latest-address {
  font-size: 11px;
  color: #999;
  margin: 0 0 6px 0;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.latest-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 6px;
}

.latest-tag {
  display: inline-block;
  padding: 3px 8px;
  background: #f5f5f5;
  border-radius: 4px;
  font-size: 10px;
  color: #666;
  white-space: nowrap;
}

.latest-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: auto;
}

.icon-chip {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px 6px;
  background: #fff3f0;
  border-radius: 4px;
  font-size: 10px;
  color: var(--accent-color);
  white-space: nowrap;
}

.icon-chip.feat {
  background: #f0f8ff;
  color: #0066cc;
}

/* Swiper ボタン */
.swiper-button-next,
.swiper-button-prev {
  background: white;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  top: calc(50% - 100px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: all 0.2s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  background: var(--accent-color);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  color: #333;
  font-size: 18px;
  font-weight: bold;
}

.swiper-button-next:hover::after,
.swiper-button-prev:hover::after {
  color: white;
}

.swiper-pagination {
  bottom: 0 !important;
  padding: 8px 0;
}

.swiper-pagination-bullet {
  background: #ddd;
  opacity: 1;
}

.swiper-pagination-bullet-active {
  background: var(--accent-color);
}

/* ─────────────────────────────────────
   タブレット（1040px以下）
───────────────────────────────────────── */
@media (max-width: 1040px) {
  .latest-section {
    padding: 40px 16px;
  }

  .latest-name {
    font-size: 13px;
    margin-bottom: 4px;
  }

  .latest-area {
    font-size: 11px;
    margin-bottom: 3px;
  }

  .latest-address {
    font-size: 10px;
    margin-bottom: 4px;
  }

  .latest-tag {
    font-size: 9px;
  }

  .icon-chip {
    font-size: 9px;
  }

  .swiper-button-next,
  .swiper-button-prev {
    width: 36px;
    height: 36px;
  }
}

/* ─────────────────────────────────────
   モバイル（760px以下）
───────────────────────────────────────── */
@media (max-width: 760px) {
  .latest-section {
    padding: 32px 12px;
  }

  .latest-card {
    border-radius: 8px;
  }

  .latest-body {
    padding: 10px;
  }

  .latest-name {
    font-size: 12px;
    margin-bottom: 4px;
  }

  .latest-area {
    font-size: 10px;
    margin-bottom: 2px;
  }

  .latest-address {
    font-size: 9px;
    margin-bottom: 4px;
  }

  .latest-tags {
    gap: 3px;
    margin-bottom: 4px;
  }

  .latest-tag {
    font-size: 8px;
    padding: 2px 6px;
  }

  .latest-icons {
    gap: 3px;
  }

  .icon-chip {
    font-size: 8px;
    padding: 2px 5px;
  }

  .swiper-button-next,
  .swiper-button-prev {
    width: 32px;
    height: 32px;
    top: calc(50% - 80px);
  }

  .swiper-button-next::after,
  .swiper-button-prev::after {
    font-size: 16px;
  }

  /* Swiper スライド数をモバイル最適化 */
  .shopSwiper {
    /* slidesPerView: 1.2 is set in JS */
  }
}

/* ─────────────────────────────────────
   小さいモバイル（480px以下）
───────────────────────────────────────── */
@media (max-width: 480px) {
  .latest-section {
    padding: 24px 10px;
  }

  .latest-body {
    padding: 9px;
  }

  .latest-name {
    font-size: 11px;
    -webkit-line-clamp: 2;
  }

  .latest-area {
    font-size: 9px;
  }

  .latest-address {
    font-size: 8px;
  }

  .latest-tag {
    font-size: 7px;
  }

  .icon-chip {
    font-size: 7px;
    padding: 2px 4px;
  }

  .swiper-button-next,
  .swiper-button-prev {
    display: none;
  }

  .swiper {
    padding-bottom: 30px;
  }
}


/* ══════════════════════════════════════
   Empty State
══════════════════════════════════════ */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-sub);
}
.empty-icon { font-size: 48px; margin-bottom: 12px; }

/* ══════════════════════════════════════
   Footer
══════════════════════════════════════ */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,.75);
  padding: 48px 0 28px;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-logo .logo-text { color: var(--accent); font-size: 16px; }
.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
}
.footer-nav a {
  font-size: 13px;
  opacity: .7;
  transition: opacity var(--ease);
}
.footer-nav a:hover { opacity: 1; }
.footer-copy { font-size: 12px; opacity: .45; }

/* ══════════════════════════════════════
   Responsive
══════════════════════════════════════ */

/* タブレット */
@media (max-width: 1040px) {
  .nav-link { font-size: 12px; padding: 6px 10px; }
}

/* スマホ */
@media (max-width: 760px) {
  /* 検索フォーム：スマホは縦積み */
  .search-row {
    grid-template-columns: 1fr;
  }

  /* スクロールラッパー余白縮小 */
  .latest-scroll-wrap {
    padding: 0 36px;
  }
  .latest-card {
    flex: 0 0 240px;
    min-width: 240px;
    max-width: 240px;
  }
  .scroll-btn-prev { left: 0; }
  .scroll-btn-next { right: 0; }
}

@media (max-width: 480px) {
  .latest-scroll-wrap { padding: 0 32px; }
  .latest-card {
    flex: 0 0 220px;
    min-width: 220px;
    max-width: 220px;
  }
}

/* ══════════════════════════════════════
   LIST PAGE
══════════════════════════════════════ */

/* 全体レイアウト */
.list-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px 60px;
  align-items: start;
}

/* ─── サイドバー ─── */
.sidebar {
  position: sticky;
  top: 80px;          /* ヘッダー高さ分 */
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.sidebar-inner  { padding: 20px; }
.sidebar-head   { display:flex; justify-content:space-between; align-items:center; margin-bottom:16px; }
.sidebar-title  { font-size:1rem; font-weight:700; margin:0; }
.sidebar-close  { display:none; background:none; border:none; font-size:1.2rem; cursor:pointer; padding:4px 8px; }

.filter-section {
  border-top: 1px solid var(--border);
  padding: 14px 0;
}
.filter-section:first-child { border-top:none; }
.filter-heading {
  font-size: .8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 0 0 10px;
}
.filter-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.filter-radio,
.filter-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .88rem;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  transition: background var(--ease);
}
.filter-radio:hover,
.filter-check:hover { background: var(--bg-hover); }
.filter-radio input,
.filter-check input { accent-color: var(--accent); }

.filter-keyword .filter-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: .9rem;
  background: var(--bg);
  color: var(--text);
  transition: border-color var(--ease);
}
.filter-input:focus {
  outline: none;
  border-color: var(--accent);
}

.filter-actions {
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.btn-block { width: 100%; text-align: center; }

/* ─── 結果バー ─── */
.result-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.result-bar-left { display:flex; align-items:center; flex-wrap:wrap; gap:10px; }
.result-count strong { color: var(--accent); font-size: 1.15rem; }

.active-filters { display:flex; flex-wrap:wrap; gap:6px; }
.active-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .78rem;
  padding: 3px 8px 3px 10px;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: 20px;
}
.active-filter-tag a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 2px;
}
.active-filter-tag a:hover { color: var(--accent); }

.result-bar-right { display:flex; align-items:center; gap:10px; }
.sort-select {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: .88rem;
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
}
.btn-filter-toggle { display:none; }  /* PC では非表示 */

/* ─── スポットグリッド ─── */
.spot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.spot-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--ease), box-shadow var(--ease);
}
.spot-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.spot-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}
.spot-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-hover);
}
.spot-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.spot-card:hover .spot-thumb img { transform: scale(1.04); }
.spot-thumb-placeholder {
  width:100%; height:100%;
  display:flex; align-items:center; justify-content:center;
  font-size: 3rem; color: var(--text-muted);
}
.spot-badges {
  position: absolute;
  top: 10px; left: 10px;
  display: flex; gap: 4px;
}
.spot-badge {
  font-size: .72rem;
  padding: 3px 8px;
  border-radius: 20px;
  font-weight: 700;
  color: #fff;
}
.spot-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.spot-name { font-size: .95rem; font-weight: 700; line-height: 1.4; margin:0; }
.spot-area,
.spot-address { font-size: .8rem; color: var(--text-muted); margin:0; }
.spot-tags { display:flex; flex-wrap:wrap; gap:4px; margin-top:2px; }
.spot-tag {
  font-size: .72rem;
  padding: 2px 8px;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-muted);
}
.spot-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.spot-sizes    { font-size: .78rem; color: var(--text-muted); }
.spot-feat-icons { font-size: 1rem; letter-spacing: .1em; }

/* ─── ページネーション ─── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 40px;
}
.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: .9rem;
  text-decoration: none;
  transition: all var(--ease);
}
.page-btn:hover:not(.disabled):not(.current) {
  border-color: var(--accent);
  color: var(--accent);
}
.page-btn.current {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  font-weight: 700;
}
.page-btn.disabled {
  opacity: .35;
  cursor: default;
}
.page-ellipsis {
  padding: 0 4px;
  color: var(--text-muted);
}

/* 空の状態 */
.empty-state {
  text-align: center;
  padding: 80px 20px;
}
.empty-icon { font-size: 3.5rem; margin-bottom: 12px; }
.empty-text { color: var(--text-muted); margin-bottom: 20px; }

/* サイドバーオーバーレイ（モバイル） */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 199;
}
.sidebar-backdrop.is-visible { display: block; }


/* ══════════════════════════════════════
   DETAIL PAGE
══════════════════════════════════════ */

/* パンくず */
.breadcrumb-bar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  font-size: .82rem;
}
.bc-item { color: var(--text-muted); text-decoration: none; }
.bc-item:hover { color: var(--accent); }
.bc-current { color: var(--text); font-weight: 600; }
.bc-sep { color: var(--border); }

/* レイアウト */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  padding-top: 32px;
  padding-bottom: 60px;
  align-items: start;
}

/* ─────────────────────────────
   詳細ページ ヒーロー画像
───────────────────────────── */
/* =========================================
   ギャラリー（メイン＋サムネイル）
   ========================================= */
.gallery {
  margin-bottom: 24px;
}

/* メイン画像エリア */
.gallery-main {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #f0ebe4;
  border-radius: var(--radius-xl, 28px);
  overflow: hidden;
  margin-bottom: 10px;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.15s ease;
}

/* ─── サムネイル列 ─────────────────────── */
.gallery-thumbs {
  /* flex強制 */
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  box-sizing: border-box;
  overflow: hidden; /* はみ出し防止 */
}

/* ─── 各サムネイルボタン ────────────────── */
.thumb-btn {
  /* flex均等分割 */
  flex: 1 1 0% !important;
  min-width: 0 !important;
  max-width: none !important;
  width: auto !important;

  /* ボタンリセット */
  display: block !important;
  padding: 0;
  margin: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: #f0ebe4;
  box-sizing: border-box;
  transition: border-color 0.15s, opacity 0.15s;
  line-height: 0; /* 画像下の隙間を除去 */
}

.thumb-btn:hover {
  border-color: var(--accent, #e47a61);
  opacity: 0.85;
}

.thumb-btn.active {
  border-color: var(--accent, #e47a61);
}

/* ─── サムネイル内の画像 ─────────────────── */
.thumb-btn img {
  /* Resetの max-width/height:auto を上書き */
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;

  /* 正方形トリミング */
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* ─── レスポンシブ ── */
@media (max-width: 600px) {
  .gallery-main {
    border-radius: 16px;
  }
  .gallery-thumbs {
    gap: 5px !important;
  }
  .thumb-btn {
    border-radius: 7px;
  }
}

/* ─── 犬連れ情報ボード ─── */
.dog-info-board {
  margin-top: 24px;
  background: linear-gradient(135deg, #fff8f5 0%, #fff3ee 100%);
  border: 1px solid rgba(228,122,97,.25);
  border-radius: var(--radius-xl);
  padding: 20px 24px;
}
.board-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 14px;
  color: var(--accent);
}
.board-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.board-item { display:flex; flex-direction:column; gap:6px; }
.board-item-full { grid-column: 1 / -1; }
.board-label {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
}
.board-value { display:flex; flex-wrap:wrap; gap:6px; }
.size-chip {
  font-size: .82rem;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 600;
}
.size-chip.ok  { background: #e8f5e9; color: #2e7d32; border:1px solid #a5d6a7; }
.size-chip.ng  { background: var(--bg-hover); color: var(--text-muted); border:1px solid var(--border); }

.feat-list { display:flex; flex-wrap:wrap; gap:6px; }
.feat-chip {
  font-size: .82rem;
  padding: 4px 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text);
}

/* ─── 基本情報テーブル ─── */
.info-section { margin-top: 28px; }
.info-heading {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}
.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
.info-table th,
.info-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  text-align: left;
}
.descrip {
  white-space: pre-line;
}
.info-table th {
  width: 100px;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
  background: var(--bg-hover);
}
.map-link {
  display: inline-block;
  margin-left: 10px;
  font-size: .82rem;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 2px 8px;
}
.map-link:hover { background: var(--accent); color: #fff; }
.text-link { color: var(--accent); word-break: break-all; }
.text-muted { color: var(--text-muted); }

/* ─── SNS ─── */
.sns-section { margin-top: 28px; }
.sns-links { display:flex; flex-wrap:wrap; gap:10px; }
.sns-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  transition: all var(--ease);
}
.sns-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ─── 動画 ─── */
.movie-section { margin-top: 28px; }
.movie-grid { display:grid; grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); gap:16px; }
.movie-embed {
  position: relative;
  padding-top: 56.25%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
}
.movie-embed iframe,
.movie-embed video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ─── 地図 ─── */
.map-section-detail { margin-top: 28px; }
.map-embed {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 16/9;
}
.map-embed iframe { width:100%; height:100%; border:none; }

/* ─── サイドバー（詳細） ─── */
.detail-sidebar { position: sticky; top: 80px; }
.detail-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.detail-summary-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 20px;
}
.summary-title { font-size: .9rem; font-weight:700; margin:0 0 12px; }
.summary-list { display:flex; flex-direction:column; gap:8px; }
.summary-row { display:grid; grid-template-columns: 56px 1fr; gap:8px; font-size:.85rem; }
.summary-row dt { font-weight:700; color:var(--text-muted); }
.summary-row dd { margin:0; word-break:break-word; }

/* ─── 関連スポット ─── */
.related-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
}
.related-list { display:flex; flex-direction:column; gap:10px; margin-top:10px; }
.related-card {
  display: flex;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  padding: 8px;
  border-radius: var(--radius-md);
  transition: background var(--ease);
}
.related-card:hover { background: var(--bg-hover); }
.related-thumb {
  flex: 0 0 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-hover);
}
.related-thumb img { width:100%; height:100%; object-fit:cover; }
.related-thumb-placeholder {
  width:100%; height:100%;
  display:flex; align-items:center; justify-content:center;
  font-size:1.5rem;
}
.related-body { flex:1; display:flex; flex-direction:column; gap:4px; justify-content:center; }
.related-name { font-size:.85rem; font-weight:600; margin:0; line-height:1.4; }
.related-badge { font-size:.7rem; padding:2px 8px; border-radius:10px; color:#fff; font-weight:700; }

/* 戻るリンク */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: .88rem;
  transition: color var(--ease);
}
.back-link:hover { color: var(--accent); }

/* カテゴリバッジ共通カラー */
.badge-stay        { background: #e67e22; }
.badge-eat         { background: #f39c12; }
.badge-play        { background: #27ae60; }
.badge-sightseeing { background: #2980b9; }
.badge-hospital    { background: #c0392b; }


/* ══════════════════════════════════════
   LIST / DETAIL レスポンシブ
══════════════════════════════════════ */

/* タブレット（1040px以下） */
@media (max-width: 1040px) {
  .spot-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 760px以下 */
@media (max-width: 760px) {

  /* list.php レイアウト：1カラム */
  .list-layout {
    grid-template-columns: 1fr;
    padding: 16px 16px 48px;
  }

  /* サイドバーをモバイルドロワーに */
  .sidebar {
    position: fixed;
    top: 0; left: 0;
    width: min(320px, 85vw);
    height: 100vh;
    max-height: 100vh;
    z-index: 200;
    transform: translateX(-105%);
    transition: transform .3s ease;
    border-radius: 0;
    border: none;
  }
  .sidebar.is-open {
    transform: translateX(0);
  }
  .sidebar-close    { display: block; }
  .btn-filter-toggle{ display: inline-flex; }

  /* グリッド1列 */
  .spot-grid { grid-template-columns: 1fr; }

  /* detail.php レイアウト：1カラム */
  .detail-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 16px 16px 48px;
  }
  .detail-name { font-size: 1.35rem; }
  .board-grid  { grid-template-columns: 1fr; }

  /* サイドバーを本文の前に移動して表示 */
  .detail-sidebar {
    position: static;
    order: -1;
  }
}

/* 480px以下 */
@media (max-width: 480px) {
  .result-bar { flex-direction: column; align-items: flex-start; }
  .info-table th { width: 80px; font-size: .8rem; }
  .detail-hero { aspect-ratio: 4/3; }
}


/* ══════════════════════════════════════
   ビュー切替ボタン
══════════════════════════════════════ */
.view-toggle {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.view-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-sub);
  text-decoration: none;
  background: var(--bg-card);
  transition: background var(--ease), color var(--ease);
  border: none;
}
.view-btn + .view-btn {
  border-left: 1px solid var(--border);
}
.view-btn.active,
.view-btn:hover {
  background: var(--accent);
  color: #fff;
}
.view-label {
  font-size: .78rem;
}

/* ══════════════════════════════════════
   マップビュー全体ラップ
══════════════════════════════════════ */


/* マップ本体 */
.list-map {
  width: 100%;
  height: 480px;
  background: #e8e0d8;
  z-index: 0;
}

/* ── Leafletポップアップ ── */
.ito-popup .leaflet-popup-content-wrapper {
  padding: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  border: 1px solid var(--border);
}
.ito-popup .leaflet-popup-content {
  margin: 0;
  width: 220px !important;
}
.ito-popup .leaflet-popup-tip {
  background: #fff;
}
.popup-inner {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.popup-thumb {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}
.popup-thumb-empty {
  width: 100%;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: var(--bg);
}
.popup-body {
  padding: 10px 12px 12px;
}
.popup-name {
  font-size: .9rem;
  font-weight: 700;
  margin: 0 0 4px;
  line-height: 1.35;
  color: var(--text);
}
.popup-area {
  font-size: .75rem;
  color: var(--text-sub);
  margin: 0 0 6px;
}
.popup-badge {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  color: #fff;
  padding: 2px 8px;
  border-radius: 10px;
}

/* ════════════════════════════════════
   Detail Leaflet Map
════════════════════════════════════ */
.detail-leaflet-map {
  width: 100%;
  height: 400px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e8ddd4;
  margin-top: 8px;
  /* クリック前はグレーオーバーレイで「クリックして操作」を示す */
  cursor: pointer;
}

/* ── ポップアップのデフォルト角丸調整 ── */
.detail-map-popup .leaflet-popup-content-wrapper {
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}
.detail-map-popup .leaflet-popup-content {
  margin: 0;
}
.detail-map-popup .leaflet-popup-tip-container {
  margin-top: -1px;
}

/* Google Mapで開くリンク */
.map-open-link {
  text-align: right;
  margin-top: 6px;
}
.map-open-link a {
  font-size: 0.82rem;
  color: #e47a61;
  text-decoration: none;
  border-bottom: 1px dashed #e47a61;
}
.map-open-link a:hover {
  opacity: .75;
}

/* モバイル */
@media (max-width: 640px) {
  .detail-leaflet-map {
    height: 280px;
  }
}

/* 問い合わせ */
.contact-page {
  background: #fffaf2;
  padding-bottom: 60px;
}

.contact-hero {
  background: linear-gradient(135deg, #fff3d8, #f8e2b8);
  padding: 48px 20px;
  text-align: center;
  border-bottom: 1px solid #ead6ad;
}

.contact-label {
  display: inline-block;
  background: #8b5e34;
  color: #fff;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.contact-hero h1 {
  font-size: 32px;
  color: #5b3a1e;
  margin: 0 0 14px;
}

.contact-hero p {
  color: #6b563f;
  line-height: 1.8;
  margin: 0;
}

.contact-wrap {
  max-width: 980px;
  margin: 36px auto 0;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 28px;
}

.contact-info-card,
.contact-form {
  background: #fff;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 8px 24px rgba(95, 66, 35, 0.12);
  border: 1px solid #f0dfc3;
}

.contact-info-card h2 {
  color: #5b3a1e;
  font-size: 20px;
  margin-top: 0;
}

.contact-info-card ul {
  padding-left: 20px;
  line-height: 1.9;
  color: #5f4a35;
}

.form-row {
  margin-bottom: 20px;
}

.form-row label {
  display: block;
  font-weight: bold;
  color: #5b3a1e;
  margin-bottom: 8px;
}

.form-row label span {
  background: #d95c4a;
  color: #fff;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 6px;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #dcc8a8;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 16px;
  background: #fffdf8;
}

.form-row textarea {
  resize: vertical;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: #b9823f;
  box-shadow: 0 0 0 3px rgba(185, 130, 63, 0.18);
}

.form-note {
  font-size: 14px;
  color: #7a684f;
  background: #fff7e8;
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.contact-submit {
  width: 100%;
  border: none;
  background: #8b5e34;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  padding: 15px;
  border-radius: 999px;
  cursor: pointer;
}

.contact-submit:hover {
  background: #6f4726;
}

@media screen and (max-width: 768px) {
  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .contact-hero h1 {
    font-size: 26px;
  }

  .contact-info-card,
  .contact-form {
    padding: 22px;
  }
}
