/* variables */
:root {
  --brand: #0b7a5d;
  --brand-strong: #0e322b;
  --brand-soft: rgba(11, 122, 93, 0.18);
  --bg: #f5f6fb;
  --panel: #ffffff;
  --text: #1f2933;
  --text-muted: #4b5563;
  --text-strong: #0f172a;
  --divider: #d1d5db;
  --chip-border: rgba(15, 23, 42, 0.12);
  --surface-muted: #f5f5f5;
  --focus-ring: rgba(11, 122, 93, 0.35);
  --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.06);
  --shadow-panel: 0 18px 45px rgba(0, 0, 0, 0.08);
  --primary: var(--brand);
  --hover: var(--brand-strong);
  --card: var(--panel);
  --border: var(--divider);
  --shadow: var(--shadow-soft);
  --shadow-hover: var(--shadow-panel);
  --text-secondary: var(--text-muted);
  --accent: #e55a2e;
}

/* base */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* layout */
/* Header */
.main-header {
  background: var(--card);
  color: var(--text);
  padding: 16px 18px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.main-header.scrolled {
  padding: 12px 18px;
}

.nav {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 32px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
  min-width: 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.2s;
}

.logo:hover {
  opacity: 0.8;
}

.logo-image {
  display: block;
  height: 44px;
}

@media (max-width: 768px) {
  .logo-image {
    height: 34px;
  }
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  flex-shrink: 0;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
  font-weight: 500;
}

.nav a:hover {
  color: var(--primary);
}

/* Header Search - ヒーローセクションと同じデザイン、サイズ感はGetYourGuideを参考 */
.header-search {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  margin-left: 24px;
  margin-right: 24px;
  max-width: none;
}

.header-search-form {
  display: flex;
  align-items: stretch;
  gap: 0;
  width: 100%;
  max-width: 700px;
  background: var(--card);
  border-radius: 50px;
  overflow: visible;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  position: relative;
}

.header-category-menu-button {
  background: var(--brand);
  border: none;
  padding: 0 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  border-radius: 50px 0 0 50px;
  flex-shrink: 0;
  box-sizing: border-box;
}

.header-category-menu-button:hover {
  background: var(--brand-strong);
}

.header-category-menu-button .hamburger-icon {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 18px;
  height: 14px;
}

.header-category-menu-button .hamburger-icon span {
  display: block;
  width: 100%;
  height: 2.5px;
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.header-category-menu-button:hover .hamburger-icon span:nth-child(1) {
  transform: rotate(45deg) translate(4.5px, 4.5px);
}

.header-category-menu-button:hover .hamburger-icon span:nth-child(2) {
  opacity: 0;
}

.header-category-menu-button:hover .hamburger-icon span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -5.5px);
}

.header-search-input {
  flex: 1;
  padding: 12px 20px;
  border: none;
  font-size: 0.95rem;
  outline: none;
  box-sizing: border-box;
  line-height: 1.4;
  background: transparent;
  color: var(--text);
}

.header-search-input::placeholder {
  color: var(--text-secondary);
}

.header-search-button {
  padding: 12px 28px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 0 50px 50px 0;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.header-search-button:hover {
  background: var(--hover);
}

@media (max-width: 768px) {
  .header-search {
    margin-left: 12px;
    margin-right: 12px;
    max-width: none;
  }
  
  .header-search-form {
    max-width: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  }
  
  .header-category-menu-button {
    padding: 0 16px;
  }
  
  .header-search-input {
    padding: 12px 16px;
    font-size: 0.9rem;
  }
  
  .header-search-button {
    padding: 12px 24px;
    font-size: 0.9rem;
  }
}

/* Container */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px;
}

.section {
  margin: 60px auto 0;
  padding: 0 18px;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.section.event-block {
  padding: 0 18px;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.section h2 {
  font-size: 1.9rem;
  margin-bottom: 24px;
  font-weight: 700;
  text-align: center;
}

/* components */
/* Hero Section */
.hero-section {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 60px;
  overflow: hidden;
}

.hero-section-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

.hero-section-background.active {
  opacity: 1;
}

.hero-section-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3));
  z-index: 1;
}

.hero-section .hero-content {
  position: relative;
  z-index: 2;
}

