/* ==========================================================
   KLSTUDIO/css/style.css (明るい日中のラグジュアリー・ライトゴールド仕様)
   ========================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background-color: #fcfbfa !important;
    color: #2d2b2a !important;
}

/* 💻 ヘッダー看板エリア */
.main-header {
    text-align: center;
    padding: 80px 20px 60px 20px; 
    margin: 0 auto 30px auto; 
    max-width: 1100px;
    border-radius: 12px;
    position: relative; 
    background-color: rgba(255, 254, 252, 0.85);
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
    box-shadow: 0 4px 20px rgba(197, 160, 89, 0.05);
}

#main-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a1817;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

#main-subtitle {
    font-size: 0.95rem;
    color: #6b6561;
    max-width: 650px;
    margin: 0 auto 25px auto;
    line-height: 1.6;
}

/* 言語切り替え */
.top-control-container {
    position: absolute;
    top: 15px;
    right: 20px;
}

.lang-switcher {
    display: flex;
    gap: 5px;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px;
    border-radius: 20px;
    border: 1px solid rgba(197, 160, 89, 0.2);
}

.lang-btn {
    background: transparent;
    border: none;
    color: #8c837e;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 15px;
}

.lang-btn.active {
    background: #c5a059;
    color: #ffffff !important;
}


/* 検索ボックス */
.search-container {
    max-width: 600px;
    margin: 0 auto 20px auto;
    padding: 0 15px;
}

.search-box-wrapper {
    position: relative;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #c5a059;
}

#search-input {
    width: 100%;
    padding: 12px 15px 12px 42px;
    background-color: #ffffff;
    border: 1px solid #e1deda;
    border-radius: 8px;
    color: #1a1817;
    font-size: 0.95rem;
    height: 44px;
}

/* 価格フィルタースライダー */
.price-filter-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
}

.filter-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #6b6561;
}

.price-slider-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

#price-range {
    width: 150px;
    accent-color: #c5a059;
    cursor: pointer;
}

#price-display {
    font-size: 0.9rem;
    font-weight: 700;
    color: #b28739;
    min-width: 80px;
    text-align: left;
}

/* エリアフィルター（PC版デフォルト） */
.area-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 25px auto;
    width: 100%;
    max-width: 1100px;
    padding: 0 15px;
}

.area-filter-tabs .area-btn {
    background-color: #ffffff;
    border: 1px solid #e6e3df;
    color: #6b6561;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    height: 38px;
    white-space: nowrap;
}

.area-filter-tabs .area-btn.active {
    background-color: #c5a059;
    color: #ffffff !important;
    border-color: #c5a059;
    font-weight: 600;
}

/* 🏢 グリッド配置 */
.condo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto 40px auto;
    padding: 0 15px;
}

.condo-card {
    background: #ffffff;
    border: 1px solid #e8e5e1;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-body {
    padding: 20px;
    flex-grow: 1;
}

.card-body h3 {
    margin-bottom: 8px;
    font-size: 1.15rem;
    color: #1a1817;
}

.badge-area {
    background: #f4f1ed;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    color: #6b6561;
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin: 15px 0;
    font-size: 0.85rem;
}

