:root {
    --primary-color: #134e4a; /* Teal / Deep Hunan Green */
    --accent-color: #dc2626;  /* Chili Red */
    --bg-color: #f7faf9;      
    --card-bg: #ffffff;
    --text-main: #2c2c2c;
    --text-muted: #666666;
    --border-color: #e2e8f0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
}

/* 📺 PC・Web用ヘッダーデザイン（透過固定） */
header {
    background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.55)), url('../images/back.jpg');
    background-size: cover;
    background-position: center;
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    text-align: center;
    position: relative;
    padding: 20px;
    border-bottom: 3px solid var(--accent-color);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: transparent;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    z-index: 10;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-weight: bold;
    font-size: 1.3rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.lang-switcher button {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border-radius: 4px;
}

.lang-switcher button.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

#hero-title {
    font-size: 2.8rem;
    margin-bottom: 15px;
    font-weight: 800;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

#hero-subtitle {
    font-size: 1.15rem;
    max-width: 750px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

/* レイアウト・メインエリア */
.main-container {
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 20px;
}

.filter-section {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group h3 {
    font-size: 15px;
    color: var(--primary-color);
    margin-bottom: 10px;
    border-left: 4px solid var(--accent-color);
    padding-left: 8px;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.checkbox-grid label {
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.area-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-area {
    padding: 6px 14px;
    font-size: 13px;
    border: 1px solid var(--border-color);
    background: #f8fafc;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-area.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Near Me ボタン */
.nearme-wrapper { margin-bottom: 15px; }
#btn-nearme {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: bold;
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--text-main);
    border-radius: 6px;
    cursor: pointer;
}
#btn-nearme.active {
    background: #25d366;
    color: white;
    border-color: #25d366;
}

/* 検索窓 */
.search-wrapper input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
}

/* カウンター */
.results-counter { margin-bottom: 15px; font-size: 14px; color: var(--text-muted); }
#results-count { font-weight: bold; color: var(--accent-color); }

/* カードグリッド */
.spots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.spot-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
}

