@import url('./hamburger_menu.css');

/* 基本リセット */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hiragino Sans",
    "Noto Sans CJK JP", "Original Yu Gothic", "Yu Gothic", sans-serif;
  color: #333;
  background-color: #fff;
  line-height: 1.5;
}

/* ラッパー */
.container {
  width: 100%;
  margin: 0 auto;
  /* PC表示時に広がりすぎないよう制限 */
  max-width: 1024px;
}

/* ヘッダー */
.site-header {
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
}
.header-inner {
  padding: 10px 15px 0;
}

.header-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

/* ロゴ画像の調整 */
.site-logo {
  display: block;
  width: 100px; /* 適切なサイズに指定 */
  height: auto;
}

.login-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 10px;
  color: #666;
  cursor: pointer;
}
.login-link i {
  font-size: 16px;
  margin-bottom: 2px;
}

/* カテゴリナビ */
.category-nav {
  overflow-x: auto;
  white-space: nowrap;
  padding-bottom: 10px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.category-nav::-webkit-scrollbar {
  display: none;
}

.category-nav ul {
  display: flex;
  gap: 10px;
  list-style: none;
}

.category-nav a {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border: 1px solid #ddd;
  border-radius: 20px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
  font-weight: bold;
  background: #fff;
  transition: background-color 0.2s;
}
.category-nav a:hover {
  background-color: #f9f9f9;
}
.category-nav a i {
  margin-right: 5px;
  color: #777;
}

/* メインコンテンツ */
main {
  padding: 0 15px 20px;
}

/* タイトルとフィルタ */
.page-header {
  margin-top: 15px;
  margin-bottom: 20px;
}

/* --- ▼▼▼ hタグ調整ここから ▼▼▼ --- */
h1 {
  font-size: 22px; /* 18pxからアップ */
  font-weight: bold;
  margin-bottom: 8px;
  line-height: 1.4;
  color: #222;
}

h2 {
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  margin-bottom: 15px;
  padding-bottom: 5px;
  border-bottom: 2px solid #f5f5f5; /* 下線で区切り */
  color: #333;
}

h3 {
  font-size: 16px;
  font-weight: bold;
  margin-top: 10px;
  margin-bottom: 10px;
  color: #333;
}
/* --- ▲▲▲ hタグ調整ここまで ▲▲▲ --- */

.result-count {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #666;
}

.area-filter-title {
  font-size: 14px;
  font-weight: bold;
  color: #333;
  margin-bottom: 8px;
}

.filter-buttons {
  display: flex;
  gap: 10px;
}
.filter-buttons button {
  flex: 1;
  padding: 10px;
  background: #fff;
  border: 1px solid #333;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.2s;
}
.filter-buttons button:hover {
  background-color: #f0f0f0;
}

/* 店舗リスト (デフォルトは縦並び) */
.shop-list {
  display: block;
}

/* 店舗カード */
.shop-card {
  margin-bottom: 30px;
  border: 1px solid #eee;
  border-radius: 8px;
  padding-bottom: 12px;
  overflow: hidden;
  position: relative; /* 内部要素の基準位置 */
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.shop-thumbnail {
  position: relative;
  width: 100%;
  height: 170px;
  margin-bottom: 8px;
  overflow: hidden;
  background-color: #f0f0f0;
}

.shop-thumbnail img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
}

.placeholder-img {
  width: 100%;
  height: 100%;
  background-color: #888;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
}
.product-item .placeholder-img {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  font-size: 10px;
  flex-shrink: 0;
}

.status-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  background: rgba(80, 80, 80, 0.95);
  color: #fff;
  font-size: 10px;
  padding: 4px 8px;
  border-top-right-radius: 4px;
}

.shop-info {
  padding: 0 10px;
  margin-bottom: 10px;
}

.shop-header {
  display: flex;
  flex-direction: column;       /* 2026-06-03: 店名 → 住所 を縦並びに */
  align-items: flex-start;
  margin-bottom: 4px;
}

.shop-name {
  font-size: 16px;
  font-weight: bold;
  line-height: 1.4;
}

