/* ==========================================
   💎 Luxury Hotel & High-Rise Inspired Theme
   ========================================== */
:root {
    --bg-main: #0a0d14;         /* 深海・夜空のようなディープネイビー */
    --bg-card: #121824;         /* 高層ビルの窓から見るシックな室内をイメージしたダークトーン */
    --bg-input: #1e293b;        /* 入力エリアの落ち着いたダークグレー */
    --text-primary: #f3f4f6;    /* 洗練されたオフホワイト */
    --text-muted: #9ca3af;       /* 落ち着いたグレー */
    --accent-gold: #d4af37;     /* 格式高いシャンパンゴールド */
    --accent-gold-hover: #f3e5ab;/* 煌めくライトゴールド */
    --border-color: #222d42;    /* シャープなストラクチャーライン */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.7);
}

/* 全体構造の初期化 */
* {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

/* 🖼️ ヘッダーエリア */
#customHeader {
    position: relative;
    /* グラデーションの透明度を「0.6〜0.9」から「0.3〜0.5」に緩め、画像の明るさを引き出しました 🌟 */
    background-image: linear-gradient(rgba(10, 13, 20, 0.3), rgba(10, 13, 20, 0.5)), url('../images/back.jpg');
    background-size: cover;
    background-position: center;
    padding: 40px 20px;
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

#txtTitle {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    letter-spacing: -0.02em;
}

#txtSubTitle {
    font-size: 1rem;
    color: var(--text-muted);
    margin: 0;
}

/* 言語切り替え */
.lang-switcher select {
    background-color: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
}

.lang-switcher select:focus {
    border-color: var(--accent-gold);
}

/* 🧱 メインコンテナ */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* 🧱 フィルターボード */
.filter-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-wrap: nowrap; /* 👈 PC等で絶対に1行を維持するために、折り返しを禁止します */
    align-items: flex-end; /* 👈 ラベルとフォーム部品の下辺を揃えて美しくします */
    gap: 16px;
    width: 100%;
}

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

.filter-group label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap; /* 👈 ラベルの文字が途中で改行されるのを防ぎます */
}

/* 🛠️ 1行に収まるように要素ごとの横幅の比率を固定調整 */
.half-width {
    flex: 1 1 25%; /* 👈 AreaとPriceをきっちり25%ずつのスリムな幅に設定 */
}

.full-width {
    flex: 2 1 50%; /* 👈 Search Fieldに残り半分の50%を割り当てて横いっぱいに1行化 */
}

/* フォーム部品：1行の中で自然に伸び縮みしてフィットする設定 */
.filter-card select,
.filter-card input[type="text"] {
    background-color: var(--bg-input);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 8px 12px; 
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.2s;
    width: 100%;
    max-width: 100%;
}

.filter-card select:focus,
.filter-card input[type="text"]:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

/* アクションボタン ＆ お気に入りチェック */
.filter-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-gold), #b38f1d);
    color: #0a0d14;
    border: none;
    padding: 8px 20px;
    font-size: 0.88rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.4);
    opacity: 0.95;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-primary);
    user-select: none;
}

.checkbox-container input {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    accent-color: var(--accent-gold);
}

/* 📊 カウンターコンテナ（右寄せ） */
.counter-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    margin: 0 auto 20px auto;
    padding: 0 5px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

#txtFound, #txtShops, #shopCount {
    display: none; /* 古いカウント表示を隠し、新カウンターに一本化 */
}

/* 🛠️ カウンター文字の縮小とラグジュアリー化 */
#matchCounter {
    background: linear-gradient(135deg, #121824, #0a0d14);
    color: var(--accent-gold);
    padding: 4px 10px;          /* 👈 パディングを少し縮小 */
    font-size: 0.78rem;         /* 👈 文字サイズを小さく控えめにして高級感を演出 */
    border-radius: 20px;
    font-weight: 700;
    border: 1px solid var(--border-color); /* 👈 ゴールドの主張を抑え、細いストラクチャー境界線に馴染ませる */
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.1);
    letter-spacing: 0.05em;
}

/* 🍽️ ショップカードグリッド */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

