.modal-close-sidebar {
    overflow: hidden;
}

#sidebar {
    position: static;
    height: 100%;
    box-sizing: border-box;
    z-index: 200;
    transition: 0.9s;
}

.modal-close-sidebar #sidebar {
    position: absolute;
    left: -100%;
    height: 100%;
    box-sizing: border-box;
    z-index: 200;
    top: 0;
    transition: 0.9s;
    overflow: hidden;
}

@media(max-width: 1023px) {
    body .area_sidebar {
        position: relative;
        height: 100%;
        width: 100%;
        right: 0;
        transition: 0.8s;
        max-height: calc(100dvh - 52px);
    }

    body .area_top {
        min-height: 52px;
        padding: 4px 0px 0px;
    }

    .open-sidebar,
    .modal-close-sidebar {
        overflow: hidden;
    }

    .open-sidebar #sidebar {
        width: 100%;
        height: 100%;
        left: 0;
        transition: 0.9s;
    }

    .open-sidebar.modal-close-sidebar #sidebar {
        position: absolute;
        left: -100%;
        height: 100%;
        box-sizing: border-box;
        z-index: 200;
        top: 0;
        transition: 0.9s;
        overflow: hidden;
    }

    #sidebar {
        position: absolute;
        left: -100%;
        height: 100%;
        box-sizing: border-box;
        z-index: 200;
        top: 0;
        width: 0;
        transition: 0.9s;
        overflow: hidden;
    }

    body {
        position: relative;
        left: 0;
    }

    /*menu*/
    #nav-icon2 {
        width: 40px;
        height: 35px;
        position: relative;
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
        -webkit-transition: .5s ease-in-out;
        -moz-transition: .5s ease-in-out;
        -o-transition: .5s ease-in-out;
        transition: .5s ease-in-out;
        cursor: pointer;
        float: left;
        left: 15px;
        top: 10px;
    }

    #nav-icon2 span {
        display: block;
        position: absolute;
        height: 5px;
        width: 50%;
        background: #fff;
        opacity: 1;
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
        -webkit-transition: .25s ease-in-out;
        -moz-transition: .25s ease-in-out;
        -o-transition: .25s ease-in-out;
        transition: .25s ease-in-out;
    }

    #nav-icon2 span:nth-child(even) {
        left: 50%;
        border-radius: 0 9px 9px 0;
    }

    #nav-icon2 span:nth-child(odd) {
        left: 0px;
        border-radius: 9px 0 0 9px;
    }

    #nav-icon2 span:nth-child(1),
    #nav-icon2 span:nth-child(2) {
        top: 0px;
    }

    #nav-icon2 span:nth-child(3),
    #nav-icon2 span:nth-child(4) {
        top: 12px;
    }

    #nav-icon2 span:nth-child(5),
    #nav-icon2 span:nth-child(6) {
        top: 25px;
    }

    #nav-icon2.open span:nth-child(1),
    #nav-icon2.open span:nth-child(6) {
        -webkit-transform: rotate(45deg);
        -moz-transform: rotate(45deg);
        -o-transform: rotate(45deg);
        transform: rotate(45deg);
    }

    #nav-icon2.open span:nth-child(2),
    #nav-icon2.open span:nth-child(5) {
        -webkit-transform: rotate(-45deg);
        -moz-transform: rotate(-45deg);
        -o-transform: rotate(-45deg);
        transform: rotate(-45deg);
    }

    #nav-icon2.open span:nth-child(1) {
        left: 3px;
        top: 7px;
    }

    #nav-icon2.open span:nth-child(2) {
        left: calc(50% - 5px);
        top: 7px;
    }

    #nav-icon2.open span:nth-child(3) {
        left: -50%;
        opacity: 0;
    }

    #nav-icon2.open span:nth-child(4) {
        left: 100%;
        opacity: 0;
    }

    #nav-icon2.open span:nth-child(5) {
        left: 3px;
        top: 21px;
    }

    #nav-icon2.open span:nth-child(6) {
        left: calc(50% - 5px);
        top: 21px;
    }
}