/* theader */
#theader { z-index: 995; position: fixed; left: 0; top: 0; width: 100%; background-color: #fff; }

/* top */
#theader .top { position: relative; height: 86px; border-bottom: 2px solid #d60000; transition: top 0.3s; }
#theader .top .contwrap { height: 100%; }
#theader .top .logo { position: relative; height: 100%; display: block; float: left; }
#theader .top .logo span { position: relative; top: 50%; transform: translateY(-50%); display: block; font-family: 'GmarketSansMedium'; font-weight: bold; font-size: 27px; color: #d60000; }

/* bottom */
#theader .bottom { position: relative; height: 56px; border-bottom: 1px solid #d6d6d6; }
#theader .bottom .contwrap { height: 100%; }
#theader .bottom #tnav { display: block; height: 100%; }
#theader .bottom #tnav .menu1 { position: relative; height: 100%; display: flex; flex-wrap: nowrap; }
#theader .bottom #tnav .menu1 > li { position: relative; width: 100%; height: 100%; }
#theader .bottom #tnav .menu1 > li > a { position: relative; display: block; height: 100%; border-right: 1px solid #d6d6d6; }
#theader .bottom #tnav .menu1 > li:first-of-type > a { border-left: 1px solid #d6d6d6; }
#theader .bottom #tnav .menu1 > li > a > span { position: relative; top: 50%; transform: translateY(-50%); display: block; text-align: center; font-weight: 700; font-size: 18px; color: #000; }

#theader .bottom #tnav .menu1 .menu2 { display: none; position: absolute; left: 0; width: 100%; border-right: 1px solid #efefef; }
#theader .bottom #tnav .menu1 > li:first-of-type .menu2 { border-left: 1px solid #efefef; }
#theader .bottom #tnav .menu1 .menu2 a { position: relative; display: block; padding: 14px 5px; text-align: center; }
#theader .bottom #tnav .menu1 .menu2 a span { position: relative; display: inline-block; text-align: center; font-size: 14px; color: #000; line-height: 1.3; }
#theader .bottom #tnav .menu1 .menu2 a span .br1 { display: none; }
#theader .bottom #tnav .menu1 .menu2 a span::after { display: block; content: ''; position: absolute; bottom: -3px; left: 50%; transform: translateX(-50%); width: 0; height: 1px; background-color: #d60000; transition: width 0.3s; }
#theader .bottom #tnav .menu1 .menu2 a:hover span::after { width: 100%; }

/* etc */
.header_block { height: 142px; }

#theader.scrollh { box-shadow: 0 4px 4px -4px #000; }
#theader.mouseover, #theader.mouseover.scrollh { box-shadow: none; }

@media (max-width: 1535px) {
    #theader .top { height: 72px; }
    #theader .top .logo span { font-size: 24px; }

    #theader .bottom { height: 46px; }
    #theader .bottom #tnav .menu1 > li > a > span { font-weight: 600; font-size: 16px; }

    #theader .bottom #tnav .menu1 .menu2 a span .br1 { display: inline-block; }

    .header_block { height: 118px; }
}

@media (max-width: 1279px) {
    #theader .top { height: 62px; }
    #theader .top .logo span { font-size: 21px; }

    #theader .bottom { height: 41px; }
    #theader .bottom #tnav .menu1 > li > a > span { font-size: 15px; }
    
    #theader .bottom #tnav .menu1 .menu2 a span { font-size: 13px; }

    .header_block { height: 103px; }
}