.hero-content {
  text-align: center;
  color: #fff;
  max-width: 800px;
  padding: 0 20px;
  z-index: 2;
  position: relative;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 32px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-search-form {
  display: flex;
  align-items: stretch;
  gap: 0;
  max-width: 700px;
  margin: 0 auto 16px;
  background: var(--card);
  border-radius: 50px;
  overflow: visible;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  position: relative;
}

.category-menu-button {
  background: var(--primary);
  border: none;
  padding: 0 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  border-radius: 50px 0 0 50px;
  flex-shrink: 0;
  box-sizing: border-box;
}

.category-menu-button:hover {
  background: var(--hover);
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 18px;
  height: 14px;
}

.hamburger-icon span {
  display: block;
  width: 100%;
  height: 2.5px;
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.category-menu-button:hover .hamburger-icon span:nth-child(1) {
  transform: rotate(45deg) translate(4.5px, 4.5px);
}

.category-menu-button:hover .hamburger-icon span:nth-child(2) {
  opacity: 0;
}

.category-menu-button:hover .hamburger-icon span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -5.5px);
}

.category-menu {
  position: fixed;
  top: 0;
  left: 0;
  margin-top: 0;
  background: var(--card);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  min-width: 300px;
  max-width: 500px;
  z-index: 9999;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  transform: translateY(-10px);
  max-height: 70vh;
  overflow-y: auto;
}

/* メニューが表示されている時はpointer-eventsを有効にしてホバー可能にする */
.category-menu:hover {
  pointer-events: auto;
}

/* search-wrapperとsearch-bar-wrapperはoverflow: visibleにしてメニューが切れないようにする */
.search-wrapper,
.search-bar-wrapper {
  overflow: visible;
  position: relative;
}

/* メニューの表示はJavaScriptで制御するため、:hoverは削除 */
/* カーソルが離れても3秒間は開いたままにする機能をJavaScriptで実装 */

.category-menu-content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.category-menu-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  text-decoration: none;
  color: var(--text);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.category-menu-item:hover {
  background: #f0f5f1;
  transform: translateY(-1px);
}

.category-menu-item:active {
  background: #d4ede4;
  transform: translateY(0);
}

.category-menu-item .icon {
  font-size: 0.95rem;
  width: 18px;
  height: 18px;
  display: inline-block;
  flex-shrink: 0;
}

.category-menu-item .name {
  font-size: 0.85rem;
  font-weight: 500;
}

.hero-search-input {
  flex: 1;
  padding: 18px 24px;
  border: none;
  font-size: 0.95rem;
  outline: none;
  box-sizing: border-box;
  line-height: 1.2;
}

.hero-search-input::placeholder {
  color: var(--text-secondary);
}

.hero-search-button {
  padding: 18px 40px;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 0 50px 50px 0;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  flex-shrink: 0;
}

.hero-search-button:hover {
  background: var(--brand-strong);
}

