.z-slider {
    overflow: hidden;
    width: 100%;
    position: relative;
    height: 0;
    padding-bottom: 56.25%;
}



/* PCの場合、高さを固定して下部コンテンツを表示 */
@media screen and (min-width: 970px) {
    .z-slider {
        max-width: 970px;
        margin: 0 auto;
        height: calc(100vh - 50px - 288px);
        max-height: 546px;
        /* 16:9比率で適切な最大高さを設定 */
        padding-bottom: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* 16:9と4:3のアスペクト比に対応 */
    .z-slider__slide {
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        overflow: hidden;
    }

    /* 光彩を表示するための疑似要素 */
    .z-slider__slide .glow-effect {
        position: absolute;
        top: -5%;
        left: -5%;
        width: 110%;
        height: 110%;
        z-index: -1;
        filter: blur(30px);
        opacity: 0.6;
        transition: background 0.5s ease-in-out;
        border-radius: 20px;
        /* 光彩の角を柔らかく */
    }
}

.z-slider__slide {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity .3s ease-in-out;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 0;
}

.z-slider__slide:hover {
    cursor: pointer;
}

.z-slider__slide::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    mix-blend-mode: screen;
    filter: blur(5px) brightness(1.2);
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.z-slider__slide:hover::before {
    opacity: 1;
}

.z-slider__slide img,
.z-slider__slide video {
    opacity: 1;
    object-fit: contain;
    width: 100%;
    height: 100%;
    max-height: 100%;
    max-width: 100%;
}

.z-slider__slide.active {
    opacity: 1;
    z-index: 1;
}

.z-slideDots {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.z-slideDots__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #3e4751;
    margin: 0 7px;
    transition: .3s;
    opacity: 50%;
    cursor: pointer;
}

.z-slideDots__dot:hover {
    opacity: 100%;
}

.z-slideDots__dot.active {
    opacity: 100%;
    background: #f2f2f2;
    filter: drop-shadow(0 0 5px white);
}

/* タブレット向けの設定 */
@media screen and (max-width: 969px) and (min-width: 688px) {
    .z-slider {
        width: 100%;
        max-width: 100%;
        height: 0;
        padding-bottom: 56.25%;
        /* 16:9比率を維持 */
        background-color: #000;
        /* スライド背景色（任意） */
    }

    .z-slider__slide img,
    .z-slider__slide video {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        margin: auto;
    }
}

/* SP向けの設定 */
@media screen and (max-width: 687px) {
    .z-slider {
        width: 100%;
        max-width: 100%;
        height: 0;
        padding-bottom: 56.25%;
        /* 16:9比率を維持 */
        background-color: #000;
        /* スライド背景色（任意） */
    }

    .z-slider__slide img,
    .z-slider__slide video {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        margin: auto;
    }
}