:root {
    --primary-color: #8d6e63;    /* じっくり煮込んだ肉骨茶（バクテー）の濃厚スープをイメージした深いブラウン */
    --accent-color: #d7ccc8;     /* 伝統的なクレイポット（土鍋）の温かみを感じるソフトベージュ */
    --bg-color: #faf8f5;         /* クリーンで落ち着いたオフホワイト */
    --card-bg: #ffffff;
    --text-main: #3e2723;        /* 漢方スープの深みを反映した極濃ダークブラウン */
    --text-muted: #6d4c41;
    --border-color: #d7ccc8;
}

/* 🖼️ ヘッダー背景画像（PCでも高さを美しく保ち、文字の影を落とす完璧版） */
header {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)), url('../images/back.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    padding: 90px 20px;
    text-align: center;
    color: #ffffff;
}

header h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
}

header p {
    font-size: 1.2rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto 25px auto;
}

/* 言語スイッチボタンのラッパー */
.lang-switch {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.btn-lang {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff;
    padding: 6px 16px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.btn-lang.active, .btn-lang:hover {
    background: #ffffff;
    color: var(--text-main);
}

/* 全体のレイアウト設定 */
* { box-sizing: border-box; margin: 0; padding: 0; font-family: Arial, sans-serif; }
body { background-color: var(--bg-color); color: var(--text-main); padding: 0; }
.main-container { max-width: 1200px; margin: 0 auto; padding: 40px 20px; }

/* 🔍 検索＆フィルターコンテナ */
.search-filter-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(62,39,35,0.05);
    margin-bottom: 40px;
}

#btn-nearme {
    background: #4e342e;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 25px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

#btn-nearme.active { background: #00c853; }

.filter-group { margin-bottom: 25px; }
.filter-group h3 { font-size: 1.1rem; margin-bottom: 12px; border-left: 4px solid var(--primary-color); padding-left: 8px; }

/* エリアグリッドボタン */
.area-buttons-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-area {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}
.btn-area.active, .btn-area:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* ラジオ＆チェックボックスオプション */
.filter-options { display: flex; gap: 20px; flex-wrap: wrap; }
.filter-options label { display: flex; align-items: center; gap: 6px; cursor: pointer; }

#search-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
}

/* 📊 結果＆グリッド */
.results-header { font-size: 1.2rem; font-weight: bold; margin-bottom: 20px; }
#results-count { color: var(--primary-color); font-size: 1.4rem; }
.spots-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 25px; }

/* 🎴 カードデザイン */
.spot-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.card-header {
    background: #fdfaf6;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.85rem;
    font-weight: bold;
}

