@charset 'utf-8';
#animation{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 999;
    overflow-y: scroll;
    overscroll-behavior: none;
}
#animation-bg{
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background: url(img/animation/bg.webp) no-repeat center center / cover;
    z-index: 996;
}
.animation-inner{
    height: 500vh;
    position: relative;
}
#animation-rod{
    position: fixed;
    z-index: 998;
    width: 100%;
    top: 0;
    left: 0;
    transform: translateY(-100%);
}
.animation-rod__bg{
    position: absolute;
    top: 67.7%;
    left: 22.7%;
    width: 54.1%;
    height: 24.4%;
    border: 3px solid #003E92;
    border-radius: 40px;
    background: #fff url(img/animation/rod-bg.webp) repeat-y 0 100% / cover;
}
#animation-rod img{
    width: 100%;
}
#animation-material{
    position: fixed;
    transform: translate(-50%,-50%);
    top: 50%;
    left: 50%;
    z-index: 997;
}
.animation-material__img img{
    width: 31.25vw;
}
.animation-material__logo{
    position: absolute;
    width: 60%;
    transform: translateX(-50%);
    left: 50%;
    top: 43%;
    z-index: 1;
}
.animation-material__logo img{
    width: 100%;
}
.animation-material__scroll{
    position: absolute;
    transform: translateX(-50%);
    left: 50%;
    top: 64%;
    z-index: 1;
}
.animation-material__scroll-text{
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    font-family: var(--jakarta);
    color: var(--navy);
}
.animation-material__scroll-text::after{
    content: "";
    width: 22px;
    height: 20px;
    background: url(img/common/scroll-arrow.svg) no-repeat center center / contain;
    margin: 20px auto 0;
    display: block;
    animation: scroll 1.2s infinite;
}
.animation-material__balloon{
    width: 89%;
    position: absolute;
    top: -15%;
    left: -33.3%;
    z-index: 1;
}
.animation-material__balloon img{
    width: 100%;
}

#animation-material.on .animation-material__img img{
    transform: scale(2);
    transition: .8s;
}
#animation-material.on,
#animation-rod.on,
#animation-bg.on,
#animation.on{
    opacity: 0;
    transition: .8s;
}


html{
    overflow: hidden;
}
#loading{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    overflow: hidden;
}
.loading-bg,
.loading-bg span{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.loading-bg span{
    background-color: #fff;
    transition: .2s;
    box-shadow: 60px 60px 40px rgba(5,102,132,.5);
    border-right: 6px solid #003E92;
}
.loading-bg span.n0{
    width: 100%;
    z-index: 4;
    transition-delay: .7s;
    border-right: none;
}
.loading-bg span.n1{
    width: calc(100% - 8vw);
    z-index: 3;
    transition-delay: 1.4s;
}
.loading-bg span.n2{
    width: calc(100% - 15vw);
    z-index: 2;
    transition-delay: 1.9s;
}
.loading-bg span.n3{
    width: calc(100% - 24vw);
    z-index: 1;
}
.loading-hand{
    position: absolute;
    transform: translate(-50%,100%);
    bottom: 0;
    left: 50%;
    z-index: 5;
    height: 60%;
    transition: .3s;
}
.loading-hand img,
.loading-knife img{
    height: 100%;
    width: auto;
    filter: drop-shadow(20px 20px 20px rgba(5,102,132,.5));
}
.loading-knife{
    position: absolute;
    transform: translate(62%,100%);
    bottom: 110%;
    right: -5vw;
    z-index: 6;
    height: calc(100% + 190px);
}
#loading.loading .loading-bg span.n3{
    width: 0;
    transition-timing-function: cubic-bezier(0.785, 0.135, 0.15, 0.86);
    transition-delay: 2.5s;
}
#loading.loading .loading-bg span:not(.n3){
    opacity: 0;
}
#loading.loading .loading-hand{
    bottom: 43.7%;
    animation: hand .2s 2.1s forwards;
}
#loading.loading .loading-knife{
    animation: knife 2s .2s forwards;
}

@keyframes knife{
    0%{
        right: -5vw;
        bottom: 110%;
    }
    14%{
        right: 8vw;
        bottom: 110%;
    }
    22%{
        right: 8vw;
        bottom: 60%;
    }
    42%{
        right: 15vw;
        bottom: 110%;
    }
    54%{
        right: 15vw;
        bottom: 60%;
    }
    70%{
        right: 24vw;
        bottom: 110%;
    }
    100%{
        right: 24vw;
        bottom: 0;
    }
}
@keyframes hand{
    0%{
        bottom: 43.7%;
    }
    100%{
        bottom: 0;
    }
}
.loading-box{
    position: absolute;
    transform: translate(-50%,-50%);
    top: 40%;
    left: 50%;
    z-index: 10;
    transition: .3s;
}
#loading.loading .loading-box{
    opacity: 0;
    top: 30%;
    transition-delay: 2.1s;
}
#loading.loading .loading-box__text,
#loading.loading .loading-box__dots{
    opacity: 1;
}
.loading-box__text{
    font-size: 2.6vw;
    line-height: 1;
    letter-spacing: 0.1em;
    font-weight: 800;
    font-family: var(--jakarta);
    color: var(--navy);
    opacity: 0;
    transition: .6s;
}
.loading-box__dots{
    width: 100%;
    max-width: 130px;
    margin: 40px auto 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    opacity: 0;
    transition: .3s;
}
.loading-box__dots span{
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #B3D1DA;
    transition: .3s;
}
.loading-box__dots span.active{
    background-color: var(--navy);
}
#location{
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 9999;
}

@media screen and (max-width: 991px){
    #animation-material{
        width: 60vw;
    }
    .animation-material__img img{
        width: 100%;
    }
    .animation-material__balloon {
        width: 65%;
        top: -5%;
        left: -23.3%;
    }
    .animation-rod__bg{
        border-radius: 3vw;
    }
    #loading.loading .loading-box,
    .loading-box{
        top: 50%;
    }
    .loading-box__dots{
        margin-top: 25px;
    }
}


@media screen and (max-width: 767px){
    #loading .loading-knife,
    #loading .loading-hand{
        display: none;
    }
    .loading-box__text{
        font-size: 20px;
    }
    .loading-box__dots span{
        width: 8px;
        height: 8px;
    }
    .loading-box__dots{
        margin-top: 15px;
        max-width: 80px;
    }
    .animation-rod__bg{
        left: 12.2%;
        width: 75%;
        border-width: 1px;
    }
    #animation-rod img {
        width: 140%;
        max-width: 140%;
        transform: translateX(-50%);
        position: relative;
        left: 50%;
    }
}