/* ==========================================================================
   KL RAMEN - Premium Guide Base Styles
   ========================================================================== */

:root {
    --bg-color: #12191f;
    --card-bg: #1a232a;
    --border-color: #3c4854;
    --text-color: #ffffff;
    --text-muted: #8a99a5;
    --primary-color: #f39c12; /* Accent Gold */
    --accent-gold: #f39c12;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ==========================================================================
   ヘッダー部：KLKOREAN準拠の完全センタリング構造
   ========================================================================== */
header {
    text-align: center;
    padding: 40px 20px 10px 20px;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.header-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    margin-bottom: 5px;
}

.header-top h1 {
    font-size: 3rem;
    font-weight: 900;
    margin: 0;
    padding: 0;
    letter-spacing: 3px;
    color: #fff;
    text-align: center;
}

#lang-select {
    background: #242f38;
    color: #fff;
    border: 1px solid var(--border-color);
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
}

#lang-select:hover {
    border-color: var(--primary-color);
}

#header-subtitle {
    font-size: 0.95rem;
    color: var(--primary-color);
    letter-spacing: 2px;
    margin: 10px 0 20px 0;
    font-weight: bold;
    text-align: center;
    width: 100%;
}

/* ⚠️ NON-HALAL 警告バナー */
#notice-banner {
    background: rgba(231, 76, 60, 0.15);
    border-left: 4px solid #e74c3c;
    color: #f39c12;
    padding: 14px 18px;
    margin: 0 auto 20px auto;
    max-width: 760px;
    font-size: 0.85rem;
    border-radius: 4px;
    text-align: left;
    line-height: 1.5;
    box-sizing: border-box;
}

/* ==========================================================================
   メインレイアウト & フィルターエリア
   ========================================================================== */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.search-container {
    max-width: 800px;
    margin: 0 auto 20px auto;
    display: flex;
    gap: 10px;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    max-width: 800px;
    margin: 0 auto 15px auto;
}

.filter-options-row {
    margin: 15px 0;
    display: flex;
    justify-content: center;
}

.results-counter {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* ==========================================================================
   2列・3列 レストランカードグリッド（幅・高さを完全均等化）
   ========================================================================== */
#restaurant-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    padding: 20px 0;
    width: 100%;
    margin: 0 auto;
    align-items: stretch; /* 高さを統一 */
}

@media (min-width: 768px) {
    #restaurant-list {
        grid-template-columns: repeat(2, 1fr); /* タブレットで2列 */
    }
}

@media (min-width: 1024px) {
    #restaurant-list {
        grid-template-columns: repeat(3, 1fr); /* PC大画面でスタイリッシュな3列 */
    }
}

.restaurant-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
    transition: transform 0.2s, border-color 0.2s;
}

.restaurant-card:hover {
    border-color: var(--primary-color);
}

.restaurant-title {
    font-size: 1.4rem;
    margin: 0 0 10px 0;
    color: #fff;
}

/* ==========================================================================
   ボタン・リンク各種（公式ブランドカラー仕様）
   ========================================================================== */
.card-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.card-actions a {
    flex: 1;
    text-align: center;
    padding: 8px 0;
    font-size: 0.8rem;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

/* WAZE (鮮やかな公式シアン) */
.card-actions a[href*="waze.com"] {
    background: #242f38 !important;
    color: #33ccff !important;
    border: 1px solid #33ccff !important;
    font-weight: bold;
}
.card-actions a[href*="waze.com"]:hover {
    background: #33ccff !important;
    color: #111 !important;
}

/* MAPS (Googleマップ公式ブルー) */
.card-actions a[href*="maps.google.com"],
.card-actions a[href*="googleusercontent.com"] {
    background: #242f38 !important;
    color: #4285F4 !important;
    border: 1px solid #4285F4 !important;
    font-weight: bold;
}
.card-actions a[href*="maps.google.com"]:hover,
.card-actions a[href*="googleusercontent.com"]:hover {
    background: #4285F4 !important;
    color: #fff !important;
}

/* その他のWEBSITE等汎用ボタン */
.card-actions a:not([href*="waze.com"]):not([href*="maps.google.com"]):not([href*="googleusercontent.com"]) {
    background: #242f38;
    color: #fff;
    border: 1px solid var(--border-color);
}

/* ==========================================================================
   フッター部 & SNS共有ボタン（完全センタリング）
   ========================================================================== */
footer {
    text-align: center !important;
    padding: 40px 20px;
    width: 100%;
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
}

footer .disclaimer, footer .copyright {
    text-align: center !important;
    margin: 10px auto !important;
    max-width: 700px;
    display: block;
    line-height: 1.6;
    color: var(--text-muted);
    font-size: 0.75rem;
}

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

.share-btn {
    color: #fff !important;
    border: none !important;
    border-radius: 4px;
    padding: 10px 20px;
    font-size: 0.85rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.share-btn:active { transform: scale(0.97); }

/* 各種SNSブランドカラー */
.btn-whatsapp { background: #25D366 !important; }
.btn-whatsapp:hover { background: #20ba56 !important; }

/* WeChat */
.btn-wechat { background: #07C160 !important; }
.btn-wechat:hover { background: #06ad56 !important; }

/* LINE */
.btn-line { background: #06C755 !important; }
.btn-line:hover { background: #05b34c !important; }

/* Copy Link */
.btn-copy { background: #555555 !important; }
.btn-copy:hover { background: #444444 !important; }


/* ==========================================================================
   📱 モバイル用レイアウト最適化・高さ短縮補正（レスポンシブ）
   ========================================================================== */
@media (max-width: 767px) {
    /* モバイル画面では上部の余白を大幅にカットして即座にコンテンツを見せる */
    header {
        padding: 15px 15px 5px 15px; /* 上下の無駄なスペースを削減 */
    }

    .header-top h1 {
        font-size: 2rem; /* タイトルロゴを少しコンパクトに */
        letter-spacing: 1.5px;
    }

    .header-top {
        gap: 6px; /* ロゴと言語選択のスキマを極限まで縮小 */
    }

    #header-subtitle {
        font-size: 0.8rem;
        margin: 5px 0 10px 0; /* サブタイトルの上下の余白を圧縮 */
    }

    #notice-banner {
        padding: 10px 12px;
        margin: 0 auto 10px auto; /* 警告バナーから検索窓までの距離を大幅短縮 */
        font-size: 0.75rem;
    }

    .search-container {
        margin-bottom: 10px; /* 検索窓とセレクトボックスの隙間を縮小 */
    }

    .filters-grid {
        gap: 8px; /* セレクトボックス同士の間隔を詰め、スクロール量を減らす */
        margin-bottom: 5