.hero-subtext {
  font-size: 0.95rem;
  opacity: 0.9;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

/* Search Bar */
.search-bar {
  max-width: 1180px;
  margin: 0 auto;
  background: var(--card);
  padding: 12px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin-top: 12px;
}

.search-form {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr auto;
  gap: 8px;
  align-items: end;
}

.search-form input,
.search-form select {
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  width: 100%;
}

.search-form button {
  padding: 10px 20px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
  font-size: 0.9rem;
}

.search-form button:hover {
  background: #e55a2e;
}

.search-quick-buttons {
  margin-top: 8px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.search-quick-buttons button {
  padding: 6px 12px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: background 0.2s;
}

.search-quick-buttons button:hover {
  background: #e8e8e8;
}

/* Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.related-events-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 1024px) {
  .related-events-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .related-events-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .related-events-grid {
    grid-template-columns: 1fr;
  }
}

/* Card Carousel */
.card-carousel-wrapper {
  position: relative;
  margin-top: 20px;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding: 0;
  width: 100%;
}

.card-carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 12px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.card-carousel .card {
  flex: 0 0 270px;
  width: 270px;
  min-width: 270px;
  max-width: 270px;
  scroll-snap-align: start;
}


.card-carousel::-webkit-scrollbar {
  display: none;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.4rem;
  color: #fff;
  box-shadow: 0 2px 8px var(--shadow);
  z-index: 10;
  transition: all 0.2s;
  font-weight: 300;
}

.carousel-arrow:hover {
  background: var(--hover);
  box-shadow: 0 4px 12px var(--shadow-hover);
  transform: translateY(-50%) scale(1.05);
}

.carousel-arrow-right {
  right: 0;
}

.carousel-arrow-left {
  left: -20px;
}

@media (min-width: 900px) {
  .carousel-arrow {
    display: flex;
  }
}

.card {
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
  cursor: pointer;
  height: 100%;
}

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

.card.highlighted {
  border: 2px solid var(--accent);
  box-shadow: 0 16px 32px rgba(248, 107, 64, 0.3);
}

.card-image-wrapper {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-favorite {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #333;
  transition: all 0.2s;
  z-index: 2;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.card-favorite:hover {
  background: var(--card);
  color: #e74c3c;
  transform: scale(1.05);
}

.card-favorite.active {
  color: #e74c3c;
}

.card-favorite.active svg {
  fill: currentColor;
}

.card-favorite svg {
  width: 18px;
  height: 18px;
}

.card-body {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card-badges-rating {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.card-type {
  font-size: 0.75rem;
  color: #666;
  font-weight: 500;
  margin-bottom: 2px;
  text-align: center;
}

.card-title {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #333;
  margin-bottom: 4px;
  text-align: center;
  width: 100%;
  min-height: 2.66rem; /* 2行分の高さを確保 (0.95rem * 1.4 * 2) */
}

.card-duration {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 6px;
  text-align: center;
}

.card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.9rem;
  margin: 0;
}

.rating-value {
  font-weight: 600;
  color: #333;
}

.rating-star {
  color: #f5a623;
  font-size: 1rem;
  font-weight: 400;
  display: inline-block;
  line-height: 1;
  opacity: 0.9;
}

.rating-count {
  color: #666;
  font-size: 0.85rem;
}

.card-location {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 8px;
  text-align: left;
  width: 100%;
  min-height: 1.2rem; /* 場所の高さを統一 */
  line-height: 1.2rem;
}

.card-date {
  font-size: 0.85rem;
  color: var(--primary);
  margin-bottom: 8px;
  text-align: left;
  width: 100%;
  line-height: 1.4rem;
  font-weight: 500;
}

.card-price {
  color: #000;
  font-weight: 700;
  font-size: 1.25rem;
  margin-top: auto;
  text-align: right;
  width: 100%;
}

.card-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.badge {
  display: inline-block;
  background: #eaf7f1;
  color: var(--primary);
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 800;
}

.badge.recommended {
  background: #fff3e0;
  color: #e65100;
}

.badge.new {
  background: #e3f2fd;
  color: #1565c0;
}

.badge.external-link {
  background: #f3e5f5;
  color: #7b1fa2;
}

.badge.upcoming {
  background: #e8f5e9;
  color: #2e7d32;
}

.card-link {
  text-decoration: none;
  color: inherit;
}

/* Map */
/* リスト+マップコンテナ（2カラムレイアウト） */
.list-map-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin-top: 20px;
  position: relative;
  align-items: start;
}

.event-list-column {
  overflow: visible;
  height: auto;
  max-height: none;
  padding-right: 10px;
}

/* イベント一覧ページのグリッドを3カラムに固定（3つずつ横並び） */
.event-list-column .grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.map-column {
  position: sticky;
  top: 170px;
  align-self: start;
  height: calc(100vh - 190px);
  min-height: 400px;
  max-height: calc(100vh - 190px);
  /* スクロールしても固定 */
  will-change: transform;
  /* 常に固定 */
  z-index: 10;
  /* サイドバーとして追従 */
  overflow: visible;
}

.map-container {
  position: relative;
  width: 100%;
  height: 400px;
  min-height: 400px;
  border-radius: 14px;
  overflow: hidden;
  background: #e8f5e9;
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.map-container #map {
  width: 100%;
  height: 100%;
  min-height: 400px;
}

/* イベント詳細ページのマップiframe */
.map-container iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: 0;
}

/* イベントカードの選択状態 */
.event-card.selected,
.event-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  border-color: var(--primary);
}

.event-card.selected {
  border: 2px solid var(--primary);
}

.map-container .map-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
}

.map-toggle {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Filters */
.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0;
  align-items: center;
}

.filters select,
.filters input {
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.9rem;
}

.filter-reset {
  padding: 10px 16px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.filter-reset:hover {
  background: #e8e8e8;
}

/* Bottom Sheet (Mobile) */
.bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--card);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.3s ease-out;
  max-height: 80vh;
  overflow-y: auto;
}

