#theader { z-index: 9999; position: absolute; top: 0; left: 0; width: 100%; height: 100px; background-color: rgba(0, 0, 0, 0.5); }

#theader .swrap { height: 100%; }

#theader .logo { display: block; float: left; height: 100%; writing-mode: vertical-lr; text-align: center; }
#theader .logo img { width: 367px; }

#theader #tnav { display: block; float: right; height: 100%; }
#theader #tnav .menu1 { display: flex; flex-wrap: nowrap; height: 100%; }
#theader #tnav .menu1 > li { position: relative; height: 100%; }
#theader #tnav .menu1 > li > a { position: relative; display: block; padding: 0 25px; height: 100%; }
#theader #tnav .menu1 > li > a > span { position: relative; top: 50%; transform: translateY(-50%); display: block; text-align: center; font-weight: 500; font-size: 20px; color: #fff; transition: color 0.6s; }

#theader #tnav .menu1 .menu2 { display: none; position: absolute; flex-wrap: nowrap; width: max-content; }
#theader #tnav .menu1 .menu2 { left: 50%; transform: translateX(-50%); }
#theader #tnav .menu1 > li:last-of-type .menu2 { left: initial; right: 0; transform: translateX(0); }
#theader #tnav .menu1 .menu2 a { position: relative; display: inline-block; padding: 10px; text-align: center; font-weight: 500; font-size: 16px; color: #fff; line-height: 1.4; transition: color 0.3s; }
#theader #tnav .menu1 .menu2 a::after { display: block; content: ''; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 0; height: 2px; background-color: lightblue; transition: width 0.4s; }
#theader #tnav .menu1 .menu2 a:hover::after { width: 100%; }

#theader .sub_bg { display: none; z-index: -1; position: absolute; top: 100px; left: 0; width: 100%; height: 42.39px; background-color: rgba(0, 0, 0, 0.5); }

#theader .ham_btn { display: none; position: absolute; top: 68%; transform: translateY(-50%); right: 20px; width: 27px; height: 20px; cursor: pointer; }
#theader .ham_btn div { position: absolute; width: 100%; height: 3px; background-color: #fff; transform-origin: center; }

#theader .ham_btn div:first-child { top: 0%; transform: translateY(-50%); animation: mo_bar1 forwards linear 0.4s; }
#theader .ham_btn div:nth-child(2) { top: 40%; transform: translateY(-50%); animation: mo_bar2 forwards linear 0.4s; }
#theader .ham_btn div:last-child { top: 80%; transform: translateY(-50%); animation: mo_bar3 forwards linear 0.4s; }
@keyframes mo_bar1 {
    0% { top: 50%; transform: translateY(-50%) rotateZ(45deg); }
    50% { top: 50%; transform: translateY(-50%) rotateZ(0deg); }
    100% { top: 0%; transform: translateY(-50%); }
}
@keyframes mo_bar2 {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 1; }
}
@keyframes mo_bar3 {
    0% { top: 50%; transform: translateY(-50%) rotateZ(-45deg); }
    50% { top: 50%; transform: translateY(-50%) rotateZ(0deg); }
    100% { top: 80%; transform: translateY(-50%); }
}

#theader.active .ham_btn div:first-child { top: 0%; transform: translateY(-50%); animation: mo_bar1_on forwards linear 0.4s; }
#theader.active .ham_btn div:nth-child(2) { top: 40%; transform: translateY(-50%); animation: mo_bar2_on forwards linear 0.4s; }
#theader.active .ham_btn div:last-child { top: 80%; transform: translateY(-50%); animation: mo_bar3_on forwards linear 0.4s; }
@keyframes mo_bar1_on {
    0% { top: 0%; transform: translateY(-50%); }
    50% { top: 50%; transform: translateY(-50%); }
    100% { top: 50%; transform: translateY(-50%) rotateZ(45deg); }
}
@keyframes mo_bar2_on {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 0; }
}
@keyframes mo_bar3_on {
    0% { top: 80%; transform: translateY(-50%); }
    50% { top: 50%; transform: translateY(-50%); }
    100% { top: 50%; transform: translateY(-50%) rotateZ(-45deg); }
}

