header {
    width: 100%;
    height: 80px;
    background: #fff;
    position: fixed;
    top: 0;
    z-index: 100;
}

.navWrap {
    overflow: hidden;
    max-width: 1200px;
    margin: auto;
    height: 80px;
}

.logo {
    float: left;
}

.logo>a {
    display: block;
}

.logo>a>img {
    width: 70%;
    margin: 10px auto;
}

@media screen and (min-width:980px) {
    nav {
        float: right;
        width: 55%;
    }
    nav>ul>li {
        float: left;
        width: 20%;
        text-align: center;
        padding-top: 10px;
        line-height: 60px;
        font-size: 1.2em;
        box-sizing: border-box;
    }
    nav>ul>li>a {
        display: block;
        box-sizing: border-box;
    }
    nav>ul>li>a:hover {
        font-weight: bold;
        border-top: 5px solid #000;
        box-sizing: border-box;
    }
    .menu {
        display: none;
    }
    .menu_background {
        display: none;
    }
}

@media screen and (min-width:840px) and (max-width:979px) {
    nav {
        position: absolute;
        right: 20px;
        top: 5px;
    }
    .menu,
    menu span {
        display: inline-block;
        transition: all 0.4s;
        box-sizing: border-box;
    }
    .menu {
        position: relative;
        width: 40px;
        height: 40px;
        right: 8px;
        top: 15px;
        right: 0px;
    }
    .menu span {
        position: absolute;
        left: 0;
        width: 100%;
        height: 4px;
        background-color: #000;
        border-radius: 4px;
    }
    .menu span:nth-child(1) {
        top: 0;
    }
    .menu span:nth-child(2) {
        top: 18px;
    }
    .menu span:nth-child(3) {
        bottom: 0;
    }
    .menu.active span:nth-child(1) {
        -webkit-transform: translateY(18px) rotate(-45deg);
        transform: translateY(18px) rotate(-45deg);
    }
    .menu.active span:nth-child(2) {
        opacity: 0;
    }
    .menu.active span:nth-child(3) {
        -webkit-transform: translateY(-18px) rotate(45deg);
        transform: translateY(-18px) rotate(45deg);
    }
    .menu_button {
        display: none;
        position: absolute;
        z-index: 50;
        text-align: left;
        right: 60%;
        top: 100px;
    }
    .menu_button li {
        width: 190px;
        padding: 10%;
        margin-bottom: 2%;
        text-align: right;
        display: block;
        font-size: 1.3em;
    }
    .menu_button li a:hover {
        font-weight: bold;
    }
    .menu_background {
        display: none;
        position: fixed;
        width: 30%;
        height: 100%;
        right: 0;
        top: 80px;
        background: #fff;
        z-index: 10;
        opacity: 0.5;
    }
}

@media screen and (min-width:600px) and (max-width:839px) {
    header {
        height: 60px;
    }
    .navWrap {
        height: 60px;
    }
    nav {
        position: absolute;
        right: 20px;
        top: 5px;
    }
    .logo>a>img {
        width: 50%;
    }
    nav {
        position: absolute;
        right: 30px;
        top: 30px;
    }
    .menu,
    menu span {
        display: inline-block;
        transition: all 0.4s;
        box-sizing: border-box;
    }
    .menu {
        position: relative;
        right: 30px;
        top: -15px;
        right: -15px;
        width: 30px;
        height: 30px;
    }
    .menu span {
        position: absolute;
        left: 0;
        width: 100%;
        height: 4px;
        background-color: #000;
        border-radius: 4px;
    }
    .menu span:nth-child(1) {
        top: 0;
    }
    .menu span:nth-child(2) {
        top: 13px;
    }
    .menu span:nth-child(3) {
        bottom: 0;
    }
    .menu.active span:nth-child(1) {
        -webkit-transform: translateY(10px) rotate(-45deg);
        transform: translateY(10px) rotate(-45deg);
    }
    .menu.active span:nth-child(2) {
        opacity: 0;
    }
    .menu.active span:nth-child(3) {
        -webkit-transform: translateY(-16px) rotate(45deg);
        transform: translateY(-16px) rotate(45deg);
    }
    .menu_button {
        display: none;
        position: absolute;
        z-index: 50;
        text-align: left;
        right: 30%;
        top: 50px;
    }
    .menu_button li {
        width: 120px;
        padding: 10%;
        margin-bottom: 2%;
        text-align: right;
        display: block;
        font-size: 1.2em;
    }
    .menu_button li a {
        display: block;
        font-weight: 600;
    }
    .menu_button li a:hover {
        font-weight: 900;
    }
    .menu_background {
        display: none;
        position: fixed;
        width: 30%;
        height: 100%;
        right: 0;
        top: 60px;
        background: #fff;
        z-index: 10;
        opacity: 0.5;
    }
}

@media screen and (max-width:599px) {
    header {
        height: 60px;
    }
    .navWrap {
        height: 60px;
    }
    nav {
        position: absolute;
        right: 20px;
        top: 5px;
    }
    .logo>a>img {
        width: 50%;
    }
    nav {
        position: absolute;
        right: 30px;
        top: 30px;
    }
    .menu,
    menu span {
        display: inline-block;
        transition: all 0.4s;
        box-sizing: border-box;
    }
    .menu {
        position: relative;
        right: 30px;
        top: -15px;
        right: -15px;
        width: 30px;
        height: 30px;
    }
    .menu span {
        position: absolute;
        left: 0;
        width: 100%;
        height: 4px;
        background-color: #000;
        border-radius: 4px;
    }
    .menu span:nth-child(1) {
        top: 0;
    }
    .menu span:nth-child(2) {
        top: 13px;
    }
    .menu span:nth-child(3) {
        bottom: 0;
    }
    .menu.active span:nth-child(1) {
        -webkit-transform: translateY(10px) rotate(-45deg);
        transform: translateY(10px) rotate(-45deg);
    }
    .menu.active span:nth-child(2) {
        opacity: 0;
    }
    .menu.active span:nth-child(3) {
        -webkit-transform: translateY(-16px) rotate(45deg);
        transform: translateY(-16px) rotate(45deg);
    }
    .menu_button {
        display: none;
        position: absolute;
        z-index: 50;
        text-align: left;
        right: 5%;
        top: 50px;
    }
    .menu_button li {
        width: 70px;
        padding: 10%;
        margin-bottom: 2%;
        text-align: right;
        display: block;
        font-size: 1em;
    }
    .menu_background {
        display: none;
        position: fixed;
        width: 30%;
        height: 100%;
        right: 0;
        top: 60px;
        background: #fff;
        z-index: 10;
        opacity: 0.5;
    }
    .menu_button li a {
        display: block;
        font-weight: 600;
    }
    .menu_button li a:hover {
        font-weight: 900;
    }
}