/* --- スライダー基本スタイル --- */
.swiper-instance {
    width: 1100px;
    margin: 0 auto 80px;
    position: relative;
}

.swiper-slide {
    /* spaceBetween in JS handles spacing, but this can help with alignment */
    box-sizing: border-box;
}

.swiper-slide img {
    width: 100%;
    height: auto;
    display: block;
    /* Fixes potential bottom space */
}

/* Swiper navigation disabled state */
.swiper-button-disabled {
    opacity: 0.3;
    cursor: default;
}

/* --- ここからコントロール関連のスタイル --- */
.swiper-controls-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
    justify-content: center;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.swiper-pagination {
    position: static;
    display: flex;
    gap: 5px;
    order: 3;
    width: auto !important;
    flex-wrap: wrap;
    row-gap: 15px;
}

.swiper-pagination-bullet {
    height: 10px;
    background-color: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    width: 30px;
    margin: 0 !important;
    /* Override Swiper default */
    opacity: 1 !important;
    /* Override Swiper default */
}

.swiper-pagination-bullet:hover {
    opacity: 0.8 !important;
}

.swiper-pagination-bullet-active {
    background-color: #EC9600 !important;
}

.swiper-pagination-bullet .progress-fill {
    width: 0;
    height: 100%;
    background-color: #555;
    transition: width 0.1s linear;
}

/* Common button styles */
.swiper-button-prev,
.swiper-button-next,
.play-pause-btn {
    position: static;
    /* Override Swiper's default */
    margin: 0;
    width: 30px;
    height: 30px;
    padding: 0;
    border: none;
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    cursor: pointer;
    flex-shrink: 0;
}

/* Hide Swiper's default arrow icons */
.swiper-button-prev::after,
.swiper-button-next::after {
    display: none;
}

.swiper-button-prev {
    background-image: url('/img/top/btn-prev.png');
    order: 1;
}

.swiper-button-next {
    background-image: url('/img/top/btn-next.png');
    order: 4;
}

.play-pause-btn {
    order: 2;
}

.swiper-button-prev:hover,
.swiper-button-next:hover,
.play-pause-btn:hover {
    background-color: transparent;
}

.play-pause-btn .icon {
    display: none;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.play-pause-btn .play-icon {
    background-image: url('/img/top/btn-play.png');
}

.play-pause-btn .pause-icon {
    background-image: url('/img/top/btn-stop.png');
}

.swiper-instance.is-paused .play-pause-btn .play-icon {
    display: block;
}

.swiper-instance:not(.is-paused) .play-pause-btn .pause-icon {
    display: block;
}

.play-pause-btn {
    position: relative;
    z-index: 11;
    cursor: pointer;
    touch-action: manipulation;
}


@media (max-width: 768px) {
    .swiper-instance {
        width: 100%;
        margin-bottom: 40px;
    }

    .swiper-button-prev,
    .swiper-button-next,
    .play-pause-btn {
        width: 30px;
        height: 30px;
    }

    .swiper-controls-wrapper {
        gap: 10px;
        padding: 0 20px;
    }
}


/* 追加2026年1月9日 */
/* PC表示でスライドが足りている（クリック不要な）時にボタンを隠す */
.swiper-button-prev.swiper-button-lock,
.swiper-button-next.swiper-button-lock,
.swiper-pagination-lock,
.swiper-instance:has(.swiper-button-lock) .play-pause-btn {
    display: none;
}