/*
Theme Name: Gourmet Finder
Theme URI: http://example.com
Author: あなたの名前
Author URI: http://example.com
Description: レストラン検索系の自作WordPressテーマ
Version: 1.2
*/

/* ===== ヘッダー画像 ===== */
.header-image img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 4px solid #eee;
  margin-bottom: 20px;
}

/* ===== 店舗一覧（検索・ジャンル共通 横並びカード） ===== */
.store-grid,
.store-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  align-items: stretch;
  justify-content: center;
  margin-top: 20px;
}

.store-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding-bottom: 15px;
}

.store-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.store-card .store-thumb,
.store-card .thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  margin-bottom: 10px;
}

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

.store-title,
.store-card h2 {
  margin: 8px 0 5px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #222;
}

.store-card p {
  font-size: 0.95rem;
  color: #555;
  margin: 5px 0 10px;
}

.store-card .btn {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 14px;
  background: #007bff;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background-color 0.3s ease;
}

.store-card .btn:hover {
  background-color: #0056b3;
}

/* バッジ類 */
.badge,
.info-badge {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 20px;
  margin: 4px 3px;
  font-size: 0.85rem;
  background: #f0f4ff;
  color: #0056b3;
}

.badge.area, .info-badge.area { background: #e8f6ff; }
.badge.prefecture, .info-badge.prefecture { background: #fdf2e9; }

/* ===== 店舗詳細ページ ===== */
.store-info {
  background: #f9f9f9;
  border: 1px solid #ddd;
  padding: 16px;
  margin-top: 20px;
  border-radius: 8px;
}

.store-info h2 {
  margin-top: 0;
}

.map-area iframe {
  width: 100%;
  height: 300px;
  border: none;
  margin-top: 10px;
}

.store-map {
  margin-top: 20px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* ===== ヒーローセクション ===== */
.hero-static {
  position: relative;
  width: 100%;
  min-height: 15vh;
  background-image: url("https://alo-alo.shop/find/wp-content/uploads/2025/10/04ellyfdesk845_TP_V.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  z-index: 0;
}

.hero-static::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.25); /* 背景の暗さだけ残す */
  /* backdrop-filter: blur(6px); ← 削除 */
  /* -webkit-backdrop-filter: blur(6px); ← 削除 */
  z-index: 1;
}


.hero-content {
  position: relative;
  z-index: 2;
  background: rgba(0, 0, 0, 0.6);
  padding: 20px 25px;
  border-radius: 10px;
  color: #fff;
  max-width: 700px;
  width: 90%;
}

.hero-title {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 15px;
  line-height: 1.5;
  letter-spacing: 0.05em;
  text-align: center;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.hero-text {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 25px;
}

/* ===== 検索フォーム ===== */
.search-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
}

.search-form input[type="text"],
.search-form select {
  width: 250px;
  padding: 10px 14px;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.search-form button {
  padding: 10px 18px;
  border-radius: 4px;
  border: none;
  background-color: #007bff;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s;
}

.search-form button:hover {
  background-color: #0056b3;
}

/* ===== フッター（青グラデーション） ===== */
.site-footer {
  background: linear-gradient(135deg, #007bff, #00bfff);
  color: #fff;
  text-align: center;
  padding: 40px 20px;
  position: relative;
  transition: background 0.5s ease-in-out;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-logo img {
  width: 160px;
  height: auto;
  display: block;
}

.footer-sns a {
  color: #fff;
  font-size: 26px;
  transition: color 0.3s ease;
}

.footer-sns a:hover {
  color: #ffe600;
}

.footer-copy {
  font-size: 14px;
  color: #f1f1f1;
  margin-top: 10px;
}

/* ===== スマホ対応 ===== */
@media (max-width: 768px) {
  .hero-static {
    height: 40vh;
  }

  .hero-content {
    width: 95%;
    padding: 18px;
  }

  .store-grid,
  .store-list {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
  }

  .search-form {
    flex-direction: column;
    gap: 8px;
  }

  .search-form input[type="text"],
  .search-form select {
    width: 100%;
  }
}
/* ===== 新規店舗：常にPCと同じ3列表示 ===== */
.new-store-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
  justify-content: center;
  margin-top: 20px;
}

/* スマホでも3列維持 */
@media (max-width: 768px) {
  .new-store-list {
    grid-template-columns: repeat(3, 1fr); /* ← これがポイント */
    gap: 16px;
  }

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

  .new-store-card h3 {
    font-size: 0.9rem;
  }
}
.new-store-list {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 16px !important;
}

.new-store-card {
  width: 100% !important;
  max-width: none !important;
}
.new-store-section .new-store-card a {
  display: block;
  width: 100%;
}
/* 🌈 new-store-section 最終レイアウト強制版 */
.new-store-section .new-store-list {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 20px !important;
  justify-content: center !important;
  align-items: stretch !important;
  max-width: 1000px !important;
  margin: 0 auto !important;
}

.new-store-section .new-store-card {
  width: 100% !important;
  margin: 0 !important;
  max-width: none !important;
  display: block !important;
}

.new-store-section .new-store-card img {
  width: 100% !important;
  height: auto !important;
  object-fit: cover !important;
}

@media (max-width: 768px) {
  /* スマホでも完全3列維持 */
  .new-store-section .new-store-list {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}
/* 🌈 new-store-section 完全版：スマホも3列で横並び */
.new-store-section .new-store-list {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 16px !important;
  justify-items: stretch !important;
  align-items: start !important;
  width: 100% !important;
  margin: 0 auto !important;
  max-width: 1000px !important;
}

.new-store-section .new-store-card {
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  height: auto !important;
  display: block !important;
}

.new-store-section .new-store-card img {
  width: 100% !important;
  height: aut
/* 🌈 new-store-section 完全最終版：スマホもPCも3列横並び */
.new-store-section .new-store-list {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 16px !important;
  justify-items: stretch !important;
  align-items: start !important;
  width: 100% !important;
  margin: 0 auto !important;
  max-width: 1000px !important;
}

.new-store-section .new-store-card {
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  height: auto !important;
  display: block !important;
}

.new-store-section .new-store-card img {
  width: 100% !important;
  height: auto !important;
  object-fit: cover !important;
  display: block !important;
}

@media (max-width: 768px) {
  /* スマホでも3列維持 */
  .new-store-section .new-store-list {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

	.mobile-only-topbox {
  display: none;
  padding: 16px;
  background: #f7f7f7;
  border-top: 1px solid #ddd;
}

@media screen and (max-width: 768px) {
  .mobile-only-topbox {
    display: block;
  }

  .mobile-only-topbox h2 {
    font-size: 18px;
    margin-bottom: 8px;
  }

  .store-card {
    margin-bottom: 16px;
  }

  .recently-viewed-stores ul {
    list-style: none;
    padding-left: 0;
  }

  .recently-viewed-stores li {
    margin-bottom: 8px;
  }
}

	.store-card-horizontal {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
}

.store-card-horizontal a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  width: 100%;
}

.store-card-horizontal .thumb-wrap img {
  width: 100px;
  height: auto;
  border-radius: 6px;
  object-fit: cover;
}

.store-card-horizontal .info-wrap {
  flex: 1;
}

.store-card-horizontal .store-title {
  font-size: 16px;
  font-weight: bold;
  line-height: 1.4;
}
.store-card-flex {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 12px 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 12px;
}

.store-card-link {
  display: flex;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  width: 100%;
}

.store-card-flex .thumb-wrap img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 6px;
}

.store-card-flex .info-wrap {
  flex: 1;
}

.store-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 4px;
}

.store-intro {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
}
.store-card-horizontal {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 16px;
  margin: 16px 0;
}

.store-card-link {
  display: flex;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  width: 100%;
}

.thumb-wrap img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
}

.text-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

.store-title {
  font-size: 18px;
  font-weight: bold;
  margin: 0 0 6px 0;
}

.store-intro {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
}

	.store-card-wrapper {
  display: flex;
  justify-content: center;
  margin: 24px 0;
}

.store-card-flex {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  max-width: 600px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  width: 100%;
}

.thumb-wrap img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
}

.text-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

.store-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 6px;
}

.store-intro {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
}
.store-card-wrapper {
  display: flex;
  justify-content: center;
  margin: 24px 0;
}

/* ===== 今日のおすすめ店舗：横並びカード中央表示 ===== */
.featured-store-card {
  display: flex;
  justify-content: center;
  margin: 24px 0;
}

.featured-store-inner {
  display: flex !important;
  flex-wrap: nowrap;
  gap: 16px;
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 16px;
}

.featured-thumb img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
}

.featured-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

.featured-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 6px;
  color: #333;
  text-decoration: none;
}