/* カード単体の装飾 */
.shop-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.shop-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
    box-shadow: 0 12px 24px rgba(212, 175, 55, 0.15);
}

.shop-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.shop-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.shop-title-row h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.4;
    border-left: 3px solid var(--accent-gold);
    padding-left: 10px;
}

.btn-fav {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: transform 0.2s;
}

.btn-fav:hover {
    transform: scale(1.15);
}

/* タグシステム */
.tag-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tag {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 600;
}

.tag-area {
    background-color: rgba(212, 175, 55, 0.15);
    color: var(--accent-gold);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.tag-price {
    background-color: #1e293b;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

.shop-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 4px 0 0 0;
}

/* 🗺️ マップ・外部リンクボタン行 */
.shop-links {
    display: flex;
    gap: 10px;
    padding: 16px 24px 24px 24px;
    border-top: 1px solid var(--border-color);
    background-color: rgba(10, 13, 20, 0.2);
}

.btn-link {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s;
}

.btn-waze { background-color: #00b0ff; color: #fff; }
.btn-gmap { background-color: #ff5252; color: #fff; }
.btn-web { background-color: #374151; color: #fff; }

.btn-link:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* 🔗 フッター */
.main-footer {
    border-top: 1px solid var(--border-color);
    background-color: #06080d;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-disclaimer {
    max-width: 800px;
    margin: 0 auto 24px auto;
    line-height: 1.6;
}

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

.share-btn {
    padding: 8px 18px;
    border-radius: 6px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
}

.wa-btn { background-color: #25d366; }
.wechat-btn { background-color: #09bb07; }
.line-btn { background-color: #06c755; }
.copy-btn { background-color: var(--bg-input); color: var(--text-primary); border: 1px solid var(--border-color); }

.share-btn:hover { opacity: 0.85; }

.footer-divider {
    border: 0;
    border-top: 1px solid var(--border-color);
    margin: 24px 0;
}

.footer-bottom {
    margin: 0;
    font-size: 0.8rem;
}

/* 📱 モバイル・レスポンシブ対応 */
@media (max-width: 768px) {
    /* 画面幅が狭いモバイル端末では、無理に1行にせず綺麗にスタック・折り返しさせます */
    .filter-card { 
        padding: 16px; 
        gap: 12px; 
        flex-wrap: wrap; 
        align-items: stretch;
    }
    .half-width { flex: 1 1 calc(50% - 6px); }
    .full-width { flex: 1 1 100%; }
    
    .filter-actions { 
        display: flex;
        flex-direction: row;
        justify-content: space-between; 
        align-items: center; 
    }
    .btn-primary { 
        width: auto;
        text-align: center; 
    }
    .checkbox-container { justify-content: flex-end; padding: 0; }
    #txtTitle { font-size: 1.6rem; }
}
/* 📱 モバイル・レスポンシブ対応 */
@media (max-width: 768px) {
    /* 1. ヘッダーの上下の余白を40pxから「24px」に縮小し高さをカット 🌟 */
    #customHeader { 
        padding: 24px 16px; 
    }
    
    /* 2. タイトルの文字サイズを少し抑え、下のマージンを詰める 🌟 */
    #txtTitle { 
        font-size: 1.5rem; 
        margin: 0 0 4px 0;
    }
    #txtSubTitle {
        font-size: 0.9rem;
    }
    
    /* 3. フィルターボード全体の余白と下のマージン（30px→16px）を削減 🌟 */
    .filter-card { 
        padding: 16px; 
        gap: 12px; 
        flex-wrap: wrap; 
        align-items: stretch;
        margin-bottom: 16px; 
    }
    
    .half-width { flex: 1 1 calc(50% - 6px); }
    .full-width { flex: 1 1 100%; }
    
    .filter-actions { 
        display: flex;
        flex-direction: row;
        justify-content: space-between; 
        align-items: center; 
    }
    .btn-primary { 
        width: auto;
        text-align: center; 
    }
    .checkbox-container { justify-content: flex-end; padding: 0; }

    /* 4. カウンターコンテナの上下マージン（15px→0px）を無くして上に引き上げる 🌟 */
    .counter-container {
        margin: 0 auto 12px auto;
        padding: 0 5px;
    }
}
