﻿
/*--------------header-style1-----------------*/
.header-style1{
    display: block;
    width: 100%;
    background-color: #FFF;
}
.header-style1 .header-box{
    width: 100%;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    font-size: 0;
    box-sizing: border-box;
    padding: 35px 0;
    padding-left: 6.77085vw;
    padding-right: 60px;
}
.header-style1 .header-logo{
    width: 200px;
    max-width: 100%;
    display: inline-block;
    position: relative;
    vertical-align: middle;
}
.header-style1 .header-menu-box{
    display: inline-block;
    vertical-align: middle;
    font-size: 0;
    padding-left: 150px;
}
.header-style1 .header-menu> li{
    display: inline-block;
    vertical-align: middle;
    position: relative;
    margin: 0 20px;
}

.header-menu-title{
    font-size: 16px;
    color: #000;
    position: relative;
    font-family: 'Noto Sans TC';
    letter-spacing: 0.06em;
    line-height: 60px;
    font-weight: 300;
    transition: all .3s linear;
}


.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;
}

.header-fixed-box{
    position: fixed;
    top: 0;
    right: 0;
    width: 60px;
    height: 100vh;
    max-height: 100vh;
    /* background-color: #fafafa; */
    z-index: 999;
}
.rwd-menu-box{
    width: 100%;
    height: 60px;
    display:         flex;
    display: -webkit-flex;
    align-items: center;
    -webkit-align-items: center;
    justify-content: center;
    -webkit-justify-content: center;
    flex-direction:column;
    box-sizing: border-box;
    background-color: #bac2b5;
    cursor: pointer;
    position: relative;
    z-index: 1;
    transition: all .3s linear;
}
.rwd-menu{
    width: 36px;
    transition: all .3s ease;
}
.rwd-menu span{
    width: 100%;
    display: block;
    height: 1px;
    background-color: #fff;
    position: relative;
    transition: all .3s ease;
}
.rwd-menu span:nth-child(2){
    width: 26px;
    margin: 9px 0;
}
.rwd-menu span:nth-child(3){
    width: 16px;
}
.rwd-menu-box.active .rwd-menu{
    transform: rotateZ(90deg);
}
.rwd-menu-box.active .rwd-menu span:nth-child(1){
    transform: rotateZ(45deg);
    width: 100%;
}
.rwd-menu-box.active .rwd-menu span:nth-child(2){
    transform: rotateZ(135deg);
    width: 100%;
    margin: 0;
}
.rwd-menu-box.active .rwd-menu span:nth-child(3){
    width: 0%;
}
.rwd-menu-box.active:hover .rwd-menu{
    transform: rotateZ(180deg);
}





.header-other-menu{
    width: 100%;
    display: block;
    box-sizing: border-box;
    padding-top: 35px;
}
.header-other-menu li{
    width: 100%;
    display: block;
    text-align: center;
    margin-bottom: 30px;
}
.header-other-menu-title{
    font-size: 32px;
    line-height: 32px;
    color: #000;
    display: inline-block;
    transition: all .3s linear;
}
.header-other-fb .header-other-menu-title,
.header-other-line .header-other-menu-title{
    font-size: 34px;
    line-height: 34px;
}
.header-other-ig .header-other-menu-title{
    font-size: 36px;
    line-height: 36px;
}
.header-fixed-goTop{
    position: absolute;
    bottom: 60px;
    left: 0;
    width: 100%;
    text-align: center;
    opacity: 0;
    transition: all .3s linear;
}
.header-fixed-goTop p{
    font-size: 14px;
    letter-spacing: 0.06em;
    color: #000;
    font-family: "Lato";
    font-weight: 700;
    box-sizing: border-box;
    padding-left: 0.06em;
    transition: all .3s linear;
}
.header-fixed-goTop span{
    width: 1px;
    height: 100px;
    display: inline-block;
    vertical-align: middle;
    position: relative;
    margin-top: 10px;
    background-color: #000;
    transition: all .3s linear;
}

.header2 .header-fixed-goTop{
    opacity: 1;
}

