﻿/*--------------header-style1-----------------*/
#index-top{
    top: 0;
    position: absolute;
}
.nosc{
    overflow: hidden;
}
.header-style1{
    position: fixed;
    z-index: 999;
    display: block;
    width: 100%;
    top: 0;
    background-color: #FFF;
}
.header2{
    box-shadow: 0 0 10px #555;
}
.header-style1 .header-box{
    width: 1560px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    font-size: 0;
    box-sizing: border-box;
}
.header-style1 .header-logo{
    width: calc((100% - 1200px) / 2);
    max-width: 100%;
    display: inline-block;
    position: relative;
    vertical-align: middle;
}
.header-style1 .header-menu-box{
    width: 1200px;
    max-width: 100%;
    display: inline-block;
    vertical-align: middle;
    font-size: 0;
    text-align: right;
}
.header-style1 .header-menu> li{
    display: inline-block;
    box-sizing: border-box;
    vertical-align: middle;
    margin-left: 40px;
    height: 80px;
}
.header-style1 .header-menu-title:after{
    content: '/';
    font-size: 14px;
    position: absolute;
    right: -22px;
    color: #d1d1d1;
    pointer-events: none;
}
.header-style1 .header-menu> li:nth-child(5) .header-menu-title:after {
    content: '';
}
.header-link-box{
    display: block;
    position: absolute;
    right: 0;
    top: 0;
}
.header-language-box{
    width: calc((100% - 1200px) / 2);
    max-width: 100%;
    display: inline-block;
    position: relative;
    vertical-align: middle;
    text-align: right;
    left: 45px;
}
.header-language-box i{
    font-size: 14px;
    color: #555;
    margin-right: 10px;
    display: inline-block;
    vertical-align: middle;
}
.header-language-box> a{
    font-size: 14px;
    position: relative;
    color: #64bcc1;
    letter-spacing: 2px;
    margin-right: 20px;
    display: inline-block;
    vertical-align: middle;
    outline:none;
    transition: all .3s linear;
}
.header-language-box> a:nth-child(5){
    margin-right: 0;
}

.header-language-box> a:before{
    width: 95%;
    height: 1px;
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    opacity: 0;
    background-color: #61942d;
    transition: all .3s linear;
}
.header-language-box> a:after{
    content: '/';
    font-size: 14px;
    position: absolute;
    right: -12px;
    top: calc(50% - 11px);
    color: #d1d1d1;
}
.header-language-box> a:last-child:after{
    content: '';
}




/* -------------------------------------------------------------- */
.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: 14px;
    position: relative;
    color: #555;
    letter-spacing: 2px;
    line-height: 80px;
    outline:none;
    transition: all .3s linear;
}
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: 30px;
    max-width: 100%;
    position: absolute;
    right: 20px;
    z-index: 99999;
    display: none;
    top: calc(50% - 7px);
}
.rwd-menu span{
    width: 100%;
    display: block;
    margin: 0 auto;
    height: 2px;
    background-color: #61942d;
    position: relative;
}
.header-style1 .header-menu> li.rwd-header-language-box{
    display: none;
}



/*漢堡樣式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);
  }
}
/*-------------------header-service---------------------*/
.header-service-info-all{
    width: 100%;
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgb(0,0,0,0.65);
    opacity: 0;
    transition: all .3s linear;
    text-align: left;
    pointer-events: none;
}
.header-service-info-box{
    width: 1200px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    font-size: 0;
    box-sizing: border-box;
    padding-top: 20px;
}
.header-service-info{
    width: 280px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 26.66667px;
}
.header-service-info-img{
    width: 100%;
    height: 160px;
    display: block;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    position: relative;
}
.header-service-info-mask{
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    background-color: #fff;
    opacity: 0;
    transition: all .3s linear;
}
.header-service-info-text{
    font-size: 14px;
    color: #fff;
    letter-spacing: 1px;
    text-align: center;
    margin: 19px 0;
}
.header-style1 .rwd-back{
    display: none;
}
.header-service-info-box .slick-prev{
    left: -50px;
    top: calc(160px / 2);
}
.header-service-info-box .slick-next{
    right: -50px;
    top: calc(160px / 2);
}
.header-service-info-box .slick-prev:before{
    content: '\f060';
    font-weight: bold;
    font-family: "Font Awesome 5 Free";
    display: block;
    opacity: 1;
}
.header-service-info-box .slick-next:before{
    content: '\f061';
    font-weight: bold;
    font-family: "Font Awesome 5 Free";
    display: block;
    opacity: 1;
}
.header-service-info-box .slick-disabled:before, 
.header-service-info-box .slick-disabled:before{
    opacity: 0;
}
/*------------------hover--------------------*/
.header-service:hover .header-service-info-all{
    opacity: 1;
    pointer-events: inherit;
}
.header-service-info:hover .header-service-info-mask{
    opacity: 0.5;
}
.header-menu-title:hover,
.header-menu>li.active .header-menu-title{
    color: #61942d;
}
.header-language-box> a:hover{
    color: #61942d;
}
.header-language-box> a:hover:before{
    opacity: 1;
}
/*------------------------------------------*/