/* 2026-06-03: 店名直下の住所 (郵便番号除去済、1 行省略) */
.shop-address {
  font-size: 10px;
  color: #777;
  margin: 2px 0 0 0;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.delivery-time {
  font-size: 12px;
  color: #666;
  white-space: nowrap;
  margin-left: 10px;
}

.shop-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.rating {
  font-weight: bold;
}
.rating i {
  color: #333;
  margin-right: 2px;
}
/* 店舗名下の★をコメントの★と同じ黄色に */
.rating-star {
  color: #ffcc00;
}
.review-count {
  color: #888;
  font-weight: normal;
  margin-left: 4px;
}

.delivery-fee {
  display: flex;
  align-items: center;
  gap: 5px;
}
.delivery-fee .strike {
  text-decoration: line-through;
  color: #aaa;
  font-size: 10px;
}

/* 商品カルーセル */
.product-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 0 10px 10px;
  margin-bottom: auto; /* ボタンを下端に押しやるために余白自動 */
  -ms-overflow-style: none;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.product-carousel::-webkit-scrollbar {
  display: none;
}

.product-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 80px;
  min-width: 80px;
  max-width: 80px;
  flex-shrink: 0;
  cursor: pointer;
}

.product-img {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  background-color: #ccc;
  margin-bottom: 5px;
  transition: transform 0.2s;
  object-fit: cover;
  flex-shrink: 0;
}
.product-img img {
  width: 75px;
  height: 75px;
  object-fit: cover;
  display: block;
}
.product-item:hover .product-img {
  transform: scale(1.05);
}

.product-name {
  font-size: 10px;
  font-weight: bold;
  color: #333;
  text-align: center;
  width: 100%;
  line-height: 1.3;
  max-height: 26px; /* 10px * 1.3 * 2行 = 26px */
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-all;
}

