:root {
    --bg-dark: #0b0c10;
    --card-bg: #1f2833;
    --accent-gold: #c5a059;
    --text-main: #ffffff;
    --text-muted: #c5a059;
    --border-color: rgba(197, 160, 89, 0.2);
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Helvetica Neue', Arial, sans-serif; }
body { background-color: var(--bg-dark); color: var(--text-main); line-height: 1.6; }

/* ==========================================================================
   1. レイアウト共通・カードグリッド（これが元のstyle.cssに足りていませんでした）
   ========================================================================== */
.list-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px 20px;
}

.results-count {
    color: var(--accent-gold);
    font-size: 0.9rem;
    margin-bottom: 15px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

/* ==========================================================================
   2. ヘッダー全体のデザイン調整（明るさUP ＆ PC・モバイル両対応決定版）
   ========================================================================== */
header, .header {
    position: relative;
    /* 💡 新しい th-back.jpg に変更し、マスクを透過35%〜45%に薄めて画像本来の明るさを確保 */
    background: linear-gradient(rgba(15, 23, 42, 0.35), rgba(15, 23, 42, 0.45)), 
                url('../images/th-back.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: scroll;
    padding: 70px 20px 50px 20px;   
    text-align: center;
    border-bottom: 2px solid var(--accent-gold);
    transition: all 0.3s ease;
}

.header-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

.logo {
    font-size: 3rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: 6px;
    /* 💡 背景画像が明るくなっても文字が絶対にくっきり浮き出るディープシャドウ */
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.9), 0 2px 4px rgba(0, 0, 0, 0.7);
    margin-bottom: 5px;
}

.subtitle {
    font-size: 0.9rem;
    color: var(--accent-gold);
    letter-spacing: 4px;
    font-weight: 600;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}

.notice-box {
    max-width: 700px;
    margin: 25px auto 0 auto;
    background: rgba(11, 12, 16, 0.85);
    border: 1px solid var(--border-color);
    padding: 15px 20px;
    border-radius: 6px;
    font-size: 0.8rem;
    line-height: 1.5;
    color: #ddd;
    text-align: left;
}

.notice-box strong {
    color: #ff5252;
}

/* ==========================================================================
   📱 スマートフォン（モバイル）用の個別レスポンシブ設定
   ========================================================================== */
@media (max-width: 768px) {
    header, .header {
        /* 💡 縦長画面でもMookata鍋や屋台の料理が綺麗に中央に映るよう、表示位置を微調整 */
        background-position: center 40%; 
        /* スマホ画面でファーストビューを広く確保するために、上下のパディングを少しスマートに縮小 */
        padding: 55px 15px 35px 15px;   
    }

    .header-controls {
        top: 12px;
        right: 12px;
    }

    .logo {
        /* 💡 スマホの画面幅で「KL THAILAND」が2行に崩れてしまわないよう、サイズを2remに最適化 */
        font-size: 2rem; 
        letter-spacing: 3px; 
        margin-bottom: 6px;
    }

    .subtitle {
        font-size: 0.75rem; 
        letter-spacing: 2px;
    }

    .notice-box {
        margin: 18px auto 0 auto;
        padding: 12px 15px;
        font-size: 0.75rem; /* 小さな画面でも圧迫感のない文字サイズに調整 */
        line-height: 1.4;
    }
}/* ==========================================================================
   3. 検索・フィルターエリア
   ========================================================================== */
.filter-section {
    background-color: #151c24;
    border-bottom: 1px solid var(--border-color);
    padding: 25px 20px;
}

.filter-container {
    max-width: 1200px;
    margin: 0 auto;
}

.search-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.search-field {
    flex: 1;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    padding: 12px 15px;
    border-radius: 4px;
    color: #fff;
    font-size: 0.95rem;
}

.search-field:focus {
    outline: none;
    border-color: var(--accent-gold);
}

/* ==========================================================================
   4. コントロール部品（ボタン・セレクト）
   ========================================================================== */
.btn {
    background: var(--accent-gold);
    color: var(--bg-dark);
    border: none;
    padding: 0 25px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.btn:hover {
    background: #d4b26f;
}

.btn.active {
    background: #4caf50;
    color: white;
}

.control-select {
    background: var(--bg-dark);
    color: #fff;
    border: 1px solid var(--border-color);
    padding: 10px;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
}

.control-select:focus {
    outline: none;
    border-color: var(--accent-gold);
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.checkbox-group {
    flex-direction: row;
    gap: 20px;
    padding-bottom: 10px;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem !important;
    color: #fff !important;
    cursor: pointer;
}

/* ==========================================================================
   5. レストランカード詳細
   ========================================================================== */
.restaurant-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.restaurant-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-gold);
}

.restaurant-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.hotel-tag {
    font-size: 0.75rem;
    color: var(--accent-gold);
    margin-bottom: 12px;
    background: rgba(197, 160, 89, 0.1);
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    align-self: flex-start;
}

.tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.badge {
    background: rgba(255,255,255,0.05);
    color: #ccc;
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
}

.location-badge {
    background: rgba(197, 160, 89, 0.15);
    color: var(--accent-gold);
    font-weight: 600;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 25px;
    font-size: 0.85rem;
    background: rgba(0,0,0,0.2);
    padding: 15px;
    border-radius: 6px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 6px;
}

.info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-label {
    color: #888;
}

.card-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.action-link {
    background: #0b0c10;
    border: 1px solid var(--border-color);
    color: #fff;
    text-align: center;
    padding: 8px 0;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
}

.action-link:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

/* ==========================================================================
   6. フッターのデザイン（左右の整列崩れを完全に解決）
   ========================================================================== */
.main-footer {
    max-width: 1200px;
    margin: 60px auto 0 auto;
    padding: 30px 20px;
    border-top: 1px solid var(--border-color);
    color: #666;
    font-size: 0.8rem;
    text-align: center;
}

.disclaimer {
    line-height: 1.6;
    margin-bottom: 25px;
    color: #555;
}

.share-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 15px 0;
    margin-bottom: 20px;
    color: #888;
}

