/* ==========================================================================
   KL Parks & Sports Arenas - フォレストグリーン・アクティブデザイン
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', sans-serif;
  background-color: #f7f9f6; /* 爽やかなライトグレーグリーン */
  color: #2c3e35; /* 深みのあるフォレストブラック */
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   🖼️ 生成したヘッダー背景画像（back.jpg）の適用と最適化
   ========================================================================== */
.hero {
  position: relative;
  /* 保存した画像へのパスを指定 */
  background-image: url('../images/back.jpg') !important; 
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  padding: 80px 20px !important; /* 上下の余白を少し広げてダイナミックに */
  border-bottom: 4px solid #bfa15f; 
  z-index: 1;
}

/* 画像の上に薄いグリーンのフィルターをかけ、白い文字をクッキリ浮かび上がらせる */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(20, 50, 22, 0.6) 0%, rgba(10, 30, 12, 0.75) 100%) !important;
  z-index: -1;
}

/* タイトルの文字影を強化してさらに読みやすく */
.hero-text-box h1 {
  text-shadow: 0 3px 15px rgba(0, 0, 0, 0.6) !important;
}

.hero-text-box p {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6) !important;
}

.top-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto 30px auto;
}

#lang-select {
  padding: 8px 16px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

#lang-select option {
  color: #2c3e35;
}

#lang-select:hover {
  background: #fff;
  color: #1e4620;
}

.hero-flex-layout {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.hero-text-box h1 {
  font-size: 2.8rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 2px;
  margin-bottom: 12px;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.hero-text-box p {
  font-size: 1.1rem;
  color: #e2ede4;
  font-weight: 400;
  max-width: 700px;
  margin: 0 auto;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   検索セクション & カテゴリ
   ========================================================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.search-section {
  margin-bottom: 35px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.search-box {
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 650px;
  margin-bottom: 20px;
}

#search-input {
  flex: 1;
  padding: 14px 20px;
  border: 1px solid #ceded4;
  border-radius: 6px;
  font-size: 0.95rem;
  background-color: #fff;
  color: #2c3e35;
  transition: all 0.3s;
}

#search-input:focus {
  outline: none;
  border-color: #2e7d32;
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.15);
}

#near-me-btn {
  padding: 14px 24px;
  background-color: #2e7d32;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

#near-me-btn:hover {
  background-color: #1b5e20;
}

/* タグ型フィルター */
.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  max-width: 800px;
  margin-bottom: 20px;
}

.tag-btn {
  padding: 8px 14px;
  background-color: #fff;
  border: 1px solid #dcd6cd;
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.tag-btn.active, .tag-btn:hover {
  background-color: #2e7d32;
  color: #fff;
  border-color: #2e7d32;
}

.counter-box {
  display: inline-block;
  padding: 6px 16px;
  background-color: #2c3e35;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 20px;
}

#match-count {
  color: #81c784;
  font-weight: 700;
}

/* ==========================================================================
   🏞️ 3列グリッドレイアウト（スポットリスト）
   ========================================================================== */
.shop-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.shop-card {
  background: #ffffff;
  border: 1px solid #e1ebe4;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.3s ease;
}

.shop-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(46, 125, 50, 0.08);
  border-color: #2e7d32;
}

.shop-header {
  background-color: #f4f9f5;
  padding: 18px 20px;
  border-bottom: 1px solid #e8f2ea;
}

