
/* カルーセルセクション */
.carousel-section {
    text-align: center;
    margin-top: 2rem;
    position: relative;
    padding: 0 0px 3rem 0px; /* 下部にページネーション用の余白を増やす */
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    overflow:hidden;
}

/* Swiper コンテナ */
.swiper {
    width: 85%;
    margin: 0 auto;
    position: relative;
    overflow:visible;
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: 16/9;
    border-radius: 0;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ナビゲーションボタンのカスタマイズ */
.carousel-section {
    position: relative;
}

.swiper {
    position: relative;
}

.swiper-button-next,
.swiper-button-prev {
    position: absolute !important;
    top: 50% !important; /* Swiperコンテナの中央（画像の上下中央） */
    transform: translateY(-50%) !important;
    width: 4vw !important;
    height: 4vw !important;
    transition: all 0.3s ease !important;
    margin-top: 0 !important;
    z-index: 100 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 4vw !important;
    color: #333 !important;
    font-weight: bold !important;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    transform: translateY(-50%) scale(1.3) !important;
}

/* ボタンを画像の両隣に配置 */
.swiper-button-next {
    right: -5vw !important; /* 画像の右外側に配置 */
}

.swiper-button-prev {
    left: -5vw !important; /* 画像の左外側に配置 */
}

/* ページネーション */
.swiper-pagination {
    position: absolute !important;
    bottom: 0.5rem !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: auto !important; /* 自動幅に変更 */
    min-width: 15vw !important; /* 最小幅を画面幅の15%に設定 */
    max-width: 80vw !important; /* 最大幅を画面幅の80%に設定 */
    height: auto !important; /* 自動高さに変更 */
    text-align: center !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0.2vw !important; /* 画面幅に応じたギャップ */
    z-index: 50 !important;
    background-color: rgba(255, 255, 255, 0.1) !important; /* デバッグ用背景 */
    border-radius: 1.5vw !important; /* 画面幅に応じた角丸 */
    padding: 0.5vw !important; /* 画面幅に応じたパディング */
}

.swiper-pagination-bullet {
    width: 0.8vw !important; /* 画面幅の1.2%に設定 */
    height: 0.8vw !important; /* 画面幅の1.2%に設定 */
    min-width: 6px !important; /* 最小サイズを設定 */
    min-height: 6px !important; /* 最小サイズを設定 */
    max-width: 12px !important; /* 最大サイズを設定 */
    max-height: 12px !important; /* 最大サイズを設定 */
    background-color: #ccc !important;
    opacity: 1 !important;
    transition: all 0.3s ease !important;
    border-radius: 50% !important;
    display: inline-block !important;
    cursor: pointer !important;
    margin: 0 0.2vw !important; /* 画面幅に応じたマージン */
    flex-shrink: 0 !important; /* 縮小を防ぐ */
}

.swiper-pagination-bullet-active {
    background-color: #333 !important;
    transform: scale(1.2) !important;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {

}