﻿/*--------------header-style1-----------------*/
.header-style1{
    position: absolute;
    z-index: 999;
    display: block;
    width: 100%;
    top: 100px;
}
.header-style1 .header-box{
    width: 1620px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    font-size: 0;
    background-color: #fff;
    border-radius: 35px;
    box-sizing: border-box;
    padding: 0 55px;
    transition: all .3s linear;
}
.header-style1 .header-logo{
    width: 230px;
    max-width: 100%;
    display: inline-flex;
    display: -webkit-inline-flex;
    align-items: center;
    -webkit-align-items: center;
    justify-content: center;
    -webkit-justify-content: center;
    flex-direction:column;
    position: relative;
    vertical-align: middle;
    box-sizing: border-box;
    transition: all .3s linear;
}
.header-style1 .header-menu-box{
    width: calc(100% - 230px);
    max-width: 100%;
    display: inline-block;
    vertical-align: middle;
    font-size: 0;
    text-align: center;
    box-sizing: border-box;
    transition: all .3s linear;
}
.header-style1 .header-menu> li{
    display: inline-block;
    vertical-align: middle;
    position: relative;
    margin-left: 75px;
}
.header-style1 .header-menu> li:last-child{
    margin-right: 0;
}
.header-style1.header2{
    position: fixed;
    top: 30px;
}
.header-style1.header2 .header-box{
    box-shadow: 0 0 10px rgba(0,0,0,0.35);
}
.header-menu-title{
    font-size: 20px;
    line-height: 70px;
    font-family: 'Noto Sans TC';
    font-weight: 700;
    color: #5a241f;
    letter-spacing: 0.1em;
    position: relative;
    box-sizing: border-box;
    padding-left: 0.1em;
    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: 40px;
    height: 40px;
    max-width: 100%;
    position: absolute;
    right: 4.5vw;
    box-sizing: border-box;
    padding: 12px 8px;
    z-index: 99999;
    display: none;
    top: calc(50% - 20px);
    border-radius: 50%;
}
.rwd-menu span{
    width: 100%;
    display: block;
    margin: 0 auto;
    height: 2px;
    background-color: #5a241f;
    position: relative;
}




/*漢堡樣式1*/
.rwd-menu-style1> span:nth-child(even){
    margin: 5px 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: 19px;
    left: 15%;
    width: 70%;
}
.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);
  }
}


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

@media only screen and (max-width: 1620px){
    .header-style1 .header-box{
        width: 1400px;
    }
    .header-style1 .header-menu> li{
        margin-left: 40px;
    }
}
@media only screen and (max-width: 1400px){
    .header-style1 .header-box{
        width: 1200px;
        padding: 0 35px;
    }
    .header-style1 .header-logo{
        width: 200px;
    }
    .header-style1 .header-menu-box {
        width: calc(100% - 200px);
    }
    .header-style1 .header-menu> li {
        margin-left: 35px;
    }
    .header-menu-title{
        font-size: 18px;
    }
}
@media only screen and (max-width: 1200px){
    .header-style1{
        top: 70px;
    }
    .header-style1 .header-box{
        width: 1000px;
        padding: 0 20px;
    }
    .header-style1 .header-logo{
        width: 160px;
    }
    .header-style1 .header-menu-box {
        width: calc(100% - 160px);
    }
    .header-style1 .header-menu> li {
        margin-left: 25px;
    }
    .header-menu-title{
        font-size: 16px;
    }
}
@media only screen and (max-width: 1000px){
    .header-style1 .header-box{
        width: 750px;
        padding: 0 10px;
        border-radius: 25px;
    }
    .header-style1{
        top: 30px;
    }
    .header-style1 .header-logo{
        width: 135px;
    }
    .header-style1 .header-menu-box {
        width: calc(100% - 135px);
        background-color: transparent;
    }
    .header-style1 .header-menu> li{
        margin-left: 10px;
    }
    .header-menu-title{
        font-size: 14px;
        line-height: 50px;
    }
}
@media only screen and (max-width: 768px){
    .header-style1{
        pointer-events: none;
        top: 10px;
    }
    .header-style1.header2{
        top: 10px;
    }
    .header-style1 .header-logo{
        pointer-events: all;
        width: 150px;
    }
    .header-style1 .header-box{
        width: 95vw;
        padding: 9px 20px;
    }
    .rwd-menu{
        display: block;
        pointer-events: all;
    }
    .header-style1 .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: #fbe2dd;
        transition: all .3s linear;
        opacity: 0;
        pointer-events: none;
    }
    .rwd-header-menu-sytle1 .header-menu.active{
        opacity: 1;
        pointer-events: all;
    }
    .rwd-header-menu-sytle1 .header-menu::after{
        content: '';
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        background-image: url(../img/front/original/logo.png);
        background-repeat: no-repeat;
        background-position: center;
        background-size: 80%;
        opacity: 0.05;
        pointer-events: none;
    }
   
    .rwd-header-menu-sytle1.header2 .header-menu{
        width: 100%;
    }
    
    .rwd-header-menu-sytle1 .header-menu> li{
        display: block;
        margin: 0;
        margin-bottom: 2vh;
    }
    .rwd-header-menu-sytle1 .header-menu.active> li{
        pointer-events: all;
    }
    .rwd-header-menu-sytle1 .header-menu> li:last-child{
        margin-bottom: 0;
    }
    .header-menu-title{
        line-height: 30px;
        font-size: 16px;
    }
}
@media only screen and (max-height: 400px){
    .rwd-header-menu-sytle1 .header-menu::after{
        background-size: 60%;
    }
}



@media only screen and (min-width: 1001px){
    .header-menu-title::before{
        content: '';
        width: 20px;
        height: 20px;
        background-image: url(../img/front/original/header-icon.png);
        background-position: center;
        background-size: contain;
        background-repeat: no-repeat;
        position: absolute;
        top: calc(50% - 10px);
        left: -20px;
        animation: headerIconAnima 10s linear 0s infinite;
        opacity: 0;
        transition: all .3s linear;
    }
    .header-style1 .header-menu> li.active .header-menu-title::before,
    .header-menu-title:hover::before{
        opacity: 1;
    }
    .header-style1 .header-menu> li.active .header-menu-title::after,
    .header-menu-title:hover::after{
        width: 100%;
    }
    @keyframes headerIconAnima {
        from {
            transform: rotate(0);
        }
    
        to {
            transform: rotate(360deg);
        }
    }
}
@media only screen and (min-width: 769px){
    .header-style1{
        animation: fadeInDown 1s ease 1s 1 both;
    }
}
.header-menu-title::after{
    content: '';
    width: 0%;
    height: 2px;
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: #5a241f;
    transition: all .3s linear;
}
.header-style1 .header-menu> li.active .header-menu-title,
.header-menu-title:hover{
    color: #5a241f;
}
.header-style1 .header-menu> li.active .header-menu-title::after,
.header-menu-title:hover::after{
    width: 100%;
}