.z-slider {
    overflow: hidden;
    width: 100%;
    position: relative;
    max-height: 545.625px;
    padding-bottom: 56.25%;
    background-color: #000;
}

.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: cover;
    /* contain から cover に変更 */
    width: 100%;
    height: 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);
}

/* PCの場合、高さを固定して下部コンテンツを表示 */
@media screen and (min-width: 970px) {
    .z-slider {
        width: 100%;
        max-width: 970px;
        margin: 0 auto;
        height: calc(100vh - 50px - 288px);
        min-height: 546px;
        /* max-height から min-height に変更 */
        padding-bottom: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .z-slider__slide {
        width: 100%;
        height: 100%;
        overflow: hidden;
        /* オーバーフローを隠す */
    }

    /* PCサイズでは画像・動画が画面いっぱいに表示されるよう調整 */
    .z-slider__slide img,
    .z-slider__slide video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        /* 画像・動画がスライダーいっぱいに表示され、必要に応じてトリミング */
        object-position: center;
        /* 中央に配置 */
    }
}

/* タブレット向けの設定 */
@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比率を維持 */
    }
}

/* SP向けの設定 */
@media screen and (max-width: 687px) {
    .z-slider {
        width: 100%;
        max-width: 100%;
        height: 0;
        padding-bottom: 56.25%;
        /* 16:9比率を維持 */
    }
}