/* ショールーム連動マップのレイアウト設定 */

#contentsblock .showroom-map-section {
    padding: 60px 0;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e2e8f0;
}

#contentsblock .showroom-map-layout {
    display: flex;
    gap: 30px;
    height: 700px;
    max-height: 80vh;
}

/* 左カラム：マップ連動用店舗リスト（写真なし、BYD風） */
#contentsblock .showroom-list-side {
    flex: 0 0 380px;
    width: 380px;
    overflow-y: auto;
    padding-right: 12px;
    height: 100%;
    box-sizing: border-box;
}

/* スクリールバーのカスタムデザイン */
#contentsblock .showroom-list-side::-webkit-scrollbar {
    width: 6px;
}

#contentsblock .showroom-list-side::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

#contentsblock .showroom-list-side::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

#contentsblock .showroom-list-side::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* マップ横 写真なし店舗カードスタイル */
.map-store-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    box-sizing: border-box;
}

.map-store-card:hover {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.map-store-card.is-active {
    border-color: #2c3e50;
    background-color: #f7fafc;
    box-shadow: 0 0 0 4px rgba(44, 62, 80, 0.12);
}

.map-store-card__title {
    font-size: 1.3rem !important;
    /* フォントサイズを一回り大きく */
    font-weight: 700 !important;
    color: #1a202c !important;
    margin: 0 0 10px 0 !important;
    line-height: 1.4 !important;
}

.map-store-card__copy {
    font-size: 1.0rem !important;
    /* 住所フォントサイズを大きく調整 */
    color: #4a5568 !important;
    line-height: 1.7 !important;
}

.map-store-card__copy .tel-link {
    color: #1a73e8 !important;
    font-weight: 700;
    text-decoration: none;
    font-size: 1.05rem !important;
}

.map-store-card__copy .tel-link:hover {
    text-decoration: underline;
}

.map-store-card__action {
    margin-top: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.map-store-card__buttons {
    display: flex;
    gap: 10px;
    flex-grow: 1;
}

.map-store-card__btn-web,
.map-store-card__btn-contact {
    padding: 10px 16px !important;
    font-size: 0.9rem !important;
    border-radius: 8px;
    text-decoration: none !important;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    box-sizing: border-box;
    flex: 1;
}

.map-store-card__btn-web {
    background: #edf2f7;
    color: #2d3748 !important;
    border: 1px solid #e2e8f0;
    text-decoration: none !important;
}

.map-store-card__btn-web:hover {
    background: #e2e8f0;
    color: #2d3748 !important;
    text-decoration: none !important;
}

.map-store-card__btn-contact {
    background: #2c3e50;
    color: #ffffff !important;
    border: 1px solid #2c3e50;
    text-decoration: none !important;
}

.map-store-card__btn-contact:hover {
    background: #1a252f;
    color: #ffffff !important;
    text-decoration: none !important;
    box-shadow: 0 4px 8px rgba(44, 62, 80, 0.15);
}

.map-store-card__sns {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 38px;
    height: 38px;
    background-color: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-sizing: border-box;
}

.map-store-card__sns:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%) !important;
    border-color: transparent !important;
    transform: scale(1.08);
}

.map-store-card__sns-link {
    color: #718096;
    font-size: 1.25rem;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    transition: color 0.3s ease;
}

.map-store-card__sns:hover .map-store-card__sns-link {
    color: #ffffff !important;
}

/* 絞り込み非表示用 */
.map-store-card.is-hidden {
    display: none !important;
}


/* 右カラム：Googleマップ */
#contentsblock .showroom-map-side {
    flex: 1;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
}

#showroom-map {
    width: 100%;
    height: 100%;
}


/* ====================================================
   下部：写真付き店舗一覧グリッド (3カラム / 4カラム構成)
   ==================================================== */

#contentsblock .showroom-showroom {
    padding: 80px 0;
    background-color: #ffffff;
}

#contentsblock .showroom-showroom__area {
    margin-bottom: 60px;
    float: none !important;
    width: 100% !important;
}

#contentsblock .showroom-showroom__area:last-child {
    margin-bottom: 0;
}

#contentsblock .showroom-showroom__area .contentsh2 {
    font-size: 1.8rem !important;
    /* 見出しを大きく */
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid #2c3e50;
    color: #2c3e50;
    float: none !important;
    width: 100% !important;
}

