#theader { z-index: 1050; position: absolute; top: 0; left: 0; width: 100%; height: 100px; border-bottom: 1px solid transparent; transition: background-color 0.3s; background-color: rgba(0, 0, 0, 0.5); }
#theader .fullwrap { height: 100%; }

#theader .logo { display: block; float: left; height: 100%; writing-mode: vertical-lr; text-align: center; }
#theader .logo img { display: inline-block; width: 220px; }

#theader #tnav { z-index: 1; position: relative; float: right; height: 100%; left: -30px; }
#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 30px; }
#theader #tnav .menu1 > li > a > span { position: relative; top: 50%; transform: translateY(-50%); display: inline-block; font-weight: 500; font-size: 20px; color: #fff; line-height: 1; white-space: nowrap; transition: color 0.3s; }
#theader #tnav .menu1 > li:hover > a > span { color: #008ad0; }
#theader #tnav .menu1 > li > a span::after { z-index: 1; display: block; content: ''; position: absolute; right: -9px; top: -6px; width: 6px; height: 6px; background-color: #008fd5; border-radius: 50%; transition: opacity 0.2s; opacity: 0; }
#theader #tnav .menu1 > li:hover > a span::after { opacity: 1; }
#theader #tnav .menu1 .menu2 { display: none; position: absolute; left: 0; width: 100%; }
#theader #tnav .menu1 .menu2 a { display: block; padding: 10px 5px; text-align: center; }
#theader #tnav .menu1 .menu2 a span { position: relative; display: inline-block; font-size: 15px; color: #fff; line-height: 1.3; }
#theader #tnav .menu1 .menu2 a span::after { z-index: 1; display: block; content: ''; position: absolute; left: 50%; transform: translateX(-50%); bottom: -5px; width: 0; height: 1px; background-color: #0096ff; transition: width 0.3s; }
#theader #tnav .menu1 .menu2 a:hover span::after { width: 100%; }

/* header active */
#theader.active { border-bottom: 1px solid #666; }
#theader.active #tnav .menu1 > li:hover > a > span { color: #008ad0; }

/* header_bg */
.header_bg { display: none; z-index: 994; position: absolute; top: 100px; left: 0; width: 100%; height: 158px; background-color: rgba(0, 0, 0, 0.5); box-shadow: 0 4px 4px -4px #000; }

@media (max-width: 1535px) {
    #theader { height: 90px; }

    #theader .logo img { width: 198px; }

    #theader #tnav .menu1 > li > a { padding: 0 25px; }
    #theader #tnav .menu1 > li > a > span { font-size: 18px; }
    #theader #tnav .menu1 .menu2 a span { font-size: 14px; }

    /* header_bg */
    .header_bg { top: 90px; height: 152.76px; }
}
@media (max-width: 1279px) {
    #theader { height: 80px; }

    #theader .logo img { width: 176px; }

    #theader #tnav .menu1 > li > a { padding: 0 20px; }
    #theader #tnav .menu1 > li > a > span { font-size: 16px; }
    #theader #tnav .menu1 .menu2 a span { font-size: 13px; }

    /* header_bg */
    .header_bg { top: 80px; height: 151.56px; }
}
@media (max-width: 1023px) {
    #theader { height: 70px; }
    #theader .fullwrap { width: 100%; max-width: 100%; }

    #theader .logo { margin-left: 40px; }
    #theader .logo img { width: 154px; }

    #theader #tnav { display: none; top: 0; left: initial; width: 100%; transform: translateX(0); height: initial; background-color: rgba(0, 0, 0, 0.5); border-top: 1px solid #aaa; 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; text-align: center; padding: 13px 5px; pointer-events: none; }
    #theader #tnav .menu1 > li > a > span { top: initial; transform: translateY(0); font-size: 15px; color: #fff; }
    #theader #tnav .menu1 > li > a > img { width: 25px; }
    #theader #tnav .menu1 > li:hover > a { background-color: #333; }
    #theader #tnav .menu1 > li:hover > a > span { color: #fff; }
    #theader #tnav .menu1 > li > a::after { display: none; }
    #theader #tnav .menu1 .menu2 { position: relative; background-color: #555; }
    #theader #tnav .menu1 .menu2 a { padding: 10px 5px; }
    #theader #tnav .menu1 .menu2 a:hover { background-color: #666; }
    #theader #tnav .menu1 .menu2 a span { font-size: 13px; }
    #theader #tnav .menu1 .menu2 a span::after { display: none; }

    /* header_bg */
    .header_bg { display: none !important; z-index: -9; width: 0; height: 0; }
}
@media (max-width: 767px) {
    #theader { height: 60px; }

    #theader .logo { margin-left: 30px; }
    #theader .logo img { width: 132px; }

    #theader #tnav { top: 0; }
}
@media (max-width: 460px) {
    #theader .logo { margin-left: 20px; }
}

/* hamburgerBtn */
.hamburgerBtn { position: absolute; top: 50%; transform: translateY(-50%); right: 0; z-index: 10; width: 28px; height: 19px; display: flex; flex-direction: column; justify-content: space-between; cursor: pointer; }
.hamburgerBtn > div { position: relative; width: 100%; height: 3px; background-color: #fff; transition: all 0.3s ease; border-radius: 100px; }
#theader.active .hamburgerBtn > div:nth-child(1),
#theader.mouseover .hamburgerBtn > div:nth-child(1)
{ top: -3px; transform: rotate(45deg); transform-origin: top left; }
#theader.active .hamburgerBtn > div:nth-child(2),
#theader.mouseover .hamburgerBtn > div:nth-child(2)
 { opacity: 0; }
#theader.active .hamburgerBtn > div:nth-child(3),
#theader.mouseover .hamburgerBtn > div:nth-child(3)
 { top: -1px; transform: rotate(-45deg); transform-origin: bottom left; }

@media (max-width: 1023px) {
    .hamburgerBtn { right: 40px; }
}
@media (max-width: 767px) {
    .hamburgerBtn { right: 30px; }
}
@media (max-width: 460px) {
    .hamburgerBtn { right: 20px; }
}

/* momenu */
#theader .momenu { display: none; }
@media (max-width: 1023px) {
    #theader .momenu { display: block; }
}