﻿/*header-style8 上方左方logo右方連結，下方menu，範例:全台借錢網*/

.header-style8 {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    display: block;
    background-color: #FFF;
}
.header-style8 .header-box{
    width: 100%;
    display: block;
    margin: 0 auto;
    font-size: 0;
    position: relative;
}
.header-style8 .header-logo{
    width: 244px;
    max-width: 100%;
    display: inline-block;
    vertical-align: middle;
    box-sizing: border-box;
    padding: 10px;
}
.header-style8 .header-link-box{
    width: 280px;
    display: inline-block;
    vertical-align: middle;
    text-align: right;
}
.header-style8 .header-link-list,
.header-style8 .header-link-phone-box{
    display: inline-block;
    vertical-align: middle;
}
.header-style8 .header-link-list,
.header-style8 .header-link-line-box,
.header-style8 .header-link-icon,
.header-style8 .header-link-fb-box{
    margin-right: 15px;
}
.header-style8 .header-link-title{
    font-size: 22px;
    color: #FFF;
    letter-spacing: 1px;
    transform:skewX(-10deg);

}
.header-style8 .header-link-list{
   
    width: 150px;
    text-align: center;
    max-width: 100%;
    height: 50px;
    line-height: 50px;
}
.header-style8 .header-link-hover{
    display: block;
     background-color: #2ea9df;
    transition: all .5s ease;
}
.header-style8 .header-link-line-box,
.header-style8 .header-link-fb-box,
.header-style8 .header-link-icon{
    width: 50px;
    height: 50px;
    max-width: 100%;
    display: inline-block;
    vertical-align: middle;
}
.header-style8 .header-link-line{
    width: 100%;
    height: 100%;
    display: block;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-image: url(../img/front/line.png);
    transition: all .5s ease;
}

.header-style8 .header-link-fb{
    width: 100%;
    height: 100%;
    display: block;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-image: url(../img/front/fb.jpg);
    transition: all .5s ease;
}

.header-style8 .header-link-icon{
    background-color: #2ea9df;
    text-align: center;
}
.header-style8 .header-link-icon i{
    font-size: 44px;
    color: #FFF;
    line-height: 50px;
}
.header-style8 .header-link-phone-box{
    font-size: 20px;
    font-family: 'Noto Sans TC';
    font-weight: bold;
    transform: skewX(-10deg);
    color: #2ea9df;
    padding-left: 10px;
}

.header-style8 .header-link-phone-box a{
    transition: all .5s ease;
}

.header-style8 .header-link-phone-box span{
    font-weight: bold;
}

.header-style8 .header-menu-block{
    width: calc(100% - 524px);
    display: inline-block;
    vertical-align: middle;
}

.header-style8 .header-menu-box{
    width: 1200px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    font-size: 0;
}
.header-style8 .header-menu-list{
    display: inline-block;
    vertical-align: top;
    width: calc(100% / 6);
    position: relative;
    transition: all .8s ease;
}
.header-style8 .header-menu-title{
    width: 100%;
    display: block;
    height: 80px;
    letter-spacing: 1px;
    color: #000;
    line-height: 80px;
    text-align: center;
    transition: all .5s linear;
}
.header-style8 .header-menu-title span{
    font-size: 22px;
    font-family: 'Noto Sans TC';
    transform: skewX(-10deg);
    display: block;
}
.header-style8 .header-menu-list-box{
    width: 100%;
    display: block;
    position: absolute;
    left: 0;
    padding: 10px 0;
    transition: all .5s ease;
    pointer-events: none;
    transform: scale(1,0);
    transform-origin: top;
    background-color: #FFF;
    box-shadow: rgba(0,0,0,0.5) 0px 0px 5px
}
.header-style8 .header-menu-list-box:after{
    content: 'none';
    font-size: 0;
    width: 14px;
    height: 14px;
    display: block;
    position: absolute;
    top: -7px;
    left: calc(50% - 7px);
    background-color: #FFF;
    transform: rotate(45deg);
}
.header-style8 .header-menu-list-box li a{
    padding: 10px 0;
    display: block;
    background-color: #FFF;
}


.header-style8 .header-menu-s-list{
    font-size: 24px;
    font-family: 'Noto Sans TC';
    color: #2ea9df;
    width: 100%;
    display: block;
    text-align: center;
    transition: all .5s ease;
}


