
@media screen and (max-width:3000px){

/* スライダーコンテナのスタイル */
.cross-container {
    position: relative;
    max-width: 3000px;
    /*margin: 0 auto 40px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);*/
    aspect-ratio: 3000/1250;
    z-index: 10;
}

/* スライダー本体のスタイル */
.cross-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* 各スライドのスタイル */
.cross-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.cross-slide.active {
    opacity: 1;
}

/* 背景画像の設定 */
#slide1 {
    background: url('../img/index16_L.png') no-repeat;
    background-size: cover;
}

#slide2 {
    background: url('../img/index17_L.png') no-repeat;
    background-size: cover;
}

#slide3 {
    background: url('../img/index18_L.png') no-repeat;
    background-size: cover;
}

#slide4 {
    background: url('../img/index19_L.png') no-repeat;
    background-size: cover;
}

}

@media screen and (max-width:768px){

/* スライダーコンテナのスタイル */
.cross-container {
    position: relative;
    max-width: 3000px;
    /*margin: 0 auto 40px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);*/
    aspect-ratio: 960/640;
    z-index: 10;
}

/* スライダー本体のスタイル */
.cross-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* 各スライドのスタイル */
.cross-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.cross-slide.active {
    opacity: 1;
}

/* 背景画像の設定 */
#slide1 {
    background: url('../img/index16_M.jpg') no-repeat;
    background-size: cover;
}

#slide2 {
    background: url('../img/index17_M.jpg') no-repeat;
    background-size: cover;
}

#slide3 {
    background: url('../img/index18_M.jpg') no-repeat;
    background-size: cover;
}

#slide4 {
    background: url('../img/index19_M.jpg') no-repeat;
    background-size: cover;
}

}  