﻿.index-service-box{
    width: 100%;
    display: block;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    padding: 90px 0;
}
.index-service-title-box{
    width: 1200px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    font-size: 0;
    text-align: right;
    box-sizing: border-box;
    padding-right: 100px;
    position: relative;
    z-index: 2;
}
.index-service-title-box h2{
    font-size: 100px;
    font-family: 'Roboto';
    font-weight: 100;
    color: #965455;
    line-height: 60px;
    letter-spacing: 0.06em;
}
.index-service-text-box{
    width: 1440px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    margin-top: 30px;
    font-size: 0;
    position: relative;
    z-index: 2;
}
.index-service-text-box h1{
    font-size: 36px;
    color: #000;
    letter-spacing: 0.06em;
    line-height: 60px;
    font-family: 'Noto Sans TC';
    font-weight: 700;
}
.index-service-text-box span{
    font-size: 32px;
    color: #000;
    letter-spacing: 0.06em;
    line-height: 60px;
    font-family: 'Noto Sans TC';
    font-weight: 700;
    display: block;
}
.index-service-text-box p{
    font-size: 18px;
    color: #666;
    letter-spacing: 0.06em;
    line-height: 2;
    font-family: 'Noto Sans TC';
    display: block;
}

.index-service-all-box{
    width: 1200px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    margin-top: 120px;
    font-size: 0;
    position: relative;
    z-index: 2;
}
.index-service-info-box{
    width: 100%;
    display: block;
}
.index-service-info{
    width: 360px;
    display: inline-block;
    vertical-align: middle;
    position: relative;
    margin-right: 60px;
}
.index-service-info:nth-child(3n){
    margin-right: 0px;
}
.index-service-info:nth-child(n + 4){
    margin-top: 90px;
}
.index-service-info-img{
    width: 100%;
    height: 260px;
    display: block;
    position: relative;
    overflow: hidden;
}
.index-service-info-text{
    font-size: 28px;
    color: #fff;
    letter-spacing: 0.06em;
    line-height: 60px;
    font-family: 'Noto Sans TC';
    font-weight: 500;
}
.index-service-bg-box{
    width: 1680px;
    max-width: 100%;
    height: 720px;
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 1;
    background-color: #564343;
}
.index-service-bgV-box{
    position: absolute;
    top: -240px;
    right: 21vw;

}
.index-service-bgV-box span:nth-child(1){
    width: 500px;
    height: 1300px;
    display: block;
    background-color: #f5f5f5;
    transform: translateX(-40px) rotateZ(-15deg);
    transform-origin: bottom right;
    position: relative;
    z-index: 1;
}
.index-service-bgV-box span:nth-child(2){
    width: 500px;
    height: 1300px;
    display: block;
    background-color: #fafafa;
    transform: translateX(40px) rotateZ(15deg);
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: bottom right;
}


