﻿.service-box{
    width: 100%;
    display: block;
    position: relative;
    box-sizing: border-box;
    padding-top: 80px;
    padding-bottom: 60px;
    min-height: 100vh;
}
.service-all-box{
    width: 1300px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    position: relative;
    box-sizing: border-box;
    padding: 60px 0;
    font-size: 0;
}
.service-design-img-box{
    width: calc((680 / 1300) * 1300px);
    height: calc((480 / 680) * ((680 / 1300) * 1300px));
    display: inline-block;
    vertical-align: top;
    position: relative;
    overflow: hidden;
}
.service-design-text-box{
    width: calc(100% - ((680 / 1300) * 1300px));
    display: inline-block;
    vertical-align: top;
    box-sizing: border-box;
    padding: 55px 50px;
}
.service-design-text-title p{
    font-family: 'Noto Sans TC';
    font-weight: 300;
    font-size: 36px;
    letter-spacing: 0.2em;
    line-height: 40px;
    color: #c30d23;
}
.service-design-text-title h2{
    font-family: 'Noto Sans TC';
    font-weight: 300;
    font-size: 18px;
    letter-spacing: 0.6em;
    line-height: 40px;
    color: #000;
    margin-top: 5px;
}
.service-design-text{
    margin-top: 30px;
}
.service-design-text p{
    font-family: 'Noto Sans TC','Roboto';
    font-weight: 300;
    font-size: 18px;
    letter-spacing: 0.06em;
    line-height: 2;
    color: #000;
}
.service-case-box{
    width: 100%;
    display: block;
    margin-top: 85px;
}
.service-case-title{
    width: 300px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 40px;
    text-align: center;
}
.service-case-title p{
    font-family: 'Noto Sans TC';
    font-weight: 300;
    font-size: 36px;
    letter-spacing: 0.2em;
    line-height: 40px;
    color: #c30d23;
}
.service-case-title h2{
    font-family: 'Noto Sans TC';
    font-weight: 300;
    font-size: 18px;
    letter-spacing: 0.6em;
    line-height: 40px;
    color: #000;
    margin-top: 5px;
}
.service-case-info-box{
    width: calc(100% - 340px);
    display: inline-block;
    vertical-align: middle;
}
.service-case-info{
    width: 460px;
    height: calc((320 / 460) * 460px);
    margin-right: 40px;
    position: relative;
}




