﻿
.header-style1{
    position: fixed;
    z-index: 999;
    display: block;
    width: 100%;
    top: 0;
    background-color: #FFF;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.35);
}
.header-style1 .header-box{
    width: 100%;
    display: block;
    box-sizing: border-box;
    padding-left: 40px;
    font-size: 0;
}
.header-style1 .header-logo{
    width: 130px;
    display: inline-block;
    position: relative;
    vertical-align: middle;
}
.header-style1 .header-menu-nav{
    width: calc(100% - 130px);
    display: inline-block;
    vertical-align: middle;
    font-size: 0;
    text-align: right;
}
.header-style1 .header-menu-box{
    width: calc(100% - 100px);
    display: inline-block;
    vertical-align: middle;
}
.header-style1 .header-menu> li{
    display: inline-block;
    vertical-align: middle;
    position: relative;
}
.header-style1 .header-menu> li::after{
    content: '/';
    font-size: 16px;
    line-height: 30px;
    color: #eee;
    position: absolute;
    top: calc(50% - 15px);
    right: -2px;
}
.header-style1 .header-menu> li:last-child::after{
    display: none;
}

.header-menu-title{
    font-size: 16px;
    color: #555;
    letter-spacing: 0.06em;
    line-height: 30px;
    position: relative;
    box-sizing: border-box;
    padding: 0 20px;
    transition: all .3s linear;
}
div.header-menu-title{
    cursor: context-menu;
}
.header-menu-contact{
    width: 100px;
    line-height: 90px;
    display: inline-block;
    vertical-align: middle;
    font-size: 16px;
    color: #fff;
    letter-spacing: 0.06em;
    background-color: #8fc320;
    text-align: center;
    transition: all .3s linear;
}


.rwd-menu{
    display: none;
    position: fixed;
    z-index: 99;
    top: 0;
    right: 0;
    width: 67px;
    height: 67px;
    background-color: #e95412;
    box-sizing: border-box;
    padding: 0 5px;
    overflow: hidden;
}
.rwd-menu-bth-line{
    width: 50%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 25%;
    display:         flex;
    display: -webkit-flex;
    justify-content: center;
    -webkit-justify-content: center;
    flex-direction: column;
}
.rwd-menu-bth-line span{
    display: block;
    height: 1px;
    background-color: #fff;
    margin: 5px 0;
    position: relative;
}
.rwd-menu-bth-line span:nth-child(1){
    width: 100%;
    left: 0;
    transition: all .3s 0s linear;
}
.rwd-menu-bth-line span:nth-child(2){
    width: 70%;
    left: 0;
    transition: all .3s .05s linear;
}
.rwd-menu-bth-line span:nth-child(3){
    width: 40%;
    left: 0;
    transition: all .3s .1s linear;
}
.rwd-menu-bth-line2{
    width: 50%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 25%;
    display:         flex;
    display: -webkit-flex;
    justify-content: center;
    -webkit-justify-content: center;
    flex-direction: column;
}
.rwd-menu-bth-line2 span{
    display: block;
    height: 1px;
    background-color: #fff;
    width: 100%;
    position: relative;
}
.rwd-menu-bth-line2 span:nth-child(1){
    transform: rotateZ(-45deg);
    left: 200%;
    opacity: 0;
    transition: all .3s 0s linear;
}
.rwd-menu-bth-line2 span:nth-child(2){
    top: -1px;
    transform: rotateZ(45deg);
    left: 200%;
    opacity: 0;
    transition: all .3s .05s linear;
}


.rwd-menu.active .rwd-menu-bth-line span:nth-child(1){
    left: -200%;
}
.rwd-menu.active .rwd-menu-bth-line span:nth-child(2){
    left: -200%;
}
.rwd-menu.active .rwd-menu-bth-line span:nth-child(3){
    left: -200%;
}


.rwd-menu.active .rwd-menu-bth-line2 span:nth-child(1){
    left: 0;
    opacity: 1;
}
.rwd-menu.active .rwd-menu-bth-line2 span:nth-child(2){
    top: -1px;
    left: 0;
    opacity: 1;
}



