/**
 * ReOffice バナーカルーセル共通スタイル
 * メインサイトとWordPressで共通使用
 */

.reoffice-banner-carousel {
    width: 100%;
    margin: 20px 0;
}

.banner-carousel-wrapper {
    display: flex;
    gap: 15px;
    overflow: visible;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 30px 0 10px 0;
    -webkit-overflow-scrolling: touch;
}

.banner-item {
    flex-shrink: 0;
    min-width: 400px;
    max-width: 500px;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.banner-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.banner-swiper {
    padding: 20px 0 !important;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.banner-swiper.swiper-initialized {
    opacity: 1;
}

/* Swiper内のバナーアイテムのホバーエフェクト */
.banner-swiper .swiper-slide:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.banner-item a {
    display: block;
    text-decoration: none;
    overflow: hidden;
}

.banner-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 1.91 / 1;
    object-fit: cover;
    display: block;
}

/* Column画面用のSwiper設定 */
.reoffice-banner-carousel[data-location="column"] {
    margin: 0;
    background: #f8f9fa;
    padding: 40px 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
}

.banner-swiper {
    width: 100%;
    overflow: visible;
    padding: 30px 0 10px 0;
}

.banner-swiper .swiper-wrapper {
    align-items: center;
}

.banner-swiper .swiper-slide {
    width: 400px;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.banner-slide a {
    display: block;
    text-decoration: none;
    overflow: hidden;
}

.banner-slide img {
    width: 100%;
    height: auto;
    aspect-ratio: 1.91 / 1;
    object-fit: cover;
    display: block;
}

/* Swiperページネーション（インジケーター）のカスタマイズ */
.banner-pagination {
    position: static !important;
    margin-top: 15px;
    text-align: center;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    width: auto !important;
}

.banner-pagination .swiper-pagination-bullet {
    width: 12px !important;
    height: 12px !important;
    background: rgba(0, 0, 0, 0.3) !important;
    opacity: 1 !important;
    margin: 0 4px !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
}

.banner-pagination .swiper-pagination-bullet-active {
    background: #39A79C !important;
    transform: scale(1.2) !important;
}

/* Home画面用のスタイル調整 */
.reoffice-banner-carousel[data-location="home"] {
    margin: 30px 0;
}


.reoffice-banner-carousel[data-location="home"] .banner-item {
    min-width: 320px;
}

/* スクロールバーのスタイル調整 */
.banner-carousel-wrapper::-webkit-scrollbar {
    height: 6px;
}

.banner-carousel-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.banner-carousel-wrapper::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.banner-carousel-wrapper::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .banner-carousel-wrapper {
        gap: 10px;
        padding: 10px 0 5px 0;
    }

    .banner-item {
        min-width: 320px;
        max-width: 350px;
    }

    .reoffice-banner-carousel[data-location="column"] {
        padding: 30px 0;
    }

    .banner-swiper .swiper-slide {
        width: 320px;
    }

    .reoffice-banner-carousel[data-location="home"] {
        margin: 20px 0;
    }
}

@media (max-width: 480px) {
    .banner-carousel-wrapper {
        gap: 8px;
    }

    .banner-item {
        min-width: 280px;
        max-width: 300px;
    }

    .reoffice-banner-carousel[data-location="column"] {
        padding: 20px 0;
    }

    .banner-swiper .swiper-slide {
        width: 280px;
    }
}


/* 既存のbottom-bannerセクションとの調和 */
.reoffice-banner-carousel.home-banners {
    background: none;
    padding: 0;
    margin: 0;
}

.reoffice-banner-carousel.home-banners .banner-carousel-wrapper {
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.reoffice-banner-carousel.home-banners .banner-item {
    flex-shrink: 1;
    min-width: 300px;
    max-width: calc(50% - 10px);
}

@media (max-width: 768px) {
    .reoffice-banner-carousel.home-banners .banner-item {
        max-width: 100%;
        min-width: 100%;
    }
}

/* Column画面のヘッダー直下用調整（blog-wrapper外） */

