/* メインスライダー */
.main-swiper {
    width: 1000px;
    height: 520px;
    margin: 0 auto;
}

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

/* サムネイルスライダー */
.thumb-swiper {
    width: 1000px;
    margin: 20px auto 0;
    height: auto;
    position: relative;
}

.thumb-swiper .swiper-slide {
    width: 260px;
    height: 146px;
    opacity: 0.4;
    cursor: pointer;
    flex-shrink: 0;
    transition: opacity 0.3s;
}

.thumb-swiper .swiper-slide-thumb-active {
    opacity: 1;
}

.thumb-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

/* ナビゲーションボタン共通 */
.thumb-swiper .swiper-button-prev,
.thumb-swiper .swiper-button-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.7);
    color: #000;
    z-index: 9000;
    /* 最前面に */
    cursor: pointer;
    border: 1px solid #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    user-select: none;
}

.thumb-swiper .swiper-button-prev {
    left: 0;
    top: 125px;

    &::after {
        display: none;
    }
}

.thumb-swiper .swiper-button-next {
    right: 0;
    top: 125px;

    &::after {
        display: none;
    }
}

/* ナビゲーションの無効化状態を無視して強制表示 */
.thumb-swiper .swiper-button-prev.swiper-button-disabled,
.thumb-swiper .swiper-button-next.swiper-button-disabled {
    opacity: 1 !important;
    pointer-events: auto !important;
    cursor: pointer;
}

/*************************************************************************************************************/
@media screen and (max-width:600px) {

    /* メインスライダー（アスペクト比 1000:520 = 52%） */
    .main-swiper {
        width: 100%;
        max-width: 1000px;
        margin: 0 auto;
        position: relative;
        padding-top: 52%;
        height: 0;
        overflow: hidden;
    }

    .main-swiper > .swiper-wrapper {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        height: 100%;
    }

    .main-swiper .swiper-slide {
        width: 100%;
        height: 100%;
    }

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

    .thumb-swiper {
        width: 100%;
        margin: 20px auto 0;
        height: auto;
        position: relative;
    }

    .thumb-swiper .swiper-slide {
        width: 130px;
        height: 73px;
        opacity: 0.4;
        cursor: pointer;
        flex-shrink: 0;
        transition: opacity 0.3s;
    }

    .thumb-swiper .swiper-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        border-radius: 8px;
    }

    .thumb-swiper .swiper-button-prev,
    .thumb-swiper .swiper-button-next {
        position: absolute;
        top: 80px;
        transform: translateY(-50%);
        width: 20px;
        height: 20px;
        background: rgba(255, 255, 255, 0.7);
        color: #000;
        z-index: 9000;
        cursor: pointer;
        border: 1px solid #000;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        user-select: none;
    }

    .thumb-swiper .swiper-button-prev {
        left: 0;
    }

    .thumb-swiper .swiper-button-next {
        right: 0;
    }

    /* ::after を正しく指定（ネスト記法なし） */
    .thumb-swiper .swiper-button-prev::after,
    .thumb-swiper .swiper-button-next::after {
        display: none;
    }
}
