#theader { z-index: 995; position: relative; top: 0; left: 0; width: 100%; height: 100px; background-color: #000; }
#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: 212px; }

#theader #tnav { position: relative; left: 30px; display: block; float: right; height: 100%; }
#theader #tnav .menu1 { display: flex; flex-wrap: nowrap; height: 100%; }
#theader #tnav .menu1 > li { 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: 500; font-size: 22px; color: #fff; }
#theader #tnav .menu1 > li > a::after { display: block; content: ''; position: absolute; left: 50%; transform: translateX(-50%); bottom: 0; width: 0; height: 2px; background-color: #ffe700; transition: width 0.3s; }
#theader #tnav .menu1 > li:hover > a::after { width: 100%; }

.headerBlock { display: none; }

@media (max-width: 1535px) {
    #theader { height: 90px; }
    #theader .logo img { width: 190.8px; }

    #theader #tnav { left: 25px; }
    #theader #tnav .menu1 > li > a { padding: 0 25px; }
    #theader #tnav .menu1 > li > a > span { font-size: 20px; }
}

@media (max-width: 1279px) {
    #theader { height: 80px; }
    #theader .logo img { width: 169.6px; }

    #theader #tnav { left: 20px; }
    #theader #tnav .menu1 > li > a { padding: 0 20px; }
    #theader #tnav .menu1 > li > a > span { font-size: 18px; }
}


@media (max-width: 1023px) {
    #theader { position: fixed; height: 70px; }
    #theader.scrollh { box-shadow: 0 4px 4px -4px #fff; }
    #theader.active, #theader.active.scrollh { box-shadow: none; }

    #theader .contwrap { width: 100%; max-width: 100%; }
    
    #theader .logo { margin-left: 20px; }
    #theader .logo img { width: 148.4px; }

    #theader #tnav { position: absolute; left: 0; top: 70px; width: 100%; display: none; float: none; height: initial; background-color: rgba(0, 0, 0, 0.9); border-top: 1px solid #888; box-shadow: 0 4px 4px -4px #fff; }
    #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: 12px 5px; transition: background-color 0.2s; }
    #theader #tnav .menu1 > li > a > span { top: initial; transform: translateY(0); font-weight: normal; font-size: 15px; color: #fff; }
    #theader #tnav .menu1 > li > a::after { display: none; }
    #theader #tnav .menu1 > li > a:hover { background-color: #444; }
    
    .headerBlock { 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: #fff; 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; }
}

/* quicknavs */
.quicknavs { z-index: 1050; position: fixed; top: 45%; transform: translateY(-50%); right: 20px; }
.quicknavs a { display: flex; flex-wrap: nowrap; align-items: center; border-radius: 100px; padding: 11px; padding-right: 25px; }
.quicknavs a:nth-of-type(n + 2) { margin-top: 13px; }
.quicknavs a img{ display: inline-block; width: 75px; margin-right: 10px; }
.quicknavs a span { display: inline-block; font-family: 'GmarketSans'; font-weight: 500; font-size: 27px; }
.quicknavs a:first-of-type { background-color: #ffe700; }
.quicknavs a:first-of-type span { color: #361a1a; }
.quicknavs a:last-of-type { background-color: #1676e2; }
.quicknavs a:last-of-type span { color: #fff; }
@media (max-width: 1660px) {
    .quicknavs a { padding: 10px; padding-right: 20px; }
    .quicknavs a img{ width: 65px; margin-right: 8px; }
    .quicknavs a span { font-size: 22px; }
}
@media (max-width: 1535px) {
    .quicknavs a { padding: 8px; padding-right: 18px; }
    .quicknavs a img{ width: 55px; margin-right: 6px; }
    .quicknavs a span { font-size: 18px; }
}
@media (max-width: 1279px) {
    .quicknavs a { padding: 6px; padding-right: 15px; }
    .quicknavs a:nth-of-type(n + 2) { margin-top: 10px; }
    .quicknavs a img{ width: 40px; margin-right: 5px; }
    .quicknavs a span { font-size: 16px; }
}
@media (max-width: 767px) {
    .quicknavs { top: initial; bottom: 20px; transform: translateY(0); }
    .quicknavs a:nth-of-type(n + 2) { margin-top: 10px; }
    .quicknavs a img{ width: 35px; margin-right: 5px; }
    .quicknavs a span { font-size: 15px; }
}