.bottom-sheet.open {
  transform: translateY(0);
}

.bottom-sheet-header {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: var(--card);
  z-index: 1;
}

.bottom-sheet-content {
  padding: 20px;
}

.bottom-sheet-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.bottom-sheet-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* Event Blocks */
.event-block {
  margin: 40px 0;
}

.event-block-header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 24px;
  gap: 16px;
  position: relative;
  width: 100%;
}

.event-block-header h2 {
  margin: 0;
  font-size: 1.9rem;
  font-weight: 700;
  text-align: center;
  flex: 1;
  display: flex;
  justify-content: center;
}

.event-block-header .view-all {
  position: absolute;
  right: 0;
}

.week-event-header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
  position: relative;
  width: 100%;
}

.week-event-header h2 {
  margin: 0;
  font-size: 1.9rem;
  font-weight: 700;
  text-align: center;
  flex: 1;
  display: flex;
  justify-content: center;
}

.week-event-header .week-nav-button {
  position: absolute;
  right: 0;
}

.view-all {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.view-all:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* Pop Section (季節・編集部おすすめポップ) */
.pop-section {
  margin-bottom: 24px;
  padding-bottom: 0;
  max-width: 100%;
  padding: 0;
  margin-left: 0;
  margin-right: 0;
}

/* 1段目：大きな横長バナー */
.pop-banner-wrapper {
  max-width: 1400px;
  margin: 0 auto 20px auto;
  padding: 0 18px;
}

/* 2段目：キャンペーンカード */
.pop-campaigns-wrapper {
  width: 100%;
  margin: 0;
  padding: 0 12px;
  box-sizing: border-box;
}


.pop-carousel-wrapper {
  overflow-x: hidden;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 8px;
  /* スマホでのスワイプを改善 */
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  position: relative;
}

.pop-carousel-wrapper.pop-carousel-infinite {
  overflow-x: hidden;
}

.pop-carousel-wrapper::-webkit-scrollbar {
  display: none;
}

.pop-carousel {
  display: flex;
  gap: 12px;
  padding: 0;
  width: max-content;
  /* スマホでのスクロールをスムーズに */
  will-change: transform;
}

/* 無限スクロールアニメーション */
.pop-carousel-wrapper.pop-carousel-infinite .pop-carousel {
  animation: popCarouselScroll 40s linear infinite;
}

@keyframes popCarouselScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ホバー時にアニメーションを一時停止 */
.pop-carousel-wrapper.pop-carousel-infinite:hover .pop-carousel {
  animation-play-state: paused;
}

@media (min-width: 769px) {
  .pop-carousel {
    gap: 16px;
  }
}

/* トップバナー（大きな横長） */
.pop-banner {
  width: 100%;
  max-width: 100%;
  height: 140px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  display: grid;
  text-decoration: none;
  grid-template-columns: 1fr 1fr;
  background: var(--card);
}

.pop-banner:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.pop-banner-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pop-banner-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  color: #fff;
}

.pop-banner-content {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(135deg, #6BB6FF, #4A9EFF);
  color: #fff;
}

.pop-banner-badge {
  display: inline-block;
  background: #FFD700;
  color: #1e2a23;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  margin-bottom: 8px;
  width: fit-content;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.pop-banner-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 6px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.pop-banner-subtitle {
  font-size: 0.85rem;
  opacity: 0.95;
  margin-bottom: 6px;
  line-height: 1.5;
  font-weight: 500;
}

.pop-banner-info {
  font-size: 0.7rem;
  opacity: 0.85;
  margin-bottom: 12px;
  line-height: 1.4;
}

.pop-banner-button {
  display: inline-block;
  background: var(--card);
  color: #2C5AA0;
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  width: fit-content;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.pop-banner-button:hover {
  background: #f0f0f0;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* キャンペーンカード（正方形/横長） */
.pop-card {
  flex: 0 0 320px;
  width: 320px;
  height: 126px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  background: var(--card);
  display: flex;
  flex-direction: column;
}

.pop-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.pop-card-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

.pop-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3), transparent);
  padding: 8px 12px;
  color: #fff;
}

.pop-card-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: #fff;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 10px;
  width: fit-content;
}