@media only screen and (max-width: 1300px){
    .service-all-box{
        width: 1200px;
    }
    .service-design-img-box {
        width: calc((680 / 1300) * 1200px);
        height: calc((480 / 680) * ((680 / 1300) * 1200px));
    }
    .service-design-text-box {
        width: calc(100% - ((680 / 1300) * 1200px));
    }
    .service-case-title{
        width: 280px;
        margin-right: 20px;
    }
    .service-case-info-box {
        width: calc(100% - 300px);
    }
    .service-case-info {
        width: 440px;
        height: calc((320 / 460) * 440px);
        margin-right: 20px;
    }
}
@media only screen and (max-width: 1200px){
    .service-all-box{
        width: 1000px;
    }
    .service-design-img-box {
        width: calc((680 / 1300) * 1000px);
        height: calc((480 / 680) * ((680 / 1300) * 1000px));
    }
    .service-design-text-box {
        width: calc(100% - ((680 / 1300) * 1000px));
    }
    .service-case-box{
        margin-top: 60px;
    }
    .service-case-title{
        width: 200px;
        margin-right: 20px;
    }
    .service-case-info-box {
        width: calc(100% - 220px);
    }
    .service-case-info {
        width: 380px;
        height: calc((320 / 460) * 380px);
        margin-right: 20px;
    }
}
@media only screen and (max-width: 1000px){
    .service-box{
        padding-bottom: 40px;
    }
    .service-all-box{
        width: 750px;
        padding: 40px 0;
    }
    .service-design-img-box {
        width: calc((680 / 1300) * 750px);
        height: calc((480 / 680) * ((680 / 1300) * 750px));
    }
    .service-design-text-box {
        width: calc(100% - ((680 / 1300) * 750px));
        padding: 15px 20px;
    }
    .service-case-box{
        margin-top: 40px;
    }
    .service-design-text-title h2{
        line-height: 20px;
        letter-spacing: 0.3em;
    }
    .service-design-text-title p{
        font-size: 28px;
        line-height: 30px;
    }
    .service-design-text {
        margin-top: 20px;
    }
    .service-design-text p{
        line-height: 30px;
    }
    .service-case-title{
        width: 140px;
        margin-right: 20px;
    }
    .service-case-title p{
        font-size: 28px;
        line-height: 30px;
    }
    .service-case-title h2{
        line-height: 20px;
        letter-spacing: 0.3em;
    }
    .service-case-info-box {
        width: calc(100% - 160px);
    }
    .service-case-info {
        width: 290px;
        height: calc((320 / 460) * 290px);
        margin-right: 10px;
    }
}
@media only screen and (max-width: 768px){
    .service-all-box{
        width: 550px;
        padding: 40px 0;
    }
    .service-design-box{
        display: flex;
        flex-direction: column-reverse;
    }
    .service-design-img-box {
        width: 100%;
        height: calc((480 / 680) * 550px);
    }
    .service-design-text-box {
        width: 100%;
        padding: 15px 0;
    }
    .service-design-text {
        margin-top: 10px;
    }
    .service-design-text p{
        line-height: 24px;
    }
    .service-case-box{
        margin-top: 20px;
    }
    .service-case-title{
        width: 140px;
        margin-right: 20px;
    }
    .service-case-title p{
        font-size: 28px;
        line-height: 30px;
    }
    .service-case-title h2{
        line-height: 20px;
        letter-spacing: 0.3em;
    }
    .service-case-info-box {
        width: calc(100% - 160px);
    }
    .service-case-info {
        width: calc(550px - 160px);
        height: calc((320 / 460) * (550px - 160px));
        margin-right: 10px;
    }
}
@media only screen and (max-width: 550px){
    .service-box{
        padding-top: 60px;
    }
    .service-all-box {
        width: calc(100vw - 20px);
        padding: 20px 0;
    }
    .service-design-img-box {
        width: 100%;
        height: calc((480 / 680) * (100vw - 20px));
    }
    .service-design-text-box{
        padding: 10px 0;
    }
    .service-design-text-title p{
        font-size: 20px;
        line-height: 20px;
    }
    .service-design-text-title h2{
        font-size: 14px;
        letter-spacing: 0.06em;
        margin-top: 0;
    }
    .service-design-text{
        margin-top: 5px;
    }
    .service-design-text p{
        line-height: 1.4;
        font-size: 16px;
    }
    .service-case-box{
        margin-top: 10px;
    }
    .service-case-title {
        width: 70px;
        margin-right: 10px;
    }
    .service-case-title p{
        font-size: 20px;
        line-height: 20px;
    }
    .service-case-title h2{
        font-size: 14px;
        letter-spacing: 0.06em;
        margin-top: 0;
    }
    .service-case-info-box {
        width: calc(100% - 80px);
    }
    .service-case-info {
        width: calc((100vw - 20px) - 80px);
        height: calc((320 / 460) * ((100vw - 20px) - 80px));
        margin-right: 5px;
    }
    
}



@media only screen and (min-width: 769px){
    .service-case-info .main-bg::after{
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(255, 255, 255, 0.2);
        opacity: 0;
        transition: all .3s ease;
    }
    .service-case-info:hover .main-bg::after{
        opacity: 1;
    }

    /* .service-design-img-box,
    .service-design-text-box,
    .service-case-box{
        opacity: 0;
    }
    .service-design-box.anima .service-design-img-box{
        animation: fadeInLeft 1s ease 0s 1 both;
    }
    .service-design-box.anima .service-design-text-box{
        animation: fade 1s ease 0s 1 both;
    }
    .service-case-box.anima{
        animation: fadeInUp 1s ease 0s 1 both;
    } */
}