/* header */
/* #theader { z-index: 990; position: absolute; top: 0; left: 0; width: 100%; height: 90px; background-color: transparent; border-bottom: 1px solid rgba(255, 255, 255, 0.3); transition: background-color 0.3s, height 0.3s; } */
/* 2024.06.24 수정 KLD용 */
#theader { z-index: 990; position: relative; top: 0; left: 0; width: 100%; height: 90px; background-color: transparent; border-bottom: 1px solid rgba(255, 255, 255, 0.3); transition: background-color 0.3s, height 0.3s; }
#theader .swrap { height: 100%; }

/* logo */
#theader .logo { display: block; float: left; height: 100%; writing-mode: vertical-lr; text-align: center; }
#theader .logo img { width: 200px; }
#theader .logo .img1 { display: inline-block; }
#theader .logo .img2 { display: none; }

/* tnav menu1 */
#theader #tnav { display: block; float: right; height: 100%; } 
#theader #tnav .menu1 { position: relative; height: 100%; display: flex; flex-wrap: nowrap; }
#theader #tnav .menu1 > li { position: relative; height: 100%; border-left: 1px solid transparent; transition: border 0.3s; }
#theader #tnav .menu1 > li:last-of-type { border-right: 1px solid transparent; }
#theader #tnav .menu1 > li > a { position: relative; height: 100%; display: block; padding: 0 20px; transition: padding 0.3s; }
#theader #tnav .menu1 > li > a > span { position: relative; top: 50%; transform: translateY(-50%); display: block; text-align: center; font-weight: 600; font-size: 20px; color: #000; transition: color 0.3s; }

/* #theader #tnav .menu1 > li:hover > a { padding: 0 35px; } */
#theader #tnav .menu1 > li > a { padding: 0 35px; }

/* tnav menu2 */
/* #theader #tnav .menu1 .menu2 { display: none; position: absolute; left: 0; width: 100%; height: 297px; border-right: 1px solid #ddd; box-sizing: content-box; } */
/* 2024.06.24 수정 KLD용 */
/* #theader #tnav .menu1 .menu2 { display: none; position: absolute; left: 0; width: 100%; height: 597px; border-right: 1px solid #ddd; box-sizing: content-box; } */
/* 2024.06.27 수정 KLD용 */
#theader #tnav .menu1 .menu2 { display: none; position: absolute; left: 0; width: 100%; height: 680px; border-right: 1px solid #ddd; box-sizing: content-box; }
#theader #tnav .menu1 > li:first-of-type .menu2 { left: -1px; width: calc(100%); border-left: 1px solid #ddd; }
#theader #tnav .menu1 .menu2 a { position: relative; display: block; padding: 15px 5px; text-align: center; font-weight: normal; font-size: 15px; color: #000; line-height: 1.3; }
#theader #tnav .menu1 .menu2 a::after { display: block; content: ''; position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); width: 0px; height: 1px; background-color: #000; transition: width 0.3s; } 
#theader #tnav .menu1 .menu2 a:hover::after { width: 50%; }

/* menu2_bg */
/* #theader .menu2_bg { display: none; z-index: -1; position: absolute; top: 90px; left: 0; width: 100%; height: 297px; background-color: rgba(255, 255, 255, 0.95); box-shadow: 0 4px 4px -4px black; } */
/* 2024.06.24 수정 KLD용 */
/* #theader .menu2_bg { display: none; z-index: -1; position: absolute; top: 90px; left: 0; width: 100%; height: 597px; background-color: rgba(255, 255, 255, 0.95); box-shadow: 0 4px 4px -4px black; } */
/* 2024.06.27 수정 KLD용 */
#theader .menu2_bg { display: none; z-index: -1; position: absolute; top: 90px; left: 0; width: 100%; height: 680px; background-color: rgba(255, 255, 255, 0.95); box-shadow: 0 4px 4px -4px black; }

/* mouseover */
#theader.mouseover { border-bottom: 1px solid transparent; background-color: #fff; }
#theader.mouseover .logo .img1 { display: none; }
#theader.mouseover .logo .img2 { display: inline-block; }
#theader.mouseover #tnav .menu1 > li { border-left: 1px solid #ddd; }
#theader.mouseover #tnav .menu1 > li:last-of-type { border-right: 1px solid #ddd; }
#theader.mouseover #tnav .menu1 > li > a > span { color: #000; }
*
/* header */
#theader { height: 85px; }