/*------------------------------------------*/

@media only screen and (max-width: 1000px){
    .header-style1 .header-box{
        padding: 5px 0;
        padding-left: 20px;
    }
    .header-style1 .header-logo{
        width: 108px;
        position: relative;
    }
    .rwd-menu{
        display: block;
    }

    .rwd-header-menu-sytle1 .header-menu-nav{
        width: 100%;
        height: 100vh;
        display:         flex;
        display: -webkit-flex;
        align-items: center;
        -webkit-align-items: center;
        justify-content: center;
        -webkit-justify-content: center;
        flex-direction:column;
        position: fixed;
        top: 0%;
        left: 0;
        z-index: 3;
        background-color: rgba(0, 160, 234, 0.7);
        transition: all .3s linear;
        opacity: 0;
        pointer-events: none;
    }
    .rwd-header-menu-sytle1 .header-menu-nav.active{
        opacity: 1;
        pointer-events: all;
    }
    .header-style1 .header-menu-box{
        width: 100%;
        display: block;
    }
    .header-style1 .header-menu{
        width: 100%;
        display: block;
        text-align: center;
    }


    .rwd-header-menu-sytle1 .header-menu> li{
        display: block;
        margin: 0;
        margin-bottom: 20px;
        top: -100px;
        opacity: 0;
    }
    .rwd-header-menu-sytle1 .header-menu> li:nth-child(1){
        transition: all .3s .03s linear;
    }
    .rwd-header-menu-sytle1 .header-menu> li:nth-child(2){
        transition: all .3s .06s linear;
    }
    .rwd-header-menu-sytle1 .header-menu> li:nth-child(3){
        transition: all .3s .09s linear;
    }
    .rwd-header-menu-sytle1 .header-menu> li:nth-child(4){
        transition: all .3s .12s linear;
    }
    .rwd-header-menu-sytle1 .header-menu> li:nth-child(5){
        transition: all .3s .15s linear;
    }
    .rwd-header-menu-sytle1 .header-menu> li::after{
        display: none;
    }
    .header-menu-title{
        color: #fff;
        padding: 0;
        width: 120px;
        display: inline-block;
        line-height: 36px;
    }
    .header-menu-contact{
        width: 120px;
        line-height: 36px;
        position: relative;
        top: -100px;
        opacity: 0;
        transition: all .3s .15s linear;
        background-color: transparent;
    }
    
    .rwd-header-menu-sytle1 .header-menu-nav.active .header-menu> li{
        top: 0;
        opacity: 1;
    }
    .rwd-header-menu-sytle1 .header-menu-nav.active .header-menu> li:nth-child(1){
        transition: all .3s .12s linear;
    }
    .rwd-header-menu-sytle1 .header-menu-nav.active .header-menu> li:nth-child(2){
        transition: all .3s .09s linear;
    }
    .rwd-header-menu-sytle1 .header-menu-nav.active .header-menu> li:nth-child(3){
        transition: all .3s .06s linear;
    }
    .rwd-header-menu-sytle1 .header-menu-nav.active .header-menu> li:nth-child(4){
        transition: all .3s .03s linear;
    }
    .rwd-header-menu-sytle1 .header-menu-nav.active .header-menu> li:nth-child(5){
        transition: all .3s linear;
    }
    .rwd-header-menu-sytle1 .header-menu-nav.active .header-menu-contact{
        top: 0;
        opacity: 1;
        transition: all .3s linear;
    }

    
    .header-menu> li:hover .header-menu-title,
    .header-menu> li.active .header-menu-title,
    .header-menu-contact:hover,
    .header-menu-contact.active{
        background-color: #8fc320;
        color: #fff;
    }
}
@media only screen and (max-width: 550px){
    .header-style1 .header-logo {
        width: 91px;
    }
    .rwd-menu{
        width: 58px;
        height: 58px;
    }
}

@media only screen and (min-width: 1001px){
    .header-menu> li:hover .header-menu-title,
    .header-menu> li.active .header-menu-title{
        color: #8fc320;
    }
    .header-menu-contact:hover{
        background-color: #82a92f;
        color: #fff;
    }
}