@media (max-width: 1023px) {
    #theader .top { height: 60px; border-bottom: none; }
    #theader .top .logo span { font-size: 20px; }

    #theader .bottom { display: none; position: absolute; top: 60px; width: 100%; height: initial; border-bottom: initial; background-color: rgba(255, 255, 255, 0.9); box-shadow: 0 4px 4px -4px #000; }
    #theader.active .bottom { display: block; }
    #theader .bottom .contwrap { height: initial; width: 100%; max-width: 100%; }
    #theader .bottom #tnav { height: initial; }
    #theader .bottom #tnav .menu1 { height: initial; display: block; border-left: initial; }
    #theader .bottom #tnav .menu1 > li { height: initial; }
    #theader .bottom #tnav .menu1 > li > a { padding: 15px 5px; height: inherit; border-right: initial; }
    #theader .bottom #tnav .menu1 > li > a.no_link { pointer-events: none; }
    #theader .bottom #tnav .menu1 > li > a > span { top: initial; transform: translateY(0); font-weight: 500; font-size: 15px; color: #000; }
    #theader .bottom #tnav .menu1 > li:hover > a { background-color: #ddd; }

    #theader .bottom #tnav .menu1 .menu2 { position: relative; height: initial; border-right: none; background-color: #efefef; }
    #theader .bottom #tnav .menu1 > li:first-of-type .menu2 { border-left: none; }
    #theader .bottom #tnav .menu1 .menu2 a { padding: 13px 5px; }
    #theader .bottom #tnav .menu1 .menu2 a span { font-size: 13px; color: #000; line-height: 1.2; }
    #theader .bottom #tnav .menu1 .menu2 a span br { display: none; }
    #theader .bottom #tnav .menu1 .menu2 a:hover { background-color: #d60000; }
    #theader .bottom #tnav .menu1 .menu2 a span .br1 { display: none; }
    #theader .bottom #tnav .menu1 .menu2 a:hover span { color: #fff; }
    #theader .bottom #tnav .menu1 .menu2 a span::after { display: none; }
    .header_block { height: 60px; }
}

@media (max-width: 767px) {
    
}

/* theader hambtn */
#theader .ham_btn { display: none; position: absolute; top: 50%; transform: translateY(-50%); right: 20px; width: 27px; height: 20px; cursor: pointer; }
#theader .ham_btn div { position: absolute; width: 100%; height: 3px; background-color: #d60000; 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: 1023px) {
    #theader .ham_btn { display: block; }
}

.header_sub { display: none; z-index: 993; position: fixed; top: 142px; left: 0; width: 100%; background-color: #fff; box-shadow: 0 4px 4px -4px #000; }
@media (max-width: 1535px) {
    .header_sub { top: 118px; }
}
@media (max-width: 1279px) {
    .header_sub { top: 103px; }
}
@media (max-width: 1023px) {
    .header_sub { z-index: -100; opacity: 0; display: none !important; width: 0 !important; height: 0 !important; }
}


/* 구글자동번역 스타일 */
#google_translate_element { position: relative; float: right; z-index: 10; top: 50%; transform: translateY(-50%); }
#google_translate_element img { display: none !important; }
@media (max-width: 1535px) {
    
}
@media (max-width: 1023px) {
    #google_translate_element { top: 0; transform: translateY(0); right: 20px; }
}

.goog-te-gadget { font-family: 'Pretendard'; font-size: 14px; color: #000 !important; }
.goog-te-gadget-simple {
    background-color: transparent;
    border: none !important;
    font-size: 14px;
    display: inline-block;
    padding-top: 1px;
    padding-bottom: 2px;
    cursor: pointer;
}
.goog-te-gadget-simple .VIpgJd-ZVi9od-xl07Ob-lTBxed { color: #000 !important; }
.goog-te-gadget-simple .VIpgJd-ZVi9od-xl07Ob-lTBxed span { display: inline-block; margin: 0 3px; font-size: 14px; color: #000 !important; border: none !important; }
.goog-te-gadget-simple .VIpgJd-ZVi9od-xl07Ob-lTBxed span:last-of-type { margin-top: 1.5px; vertical-align: top; font-size: 12px; }

#theader:hover .goog-te-gadget-simple .VIpgJd-ZVi9od-xl07Ob-lTBxed { color: #000 !important; }
#theader:hover .goog-te-gadget-simple .VIpgJd-ZVi9od-xl07Ob-lTBxed span { color: #000 !important; }
#theader.ham_active .goog-te-gadget-simple .VIpgJd-ZVi9od-xl07Ob-lTBxed { color: #000 !important; }
#theader.ham_active .goog-te-gadget-simple .VIpgJd-ZVi9od-xl07Ob-lTBxed span { color: #000 !important; }
#theader.scrollh .goog-te-gadget-simple .VIpgJd-ZVi9od-xl07Ob-lTBxed { color: #000 !important; }
#theader.scrollh .goog-te-gadget-simple .VIpgJd-ZVi9od-xl07Ob-lTBxed span { color: #000 !important; }