/* ==========================================================
   KLWAIRB/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; /* 高級感のある深いビターブラウン */
    padding-top: 0;
}

/* 💻 パソコン表示のヘッダー看板エリア */
.main-header {
    text-align: center;
    padding: 80px 20px 60px 20px; 
    margin: 0 auto 30px auto; 
    max-width: 1100px;
    border-radius: 12px;
    position: relative; 
    overflow: hidden;
    display: block;
    background-image: url('../images/back.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: overlay;
    background-color: rgba(255, 254, 252, 0.75); /* 日中のまばゆい光を表現する明るいオーバーレイ */
    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.4rem;
    font-weight: 700;
    color: #1a1817;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

#main-subtitle {
    font-size: 1rem;
    color: #6b6561;
    max-width: 650px;
    margin: 0 auto 30px 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.8);
    padding: 4px;
    border-radius: 20px;
    border: 1px solid rgba(197, 160, 89, 0.2);
    backdrop-filter: blur(4px);
}

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

.lang-btn:hover {
    color: #1a1817;
}

.lang-btn.active {
    background: #c5a059; /* 上品なシャンパンゴールド */
    color: #ffffff !important;
}

/* 🔍 検索・コントロールエリア全体 */
.search-container {
    max-width: 800px;
    margin: 25px auto 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    width: 100%;
    box-sizing: border-box;
}

.search-box-wrapper {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #c5a059; 
    font-size: 0.95rem;
    pointer-events: none;
}

#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;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    box-sizing: border-box;
}

#search-input:focus {
    border-color: #c5a059; 
    background-color: #ffffff;
    outline: none;
    box-shadow: 0 0 8px rgba(197, 160, 89, 0.25);
}

.control-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
}

.btn-nearme {
    background: #ffffff;
    border: 1px solid #e1deda;
    color: #6b6561;
    padding: 0 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    height: 44px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    box-sizing: border-box;
}

.btn-nearme:hover {
    background: #fdfcfb;
    color: #1a1817;
    border-color: #c5a059;
}

.btn-nearme.active {
    background: #2da74e;
    border-color: #2da74e;
    color: #fff;
}

/* 🗺️ エリアフィルターボタン群 (デフォルト: 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;
    box-sizing: border-box;
    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.9rem;
    transition: all 0.2s ease;
    white-space: nowrap;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.01);
}

.area-filter-tabs .area-btn:hover {
    background-color: #fdfcfb;
    color: #1a1817;
    border-color: #c5a059;
}

.area-filter-tabs .area-btn.active {
    background-color: #c5a059; 
    color: #ffffff !important;
    border-color: #c5a059;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(197, 160, 89, 0.2);
}

/* 📊 検索結果カウンター */
.results-header {
    max-width: 1100px;
    margin: 0 auto 15px auto;
    padding: 0 10px;
}

.results-counter {
    font-size: 0.9rem;
    color: #8c837e;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* 🏢 コンドミニアム グリッド配置 */
.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 10px;
}

.condo-card {
    background: #ffffff; 
    border: 1px solid #e8e5e1;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(160, 150, 140, 0.04);
}

.condo-card:hover {
    border-color: rgba(197, 160, 89, 0.5); 
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(197, 160, 89, 0.1);
}

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

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

.card-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    align-items: center;
    flex-wrap: wrap;
}

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

.distance-badge {
    background: rgba(45, 167, 78, 0.08);
    color: #2da74e;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.info-label {
    color: #8c837e;
}

.price-text {
    font-weight: 700;
    color: #b28739; 
}

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

.feat-tag {
    background: rgba(0, 102, 204, 0.06);
    color: #0066cc;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* 🗺️ カード底部のボタンエリア */
.card-footer-links {
    padding: 15px 20px;
    background: #faf8f5; 
    border-top: 1px solid #e8e5e1;
}

.map-links {
    display: flex;
    gap: 10px;
}

.map-btn {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: opacity 0.2s;
}

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

.map-btn.gmaps {
    background: #2a5cb3; 
    color: #ffffff;
}

.map-btn.waze {
    background: #1ca2cc; 
    color: #ffffff;
}

.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.4rem;
    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;
    color: #4a4542;
    text-align: left;
    padding: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s, color 0.2s;
}

.faq-question:hover {
    background: #faf8f5;
    color: #1a1817;
}

.faq-question::after {
    content: '\2b';
    font-size: 1.1rem;
    color: #8c837e;
    transition: transform 0.2s;
}

.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: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.2s, opacity 0.2s;
}

.share-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.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: 80px;
    background-color: #1a1817;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -40px;
    opacity: 0;
    transition: opacity 0.2s;
    font-size: 0.75rem;
    font-weight: 600;
}

.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: 30px 20px;
    color: #8c837e;
    font-size: 0.8rem;
    border-top: 1px solid #e8e5e1;
    width: 100%;
}

/* 📱 画面レスポンシブ対応 (全エラー箇所を修正済み) */
@media (max-width: 992px) {
    .condo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: 60px 15px 30px 15px !important;
        margin: 0 10px 20px 10px !important;
    }
    #main-title { font-size: 1.6rem; }
    #main-subtitle { font-size: 0.85rem; margin-bottom: 20px; }
    
    .search-container {
        flex-direction: column;
        gap: 12px;
    }
    .search-box-wrapper {
        width: 100%;
    }
    .control-row {
        width: 100%;
        justify-content: center;
    }
    .btn-nearme {
        width: 100%;
        justify-content: center;
    }

    /* 💡 モバイル最優先：絶対に崩れない縦1列に強制変更 */
    .area-filter-tabs {
        display: flex !important;
        flex-direction: column !important; /* 縦並び */
        flex-wrap: nowrap !important;
        justify-content: center !important;
        align-items: stretch !important;  /* 横幅いっぱいに広げる */
        gap: 8px !important;
        margin: 15px auto !important;
        padding: 0 15px !important;
    }

    .area-filter-tabs .area-btn {
        width: 100% !important; /* ボタン幅をスマホ画面いっぱいに */
        flex: 1 0 auto !important;
        text-align: center !important;
    }
}

@media (max-width: 600px) {
    .condo-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
        gap: 20px;
    }
}