/* 3カラムグリッドレイアウト（標準） */
#contentsblock .showroom-showroom .shopphotolist {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
    padding: 0 !important;
    list-style: none !important;
    float: none !important;
    width: 100% !important;
}

/* 写真付き店舗カード */
#contentsblock .showroom-showroom .shopphotolist__item {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    float: none !important;
    margin: 0 !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02) !important;
    box-sizing: border-box !important;
}

#contentsblock .showroom-showroom .shopphotolist__item:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08) !important;
}

#contentsblock .showroom-showroom .shopphotolist__image {
    width: 100% !important;
    min-width: 100% !important;
    height: 200px !important;
    overflow: hidden !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

#contentsblock .showroom-showroom .shopphotolist__image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.5s ease !important;
}

#contentsblock .showroom-showroom .shopphotolist__item:hover .shopphotolist__image img {
    transform: scale(1.05) !important;
}

#contentsblock .showroom-showroom .shopphotolist__content-wrap {
    padding: 24px !important;
    /* パディングを増やしてゆったりと */
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    flex-grow: 1 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

#contentsblock .showroom-showroom .shopphotolist__title {
    font-size: 1.35rem !important;
    /* フォントサイズアップ */
    font-weight: 700 !important;
    color: #1a202c !important;
    margin: 0 0 10px 0 !important;
    display: block !important;
}

#contentsblock .showroom-showroom .shopphotolist__copy {
    font-size: 1.0rem !important;
    /* 住所フォントサイズアップ */
    color: #4a5568 !important;
    line-height: 1.7 !important;
    display: block !important;
}

#contentsblock .showroom-showroom .tel-link {
    color: #1a73e8 !important;
    font-weight: 700;
    text-decoration: none;
    font-size: 1.05rem !important;
}

#contentsblock .showroom-showroom .tel-link:hover {
    text-decoration: underline;
}

/* 下部店舗カードのアクションエリア（不要なグレー背景と謎の余白を完全削除） */
#contentsblock .showroom-showroom .shopphotolist__action {
    margin-top: 18px !important;
    padding: 0 !important;
    /* main2.cssの16px 20pxをリセット */
    background: transparent !important;
    /* main2.cssの#fafafaを完全クリア */
    border-top: none !important;
    /* 境界線をクリア */
    display: flex !important;
    flex-direction: row !important;
    /* main2.cssのcolumnからrowへ上書き */
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    gap: 12px !important;
}

#contentsblock .showroom-showroom .shopphotolist__buttons {
    display: flex !important;
    gap: 8px !important;
    flex-grow: 1 !important;
}

#contentsblock .showroom-showroom .shopphotolist__btn-web,
#contentsblock .showroom-showroom .shopphotolist__btn-contact {
    padding: 10px 16px !important;
    font-size: 0.9rem !important;
    /* ボタン文字サイズアップ */
    border-radius: 8px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 38px !important;
    flex: 1 !important;
}

#contentsblock .showroom-showroom .shopphotolist__btn-web {
    background: #edf2f7 !important;
    color: #2d3748 !important;
    border: 1px solid #e2e8f0 !important;
    text-decoration: none !important;
}

#contentsblock .showroom-showroom .shopphotolist__btn-web:hover {
    background: #e2e8f0 !important;
    color: #2d3748 !important;
    text-decoration: none !important;
}

#contentsblock .showroom-showroom .shopphotolist__btn-contact {
    background: #2c3e50 !important;
    color: #ffffff !important;
    border: 1px solid #2c3e50 !important;
    text-decoration: none !important;
}

#contentsblock .showroom-showroom .shopphotolist__btn-contact:hover {
    background: #1a252f !important;
    color: #ffffff !important;
    text-decoration: none !important;
    box-shadow: 0 4px 10px rgba(44, 62, 80, 0.15) !important;
}

#contentsblock .showroom-showroom .shopphotolist__sns {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 38px !important;
    height: 38px !important;
    background-color: #f7fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
    flex-shrink: 0 !important;
}

#contentsblock .showroom-showroom .shopphotolist__sns:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%) !important;
    border-color: transparent !important;
    transform: scale(1.08) !important;
}

#contentsblock .showroom-showroom .shopphotolist__sns-link {
    color: #718096 !important;
    font-size: 1.25rem !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    height: 100% !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

