#theader { z-index: 1050; position: absolute; top: 0; left: 0; width: 100%; height: 100px; border-bottom: 1px solid transparent; transition: background-color 0.3s; }
#theader .fullwrap { height: 100%; }

#theader .leftmenu { display: flex; align-items: center; justify-content: left; text-align: left; float: left; height: 100%; }
#theader .leftmenu .logo { display: inline-block; margin-left: 20px; }
#theader .leftmenu .logo img { display: inline-block; width: 200px; }

#theader .rightmenu { display: flex; align-items: center; justify-content: right; text-align: right; float: right; height: 100%; }
#theader .rightmenu li { position: relative; height: 100%; margin-left: 15px; }
#theader .rightmenu li > a { position: relative; display: block; height: 100%; }
#theader .rightmenu li > a img { position: relative; top: 50%; transform: translateY(-50%); display: inline-block; width: 28px; }
#theader .rightmenu li .menu2 { display: none; position: absolute; left: 0; width: 100%; /* background-color: rgba(255, 255, 255, 0.8); */ }
#theader .rightmenu li .menu2 a { display: block; padding: 5px; text-align: center; }
#theader .rightmenu li .menu2 a span { position: relative; display: inline-block; font-size: 14px; color: #000; }
#theader .rightmenu li .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 .rightmenu li .menu2 a:hover span::after { width: 100%; }


#theader #tnav { z-index: 1; position: absolute; top: 0; left: 52%; transform: translateX(-50%); 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 33px; }
#theader #tnav .menu1 > li > a > span { position: relative; top: 50%; transform: translateY(-50%); display: inline-block; font-size: 20px; color: #fff; line-height: 1; white-space: nowrap; transition: color 0.3s; }
#theader #tnav .menu1 > li:hover > a > span { color: #0096ff; }
#theader #tnav .menu1 > li > a::after { z-index: 1; display: block; content: ''; position: absolute; left: 50%; transform: translateX(-50%); bottom: -1px; width: 0; height: 3px; background-color: #0096ff; 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.8); */ }
#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: #000; 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 { background-color: rgba(255, 255, 255, 0.8); }
#theader.active .leftmenu .logo img { filter: brightness(0); }
/* #theader.active .rightmenu a img { filter: brightness(0); } */
#theader.active #tnav .menu1 > li > a > span { color: #000; }
#theader.active #tnav .menu1 > li:hover > a > span { color: #000; }

/* header_bg */
.header_bg { display: none; z-index: 994; position: absolute; top: 100px; left: 0; width: 100%; background-color: rgba(255, 255, 255, 0.8); box-shadow: 0 4px 4px -4px #000; }

@media (max-width: 1535px) {
    #theader { height: 90px; }

    #theader .leftmenu .logo { margin-left: 17px; }
    #theader .leftmenu .logo img { width: 180px; }

    #theader #tnav { left: 55%; }
    #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; }

    #theader .rightmenu li { margin-left: 13px; }
    #theader .rightmenu li > a img { width: 26px; }
    #theader .rightmenu li .menu2 a span { font-size: 13px; }

    /* header_bg */
    .header_bg { top: 90px; }
}
@media (max-width: 1279px) {
    #theader { height: 80px; }
    #theader .leftmenu .logo { margin-left: 15px; }
    #theader .leftmenu .logo img { width: 160px; }

    #theader #tnav { left: 60%; }
    #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; }

    #theader .rightmenu li > a img { width: 23px; }
    #theader .rightmenu li .menu2 a span { font-size: 12px; }

    /* header_bg */
    .header_bg { top: 80px; }
}
@media (max-width: 1023px) {
    #theader { height: 70px; }
    #theader .fullwrap { width: 100%; max-width: 100%; }

    #theader .leftmenu { padding: 0 40px; display: flex; flex-wrap: nowrap; width: 100%; justify-content: space-between; flex-direction: row-reverse; }
    #theader .leftmenu .logo { margin-left: 0; }
    #theader .leftmenu .logo img { width: 140px; }

    #theader .rightmenu { display: none; }

    #theader #tnav { display: none; top: 70px; left: initial; width: 100%; transform: translateX(0); height: initial; background-color: rgba(255, 255, 255, 0.8); border-top: 1px solid #aaa; 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; text-align: center; padding: 13px 5px; pointer-events: none; }
    #theader #tnav .menu1 > li > a > span { top: initial; transform: translateY(0); font-size: 15px; color: #333; }
    #theader #tnav .menu1 > li > a > img { width: 25px; }
    #theader #tnav .menu1 > li:hover > a { background-color: #ddd; }
    #theader #tnav .menu1 > li:hover > a > span { color: #333; }
    #theader #tnav .menu1 > li > a::after { display: none; }
    #theader #tnav .menu1 .menu2 { position: relative; background-color: #ccc; }
    #theader #tnav .menu1 .menu2 a { padding: 10px 5px; }
    #theader #tnav .menu1 .menu2 a:hover { background-color: #bbb; }
    #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; }
}
@media (max-width: 767px) {
    #theader { height: 60px; }

    #theader .leftmenu { padding: 0 30px; }
    #theader .leftmenu .logo img { width: 120px; }

    #theader #tnav { top: 60px; }
}
@media (max-width: 460px) {
    #theader .leftmenu { padding: 0 20px; }
}

/* hamburgerBtn */
.hamburgerBtn { 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 { background-color: #000; }
#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; }


/* search */
.search_wrap { display: none; z-index: 999999; position: fixed; top: 0; left: 0; width: 100%; height: 100%; }
.search_wrap.active { display: block; }
.search_wrap .black_frame { z-index: 1; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.8); }
.search_wrap .search_frame { z-index: 5; position: relative; top: 50%; left: 50%; transform: translate(-50%,-50%); padding: 10px; display: inline-block; border-radius: 5px; background-color: #fff; }
.search_wrap .search_frame form { position: relative; }
.search_wrap .search_frame form input[type="text"] { border: none !important; box-shadow: none !important; outline: none !important; }
.search_wrap .search_frame form button { border: none !important; box-shadow: none !important; outline: none !important; }

/* search_mo */
#theader .search_mo { padding: 10px 0; width: 100%; text-align: center; }
#theader .search_mo form { display: inline-flex; flex-wrap: nowrap; width: 100%; max-width: 170px; }
#theader .search_mo form input { display: block; padding: 5px; width: 140px; font-size: 13px; color: #333; border: 1px solid #ddd !important; outline: none !important; box-shadow: none !important; }
#theader .search_mo form button { display: block; width: calc(100% - 140px); font-weight: normal; font-size: 13px; color: #fff; background-color: #243649; border: none !important; outline: none !important; box-shadow: none !important; }

/* momenu */
#theader .momenu { display: none; }
@media (max-width: 1023px) {
    #theader .momenu { display: block; }
}