@charset "utf-8";

html.open {
    overflow: hidden;
}

#m_menu {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: fixed;
    display: flex;
    top: 0px;
    right: -100%;
    z-index: 11;
    /* border: 1px solid #666; */
    text-align: center;
    transition: All .5s ease-in-out;
    -webkit-transition: All .5s ease-in-out;
    -moz-transition: All 0.5s ease-in-out;
    -o-transition: All 0.5s ease-in-out;
    /* align-content: center; */
    opacity: 0;
    /* padding-top: 80px; */
    visibility: hidden;
    background-color: #2d51a3;
}

#m_menu h3 {
    color: #29a02c;
    font-size: 1em;
    padding: 0.5em 0 0.5em 0.7em;
    text-align: left;
}

#m_menu>ul {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
    /* z-index: 1; */
    flex-direction: row;
    justify-content: center;
    background-color: var(--color-main);
    opacity: 0;
    align-items: flex-start;
    flex-wrap: wrap;
    align-content: center;
    gap: 4rem;
    padding-top: 80px;

}

#m_menu>ul>li {
    display: flex;
    flex-direction: column;
    /* margin-right: 4em; */
    align-items: center;
    opacity: 0;
}

#m_menu>ul>li:last-child {
    margin-right: 0;
}

#m_menu>ul>li>a {
    display: inline-flex;
    /* background-color: #113090; */
    /* padding: 0.5em 0em .0em 0em; */
    /* width: 100%; */
    color: #ffffff;
    font-size: clamp(18px, 2vw, 26px);
    font-weight: 600;
    /* border-bottom: 1px solid #3253b8; */
    /* text-transform: uppercase; */
    position:
        relative;
    margin-bottom: 1em;
    border-bottom: 1px solid var(--color-bg-point4);
    letter-spacing: -1px;
}

#m_menu>ul>li>a:after {
    content: "";
    z-index: 11;
    width: 100%;
    height: 10px;
    position: absolute;
    bottom: 5%;
    left: 0;
    background-color: #9ed4ff7d;
    transition: 0.3s;
    transform: scaleX(0.0);
    z-index: -1;
    border-radius: 1em;
}

#m_menu>ul>li>a:hover::after {
    transform: scaleX(1.1);
}

#m_menu>ul>li>ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* padding-left: .2em; */
    gap: 1rem;
    height: 100%;
    background-color: #fff;
}

#m_menu>ul>li>ul>li {
    /* margin-bottom: .5rem; */
}

#m_menu>ul>li>ul>li>a {
    display: table;
    width: auto;
    color: #fff;

}

#m_menu>ul>li>ul>li>a:after {
    content: "";
    z-index: 11;
    width: 100%;
    height: 5px;
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: #269266;
    transition: 0.3s;
    transform: scaleX(0.0);
    border-radius: 1em;
    z-index: -1;
}

#m_menu>ul>li>ul>li>a:hover::after {
    transform: scaleX(1.1);
}

#m_menu>ul>li>ul>li>a:hover,
#m_menu>ul>li>ul>li>a:focus {
    opacity: 1;
}

#m_menu>ul>li>ul>li>a:hover::after,
#m_menu>ul>li>ul>li>a:focus::after {
    opacity: 1;

}

#m_menu>ul>li>ul>li.on a {
    /* color: #fafafa; */
}

#m_menu>ul>li>ul>li.on a:after {
    content: "";
    width: 100%;
    height: 5px;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: -1;
    border-radius: 1em;
}

#m_menu.open {
    right: 0px;
    background-color: rgb(0 0 0 / 38%);
}

.page_cover.open {
    display: block;
}

.page_cover {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0px;
    left: 0px;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 11111;
    display: none;
}

.close {
    position: absolute;
    cursor: pointer;
    display: block;
    font-size: 2.5em;
    color: #ffffff;
    top: .5em;
    right: 1em;
    background-repeat: no-repeat;
    width: 40px;
    height: 40px;
    z-index: 11;
    background: unset;
    border: 0;
    padding: 0;
}

.close p {
    width: 40px;
    height: 40px;
    transition: all 1s;
    transform: rotate(0);
    -webkit-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
}

.close p:hover {
    transform: rotate(180deg);
}

#m_menu.active {
    position: fixed;
    left: unset;
    right: 0;
    width: 100%;
    opacity: 1;
    top: 0;
    visibility: visible;
}

#m_menu.active>ul {
    width: 100%;
    opacity: 1;
    animation-name: fadeIn;
    animation-delay: .4s;
}

#m_menu.active>ul>li {
    opacity: 1;
    animation-name: fadeIn;
    animation-delay: .4s;
}

@media only screen and (min-width:1025px) and (max-width: 1500px) {
    #m_menu>ul {
        gap: 2rem
    }
}

