﻿/*--------------header-style1-----------------*/
.header-style1{
    position: absolute;
    z-index: 999;
    display: block;
    width: 100%;
    top: 0;
}
.header-style1 .header-box{
    width: 1200px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    font-size: 0;
}
.header-style1 .header-logo{
    width: 100%;
    height: 80px;
    position: relative;
    text-align: center;
    display:         flex;
    display: -webkit-flex;
    align-items: center;
    -webkit-align-items: center;
    justify-content: center;
    -webkit-justify-content: center;
    flex-direction: column;
    transition: all .3s linear;
}
.header-style1 .header-menu-box{
    width: 100%;
    display: block;
    font-size: 0;
    text-align: center;
}
.header-style1 .header-menu> li{
    display: inline-block;
    vertical-align: middle;
    position: relative;
    margin: 0 25px;
}

.header-menu-title{
    font-size: 16px;
    font-family: "Noto Sans TC";
    line-height: 40px;
    color: #fff;
    letter-spacing: 0.06em;
    position: relative;
}
div.header-menu-title{
    cursor: context-menu;
}
.header-language-box{
    position: absolute;
    top: 20px;
    right: 40px;
    transition: all .3s linear;
}
.rwd-header-language{
	width: 120px;
    height: 40px;
    border-bottom: 1px solid #fff;
    color: #fff;
    font-size: 14px;
    letter-spacing: 0.06em;
    display: block;
    line-height: 40px;
    position: relative;
    box-sizing: border-box;
    padding-left: 5px;
    padding-right: 15px;
    font-family: 'Roboto';
    font-weight: 500;
    cursor: pointer;
    text-align: center;
}
.rwd-header-language:hover{
    color: #df222a;
}
/* .rwd-header-language:after {
    content: '\f107';
    font-family: 'font awesome 5 free';
    font-weight: 700;
    margin: 0 auto;
    display: block;
    position: absolute;
    bottom: 0;
    right: 5px;
    box-sizing: border-box;
} */
.header-language-all-box{
    width: 100%;
    display: none;
    position: absolute;
    background-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.35);
}
.header-language{
    font-size: 14px;
    line-height: 36px;
    letter-spacing: 0.06em;
    color: #000;
    box-sizing: border-box;
    padding: 0 5px;
    cursor: pointer;
    font-family: MyCustomFont;
    font-weight: 500;
    transition: all .3s linear;
    display: block;
}

@font-face {
    font-family: MyCustomFont;
    src: local("Noto Sans TC");
    unicode-range: U+4E00-9FFF;
}
@font-face {
    font-family: MyCustomFont;
    src: local("Roboto");
    unicode-range: U+00-024F;
}

.rwd-menu{
    width: 30px;
    max-width: 100%;
    position: absolute;
    left: 40px;
    z-index: 99999;
    display: none;
    top: calc(50% - 7px);
}
.rwd-menu span{
    width: 100%;
    display: block;
    margin: 0 auto;
    height: 2px;
    background-color: #fff;
    position: relative;
}




/*漢堡樣式1*/
.rwd-menu-style1> span:nth-child(even){
    margin: 4px auto;
    transition: all .3s linear;
}
.rwd-menu-style1> span:nth-child(1){
    transform: scale(1);
    transform-origin: left;
    transition: all .3s linear;
}
.rwd-menu-style1> span:nth-child(3){
    transform: scale(1);
    transform-origin: right;
    transition: all .3s 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 .3s linear;
    transition-delay: 0s;
}


.header-logo-a2{
    opacity: 0;
    position: absolute;
    top: 50%;
    left: 40px;
    transform: translateY(-50%);
}
.header2{
    position: fixed;
    background-color: #fff;

    box-shadow: 0 0 10px rgba(0, 0, 0, 0.35);
    transition: all .3s linear;
}

.header-menu-title::after{
    content: '';
    width: 0%;
    height: 1px;
    background-color: #fff;
    position: absolute;
    bottom: 0;
    left: 0;
    transition: all .3s linear;
}
.header-menu-title:hover,
li.active .header-menu-title{
    color: #fff;
}
.header-menu-title:hover:after,
li.active .header-menu-title:after{
    width: 100%;
}
/*------------------------------------------*/

@media only screen and (min-width: 1001px){
    

    .header2 .header-menu-title{
        color: #000;
        line-height: 50px;
        transition: all .3s linear;
    }
    .header2 .header-logo{
        position: absolute;
        height: 50px;
        left: 0;
        top: 0;
    }
    .header2 .header-logo-a1{
        display: none;
    }
    .header2 .header-logo-a2{
        opacity: 1;
        transition: all .3s linear;
    }
    .header2 .header-language-box{
        top: 5px;
    }
    .header2 .rwd-header-language{
        border-bottom-color: #000;
        color: #000;
    }
    .header2 .header-menu-title:after{
        background-color: #df222a;
    }
    .header2 .header-menu-title:hover,
    .header2  li.active .header-menu-title{
        color: #df222a;
    }
}
@media only screen and (max-width: 1000px){
    .header-style1{
        position: fixed;
    }
    .header-style1 .header-logo{
        height: 60px;
    }
    .header-logo-a2{
        opacity: 1;
        position: static;
        display: none;
        transform: none;
    }
    .header2 .header-logo-a1{
        display: none;
    }
    .header2 .header-logo-a2{
        display: block;
    }
    .header2 .rwd-menu span{
        background-color: #000;
    }
    .header2 .header-language-box{
        top: 15px;
    }
    .header2 .rwd-header-language{
        border-bottom-color: #000;
        color: #000;
    }

    .rwd-header-language{
        line-height: 30px;
        height: 30px;
    }
    
    .rwd-menu{
        display: block;
    }
    .header-style1 .rwd-menu{
        display: block;
    }

    .rwd-header-menu-sytle1 .header-menu{
        width: 100%;
        height: 100vh;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1001;
        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(0, 0, 0, 0.65);
        opacity: 0;
        pointer-events: none;
        transition: all .3s linear;
    }
    .rwd-header-menu-sytle1 .header-menu.active{
        opacity: 1;
        pointer-events: all;
    }
    .header2 .rwd-menu.active span{
        background-color: #fff;
    }
}

@media only screen and (max-width: 768px){
    .header-logo-a1,
    .header-logo-a2{
        width: 200px;
    }
    .rwd-header-language{
        width: 100px;
    }
}
@media only screen and (max-width: 550px){
    .header-logo-a1,
    .header-logo-a2{
        width: 140px;
    }
    .rwd-menu{
        left: 15px;
    }
    .rwd-header-language{
        width: 65px;
        font-size: 12px;
        line-height: 26px;
        height: 26px;
        padding-left: 3px;
        padding-right: 13px;
    }
    .rwd-header-language:after{
        right: 2px;
    }
    .header-language-box{
        right: 15px;
        top: 10px;
    }
    .header2 .header-language-box{
        top: 10px;
    }
    .header-style1 .header-logo{
        height: 50px;
    }
}



