/* ==========================================================================
   全体の基本設定
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Noto Sans CJK JP', sans-serif;
}

body {
    background-color: #0b0f17;
    color: #e0e0e0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* 言語セレクター */
.lang-selector-container {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    display: flex;
    gap: 8px;
}

.lang-btn {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #cbd5e1;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.25s ease;
    backdrop-filter: blur(4px);
}

.lang-btn.active {
    background: #10b981;
    border-color: #10b981;
    color: #fff;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

.lang-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

/* 🖼️ ヘッダーセクションの修正 */
.main-header {
    position: relative;
    width: 100%;
    min-height: 45vh; /* 画面高さの45%を確保（お好みに応じて50vhなどに調整してください） */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    box-sizing: border-box;
    
    /* 💡 背景画像の設定と、文字を読みやすくするための黒い透過レイヤー（グラデーション） */
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(15, 23, 42, 0.3)), 
                url('../images/back.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: scroll; /* モバイルでの表示バグを防ぐためscrollを推奨 */
    
    border-bottom: 2px solid #1e293b;
    overflow: hidden;
}

/* ヘッダー内のコンテンツ配置 */
.header-content {
    position: relative;
    z-index: 2; /* 背景より確実に前面に出す */
    max-width: 800px;
    margin: 0 auto;
}

/* タイトルテキストの強化 */
.header-content h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    /* 🌌 ネオンや背景に負けないよう、薄くシャドウを入れて視認性をMAXに */
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.7), 0 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.3;
}

/* サブタイトルの強化 */
.header-content p {
    font-size: 1.2rem;
    color: #cbd5e1; /* 少し落ち着いた白 */
    font-weight: 400;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

/* 📱 スマホ画面向けのレスポンシブ微調整 */
@media (max-width: 768px) {
    .main-header {
        min-height: 35vh; /* スマホでは少し低めにしてコンテンツを見やすく */
        padding: 40px 15px;
    }
    .header-content h1 {
        font-size: 2.0rem; /* 文字サイズをスマホ最適化 */
    }
    .header-content p {
        font-size: 1.0rem;
    }
}

.main-header h1 {
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.75);
    margin-bottom: 18px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.main-header p {
    font-size: 1.15rem;
    color: #cbd5e1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    line-height: 1.7;
    max-width: 650px;
    margin: 0 auto;
    font-weight: 400;
}

/* ==========================================================================
   メインコンテンツレイアウト
   ========================================================================== */
.main-content-wrapper {
    max-width: 1240px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* 検索＆フィルターセクション */
.search-filter-section {
    background: #111827;
    padding: 30px;
    border-radius: 14px;
    border: 1px solid #1f2937;
    margin-bottom: 30px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

.search-bar-container {
    display: flex;
    gap: 14px;
    margin-bottom: 25px;
}

#search-input {
    flex: 1;
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 8px;
    padding: 14px 18px;
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: all 0.2s ease;
}

#search-input:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

#near-me-btn {
    background: transparent;
    border: 2px solid #10b981;
    color: #10b981;
    font-weight: 700;
    padding: 0 28px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#near-me-btn:hover {
    background: #10b981;
    color: #fff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

/* エリアバッジフィルター */
.area-filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #1f2937;
}

.area-btn {
    background: #1f2937;
    border: 1px solid #374151;
    color: #9ca3af;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.area-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-color: #9ca3af;
}

.area-btn.active {
    background: #10b981;
    color: #fff;
    border-color: #10b981;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

/* チェックボックスコンテナ */
.method-filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.direct-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.direct-checkbox-label:hover .checkbox-text {
    color: #fff;
}

.checkbox-text {
    font-size: 0.95rem;
    color: #9ca3af;
    font-weight: 500;
    transition: color 0.2s ease;
}

input[type="checkbox"].cuisine-checkbox,
input[type="checkbox"].price-checkbox {
    width: 19px;
    height: 19px;
    accent-color: #10b981;
    cursor: pointer;
}

/* カウンター */
.results-counter {
    font-size: 1rem;
    color: #9ca3af;
    margin-bottom: 20px;
    padding-left: 4px;
}

#options-count {
    color: #10b981;
    font-weight: 800;
    font-size: 1.1rem;
    margin: 0 4px;
}

/* ==========================================================================
   ショップカードグリッド
   ========================================================================== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

/* ショップカード */
.shop-card {
    background: #111827;
    border: 1px solid #1f2937;
    padding: 24px;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.shop-card:hover {
    transform: translateY(-4px);
    border-color: #374151;
    box-shadow: 0 12px 20px -8px rgba(0, 0, 0, 0.5);
}

.area-badge {
    background: #2563eb;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    float: right;
    letter-spacing: 0.02em;
}

/* アクションボタンコンテナ */
.action-buttons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid #1f2937;
    width: 100%;
}

.map-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #10b981;
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 9px 14px;
    border-radius: 6px;
    flex: 1 1 100%; /* マップボタンは常に最上部または単独で目立たせる */
    text-align: center;
    transition: background 0.2s ease;
}