@media only screen and (max-width: 1680px){
    .header-style1 .header-menu-box{
        width: 1000px;
    }
    .header-style1 .header-logo,
    .header-language-box{
        width: calc((100% - 1000px) / 2);
        left: 0;
    }
}
@media only screen and (max-width: 1560px){
    .header-style1 .header-box{
        width: 95%;
        margin: 0 auto;
    }
}
@media only screen and (max-width: 1480px){
    .header-style1 .header-menu-box{
        width: 800px;
    }
    .header-style1 .header-logo,
    .header-language-box{
        width: calc((100% - 800px) / 2);
        left: 0;
    }
}
@media only screen and (max-width: 1300px){
    .header-service-info-box{
        width: 1000px;
    }
    .header-service-info{
        width: 235px;
        vertical-align: top;
        margin-right: 20px;
    }
    .header-service-info-text{
        font-size: 12px;
    }
}
@media only screen and (max-width: 1200px){
    .header-style1 .header-menu-box{
        width: 600px;
    }
    .header-style1 .header-logo,
    .header-language-box{
        width: calc((100% - 600px) / 2);
    }
}

@media only screen and (max-width: 1100px){
    .header-service-info-box{
        width: 900px;
    }
    .header-service-info{
        width: 280px;
        vertical-align: top;
        margin-right: 20px;
    }
}
@media only screen and (max-width: 1000px){
    .rwd-menu{
        display: block;
    }
    .header-style1 .rwd-menu{
        display: block;
    }
    .header-style1 .header-logo{
        box-sizing: border-box;
        padding: 5px 0;
        width: 51px;
    }
    .rwd-header-menu-sytle1 .header-menu{
        width: 100%;
        height: calc(100vh - 70px);
        position: fixed;
        top: 70px;
        left: -100%;
        z-index: 3;
        background-color: #f5f5f5;
        text-align: left;
        transition: all .3s linear;
        opacity: 0;
    }
    .rwd-header-menu-sytle1 .header-menu.active{
        left: 0;
        opacity: 1;
    }
   
    .rwd-header-menu-sytle1.header2 .header-menu{
        width: 100%;
    }
    
    .rwd-header-menu-sytle1 .header-menu> li{
        display: block;
        margin: 0;
    }
    .rwd-header-menu-sytle1 .header-menu> li:last-child{
        margin-bottom: 0;
    }
    .header-style1 .header-menu-title:after{
        content: '→';
        right: 30px;
        color: #64bcc1;
    }
    .header-style1 .header-menu> li:last-child .header-menu-title:after{
        content: '→';
    }
    .rwd-header-menu-sytle1 .header-menu> li,
    .rwd-header-menu-sytle1 .header-menu> li.rwd-header-language-box{
        height: calc(100% / 6);
        max-height: 80px;
        border-top: 1px solid #ddd;
    }
    .rwd-header-menu-sytle1 .header-menu> li.rwd-header-language-box{
        display: flex;
        align-items: center;
        justify-content:center;
        width: 100%;
        box-sizing: border-box;
        padding: 0 30px;
    }
    .rwd-header-language-box i{
        display: none;
    }
    .header-style1 .header-menu> li:last-child{
        border-bottom: 1px solid #ddd;
    }
    .header-language-box{
        display: none;
    }
    .header-menu-title{
        line-height: initial;
        width: 100%;
        height: 100%;
        display: flex;
        align-items:center;
        outline: none;
        box-sizing: border-box;
        padding: 0 30px;
    }
    .header-service-info-all{
        width: 100%;
        height: calc(100vh - 70px);
        position: fixed;
        top: 70px;
        left: -100%;
        z-index: 5;
        background-color: #f5f5f5;
        text-align: left;
        transition: all .3s linear;
        opacity: 0;
        pointer-events: none;
    }
    .rwd-header-menu-sytle1 .header-service-info-all.active{
        left: 0;
        opacity: 1;
        pointer-events: inherit;
    }
    .header-service-info-img{
        display: none;
    }
    .header-service-info-text{
        line-height: initial;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        outline: none;
        box-sizing: border-box;
        margin: 0;
        padding: 19px 30px;
        font-size: 14px;
        position: relative;
        color: #555;
        letter-spacing: 2px;
        transition: all .3s linear;
    }
    .header-service-info{
        width: 100%;
        display: block;
        box-sizing: border-box;
        vertical-align: middle;
        margin: 0;
        border-top: 1px solid #ddd;
    }
    .header-service-info-box{
        padding-top: 0;
        overflow: auto;
        max-height: calc(100vh - 70px);
    }
    .rwd-back.header-service-info{
        border-bottom: 1px solid #ddd;
    }
    .header-style1 .rwd-back{
        display: block;
    }
}

@media only screen and (max-width: 550px){
    .header-style1 .header-logo{
        width: 30px;
    }
    .rwd-menu{
        width: 20px;
    }
    .rwd-header-menu-sytle1 .header-menu{
        top: 45px;
        height: calc(100vh - 45px);
    }
    .header-service-info-box{
        padding-top: 0;
        overflow: auto;
        max-height: calc(100vh - 45px);
    }
    .header-service-info-all{
        height: calc(100vh - 45px);
        top: 45px;
    }
}