#theader { z-index: 995; position: fixed; top: 0; left: 0; width: 100%; height: 90px; border-bottom: 1px solid transparent; transition: background-color 0.3s; }
#theader .fullwrap { height: 100%; }

#theader .logo { display: block; float: left; height: 100%; writing-mode: vertical-lr; text-align: center; }
#theader .logo img { width: 237px; }
#theader .logo .img1 { display: inline-block; }
#theader .logo .img2 { display: none; }

#theader #tnav { position: absolute; left: 50%; top: 0; height: 100%; transform: translateX(-50%); }
#theader #tnav .menu1 { position: relative; height: 100%; display: flex; flex-wrap: nowrap; }
#theader #tnav .menu1 > li { position: relative; height: 100%; }
#theader #tnav .menu1 > li > a { position: relative; display: block; height: 100%; padding: 0 30px; }
#theader #tnav .menu1 > li > a > span { position: relative; top: 50%; transform: translateY(-50%); display: block; text-align: center; font-weight: 600; font-size: 18px; color: #333; transition: color 0.3s; }
#theader #tnav .menu1 > li > a::after { z-index: 1; display: block; content: ''; position: absolute; left: 50%; transform: translateX(-50%); bottom: -1px; width: 0; height: 3px; background-color: #004e50; transition: width 0.3s; }
#theader #tnav .menu1 > li:hover > a::after { width: 100%; }

#theader #tnav .menu1 .menu2 { display: none; position: absolute; width: 100%; left: 0; }
#theader #tnav .menu1 .menu2 a { display: block; padding: 16px 5px; text-align: center; }
#theader #tnav .menu1 .menu2 a span { position: relative; display: inline-block; text-align: center; font-size: 14px; color: #333; }
#theader #tnav .menu1 .menu2 a span::after { display: block; content: ''; position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%); width: 0; height: 2px; background-color:  #004e50; transition: width 0.3s; }
#theader #tnav .menu1 .menu2 a:hover span::after { width: 100%; }