/* -------------------------------------------------------------- */
.header-top-line{
    width: 100%;
    height: 5px;
    display: block;
    background-color: #2ea9df;
}
.header-logo-a{
    width: 100%;
}
.header2 .header-logo-a{
    width: 80%;
}
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: 60px;
    max-width: 100%;
    position: absolute;
    right: 0px;
    z-index: 99999;
    display: none;
    top: 12px;
}
.rwd-menu-text{
    font-size: 14px;
    color: #ee1b2d;
    letter-spacing: 0.06em;
}
.rwd-menu span{
    border-left: 10px solid transparent;
    border-top: 15px solid #ee1b2d;
    border-right: 10px solid transparent;
    display: block;
    width: 0;
    height: 0;
    margin: 0 auto;
}




/*漢堡樣式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);
  }
}*/
/*--------------------hover----------------------*/
.header-menu-list:hover .header-menu-list-box{
    pointer-events: auto;
    transform: scale(1,1);
}
/*-------------------動畫-----------------------*/
.header-style8.header2 .header-menu-title{
    height: 60px;
    line-height: 60px;
}
.header-style8.header2{
    box-shadow: rgba(0,0,0,1)0px 0px 3px;
}



.header-logo-a{
    animation: bounceInLeft .8s linear 0s 1 both; 
}
.header-logo-a1{
    animation: bounceInRight .8s linear .5s 1 both; 
}
.header-logo-a2{
    animation: scale-b-fade .5s ease .3s 1 both; 
}
.header-link-list{
    animation: bounceInDown  1s linear 0s 1 both;
}
.header-link-line-box{
    animation: flipInY  .8s ease .2s 1 both;
}
.header-link-fb-box{
    animation: flipInY  .8s ease .3s 1 both;
}
.header-link-icon{
    animation: flipInY  .8s ease .4s 1 both;
}
.header-logo-s2-a2{
    animation: fade2 .8s linear .5s  infinite alternate;
}
.header-logo-s2-a1{
    animation: scale-b-out .8s linear .9s  infinite alternate;
}

.header-top-line{
    transform-origin: left;
    animation: line .8s ease 0s 1 both;
}
.header-link-phone-box{
    animation: bounceInUp .8s ease .6s 1 both;
}
.header-menu-block{
    animation: flipInX .8s linear .3s 1 both
}

@keyframes bounce {
    0%,20%,53%,80%,to {
        animation-timing-function: cubic-bezier(.215,.61,.355,1);
        transform: translateZ(0)
    }

    40%,43% {
        animation-timing-function: cubic-bezier(.755,.05,.855,.06);
        transform: translate3d(0,-30px,0)
    }

    70% {
        animation-timing-function: cubic-bezier(.755,.05,.855,.06);
        transform: translate3d(0,-15px,0)
    }

    90% {
        transform: translate3d(0,-4px,0)
    }
}

