:root {
  --primary: #2d6a4f;
  --primary-dark: #1b4332;
  --accent: #d97706;
  --accent-light: #fffbeb;
  --bg-light: #f8fafc;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --radius: 12px;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 16px -4px rgba(0, 0, 0, 0.08);
  }
  
  /* 1. *naze のタイポを修正し、全要素に正常なボックスサイズを適用 */
  *,
  *::before,
  *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  }
  
  html {
  scroll-behavior: smooth;
  }

  body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-light);
  line-height: 1.6;
  }

  #search-section {
  scroll-margin-top: 76px;
  }

  @media (max-width: 767px) {
  body {
  padding-bottom: 5.5rem;
  }
  }
  
  /* 2. コンテナ：最大幅を設定して余白を確保 */
  .container {
  width: 92%;
  max-width: 1240px;
  margin: 0 auto;
  }
  
  /* ヘッダー */
  .site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  }
  
  .header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  }
  
  .logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-dark);
  }
  
  .btn {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  }
  
  .btn-tel-header {
  background: #f1f5f9;
  color: var(--text-main);
  font-size: 0.85rem;
  }
  
  .btn-tel-header:hover {
  background: #e2e8f0;
  }
  
  /* ヒーローセクション */
  .hero {
  background: linear-gradient(135deg, #2d6a4f, #40916c);
  color: #ffffff;
  padding: 48px 0;
  text-align: center;
  }
  
  .hero h2 {
  font-size: 1.6rem;
  margin-bottom: 10px;
  line-height: 1.35;
  }
  
  .hero-sub {
  max-width: 40rem;
  margin: 0 auto;
  font-size: 0.95rem;
  line-height: 1.75;
  opacity: 0.92;
  }

  .hero-sub span {
  display: inline-block;
  }
  
  /* ガイドセクション */
  .guide-section {
  padding: 32px 0;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  }
  
  .section-title {
  font-size: 1.3rem;
  margin-bottom: 20px;
  text-align: center;
  color: var(--primary-dark);
  }
  
  .steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  }
  
  .step-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  background: #fbfcfe;
  }
  
  .step-num {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
  }
  
  .step-card h4 {
  font-size: 1.05rem;
  margin-bottom: 6px;
  }
  
  .step-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  }
  
  /* カタログセクション */
  .catalog-section {
  padding: 96px 0 96px;
  background-color: #f4f6f4;
  }
  
  .catalog-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
  }
  
  /* 検索・絞り込みボックス */
  .search-filter-box {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
  }
  
  .search-inputs {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  }
  
  .search-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 240px;
  }
  
  .search-field.search-keyword-field {
  flex: 2;
  min-width: 280px;
  }
  
  .search-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
  }
  
  .search-field select,
  .search-field input {
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.95rem;
  background-color: #f8fafc;
  color: #1e293b;
  outline: none;
  transition: all 0.2s ease;
  }
  
  .search-field select:focus,
  .search-field input:focus {
  background-color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.15);
  }
  
  .filter-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  }
  
  .filter-btn {
  padding: 6px 16px;
  font-size: 0.85rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
  }
  
  .filter-btn:hover {
  background: #f1f5f9;
  }
  
  .filter-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  font-weight: 600;
  }

  .filter-btn-core:not(.active) {
  background: #f0fdf4;
  border-color: #86efac;
  color: #166534;
  }

  .catalog-lead {
  margin: 8px 0 0;
  max-width: 40rem;
  font-size: 0.92rem;
  line-height: 1.7;
  color: #475569;
  text-align: left;
  }

  button.criteria-card {
  display: block;
  width: 100%;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  button.criteria-card:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 24px -8px rgb(0 0 0 / 0.28);
  }

  .criteria-card-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #047857;
  }

  .filter-hint {
  margin: 10px 0 0;
  font-size: 0.8rem;
  color: #64748b;
  }
  
  /* 3. カード一覧グリッド：1件でも全幅に伸びないよう、列幅を360〜380pxに固定 */
  .sites-grid,
  #sites-container {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(360px, 380px)) !important;
  justify-content: start;
  gap: 32px !important;
  width: 100%;
  }
  
  /* 4. サイトカード本体 */
  .site-card {
  background: #ffffff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 380px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  }
  
  .site-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  }
  
  /* 5. 画像枠：固定200pxを撤廃し16:9比率を維持 */
  .site-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #e2e8f0;
  }
  
  .site-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
  }
  
  .site-card:hover .site-card-image img {
  transform: scale(1.04);
  }
  
  .site-card-image::after {
  content: "※画像はイメージです";
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.65);
  color: #ffffff;
  font-size: 0.65rem;
  padding: 3px 8px;
  border-radius: 4px;
  pointer-events: none;
  z-index: 2;
  }

  .card-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  z-index: 2;
  pointer-events: none;
  max-width: calc(100% - 20px);
  }

  .card-badge {
  font-size: 0.72rem;
  font-weight: bold;
  padding: 3px 8px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  letter-spacing: 0.02em;
  line-height: 1.4;
  }

  .badge-power {
  background: #15803d;
  color: #ffffff;
  }

  .badge-free {
  background: #d97706;
  color: #ffffff;
  }

  .badge-auto {
  background: #0284c7;
  color: #ffffff;
  }

  .badge-cottage {
  background: #7c3aed;
  color: #ffffff;
  }

  .btn-favorite {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.15s ease, background-color 0.2s ease;
  }

  .btn-favorite:hover {
  transform: scale(1.1);
  background: #ffffff;
  }

  .btn-favorite.is-active {
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(239, 68, 68, 0.35);
  }
  
  /* 6. カード本文 */
  .site-card-body {
  padding: 22px 20px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
  }
  
  .site-card h4 {
  font-size: 1.15rem;
  color: var(--text-main);
  margin-bottom: 8px;
  line-height: 1.4;
  }
  
  .site-recommend {
  font-size: 0.82rem;
  color: var(--accent);
  background: var(--accent-light);
  padding: 6px 10px;
  border-radius: 6px;
  margin-bottom: 14px;
  font-weight: 600;
  line-height: 1.4;
  }

  .facility-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 12px;
  }

  .facility-icon {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: bold;
  line-height: 1.4;
  white-space: nowrap;
  }

  .facility-icon.is-available.icon-toilet {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
  }

  .facility-icon.is-available.icon-bath {
  background: #fef3c7;
  color: #d97706;
  border: 1px solid #fde68a;
  }

  .facility-icon.is-available.icon-car {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
  }

  .facility-icon.is-unavailable {
  background: #f1f5f9;
  color: #94a3b8;
  opacity: 0.6;
  text-decoration: line-through;
  border: 1px solid #e2e8f0;
  }
  
  .site-specs {
  list-style: none;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  }
  
  .site-specs li {
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 6px;
  }
  
  .site-facilities {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
  }
  
  .facility-tag {
  background: #f1f5f9;
  color: #475569;
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 4px;
  }
  
  /* 7. カード下部：枠外へのはみ出しを防ぐルール表記 */
  .site-rules {
  font-size: 0.78rem;
  color: #b91c1c;
  background: #fef2f2;
  padding: 8px 10px;
  border-radius: 6px;
  margin-bottom: 16px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  }
  
  .site-card-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  }
  
  .price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-dark);
  }
  
  .price span {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
  }
  
  .btn-open-modal {
  background: var(--primary);
  color: #fff;
  font-size: 0.85rem;
  }
  
  .btn-open-modal:hover {
  background: var(--primary-dark);
  }
  
  .favorite-bar {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  max-width: calc(100vw - 32px);
  }

  @media (max-width: 767px) {
  .favorite-bar {
  right: 12px;
  bottom: 4.75rem;
  left: 12px;
  z-index: 45;
  }
  }

  .favorite-bar.hidden {
  display: none;
  }

  .favorite-bar-content {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
  padding: 10px 12px 10px 14px;
  }

  .favorite-bar-icon {
  font-size: 1rem;
  line-height: 1;
  }

  #favorite-count-text {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-dark);
  }

  .btn-fav-filter,
  .btn-fav-clear {
  border: none;
  cursor: pointer;
  font-weight: 700;
  }

  .btn-fav-filter {
  background: var(--primary);
  color: #ffffff;
  font-size: 0.78rem;
  border-radius: 999px;
  padding: 7px 12px;
  }

  .btn-fav-filter:hover {
  background: var(--primary-dark);
  }

  .btn-fav-filter.is-active {
  background: #ffffff;
  color: var(--primary);
  box-shadow: inset 0 0 0 1px var(--primary);
  }

  .btn-fav-clear {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f8fafc;
  color: #64748b;
  border: 1px solid #e2e8f0;
  line-height: 1;
  }

  .btn-fav-clear:hover {
  background: #f1f5f9;
  color: #0f172a;
  }

  /* モーダル */
  .modal.hidden {
  display: none;
  }
  
  .modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  }
  
  .modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  }
  
  .modal-content {
  position: relative;
  background: #ffffff;
  width: 92%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--radius);
  padding: 28px;
  z-index: 1001;
  box-shadow: var(--shadow-md);
  }
  
  /* フッター */
  .site-footer {
  text-align: center;
  padding: 28px 0;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-muted);
  background: #ffffff;
  }