@media (max-width: 1660px) {
    #theader { height: 90px; }

    #theader .logo img { width: 300px; }

    #theader #tnav .menu1 > li > a { padding: 0 25px; }
    #theader #tnav .menu1 > li > a > span { font-size: 18px; }
    #theader #tnav .menu1 .menu2 a { padding: 13px; font-size: 15px; }
    
    #theader .sub_bg { top: 90px; height: 47px; }
}
@media (max-width: 1440px) {
    #theader #tnav { margin-right: 10%; }
}
@media (max-width: 1230px) {
    #theader { height: 90px; }
    #theader .logo img { width: 250px; }

    #theader #tnav { margin-right: 0; }
    #theader #tnav .menu1 > li > a > span { top: 63%; font-size: 17px; }

    #theader .sub_bg { top: 90px; }
}
@media (max-width: 1024px) {
    #theader { position: fixed; height: 80px; }
    #theader .swrap { width: 100%; }

    #theader .logo { margin-left: 20px; }
    #theader .logo img { width: 220px; }

    #theader #tnav { display: none; position: absolute; top: 80px; left: 0; width: 100%; float: none; height: initial; }
    #theader.active #tnav { display: block; height: initial; }
    #theader #tnav .menu1 { display: block; height: initial; background-color: rgba(0, 0, 0, 0.9); border-top: 1px solid rgba(255, 255, 255, 0.3); }
    #theader #tnav .menu1 > li { height: inherit; }
    #theader #tnav .menu1 > li > a { padding: 15px 5px; height: initial; }
    #theader #tnav .menu1 > li > a.no_link { pointer-events: none; }
    #theader #tnav .menu1 > li > a > span { top: 0; transform: translateY(0); font-weight: 500; font-size: 16px; color: #fff; transition: color 0.6s; }
    #theader #tnav .menu1 .menu2 { display: none; position: relative; width: 100%; background-color: #999; }
    #theader #tnav .menu1 .menu2 { left: initial; transform: translateX(0); }
    #theader #tnav .menu1 > li:last-of-type .menu2 { left: initial; right: initial; transform: translateX(0); }
    #theader #tnav .menu1 .menu2 a { display: block; width: 100%; padding: 15px 5px; font-size: 15px; color: #fff; }
    #theader #tnav .menu1 .menu2 a:hover { color: #fff; background-color: #444; }
    #theader #tnav .menu1 .menu2 a::after { display: none; }

    #theader .sub_bg { display: none !important; }

    #theader .ham_btn { display: block; }

    #theader.active { background-color: rgba(0, 0, 0, 0.9); }
    #theader.scrollh { background-color: rgba(0, 0, 0, 0.9); }
}
@media (max-width: 340px) {
    #theader .logo img { width: 200px; }
}
/* langs */
#langs { position: absolute; right: 60px; top: 50%; transform: translateY(-50%); }
#langs a { position: relative; display: inline-block; text-align: center; font-weight: normal; font-size: 16px; color: #bbb; }
#langs a.active { color: #fff; }
#langs a:first-of-type { padding-right: 10px; border-right: 2px solid #557c8d; }
#langs a:last-of-type { padding-left: 6px; }
@media (max-width: 1660px) {
    #langs { right: 30px; }
    #langs a { font-size: 15px; }
}
@media (max-width: 1440px) {
    #langs { right: 20px; }
}
@media (max-width: 1230px) {
    #langs { top: 10px; right: 55px; transform: translateY(0); }
}
@media (max-width: 1024px) {
    #langs { top: 10px; right: 20px; }
    #langs a { font-size: 14px; }
}

/* eng */
#theader.eng * { font-family:'Hind', sans-serif !important; }
#theader.eng #tnav { margin-right: -8%; }
#theader.eng #tnav .menu1 > li > a { padding: 0 10px; }
#theader.eng #tnav .menu1 > li > a > span { font-weight: normal; font-size: 16px; }
#theader.eng #tnav .menu1 .menu2 { left: 10% }
#theader.eng #tnav .menu1 .menu2 a { padding: 10px; /* font-family: 'Pretendard'; */ font-weight: normal; font-size: 14px; }

@media (max-width: 1660px) {
    #theader.eng #tnav { margin-right: -3%; }
    #theader.eng #tnav .menu1 > li > a > span { font-size: 15px; }
}
@media (max-width: 1480px) {
    #theader.eng #tnav { margin-right: 0; }
}
@media (max-width: 1375px) {
    #theader.eng #tnav { float: none; margin-left: 7%; }
    #theader.eng #tnav .menu1 > li > a > span { font-size: 14px; }
    #theader.eng #tnav .menu1 .menu2 a { font-size: 13px; }
}
@media (max-width: 1230px) {
    #theader.eng #tnav { float: right; margin-left: initial; margin-right: 0; }
    #theader.eng #tnav .menu1 > li { position: initial; }
    #theader.eng #tnav .menu1 > li > a { padding: 0 8px; }
    #theader.eng #tnav .menu1 .menu2 { left: 50% }

    #theader.eng #langs { right: 40px; }
}
@media (max-width: 1080px) {
    #theader.eng #tnav .menu1 > li > a > span { font-size: 13px; }
}
@media (max-width: 1024px) {
    #theader.eng * { font-family:'Pretendard', sans-serif !important; }
    #theader.eng #tnav { float: none; margin-left: initial; margin-right: initial; }
    #theader.eng #tnav .menu1 > li { position: relative; }
    #theader.eng #tnav .menu1 > li > a { padding: 14px 5px; }
    #theader.eng #tnav .menu1 > li > a > span { font-size: 15px; }
    #theader.eng #tnav .menu1 .menu2 { left: initial; right: initial; transform: translateX(0); }
    #theader.eng #tnav .menu1 .menu2 a { padding: 14px 5px; font-weight: normal; font-size: 13px; }

    #theader.eng #langs { top: 10px; right: 20px; }
    #theader.eng #langs a { font-size: 14px; }
}