@keyframes flipInY {
    0% {
        transform: perspective(400px) rotateY(90deg);
        animation-timing-function: ease-in;
        opacity: 0
    }

    40% {
        transform: perspective(400px) rotateY(-20deg);
        animation-timing-function: ease-in
    }

    60% {
        transform: perspective(400px) rotateY(10deg);
        opacity: 1
    }

    80% {
        transform: perspective(400px) rotateY(-5deg)
    }

    to {
        transform: perspective(400px)
    }
}
@keyframes bounceInDown {
    0%,60%,75%,90%,to {
        animation-timing-function: cubic-bezier(.215,.61,.355,1)
    }

    0% {
        opacity: 0;
        transform: translate3d(0,-3000px,0)
    }

    60% {
        opacity: 1;
        transform: translate3d(0,25px,0)
    }

    75% {
        transform: translate3d(0,-10px,0)
    }

    90% {
        transform: translate3d(0,5px,0)
    }

    to {
        transform: none
    }
}
@keyframes bounceInUp {
    0%,60%,75%,90%,to {
        animation-timing-function: cubic-bezier(.215,.61,.355,1)
    }

    0% {
        opacity: 0;
        transform: translate3d(0,3000px,0)
    }

    60% {
        opacity: 1;
        transform: translate3d(0,-20px,0)
    }

    75% {
        transform: translate3d(0,10px,0)
    }

    90% {
        transform: translate3d(0,-5px,0)
    }

    to {
        transform: translateZ(0)
    }
}
@keyframes bounceInRight {
    0%,60%,75%,90%,to {
        animation-timing-function: cubic-bezier(.215,.61,.355,1)
    }

    0% {
        opacity: 0;
        transform: translate3d(3000px,0,0)
    }

    60% {
        opacity: 1;
        transform: translate3d(-25px,0,0)
    }

    75% {
        transform: translate3d(10px,0,0)
    }

    90% {
        transform: translate3d(-5px,0,0)
    }

    to {
        transform: none
    }
}
@keyframes bounceInLeft {
    0%,60%,75%,90%,to {
        animation-timing-function: cubic-bezier(.215,.61,.355,1)
    }

    0% {
        opacity: 0;
        transform: translate3d(-3000px,0,0)
    }

    60% {
        opacity: 1;
        transform: translate3d(25px,0,0)
    }

    75% {
        transform: translate3d(-10px,0,0)
    }

    90% {
        transform: translate3d(5px,0,0)
    }

    to {
        transform: none
    }
}
@keyframes fadeInDownBig {
    0% {
        opacity: 0;
        transform: translate3d(0,-2000px,0)
    }

    to {
        opacity: 1;
        transform: none
    }
}
@keyframes flipInX {
    0% {
        transform: perspective(400px) rotateX(90deg);
        animation-timing-function: ease-in;
        opacity: 0
    }

    40% {
        transform: perspective(400px) rotateX(-20deg);
        animation-timing-function: ease-in
    }

    60% {
        transform: perspective(400px) rotateX(10deg);
        opacity: 1
    }

    80% {
        transform: perspective(400px) rotateX(-5deg)
    }

    to {
        transform: perspective(400px)
    }
}

@keyframes tada {
    0% {
        transform: scaleX(1)
    }

    10%,20% {
        transform: scale3d(.9,.9,.9) rotate(-3deg)
    }

    30%,50%,70%,90% {
        transform: scale3d(1.1,1.1,1.1) rotate(3deg)
    }

    40%,60%,80% {
        transform: scale3d(1.1,1.1,1.1) rotate(-3deg)
    }

    to {
        transform: scaleX(1)
    }
}