.featured-intro {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
}


.featured-intro {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
}
/* ✅ 地域・都道府県どちらにも地域カラーを反映 */
.info-badge[class*="area-"] {
  border: none !important;
  box-shadow: none !important;
  background-image: none !important;
}

/* ===== 地域＆都道府県の統一カラー（全国対応含む）===== */
.area-hokkaido { background: #1E90FF !important; color: #fff !important; }
.area-tohoku   { background: #32CD32 !important; color: #fff !important; }
.area-kanto    { background: #4169E1 !important; color: #fff !important; }
.area-chubu    { background: #00B8B8 !important; color: #fff !important; }
.area-tokai    { background: #FF9800 !important; color: #fff !important; }
.area-kinki    { background: #FF69B4 !important; color: #fff !important; }
.area-chugoku  { background: #9C27B0 !important; color: #fff !important; }
.area-shikoku  { background: #FFB300 !important; color: #fff !important; }
.area-kyusyu   { background: #E53935 !important; color: #fff !important; }
.area-okinawa  { background: #00CED1 !important; color: #fff !important; }
.area-all      { background: #555 !important;    color: #fff !important; }
.area-unknown  { background: #ccc !important;    color: #333 !important; }
	
	/* --- サイドバー自由エリアの画像を自動縮小 --- */
.store-free-box img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 10px;
  cursor: zoom-in;
}

/* --- ライトボックス（タップで拡大） --- */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-overlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  cursor: zoom-out;
}

	.favorite-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 18px;
  margin-top: 10px;
}

.favorite-btn .heart-icon {
  font-size: 28px;
  transition: 0.2s;
  color: #888;
}

.favorite-btn .heart-icon.active {
  color: #e63946;
  transform: scale(1.2);
}

.favorite-btn .favorite-text {
  font-size: 16px;
  color: #333;
}


.favorite-list h1 {
  margin-bottom: 24px;
}

.favorite-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.favorite-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  overflow: hidden;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.favorite-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}

.favorite-thumb img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.favorite-title {
  padding: 12px;
  font-size: 18px;
  color: #333;
}

	.favorite-list h1 {
  margin-bottom: 24px;
}

/* カードのグリッド */
.favorite-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 20px;
}

/* カード本体 */
.favorite-card {
  position: relative;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  overflow: hidden;
  transition: 0.25s;
}

.favorite-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}

/* 画像部分 */
.favorite-thumb img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

/* 店舗名 */
.favorite-title {
  font-size: 18px;
  padding: 14px;
  text-align: center;
  margin: 0;
  color: #333;
}

/* ♥ アイコン（一覧ページ用） */
.fav-on-list {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255,255,255,0.9);
  padding: 6px 8px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
}

.fav-on-list .heart-icon {
  font-size: 22px;
  color: #e63946;
  transition: 0.2s;
}

.fav-on-list .heart-icon.active {
  color: #e63946;
  transform: scale(1.2);
}
