﻿/*--------------header-style1-----------------*/
.header-style1{
    position: fixed;
    z-index: 1000;
    display: block;
    width: 100%;
    top: 0;
    background-color: #FFF;
    transition: all .3s linear;
    box-shadow: 0 0 5px #555;
}
.header-style1 .header-box{
    width: 100%;
    display: block;
    margin: 0 auto;
    font-size: 0;
}
.header2{
    box-shadow: 0 0 5px #555;
}
.header2 .header-menu-title{
    height: 60px;
}

.header-style1 .header-logo{
    width: 420px;
    max-width: 100%;
    display: inline-block;
    position: relative;
    vertical-align: middle;
    text-align: right;
    margin: 10px 0;
    padding-left: 100px;
    box-sizing: border-box;
    transition: all .3s linear;
}
.header-style1 .header-logo a>span{
    width: 185px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
    transition: all .3s linear;
}
.header-style1 .header-logo a>p{
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #000;
    display: inline-block;
    vertical-align: middle;
    margin-top: 0px;
    box-sizing: border-box;
    border-left: 1px solid #000;
    padding-left: 10px;
    transition: all .3s linear;
}
.header-style1 .header-menu-box{
    width: calc(100% - 420px);
    display: inline-block;
    vertical-align: middle;
    font-size: 0;
    text-align: right;
    transition: all .3s linear;
}
.header2 .header-logo{
    width: 350px;
    margin: 5px 0;
}
.header2 .header-menu-box{
    width: calc(100% - 350px);
}
.header2 .header-logo a>span{
    width: 140px;
}
.header2 .header-logo a>p{
    font-size: 14px;
    padding-left: 9px;
    line-height: 20px;
}

.header-style1 .header-menu> li{
    display: inline-block;
    vertical-align: middle;
    position: relative;
}
.header-link-box{
    display: block;
    position: absolute;
    right: 0;
    top: 0;
}
/* -------------------------------------------------------------- */
.header2.header-style2 .rwd-menu{
    background-color: #01344f;
}
.header2.header-style2 .rwd-menu span{
    background-color: #FFF;
}
.header-menu-list-box li{
    margin-bottom: 30px
}

.header-menu-title{
    font-size: 18px;
    font-weight: 600;
    position: relative;
    width: 140px;
    height: 94px;
    text-align: center;
    display: block;
    border-left: 1px #ddd solid;
    letter-spacing: 1px;
    display:flex;
    display: -webkit-flex;
    align-items: center;
    -webkit-align-items: center;
    justify-content: center;
    -webkit-justify-content: center;
    flex-direction:row;
    transition: all .3s linear;
    box-sizing: border-box;
}
.header-menu-title i{
    font-size: 28px;
    vertical-align: middle;
    margin-right: 10px;
}
.header-membership .header-menu-title{
    background-color: #1b1b1b;
    color: #fff;
    cursor: pointer;
}


.header-menu-title:after{
    content: '';
    background-color: #eb5e28;
    height: 0;
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    transition: all .3s linear;
}

.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: 20px;
    z-index: 99999;
    display: none;
    top: calc(50% - 14px);
}
.rwd-menu span{
    width: 100%;
    display: block;
    margin: 0 auto;
    height: 2px;
    background-color: #eb5e28;
    position: relative;
}


/*漢堡樣式1*/
.rwd-menu-style1> span:nth-child(even){
    margin: 4px auto;
    transition: all .4s linear;
}
.rwd-menu-style1> span:nth-child(1){
    transform: scale(1);
    transform-origin: left;
    transition: all .4s linear;
}
.rwd-menu-style1> span:nth-child(3){
    transform: scale(1);
    transform-origin: right;
    transition: all .4s linear;
}
.rwd-menu-style1> 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-style1 .rwd-menu-bth-line,
.rwd-menu-style1 .rwd-menu-bth-line2{
    position: absolute;
    top: 6px;
    left:0;
    width: 100%;
}
.rwd-menu-style1 .rwd-menu-bth-line span,
.rwd-menu-style1 .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-style1.active> span:nth-child(odd){
    transform: scale(0);
    transition: all .4s linear;
    transition-delay: 0s;
}

/*漢堡樣式2*/

.rwd-menu-style2> span:nth-child(4){
    display: none;
}
.rwd-menu-style2> span:nth-child(2){
    display: block;
    margin: 4px auto;
}
.rwd-menu-style2{
    width: 25px;
}
.rwd-menu-style2> span{
    transition: all 0.3s ease-in-out;
}
.rwd-menu-style2 .rwd-menu-bth-line,
.rwd-menu-style2 .rwd-menu-bth-line2{
    display: none;
}
.rwd-menu-style2.active{
    animation: smallbig 0.6s forwards;
}
.rwd-menu-style2.active> span:nth-child(1){
    -webkit-transform: translateY(7px) rotate(45deg);
    -ms-transform: translateY(7px) rotate(45deg);
    -o-transform: translateY(7px) rotate(45deg);
    transform: translateY(7px) rotate(45deg);
}
.rwd-menu-style2.active> span:nth-child(2){
    opacity: 0;
}
.rwd-menu-style2.active> span:nth-child(3){
    -webkit-transform: translateY(-5px) rotate(-45deg);
    -ms-transform: translateY(-5px) rotate(-45deg);
    -o-transform: translateY(-5px) rotate(-45deg);
    transform: translateY(-5px) rotate(-45deg);
}

.rwd-menu-style2.active> span:nth-child(1), 
.rwd-menu-style2.active> span:nth-child(2), 
.rwd-menu-style2.active> span:nth-child(3) {
    -webkit-transition-delay: 0.2s;
    -o-transition-delay: 0.2s;
    transition-delay: 0.2s;
}




