.header {
    position: fixed;
    left: 0;
    top: 0;
    height: 80px;
    z-index: 100;
    background-color: white;
    transition: top 0.2s ease-in-out;
}
.header > div {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0px 60px;
}
.top_moving_button{
    display: none;
    position: fixed;
    width: 40px;
    height: 40px;
    border-radius: 100px;
    right: 10px;
    bottom: 10px;
    background-color: rgba(255,255,255,.5);
    color:var(--mainColor);
    cursor: pointer;
    border: 1px solid var(--mainColor);
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    padding-top: 3px;
    z-index: 2;
}
.hbg_btn {
    display: none;
    width: auto;
    position: absolute;
    top: 20px;
    right: 14px;
    z-index: 4;
    cursor: pointer;
}
.hbg_btn span {
    font-size: 40px;
}
.top_moving_button span {
    width: 100%;
    font-size: 31px;
    text-align: center;
    font-variation-settings: 'FILL' 0,'wght' 200,'GRAD' -25,'opsz' 20;
    
}
.top_moving_button div {
    color: white;
    text-align: center;
    top: -19px;
    font-size: 13px;
}
ul, ol, li{
    list-style: none;
}
.logoImage {
    float: left;
    width: auto;
    height: 60px;
    padding: 10px;
    padding-left: 0px;
}
nav {
    width: auto;
    height: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s;
}
ul.menuBox {
    list-style: none;
    font-weight: 300;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding-left: 0px !important;
}
li.menuTitle {
    list-style: none;
    height: 100%;
    padding: 0 20px;
    margin: 0 10px;
    /* border: 1px solid blue; */
    text-align: center;
    /* background: gray; */
    /* text-align: center; */
}
nav * {
    height: 100%;
}
nav > .menuBox>.menuTitle>a::before {
    display: block;
    height: 3px;
    content: '';
    width: 0;
    background: gold;
    position: absolute;
    bottom: -2px;
    left: 51%;
    /* margin-top: 55px;
    /* margin-left: ; */ 
    z-index: 3;
    transform: translateX(-50%);
    transition: all .4s;
}
nav > .menuBox>.menuTitle.on > a {
    color: var(--mainColor);
}
nav > .menuBox>.menuTitle.on > a::before {
    width: calc(100% + 32px);
}
li.menuTitle a{
    white-space: nowrap;
    text-decoration: none;
    /* width: 100%;*/
    height: 100%; 
    font-size: 16px;
    font-weight: 500;
    color: #222222;
    position: relative;
    display: inline-block;
    align-items: center;
    padding-top: 27px;

}
.subMenu.on {
    /* display: flex; */
    height: 110px;
    box-shadow: rgba(17, 17, 26, 0.1) 0px 1px 0px;
}
nav .subMenu {
    width: 100vw;
    height: 0;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    transition: all .4s;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,1);
    z-index: 2;
    /* opacity: 0; */
}

nav .subMenu::before {
    content: "";
    display: block;
    width: 100vw;
    height: 0;
    background: #fff;
    border-top: 1px solid #e5e5e5;
    position: absolute;
    top: 0;
    left: 50%;
    z-index: -2;
    transform: translateX(-50%);
    transition: all .4s
}

.submenuItem {
    padding: 0 35px;
    /* text-decoration: none; */
    /* opacity: 0; */
    /* transform: translateY(20px);
    transition: all .02s */
}

nav .subMenu li a {
    width: 105px;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* text-decoration: none; */
    color: #666;
    /* white-space: nowrap; */
    transition: all .4s;
    padding-top: 10px;
}
/* .subMenu:hover {
    background: red;
} */
.submenuItem:hover > a span {
    color: var(--mainColor);
    /* font-weight: 700; */
}

/* nav .subMenu.on {
    height: 70px;
    overflow: inherit
} */

/* nav .subMenu.on::before {
    height: 100%
} */

/* nav .subMenu.on li {
    opacity: 1;
    transform: translateY(0);
    transition: all .4s .2s
} */
.subMenuImg {
    width: 69px;
    height: 55px;
    margin: 5px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
}
.subMenuText {
    font-size: 14px;
    font-weight: 400;
    color: gray;
    height: auto;
    /* font-family: 'NanumSquareNeo'; */
}
.header .langPack {
    position: relative;
    width: auto;
}

.header .langPack button {
    /* gap: 0 8px; */
    color: #777;
    font-size: 16px;
    display: flex;
    flex-direction: row;
    align-items: center;
    border: none;
    outline: none;
    resize: none;
    background: transparent;
    /* width: 80px; */
}
.header .langPack span{
    margin-right: 5px;
}
.header .langPack span:nth-child(1){
    font-size: 22px;
    font-weight: 200;
}
.header .langPack i {
    width: 21px;
    height: 17px;
    color: #777;
}

