#theader { z-index: 995; position: absolute; top: 0; left: 0; width: 100%; height: 90px; border-bottom: 1px solid rgba(255, 255, 255, 0.3); }
#theader .contwrap { height: 100%; }

#theader .logo { display: block; float: left; height: 100%; writing-mode: vertical-lr; text-align: center; }
#theader .logo img { display: inline-block; width: 380px; }

#theader #tnav { position: relative; left: 22px; 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; height: 100%; padding: 0 22px; }
#theader #tnav .menu1 > li > a > span { position: relative; top: 50%; transform: translateY(-50%); display: block; text-align: center; font-size: 20px; color: #fff; }
#theader #tnav .menu1 > li > a > span.ver_bold { font-weight: 800; }
#theader #tnav .menu1 > li > a::after { z-index: 1; display: block; content: ''; position: absolute; left: 50%; transform: translateX(-50%); bottom: -1px; width: 0; height: 2px; background-color: #4444a4; transition: width 0.3s; }
#theader #tnav .menu1 > li:hover > a::after { width: 100%; }

@media (max-width: 1535px) {
    #theader { height: 80px; }
    #theader .logo img { width: 340px; }

    #theader #tnav { left: 20px; }
    #theader #tnav .menu1 > li > a { padding: 0 20px; }
    #theader #tnav .menu1 > li > a > span { font-size: 18px; }
}
@media (max-width: 1279px) {
    #theader { height: 70px; }
    #theader .logo img { width: 300px; }

    #theader #tnav { left: 15px; }
    #theader #tnav .menu1 > li > a { padding: 0 15px; }
    #theader #tnav .menu1 > li > a > span { font-size: 16px; }
}
@media (max-width: 1023px) {
    #theader { position: fixed; height: 60px; }
    #theader.scrollh { background-color: rgba(0, 0, 0, 0.8); box-shadow: 0 4px 4px -4px #000; border-bottom: 1px solid rgba(0, 0, 0, 0.8); }
    #theader.active,#theader.active.scrollh { background-color: rgba(0, 0, 0, 0.8); box-shadow: none; border-bottom: 1px solid #ddd;}
    #theader .contwrap { width: 100%; max-width: 100%; }

    #theader .logo { margin-left: 40px; }
    #theader .logo img { width: 250px; }

    #theader #tnav { display: none; position: absolute; left: 0; top: 60px; width: 100%; float: none; height: initial; background-color: rgba(0, 0, 0, 0.8); box-shadow: 0 4px 4px -4px #000; }
    
    #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: 13px 5px; transition: background-color 0.3s; }
    #theader #tnav .menu1 > li > a > span { top: initial; transform: translateY(0); font-size: 15px; color: #fff; }
    #theader #tnav .menu1 > li > a > span.ver_bold { font-weight: normal; }
    #theader #tnav .menu1 > li:hover > a { background-color: #888; }
}
@media (max-width: 767px) {
    #theader .logo { margin-left: 30px; }
}
@media (max-width: 460px) {
    #theader .logo { margin-left: 20px; }
    #theader .logo img { width: 230px; }
}


/* theader hambtn */
#theader .ham_btn { display: none; position: absolute; top: 55%; transform: translateY(-50%); right: 40px; width: 27px; height: 20px; cursor: pointer; }
#theader .ham_btn div { position: absolute; width: 100%; height: 3px; background-color: #fff; transform-origin: center; }
/* #theader.active .ham_btn div, #theader.scrollh .ham_btn div { background-color: #0090ff; } */
#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; }
}
@media (max-width: 767px) {
    #theader .ham_btn { right: 30px; }
}
@media (max-width: 460px) {
    #theader .ham_btn { right: 20px; }
}


/* quick_menu */
.quick_menu { z-index: 1050; position: fixed; top: 50%; transform: translateY(-50%); right: 20px; }
.quick_menu a { display: block; }
.quick_menu a:nth-of-type(n + 2) { margin-top: 10px; }
.quick_menu a img { width: 75px; }
@media (max-width: 1535px) {
    .quick_menu a img { width: 65px; }
}
@media (max-width: 1279px) {
    .quick_menu a img { width: 55px; }
}
@media (max-width: 1023px) {
    .quick_menu { bottom: 20px; top: initial; transform: translateY(0); }
    .quick_menu a img { width: 45px; }
}