﻿/*-----------------header-style7-------------------*/
.header-style7 .header-box{
    width: 1600px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    position: relative;
    padding: 10px 0; 
    transition: all .5s ease;
}
#index .header-style7 .header-box{
    width: 1000px;
}
.header-style7{
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    width: 100%;
    display: block;
    background-color: #FFF;
    transition: all .5s ease;
}
#index .header-style7{
    position: relative;
}
.header-style7 .header-logo{
    position: relative;
    z-index: 3;
    width: 152px;
    max-width: 100%;
    transition: all .5s ease;
}
.header-style7 .rwd-header-logo{
    display: none;
}
.header-style7 .header-menu-box{
    opacity: 0;
    width: 100%;
    position: fixed;
    top: 0;
    height: 100vh;
    left: 0;
    transition: all .5s ease;
    pointer-events: none;
    background-color: #f1f1f1;
 
}
.header-style7 .header-menu-box.active{
    opacity: 1;
    pointer-events: auto;
}
.header-style7 .header-menu{
    width: 100%;
    height: 100%;
    display:         flex;
    display: -webkit-flex;
          align-items: center;
    -webkit-align-items: center;
          justify-content: center;
    -webkit-justify-content: center;
    flex-direction:column;
    -webkit-flex-direction:column;
}

.header-style7 .header-menu li{
    margin-bottom: 20px;
    height: 32px;
    overflow: hidden;
}
.header-style7 .header-menu li:last-child{
    margin-bottom: 0;
}
.header-menu-title-ch{
    font-size: 20px;
    letter-spacing: 1px;
    display: block;
    position: relative;
    transition: all .8s ease;
    text-align: center;
    top: 0;
}
.header-menu-title-en{
    font-size: 20px;
    letter-spacing: 1px;
    display: block;
    position: relative;
    transition: all .8s ease;
    text-align: center;
    top: 0;
    color: #d593be;
}

.header-menu-list-box li{
    margin-bottom: 30px
}

.header-menu-title{
    font-size: 18px;
    position: relative;
}
div.header-menu-title{
    cursor: context-menu;
}


.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: 20px;
    max-width: 100%;
    position: absolute;
    right: 20px;
    z-index: 99999;
    display: none;
    cursor: pointer;
    top: calc(50% - 7px);
}
.header-style7 .rwd-menu{
    display: block;
}
.rwd-menu span{
    width: 100%;
    display: block;
    margin: 0 auto;
    height: 1px;
    background-color: #333333;
    position: relative;
}

.rwd-menu> span:nth-child(even){
    margin: 6px 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 li a:hover span,
.header-menu li.active a span{
    top: -32px;
}


/*------------------動畫-------------------------------*/
.header-style7.header2 {
    box-shadow: rgba(0,0,0,0.2)2px 2px 5px;
}
.header-style7.header2 .header-logo{
    width: 100px;
}
#index .header-style7.header2 {
    box-shadow: none;
}
#index .header-style7.header2 .header-logo{
    width: 152px;
}

@media only screen and (max-width: 1600px){
    .header-style7 .header-box{
        width: 95%;
    }
}



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

@media only screen and (max-width: 1000px){

    #index .header-style7 .header-box{
        width: 95%;
    }
    #index .header-style7.header2 .header-logo{
        width: 100px;
    }
    .header-style7 .header-logo {
        width: 100px;
    }
    .header-menu-title-ch{
        font-size: 16px;
    }
    .rwd-header-menu-sytle1 .header-menu> li{
        margin-bottom: 10px;
    }
    .rwd-menu{
        display: block;
    }
  
    .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;
    }
   
    .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;
     }
    .rwd-header-menu-sytle2 .header-menu-box.active .header-menu{
        top: 0;
    }
    .rwd-header-menu-sytle2 .header-menu{
        width: 100%;
        height: 100vh;
        position: fixed;
        top: -100%;
        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: all .5s ease;
    }

}

/*@media only screen and (max-width: 750px){
    .header-style7 .header-logo{
        width: 100px;
    }
    .header-style7 .header-logo a{
        display: none;
    }
    .header-style7 a.rwd-header-logo{
        display: block;
    }
}*/
@media only screen and (max-width: 550px){
    .header-style7.header2 .header-logo,
    .header-style7 .header-logo{
        width: 100px;
    }
    #index .header-style7.header2 .header-logo{
        width: 100px;
    }
}