﻿#indexTop{
    position: absolute;
    top: 0;
    left: 0;
}
/*--------------header-style1-----------------*/
.header-style1{
    position: fixed;
    z-index: 999;
    display: block;
    width: 100%;
    top: 0;
    background-color: #FFF;
    transition: all .3s linear;
}
.header2{
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.35);
}
.header-style1 .header-box{
    width: 100%;
    display: block;
    margin: 0 auto;
    font-size: 0;
    box-sizing: border-box;
    padding: 0 50px;
}
.header-style1 .header-logo{
    width: 250px;
    max-width: 100%;
    display: inline-block;
    position: relative;
    vertical-align: middle;
}
.header-style1 .header-menu-box{
    width: calc(100% - 250px);
    display: inline-block;
    vertical-align: middle;
    font-size: 0;
    text-align: right;
}
.header-style1 .header-menu> li{
    display: inline-block;
    vertical-align: middle;
    position: relative;
    margin-left: 45px;
}
.header-style1 .header-menu> li:first-child{
    margin-left: 0;
}


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




.header-menu-title{
    font-family: "Noto Sans TC";
    font-weight: 300;
    font-size: 1rem;
    color: #000;
    letter-spacing: 0.06em;
    line-height: 5rem;
    position: relative;
    transition: all 0.3s linear;
}
div.header-menu-title{
    cursor: context-menu;
}
.header-menu-list-box{
    width: max-content;
    background-color: #00286e;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.35);
}
.header-menu-list-all-box{
    overflow-y: auto;
    max-height: calc(60vh - 80px);
    box-sizing: border-box;
    padding: 10px 0;
}
.header-menu-list{
    box-sizing: border-box;
    padding: 10px 20px;
    display: block;
    font-family: "Noto Sans TC";
    font-weight: 300;
    font-size: 1rem;
    color: #fff;
    letter-spacing: 0.06em;
    line-height: 1.4;
    position: relative;
    transition: all 0.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: #00286e;
    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);
  }
}


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

@media only screen and (max-width: 1200px){
    .header-style1 .header-box{
        padding: 0 30px;
    }
}

@media only screen and (max-width: 1000px){
    .header-style1 .header-box {
        padding: 10px 20px;
    }
    .header-style1 .header-logo{
        width: 155px;
    }
    .rwd-menu{
        display: block;
    }
    .header-style1 .rwd-menu{
        display: block;
    }

    .rwd-header-menu-sytle1 .header-menu-box{
        width: 100%;
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 3;
        background-color: rgba(0, 0, 0, 0.35);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
    }
    .rwd-header-menu-sytle1 .header-menu-box.active{
        opacity: 1;
        pointer-events: all;
    }
    .rwd-header-menu-sytle1 .header-menu-all-box{
        width: 400px;
        height: 100vh;
        z-index: 3;
        display: block;
        margin-left: auto;
        background-color: #fff;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.35);
        box-sizing: border-box;
        padding: 50px 0;
        transform: translateX(100%);
        transition: all 0.3s ease;
    }
    .rwd-header-menu-sytle1 .header-menu-box.active .header-menu-all-box{
        transform: translateX(0%);
        transition-delay: .2s;
    }
    .rwd-header-menu-sytle1 .header-menu{
        width: 100%;
        max-height: 100%;
        overflow: auto;
        text-align: left;
    }
    .header-style1 .header-menu> li{
        display: block;
        margin: 0;
        box-sizing: border-box;
        border-top: 1px solid #666;
    }
    .header-style1 .header-menu> li:last-child{
        border-bottom: 1px solid #666;
    }
    .header-menu-title{
        width: 100%;
        display: block;
        box-sizing: border-box;
        padding: 20px 20px;
        padding-right: 60px;
        line-height: 1.25rem;
    }
    .header-menu-title::before{
        content: '';
        width: 2px;
        height: 14px;
        background-color: #00286e;
        position: absolute;
        bottom: 22px;
        right: 33px;
        transition: all .3s linear;
    }
    .header-menu-title::after{
        content: '';
        width: 14px;
        height: 2px;
        background-color: #00286e;
        position: absolute;
        bottom: 28px;
        right: 27px;
    }
    div.header-menu-title.active::before{
        transform: scale(0);
    }
    a.header-menu-title::before{
        width: 10px;
        height: 2px;
        bottom: 28px;
        right: 30px;
        transform: rotateZ(30deg);
        transform-origin: right;
    }
    a.header-menu-title::after{
        width: 10px;
        right: 30px;
        transform: rotateZ(-30deg);
        transform-origin: right;
    }
    .header-menu-list-box{
        width: 100%;
        background-color: transparent;
        box-shadow: none;
        display: none;
        border-top: 1px solid #666;
        text-align: left;
        box-sizing: border-box;
        padding: 10px 20px;
    }
    .header-menu-list-all-box{
        padding: 0;
        overflow: initial;
        max-height: initial;
    }
    .header-menu-list{
        color: #00286e;
        display: block;
        position: relative;
        box-sizing: border-box;
        padding: 10px 10px;
        padding-right: 30px;
    }
    .header-menu-list::after{
        content: '>';
        position: absolute;
        bottom: calc(50% - 10px);
        right: 7px;
        font-size: 16px;
        line-height: 20px;
        color: #00286e;
        font-family: "Noto Sans TC";
        font-weight: 700;
    }

    .header-menu-list:hover{
        background-color: #00286e;
        color: #fff;
    }
    .header-menu-list:hover::after{
        color: #fff;
    }
}

@media only screen and (max-width: 550px){
    .rwd-header-menu-sytle1 .header-menu-all-box{
        width: 250px;
    }
    .header-menu-list{
        padding: 10px 0;
        padding-right: 30px;
    }
}


@media only screen and (min-width: 1001px){
    .header-menu-list-box{
        opacity: 0;
        pointer-events: none;
        position: absolute;
        top: 100%;
        transition: all .3s linear
    }
    .header-menu-list-box::after{
        content: '';
        border-bottom: 12px solid #00286e;
        border-left: 9px solid transparent;
        border-right: 9px solid transparent;
        position: absolute;
        top: -12px;
        left: calc(50% - 9px);
    }
    .header-style1 .header-menu> li:hover .header-menu-list-box{
        opacity: 1;
        pointer-events: all;
    }


    .header-style1 .header-menu> li.active .header-menu-title,
    .header-menu-title:hover{
        color: #00286e;
    }
    .header-menu-list:hover{
        color: #fff;
        background-color: #000;
    }
}