.info-label { color: #8c837e; }
.price-text { font-weight: 700; color: #b28739; }

.card-features {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* タグデザイン（駅・モール・高級） */
.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.badge-station { background: rgba(0, 102, 204, 0.06); color: #0066cc; }
.badge-mall { background: rgba(181, 40, 144, 0.06); color: #b52890; }
.badge-luxury { background: rgba(197, 160, 89, 0.1); color: #b28739; }

/* フッターカードリンク */
.card-footer-links {
    padding: 15px 20px;
    background: #faf8f5;
    border-top: 1px solid #e8e5e1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.portal-links, .map-links {
    display: flex;
    gap: 8px;
}

.portal-btn, .map-btn {
    flex: 1;
    text-align: center;
    padding: 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-decoration: none;
}

.portal-btn.guru { background: #ef4444; color: white; }
.portal-btn.iproperty { background: #1e3a8a; color: white; }
.map-btn.gmaps { background: #2a5cb3; color: white; }
.map-btn.waze { background: #1ca2cc; color: white; }

/* 📊 検索カウンター */
.results-header { max-width: 1100px; margin: 0 auto 15px auto; padding: 0 15px; }
.results-counter { font-size: 0.85rem; color: #8c837e; font-weight: 600; }
.no-result { grid-column: 1 / -1; text-align: center; padding: 40px 0; color: #8c837e; }

/* 💬 フッター & FAQ */
.main-footer { border-top: 1px solid #e8e5e1; padding-top: 40px; margin-top: 60px; background: #f5f2ee; }
.faq-outer-container { max-width: 1100px; margin: 0 auto 40px auto; padding: 0 20px; }
.faq-main-title { font-size: 1.3rem; color: #1a1817; margin-bottom: 20px; border-left: 4px solid #c5a059; padding-left: 10px; }
.faq-container { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: #ffffff; border: 1px solid #e1deda; border-radius: 6px; overflow: hidden; }
.faq-question { width: 100%; background: none; border: none; text-align: left; padding: 15px; font-size: 0.9rem; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; }
.faq-question::after { content: '\2b'; color: #8c837e; }
.faq-item.active .faq-question::after { content: '\2212'; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.2s ease-out; background: #fdfcfb; }
.faq-answer p { padding: 15px; color: #6b6561; font-size: 0.85rem; line-height: 1.6; border-top: 1px solid #f4f1ed; }

/* 各種共有ボタン・免責 */
.footer-share-container { display: flex; justify-content: center; gap: 15px; margin-bottom: 30px; }
.share-btn { width: 40px; height: 40px; border-radius: 50%; border: none; color: #fff; font-size: 1.1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; position: relative; }
.share-btn.whatsapp { background-color: #209647; }
.share-btn.line { background-color: #069943; }
.share-btn.wechat { background-color: #06964a; }
.share-btn.copylink { background-color: #6b6561; }
.tooltip-text { visibility: hidden; width: 70px; background: #1a1817; color: #fff; text-align: center; border-radius: 4px; padding: 4px 0; position: absolute; bottom: 125%; left: 50%; margin-left: -35px; opacity: 0; font-size: 0.7rem; }
.share-btn.copylink:hover .tooltip-text { visibility: visible; opacity: 1; }
.disclaimer-container { max-width: 1100px; margin: 0 auto; padding: 0 20px 20px 20px; text-align: center; }
#text-disclaimer { font-size: 0.75rem; color: #8c837e; line-height: 1.5; }
.footer-bottom { text-align: center; padding: 25px 20px; color: #8c837e; font-size: 0.8rem; border-top: 1px solid #e8e5e1; }

/* 📱 スマホ画面レスポンシブ（100%崩れない縦積み上げルール） */
@media (max-width: 992px) {
    .condo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
    .main-header { padding: 40px 15px 30px 15px; }
    #main-title { font-size: 1.5rem; }
    .price-filter-container { flex-direction: column; gap: 8px; }
    
    /* 💡 モバイル最優先：絶対に崩れず綺麗に動作する、1ボタン1行の縦並び */
    .area-filter-tabs {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 6px !important;
        padding: 0 15px !important;
    }
    .area-filter-tabs .area-btn {
        width: 100% !important;
        text-align: center !important;
    }
}

@media (max-width: 600px) {
    .condo-grid { grid-template-columns: repeat(1, minmax(0, 1fr)); }
}
/* ==========================================================================
   Hero Header Section (images/back.jpg の美化 & 文字視認性確保)
   ========================================================================== */
.hero-section {
    position: relative !important;
    padding: 100px 20px !important;
    text-align: center !important;
    
    /* 他のスタイルシートや古い記述に上書きされないよう !important を付与 */
    background-image: linear-gradient(rgba(15, 15, 15, 0.65), rgba(20, 20, 20, 0.85)), 
                      url('../images/back.jpg') !important;
    
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    color: #ffffff !important;
    border-bottom: 2px solid #3a311c !important;
}
/* タイトルとサブタイトルの文字ドロップシャドウでさらに視認性UP */
#main-title {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
    color: #ffffff;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

#main-subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    max-width: 700px;
    margin: 0 auto 30px auto;
    color: #e0e0e0;
    line-height: 1.6;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* ==========================================================================
   Results Header & Near Me Button Layout
   ========================================================================== */
/* カウンターとNear Meボタンが並ぶヘッダー部分のレイアウト */
.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* カウンター自体の基本装飾 */
#counter {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
}

/* JavaScriptで動的生成されるNear Meボタンのベース配置クラス */
.nearme-btn {
    /* 基本スタイルはJSのObject.assignで上書きされますが、
       フォントや崩れ防止のためにベースを定義 */
    font-family: inherit;
    outline: none;
    user-select: none;
}

/* 画面が狭いスマホ用のレスポンシブ調整 */
@media (max-width: 768px) {
    #main-title {
        font-size: 2rem;
    }
    .hero-section {
        padding: 60px 20px;
    }
    .results-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .nearme-btn {
        margin-left: 0 !important; /* スマホ時は左寄せ */
        width: 100%; /* スマホ時は押しやすいよう横幅いっぱいに */
    }
}
@media (max-width: 768px) {
    /* 💻 ヘッダー看板エリア（スマホ時は全体をコンパクトに） */
    .main-header {
        padding: 20px 15px 15px 15px !important; /* 上下の余白を大幅に縮小 */
        margin-bottom: 15px !important;
    }
    
    /* 💡 背景画像エリア（hero-section）のスマホ用余白をタイトに */
    .hero-section {
        padding: 35px 15px 25px 15px !important; /* 縦幅をスマートに変更 */
    }

    /* タイトル文字を少し小さくして1〜2行に収める */
    #main-title {
        font-size: 1.5rem !important;
        margin-bottom: 6px !important;
    }

    /* サブタイトルも文字を小さく、余白を詰める */
    #main-subtitle {
        font-size: 0.85rem !important;
        margin-bottom: 15px !important;
        line-height: 1.4 !important;
    }

    /* 検索ボックスの高さと文字サイズを微調整 */
    .search-container {
        margin-bottom: 12px !important;
    }
    #search-input {
        height: 38px !important;
        font-size: 0.85rem !important;
        padding: 8px 15px 8px 38px !important;
    }
    .search-icon {
        left: 12px !important;
    }

    /* 家賃フィルタースライダーを横並びのままコンパクトに */
    .price-filter-container {
        flex-direction: row !important; /* 縦並びにならず、1行でスッキリ配置 */
        justify-content: center !important;
        gap: 10px !important;
        margin-top: 5px !important;
    }
    .filter-label {
        font-size: 0.8rem !important;
    }
    #price-range {
        width: 110px !important; /* スライダーを少し短く */
    }
    #price-display {
        font-size: 0.8rem !important;
        min-width: 65px !important;
    }

    /* 💡 エリアフィルタータブ：1ボタン1行で押しやすさをキープしつつ、隙間を微調整 */
    .area-filter-tabs {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 5px !important;
        padding: 0 15px !important;
        margin: 15px auto !important;
    }
    .area-filter-tabs .area-btn {
        width: 100% !important;
        height: 34px !important; /* ボタンの高さを少し低く */
        padding: 6px 12px !important;
        font-size: 0.8rem !important;
    }

    /* 結果ヘッダーとNear Meボタンの調整 */
    .results-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
        padding: 0 15px !important;
    }
    .nearme-btn {
        margin-left: 0 !important;
        width: 100% !important;
    }
}