.pop-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 2px;
  line-height: 1.2;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.pop-card-subtitle {
  font-size: 0.75rem;
  opacity: 0.95;
  line-height: 1.3;
  margin-bottom: 4px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.pop-card-cta {
  display: inline-block;
  margin-top: 2px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  opacity: 0.95;
  transition: opacity 0.2s;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.pop-card-cta:hover {
  opacity: 1;
}

@media (max-width: 768px) {
  .pop-banner-wrapper,
  .pop-campaigns-wrapper {
    padding: 0 12px;
  }

  .pop-banner {
    height: 112px;
    grid-template-columns: 1fr;
  }

  .pop-banner-image {
    display: none;
  }

  .pop-banner-content {
    padding: 10px 12px;
  }

  .pop-banner-title {
    font-size: 0.95rem;
  }

  .pop-card {
    flex: 0 0 280px;
    width: 280px;
    height: 112px;
  }

  .pop-card-title {
    font-size: 1.2rem;
  }

  .pop-card-subtitle {
    font-size: 0.7rem;
  }
  
  .pop-card-cta {
    font-size: 0.65rem;
  }
}

/* Categories */
.categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.cat {
  background: var(--card);
  padding: 14px 16px;
  border-radius: 12px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
  text-align: left;
}

.cat:hover {
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.1);
}

.cat span {
  font-size: 1.1rem;
}

.cat .category-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: inline-block;
}