.card-area { color: var(--primary-color); }
.card-price { background: #efebe9; padding: 2px 8px; border-radius: 4px; }

.card-body { padding: 20px; flex-grow: 1; }
.card-title { font-size: 1.3rem; margin-bottom: 8px; }
.distance-tag { display: inline-block; background: #e8f5e9; color: #2e7d32; padding: 4px 8px; border-radius: 4px; font-size: 0.8rem; margin-bottom: 12px; font-weight: bold; }
.card-desc { font-size: 0.95rem; line-height: 1.5; color: #5d4037; margin-bottom: 15px; }

.card-info p { display: flex; gap: 8px; align-items: flex-start; font-size: 0.85rem; margin-bottom: 8px; color: #795548; }
.card-info p i { margin-top: 3px; width: 14px; text-align: center; }

/* 🔗 アクションボタン関係 */
.card-footer-actions { padding: 16px; background: #fafafa; border-top: 1px solid #f0f0f0; display: flex; gap: 10px; }
.card-footer-actions a {
    flex: 1; text-align: center; padding: 10px; border-radius: 6px; text-decoration: none; font-size: 0.9rem; font-weight: bold;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}

.btn-card-action.web { background: #8d6e63; color: #fff; }
.btn-card-action.fb { background: #1877f2; color: #fff; }
.btn-card-action.ig { background: #e1306c; color: #fff; }
.btn-card-action.tel { background: #00796b; color: #fff; }
.btn-card-map { background: #cfd8dc; color: #37474f; }

/* フッター設定 */
.site-footer { background: #3e2723; color: #d7ccc8; padding: 40px 20px; margin-top: 60px; }
.footer-container { max-width: 1200px; margin: 0 auto; text-align: center; }
.footer-section h4 { color: #fff; margin-bottom: 15px; }
.share-buttons { display: flex; justify-content: center; gap: 12px; margin-bottom: 25px; flex-wrap: wrap; }
.btn-share { padding: 10px 20px; border-radius: 4px; text-decoration: none; color: #fff; font-weight: bold; cursor: pointer; border: none; }
.btn-share.wa { background: #25d366; }
.btn-share.line { background: #06c755; }
.btn-share.copy { background: #78909c; }
.disclaimer-box { max-width: 800px; margin: 0 auto 30px auto; font-size: 0.85rem; opacity: 0.7; line-height: 1.6; }
.footer-divider { border: 0; border-top: 1px solid #5d4037; margin: 20px 0; }

/* 📱 スマホ環境調整用メディアクエリ */
@media (max-width: 768px) {
    header { padding: 50px 15px; }
    header h1 { font-size: 1.8rem; }
    .search-filter-section { padding: 20px; }
    .filter-options { flex-direction: column; gap: 10px; }
    .card-footer-actions { flex-direction: column; }
}
/* ==========================================================================
   📱 モバイル（スマホ）環境：超省スペース・コンパクト調整
   ========================================================================== */
@media (max-width: 768px) {
    /* 1. ヘッダー画像の高さを最小限に（文字数に対してギリギリまで圧縮） */
    header {
        padding: 25px 15px !important;
    }
    header h1 {
        font-size: 1.4rem !important;
        margin-bottom: 6px !important;
    }
    header p {
        font-size: 0.9rem !important;
        margin-bottom: 12px !important;
        line-height: 1.3 !important;
    }
    .lang-switch .btn-lang {
        padding: 4px 10px !important;
        font-size: 0.8rem !important;
    }

    /* 2. メインコンテナの余白を詰める */
    .main-container {
        padding: 15px 10px !important;
    }

    /* 3. 検索＆フィルターセクションをギュッと圧縮 */
    .search-filter-section {
        padding: 15px !important;
        margin-bottom: 20px !important;
    }

    /* Near Me ボタンを横幅いっぱいにせず、コンパクトに配置 */
    #btn-nearme {
        padding: 8px 16px !important;
        font-size: 0.85rem !important;
        margin-bottom: 15px !important;
        width: auto !important;
        display: inline-flex !important;
    }

    /* フィルターグループ内の上下余白を間引き、文字を小さく */
    .filter-group {
        margin-bottom: 12px !important;
    }
    .filter-group h3 {
        font-size: 0.9rem !important;
        margin-bottom: 6px !important;
        padding-left: 6px !important;
    }

    /* エリアボタンを小さくして、流れるようにたくさん並べられるように調整 */
    .btn-area {
        padding: 4px 10px !important;
        font-size: 0.8rem !important;
    }

    /* ラジオボタンとチェックボックスの間隔を狭く */
    .filter-options {
        gap: 10px 15px !important;
    }
    .filter-options label {
        font-size: 0.85rem !important;
    }

    /* 検索キーワード入力欄をスリムに */
    #search-input {
        padding: 8px 12px !important;
        font-size: 0.9rem !important;
    }

    /* 結果件数表示の見出しもコンパクトに */
    .results-header {
        font-size: 1rem !important;
        margin-bottom: 12px !important;
    }

    /* 4. 店舗カードのボタンをスマホでも2並び（横並び）に維持して縦幅を節約 */
    .card-footer-actions {
        flex-direction: row !important; /* 縦並びにせず横並びをキープ */
        gap: 8px !important;
        padding: 12px !important;
    }
    .card-footer-actions a {
        padding: 8px !important;
        font-size: 0.8rem !important;
    }
}