        body {
            margin: 0;
            overflow-x: hidden;
            font-family: Arial, sans-serif;
        }


#main {

}


#main_m {
display: none;
}

#animate {
    position: absolute;
    width: 100%;
    height: 50vw;
    z-index: 1;
}

        #bg {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: #171717;
            background-image: url('../img/index/bg.jpg');
            background-size: cover;
            background-position: center;
            z-index: 0;
        }

        .ncp {
            position: absolute;
        }

#ncp1 {
    bottom: -2vw;
    left: 0;
    width: 42vw;
    height: 45.5vw;
    background-size: contain;
    background-repeat: no-repeat;
    background-image: url(../img/index/npc1.png);
        z-index: 2;
}

        #ncp2 {
            bottom: -1vw;
            right: 0;
    width: 50vw;
    height: 50vw;
    background-size: contain;
    background-repeat: no-repeat;
    background-image: url(../img/index/npc2.png);
    z-index: 2;
        }

        #ncp3 {
    top: -0.5vw;
    left: -2vw;
    width: 52.5vw;
    height: 56vw;
    background-size: contain;
    background-repeat: no-repeat;
    background-image: url(../img/index/npc3.png);
        }

        #ncp4 {
    top: -0.4vw;
    right: 0;
    width: 50vw;
    height: 50vw;
    background-size: contain;
    background-repeat: no-repeat;
    background-image: url(../img/index/npc4.png);
        }

        #thunder {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 100%;
            height: 100%;

            background-image: url(../img/index/thunder.png);
    background-size: cover;
    background-repeat: no-repeat;
            z-index: 4;
            display: none;
        }

#npc_main {
    position: absolute;
    bottom: -3vw;
    left: 50%;
    transform: translate(-50%);
    width: 33vw;
    height: 49vw;
    background-size: contain;
    background-repeat: no-repeat;
    background-image: url(../img/index/main.png);
    z-index: 5;
    display: none;
        }

#bg_ae {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/index/ae.png');
    background-size: contain;
    z-index: 3;
    display: none;
    animation: fadeIn 1s forwards;
}

@keyframes bgAeFadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

        #rologo {
    position: relative;
    width: 10vw;
    height: 5vw;
    background-image: url(../img/rologo.png);
    background-size: cover;
    z-index: 9;
    display: none;
    top: 0;
    left: 0;
        }


        #s4ologo_box {
    position: absolute;
    width: 53.02vw;
    height: 36.41vw;
    background-image: url('../img/s4logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 9;
    display: none;
    bottom: -1vw;
    left: 26.4%;
        }


        #s4ologo_box a {
    outline: none;
        }


.btn_box_in {
    top: 22.5vw;
    left: 9.5vw;
    position: relative;
    width: 22.5vw;
    height: auto;
    display: flex;
    height: fit-content;
    justify-content: space-between;
}




.btn_join {
    position: relative;
    width: 10.9vw;
    height: 2.14vw;
    background-size: contain;
    background-repeat: no-repeat;
     background-image: url(../img/index/btn_join.png);
    z-index: 2;
        cursor: pointer;
 outline: none;
}



.btn_party {
    position: relative;
    width: 10.9vw;
    height: 2.14vw;
    background-size: contain;
    background-repeat: no-repeat;
     background-image: url(../img/index/btn_party.png);
    z-index: 2;
        cursor: pointer;

}

.btn_party a {
   outline: none;
}



.btn_join:hover, .btn_party:hover {
 filter: brightness(115%);

}


        #light {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(255, 255, 255, 1);
            z-index: 999;
            display: none;
        }


#footbox {
    width: 100%;
    background-color: #000;
    position: absolute;
    z-index: 99;
    bottom: -5.5vw;
}



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


 #main {
display: none;
}


#main_m {
        display: flex;
        position: relative;
        width: 100%;
        flex-direction: column;
}

#bg_m {
        position: relative;
        width: 100%;
        height: 115vh;
        top: 0;
        background-image: url(../img/index/bg_m.jpg);
        background-position: top center;
        background-repeat: no-repeat;
        background-size: cover;
}

#footbox {
    width: 100%;
    background-color: #000;
    position: absolute;
    bottom: 0;
    z-index: 99;
}






        #rologo {
    position: relative;
    width: 20vw;
    height: 10vw;
    background-image: url(../img/rologo.png);
    background-size: cover;
    z-index: 9;
    display: block;
    top: 0;
    left: 0;
        }



    #npc_main_m {
        position: absolute;
        left: 15%;
        transform: none;
        width: 70vw;
        height: 104vw;
        background-size: contain;
        background-repeat: no-repeat;
        background-image: url(../img/index/main.png);
        z-index: 5;
        display: block;
    }



    #s4ologo_box_m {