@keyframes smallbig{
  0%, 100%{
    -webkit-transform: scale(1);
    -ms-transform: scale(1);
    -o-transform: scale(1);
    transform: scale(1);
  }

  50%{
    -webkit-transform: scale(0);
    -ms-transform: scale(0);
    -o-transform: scale(0);
    transform: scale(0);
  }
}
/*<----------hover---------->*/
.header-member .header-menu-title:hover span,
.header-member.active  .header-menu-titlespan{
    background-image:url(../img/front/header-member-hover.png);
}

/*------------------------------------------*/
@media only screen and (min-width: 1001px){
    .header-menu-title:hover,
    .header-menu li.active .header-menu-title{
        color: #eb5e28;
    }
    .header-menu-title:hover:after,
    .header-menu li.active .header-menu-title:after{
        height: 4px;
    }
    .header-contact .header-menu-title:hover span,
    .header-contact.active .header-menu-title span{
        background-image:url(../img/front/header-contact-hover.png);
    }
}
@media only screen and (max-width: 1700px){
    .header-style1 .header-logo{
        width: 370px;
        box-sizing: border-box;
        padding-left: 50px;
    }
    .header2 .header-logo{
        width: 300px;
    }
    .header-style1 .header-menu-box{
        width: calc(100% - 370px);
    }
    .header2 .header-menu-box{
        width: calc(100% - 300px);
    }
    .header-menu-title{
        width: 120px;
    }
}
@media only screen and (max-width: 1280px){
    .header-style1 .header-logo{
        width: 340px;
        padding-left: 20px;
        margin: 14px 0;
    }
    .header-style1 .header-menu-box{
        width: calc(100% - 340px);
    }
    .header-menu-title {
        width: 110px;
    }
    .header2 .header-logo{
        width: 270px;
        margin: 5px 0;
    }
    .header2 .header-menu-box{
        width: calc(100% - 270px);
    }
}

@media only screen and (max-width: 1200px){
    .header-menu-title i{
        font-size: 24px;
        margin-right: 5px;
    }
    .header-contact .header-menu-title span{
        margin-right: 3px;
        width: 25px;
        height: 25px;
    }
    .header-menu-title {
        width: 90px;
        font-size: 16px;
    }
    .header-style1 .header-logo {
        width: 305px;
    }
    .header-style1 .header-logo a>span{
        width: 160px;
    }
    .header-style1 .header-logo a>p{
        font-size: 16px;
    }
    .header-style1 .header-menu-box{
        width: calc(100% - 305px);
    }
}
@media only screen and (max-width: 1000px){
    .rwd-menu{
        display: block;
        top: calc(50% - 7px);
    }
    .header-contact .header-menu-title span{
        background-image:url(../img/front/header-contact-rwd.png);
    }
    .rwd-header-menu-sytle1 .header-menu{
        width: 100%;
        height: calc(100vh - 59px);
        position: fixed;
        top: 59px;
        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: rgba(255,104,0,0.9);
        opacity: 0;
        pointer-events: none;
        transition: all .3s linear;
    }
    .rwd-header-menu-sytle1 .header-menu.active{
        opacity: 1;
        pointer-events: all;
    }
    .rwd-header-menu-sytle1.header2 .header-menu{
        height: calc(100vh - 59px);
        top: 59px;
    }
    
    .rwd-header-menu-sytle1 .header-menu> li{
        display: block;
        margin: 0;
        margin-bottom: 10px;
    }
    .rwd-header-menu-sytle1 .header-menu> li:last-child{
        margin-bottom: 0;
    }
    .header-style1 .header-logo{
        margin: 9px 0; 
    }
    .header-style1 .header-logo a>span {
        width: 155px;
    }
    .header-menu-title{
        border: none;
        height: 40px;
        line-height: 40px;
        color: #fff;
    }
    .header2 .header-menu-title{
        height: 40px;
    }
    .header-member .header-menu-title{
        background-color: transparent;
    }
    .header-menu-title i{
        width: 50px;
        vertical-align: middle;
        margin-right: 0;
    }
    .header-contact .header-menu-title span,
    .header-member .header-menu-title span{
        margin: 0 12.5px;
        width: 25px;
        height: 25px;
    }
}
@media only screen and (max-width: 600px){
    .header-style1 .header-logo{
        width: 251px;
        box-sizing: border-box;
        padding-left: 10px;
        margin: 2px 0;
    }
    .header-style1 .header-logo a>span {
        width: 130px;
    }
    .header-style1 .header-logo a>p{
        font-size: 14px;
        line-height: 20px;
        padding-left: 10px;
    }
    .rwd-header-menu-sytle1 .header-menu,
    .rwd-header-menu-sytle1.header2 .header-menu{
        height: calc(100vh - 38px);
        top: 38px;
    }
    .header-menu-title{
       height: 50px;
       line-height: 50px;
    }
    .member-login{
       width: 300px;
       padding: 20px;
    }
    .member-login-line-t, .member-login-line-l, .member-login-line-b, .member-login-line-r{
        display: none;
    }
    .member-login-close{
        top: -50px;
        right: -5px;
    }
    .header2 .header-menu-title{
        height: 50px;
    }
    /*webkit瀏覽器專用*/
    .member-login-form-text::-webkit-input-placeholder { 
        font-size: 14px;
    }
    /*Firefox 4-18瀏覽器專用*/
    .member-login-form-text::-moz-placeholder {
        font-size: 14px;
    }
    /*Firefox 19+瀏覽器專用*/
    .member-login-form-text::-moz-placeholder{
        font-size: 14px;
    }
    /*IE10瀏覽器專用*/
    .member-login-form-text:-ms-input-placeholder{
        font-size: 14px;
    }
}