.shop-header h3 {
  font-size: 1.15rem;
  color: #1e4620;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.distance-badge {
  background: #e8f5e9;
  color: #2e7d32;
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.shop-body {
  padding: 20px;
  font-size: 0.88rem;
  flex: 1;
}

.shop-body p {
  border-bottom: 1px solid #f1f7f3;
  padding: 8px 0;
  display: flex;
}

.shop-body p:last-of-type {
  border-bottom: none;
}

.shop-body p strong {
  color: #2e7d32;
  width: 130px;
  flex-shrink: 0;
}

/* ステータスバッジスタイル */
.status-badge {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}
.status-free { background-color: #e8f5e9; color: #2e7d32; }
.status-paid { background-color: #fff3e0; color: #ef6c00; }
.status-none { background-color: #ffebee; color: #c62828; }

.shop-footer-btns {
  padding: 0 20px 20px 20px;
  display: flex;
  gap: 8px;
}

/* ==========================================================================
   🗺️ Google Map & Waze ボタンのカラーカスタマイズ
   ========================================================================== */
.btn {
  flex: 1;
  text-align: center;
  padding: 12px 0 !important; /* タップしやすいように縦幅を少しアップ */
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  text-decoration: none;
  text-transform: uppercase;
  border-radius: 6px !important; /* 角丸を少し滑らかに */
  transition: all 0.2s ease;
  display: inline-block;
}

/* 🟢 Google Map ボタン：白ベースから「はっきりしたダークグレー×緑のアクセント」で視認性向上 */
.btn-gmap {
  background-color: #ffffff !important;
  color: #25282a !important;
  border: 2px solid #4285F4 !important; /* Googleブルーの枠線 */
}

.btn-gmap:hover {
  background-color: #f8f9fa !important;
  box-shadow: 0 2px 6px rgba(66, 133, 244, 0.2);
  transform: translateY(-1px);
}

/* 🔵 Waze ボタン：Waze公式の鮮やかなスカイブルーをベースに白文字 */
.btn-waze {
  background-color: #33ccff !important; /* 鮮やかなWazeブルー */
  color: #ffffff !important;
  border: 2px solid #33ccff !important;
}

.btn-waze:hover {
  background-color: #00b3ee !important;
  border-color: #00b3ee !important;
  box-shadow: 0 2px 6px rgba(0, 179, 238, 0.3);
  transform: translateY(-1px);
}

/* ==========================================================================
   フッター
   ========================================================================== */
.main-footer {
  background-color: #1a2e24;
  color: #fff;
  padding: 40px 20px;
  text-align: center;
  margin-top: 60px;
}

.footer-disclaimer {
  max-width: 850px;
  margin: 0 auto 20px auto;
  padding: 12px 18px;
  background-color: rgba(255, 255, 255, 0.04);
  border-left: 3px solid #81c784;
  text-align: left;
  font-size: 0.78rem;
  color: #b2c7bd;
}

.footer-share {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.f-icon, .f-btn-copy {
  padding: 8px 20px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  border: none;
  cursor: pointer;
}

.wa { background-color: #25d366; }
.wc { background-color: #07c160; }
.line { background-color: #06c755; }
.f-btn-copy { background-color: #2e7d32; }

.footer-copy { font-size: 0.8rem; color: #819c8f; }

/* ==========================================================================
   📱 モバイル画面用縦幅短縮
   ========================================================================== */
@media screen and (max-width: 1024px) {
  .shop-list { grid-template-columns: repeat(2, 1fr); }
}

@media screen and (max-width: 768px) {
  .hero { padding: 20px 15px 25px 15px !important; }
  .top-bar { margin: 0 auto 15px auto !important; }
  .hero-text-box h1 { font-size: 1.8rem !important; margin-bottom: 6px !important; }
  .hero-text-box p { font-size: 0.9rem !important; }
  .container { padding: 15px 15px 30px 15px !important; }
  .search-section { margin-bottom: 15px !important; }
  .search-box { flex-direction: column; gap: 6px !important; margin-bottom: 12px !important; }
  #search-input, #near-me-btn { padding: 10px 15px !important; font-size: 0.9rem !important; }
  .filter-tags { gap: 5px !important; margin-bottom: 15px !important; }
  .tag-btn { padding: 5px 12px !important; font-size: 0.75rem !important; }
  .counter-box { font-size: 0.75rem !important; padding: 4px 12px !important; }
  .shop-list { grid-template-columns: 1fr !important; gap: 15px !important; }
}
/* ==========================================================================
   言語バーの表示バグ修正用追加スタイル
   ========================================================================== */
.top-bar-container {
  background-color: #143216; /* ヘッダーより少し濃いグリーンで引き締め */
  width: 100%;
}

.top-bar {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
}

.top-bar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
}

#lang-select {
  background: rgba(255, 255, 255, 0.2) !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  color: #ffffff !important;
  padding: 6px 12px !important;
  border-radius: 4px;
  font-size: 0.85rem;
  cursor: pointer;
}

#lang-select option {
  color: #333333;
  background-color: #ffffff;
}
/* ==========================================================================
   🏞️ スポットリスト（カード）の背景グリーン化カスタム
   ========================================================================= */

/* カード全体の背景を淡いセージグリーン（目に優しい薄緑）に変更 */
.shop-card {
  background: #f1f7f3 !important; /* 白から爽やかな極薄の緑へ */
  border: 1px solid #c8ded0 !important; /* 枠線もグリーン系に調和 */
  box-shadow: 0 4px 15px rgba(30, 70, 32, 0.04) !important;
}

/* カードのホバー（マウスを載せた時）の輪郭をより鮮やかなグリーンに */
.shop-card:hover {
  border-color: #2e7d32 !important;
  box-shadow: 0 8px 25px rgba(46, 125, 50, 0.12) !important;
}

/* カード内ヘッダーの背景を少し濃いめのミントグリーンに変更 */
.shop-header {
  background-color: #e1ede5 !important;
  border-bottom: 1px solid #c8ded0 !important;
}

/* 各データ行の区切り線もソフトな緑に変更 */
.shop-body p {
  border-bottom: 1px solid #e1ede5 !important;
}

/* 距離バッジの色をより映えるディープグリーンに */
.distance-badge {
  background: #2e7d32 !important;
  color: #ffffff !important;
}
/* ==========================================================================
   📈 カウンター（Found 8 running spots）の位置調整
   ========================================================================== */
.search-section {
  align-items: flex-start !important; /* 💡 中央寄せから「左寄せ」に変更 */
}

.counter-box {
  display: inline-block;
  padding: 6px 16px;
  background-color: #2c3e35;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 20px;
  margin-top: 10px; /* フィルタータグとの間に少し隙間を作る */
  
  /* 💡 もし「右寄せ」にしたい場合は、以下の2行のコメントアウトを外し、上の「align-items」の行を消してください */
  /* margin-left: auto; */
  /* margin-right: 0; */
}