/* logo */
#theader .logo img { width: 200px; }

/* tnav menu1 */
#theader #tnav .menu1 > li > a { padding: 0 25px; }
#theader #tnav .menu1 > li > a > span { font-size: 18px; }

/* #theader #tnav .menu1 > li:hover > a { padding: 0 37px; } */
#theader #tnav .menu1 > li > a { padding: 0 37px; }

/* menu2_bg */
#theader .menu2_bg { top: 85px; }

@media (max-width: 1230px) {
/* header */
#theader { height: 80px; }

/* logo */
#theader .logo img { width: 200px; }

/* tnav menu1 */
#theader #tnav .menu1 > li > a { padding: 0 24px; }
#theader #tnav .menu1 > li > a > span { font-size: 17px; }

/* #theader #tnav .menu1 > li:hover > a { padding: 0 34px; } */
#theader #tnav .menu1 > li > a { padding: 0 34px; }

/* tnav menu2 */
#theader #tnav .menu1 .menu2 { height: 289.2px; }
#theader #tnav .menu1 .menu2 a { font-size: 14px; }

/* menu2_bg */
#theader .menu2_bg { top: 80px; height: 289.2px; }
}
@media (max-width: 1024px) {
/* header */
#theader { position: fixed; height: 70px; }
#theader .swrap { width: 100%; max-width: 100%; }

/* logo */
#theader .logo { float: none; margin-left: 20px; }
#theader .logo img { width: 200px; }

/* tnav menu1 */
#theader #tnav { display: none; position: absolute; left: 0; top: 70px; width: 100%; float: none; height: initial; background-color: #fff; box-shadow: 0 4px 4px -4px black; } 
#theader.active #tnav { display: block; }
#theader #tnav .menu1 { height: initial; display: block; }
#theader #tnav .menu1 > li { height: initial; border-left: none; }
#theader #tnav .menu1 > li:last-of-type { border-right: none }
#theader #tnav .menu1 > li > a { height: initial; padding: 15px 5px; }
#theader #tnav .menu1 > li > a.no_link { pointer-events: none; }
#theader #tnav .menu1 > li > a > span { top: initial; transform: translateY(0); font-weight: 500; font-size: 15px; color: #000; }

#theader #tnav .menu1 > li:hover > a { padding: 15px 5px; }

#theader #tnav .menu1 > li:hover { background-color: #ccc; }

/* tnav menu2 */
#theader #tnav .menu1 .menu2 { display: none; position: relative; height: initial; border-right: none; background-color: #eee; }
#theader #tnav .menu1 > li:first-of-type .menu2 { left: 0; width: 100%; border-left: none; }
#theader #tnav .menu1 .menu2 a { padding: 15px 5px; font-weight: normal; font-size: 13px; color: #000; line-height: 1.3; }
#theader #tnav .menu1 .menu2 a::after { display: none; }
#theader #tnav .menu1 .menu2 a br { display: none; }

#theader #tnav .menu1 .menu2 a:hover { background-color: #888; }

/* menu2_bg */
#theader .menu2_bg { display: none !important; }

/* mouseover */
#theader.mouseover { border-bottom: 1px solid transparent; background-color: #fff; }
#theader.mouseover #tnav .menu1 > li { border-left: none; }
#theader.mouseover #tnav .menu1 > li:last-of-type { border-right: none; }
#theader.mouseover #tnav .menu1 > li > a > span { color: #000; }

/* scrollh, active */
#theader.scrollh { background-color: #fff; box-shadow: 0 4px 4px -4px black; }
#theader.active { background-color: #fff; box-shadow: none; border-bottom: 1px solid #ddd; }
#theader.scrollh .img1 { display: none; }
#theader.scrollh .img2 { display: inline-block; }
#theader.active .img1 { display: none; }
#theader.active .img2 { display: inline-block; }
}



/* theader hambtn */
#theader .ham_btn { display: none; position: absolute; top: 55%; 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; } */
/* 2024.06.27 수정 */
#theader .ham_btn div { position: absolute; width: 100%; height: 3px; background-color: #ff0000; 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); }
}

#theader.active .ham_btn div { background-color: #e83230; }
#theader.scrollh .ham_btn div { background-color: #e83230; }

@media (max-width: 1024px) {
    #theader .ham_btn { display: block; }
}