#theader { z-index: 993; position: relative; top: 0; left: 0; width: 100%; height: 115px; background-color: #fff; }
#theader .swrap { height: 100%; }

#theader .logo { position: relative; display: block; float: left; height: 100%; writing-mode: vertical-lr; text-align: center; }
#theader .logo img { width: 381px; }

#theader #tnav { position: relative; display: block; float: right; height: 100%; }
#theader #tnav .menu1 { position: relative; display: flex; flex-wrap: nowrap; height: 100%; }
#theader #tnav .menu1 > li { position: relative; height: 100%; }
#theader #tnav .menu1 > li > a { position: relative; display: block; height: 100%; padding: 0 35px; }
#theader #tnav .menu1 > li > a > span { position: relative; top: 50%; transform: translateY(-50%); display: block; text-align: center; font-weight: 700; font-size: 24px; color: #000; }

#theader #tnav .menu1 > li > a::after { display: block; content: ''; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 0; height: 2px; background-color: #2e3092; transition: width 0.3s; }
#theader #tnav .menu1 > li:hover > a::after { width: 100%; }

#theader #tnav .menu1 .menu2 { display: none; position: absolute; left: 0; width: 100%; background-color: rgba(255, 255, 255, 0.9); }
#theader #tnav .menu1 .menu2 a { position: relative; display: block; padding: 15px 5px; text-align: center; font-weight: normal; font-size: 15px; color: #000; }
#theader #tnav .menu1 .menu2 a:hover { background-color: #ddd; }

.header_block { display: none; }

@media (max-width: 1660px) {
    #theader { height: 100px; }

    #theader .logo img { width: 350px; }

    #theader #tnav .menu1 > li > a { padding: 0 30px; }
    #theader #tnav .menu1 > li > a > span { font-size: 22px; }
}
@media (max-width: 1230px) {
    #theader { height: 90px; }

    #theader .logo img { width: 310px; }

    #theader #tnav .menu1 > li > a > span { font-size: 18px; }
    #theader #tnav .menu1 .menu2 a { padding: 12px 4px; font-size: 14px; }
}
@media (max-width: 1024px) {
    #theader { position: fixed; height: 80px; }
    #theader .swrap { width: 100%; max-width: 100%; }

    #theader .logo { margin-left: 20px; }
    #theader .logo img { width: 265px; }
    
    #theader.scrollh { box-shadow: 0 4px 4px -4px #000; }
    #theader.active, #theader.active.scrollh { box-shadow: none; }

    #theader #tnav { display: none; position: absolute; top: 80px; width: 100%; flex-wrap: nowrap; height: initial; background-color: rgba(255, 255, 255, 0.95); box-shadow: 0 4px 4px -4px #000; border-top: 1px solid #ddd; }
    #theader.active #tnav { display: block; }
    #theader #tnav .menu1 { display: block; height: initial; }
    #theader #tnav .menu1 > li { height: initial; }
    #theader #tnav .menu1 > li > a { height: initial; padding: 15px 5px; pointer-events: none; }
    #theader #tnav .menu1 > li > a > span { top: initial; transform: translateY(0); font-weight: 500; font-size: 17px; }

    #theader #tnav .menu1 > li > a::after { display: none; }

    #theader #tnav .menu1 .menu2 { position: relative; }
    #theader #tnav .menu1 .menu2 a { padding: 13px 5px; font-size: 14px; }
    
    .header_block { display: block; height: 80px; }
}
/* @media (max-width: 524px) {
    #theader .logo img { width: 360px; }
} */
@media (max-width: 450px){
    #theader { height: 70px; }
    #theader .logo img { width: 250px; }

    #theader #tnav { top: 70px; }

    .header_block { display: block; height: 70px; }
}

/* 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: #000; 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: 1024px) {
    #theader .ham_btn { display: block; }
}