﻿.banner-box{
    width: 100%;
    position: relative;
    display: block;
    overflow: hidden;
    padding-top: 50px;
}
.banner-bc-box{
    width: 100%;
    height: 100%;
    display: block;
    position: relative;
    top: 0;
    left: 0;
}
.banner-bc-mash{
    width: 200%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 38.5%;
    background: rgba(0,0,0,0.7);
    -webkit-transition: all 1s cubic-bezier(.19,1,.22,1);
    transition: all 1s cubic-bezier(.19,1,.22,1);
    -webkit-transition-timing-function: cubic-bezier(.19,1,.22,1);
    transition-timing-function: cubic-bezier(.19,1,.22,1);
    -webkit-transform: skew(-45deg);
    transform: skew(-45deg);
    z-index: 1;
}
.banner-title-box{
    max-width: 100%;
    position: absolute;
    z-index: 4;
    box-sizing: border-box;
    margin: 0 auto;
    bottom: 30px;
    left: 22%;
}
.banner-title-en{
    width: 100%;
    font-size: 28px;
    font-family: 'roboto';
    font-weight: 100;
    letter-spacing: 2px;
    color: #fff;
    line-height: 1;
}
.banner-title-ch{
    width: 100%;
    font-size: 28px;
    line-height: 1;
    font-family: 'noto sans tc';
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
}
.banner-triangle-box{
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}
.banner-triangle-bottom{
    position: absolute;
    left: -161.5%;
    top: 0;
    width: 200%;
    height: 100%;
    z-index: 8;
    background: rgba(140,181,62,0.7);
    -webkit-transition: all 1s cubic-bezier(.19,1,.22,1);
    transition: all 1s cubic-bezier(.19,1,.22,1);
    -webkit-transition-timing-function: cubic-bezier(.19,1,.22,1);
    transition-timing-function: cubic-bezier(.19,1,.22,1);
    -webkit-transform: skew(-45deg);
    transform: skew(-45deg);
    display: block;
}
.banner-triangle-top{
    position: absolute;
    left: -187%;
    top: 0;
    width: 200%;
    height: 100%;
    z-index: 8;
    background: rgba(199,255,94,0.6);
    -webkit-transition: all 1s cubic-bezier(.19,1,.22,1);
    transition: all 1s cubic-bezier(.19,1,.22,1);
    -webkit-transition-timing-function: cubic-bezier(.19,1,.22,1);
    transition-timing-function: cubic-bezier(.19,1,.22,1);
    -webkit-transform: skew(43deg);
    transform: skew(43deg);
    display: block;
}


.index-banner .slick-dots{
    bottom: 42%;
    right: 0;
    left: 89%;
}
.index-banner .slick-dots li{
    width: 30px;
    height: 30px;
    display: block;
    margin-bottom: 16px;
}
.slick-dots li button{
    width: 30px;
    height: 30px;
}
.index-banner .slick-dots li button:before{
    width: 30px;
    height: 20px;
    color: inherit;
    background-image: url(../img/front/index-banner-small-light-notopen.png);
}
.index-banner .slick-dots li.slick-active button:before{
    color: inherit;
    background-image: url(../img/front/index-banner-small-light-open.png);
}
@media only screen and (max-width: 1000px){
    .banner-box {
        padding-top: 48px;
    }
}
@media only screen and (max-width: 800px){
    .banner-title-box{
        bottom: 15px;
        left: 18%;
    }
    .banner-title-en,
    .banner-title-ch{
        font-size: 20px;
    }
}
@media only screen and (max-width: 600px){
    .banner-title-en,
    .banner-title-ch{
        font-size: 18px;
    }
    .banner-box {
        padding-top: 42px;
    }
}
@media only screen and (max-width: 400px){
    .banner-title-en,
    .banner-title-ch{
        font-size: 16px;
    }
    .banner-title-box{
        bottom: 10px;
        left: 16%;
    }
}

/*animation*/
/*<-------------動畫------------->*/

@keyframes bannerleft {
    0%{
        top: 100%;
    }
    to {
        top: 0;
    }
}
@keyframes bannertop {
    0%{
        left: -223%;
    }
    to {
        left: -161.5%;
    }
}
@keyframes bannerright {
    0%{
        left: 100%;
    }
    to {
        left: 38.5%;
    }
}
@media only screen and (min-width: 1001px){
    .banner-triangle-top{
        animation: bannerleft 1.5s ease 1.5s both;
    }
    .banner-triangle-bottom{
        animation: bannertop 1.5s ease both;
    }
    .banner-bc-mash{
        animation: bannerright 1.5s ease both;
    }
}