﻿.service-box{
    width: 100%;
    display: block;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    box-sizing: border-box;
    padding: 110px 0;
    padding-bottom: 200px;
}
.service-all-box{
    width: 1280px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    font-size: 0;
    position: relative;
    box-sizing: border-box;
    padding-bottom: 100px;
}
.service-info-title{
    width: 100%;
    display: block;
    font-family: "Noto Serif TC";
    font-weight: 900;
    font-size: 36px;
    letter-spacing: 0.06em;
    line-height: 1;
    color: #fff;
    box-sizing: border-box;
    padding: 70px 0;
    padding-left: 80px;
    position: relative;
    z-index: 1;
}
.service-info-box{
    position: relative;
    z-index: 1;
}
.service-info{
    width: calc(100% - 80px);
    display: flex;
    display: -webkit-flex;
    flex-direction: row;
    box-shadow: 15px 25px 10px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    margin-bottom: 110px;
}
.service-info:nth-child(odd){
    margin-left: auto;
}
.service-info:nth-child(even){
    flex-direction: row-reverse;
}
.service-info:last-child{
    margin-bottom: 0;
}
.service-info-left{
    width: 400px;
    display: inline-block;
    vertical-align: top;
}
.service-info-right{
    width: calc(100% - 400px);
    display: inline-block;
    vertical-align: top;
    box-sizing: border-box;
    padding: 48px 35px;
    background-color: #fff;
}
.service-info-name{
    font-family: "Noto Serif TC";
    font-weight: 900;
    font-size: 36px;
    letter-spacing: 0.06em;
    line-height: 1;
    color: #78161b;
    margin-bottom: 40px;
}
.service-info-text{
    margin-bottom: 20px;
}
.service-info-text:last-child{
    margin-bottom: 0;
}
.service-info-text>span{
    font-family: "Noto Sans TC";
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.06em;
    width: 25px;
    display: inline-block;
    vertical-align: top;
    line-height: 1.8;
    color: #78161b;
}
.service-info-text>p{
    font-family: "Noto Sans TC";
    font-weight: 300;
    font-size: 18px;
    letter-spacing: 0.06em;
    width: calc(100% - 25px);
    display: inline-block;
    vertical-align: top;
    line-height: 1.8;
    color: #666;
}
.service-info-bg{
    width: 800px;
    height: 100%;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    background-color: #78161b;
}
.service-info-bg::before{
    content: "";
    border-bottom: 70px solid #78161b;
    border-left: 800px solid transparent;
    position: absolute;
    bottom: 100%;
    left: 0;
}
.service-info-bg::after{
    content: "";
    border-top: 70px solid #78161b;
    border-right: 800px solid transparent;
    position: absolute;
    top: 100%;
    left: 0;
}


@media only screen and (max-width: 1280px){
    .service-all-box{
        width: 1000px;
    }
}
@media only screen and (max-width: 1000px){
    .service-all-box{
        width: 750px;
        padding-bottom: 60px;
    }
    .service-info-title{
        padding: 30px 0;
        padding-left: 40px;
        font-size: 26px;
    }
    .service-info {
        width: calc(100% - 40px);
        margin-bottom: 70px;
    }
    .service-info-left{
        width: 200px;
    }
    .service-info-right{
        width: calc(100% - 200px);
        padding: 25px 15px;
    }
    .service-info-name{
        font-size: 26px;
        margin-bottom: 20px;
    }
    .service-info-text{
        margin-bottom: 10px;
    }
    .service-info-text>span{
        font-size: 16px;
        line-height: 1.6;
    }
    .service-info-text>p{
        font-size: 16px;
        line-height: 1.6;
    }
    .service-info-bg{
        width: 450px;
    }
    .service-info-bg::before{
        border-bottom-width: 30px;
        border-left-width: 450px;
    }
    .service-info-bg::after{
        border-top-width: 30px;
        border-right-width: 450px;
    }
}
@media only screen and (max-width: 768px){
    .service-box{
        padding: 85px 0;
    }
    .service-all-box{
        width: 550px;
        padding-bottom: 20px;
    }
    .service-info-bg{
        width: 100%;
    }
    .service-info-bg::before,
    .service-info-bg::after{
        display: none;
    }
    .service-info-title{
        padding: 30px 20px;
    }
    .service-info:nth-child(n){
        width: calc(100% - 20px);
        margin: 0 auto;
        margin-bottom: 20px;
        box-shadow: none;
    }
    .service-info:last-child{
        margin-bottom: 0;
    }
    .service-info-left{
        display: none;
    }
    .service-info-right{
        width: 100%;
        padding: 20px 20px;
    }
}
@media only screen and (max-width: 550px){
    .service-box{
        padding-bottom: 40px;
    }
    .service-all-box{
        width: calc(100vw - 40px);
    }
    .service-info-title{
        padding: 20px 10px;
        font-size: 20px;
    }
    .service-info-right{
        padding: 10px;
    }
    .service-info-name{
        font-size: 18px;
        margin-bottom: 10px;
    }
    .service-info-text{
        margin-bottom: 5px;
    }
    .service-info-text>span{
        line-height: 1.4;
    }
    .service-info-text>p{
        line-height: 1.4;
    }
}



@media only screen and (min-width: 769px){
    .service-info-bg,
    .service-info{
        opacity: 0;
    }
    .service-all-box.anima .service-info-title{
        animation: fadeInDown 1s ease .3s 1 both;
    }
    .service-all-box.anima .service-info-bg{
        animation: fade 1s ease 0s 1 both;
    }
    .service-info.anima{
        animation: fadeInUp 1s ease 0s 1 both;
    }
}