/* スライダーコンテナのスタイル */

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

.fade-container {
    position: relative;
    width: 100%;
    /*margin: 0 auto 40px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);*/
    aspect-ratio: 3000/960;
    z-index: 10;
    
}

/* スライダー本体のスタイル */
.cross-fader {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: visible; /* hidden から visible に変更 */
}

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

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

/*#slide5::before, #slide6::before, #slide7::before, #slide8::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw; 
    height: 100%;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}*/


/* 背景画像の設定 */
#slide5::before {
    background: url('../img/index34_L.png');content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw; /* ビューポート幅いっぱいに */
    height: 100%;
    background-repeat: no-repeat;
    background-size: 100%;
    background-position: center center;
    
}

#slide6::before {
    background: url('../img/index20_L.png');content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw; /* ビューポート幅いっぱいに */
    height: 100%;
    background-repeat: no-repeat;
    background-size: 100%;
    background-position: center center;
    
}

#slide7::before {
    background: url('../img/index35_L.png');content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw; /* ビューポート幅いっぱいに */
    height: 100%;
    background-repeat: no-repeat;
    background-size: 100%;
    background-position: center center;
   
}

#slide8::before {
    background: url('../img/index22_L.png');content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw; /* ビューポート幅いっぱいに */
    height: 100%;
    background-repeat: no-repeat;
    background-size: 100%;
    background-position: center center;
    
}

#slide9::before {
    background: url('../img/index04_L.png');content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw; /* ビューポート幅いっぱいに */
    height: 100%;
    background-repeat: no-repeat;
    background-size: 100%;
    background-position: center center;
}

#slide10::before {
    background: url('../img/index07_L.png');content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw; /* ビューポート幅いっぱいに */
    height: 100%;
    background-repeat: no-repeat;
    background-size: 100%;
    background-position: center center;
}

#slide11::before {
    background: url('../img/index32_L.png');content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw; /* ビューポート幅いっぱいに */
    height: 100%;
    background-repeat: no-repeat;
    background-size: 100%;
    background-position: center center;
}

#slide12::before {
    background: url('../img/index16_L-reverse.png');content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw; /* ビューポート幅いっぱいに */
    height: 100%;
    background-repeat: no-repeat;
    background-size: 100%;
    background-position: center center;
} 


}

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

.fade-container {
    position: relative;
    width: 100%;
    /*margin: 0 auto 40px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);*/
    aspect-ratio: 960/640;
    z-index: 10;
    
}

/* スライダー本体のスタイル */
.cross-fader {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: visible; /* hidden から visible に変更 */
}

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

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

/*#slide5::before, #slide6::before, #slide7::before, #slide8::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw; 
    height: 100%;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}*/


/* 背景画像の設定 */
#slide5::before {
    background: url('../img/index06_M.jpg');content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw; /* ビューポート幅いっぱいに */
    height: 100%;
    background-repeat: no-repeat;
    background-size: 100%;
    background-position: center center;
    
}

#slide6::before {
    background: url('../img/index20_M.jpg');content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw; /* ビューポート幅いっぱいに */
    height: 100%;
    background-repeat: no-repeat;
    background-size: 100%;
    background-position: center center;
    
}

#slide7::before {
    background: url('../img/index35_M.jpg');content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw; /* ビューポート幅いっぱいに */
    height: 100%;
    background-repeat: no-repeat;
    background-size: 100%;
    background-position: center center;
   
}

#slide8::before {
    background: url('../img/index22_M.jpg');content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw; /* ビューポート幅いっぱいに */
    height: 100%;
    background-repeat: no-repeat;
    background-size: 100%;
    background-position: center center;
    
}

#slide9::before {
    background: url('../img/index04_M.jpg');content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw; /* ビューポート幅いっぱいに */
    height: 100%;
    background-repeat: no-repeat;
    background-size: 100%;
    background-position: center center;
}

#slide10::before {
    background: url('../img/index07_M.jpg');content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw; /* ビューポート幅いっぱいに */
    height: 100%;
    background-repeat: no-repeat;
    background-size: 100%;
    background-position: center center;
}

#slide11::before {
    background: url('../img/index32_M.jpg');content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw; /* ビューポート幅いっぱいに */
    height: 100%;
    background-repeat: no-repeat;
    background-size: 100%;
    background-position: center center;
}

#slide12::before {
    background: url('../img/index16_M.jpg');content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw; /* ビューポート幅いっぱいに */
    height: 100%;
    background-repeat: no-repeat;
    background-size: 100%;
    background-position: center center;
}





} 