/* ==========================================================================
   🏮 居酒屋＆焼き鳥 特化型ダークモード・スタイルシート（HAKKA 100%互換）
   ========================================================================== */

:root {
    --primary-color: #bd1c1c;    /* 赤提灯や暖簾をイメージした深紅 */
    --accent-color: #e67e22;     /* 炭火や琥珀色のハイボールオレンジ */
    --bg-color: #121212;         /* 深夜の隠れ家を演出する漆黒の背景 */
    --card-bg: #1e1e1e;          /* カード・フィルターボックスの背景（ダークグレー） */
    --text-main: #f5f5f5;        /* メイン文字色（オフホワイト） */
    --text-muted: #aaaaaa;       /* 補足・ディスクリプションの文字色 */
    --border-color: #2c2c2c;     /* 繊細な境界線 */
}

/* 🏢 1. 全体およびボディの初期化 */
body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    background-color: var(--bg-color) !important;
    color: var(--text-main) !important;
    line-height: 1.6;
}

/* 🖼️ 2. デスクトップ用ヘッダー背景設定 */
header {
    position: relative;
    background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.4)), url('../images/back.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    color: #ffffff !important;
    padding: 70px 20px;
    text-align: center;
    border-bottom: 2px solid var(--primary-color);
}

header h1 {
    font-size: 2.6rem;
    font-weight: 800;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.9);
    margin-bottom: 10px;
}

header p {
    font-size: 1.1rem;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
    max-width: 700px;
    margin: 0 auto 20px;
    color: #e0e0e0;
}

/* 言語切り替え */
.lang-switch {
    display: inline-flex;
    gap: 8px;
}
.btn-lang {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--border-color);
    color: white;
    padding: 4px 12px;
    cursor: pointer;
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.2s;
}
.btn-lang.active {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

/* 🎛3. レイアウト・フィルターコンテナ */
.main-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

.search-filter-section {
    background: var(--card-bg) !important;
    border: 1px solid var(--border-color) !important;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    margin-bottom: 20px;
}

/* ==========================================================================
   ⚡ 視認性大幅アップ！コントラスト改善用スタイル
   ========================================================================== */

/* 📍 1. Near Me ボタン（より際立たせ、ボタンらしく） */
#btn-nearme {
    background: #252525 !important;
    color: #ffffff !important;
    border: 1px solid var(--accent-color) !important; /* オレンジの枠線で存在感をアピール */
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    margin-bottom: 15px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(230, 126, 34, 0.2);
    transition: all 0.2s;
}
#btn-nearme:hover {
    background: #333333 !important;
    border-color: #ffffff !important;
}
#btn-nearme.active {
    background: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 12px rgba(230, 126, 34, 0.5);
}

/* 📻 2. カプセル型ラジオ/チェックボックス（Cuisine Type / Price Range） */
.filter-options label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    padding: 6px 14px;
    background-color: #333333 !important; /* 背景を明るいグレーにしてベースから浮かせます */
    border: 1px solid #444444 !important;
    border-radius: 30px;
    color: #ffffff !important; /* 文字をクッキリ白に */
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    transition: all 0.2s;
}
.filter-options label:hover {
    border-color: var(--primary-color) !important;
    background-color: #3d3d3d !important;
}
/* 選択された状態を真っ赤なカプセルにして超明瞭に */
.filter-options label:has(input:checked) {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #ffffff !important;
    font-weight: bold;
    box-shadow: 0 0 8px rgba(189, 28, 28, 0.4);
}

/* 📍 3. エリアボタン（Area Location） */
.btn-area {
    background: #333333 !important; /* 暗いベースから識別できるように明るめのグレーに */
    border: 1px solid #444444 !important;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    color: #ffffff !important; /* 文字をクッキリ白に */
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.2s;
}
.btn-area:hover {
    border-color: var(--primary-color) !important;
    background-color: #3d3d3d !important;
}
.btn-area.active {
    background: var(--primary-color) !important;
    color: #ffffff !important;
    border-color: var(--primary-color) !important;
    font-weight: bold;
    box-shadow: 0 0 8px rgba(189, 28, 28, 0.4);
}

/* 🔲 4. チェックボックス自体の見やすさ補正 */
.filter-options input[type="checkbox"],
.filter-options input[type="radio"] {
    accent-color: #ffffff !important; /* チェックが入った時のポッチを白にして目立たせる */
    transform: scale(1.1);
    margin-right: 8px;
}
#search-input {
    width: 100%;
    padding: 10px;
    background-color: #252525 !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 6px;
    font-size: 14px;
    color: #ffffff !important;
}
#search-input::placeholder {
    color: #666666;
}

/* 🏪 4. 結果カードグリッド表示 */
.results-header {
    margin-bottom: 15px;
    font-weight: bold;
    color: var(--text-main);
}
.spots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}
.spot-card {
    background: var(--card-bg) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    transition: transform 0.2s, border-color 0.2s;
}
.spot-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color) !important;
}