/* 他の店舗の簡易リスト（開閉パネル） */
.other-stores-panel {
  background-color: #f8f8f8;
  margin: 0 10px 10px;
  padding: 10px;
  border-radius: 4px;
  border: 1px solid #ddd;
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.other-stores-title {
  font-size: 11px;
  font-weight: bold;
  color: #666;
  margin-bottom: 5px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 3px;
}

.other-stores-list {
  list-style: none;
}

.other-stores-list li {
  font-size: 12px;
  color: #333;
  padding: 3px 0;
  border-bottom: 1px dashed #eee;
}
.other-stores-list li:last-child {
  border-bottom: none;
}

/* ブランドリンクボタン */
.brand-link {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin: 0 10px;
  text-align: center;
  border: 1px solid #ccc;
  padding: 8px;
  border-radius: 4px;
  text-decoration: none;
  color: #666;
  font-size: 12px;
  transition: all 0.2s;
}
.brand-link:hover {
  background-color: #f5f5f5;
  color: #333;
}
.brand-link i {
  transition: transform 0.3s;
}

/* SEO・フッター */
.seo-section {
  margin-top: 30px;
}
.seo-section h3 {
  /* 個別のh3定義がある場合はそれが優先されますが、
    今回は上記で汎用h3を定義したのでここは継承、
    または個別に微調整したい場合は以下のように記述 */
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 15px;
  border-bottom: none; /* SEOセクションでは下線消すなど任意 */
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
}
.tag-list li a {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid #ddd;
  border-radius: 20px;
  text-decoration: none;
  color: #333;
  font-size: 12px;
  font-weight: bold;
}

/* パンくずリスト */
.breadcrumbs {
  margin-top: 40px;
  padding: 20px 15px;
  background-color: #f9f9f9;
  border-top: 1px solid #eee;
  margin-left: -15px;
  margin-right: -15px;
}
@media (min-width: 768px) {
  .breadcrumbs {
    margin-left: 0;
    margin-right: 0;
    border-radius: 8px;
  }
}
.breadcrumbs ol {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 8px;
}
.breadcrumbs a,
.breadcrumbs span,
.breadcrumbs i {
  font-size: 10px;
  color: #888;
  text-decoration: none;
}
.breadcrumbs li + li::before {
  content: '›';
  color: #aaa;
  font-size: 12px;
  margin-right: 4px;
}

/* --------------------------------------------------
    PC / タブレット向けレスポンシブ対応 (768px以上)
-------------------------------------------------- */
@media (min-width: 768px) {
  .page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
  }

  /* --- ▼▼▼ PC時のhタグ調整 ▼▼▼ --- */
  h1 {
    font-size: 28px; /* PCではさらに大きく */
    margin-right: 15px;
    margin-bottom: 0;
  }

  h2,
  .coupon-section-title {
    font-size: 24px;
    margin-top: 40px;
  }

  .coupon-section-title {
    margin-top: 0;
  }

  /* 店舗一覧・ランキング直下のクーポン見出し上に余白 */
  .coupon-section {
    margin-top: 40px;
  }

  h3 {
    font-size: 10px;
  }
  /* --- ▲▲▲ PC時のhタグ調整ここまで ▲▲▲ --- */

  .filter-section {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .area-filter-title {
    margin-bottom: 0;
    margin-right: 10px;
  }
  .filter-buttons button {
    width: auto;
    padding: 8px 16px;
  }

  /* ショップリストをPCでは「横2列」に固定 */
  .shop-list {
    display: grid;
    /* 横2列固定 (auto-fillだと画面幅によって3列になるためrepeat(2, 1fr)を指定) */
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .shop-card {
    margin-bottom: 0;
    height: 100%; /* 高さ揃え */
  }

  .shop-thumbnail {
    height: 220px;
  }
}

/* ==================================================
    ランキングセクション用CSS
================================================== */
.ranking-section {
  margin-bottom: 30px;
}

.ranking-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #333;
}

/* 横スクロールエリア */
.ranking-scroll-wrapper {
  display: flex;
  overflow-x: auto;
  padding-bottom: 12px;
  gap: 12px;
  -webkit-overflow-scrolling: touch;
  align-items: stretch; /* 全カードを最大高さに揃えてガタつきを無くす */
}
.ranking-scroll-wrapper::-webkit-scrollbar {
  display: none;
}
.ranking-scroll-wrapper {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ランキングカード */
.ranking-card {
  flex: 0 0 200px; /* カード幅固定（クチコミ表示に合わせて拡幅） */
  min-width: 200px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

/* 順位バッジ */
.rank-badge {
  position: absolute;
  top: 0;
  left: 10px;
  width: 24px;
  height: 32px;
  background-color: #eab336; /* 金色 */
  color: white;
  font-weight: bold;
  font-size: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 5px;
  z-index: 10;
  clip-path: polygon(0% 0%, 100% 0%, 100% 85%, 50% 100%, 0% 85%);
}

/* 画像エリア */
.ranking-img-area {
  width: 100%;
  height: 110px;
  flex-shrink: 0; /* 画像エリアが縮小・伸縮しないように */
  background-color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.ranking-img-area img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}

/* ハートアイコン */
.ranking-fav-icon {
  position: absolute;
  bottom: 5px;
  right: 5px;
  width: 24px;
  height: 24px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
}

/* 詳細テキストエリア */
.ranking-details {
  padding: 6px 8px 8px 8px;
  display: flex;
  flex-direction: column;
}

.ranking-menu-name {
  font-size: 13px;
  font-weight: bold;
  color: #333;
  margin: 0 0 3px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
  height: 33.8px; /* 固定高さで常に2行分を確保 */
  min-height: 33.8px; /* 13px * 1.3 * 2行 */
}

/* 店名（10px・常に2行分の高さを確保してカード高さのガタつきを防ぐ） */
.ranking-shop-name {
  font-size: 10px;
  color: #666;
  margin: 0 0 3px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  line-height: 1.3;
  height: 26px;      /* 10px * 1.3 * 2行 */
  min-height: 26px;
}

/* ランキングカード内のクチコミ表示エリアは少し低めに（縦サイズ縮小） */
.ranking-card .srv-comments {
  max-height: 120px;
}
/* 評価 */
.ranking-rating-area {
  display: flex;
  align-items: center;
  font-size: 11px;
  color: #666;
  margin-bottom: 0;
}
.ranking-rating-area .star-icon {
  color: #ffcc00;
  margin-right: 2px;
}
.ranking-score {
  font-weight: bold;
  color: #333;
  margin-right: 4px;
}

/* 価格 */
.ranking-price {
  font-size: 14px;
  font-weight: bold;
  text-align: right;
  color: #333;
}

/* --- 既存のスタイル --- */
.ranking-fav-icon svg {
  width: 16px;
  height: 16px;
  color: #999;
}
.star-icon {
  width: 14px;
  height: 14px;
  color: #ffcc00;
  vertical-align: middle;
}

/* --- クリック可能であることを示すスタイル --- */
.ranking-card,
.shop-card,
.product-item {
  cursor: pointer;
  transition: opacity 0.2s;
}
.ranking-card:hover,
.shop-card:hover,
.product-item:hover {
  opacity: 0.8;
}

/* --- モーダル（ポップアップ）のスタイル --- */
.modal-overlay {
  display: none; /* 初期状態は非表示 */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6); /* 背景を暗く */
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 16px;
  box-sizing: border-box;
}

.modal-content {
  background: #fff;
  width: 100%;
  max-width: min(520px, calc(100vw - 32px));
  border-radius: 16px;
  padding: 28px 24px 32px;
  text-align: center;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  animation: fadeIn 0.3s ease;
  box-sizing: border-box;
  overflow-x: hidden;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #999;
  padding: 5px;
}

.modal-banner {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 16px;
  display: block;
}

.modal-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 8px;
  color: #333;
}

.modal-text {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
  line-height: 1.5;
}

.modal-cta-btn {
  display: block;
  width: 100%;
  padding: 14px;
  background-color: #e61e0a; /* menuのブランドカラー */
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  border-radius: 99px;
  font-size: 16px;
  box-sizing: border-box;
}
.modal-cta-btn:hover {
  background-color: #b71c1c;
}

/* [2026-04-07] クーポンポップアップ: モーダル内クーポンセクション調整（PCで窮屈にならないよう余白・幅を確保） */
.modal-content .coupon-section {
  margin-bottom: 0;
  text-align: center;
  padding: 0 4px;
  /* ポップアップ内は現状維持（罫線なし） */
  border: none;
  border-radius: 0;
}
.modal-content .coupon-section-title {
  font-size: 16px;
  line-height: 1.45;
  margin: 0 32px 14px;
  text-align: center;
}
.modal-content .coupon-image-link {
  margin-bottom: 12px;
}
.modal-content .coupon-banner-img {
  max-width: 100%;
  border-radius: 8px;
  vertical-align: top;
}
.modal-content .coupon-description {
  font-size: 13px;
  line-height: 1.65;
  margin-bottom: 16px;
  text-align: left;
  padding: 0 2px;
}
.modal-content .coupon-code-box {
  padding: 14px 16px 12px;
  margin-bottom: 10px;
  margin-left: 0;
  margin-right: 0;
  max-width: none;
  width: 100%;
  box-sizing: border-box;
}
.modal-content .coupon-code-inner {
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 12px;
  row-gap: 10px;
}
.modal-content .coupon-copy-btn {
  margin-left: 0;
  flex-shrink: 0;
}
.modal-content .coupon-code-note {
  margin-top: 8px;
}
.modal-content .coupon-copied-msg.show {
  margin-bottom: 8px;
}
.modal-content .coupon-cta-link {
  display: block;
  margin-top: 4px;
}
.modal-content .coupon-cta-btn {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border-radius: 99px;
  padding: 14px 20px;
}

@media (min-width: 768px) {
  .modal-content .coupon-code-inner {
    flex-wrap: nowrap;
    justify-content: center;
    gap: 14px 18px;
  }
}

/* ページトップに戻るボタン */
.scroll-top-wrapper {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 0;
}

.scroll-top-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #ccc;
  background: #fff;
  color: #999;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition:
    background-color 0.2s,
    color 0.2s,
    border-color 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.scroll-top-btn:hover {
  background-color: #f0f0f0;
  color: #666;
  border-color: #aaa;
}

/* --------------------------------------------------
   クーポンセクション
   -------------------------------------------------- */
.coupon-section {
  margin-bottom: 40px;
  /* クーポン部分を罫線で囲う（menu レッド #e61e0a の少し薄い版）
     ※ポップアップ内は .modal-content 側で打ち消す */
  border: 3px solid #ea4b3b;
  border-radius: 12px;
  padding: 16px 16px 20px;
}
/* PC では枠の横幅を画像（最大600px）に合わせて中央寄せ。本文のはみ出しを防ぐ。
   周囲の余白も少し広めにとる。 */
@media (min-width: 768px) {
  .coupon-section {
    max-width: 638px; /* padding16*2 + border3*2 を含め内側を画像の600pxに合わせる */
    margin: 28px auto 56px;
  }
}
/* SP では上部の余分な余白を詰める */
@media (max-width: 767px) {
  .coupon-section {
    padding-top: 12px;
  }
}

.coupon-section-title {
  font-size: 20px;
  font-weight: bold;
  margin-top: 0;        /* 見出し上のデフォルト余白を除去して上を詰める */
  margin-bottom: 12px;  /* 見出し下のスペースを少し詰める */
  color: #333;
  line-height: 1.4;
  text-align: left;
}

.coupon-image-link {
  display: block;
  margin-bottom: 15px;
  text-align: center;
}

.coupon-banner-img {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 8px;
  display: inline-block;
}

.coupon-description {
  font-size: 14px;
  color: #333;
  line-height: 1.7;
  margin-bottom: 20px;
  text-align: left;
  padding: 0;
}

.coupon-code-box {
  background-color: #f5f0eb;
  border-radius: 10px;
  padding: 16px 20px 12px;
  margin-bottom: 12px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.coupon-code-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.coupon-code-label {
  font-size: 14px;
  font-weight: bold;
  color: #333;
  white-space: nowrap;
}

.coupon-code-value {
  font-size: 22px;
  font-weight: 900;
  color: #333;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.coupon-copy-btn {
  display: inline-block;
  padding: 8px 20px;
  background-color: #43c66f;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin-left: 12px;
  white-space: nowrap;
  transition: background-color 0.3s;
}

.coupon-copy-btn:hover {
  background-color: #4a8a24;
}

.coupon-code-note {
  font-size: 12px;
  color: #666;
  text-align: center;
  margin-top: 10px;
  margin-bottom: 0;
}

.coupon-copied-msg {
  text-align: center;
  color: #43c66f;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 16px;
  opacity: 0;
  transition: opacity 0.3s;
  height: 0;
  overflow: hidden;
}

.coupon-copied-msg.show {
  opacity: 1;
  height: auto;
  padding-top: 8px;
}

.coupon-cta-link {
  display: block;
  text-align: center;
  text-decoration: none;
}

.coupon-cta-btn {
  display: inline-block;
  padding: 14px 40px;
  background-color: #e61e0a;
  color: #fff;
  font-weight: bold;
  border: none;
  border-radius: 99px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.coupon-cta-btn:hover {
  background-color: #b71c1c;
}

/* スマホ表示（767px以下）でのクーポンコード調整 */
@media (max-width: 767px) {
  /* SP は縦幅を抑えるため見出し・本文・コードを少し小さく */
  .coupon-section-title {
    font-size: 16px;
    margin-bottom: 10px;
  }
  .coupon-description {
    font-size: 12px;
    line-height: 1.6;
    margin-bottom: 16px;
  }

  .coupon-code-box {
    padding: 10px 10px 8px;
  }

  /* クーポンコードは改行せず1行に収める */
  .coupon-code-inner {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 4px;
  }

  .coupon-code-label {
    font-size: 10px;
  }

  .coupon-code-value {
    font-size: 14px;
    letter-spacing: 0;
  }

  .coupon-copy-btn {
    margin-left: 4px;
    padding: 6px 10px;
    font-size: 11px;
    width: auto;
    max-width: none;
  }

  .coupon-code-note {
    font-size: 10px;
  }
}

/* --------------------------------------------------
   クーポン注釈セクション
   -------------------------------------------------- */
.coupon-disclaimer {
  margin-top: 30px;
  margin-bottom: 20px;
  padding: 15px 0;
}

.coupon-disclaimer-title {
  font-size: 13px;
  font-weight: bold;
  color: #888;
  margin-bottom: 8px;
}

.coupon-disclaimer-list {
  list-style: disc;
  padding-left: 18px;
  margin: 0;
}

.coupon-disclaimer-list li {
  font-size: 12px;
  color: #999;
  line-height: 1.6;
  margin-bottom: 4px;
}

.coupon-disclaimer-list li:last-child {
  margin-bottom: 0;
}

/* ─── INP 改善: 画面外の shop-card のレンダリングをスキップ ───
   content-visibility: auto により、各 shop-card が画面近くに来るまで
   style/layout/paint をスキップする。contain-intrinsic-size で
   スキップ中の高さ目安を指定し、スクロールバーのブレを防ぐ。 */
.shop-card {
  content-visibility: auto;
  contain-intrinsic-size: 0 260px;
}

/* ─── 都道府県ページ: 市区一覧 (template_prefecture.html) ─── */
.city-list-section {
  margin: 16px 0 28px;
}
.city-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.city-list-item a,
.city-list-item span {
  display: block;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  color: #222;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.city-list-item a:hover {
  border-color: #c9c9c9;
  background: #fafafa;
}
.city-list-item.is-current span {
  background: #f5f5f5;
  color: #999;
  cursor: default;
}
@media (min-width: 768px) {
  .city-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}
@media (min-width: 1024px) {
  .city-list {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ─── 都道府県ページ: ジャンル一覧 (template_prefecture.html / template_category_prefecture.html) ─── */
.genre-list-section {
  margin: 16px 0 28px;
}
.genre-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.genre-list-item a,
.genre-list-item span {
  display: block;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  color: #222;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.genre-list-item a:hover {
  border-color: #c9c9c9;
  background: #fafafa;
}
.genre-list-item.is-current span {
  background: #f5f5f5;
  color: #999;
  cursor: default;
}
@media (min-width: 768px) {
  .genre-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}
@media (min-width: 1024px) {
  .genre-list {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ─── エリア/カテゴリページ: ジャンル切替タブ (template_all.html / template_category.html) ─── */
.genre-tab-strip {
  /* .site-header (position:fixed; height ~60px) の直下に貼り付ける */
  position: sticky;
  top: 60px;
  z-index: 980;
  background: #fff;
  /* main の左右 padding (15px) を打ち消して画面端まで広げる */
  margin: 12px -15px 16px;
  padding: 8px 15px;
  border-bottom: 1px solid #f0f0f0;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.genre-tab-strip::-webkit-scrollbar { display: none; }
.genre-tab-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.genre-tab-item { flex: 0 0 auto; }
.genre-tab-item a,
.genre-tab-item span {
  display: inline-block;
  padding: 8px 16px;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 20px;
  color: #222;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.genre-tab-item a:hover {
  border-color: #c9c9c9;
  background: #fafafa;
}
.genre-tab-item.is-current span {
  background: #f5f5f5;
  color: #999;
  cursor: default;
}

/* ─── 都道府県ページ: 「その他のエリア」アコーディオン (template_prefecture.html / template_category_prefecture.html) ─── */
.other-area-section {
  margin-top: 12px;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.other-area-section > summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  background: #fff;
  transition: background-color 0.15s ease;
}
.other-area-section > summary::-webkit-details-marker { display: none; }
.other-area-section > summary h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: #222;
}
.other-area-section > summary::after {
  content: '';
  width: 9px;
  height: 9px;
  border-right: 2px solid #555;
  border-bottom: 2px solid #555;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-left: 12px;
  margin-top: -4px;
}
.other-area-section[open] > summary::after {
  transform: rotate(-135deg);
  margin-top: 2px;
}
.other-area-section > summary:hover { background: #fafafa; }
.other-area-section > .city-list {
  padding: 12px;
  border-top: 1px solid #e6e6e6;
}

/* ─── おすすめチェーン (template_category.html: [エリア]の[カテゴリ]チェーン) ─── */
.recommended-chains-section {
  margin: 16px 0 28px;
}
/* 横スクロール内のカード高さを最大値に揃えるため、ranking-scroll-wrapper の
   align-items: flex-start を本セクションでは stretch に上書き */
.recommended-chains-scroll {
  padding-bottom: 4px;
  align-items: stretch;
}
.recommended-chain-card {
  flex: 0 0 180px;
  display: flex;
  flex-direction: column;
  text-align: center;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 8px;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.recommended-chain-card:hover {
  border-color: #c9c9c9;
  background: #fafafa;
}
/* 画像エリア: aspect-ratio 固定で全カードの画像高さを揃え、
   object-fit: contain で切り抜き無しに横幅いっぱい (足りない部分はレターボックス) */
.recommended-chain-img-area {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background-color: #f5f5f5;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.recommended-chain-logo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
.recommended-chain-logo--placeholder {
  width: 100%;
  height: 100%;
  background-color: #eee;
}
/* 名前エリア: 2行ぶんの高さを min-height で確保し、
   1行/2行の差でカード合計高さがガタつかないようにする */
.recommended-chain-name {
  margin-top: 8px;
  min-height: 2.6em;
  font-size: 13px;
  font-weight: 500;
  color: #333;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   ユーザーレビュー（口コミ）デモ用スタイル — area_review_demo
   ブランドページ (brand_style.css の .review-highlight-*) を正として踏襲。
   差分: エリア用に .review-highlight-shop（店舗名）を追加。
   案A/案C: .review-highlight-* カード（メニュー名+店舗名+口コミ）
   案B: .shop-card-review*（店舗カード内・メニュー名つき）
   ============================================================ */

/* ---- ブランド準拠の口コミハイライトカード（案A・案C 共用） ---- */
.review-highlight-section {
  margin-bottom: 30px;
}
.review-highlight-title {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin-bottom: 12px;
}
.review-highlight-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 15px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.review-highlight-scroll::-webkit-scrollbar {
  display: none;
}
.review-highlight-card {
  flex: 0 0 220px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  overflow: hidden;
}
/* メニュー画像をカード幅いっぱい・大きく表示（ヘッダー画像型・コンパクト） */
.review-highlight-img-wrap {
  width: 100%;
  height: 110px;
  overflow: hidden;
  background: #f0f0f0;
}
.review-highlight-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.review-highlight-body {
  padding: 12px 14px 14px;
}
.review-highlight-name {
  font-size: 13px;
  font-weight: bold;
  color: #333;
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* エリア用に追加: 店舗名（どの店の・どのメニューかを明示） */
.review-highlight-shop {
  font-size: 10px;
  color: #666;          /* 一覧カードに合わせてグレー細字 */
  font-weight: normal;
  margin: 0 0 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  line-height: 1.3;
  height: 26px;      /* 10px * 1.3 * 2行 ぶんを確保 */
  min-height: 26px;
}
.review-highlight-meta {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  color: #666;
}
.review-highlight-meta-star {
  color: #ffcc00;
  font-size: 13px;
}
.review-highlight-score {
  font-weight: bold;
  color: #333;
}
.review-highlight-count {
  color: #666;
}
.review-highlight-reviews {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 8px;
  padding-top: 4px;
  border-top: 1px solid #f0f0f0;
  /* 縦の上限。収まるコメント丸ごとだけを JS(review_fit.js) が残す */
  max-height: 190px;
  overflow: hidden;
}
.review-highlight-bubble {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}
.review-highlight-bubble:last-child {
  border-bottom: none;
}
.review-highlight-stars {
  color: #ffcc00;
  font-size: 11px;
  margin-bottom: 2px;
  display: block;
}
.review-highlight-comment {
  font-size: 10px;
  line-height: 1.5;
  color: #555;
  word-break: break-word;
  margin: 0;
  /* 1コメントは最大4行で省略 */
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (min-width: 768px) {
  .review-highlight-card {
    flex: 0 0 248px;
    min-width: 248px;
  }
}

/* ---- 案C: ファーストビューに同カードを少数・店舗分散で配置 ---- */
.area-voice-section {
  margin: 16px 0 24px;
  padding: 14px 12px 4px;
  background: linear-gradient(135deg, #fff7ef 0%, #fef3f3 100%);
  border-radius: 12px;
}
.area-voice-title {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin: 0 0 12px;
}

/* ---- 案B: 店舗カード内のメニュー＋クチコミ併記コンパクトカード（横スワイプ） ----
   案Aの大カードのコンパクト版。丸サムネ product-carousel を置き換える。 */
.shop-review-cards {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 10px 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.shop-review-cards::-webkit-scrollbar {
  display: none;
}
/* 横スライド可能なことを示すドットインジケーター */
.srv-scroll-wrap {
  position: relative;
}
.srv-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 2px 0 2px;
}
.srv-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d0d0d0;
  transition: background-color 0.2s;
}
.srv-dot.is-active {
  background: #444;
}
.srv-card {
  flex: 0 0 164px;
  min-width: 164px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
}
.srv-img {
  width: 100%;
  height: 92px;
  overflow: hidden;
  background: #f0f0f0;
}
.srv-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.srv-name {
  font-size: 12px;
  font-weight: bold;
  color: #333;
  margin: 8px 8px 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  /* 常に2行分の高さを確保し、メニュー名の改行有無でカードがガタつかないようにする */
  line-height: 1.3;
  height: 31px;      /* 12px * 1.3 * 2行 */
  min-height: 31px;
}
.srv-rating {
  font-size: 11px;
  color: #888;
  margin: 0 8px 6px;
}
.srv-star {
  color: #ffcc00;
}
.srv-comments {
  margin: 0 8px 10px;
  padding-top: 6px;
  border-top: 1px solid #f4f4f4;
  /* 縦の上限。収まるコメント丸ごとだけを JS(review_fit.js) が残す */
  max-height: 158px;
  overflow: hidden;
}
.srv-comment {
  font-size: 10px;
  line-height: 1.45;
  color: #555;
  margin: 0 0 7px;
  word-break: break-word;
  /* 1コメントは最大4行で省略 */
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.srv-comment:last-child {
  margin-bottom: 0;
}
.srv-cstars {
  color: #ffcc00;
  display: block;
  font-size: 10px;
  margin-bottom: 1px;
}

/* スマホ時は店舗カードを横いっぱい（main の左右15px余白を相殺）。
   画像は端まで、店舗名/評価/口コミは内側 padding(10px) を維持。
   カード間は詰めつつ、境目を薄い色の帯で区切る。 */
@media (max-width: 767px) {
  .shop-list .shop-card {
    margin-left: -15px;
    margin-right: -15px;
    border-left: none;
    border-right: none;
    border-radius: 0;
    margin-bottom: 0;
    border-bottom: 8px solid #e0e0e0; /* 境目の帯（兼カード間スペース） */
  }
  .shop-list .shop-card:last-child {
    border-bottom: none;
  }
  /* ランキング / 口コミ の横スクロールも全幅トラックに（右端の固定余白を無くす）。
     初期表示は左にスペースを残す（padding-left）。末尾も少し余白。 */
  .ranking-scroll-wrapper,
  .review-highlight-scroll {
    margin-left: -15px;
    margin-right: -15px;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* ===== 口コミカード タップ時のポップアップ（モーダル） ===== */
.review-highlight-card {
  cursor: pointer;
}
/* 案B: コンパクトカード（タップでポップアップ。「もっとみる」ラベルは無し） */
.srv-card {
  display: flex;
  flex-direction: column;
}
.srv-card.js-review-pop {
  cursor: pointer;
}
/* PC(2カラム)時は、店舗カード内メニューの3枚目が少し見切れる幅にして
   右に横スクロールできることを示す（コンテナ幅比で約3枚弱が見える） */
@media (min-width: 768px) {
  .shop-review-cards .srv-card {
    flex: 0 0 36%;
    min-width: 0;
  }
}

/* フローティングCTAの閉じる×を少しだけ大きく・濃く（共通テンプレは触らずCSSで上書き） */
.floating-cta .floating-cta__close {
  font-size: 17px;
  color: #666;
  opacity: 0.6;
}