.header_bg { display: none; z-index: 993; position: fixed; top: 90px; left: 0; width: 100%; background-color: rgba(255, 255, 255, 0.9); box-shadow: 0 4px 4px -4px #000; }

.headertel { position: absolute; right: 65px; top: 50%; transform: translateY(-50%); color: #333; font-size: 28px; }
.headertel img { display: inline-block; margin-right: 5px; /* filter: invert(1); */ width: 28px; }
.mobile_tel { display: none; text-align: center;  padding: 10px; border-bottom: 1px solid #ddd; }
.mobile_tel a { display: inline-flex; align-items: center; justify-content: center; color: #333; font-size: 20px; }
.mobile_tel a img { display: inline-block; margin-right: 4px; width: 16px; }

/* mouseover */
#theader.mouseover { background-color: rgba(255, 255, 255, 0.9); }
#theader.mouseover .logo .img1 { display: none; }
#theader.mouseover .logo .img2 { display: inline-block; }

#theader.mouseover #tnav .menu1 > li > a > span { color: #333; }

#theader.mouseover .headertel { color: #333; }
#theader.mouseover .headertel img { filter: invert(0); }

/* scrollh */
#theader.scrollh { background-color: rgba(255, 255, 255, 0.9); border-bottom: 1px solid #ddd; }
#theader.scrollh .logo .img1 { display: none; }
#theader.scrollh .logo .img2 { display: inline-block; }

#theader.scrollh #tnav .menu1 > li > a > span { color: #333; }

#theader.scrollh .headertel { color: #333; }
#theader.scrollh .headertel img { filter: invert(0); }

@media (max-width: 1660px) {
    #theader #tnav { left: 55%; }
}
@media (max-width: 1535px) {
    #theader { height: 80px; }

    #theader .logo img { width: 210.6666px; }

    #theader #tnav .menu1 > li > a { padding: 0 25px; }
    #theader #tnav .menu1 > li > a > span { font-size: 16px; }

    .header_bg { top: 80px; }

    .headertel { font-size: 24px; }
    .headertel img { width: 24px; } 
}
@media (max-width: 1279px) {
    #theader { height: 70px; }

    #theader .logo img { width: 184.3333px; }

    /* #theader #tnav { position: relative; left: initial; transform: translateX(0); float: right; } */
    #theader #tnav .menu1 > li > a { padding: 0 20px; }
    #theader #tnav .menu1 > li > a > span { font-size: 15px; }
    
    #theader #tnav .menu1 .menu2 a span { font-size: 13px; }

    .header_bg { top: 70px; }
}
@media (max-width: 1230px) {
    .headertel { right: 50px; }
    .headertel { font-size: 24px; }
    .headertel img { width: 24px; } 
}
@media (max-width: 1023px) {
    #theader { height: 60px; }
    #theader.active { background-color: rgba(255, 255, 255, 0.9); border-bottom: 1px solid #ddd; }

    #theader .fullwrap { width: 100%; max-width: 100%; }

    #theader .logo { margin-left: initial; position: absolute; left: 50%; transform: translateX(-50%); }
    #theader .logo img { width: 158px; }
    #theader.active .logo .img1 { display: none; }
    #theader.active .logo .img2 { display: inline-block; }

    #theader #tnav { display: none; position: absolute; left: 0; top: 60px; width: 100%; height: initial; transform: translateX(0); background-color: rgba(255, 255, 255, 0.9); box-shadow: 0 4px 4px -4px #000; }
    #theader.active #tnav { display: block; }
    #theader #tnav .menu1 { height: initial; display: block; }
    #theader #tnav .menu1 > li { height: initial; }
    #theader #tnav .menu1 > li > a { height: initial; padding: 13px 5px; }
    #theader #tnav .menu1 > li > a.no_link { pointer-events: none; }
    #theader #tnav .menu1 > li > a > span { top: initial; transform: translateY(0); font-weight: normal; font-size: 14px; color: #333; }
    #theader #tnav .menu1 > li:hover > a { background-color: #eee; }
    #theader #tnav .menu1 > li > a::after { display: none; }

    #theader #tnav .menu1 .menu2 { display: none; position: relative; background-color: #dfdfdf; }
    #theader #tnav .menu1 .menu2 a { padding: 13px 5px; }
    #theader #tnav .menu1 .menu2 a span { font-size: 13px; color: #333; }
    #theader #tnav .menu1 .menu2 a span::after { display: none; }
    #theader #tnav .menu1 .menu2 a:hover { background-color: #ccc; }

    .header_bg { display: none !important; }

    /* .headertel { display: none; } */
    .headertel { right: 40px; }
    .headertel img { margin-right: initial; }
    #theader.active .headertel img { filter: initial; }
    .headertel span { display: none; }
    .mobile_tel { display: block; }

    /* scrollh */
    #theader { background-color: rgba(255, 255, 255, 0.9); }
    #theader .logo .img1 { display: none; }
    #theader .logo .img2 { display: inline-block; }

    #theader #tnav .menu1 > li > a > span { color: #333; }

    #theader .headertel { color: #000; }
    #theader .headertel img { filter: invert(0); }
}
@media (max-width: 767px) {
    /* #theader .logo { margin-left: 30px; } */
    .headertel { right: 30px; }
}
@media (max-width: 460px) {
    /* #theader .logo { margin-left: 20px; } */
    .headertel { right: 20px; }
}

.hamburgerBtn { z-index: 10; position: absolute; left: 40px; top: 50%; transform: translateY(-50%); width: 20px; height: 15px; display: none; flex-direction: column; justify-content: space-between; cursor: pointer; }
.hamburgerBtn > div { position: relative; width: 100%; height: 2px; background-color: #004e50; transition: all 0.3s ease; }
#theader.scrollh .hamburgerBtn > div, #theader.active .hamburgerBtn > div { background-color: #004e50; }
#theader.active .hamburgerBtn > div:nth-child(1) { transform: rotate(45deg); transform-origin: top left; }
#theader.active .hamburgerBtn > div:nth-child(2) { opacity: 0; }
#theader.active .hamburgerBtn > div:nth-child(3) { top: 0; transform: rotate(-45deg); transform-origin: bottom left; }
@media (max-width: 1535px) {
    .hamburgerBtn { margin-top: 0px; }
}
@media (max-width: 1023px) {
    .hamburgerBtn { display: flex; }
}
@media (max-width: 767px) {
    .hamburgerBtn { left: 30px; }
}
@media (max-width: 460px) {
    .hamburgerBtn { left: 20px; }
}

/* 드롭다운 제거 */
/* #theader #tnav .menu1 .menu2 { display: none !important; }
.header_bg { display: none !important; }
@media (max-width: 1023px) {
    #theader #tnav .menu1 > li > a.no_link { pointer-events: initial !important; }
} */