﻿/*--------------header-style1-----------------*/
.header-style1{
    position: fixed;
    z-index: 999;
    display: block;
    width: 100%;
    top: 0;
    padding: 8px 0;
    background-color: #FFF;
    transition: all .5s ease;
    border-bottom: 1px solid #000;
}
.header-style1.header2{
    box-shadow: rgba(0,0,0,0.8) 0px 0px 3px;
}
#index .header-style1{
    border-bottom: 0;
}
.header-index-logo{
    position: absolute;
    top: 10px;
    left: 5%;
    z-index:1000;
    width: 155px;
    transition: all .5s ease;
    display: none;
}
#index .header-index-logo{
    display: block;
}
.header-index-logo.close{
    opacity: 0;
}
.header-logo span{
    font-size: 20px;
    padding-left: 5px;
    display: inline-block;
    vertical-align: middle;
    letter-spacing: 3px;
}
.header-logo-img{
    width: 70px;
    max-width: 100%;
    display: inline-block;
    vertical-align: middle;
    transition: all .5s ease;
}

.header-style1 .header-box{
    width: 1300px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    font-size: 0;
    position: relative;
}
.header-style1 .header-logo{
    display: inline-block;
    width: 250px;
    max-width: 100%;
    position: relative;
    transition: all .5s ease;
}

#index .header-style1 .header-logo{
    opacity: 0;
    pointer-events: none;
}
#index .header-style1.header2 .header-logo{
    opacity: 1;
    pointer-events: auto;
}
.header-style1 .header-menu{
    display: inline-block;
    vertical-align: top;
    width: calc(100% - 250px);
    font-size: 0;
    text-align: right;
    transition: all .5s ease;
}



.header-style1 .header-menu> li{
    display: inline-block;
    vertical-align: middle;
    position: relative;
    text-align: center;
    margin-right: 50px;
}
.header-style1 .header-menu> li:last-child{
    margin-right: 0;
}
.header-link-box{
    display: block;
    position: absolute;
    right: 0;
    top: 0;
}
.header-menu-title-en{
    font-size: 16px;
    font-family: "Abel";
    letter-spacing: 3px;
    display: block;
    transition: all .5s ease;
    position: relative;
    top: 0;
}
.header-menu-title-ch{
    font-size: 14px;
    color: #555555;
    letter-spacing: 1px;
    transition: all .5s ease;

}
.header-menu-title{
    display: block;
    position: relative;
    padding-top: 33px;
    transition: all .5s ease;
}
.header-menu-icon{
    width: 33px;
    height: 31px;
    position: absolute;
    display: block;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-image: url(../img/front/header-icon.png);
    top: 7px;
    left: -18px;
    opacity: 0;
    transition: all .5s ease;
}
/*----------------------------------------*/
.rwd-menu-list-back{
    display: none;
}
.mask{
    width: 100%;
    height: 100vh;
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.7);
}

.mask.active{
    display: block;
}

.rwd-menu{
    width: 30px;
    max-width: 100%;
    position: absolute;
    right: 0px;
    z-index: 99999;
    display: none;
    top: calc(50% - 7px);
}
.rwd-menu span{
    width: 100%;
    display: block;
    margin: 0 auto;
    height: 2px;
    background-color:#ee2f72;
    position: relative;
}
#index .rwd-menu span{
    background-color: #ee2f72;
}
.rwd-menu> span:nth-child(even){
    margin: 4px auto;
    transition: all .4s linear;
}
.rwd-menu> span:nth-child(1){
    transform: scale(1);
    transform-origin: left;
    transition: all .4s linear;
}
.rwd-menu> span:nth-child(3){
    transform: scale(1);
    transform-origin: right;
    transition: all .4s linear;
}
.rwd-menu> span:nth-child(4){
    top: -19px;
    transform:  scale(0,1) rotate(-45deg);
}
.rwd-menu-style1> span:nth-child(4){
    display: none;
}
.rwd-menu-style1 .rwd-menu-bth-line{
    transform: rotate(-45deg);
}
.rwd-menu-style1 .rwd-menu-bth-line2{
    transform: rotate(45deg);
}
.rwd-menu-bth-line,
.rwd-menu-bth-line2{
    position: absolute;
    top: 6px;
    left:0;
    width: 100%;
}
.rwd-menu-bth-line span,
.rwd-menu-bth-line2 span{
    transform:  scale(0,1);
    transition: all .5s ease;
    position: relative;
}


.rwd-menu-style1.active .rwd-menu-bth-line span,
.rwd-menu-style1.active .rwd-menu-bth-line2 span{
    transform:  scale(1,1) ;
    transition-delay: .1s;
}
.rwd-menu-style1.active> span:nth-child(1),
.rwd-menu-style1.active> span:nth-child(2),
.rwd-menu-style1.active> span:nth-child(3){
    transform: scale(0,1);
}
.rwd-menu.bth2> span:nth-child(2){
    transform: scale(0,1);
}
.rwd-menu.active> span:nth-child(odd){
    transform: scale(0);
    transition: all .4s linear;
    transition-delay: 0s;
}

.rwd-menu-style2.active> span:nth-child(2){
    transform: rotate(45deg);
    transition: all .4s linear;
}
.rwd-menu-style2.active> span:nth-child(4){
    transform: scaleX(1) rotate(-45deg);
    transition-delay: 0.3s;
}
.rwd-menu.active> span{
    background-color: #ee1b2d;
}

/*----------------hover----------------------------*/
.header-menu-title:hover .header-menu-icon,
.header-menu li.active .header-menu-icon{
    opacity: 1;
}
.header-menu-title:hover .header-menu-title-ch,
.header-menu li.active .header-menu-title-ch{
    color: #ee2f72;
}

.header2 .header-logo-img{
    width: 60px;
}
.header2 .header-menu-title{
    padding-top: 28px;
}


@media only screen and (max-width: 1300px){
    .header-style1 .header-box{
        width: 95%;
        margin: 0 auto;
    
    }
 
}

@media only screen and (max-width: 1000px){
    .header-style1 .rwd-menu{
        display: block;
    }
    .header-style1 .header-logo{
        z-index: 99;
    }
    .header-style1{
        padding: 10px 0;
    }
    .header-logo-img{
        width: 55px;
    }
    .rwd-header-menu-sytle1 .header-menu{
        width: 100%;
        height: 100vh;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 3;
        display:         flex;
        display: -webkit-flex;
        align-items: center;
        -webkit-align-items: center;
        justify-content: center;
        -webkit-justify-content: center;
        flex-direction:column;
        background-color: #f5f5f5;
        transition: none;
    }
    .header-style1.rwd-header-menu-sytle1.header2 .header-menu{
        width: 100%;
    }
    
    .rwd-header-menu-sytle1 .header-menu> li{
        display: block;
        margin: 0;
        margin-bottom: 20px;
    }
    .rwd-header-menu-sytle1 .header-menu> li:last-child{
        margin-bottom: 0;
     }
    .header-menu-title-ch{
        font-size: 18px;
    }
    #index .header-index-logo{
        display: none;
    }
    #index .header-style1 .header-logo{
        opacity: 1;
        pointer-events: auto;
    }
}