﻿.service-box{
    width: 100%;
    display: block;
    position: relative;
    min-height: calc(100vh - 130px);
    box-sizing: border-box;
    padding-right: 60px;
}
.service-all-box{
    width: 1200px;
    max-width: 100%;
    margin: 0 auto;
    display: block;
    position: relative;
    font-size: 0;
    box-sizing: border-box;
    padding: 80px 0;
}
.service-text-box{
    width: 100%;
    display: block;
    font-size: 18px;
    letter-spacing: 0.1em;
    text-align: center;
    margin-bottom: 80px;
}
.service-info{
    width: 100%;
    position: relative;
    display:         flex;
    display: -webkit-flex;
    align-items: flex-start;
    -webkit-align-items: flex-start;
    justify-content: center;
    -webkit-justify-content: center;
    flex-direction: row;
    margin-bottom: 205px;
}
.service-info:last-child{
    margin-bottom: 0;
}
.service-info:nth-child(even){
    flex-direction: row-reverse;
}
.service-info-img-box{
    width: 580px;
    height: 480px;
    display: block;
    position: relative;
    overflow: hidden;
}
.service-info-text-box{
    width: calc(100% - 580px);
    display: block;
    box-sizing: border-box;
    padding-left: 60px;
}
.service-info:nth-child(even) .service-info-text-box{
    padding-left: 0;
    padding-right: 60px;
}
.service-info-name h2{
    font-family: 'Noto Sans TC';
    color: #7e99bd;
    letter-spacing: 0.06em;
    line-height: 36px;
    font-size: 36px;
}
.service-info-title{
    font-family: 'Noto Sans TC';
    color: #000;
    letter-spacing: 0.06em;
    line-height: 36px;
    font-size: 16px;
    margin-top: 45px;
    margin-bottom: 20px;
}
.service-info-list{
    width: 100%;
    display:         flex;
    display: -webkit-flex;
    flex-direction: row;
    border: 4px solid #7e99bd;
    background-color: #fafafa;
    margin-bottom: 15px;
    box-sizing: border-box;
}
.service-info-list:last-child{
    margin-bottom: 0;
}
.service-info-list-text{
    width: 400px;
    font-family: 'Noto Sans TC';
    font-weight: 300;
    color: #7e99bd;
    letter-spacing: 0.1em;
    font-size: 16px;
    box-sizing: border-box;
    padding: 8px 15px;
    min-height: 54px;
    display: inline-flex;
    display: -webkit-inline-flex;
    align-items: flex-start;
    -webkit-align-items: flex-start;
    justify-content: center;
    -webkit-justify-content: center;
    flex-direction:column;
}
.service-info-list-pay{
    width: calc(100% - 400px);
    background-color: #7e99bd;
    font-family: myFontFamily;
    font-weight: 700;
    font-size: 16px;
    color: #fff;
    letter-spacing: 0.06em;
    text-align: center;
    min-height: 54px;
    display: inline-flex;
    display: -webkit-inline-flex;
    align-items: center;
    -webkit-align-items: center;
    justify-content: center;
    -webkit-justify-content: center;
    flex-direction:column;
}
@font-face{
    font-family: myFontFamily;
    src: local("Noto Sans TC") ,local("微軟正黑體");
    unicode-range: U+4E00-9FFF;
}
@font-face{
    font-family: myFontFamily;
    src: local('Roboto');
    unicode-range: U+00-024F;
}

.service-reservation-box{
    width: 1600px;
    max-width: 95%;
    margin: 0 auto;
    display: block;
    position: relative;
    font-size: 0;
    box-sizing: border-box;
    padding: 100px 0;
}
.service-reservation-info-box{
    width: 100%;
    height: 420px;
    display:         flex;
    display: -webkit-flex;
    align-items: center;
    -webkit-align-items: center;
    justify-content: center;
    -webkit-justify-content: center;
    flex-direction: column;
    position: relative;
}
.service-reservation-info-name{
    font-size: 36px;
    letter-spacing: 0.3em;
    line-height: 60px;
    font-family: "Lato";
    color: #7e99bd;
    box-sizing: border-box;
    padding-left: 0.3em;
    margin-bottom: 20px;
}
.service-reservation-info-btn{
    width: 350px;
    display: block;
    font-family: 'Noto Sans TC';
    color: #7e99bd;
    letter-spacing: 0.3em;
    line-height: 58px;
    font-size: 16px;
    text-align: center;
    border: 1px solid #7e99bd;
    box-sizing: border-box;
    padding-left: 0.3em;
    transition: all .3s linear;
}
.service-reservation-border-box{
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
}
.service-reservation-border-box span{
    width: 3px;
    height: 100%;
    background-color: #7e99bd;
    position: absolute;
    top: 0;
}
.service-reservation-border-box span:nth-child(1){
    left: 0;
}
.service-reservation-border-box span:nth-child(2){
    right: 0;
}
.service-reservation-border-box span::before,
.service-reservation-border-box span::after{
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background-color: #7e99bd;
    position: absolute;
}
.service-reservation-border-box span::before{
    top: 0;
}
.service-reservation-border-box span::after{
    bottom: 0;
}
.service-reservation-border-box span:nth-child(1)::before,
.service-reservation-border-box span:nth-child(1)::after{
    left: 0;
}
.service-reservation-border-box span:nth-child(2)::before,
.service-reservation-border-box span:nth-child(2)::after{
    right: 0;
}