/* Week Calendar */
.week-calendar {
  background: var(--card);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 12px var(--shadow);
  overflow-x: auto;
  min-height: 80px;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.week-calendar-list {
  display: flex;
  gap: 12px;
  align-items: stretch;
  width: max-content;
  margin: 0 auto;
  transition: transform 0.3s ease-in-out;
}

.week-calendar-sliding .week-calendar-list {
  animation: slideWeek 0.3s ease-in-out;
}

@keyframes slideWeek {
  0% {
    opacity: 0;
    transform: translateX(20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 今週のイベントのスクロールバーを非表示 */
.week-calendar {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.week-calendar::-webkit-scrollbar {
  display: none;
}

.week-day-item {
  flex: 0 0 110px;
  min-width: 110px;
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 8px;
  border: 1px solid var(--chip-border);
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--card);
  scroll-snap-align: start;
}

.week-day-item:hover {
  background: #e6f5ef;
  border-color: var(--brand);
  color: var(--text-strong);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.week-day-item:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.week-day-item.has-events {
  background: #eaf9f0;
  border-color: var(--brand);
  font-weight: 600;
  color: var(--text-strong);
}

.week-day-item.has-events:hover {
  background: #e7fff2;
}

.week-day-item.today {
  background: #fff9f3;
  border-color: var(--brand-strong);
  border-width: 2px;
  font-weight: 700;
  color: var(--text-strong);
}

.week-day-item.today.has-events {
  background: #ffece0;
}

.week-day-date {
  display: block;
  margin-bottom: 2px;
  line-height: 1.4;
  font-weight: 600;
}

.week-day-name {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.2;
}

 .week-day-count {
  font-size: 0.75rem;
  color: var(--text-strong);
  background: rgba(15, 23, 42, 0.08);
  padding: 2px 6px;
  border-radius: 10px;
  display: inline-block;
  margin-top: 4px;
  font-weight: 600;
}
.week-day-item.today .week-day-count {
  background: rgba(248, 107, 64, 0.2);
  color: var(--accent);
}

.week-calendar-wrapper {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
}

.week-nav-arrow {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 300;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 10;
  transition: all 0.2s ease;
}

.week-nav-arrow:hover {
  background: var(--hover);
  box-shadow: 0 4px 16px rgba(11, 122, 93, 0.3);
  transform: translateY(-50%) scale(1.08);
}

/* Organizer */
.organizer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.organizer-card {
  background: var(--card);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.2s;
  border: 1px solid var(--border);
}

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

.organizer-header {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.organizer-logo {
  width: 100px;
  height: 100px;
  border-radius: 12px;
  object-fit: cover;
  background: #f0f0f0;
}

.organizer-info h3 {
  margin-bottom: 8px;
}

.organizer-meta {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.organizer-meta span {
  white-space: nowrap;
}

@media (max-width: 768px) {
  .organizer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .organizer-card {
    padding: 20px;
  }

  .organizer-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .organizer-logo {
    width: 80px;
    height: 80px;
  }
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: 16px;
}

.empty-suggestions {
  max-width: 1180px;
  margin: 0 auto 40px;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.empty-suggestions-section h4 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--text);
}

.empty-suggestions-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.empty-suggestion-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--text);
  font-size: 0.85rem;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: background 0.2s, border-color 0.2s;
}

.empty-suggestion-chip:hover {
  background: #e9f3ef;
  border-color: var(--primary);
}

.empty-suggestion-icon {
  font-size: 1rem;
}

.empty-suggestions-events {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

/* Mobile */
@media (max-width: 768px) {
  .main-header {
    padding: 12px 16px;
  }

  .logo {
    font-size: 1.5rem;
    font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: 0.1em;
  }

  .nav-links {
    gap: 16px;
  }

  .nav a {
    font-size: 0.85rem;
  }

  .hero-section {
    height: 400px;
    margin-bottom: 40px;
  }

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

  .hero-search-form {
    flex-direction: column;
    border-radius: 12px;
  }

  .hero-search-input {
    padding: 14px 20px;
    border-radius: 12px 12px 0 0;
  }

  .hero-search-button {
    padding: 14px 20px;
    border-radius: 0 0 12px 12px;
  }

  .hero-subtext {
    font-size: 0.85rem;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .filters {
    flex-direction: column;
    align-items: stretch;
  }

  .filters select,
  .filters input {
    width: 100%;
  }

  /* モバイルでは1カラム（マップを下に） */
  .list-map-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .event-list-column {
    max-height: none;
    padding-right: 0;
  }

  /* モバイルでは1カラム */
  .event-list-column .grid {
    grid-template-columns: 1fr;
  }

  .map-column {
    position: static;
    height: 400px;
    min-height: 400px;
  }

  .map-container {
    height: 400px;
  }
}

/* タブレットサイズ（1024px以下）では2カラム */
@media (max-width: 1024px) and (min-width: 769px) {
  .event-list-column .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .event-block-header {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .event-block-header .view-all {
    position: static;
    margin-top: 8px;
  }

  .nav-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .header-search {
    max-width: 100%;
    width: 100%;
  }

  .header-search-form {
    max-width: 100%;
  }

  .week-calendar {
    padding: 12px;
  }

  .week-calendar-list {
    gap: 8px;
  }

  .week-day-item {
    min-width: 75px;
    padding: 10px 6px;
    font-size: 0.85rem;
  }

  .week-day-date {
    font-size: 0.8rem;
  }

  .card-carousel {
    grid-template-columns: repeat(2, 260px);
    gap: 12px;
  }

  .card-carousel .card {
    min-width: 260px;
    max-width: 260px;
  }

  .card-image-wrapper {
    height: 160px;
  }

}

/* Footer */
.main-footer {
  background: #1a1a2e;
  color: #fff;
  padding: 60px 20px 30px;
  margin-top: 80px;
}

.footer-content {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px;
  margin-bottom: 40px;
}

.footer-column h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: #fff;
}

.footer-column a {
  display: block;
  color: #ccc;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 400 !important;
  margin-bottom: 10px;
  transition: color 0.2s;
}

.footer-column a:hover {
  color: #fff;
  font-weight: 400 !important;
}


.footer-select {
  width: 100%;
  padding: 10px;
  background: var(--card);
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.9rem;
  margin-bottom: 20px;
  cursor: pointer;
}

.app-button {
  width: 100%;
  padding: 12px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 0.85rem;
  margin-bottom: 10px;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s;
}

.app-button:hover {
  background: #333;
}

.payment-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.payment-methods span {
  background: var(--card);
  color: #333;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  padding-top: 30px;
  border-top: 1px solid #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copyright {
  font-size: 0.85rem;
  color: #ccc;
}

.footer-logo {
  font-size: 1.1rem;
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.05em;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #333;
  color: #fff;
  border-radius: 50%;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.footer-social a:hover {
  background: #555;
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

/* 人気タグ・地域検索セクション */
.popular-search-section {
  margin: 60px 0 40px 0;
  padding: 40px 18px;
  background: var(--bg);
}

.popular-search-container {
  max-width: 1400px;
  margin: 0 auto;
}

.popular-search-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 24px;
}

.popular-tab {
  padding: 12px 24px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  bottom: -2px;
}

.popular-tab:hover {
  color: var(--primary);
}

.popular-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.popular-search-content {
  min-height: 300px;
}

.popular-list-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px 20px;
}

.popular-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s;
  border: 1px solid transparent;
  background: var(--card);
}

.popular-item:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(11, 122, 93, 0.2);
}

.popular-item-name {
  font-weight: 500;
  font-size: 0.95rem;
}

.popular-item-count {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-left: 12px;
}

.popular-item:hover .popular-item-count {
  opacity: 0.9;
}

@media (max-width: 768px) {
  .popular-search-section {
    margin: 40px 0 30px 0;
    padding: 30px 12px;
  }

  .popular-search-tabs {
    flex-wrap: wrap;
    gap: 8px;
  }

  .popular-tab {
    padding: 10px 16px;
    font-size: 0.9rem;
  }

  .popular-list-container {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px 12px;
  }

  .popular-item {
    padding: 10px 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .popular-item-count {
    margin-left: 0;
    font-size: 0.75rem;
  }
}

/* Column Items */
.column-item {
  background: var(--card);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.2s;
}

.column-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.column-item-date {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.column-item-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 12px 0;
  color: var(--text);
  line-height: 1.4;
}

.column-item-excerpt {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.column-item-link {
  display: inline-flex;
  align-items: center;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.column-item-link:hover {
  color: var(--hover);
  text-decoration: underline;
}

/* 地図から探すセクション */
.map-search-description {
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.map-search-description p {
  margin-bottom: 16px;
}

.map-search-container {
  width: 100%;
  margin-top: 24px;
  min-height: 500px;
}

.map-search-sidebar {
  background: var(--card);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.map-region-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.map-region-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text);
  font-weight: 500;
}

.map-region-item:hover {
  background: #f0f5f1;
}

.map-region-item.active {
  background: var(--primary);
  color: #fff;
}

.map-region-icon {
  font-size: 0.8rem;
  color: var(--accent);
}

.map-region-item.active .map-region-icon {
  color: #fff;
}

.map-search-map {
  background: var(--card);
  border-radius: 16px;
  padding: 10px;
  position: relative;
  min-height: 500px;
}

.map-filter-no-results {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(360px, calc(100% - 32px));
  padding: 16px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  color: var(--text);
  text-align: center;
  display: none;
  flex-direction: column;
  gap: 6px;
  z-index: 5;
}
.no-results-guidance {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* 地図エリア（左地図＋右カラム） */
.map-area {
  margin: 0 auto;
  padding: 18px;
  max-width: 1180px;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 16px;
  align-items: start;
  width: 100%;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: var(--shadow-soft);
}
.map-prefecture {
  position: absolute;
  padding: 12px 20px;
  background: var(--card);
  border: 2px solid var(--primary);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 140px;
  text-align: center;
  align-items: center;
}

.map-area .map-left {
  background: transparent;
  border: none;
  box-shadow: none;
}

.map-left {
  min-width: 0;
  border-radius: 16px;
  background: transparent;
  border: none;
  overflow: hidden;
}
.map-right {
  position: relative;
  padding-left: 10px;
  border-left: 1px solid rgba(15,23,42,0.06);
}
.map-controls {
  position: sticky;
  top: 110px;
  padding: 14px 14px 16px;
  border-radius: 14px;
  background: transparent;
  border: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.map-controls .clear-button,
.map-controls button.clear {
  background: transparent;
  border: 1px solid rgba(15, 23, 42, 0.10);
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: none;
}
.map-controls .clear-button:hover,
.map-controls button.clear:hover {
  border-color: rgba(11,122,93,0.35);
  color: var(--primary);
  background: rgba(11,122,93,0.06);
}
.map-controls #categoryCard,
.map-controls .search-card {
  padding: 16px;
  border-radius: 12px;
  background: rgba(245,246,251,0.7);
  border: 1px solid rgba(15,23,42,0.08);
  box-shadow: none;
}

.map-cta {
  appearance: none;
  -webkit-appearance: none;
  margin-top: 8px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 14px;
  padding: 14px 18px;
  min-height: 52px;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  user-select: none;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--primary) 92%, #fff 8%) 0%,
    var(--primary) 60%,
    color-mix(in srgb, var(--primary) 86%, #000 14%) 100%
  );
  box-shadow:
    0 10px 22px rgba(11,122,93,0.22),
    inset 0 1px 0 rgba(255,255,255,0.18);
  transform: translateZ(0);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.map-cta *{
  background: transparent !important;
  box-shadow: none !important;
}
.map-cta:hover{
  transform: translateY(-1px);
  filter: saturate(1.02);
  box-shadow:
    0 14px 26px rgba(11,122,93,0.28),
    inset 0 1px 0 rgba(255,255,255,0.22);
}
.map-cta:active{
  transform: translateY(0px);
  box-shadow:
    0 10px 22px rgba(11,122,93,0.20),
    inset 0 2px 10px rgba(0,0,0,0.18);
}
.map-cta:focus-visible{
  outline: none;
  box-shadow:
    0 0 0 4px var(--focus-ring),
    0 14px 26px rgba(11,122,93,0.28);
}
.map-cta::before{
  content: "";
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(15,23,42,0.12), transparent);
  margin-bottom: 14px;
}
.map-cta::after{
  content: "選択中の条件で表示します";
  display: block;
  margin-top: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.85;
}
.prefecture-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary);
}

.prefecture-count {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.map-prefecture:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.map-prefecture.active {
  background: var(--primary);
  color: #fff;
}

.map-svg .pref {
  fill: #f4f7f6;
  stroke: rgba(15,23,42,0.18);
  stroke-width: 1.3;
  transition: fill 0.2s ease, stroke 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}
.map-svg .pref:hover {
  fill: rgba(11,122,93,0.14);
  stroke: rgba(11,122,93,0.65);
  stroke-width: 1.6;
  transform: translateY(-1px);
}
.map-svg .pref.is-selected {
  fill: rgba(11,122,93,0.38);
  stroke: rgba(11,122,93,0.95);
  stroke-width: 2.1;
}

/* 関東地方の地図レイアウト */
#kanto-map .map-prefecture[data-prefecture="tokyo"] {
  top: 52%;
  left: 48%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

#kanto-map .map-prefecture[data-prefecture="kanagawa"] {
  top: 65%;
  left: 45%;
  z-index: 9;
}

#kanto-map .map-prefecture[data-prefecture="saitama"] {
  top: 38%;
  left: 48%;
  z-index: 8;
}

#kanto-map .map-prefecture[data-prefecture="chiba"] {
  top: 58%;
  left: 62%;
  z-index: 9;
}

#kanto-map .map-prefecture[data-prefecture="ibaraki"] {
  top: 32%;
  left: 62%;
  z-index: 7;
}

#kanto-map .map-prefecture[data-prefecture="tochigi"] {
  top: 28%;
  left: 48%;
  z-index: 6;
}

#kanto-map .map-prefecture[data-prefecture="gunma"] {
  top: 32%;
  left: 38%;
  z-index: 5;
}

#kanto-map .map-prefecture[data-prefecture="yamanashi"] {
  top: 52%;
  left: 32%;
  z-index: 4;
}

