﻿/*--------------header-style1-----------------*/
.header-style1{
    position: fixed;
    z-index: 999;
    display: block;
    width: 100%;
    top: 0;
    left: 0;
    background-color: #FFF;
    box-sizing: border-box;
    border: 10px solid #7B2532;
    padding: 30px 0;
    border-bottom: none;
}
.header-style1 .header-box{
    width: 1280px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    font-size: 0;
}
.header-style1 .header-logo{
    width: 120px;
    max-width: 100%;
    display: inline-block;
    position: relative;
    vertical-align: bottom;
    /* transition: all .3s linear; */
}
.header-style1 .header-menu-box{
    width: calc(100% - 120px);
    display: inline-block;
    vertical-align: bottom;
    font-size: 0;
    text-align: right;
}
.header-style1 .header-menu> li{
    display: inline-block;
    vertical-align: middle;
    position: relative;
    margin-left: 60px;
}
.header-menu-title{
    display: block;
    position: relative;
    overflow: hidden;
    height: 40px;
    text-align: center;
}
.header-menu-title p{
    font-size: 18px;
    position: relative;
    font-family: "Roboto";
    color: #7b2532;
    line-height: 40px;
    letter-spacing: 0.06em;
    transition: all .3s linear;
}
.header-menu-title p::after{
    content: '';
    width: 100%;
    height: 1px;
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: #7b2532;
    opacity: 0;
    transition: all .3s linear;
}
.header-menu-title span{
    font-size: 18px;
    font-family: "Noto Sans TC";
    color: #7b2532;
    line-height: 40px;
    letter-spacing: 0.06em;
    display: block;
    position: relative;
    transition: all .3s linear;
}
.header-menu-title span::after{
    content: '';
    width: 0%;
    height: 1px;
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: #7b2532;
    transition: all .3s linear;
}
.header-style1 .header-url{
    margin-bottom: 15px;
    transition: all .3s linear;
}
.header-style1 .header-url> li{
    display: inline-block;
    vertical-align: middle;
    position: relative;
    margin-left: 30px;
}
.header-url-title{
    font-size: 30px;
    position: relative;
    color: #7b2532;
    line-height: 60px;
    letter-spacing: 0.06em;
    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% - 7px);
}
.rwd-menu span{
    width: 100%;
    display: block;
    margin: 0 auto;
    height: 2px;
    background-color: #7b2532;
    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);
  }
}

.fixed-caveat-box{
    width: 100%;
    height: 100%;
    position: fixed;
    z-index: 1002;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 1);
    display:         flex;
    display: -webkit-flex;
    align-items: center;
    -webkit-align-items: center;
    justify-content: center;
    -webkit-justify-content: center;
    flex-direction:column;
}
.fixed-caveat-info-box{
    width: 550px;
    max-width: 95%;
    box-sizing: border-box;
    padding: 50px 40px;
    background-color: #fff;
    font-size: 0;
}
.fixed-caveat-info-title{
    font-size: 22px;
    color: #000;
    font-family: 'Noto Sans TC';
    font-weight: 700;
    letter-spacing: 0.06em;
    text-align: center;
}
.fixed-caveat-info-text{
    font-size: 18px;
    color: #000;
    font-family: 'Noto Sans TC';
    letter-spacing: 0.06em;
    text-align: center;
}
.fixed-caveat-btn-box{
    margin-top: 50px;
}
.fixed-caveat-btn{
    width: 44%;
    margin: 0 3%;
    display: inline-block;
    vertical-align: middle;
    background-color: #d1d1d1;
    border-radius: 5px;
    border: 1px solid #000;
    box-sizing: border-box;
    text-align: center;
    font-size: 16px;
    color: #000;
    font-family: 'Noto Sans TC';
    letter-spacing: 0.06em;
    line-height: 40px;
    cursor: pointer;
}
.btn-isYes{
    background-color: #7b2532;
    color: #fff;
}

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

@media only screen and (max-width: 1300px){
    .header-style1 .header-box{
        width: 1180px;
    }
}
@media only screen and (max-width: 1200px){
    .header-style1 .header-box{
        width: 980px;
    }
}


@media only screen and (max-width: 1000px){
    .header-style1{
        border-width: 5px;
        padding: 10px 0;
    }
    .header-style1 .header-box{
        width: calc(95vw - 10px);
    }
    .header-style1 .header-logo{
        width: 73px;
        vertical-align: middle;
    }
    .header-style1 .header-menu-box{
        width: calc(100% - 127px);
        vertical-align: middle;
    }
    .header-style1 .header-url{
        margin-bottom: 0;
        position: absolute;
        right: 70px;
        top: calc(50% - 20px);
    }
    .header-style1 .header-url> li{
        margin-left: 20px;
    }
    .header-url-title{
        font-size: 24px;
        line-height: 40px;
    }
    .rwd-menu{
        display: block;
    }
    .header-style1 .rwd-menu{
        display: block;
    }

    .rwd-header-menu-sytle1 .header-menu{
        width: calc(100% - 10px);
        height: calc(100% - 163px);
        position: fixed;
        top: 98px;
        left: 5px;
        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;
        text-align: left;
        opacity: 0;
        pointer-events: none;
        transition: all .3s linear;
    }
    .rwd-header-menu-sytle1 .header-menu.active{
        opacity: 1;
        pointer-events: all;
    }
    .header-style1 .header-menu> li{
        margin-left: 0;
    }
}
@media only screen and (max-width: 550px){
    .header-style1{
        padding: 5px 0;
    }
    .header-style1 .header-logo{
        width: 55px;
    }
    .rwd-menu{
        right: 10px;
    }
    .header-style1 .header-url{
        right: 50px;
    }
    .header-style1 .header-url> li{
        margin-left: 10px;
    }
    .rwd-header-menu-sytle1 .header-menu{
        height: calc(100% - 135px);
        top: 70px;
    }
}


.header2{
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.35);
}

@media only screen and (min-width: 1001px){
    .header2{
        padding: 10px 0;
    }
    .header2 .header-logo{
        width: 80px;
    }
    .header2 .header-url{
        margin-bottom: 5px;
        margin-left: 30px;
    }
    .header2 .header-menu-box{
        width: calc(100% - 80px);
        display: inline-flex;
        display: -webkit-inline-flex;
        align-items: center;
        -webkit-align-items: center;
        justify-content: flex-start;
        -webkit-justify-content: flex-start;
        flex-direction: row-reverse;
    }


    .header-menu> li.active .header-menu-title p,
    .header-menu-title:hover p{
        transform: translateY(-100%);
    }
    .header-menu> li.active .header-menu-title span,
    .header-menu-title:hover span{
        transform: translateY(-100%);
    }
    .header-menu> li.active .header-menu-title span::after,
    .header-menu-title:hover span::after{
        width: 100%;
        transition-delay: .3s;
    }


    .header-url-title:hover{
        color: #511820;
        text-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    }
}