/* ランダムフェード全体 */

.random-fade {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
}

/* 各画像のリンク */

.random-fade__slide {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 0;
    pointer-events: none;
    transition: opacity 1.5s ease-in-out;
}

/* 表示中の画像 */

.random-fade__slide.is-active {
    opacity: 1;
    z-index: 1;
    pointer-events: auto;
    cursor: pointer;
}

/* アイキャッチ画像 */

.random-fade__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 動きを抑える設定 */

@media (prefers-reduced-motion: reduce) {
    .random-fade__slide {
        transition: none;
    }
}