.share-btn {
    background: none;
    border: 1px solid var(--border-color);
    color: #aaa;
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    margin-left: 8px;
}

.share-btn:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .share-row {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    .share-btn {
        margin: 4px;
    }
}
/* ==========================================================================
   📱 モバイル画面での超コンパクト化（ヘッダー ＆ フィルター高さを大幅カット）
   ========================================================================== */
@media (max-width: 768px) {
    /* 1. ヘッダー全体の余白を限界まで詰める */
    header, .header {
        padding: 40px 12px 20px 12px !important; /* 上下の無駄なスペースを削減 */
    }

    .logo {
        font-size: 1.8rem !important; /* 少し小さくして高さを抑える */
        margin-bottom: 2px !important;
    }

    .subtitle {
        font-size: 0.7rem !important;
        letter-spacing: 1px !important;
    }

    /* Noticeボックスの上下の隙間を小さく */
    .notice-box {
        margin: 12px auto 0 auto !important;
        padding: 8px 12px !important;
        font-size: 0.7rem !important;
    }

    /* 2. 検索バーとNear Meボタンのレイアウトをスリムに */
    .search-container, .search-row {
        display: flex !important;
        gap: 8px !important;
        margin-bottom: 10px !important;
    }

    #search-input {
        flex: 1 !important;
        height: 38px !important; /* 高さを少し低めに */
        font-size: 0.85rem !important;
        margin-bottom: 0 !important;
    }

    #near-me-btn {
        width: auto !important;
        height: 38px !important;
        padding: 0 12px !important;
        font-size: 0.85rem !important;
        white-space: nowrap !important;
        margin: 0 !important;
    }

    /* 3. フィルターエリア（セレクトボックス群）の縦伸びを解消 */
    /* フィルターを囲むコンテナの余白調整 */
    .filter-container, .filters-wrapper {
        padding: 10px 0 !important;
    }

    /* 各フィルター項目（ラベル＋セレクトボックス）を2列のグリッドに配置 */
    .filter-group-parent, .filters-grid { 
        display: grid !important;
        grid-template-columns: 1fr 1fr !important; /* 綺麗に2列に分割 */
        gap: 8px !important; /* 隙間をキュッと詰める */
    }

    /* もし各セレクトボックスが個別のdivで囲まれている場合の設定 */
    .filter-item, .filter-group {
        margin-bottom: 0 !important; /* 下の無駄な余白をカット */
    }

    /* フィルターのタイトル（CATEGORYなどの文字）を小さくして詰める */
    .filter-label, label {
        font-size: 0.65rem !important;
        margin-bottom: 3px !important;
        display: block !important;
    }

    /* セレクトボックス自体の高さを低く */
    .filter-select, select {
        height: 36px !important;
        font-size: 0.8rem !important;
        padding: 4px 8px !important;
    }

    /* チェックボックス（Lunch Only / Reserve等）がある場合の横並び調整 */
    .checkbox-container, .checkbox-group {
        grid-column: span 2 !important; /* チェックボックスは横いっぱいに */
        display: flex !important;
        gap: 15px !important;
        margin-top: 5px !important;
    }
}