.header-rwd-menu-box{
    position: fixed;
    top: 0;
    right: 0;
    display: flex;
    visibility: hidden;
    overflow: hidden;
    width: 100%;
    height: 100%;
    pointer-events: none;
    outline: 1px solid transparent;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    align-items: center;
    justify-content: center;
}
.header-rwd-menu-box.active{
    visibility: visible;
    pointer-events: auto;
}
.header-rwd-menu-all-box{
    display: flex;
    overflow: hidden;
    width: 200vw;
    height: 200vw;
    transition: all 0.4s ease;
    -webkit-transform: scale(0);
    transform: scale(0);
    text-align: center;
    color: #fefefe;
    border-radius: 50%;
    background-color: #bac2b5;
    flex: none;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    align-items: center;
    justify-content: center;
}
.header-rwd-menu-box.active .header-rwd-menu-all-box{
    transition-duration: 0.75s;
    -webkit-transform: scale(1);
    transform: scale(1);
}
.header-rwd-menu{
    display: block;
    max-height: 100vh;
}
.header-rwd-menu li{
    display: block;
}
.header-rwd-menu-title{
    font-size: 16px;
    color: #000;
    position: relative;
    font-family: 'Noto Sans TC';
    letter-spacing: 0.06em;
    line-height: 60px;
    font-weight: 300;
    transition: all .3s linear;
}

/*表單送出*/
.contact-thanks-box{
    width: 100%;
    height: 100vh;
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    display: none;
}
.contact-thanks-box.active{
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
    display: -webkit-flex;
    display: flex;
}
.contact-thanks{
    max-width: 1000px;
    min-width: 200px;
    /* width: 400px; */
    padding: 40px 30px;
    box-sizing: border-box;
    background-color: #fff;
    position: relative;
    z-index: 1;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.4);
}
.contact-thanks-p{
    font-size: 16px;
    color: #555;
    transform: scaleY(1.05);
    letter-spacing:  1px;
    line-height: 2;   
}
.contact-out{
    width: 21px;
    height: 21px;
    max-width: 100%;
    display: block;
    position: absolute;
    border-radius: 50%;
    top: 5px;
    right: 5px;
    cursor: pointer;
}
.contact-out span{
    width: 15px;
    height: 1px;
    background-color: #888;
    display: block;
    margin: 0 auto;
    position: relative;
}
.contact-out span:nth-child(1){
    top: 10px;
    left: 0px;
    transform: rotate(45deg);
}
.contact-out span:nth-child(2){
    top: 9px;
    left: 0px;
    transform: rotate(-45deg);
}


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


@media only screen and (max-width: 1000px){
    .header-menu{
        display: none;
    }
}
@media only screen and (max-width: 768px){
    .header-fixed-box{
        height: 60px;
    }
    .header-other-menu{
        position: absolute;
        top: 60px;
        right: 0;
        z-index: 1;
        opacity: 0;
        pointer-events: none;
        transition: all .3s linear;
    }
    .header-other-menu.active{
        opacity: 1;
        pointer-events: all;
        transition-delay: .2s;
    }
    .header-style1 .header-box{
        padding: 15px 0;
        padding-left: 20px;
        padding-right: 60px;
    }
    .header-style1 .header-logo{
        width: 140px;
    }
    .header-other-menu li{
        margin-bottom: 20px;
    }
}
@media only screen and (max-width: 550px){
    .header-rwd-menu-all-box {
        width: 250vw;
        height: 250vw;
    }
}

@media only screen and (min-width: 1001px){
    .rwd-menu-box:hover{
        background-color: #9aa18f;
    }
    .header-style1 .header-menu> li.active .header-menu-title,
    .header-style1 .header-menu> li:hover .header-menu-title{
        color: #9aa18f;
    }
    .header-other-menu-title:hover{
        color: #9aa18f;
    }
    .header-fixed-goTop:hover p{
        color: #9aa18f;
    }
    .header-fixed-goTop span::before {
        content: '';
        width: 1px;
        height: 14px;
        background-color: #aea2a2;
        position: absolute;
        top: 0;
        left: 0;
        transform-origin: top;
        transform: translateY(20px) rotateZ(0);
        opacity: 0;
        transition: all .3s linear;
    }
    .header-fixed-goTop span::after {
        content: '';
        width: 1px;
        height: 14px;
        background-color: #aea2a2;
        position: absolute;
        top: 0;
        left: 0;
        transform-origin: top;
        transform: translateY(20px) rotateZ(0);
        opacity: 0;
        transition: all .3s linear;
    }
    .header-fixed-goTop:hover span {
        opacity: 1;
        background-color: #aea2a2;
    }
    .header-fixed-goTop:hover span::before {
        transform: translateY(0) rotateZ(35deg) scaleX(1.5);
        opacity: 1;
    }
    .header-fixed-goTop:hover span::after {
        transform: translateY(0) rotateZ(-35deg) scaleX(1.5);
        opacity: 1;
    }
}