@import url('https://fonts.googleapis.com/css?family=Noto+Serif+TC');

h3, h5{
    color: #fff;
}
.section-headline{
    padding-top: 36px;
    position: relative;
}


/* slider */
.banner{
    margin-top: 60px;
}
.carousel-item .carousel-caption{
    bottom: 34%;
}
.carousel-item .carousel-caption h3{
    font-size: 48px;
    letter-spacing: 8px;
    margin-bottom: .75rem;
    font-weight: 400;
}
.carousel-item .carousel-caption h5{
    letter-spacing: 6px;
    font-weight: 400;
}
.carousel-item p{
    position: absolute;
    bottom: 24px;
    right: 24px;
    font-size: 1.125rem;
    color: rgba(255, 255, 255, .8);
}
.carousel-control-prev, .carousel-control-next{
    width: 8%;
}


/* about */
.about-area{
    margin-bottom: -100px;
}
.bg-text{
    display: block;
    height: 200px;
    background-color: #eee;
    color: rgba(100, 100, 100, .1);
    font-size: 9rem;
    text-align: right;
    line-height: 2rem;
    font-family: 'Noto Serif TC';
    position: relative;
    top: -100px;
    z-index: -50;
    letter-spacing: 2rem;
}


/* case */
.case{
    background-color: #323232;
    position: relative;
}
.case img{
    width: 100%;
    overflow: hidden;
    transition: all .8s;
    -moz-transition: all .8s;
    -webkit-transition: all .8s;
    -o-transition: all .8s;
}

.case_card{
    display: block;
    height: 80px;
    padding: 16px;
    color: #fff;
    text-align: center;
    margin-bottom: 0px;
    font-weight: 300;
}



/* news */

.news .card {
    background-color: rgba(238, 238, 238, .5);
    border: none;
    border-radius: 0;
    min-height: 130px;
    margin: 1rem auto;
    transition: box-shadow 500ms;
}
.news .card:hover{
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
.news-img {
    width: 100%;
    height: 100%;
    min-height: 130px;
    object-fit: cover;
}

.news .card-body h6 {
    color: #969696;
    font-size: 1rem;
    margin-top: .5rem;
    margin-bottom: .5rem;
}
.card-title{
    font-size: 1.125rem;
    color: #DA4453;
    margin-bottom: .5rem;
}
.btn-border-more{
    margin-bottom: 72px;
}
.card-text{
    display: block;
    height: 36px;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space:nowrap;
}



 /* 服務項目 */
 .service {
    display: block;
    background: url(../img/index/service/bg-service.jpg) no-repeat;
    background-position: center;
    background-size:cover;
    border-bottom: 2px solid #DA4453;
    width: 100%;
    height: 100%;
    padding-bottom: 64px;
}
.service-item{
    background-color: rgba(255, 255, 255, .9);
    text-align: center;
    padding: 1.5rem;
    cursor: pointer;
    overflow:hidden;

}

.service-item img{
    transform:scale(1,1);transition: all 1s ease-out;
    opacity: 0.8;
}
.service-item:hover img, .service-item:focus img{
    transform:scale(1.1,1.1);
    opacity: 1;
}

.service-item h5{
    color: #DA4453;
    display: block;
    font-size: 1rem;
}

@media (max-width: 992px) {
    .bg-text{
        background-color: #fff;
        color: #eee;
        height: 200px;
        font-size: 6rem;
        line-height: 18rem;
        letter-spacing: 1rem;
    }  
    .carousel-caption{bottom: 34%;}
}
@media (max-width: 991px) {
    .news-img
    .news .card, .news-img{height: auto;}   
}

@media (max-width: 768px){
    
    .carousel-item .carousel-caption h3{
        font-size: 36px;
    } 
    .service-item{
        margin: 1rem .5rem;
    }
    .carousel-item img{
        height: 50vh;
        object-fit: cover;
        
    }
}

@media (max-width: 576px) {
    .carousel-item .carousel-caption{bottom: 35%;}
    .carousel-item .carousel-caption h3{
        font-size: 1.75rem;
        letter-spacing: 5px;
        margin-bottom: 0;
    }
    .bg-text{
        font-size: 5.5rem;
        letter-spacing: 1rem;
        top: -80px;
    }
    .service{
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .service-item{
        margin-left: 0;
        margin-right: 0;
    }
    
    
}
@media (max-width: 575px) {
    .carousel-control-prev,.carousel-control-next,.carousel-indicators{display: none;}
    /* .carousel-item .carousel-caption h3{font-size: 20px;} */
    .carousel-item p{
        bottom: 16px;
        right: 16px;
    }

}
@media (max-width: 420px) {
    .carousel-item .carousel-caption h3{
        font-size: 26px;
    }
    .carousel-item .carousel-caption{
        bottom: 32%;
    }
    .carousel-item p{
        bottom: 8px;
        right: 8px;
    }
    .bg-text{font-size: 4rem;}
    .service{
        padding-left: 0;
        padding-right: 0;
    }

    .service-item{
        padding: .5rem;
    }
    .service-item img{
        width: 80%;
    }
    
}
@media (max-width: 375px) {
    .carousel-item .carousel-caption h3{
        font-size: 24px;
    }
}   
@media (max-width: 350px) {
    .carousel-caption{bottom: 25%;}
    .carousel-item  .carousel-caption h3{
        letter-spacing: 3px;
    }
    
}