.map-btn:hover { 
    background: #059669; 
}

.mini-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1f2937 !important;
    border: 1px solid #374151;
    color: #d1d5db !important;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    flex: 1;
    min-width: 95px;
    text-align: center;
    transition: all 0.2s ease;
}

.mini-btn:hover {
    background: #374151 !important;
    color: #ffffff !important;
    border-color: #4b5563;
}

/* ==========================================================================
   FAQ & シェアセクション
   ========================================================================== */
.faq-section {
    background: #111827;
    padding: 30px;
    border-radius: 14px;
    border: 1px solid #1f2937;
    margin-bottom: 40px;
}

.faq-title { 
    margin-bottom: 20px; 
    font-size: 1.4rem; 
    color: #fff;
    font-weight: 700;
}

.faq-item { 
    margin-bottom: 18px; 
}

.faq-item:last-child {
    margin-bottom: 0;
}

.faq-question { 
    font-weight: 700; 
    color: #10b981; 
    margin-bottom: 6px; 
    font-size: 1rem;
}

.faq-answer { 
    color: #cbd5e1; 
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 🔗 スクリプト連動用SNSシェアセクション（もし配置される場合用） */
.share-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    justify-content: center;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    color: #fff !important;
    transition: opacity 0.2s;
}

.share-btn:hover { opacity: 0.9; }
.share-wa { background: #25D366; }
.share-line { background: #06C755; }
.share-copy { background: #4b5563; }

/* ==========================================================================
   Footer
   ========================================================================== */
.main-footer {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
    font-size: 0.9rem;
    border-top: 1px solid #1f2937;
    background: #0f172a;
}

/* ==========================================================================
   📱 モバイル最適化メディアクエリ（画面幅768px以下）
   ========================================================================== */
@media (max-width: 768px) {
    /* 言語セレクター：タイトルと被らないよう上部に固定し、ボタンを少しコンパクトに */
    .lang-selector-container { 
        top: 10px; 
        right: 12px; 
        gap: 4px; 
    }
    .lang-btn { 
        padding: 4px 8px; 
        font-size: 0.72rem; 
    }
    
    .main-header { 
        /* 💡 高さを 220px → 145px に縮め、上下の余白をタイトに */
        min-height: 145px;
        padding: 45px 16px 15px 16px;
        background-position: center 35%;
        
        /* 💡 黒いマスクを大幅に薄く（0.4→0.1、0.75→0.25、0.98→0.45）して画像を明るくクリアに */
        background-image: linear-gradient(
            to bottom, 
            rgba(11, 15, 23, 0.10) 0%, 
            rgba(11, 15, 23, 0.25) 50%,
            rgba(11, 15, 23, 0.45) 100%
        ), 
        url('../images/back.jpg');
    }

    /* 💡 ボタンとの被りを防ぐため、タイトル全体のレイアウト位置を調整 */
    .header-content {
        margin-top: 15px;
    }

    /* 💡 タイトルを少しだけ小さくして1行に綺麗に収め、視認性シャドウを追加 */
    .header-content h1 { 
        font-size: 1.55rem;
        margin-bottom: 2px; 
        letter-spacing: 0.04em;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
    }
    
    /* 💡 サブタイトルも少し文字サイズを調整 */
    .header-content p { 
        font-size: 0.8rem; 
        line-height: 1.3; 
        text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
    }

    .main-content-wrapper { padding: 20px 12px; }
    .search-filter-section { padding: 20px; margin-bottom: 20px; }
    .search-bar-container { flex-direction: column; gap: 10px; margin-bottom: 16px; }
    #search-input { padding: 12px 14px; font-size: 0.95rem; }
    #near-me-btn { width: 100%; padding: 12px 0; font-size: 0.95rem; }
    .area-filter-container { gap: 8px; margin-bottom: 16px; padding-bottom: 14px; }
    .area-btn { padding: 6px 12px; font-size: 0.8rem; }
    .method-filter-container { flex-direction: column; gap: 10px; }
    .checkbox-text { font-size: 0.9rem; }
    
    .card-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .shop-card { padding: 18px; }
    .action-buttons-container { gap: 6px; }
    .mini-btn { min-width: 80px; font-size: 0.75rem; padding: 8px 6px; }
}