@media screen and (max-width: 1024px) {
    #m_menu button {
        box-sizing: border-box;
        top: 50%;
        right: 5%;
        color: #fff;
        /* background-color: var(--color-main); */
        /* border-radius: 6px; */
        transform: translateY(-50%);
    }

    #m_menu.active {
        width: 60%;
        /* left: unset; */
        /* right: 0; */
    }

    #m_menu.active:before {
        content: "";
        position: fixed;
        background-color: rgb(0 0 0 / 50%);
        width: 100%;
        height: 100%;
        right: 0;
        top: 0;
        /* z-index: -110; */
    }

    #m_menu .gap {
        /* height: 80px; */
        position: absolute;
        width: 65%;
        height: 100%;
        background-color: #2d51a3;
        right: 0;
    }

    #m_menu>ul:after {
        display: none;
    }

    #m_menu>ul>li>ul>li>a:after {
        display: none;
    }

    #m_menu h3 {
        color: #29a02c;
        font-size: 1em;
        padding: 0.5em 0 0.5em 0.7em;
        text-align: left;
    }

    #m_menu>ul {
        /* display: flex; */
        /* padding: 1em; */
        width: 36%;
        /* line-height: 1.5em; */
        /* padding: 1em 0; */
        text-align: left;
        /* left: 5%; */
        overflow-y: auto;
        /* height: 100vh; */
        justify-content: flex-start;
        align-items: flex-start;
        flex-direction: column;
        background-color: var(--color-main);
        position: unset;
        /* border-right: 1px solid #ddd; */
        /* margin-top: 80px; */
    }

    #m_menu.active>ul {
        width: 35%;
        gap: 0rem;
    }

    #m_menu>ul>li {
        /* padding: 1em; */
        height: 5em;
        width: 100%;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        margin-right: 0;
    }

    #m_menu>ul>li.on {
        background-color: #fff;
    }

    #m_menu>ul>li.on>a {
        /* color: var(--color-white); */
        color: var(--color-main);
    }

    #m_menu>ul>li>a {
        display: table;
        /* background-color: #fafafa; */
        padding: 0 1rem;
        width: 100%;
        height: 100%;
        color: white;
        margin-bottom: 0;
        border-bottom: 0;
        display: flex;
        align-items: center;
        font-size: 1.05em;
        font-weight: 400;
        /* letter-spacing: -1px; */
    }

    #m_menu>ul>li>a:hover::after {
        display: none;
    }

    #m_menu>ul>li>ul {
        /* border-top: 1px solid #3a5dc7; */
        width: 100%;
        display:
            none;
        position: absolute;
        right: -133px;
        top: 0;
        z-index: 10;
        margin-top: 80px;
        /* padding-top: 20px; */
    }

    #m_menu>ul>li.on>ul {
        display: block;
        right: 0;
        width: 65%;
    }

    #m_menu>ul>li>ul>li {
        padding: 1rem;
        border-bottom: 1px solid #0000001c;
    }

    #m_menu>ul>li>ul>li>a {
        display: table;
        width: 100%;
        height: 100%;
        /* padding: 0.8em 2em; */
        /* background-color: #f2f2f2; */
        color: #333;
        /* border-bottom: 1px solid #e8e8e8; */
        font-size: 1.0em;
        font-weight: 400;
    }

    #m_menu>ul>li>ul>li.on {
        border-bottom-color: var(--color-main);
    }

    #m_menu>ul>li>ul>li.on a {
        /* background-color: #29a02c; */
        color: var(--color-main);
        width: auto;
    }

    #m_menu.open {
        right: 0px;
        width: 80%;
        background-color: #e8f6ff;
        visibility: visible;
        overflow: visible;
        height: 100vh;
        top: 82px;
        border: 0;
        display: flex;
        justify-content: flex-start;
        /* position: relative; */
    }

    .page_cover.open {
        display: block;
    }

    .page_cover {
        width: 100%;
        height: 100%;
        position: fixed;
        top: 0px;
        left: 0px;
        background-color: rgba(0, 0, 0, 0.4);
        z-index: 11111;
        display: none;
    }

    .close {
        position: absolute;
        cursor: pointer;
        /* display: none; */
        font-size: 2em;
        color: #ffffff;
        top: 1em;
        right: 1em;
        /* background-image: url(/img/common/close.png); */
        background-repeat: no-repeat;
        /* width: 41px; */
        /* height: 41px; */
        z-index: 11;
        background: unset;
        border: 0;
    }

}

.ss_menu a {
    cursor: pointer;
}

.ss_menu .ss_hide {
    display: none;
}


.m_blind {
    display: none;
    position: fixed;
    left: 0px;
    top: 82px;
    width: 100%;
    height: 100%;
    background: rgb(0, 0, 0);
    opacity: 0;
    z-index: 9998;
}

@media screen and (max-width: 1024px) {
    #m_blind.on {
        opacity: .5;
        display: block;
    }
}

/* 모바일 가로, 모바일 세로 (해상도 480px ~ 767px)*/
@media all and (max-width:767px) {
    #m_menu {
        width: 80%;
    }

    #m_menu.active {
        width: 100%;
    }

    #m_menu>ul {
        width: 40%;
    }

    #m_menu>ul>li {
        height: 5rem;
    }

    #m_menu>ul>li>a {
        padding: .5rem;
        font-size: 4.5vw;
    }

    #m_menu>ul>li>ul>li {
        padding: .8rem
    }

    #m_menu>ul>li>ul>li>a {
        font-size: 4.5vw
    }

}