/* LASIK/css/style.css */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  background-color: #f4f7f6;
  color: #2c3e50;
}

/* 🌐 言語バー設定 */
.top-bar-container {
  background-color: #1a365d; /* 信頼感のあるメディカルネイビー */
  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;
}
#lang-select {
  background: rgba(255, 255, 255, 0.15) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
}
#lang-select option { color: #333; }

/* 🖼️ ヒーローヘッダー (images/back.jpg) */
.hero {
  position: relative;
  background-image: url('../images/back.jpg') !important;
  background-size: cover;
  background-position: center;
  padding: 90px 20px !important;
  text-align: center;
  color: #ffffff;
  z-index: 1;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(180deg, rgba(26, 54, 93, 0.7) 0%, rgba(15, 32, 67, 0.85) 100%) !important;
  z-index: -1;
}
.hero-text-box h1 { font-size: 2.3rem; margin-bottom: 10px; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.hero-text-box p { font-size: 1.1rem; opacity: 0.9; text-shadow: 0 2px 6px rgba(0,0,0,0.5); }

.hero-section {
    background-image: url('../images/back.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
/* 📦 コンテナ ＆ レイアウト */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
}

/* 🔍 検索 ＆ カウンター (左寄せ) */
.search-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 30px;
  align-items: flex-start !important; /* カウンターを左寄せにキープ */
}
.search-box {
  display: flex;
  width: 100%;
  gap: 10px;
}
#search-input {
  flex: 1;
  padding: 14px;
  border: 1px solid #ced4da;
  border-radius: 6px;
  font-size: 1rem;
}
#near-me-btn {
  background-color: #2b6cb0;
  color: white;
  border: none;
  padding: 0 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
}
#near-me-btn:hover { background-color: #1a365d; }

/* 🏷️ タグフィルター */
.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag-btn {
  padding: 8px 16px;
  border: 1px solid #cbd5e0;
  background: white;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
}
.tag-btn.active, .tag-btn:hover {
  background-color: #2b6cb0;
  color: white;
  border-color: #2b6cb0;
}

.counter-box {
  padding: 6px 16px;
  background-color: #2d3748;
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 20px;
}

/* 🏥 3列グリッド & グリーンミント系カード */
.shop-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 25px;
}
.shop-card {
  background: #f0f5f5 !important; /* 薄いミント系クリーン背景 */
  border: 1px solid #cfe2e2 !important;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.shop-card:hover {
  transform: translateY(-3px);
  border-color: #2b6cb0 !important;
  box-shadow: 0 8px 20px rgba(43,108,176,0.15) !important;
}
.shop-header {
  background-color: #e2eeee !important;
  padding: 16px;
  border-bottom: 1px solid #cfe2e2;
}
.shop-header h3 { font-size: 1.15rem; color: #1a365d; }
.distance-badge {
  display: inline-block;
  background: #e53e3e; color: white;
  padding: 2px 8px; font-size: 0.75rem; font-weight: 700;
  border-radius: 4px; margin-top: 6px;
}
.shop-body {
  padding: 16px;
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.5;
}
.shop-body p {
  padding: 8px 0;
  border-bottom: 1px solid #e2eeee;
}
.shop-body p:last-child { border-bottom: none; }
.status-badge {
  display: inline-block; padding: 2px 6px; font-size: 0.75rem; font-weight: 600; border-radius: 4px;
}
.status-free { background-color: #c6f6d5; color: #22543d; }
.status-paid { background-color: #e2e8f0; color: #4a5568; }

/* 🗺️ 3大リンクボタン定義 */
.shop-footer-btns {
  display: flex;
  padding: 12px;
  gap: 8px;
  background: white;
}
.btn {
  flex: 1; text-align: center; padding: 10px 0 !important;
  font-size: 0.8rem !important; font-weight: 700 !important;
  text-decoration: none; border-radius: 4px; transition: all 0.2s;
}
.btn-web { background-color: #2b6cb0 !important; color: white !important; }
.btn-web:hover { background-color: #1a365d !important; }

.btn-gmap { background-color: white !important; color: #333 !important; border: 1px solid #4285F4 !important; }
.btn-gmap:hover { background-color: #f7fafc !important; }

.btn-waze { background-color: #33ccff !important; color: white !important; }
.btn-waze:hover { background-color: #00b3ee !important; }

/* 👥 フッター & シェア */
.main-footer {
  background-color: #1a365d; color: white;
  text-align: center; padding: 40px 20px; margin-top: 50px;
}
.footer-share {
  display: flex; justify-content: center; gap: 15px; margin-bottom: 20px; flex-wrap: wrap;
}
.f-icon, .f-btn-copy {
  padding: 10px 20px; border-radius: 4px; border: none; font-weight: 600; cursor: pointer; text-decoration: none; font-size: 0.9rem;
}
.wa { background-color: #25D366; color: white; }
.wc { background-color: #07C160; color: white; }
.f-btn-copy { background-color: #718096; color: white; }
.footer-copy { font-size: 0.8rem; opacity: 0.7; }
/* ==========================================================================
   モバイル向け：高さを削りつつ、視認性を維持する修正
   ========================================================================== */
@media (max-width: 768px) {
  /* 1. 背景画像エリアの縦幅（高さ）を強制的に薄くカット */
  .hero-section, 
  header, 
  div[class*="hero"] { 
    height: 180px !important;       /* 高さを固定して強制スリム化 */
    min-height: 180px !important;
    padding: 0 !important;          /* ムダな上下余白を完全ゼロに */
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important; /* 文字を中央に綺麗に配置 */
  }

  /* 2. タイトルは元の見やすい大きさをキープ */
  .hero-section h1,
  header h1,
  .hero-section .title {
    font-size: 26px !important;    /* 読みやすい元の大きさに維持 */
    margin-bottom: 4px !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6); /* 文字が背景に埋もれない影 */
  }

  /* 3. サブタイトル */
  .hero-section p,
  header p,
  .hero-section .subtitle {
    font-size: 14px !important;    /* 視認性をしっかり確保 */
    padding: 0 10px !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
  }

  /* 4. 検索・フィルターエリアの無駄な隙間を詰める */
  .search-container,
  div[class*="search"] {
    margin-top: 10px !important;
    margin-bottom: 8px !important;
  }

  /* 5. フィルターボタン（文字やサイズは元のままで隙間だけを最適化） */
  .filter-tags {
    margin-top: 8px !important;
    margin-bottom: 8px !important;
    gap: 8px !important;
  }
  
  .tag-btn {
    padding: 8px 14px !important; /* 押しやすさと見やすさを維持 */
  }
}