@media only screen and (max-width: 1280px){
    .service-all-box{
        width: 920px;
    }
    .service-info-img-box {
        width: 440px;
        height: calc((480 / 580) * 440px);
    }
    .service-info-text-box {
        width: calc(100% - 440px);
        padding-left: 40px;
    }
    .service-info:nth-child(even) .service-info-text-box{
        padding-right: 40px;
    }
    .service-info-list-text{
        width: 300px;
    }
    .service-info-list-pay {
        width: calc(100% - 300px);
    }
    .service-info-list-pay{
        font-size: 14px;
    }
}
@media only screen and (max-width: 1000px){
    .service-all-box{
        width: 690px;
        padding: 60px 0;
    }
    .service-text-box{
        margin-bottom: 40px;
    }
    .service-info{
        flex-direction: column;
        margin-bottom: 100px;
    }
    .service-info:nth-child(even) {
        flex-direction: column;
    }
    .service-info-img-box {
        width: 100%;
        height: calc((480 / 580) * 750px);
    }
    .service-info-text-box {
        width: 100%;
        padding-left: 0px;
        padding-top: 40px;
    }
    .service-info:nth-child(even) .service-info-text-box{
        padding-right: 0;
    }
    .service-info-list-text{
        width: 70%;
        min-width: 400px;
    }
    .service-info-list-pay {
        width: 30%;
        max-width: calc(100% - 400px);
        font-size: 14px;
    }
}
@media only screen and (max-width: 768px){
    .service-box{
        padding-right: 0;
        min-height: calc(100vh - 71px);
    }
    .service-all-box{
        width: 95%;
        padding: 40px 0;
    }
    .service-text-box{
        margin-bottom: 20px;
    }
    .service-info{
        flex-direction: column;
        margin-bottom: 60px;
    }
    .service-info-img-box {
        width: 100%;
        height: calc((480 / 580) * 95vw);
    }
    .service-info-text-box{
        padding-top: 20px;
    }
    .service-info-name h2{
        line-height: 1;
        font-size: 5vw;
    }
    .service-info-title{
        margin-top: 20px;
        margin-bottom: 10px;
    }
    .service-info-list-pay{
        line-height: inherit;
        box-sizing: border-box;
        padding: 0 5px;
    }
    .service-reservation-box{
        padding: 40px 0;
    }
    .service-reservation-info-box{
        height: 220px;
    }
    .service-reservation-info-name{
        font-size: 26px;
        line-height: 40px;
        letter-spacing: 0.1em;
        margin-bottom: 10px;
    }
    .service-reservation-info-btn{
        width: 200px;
        line-height: 38px;
    }
}
@media only screen and (max-width: 550px){
    .service-all-box{
        padding: 20px 0;
    }
    .service-text-box{
        font-size: 16px;
    }
    .service-info-name h2{
        font-size: 6vw;
    }
    .service-info-title{
        line-height: 26px;
        font-size: 14px;
        margin-top: 10px;
        margin-bottom: 5px;
    }
    .service-info-list{
        margin-bottom: 10px;
        border-width: 2px;
    }
    .service-info-list-text{
        min-width: 200px;
        font-size: 14px;
        line-height: 26px;
        padding: 4px 8px;
    }
    .service-info-list-pay {
        width: 30%;
        max-width: calc(100% - 200px);
    }
    .service-reservation-border-box span::before, 
    .service-reservation-border-box span::after{
        width: 40px;
    }
    .service-reservation-info-box {
        height: 160px;
    }
    .service-reservation-info-name {
        font-size: 20px;
        line-height: 32px;
    }
    .service-reservation-info-btn{
        letter-spacing: 0.1em;
        padding-left: 0.1em;
        font-size: 14px;
        line-height: 32px;
    }
}





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

@keyframes scale_serviceReservation {
    0%{
        opacity: 0;
        -webkit-transform: scale(0);
        transform: scale(0);
    }
    to {
        opacity: 1;
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}
@media only screen and (min-width: 1001px){
    /* .service-text-box,
    .service-info-img-box,
    .service-info-name h2,
    .service-info-title,
    .service-info-list,
    .service-reservation-info-name{
        opacity: 0;
    }
    .service-text-box.anima{
        animation: fade 1s ease 0s 1 both;
    }
    .service-info.anima .service-info-img-box{
        animation: fadeInRight 1s ease 0s 1 both;
    }
    .service-info.anima:nth-child(even) .service-info-img-box{
        animation: fadeInLeft 1s ease 0s 1 both;
    }
    .service-info.anima .service-info-name h2{
        animation: fadeInDown 1s ease .2s 1 both;
    }
    .service-info.anima .service-info-title{
        animation: fadeInRight 1s ease .3s 1 both;
    }
    .service-info.anima .service-info-list{
        animation: fadeInUp 1s ease .4s 1 both;
    }
    .service-reservation-box.anima .service-reservation-border-box{
        animation: scale_serviceReservation 1s ease 0s 1 both;
    }
    .service-reservation-box.anima .service-reservation-info-name{
        animation: scale_serviceReservation 1s ease 0s 1 both;
    }
    .service-reservation-box.anima .service-reservation-info-btn{
        animation: fadeInUp 1s ease .4s 1 both;
    } */

    
    .service-reservation-info-btn:hover{
        background-color: #7e99bd;
        color: #fff;
    }
}