#contentsblock .showroom-showroom .shopphotolist__sns:hover .shopphotolist__sns-link {
    color: #ffffff !important;
}

/* 絞り込み非表示用 */
.shopphotolist__item.is-hidden {
    display: none !important;
}


/* ====================================================
   上部フィルター関連
   ==================================================== */

.showroom-brand__listitem a.brand-filter-btn {
    border: 2px solid transparent;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.showroom-brand__listitem a.brand-filter-btn.is-active {
    border-color: #2c3e50;
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.15);
    transform: scale(1.05);
}

/* マップ内カスタムエリアコントロールのスタイル */
.map-area-control-wrapper {
    margin: 10px;
    background: #ffffff;
    padding: 6px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    display: flex;
    gap: 6px;
}

.map-area-btn {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #4a5568;
    padding: 8px 14px;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.map-area-btn:hover {
    background: #f7fafc;
    color: #2d3748;
}

.map-area-btn.is-active {
    background: #2c3e50;
    border-color: #2c3e50;
    color: #ffffff;
}


/* ====================================================
   レスポンシブ対応 ＆ デスクトップ大画面の4列グリッド
   ==================================================== */

@media (min-width: 1200px) {

    /* 画面が大きいときは下部店舗一覧を4列にする */
    #contentsblock .showroom-showroom .shopphotolist {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 24px !important;
    }
}

@media (max-width: 1199px) and (min-width: 992px) {
    #contentsblock .showroom-showroom .shopphotolist {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 991px) and (min-width: 768px) {
    #contentsblock .showroom-showroom .shopphotolist {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 991px) {
    #contentsblock .showroom-map-layout {
        flex-direction: column;
        height: auto;
        max-height: none;
        gap: 20px;
    }

    #contentsblock .showroom-map-side {
        height: 450px;
        order: 1;
        width: 100%;
    }

    #contentsblock .showroom-list-side {
        flex: 1 1 auto;
        width: 100%;
        height: 400px;
        order: 2;
        padding-right: 0;
    }

    #contentsblock .showroom-showroom .shopphotolist {
        grid-template-columns: 1fr !important;
    }
}

/* Instagramアイコンリンクの下線排除および青文字化バグの解消 */
.map-store-card__sns-link,
.map-store-card__sns-link:hover,
#contentsblock .showroom-showroom .shopphotolist__sns-link,
#contentsblock .showroom-showroom .shopphotolist__sns-link:hover {
    text-decoration: none !important;
    border-bottom: none !important;
    color: #718096 !important;
}

/* ホバー時および初期状態でボタン内のロゴ画像・擬似要素アイコン（Audi等）が消えたり反転したりするのを防ぐ */
.map-store-card__btn-web img,
.map-store-card__btn-web:hover img,
.map-store-card__btn-contact img,
.map-store-card__btn-contact:hover img,
#contentsblock .showroom-showroom .shopphotolist__btn-web img,
#contentsblock .showroom-showroom .shopphotolist__btn-web:hover img,
#contentsblock .showroom-showroom .shopphotolist__btn-contact img,
#contentsblock .showroom-showroom .shopphotolist__btn-contact:hover img,
.map-store-card__btn-web::before,
.map-store-card__btn-web:hover::before,
#contentsblock .showroom-showroom .shopphotolist__btn-web::before,
#contentsblock .showroom-showroom .shopphotolist__btn-web:hover::before {
    filter: none !important;
    opacity: 1 !important;
}

/* 左側カードの公式サイトボタン用ブランドロゴ疑似要素 */
.map-store-card[data-brand] .map-store-card__btn-web::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 6px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
    transition: filter 0.2s ease;
}

.map-store-card[data-brand="audi"] .map-store-card__btn-web::before {
    background-image: url("../assets/img/audi-logo-bk-sq.png");
}

.map-store-card[data-brand="vw"] .map-store-card__btn-web::before {
    background-image: url("../assets/img/vw-logo-sq.png");
}

.map-store-card[data-brand="landrover"] .map-store-card__btn-web::before {
    background-image: url("../assets/img/landrover-logo-sq.png");
}

.map-store-card[data-brand="mercedes-benz"] .map-store-card__btn-web::before {
    background-image: url("../assets/img/mb-logo-sq.png");
}

.map-store-card[data-brand="byd"] .map-store-card__btn-web::before {
    background-image: url("../assets/img/byd-logo-bk-sq.png");
}