/* カードヘッダー（元の明るい背景から完全ダークへ修正） */
.spot-header {
    padding: 16px;
    background: #252525 !important; 
    border-bottom: 1px solid var(--border-color) !important;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.spot-title-row {
    display: flex;
    flex-direction: column;
}
.spot-name {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-main) !important;
}
.spot-area {
    font-size: 12px;
    color: var(--text-muted) !important;
    margin-top: 2px;
}
.spot-price {
    font-weight: bold;
    color: #f1c40f !important; /* 視認性の高いゴールドイエローに変更 */
}
.spot-body {
    padding: 16px;
    flex-grow: 1;
    background: var(--card-bg) !important;
}
.spot-desc {
    font-size: 13px;
    color: var(--text-muted) !important;
    margin-bottom: 12px;
}
.spot-meta {
    font-size: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #dddddd !important;
}
.meta-item i {
    width: 16px;
    color: var(--accent-color) !important;
}

/* クイックリンク・SNS用グリッド */
.spot-contacts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    margin-top: 12px;
}
.contact-sub-btn {
    font-size: 11px;
    padding: 6px 8px;
    border-radius: 4px;
    text-decoration: none;
    text-align: center;
    font-weight: bold;
    color: #ffffff !important;
    background: #2a2a2a !important;
    border: 1px solid var(--border-color) !important;
    transition: all 0.2s;
}
.contact-sub-btn:hover {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.tag {
    display: inline-block;
    font-size: 11px;
    background: rgba(230, 126, 34, 0.15) !important;
    color: var(--accent-color) !important;
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 4px;
    font-weight: bold;
    border: 1px solid rgba(230, 126, 34, 0.3);
}

/* 🗺 Googleマップアクションボタン */
.spot-actions {
    padding: 12px 16px;
    border-top: 1px solid var(--border-color) !important;
    background: var(--card-bg) !important;
}
.btn-map {
    display: block;
    text-align: center;
    background: var(--accent-color) !important;
    color: white !important;
    text-decoration: none;
    padding: 10px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
    transition: background 0.2s;
}
.btn-map:hover {
    background: #d35400 !important;
}

/* ==========================================================================
   👣 フッターエリアのデザイン
   ========================================================================== */
.site-footer {
    background-color: #161616 !important; 
    color: #bfae99 !important;            
    padding: 40px 20px 20px;
    margin-top: 50px;
    border-top: 3px solid var(--primary-color) !important;
    font-size: 13px;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
}

.footer-section {
    margin-bottom: 25px;
}

.footer-section h4 {
    color: #ffffff !important;
    font-size: 15px;
    margin-bottom: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* シェアボタン */
.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.btn-share {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: bold;
    text-decoration: none;
    color: #ffffff !important;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}
.btn-share:active { transform: scale(0.97); }

.btn-share.wa { background-color: #25D366 !important; }
.btn-share.wa:hover { background-color: #20ba56 !important; }

.btn-share.line { background-color: #06C755 !important; }
.btn-share.line:hover { background-color: #05b04b !important; }

.btn-share.copy { background-color: #4a443c !important; }
.btn-share.copy:hover { background-color: #5c544b !important; }

.disclaimer-box p {
    line-height: 1.7;
    color: #777777 !important;
    text-align: justify;
}

.footer-divider {
    border: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.08) !important;
    margin: 20px 0;
}

.footer-bottom {
    text-align: center;
}
.footer-bottom .copyright {
    font-size: 12px;
    color: #555555 !important;
}

/* ==========================================================================
   📱 モバイル（スマホ）環境最適化（ヘッダー超コンパクト版）
   ========================================================================== */
@media (max-width: 768px) {
    header {
        /* グラデーションは明るいまま、上下の余白を 45px から 25px へ大幅削減して縦幅を短縮 */
        background-image: linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.45)), url('../images/back.jpg') !important;
        padding: 25px 15px !important;
    }
    header h1 { 
        font-size: 1.5rem !important; /* タイトルも一回りコンパクトに */
        margin-bottom: 6px;
    }
    header p { 
        font-size: 0.75rem !important; /* 長いサブタイトルを約半分のサイズに縮小 */
        line-height: 1.4 !important;
        margin: 0 auto 12px !important;
        padding: 0 10px;
    }
    
    /* 検索・フィルターエリア全体の余白も少し詰めてスクロール量を減らします */
    .main-container {
        padding: 10px !important;
    }
    .search-filter-section { 
        padding: 12px 14px !important; 
        margin-bottom: 15px;
    }
    .filter-group { margin-bottom: 8px !important; }
    .filter-group h3 { font-size: 12px !important; margin-bottom: 4px !important; }
    
    .filter-options, .area-buttons-grid { gap: 6px 8px !important; margin-top: 2px !important; }
    .btn-area, .filter-options label { padding: 4px 10px !important; font-size: 12px !important; }
    #search-input { padding: 8px !important; margin-top: 4px !important; }
    
    .site-footer { padding: 30px 15px 15px; margin-top: 30px; }
    .share-buttons { display: grid; grid-template-columns: 1fr; gap: 8px; }
    .btn-share { justify-content: center; padding: 10px; font-size: 14px; }
}