/*---------------------hover------------------------*/
.header-style8 .header-link-list:hover .header-link-hover{
    background-color: #000;
}
.header-style8 .header-link-line:hover{
    background-image: url(../img/front/line2.png);
}
.header-style8 .header-link-fb:hover{
    background-image: url(../img/front/fb2-1.jpg);
}
.header-style8 .header-link-icon:hover{
    /* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#ecc500+0,ec3a01+29,e00b1f+49,c3215f+64,c3215f+64,7a37aa+100 */
    background: #ecc500; /* Old browsers */
    background: -moz-linear-gradient(45deg, #ecc500 0%, #ec3a01 29%, #e00b1f 49%, #c3215f 64%, #c3215f 64%, #7a37aa 100%); /* FF3.6-15 */
    background: -webkit-linear-gradient(45deg, #ecc500 0%,#ec3a01 29%,#e00b1f 49%,#c3215f 64%,#c3215f 64%,#7a37aa 100%); /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(45deg, #ecc500 0%,#ec3a01 29%,#e00b1f 49%,#c3215f 64%,#c3215f 64%,#7a37aa 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ecc500', endColorstr='#7a37aa',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */
}

.header-style8 .header-link-phone-box a:hover{
    color: #555;
}
.header-style8 .header-menu-list:hover{
    background-color: #2ea9df;
}
.header-style8 .header-menu-list-box li a:hover{
    background-color: #2ea9df;
    color: #FFF;
}
.header-style8 .header-menu-list:hover .header-menu-title span{
    color: #FFF;
}
.header-link-list:hover .header-link-hover{
    animation: tada .8s linear 0s  infinite alternate;
}




/*----------------------------------------------*/
.header-style8 .header-logo a{
   
    display: inline-block;
    transition: all .5s ease;
    position: relative;
    font-size: 0;
}
.rwd-header-menu-out-box{
    display: none;
}
.header-menu-block .header-link-box{
    display: none;
}

.mask-box{
    width: 100%;
    height: calc(100vh - 62px);
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(0,0,0,0.2);
    display: none;
    z-index: 3;
}
.mask-box.active{
    display: block;
}

@media only screen and (max-width: 1000px){
    .header-style8 .header-link-title{
        color: #2ea9df;
        font-size: 24px;
        font-weight: bold;
    }
    .header-style8 .header-menu-list-box{
        box-shadow: rgba(0,0,0,0)0px 0px 0px;
    }
    .header-menu-block,
    .header-link-icon,
    .header-link-fb-box,
    .header-link-line-box,
    .header-link-list,
    .header-link-phone-box{
        animation: none;
    }
    .rwd-menu{
        display: block;
    }
    .header-style8 .header-menu-block{
        display: none;
    }
    .header-style8 .header-link-box{
        display: none;
    }
    .header-style8 .header-menu-block .header-link-box {
        display: block;
        background-color: #FFF;
        width: 100%;
        padding: 10px 0;
    }
    .header-style8 .header-menu-list-box{
        pointer-events: auto;
        transform: scale(1,1);
        position: absolute;
        top: 0;
        left: -50%;
        z-index: 9;
        transition: all .8s ease;
    }
    .header-style8 .header-menu-list-box.active{
        left: 0;
    }
    .header-style8 .header-menu-list{
        width: 50%;
    }
    .header-style8 .header-menu-title{
        height: 60px;
        line-height: 60px;
    }
    .header-style8 .header-menu-title span{
        font-size: 20px;
    }
    .header-style8 .header-menu-s-list{
        font-size: 16px;
    }
    .header-style8 .header-menu-block{
        width: 100%;
        background-color: #FFF;
        border-top: 2px solid #2ea9df;
        border-bottom: 2px solid #2ea9df;
        position: relative;
    }
    .header-style8 .header-menu-title{
        color: #2ea9df;
    }
    .header-style8 .header-logo{
        width: 290px;
    }
    .header-menu-title{
        border-bottom: 1px solid #2ea9df;
        border-right: 1px solid #2ea9df;
        box-sizing: border-box;
    }
   
    .header-menu-list:nth-child(even) .header-menu-title{
        border-right: 0;
    }
    .header-style8 .header-menu-list{
        position: static;
    }
    .header-style8 .header-menu-list-box{
        height: calc(100vh - 62px);
        width: 50%;
        border-right: 1px solid #2ea9df;
        box-sizing: border-box;

    }    
    .header-style8 .header-menu-list-box:after{
        display: none;
    }
    .rwd-header-menu-out-box{
        width: 100%;
        font-size: 20px;
        text-align: right;
        display: block;
        padding: 0 20px;
        box-sizing: border-box;
        border-bottom: 1px solid #2ea9df;
        padding-bottom: 10px;
    }
    .rwd-header-menu-out{
        display: inline-block;
    }
    .rwd-header-menu-out span{
        font-size: 20px;
        font-weight: bold;
        letter-spacing: 2px;
    }
    .header-style8 .header-menu-list-box li a{
        border-bottom: 1px solid #2ea9df;
    }
    .header-style8 .header-menu-list:hover{
        background-color: #FFF;
    }
    .header-style8 .header-menu-list:hover .header-menu-title span{
        color: #2ea9df;
    }
    .header-style8 .header-menu-block .header-link-box{
        text-align: center;
    }
    .header-style8 .header-link-phone-box{
        display: block;
        margin-top: 10px;
        font-size: 24px;
        padding: 0;
    }
    .header-logo-a{
        width: 120px;
    }
    .header2 .header-logo-a{
        width: 100px;
    }
}

@media only screen and (max-width: 550px){
    .header-style8 .header-link-list{
        display: block;
        text-align: center;
        width: 100%;
        margin-bottom: 10px;
    }
    .header-style8 .header-link-line-box, 
    .header-style8 .header-link-fb-box, 
    .header-style8 .header-link-icon{
        width: 40px;
        height: 40px;
    }      
    .header-style8 .header-link-list{
        line-height: 40px;
        height: 40px;
    }
    .header-style8 .header-link-icon i{
        font-size: 30px;
        line-height: 40px;
    }  
    .rwd-header-menu-out-box{
        font-size: 18px;
        padding: 0 10px;
        padding-bottom: 10px;
    }
    .rwd-header-menu-out span{
        font-size: 18px;
    }
    .header-style8 .header-menu-list-box{
        width: 70%;
        left: -70%;
    }
}