@media only screen and (max-width: 1680px){
    .index-service-bg-box{
        width: 90vw;
    }
}
@media only screen and (max-width: 1440px){
    .index-service-text-box{
        width: 1200px;
    }
    .index-service-bgV-box span:nth-child(1){
        width: 300px;
        height: 1000px;
    }
    .index-service-bgV-box span:nth-child(2){
        width: 300px;
        height: 1000px;
    }
}
@media only screen and (max-width: 1200px){
    .index-service-text-box,
    .index-service-all-box,
    .index-service-title-box{
        width: 1000px;
    }
    .index-service-all-box{
        margin-top: 80px;
    }
    .index-service-title-box{
        padding-right: 40px;
    }
    .index-service-bgV-box span:nth-child(1){
        width: 200px;
        height: 700px;
    }
    .index-service-bgV-box span:nth-child(2){
        width: 200px;
        height: 800px;
    }
    .index-service-info{
        width: 310px;
        margin-right: 35px;
    }
    .index-service-info-img{
        height: calc((260 / 360) * 310px);
    }
    .index-service-bg-box{
        height: 620px;
    }
}
@media only screen and (max-width: 1000px){
    .index-service-box{
        padding: 60px 0;
    }
    .index-service-text-box,
    .index-service-all-box{
        width: 750px;
    }
    .index-service-title-box{
        width: 750px;
        padding-right: 0px;
    }
    .index-service-title-box h2{
        font-size: 60px;
        line-height: 40px;
    }
    .index-service-all-box{
        margin-top: 40px;
    }
    .index-service-text-box h1{
        font-size: 26px;
        line-height: 40px;
    }
    .index-service-text-box span{
        font-size: 20px;
        line-height: 40px;
    }
    .index-service-bgV-box,
    .index-service-bg-box{
        display: none;
    }
    .index-service-info:nth-child(n){
        width: 360px;
        margin-right: 30px;
        margin-top: 0;
    }
    .index-service-info:nth-child(2n){
        margin-right: 0;
    }
    .index-service-info:nth-child(n + 3){
        margin-top: 30px;
    }
    .index-service-info-img{
        height: calc((260 / 360) * 360px);
    }
    .index-service-info-text{
        font-size: 18px;
        line-height: 40px;
    }
}
@media only screen and (max-width: 768px){
    .index-service-box{
        padding: 40px 0;
    }
    .index-service-text-box,
    .index-service-all-box,
    .index-service-title-box{
        width: 550px;
    }
    .index-service-title-box h2{
        font-size: 40px;
        line-height: 30px;
    }
    .index-service-all-box{
        margin-top: 20px;
    }
    .index-service-text-box h1{
        font-size: 22px;
        line-height: 30px;
    }
    .index-service-text-box span{
        font-size: 16px;
        line-height: 30px;
    }
    .index-service-text-box p{
        font-size: 16px;
        line-height: 20px;
    }
    .index-service-info:nth-child(n){
        width: 260px;
        margin-right: 30px;
        margin-top: 0;
    }
    .index-service-info:nth-child(2n){
        margin-right: 0;
    }
    .index-service-info:nth-child(n + 3){
        margin-top: 20px;
    }
    .index-service-info-img{
        height: calc((260 / 360) * 260px);
    }
    .index-service-info-text{
        font-size: 16px;
        line-height: 30px;
    }
}
@media only screen and (max-width: 550px){
    .index-service-box{
        padding: 20px 0;
    }
    .index-service-text-box,
    .index-service-all-box,
    .index-service-title-box{
        width: 400px;
    }
    .index-service-text-box{
        margin-top: 10px;
    }
    .index-service-title-box h2{
        font-size: 30px;
        line-height: 24px;
    }
    .index-service-all-box{
        margin-top: 10px;
    }
    .index-service-text-box h1{
        font-size: 18px;
        line-height: 24px;
    }
    .index-service-text-box span{
        font-size: 14px;
        line-height: 24px;
    }
    .index-service-text-box p{
        font-size: 14px;
    }
    .index-service-info:nth-child(n){
        width: 190px;
        margin-right: 20px;
        margin-top: 0;
    }
    .index-service-info:nth-child(2n){
        margin-right: 0;
    }
    .index-service-info:nth-child(n + 3){
        margin-top: 10px;
    }
    .index-service-info-img{
        height: calc((260 / 360) * 190px);
    }
    .index-service-info-text{
        font-size: 14px;
        line-height: 24px;
    }
}
@media only screen and (max-width: 400px){
    .index-service-text-box,
    .index-service-all-box,
    .index-service-title-box{
        width: 95%;
    }
    .index-service-info:nth-child(n){
        width: calc((95vw - 10px) / 2);
        margin-right: 10px;
        margin-top: 0;
    }
    .index-service-info:nth-child(2n){
        margin-right: 0;
    }
    .index-service-info:nth-child(n + 3){
        margin-top: 10px;
    }
    .index-service-info-img{
        height: calc((260 / 360) * ((95vw - 10px) / 2));
    }
    /* .index-service-info:nth-child(n){
        width: 100%;
        margin-right: 0;
        margin-top: 0;
    }
    .index-service-info:nth-child(n + 2){
        margin-top: 10px;
    }
    .index-service-info-img{
        height: calc((260 / 360) * 95vw);
    } */
}



@media only screen and (min-width: 1001px){
    .index-service-bgV-box,
    .index-service-title-box,
    .index-service-text-box h1,
    .index-service-bg-box,
    .index-service-info-box{
        opacity: 0;
    }
    .index-service-box.anima .index-service-bgV-box{
        animation: fadeInDown 1s ease 0s 1 both;
    }
    .index-service-box.anima .index-service-info-box{
        animation: fadeInUp 1s ease .7s 1 both;
    }
    .index-service-box.anima .index-service-bg-box{
        animation: fadeInRight 1s ease .6s 1 both;
    }
    .index-service-box.anima .index-service-title-box{
        animation: fadeInLeft 1s ease .2s 1 both;
    }
    .index-service-box.anima .index-service-text-box h1{
        animation: fadeInRight 1s ease .4s 1 both;
    }
    .index-service-box.anima .index-service-text-box span{
        animation: fadeInRight 1s ease .5s 1 both;
    }

    .index-service-info:hover .main-bg{
        transform: scale(1.1);
    }
    
}