.spot-header {
    background: #f8fafc;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.spot-name { font-weight: bold; font-size: 16px; }
.spot-area { font-size: 12px; color: var(--text-muted); display: block; margin-top: 2px;}
.spot-price { font-weight: bold; color: var(--primary-color); font-size: 14px; }

.spot-body { padding: 15px; flex-grow: 1; }
.spot-desc { font-size: 14px; color: #4a5568; margin-bottom: 15px; }

.spot-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 15px; }
.meta-item { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }

.tag {
    display: inline-block;
    background: #f1f5f9;
    color: #475569;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 5px;
}

.spot-actions { padding: 0 15px 15px 15px; }
.btn-map {
    display: block;
    text-align: center;
    background: var(--primary-color);
    color: white !important;
    text-decoration: none;
    padding: 8px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: bold;
}

/* フッター */
footer {
    background-color: #1a1a1a;
    color: #b3b3b3;
    padding: 30px 20px;
    margin-top: 50px;
    font-size: 14px;
    border-top: 3px solid var(--primary-color);
}
.footer-container { max-width: 1200px; margin: 0 auto; text-align: center; }
.share-section { border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 15px; }
.share-title { font-size: 14px; font-weight: bold; color: #fff; margin-bottom: 10px; }
.share-buttons { display: flex; justify-content: center; gap: 10px; }
.share-btn { padding: 6px 12px; border-radius: 4px; font-size: 12px; font-weight: bold; text-decoration: none; color: white !important; }
.share-btn.whatsapp { background: #25D366; }
.share-btn.line { background: #06C755; }
.share-btn.copy { background: #555; }
.disclaimer-box { background-color: #242424; border-left: 4px solid var(--accent-color); padding: 15px; border-radius: 4px; text-align: left; }
.weight-bold { font-weight: bold; color: #fff; }
.footer-copyright { font-size: 12px; color: #666; padding-top: 10px; }

/* ==========================================================================
   📱 モバイル専用：前回のFIX内容を100%完全初期適用
   ========================================================================== */
@media screen and (max-width: 768px) {
    header {
        height: 170px !important;
        padding: 10px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
    }

    header .logo, .logo, .logo-text, .fa-pepper-hot {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
    }

    .header-container {
        position: absolute !important;
        top: 5px !important;
        right: 10px !important;
        left: auto !important;
        width: auto !important;
        height: auto !important;
        padding: 0 !important;
        background: transparent !important;
    }

    .lang-switcher { display: flex !important; flex-direction: row !important; gap: 4px !important; }
    .lang-switcher button { padding: 3px 6px !important; font-size: 11px !important; height: auto !important; width: auto !important; }

    #hero-title { font-size: 1.4rem !important; margin: 25px 0 4px 0 !important; line-height: 1.2 !important; }
    #hero-subtitle { font-size: 0.85rem !important; line-height: 1.3 !important; margin: 0 !important; }
    
    .checkbox-grid { grid-template-columns: 1fr 1fr; }
}
/* 🌐 カード内のお問い合わせ・SNSボタン用のグリッド配置 */
.spot-contacts-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 12px 0;
}

.contact-sub-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    color: #4a5568 !important;
    background: #f8fafc;
    transition: all 0.2s;
}

.contact-sub-btn:hover {
    background: #e2e8f0;
}

.contact-sub-btn.web { border-left: 3px solid #3b82f6; }
.contact-sub-btn.fb  { border-left: 3px solid #1877f2; }
.contact-sub-btn.ig  { border-left: 3px solid #e1306c; }
.contact-sub-btn.tel { border-left: 3px solid #10b981; background: #f0fdf4; }
/* ==========================================================================
   📻 Cuisine Type ラジオボタンの余白・横幅調整
   ========================================================================== */
.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px; /* 縦の隙間を16px、横の隙間を24pxに広げてゆとりを持たせます */
    margin-top: 10px;
}

.filter-options label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    padding: 6px 12px; /* クリック領域自体も少し広げて押しやすくします */
    background-color: #f7f5f0;
    border-radius: 20px;
    border: 1px solid #e0dcd5;
    transition: all 0.2s ease;
}

.filter-options label:hover {
    background-color: #eeebe4;
}

/* ラジオボタンの丸ポチと文字の間の隙間 */
.filter-options input[type="radio"] {
    margin-right: 8px;
    accent-color: var(--primary-color); /* ブランドカラーの赤色をラジオボタンに適応 */
}
/* ==========================================================================
   🖼️ ヘッダー背景画像（images/back.jpg）の設置と文字の視認性向上
   ========================================================================== */
header {
    position: relative;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/back.jpg');
    background-size: cover;          /* 画像を隙間なく全体に広げる */
    background-position: center;      /* 画像の中心を基準に表示する */
    background-repeat: no-repeat;
    color: #ffffff;                  /* テキストの色を白に統一 */
    padding: 80px 20px;              /* ヘッダーの上下のゆとり（高さ）を確保 */
    text-align: center;
    box-shadow: inset 0 -20px 40px rgba(0,0,0,0.5); /* 下部への自然な影のグラデーション */
}

/* ヘッダー内のタイトル文字をよりドラマチックに */
header h1 {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.7); /* 暗い背景の上でも文字がハッキリ読めるように影を強化 */
    margin-bottom: 12px;
}

/* ヘッダー内のサブタイトル（説明文） */
header p {
    font-size: 1.2rem;
    font-weight: 400;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto;
}
/* ==========================================================================
   📱 モバイル（スマホ）環境向けの見た目最適化
   ========================================================================== */
@media (max-width: 768px) {
    
    /* 🖼️ 1. ヘッダー画像の透過率（黒い重なり）を下げて料理をクッキリ見せる */
    header {
        /* 黒いグラデーションの数値を 0.45/0.65 から 0.25/0.40 まで下げて、元の画像（料理）を明るく露出させます */
        background-image: linear-gradient(rgba(0, 0, 0, 0.20), rgba(0, 0, 0, 0.10)), url('../images/back.jpg') !important;
        padding: 50px 15px !important; /* モバイルの上下の余白も少し削ってスマートに */
    }

    header h1 {
        font-size: 2.0rem !important; /* 文字サイズをスマホ向けに最適化 */
        text-shadow: 0 3px 8px rgba(0, 0, 0, 0.8) !important; /* 画像が明るくなった分、文字の影をクッキリさせて視認性をキープ */
    }

    header p {
        font-size: 1.0rem !important;
        text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8) !important;
    }

    /* 🎛️ 2. フィルターエリア全体の高さを短く・コンパクトにする */
    .filter-container, 
    .search-filter-section { /* お使いの環境のフィルターを包むクラス名に合わせて調整してください */
        padding: 12px 16px !important; /* 外側の上下の余白（隙間）を極限まで削ります */
    }

    /* 各フィルターグループ（Area, Cuisine, Price）の上下の隙間を縮める */
    .filter-group {
        margin-bottom: 10px !important; /* グループ間の間隔を狭く */
    }

    .filter-group h3 {
        font-size: 13px !important;    /* 見出しを少し小さく */
        margin-bottom: 6px !important;   /* 見出しとボタンの間の隙間をカット */
    }

    /* エリアボタンやラジオボタンのコンテナの隙間をさらに詰める */
    #area-buttons-container,
    .filter-options {
        gap: 6px 8px !important;        /* ボタン同士の縦・横の隙間を半分近くまでギュッと凝縮 */
        margin-top: 4px !important;
    }

    /* ボタン自体の縦幅を細くして高さを節約 */
    .btn-area,
    .filter-options label {
        padding: 4px 10px !important;   /* 内側の上下余白を4pxまで薄くし、高さを低くします */
        font-size: 13px !important;     /* 文字を1px小さくしてスタイリッシュに */
    }

    /* 検索窓（インプット）の高さも合わせて調整 */
    #search-input {
        padding: 8px 12px !important;   /* 入力欄自体の高さも少しスリムに */
        margin-top: 4px !important;
    }
}