.langBtn span {
    width: auto;
}
.langChoice {
    width: 112px;
    height: auto;
    border-radius: 10px;
    /* border: 1px solid #e5e5e5; */
    /* background: blue; */
    position: absolute;
    left: 50%;
    top: -15px;
    background-color: white;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, .1);
    transform: translateX(-50%);
    /* transition: height .5s ease-in-out; */
    /* opacity: 0.5; */
    cursor: pointer;
}
.langChoice.on {
    height: auto; 
    display: block
    /* opacity: 1; */
}
/* .langPack:hover .langChoice {
    display: flex;
} */
.langChoice div:nth-child(1) {
    height: 53px;
    padding: 15px 13px;
}
.langChoice div:nth-child(1) i {
    opacity: 0;
}
.langChoice div:nth-child(1) span:nth-child(1) {
    color: var(--mainColor);
}
.langChoice div:not(:nth-child(1)) {
    width: 100%;
    text-align: center;
    padding: 4px 0px 4px 1px;
    color: gray;
    font-weight: 300;
}

.langChoice div:not(:nth-child(1))::after {
    content: "";
    display: block;
    width: 4px;
    height: 4px;
    background: #00508e;
    border-radius: 50%;
    position: absolute;
    top: 14px;
    left: 41px;
    opacity: 0;
    /* transform: translateY(-50%); */
    transition: all .4s;
}
.langChoice div:hover:not(:nth-child(1))::after{
    left: 22px;
    opacity: 1;
}
.langChoice div:last-child {
    margin-bottom: 14px;
}
/* .langChoice div:hover{
    background: lightgray;
} */

@media screen and (max-width: 1300px) { /*1300 이하*/
    .hbg_btn {
        display: block;
    }
    nav {
        /* display: none; */
        width: 100%;
        height: 0px;
        top: 0;
        left: 0;
        transform: none;
        background: rgba(255,255,255,1);
        z-index: 3;
        /* padding-top: 50px; */
        overflow: hidden;
        transition: all ease-in-out .5s;
    }
    nav.on {
        /* display: block; */
        height: 100vh;
    }
    ul.menuBox {
        flex-direction: column;
        align-items: flex-start;
        overflow: auto;
        padding-top: 40px;
        padding-bottom: 100px;
    }
    li.menuTitle {
        /* padding: 0; */
        margin: 0;
        text-align: left;
        height: auto;
        padding-bottom: 30px;
        box-shadow: rgba(17, 17, 26, 0.1) 0px 1px 0px;
        width: 100%;
    }
    .menuTitle a {
        height: auto !important;
        margin-bottom: 20px;
    }
    .menuTitle>a::before {
        display: none !important;
    }
    .menuTitle > a {
        padding-left: 17px;
        font-size: 24px !important;
    }
    .subMenu {
        width: 100% !important;
        position: relative !important;
        left:0 !important;
        top: 0 !important;
        transform: none !important;
        height: 110px !important;
        justify-content: flex-start !important;
        background: transparent !important;
        box-shadow: none !important;
        transition: none !important;
        padding-left: 0px !important;
    }
    .subMenu::before {
        display: none !important;
    }
}

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

    .header {
        height: 60px !important;
    }
    .header > div {
        padding: 0px 45px 0px 20px;
        /* justify-content: flex-start; */
    }
    
    .langBtn span:nth-child(2) {
        width: 18px;
    }
    .header .langPack button {
        font-size: 12px;
    }
    .header .langPack span:nth-child(1) { /*지구본 아이콘*/
        font-size: 16px;
    }
    .logoImage {
        height: 50px;
    }
    .hbg_btn{
        top: 15px;
    }
    .hbg_btn span {
        font-size: 30px;
    }
    .langChoice {
        width: 77px;
        font-size: 12px;
    }
    .langChoice div:nth-child(1) {
        height: 46px;
        padding: 15px 9px;
    }
    /* .langChoice span:nth-child(1) {
        margin-right: 9px !important;
    } */
    .langChoice i {
        display: none;
    }
    .langChoice div:not(:nth-child(1))::after {
        top: 11px;
        display: none;
    }
    .header .langPack span{
        margin-right: 0px;
    }

    .header .langPack i {
        width: 15px;
        height: 14px;
    }
    .langChoice div:not(:nth-child(1)):hover {
        background: var(--mainColor);
        color: white;
    }
    .subMenu {
        flex-direction: column;
        height: auto !important;
        align-items: flex-start !important;
    }
    
    .subMenuImg {
        height: 27px;
    }
    nav .subMenu li a {
        flex-direction: row;
        width: auto;
    }
    .submenuItem {
        padding: 0px;
    }
    .menuTitle a {
        margin-bottom: 0px;
    }   
}
