@charset "utf-8";

html{
    overscroll-behavior-y: none;
}

main{
    height: 100dvh;
}

.container_image{
    width: 100vw;
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow-y: hidden;
    overflow-x: hidden;
}

#image {
    width: auto;
    height: 100vh;
    background-color: #000;
    transition: opacity 1s ease-in-out;
    z-index: -999;
}
.fade-out {
  opacity: 0;
}

.fade-in {
  opacity: 1;
}

/* pc */
@media screen and (min-width:1024px) {
.container_image{
    width: 100vw;
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: hidden;
}
#image {
    width: 100vw;
    height: auto;
    transition: opacity 1s ease-in-out;
    background-color: #000;
}
}

/* ipad */
@media screen and (min-width:768px) and ( max-width:1024px) {
.container_image{
    width: 100vw;
    height: 100dvh;
}
#image {
    width: auto;
    height: 100vh;
}

}

 /* デバイス横向き */
@media screen and (min-width: 667px) and (max-width: 1024px) and (orientation: landscape) {
#image {
    width: 100vw;
    height: auto;
}

}