/* ==========================================================================
   全体の基本設定
   ========================================================================== */
* {
    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;
    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.3), rgba(15, 23, 42, 0.2)), 
                url('../images/back.jpg') no-repeat center center; /* 🛠️ 指定された正常パスに変更 */
    background-size: cover;
    background-attachment: 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.6rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    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);
}

/* メインコンテンツレイアウト */
.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;
    gap: 10px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #1f2937;
}

.area-filter-scroll {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.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;
    display: inline-block;
}

.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"].price-checkbox, input[type="checkbox"].dish-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;
    display: inline-block;
    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;
}

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

.footer-share-section {
    max-width: 500px;
    margin: 0 auto 10px auto;
    padding-bottom: 20px;
    border-bottom: 1px dashed #1f2937;
}

.footer-share-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.share-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    color: #ffffff;
    transition: transform 0.2s ease, filter 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.share-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.wa-btn { background-color: #25D366; }
.wc-btn { background-color: #07C160; }
.ln-btn { background-color: #06C755; }
.copy-btn { 
    background-color: #374151; 
    border: 1px solid #4b5563;
    color: #e5e7eb;
}

/* モバイル最適化（メディアクエリ） */
@media (max-width: 768px) {
    .lang-selector-container { 
        top: 10px; 
        right: 12px; 
        gap: 4px; 
    }
    .lang-btn { 
        padding: 4px 8px; 
        font-size: 0.72rem; 
    }

    /* 👇 背景画像のサイズ崩れと構文エラーを修正 */
    .main-header { 
        min-height: 180px; /* 文字が2行になっても余裕を持たせる高さ */
        padding: 50px 16px 20px 16px;
        /* モバイルでも中央に綺麗に収まるよう配置を固定 */
        background-image: linear-gradient(to bottom, rgba(11, 15, 23, 0.08) 0%, rgba(15, 23, 42, 0.05) 50%, rgba(11, 15, 23, 0.7) 100%), 
                          url('../images/back.jpg');
        background-repeat: no-repeat;
        background-position: center center;
        background-size: cover !important; /* 強制的にカバーサイズを適用 */
    }

    .header-content h1 { 
        font-size: 1.6rem;
        margin-bottom: 4px; 
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95), 0 1px 3px rgba(0, 0, 0, 0.8);
    }
    .header-content p { 
        font-size: 0.85rem; 
        line-height: 1.4; 
        text-shadow: 0 2px 6px rgba(0, 0, 0, 0.95);
    }

    .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; }
    
    .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; }

    .footer-share-container {
        gap: 6px;
    }
    .share-btn {
        padding: 8px 10px;
        font-size: 0.76rem;
        flex: 1 1 calc(50% - 6px);
        justify-content: center;
    }
}