position: absolute;
        width: 80vw;
        height: 46vw;
        background-image: url(../img/s4logo-m.png);
        background-size: contain;
        background-repeat: no-repeat;
        z-index: 9;
        display: flex;
        bottom: 30vh;
        left: 10vw;
        transform: translateX(0);
        opacity: 0;
        visibility: hidden;
    }


.show {
    opacity: 1;
    visibility: visible;
}


#light_m {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 1);
    z-index: 999;
}

#light_m.animate__fadeIn {
    animation: fadeIn 0.2s forwards;
}

#light_m.animate__fadeOut {
    animation: fadeOut 0.3s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}


#thunder_m {
    display: none;

        position: absolute;
        width: 100%;
        height: 100%;
        background-image: url(../img/index/thunder_m.png);
        background-position: top center;
        background-repeat: no-repeat;
        background-size: cover;
}


.btn_box_in {
        position: absolute;
        width: 57vw;
        height: auto;
        display: flex;
        height: fit-content;
        top: 40vw;
        z-index: 9;
        left: 7vw;
        justify-content: space-between;
}



.btn_join {
position: relative;

        width: 27vw;
        height: 6vw;
        background-size: contain;
        background-repeat: no-repeat;
        background-image: url(../img/index/btn_join.png);
        z-index: 2;
        cursor: pointer;
        outline: none;
}



.btn_party {
position: relative;

        width: 27vw;
        height: 6vw;
        background-size: contain;
        background-repeat: no-repeat;
        background-image: url(../img/index/btn_party.png);
        z-index: 2;
        cursor: pointer;
        outline: none;

}



}



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

 #main {
display: none;
}


#main_m {
        display: flex;
        position: relative;
        width: 100%;
        flex-direction: column;
}

#bg_m {
        position: relative;
        width: 100%;
        height: 115vh;
        top: 0;
        background-image: url(../img/index/bg_m.jpg);
        background-position: top center;
        background-repeat: no-repeat;
        background-size: cover;
}

#footbox {
    width: 100%;
    background-color: #000;
    position: absolute;
    bottom: 0;
    z-index: 99;
}






        #rologo {
    position: relative;
    width: 28vw;
    height: 13vw;
    background-image: url(../img/rologo.png);
    background-size: cover;
    z-index: 9;
    display: block;
    top: 0;
    left: 0;
        }



#npc_main_m {
position: absolute;
        left: 5%;
        transform: none;
        width: 95vw;
        height: 100vh;
        top: 20vw;
        background-size: contain;
        background-repeat: no-repeat;
        background-image: url(../img/index/main.png);
        z-index: 5;
        display: block;
}



    #s4ologo_box_m {
        position: absolute;
        width: 96vw;
        height: 53vw;
        background-image: url(../img/s4logo-m.png);
        background-size: contain;
        background-repeat: no-repeat;
        z-index: 9;
        display: flex;
        bottom: 50vh;
        left: 2vw;
        transform: translateX(0);
    opacity: 0;
    visibility: hidden;

    }


.show {
    opacity: 1;
    visibility: visible;
}


#light_m {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 1);
    z-index: 999;
}

#light_m.animate__fadeIn {
    animation: fadeIn 0.2s forwards;
}

#light_m.animate__fadeOut {
    animation: fadeOut 0.3s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}


#thunder_m {
    display: none;

        position: absolute;
        width: 100%;
        height: 100%;
        background-image: url(../img/index/thunder_m.png);
        background-position: top center;
        background-repeat: no-repeat;
        background-size: cover;
}


.btn_box_in {
position: absolute;
        width: 86vw;
        height: auto;
        display: flex;
        height: fit-content;
        bottom: 36vh;
        top: 50vw;
        z-index: 9;
        left: 5vw;
        justify-content: space-between;
}



.btn_join {
position: relative;

        width: 41vw;
        height: 8vw;
        background-size: contain;
        background-repeat: no-repeat;
        background-image: url(../img/index/btn_join.png);
        z-index: 2;
        cursor: pointer;
        outline: none;
}



.btn_party {
position: relative;

        width: 41vw;
        height: 8vw;
        background-size: contain;
        background-repeat: no-repeat;
        background-image: url(../img/index/btn_party.png);
        z-index: 2;
        cursor: pointer;
        outline: none;

}






}