.map-cities-list {
  width: 100%;
  height: 100%;
  min-height: 500px;
  background: var(--card);
  border-radius: 12px;
  padding: 24px;
}

.map-back-button {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 20px;
  transition: background 0.2s;
}

.map-back-button:hover {
  background: var(--hover);
}

.map-cities-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text);
}

.map-cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.map-city-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.map-city-item:hover {
  border-color: var(--primary);
  background: #f0f5f1;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.city-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

.city-count {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.map-city-item:hover .city-count {
  color: var(--primary);
}

@media (max-width: 768px) {
  .map-search-container {
    grid-template-columns: 1fr;
  }
  
  .map-search-sidebar {
    order: 2;
  }
  
  .map-search-map {
    order: 1;
    min-height: 300px;
  }
  
  .map-cities-grid {
    grid-template-columns: 1fr;
  }
}

/* utilities */
.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

/* 統合済みセレクタ一覧:
   - .carousel-arrow（表示ルールを1か所に統一）
   - .map-cta（one block only、余分な再定義を削除）
   - .popular-tab（tabスタイル1系統に統合）
   - .category-menu-button（冗長な再定義を削除）
   - header-searchの@media（同一クエリ内で1回だけ）
   - .pop-carouselの@media gap定義（重複を削除）
*/

