﻿.service-page-box{
    width: 100%;
    display: block;
    position: relative;
    font-size: 0;
    margin-top: 80px;
    background-color: #f5f5f5;
}
.service-page-all-box{
    width: 1000px;
    max-width: 100%;
    display: block;
    position: relative;
    box-sizing: border-box;
    padding: 100px 0;
    margin: 0 auto;
    z-index: 2;
}
#service-page .page-path-box{
    text-align: right;
}
.service-page-info-box{
    width: 100%;
    display: block;
    box-sizing: border-box;
    background-color: #fff;
    border: 1px solid #d1d1d1;
    padding: 0 50px;
    padding-bottom: 30px;
}
.service-page-info-img{
    width: 60px;
    height: 60px;
}
.service-page-info-icon{
    display: inline-block;
    vertical-align: middle;
    width: 200px;
    height: 130px;
}
.service-page-info{
    display: inline-block;
    width: 200px;
    height: 200px;
    background-color: #fff;
    box-sizing: border-box;
    border: 1px solid #d1d1d1;
    position: relative;
    background-color: #fff;
    top: -80px;
}
.service-page-info-fixed{
    width: 100%;
    height: 100%;
    display:flex;
    display: -webkit-flex;
    align-items: center;
    -webkit-align-items: center;
    justify-content: center;
    -webkit-justify-content: center;
    flex-direction:column;
}
.service-page-info-text{
    font-size: 18px;
    color: #555;
    margin: 20px 0;
    letter-spacing: 2px;
}
.service-page-info-btn{
    width: 100px;
    height: 30px;
    line-height: 30px;
    background-color: #d3202f;
    font-size: 14px;
    color: #fff;
    text-align: center;
    letter-spacing: 1px;
    transition: all .3s linear;
}
.service-page-info-line-t{
    top: -1px;
    left: -1px;
    width: 16px;
    height: 1px;
}
.service-page-info-line-l{
    top: -1px;
    left: -1px;
    width: 1px;
    height: 16px;
}
.service-page-info-line-b{
    bottom: -1px;
    right: -1px;
    width: 16px;
    height: 1px;
}
.service-page-info-line-r{
    bottom: -1px;
    right: -1px;
    width: 1px;
    height: 16px;
}
.service-page-info-line-t,
.service-page-info-line-l,
.service-page-info-line-b,
.service-page-info-line-r{
    position: absolute;
    display: block;
    background-color: #d3202f;
    transition: all .3s linear;
}
.service-page-info-title{
    display: inline-block;
    vertical-align: bottom;
    font-size: 26px;
    color: #d3202f;
    margin-left: 20px;
    transform: skewX(-10deg);
    letter-spacing: 3px;
}
.service-page-info-edit{
    font-size: 16px;
    color: #555;
    line-height: 1.8;
    letter-spacing: 1px;
    box-sizing: border-box;
    padding-top: 35px;
    padding-bottom: 40px;
}
.service-page-info-back-box{
    text-align: center;
}
.service-page-info-back{
    display: inline-block;
}
.service-page-info-back-arrow{
    position: relative;
    width: 60px;
    display: inline-block;
    vertical-align: bottom;
    margin-right: 5px;
    transition: all .3s linear;
}
.service-page-info-back-arrow:after{
    content: '';
    width: 0;
    height: 0;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #888;
    border-left: 8px solid transparent;
    display: block;
    position: absolute;
    bottom: 10px;
    left: -3px;
    z-index: 2;
    transition: all .3s linear;
}
.service-page-info-back-arrow-line{
    width: 100%;
    display: block;
    height: 2px;
    background-color: #888;
    position: relative;
    top: -10px;
    transition: all .3s linear;
}
.service-page-info-back-text{
    font-size: 26px;
    font-weight: bold;
    color: #888;
    transform: skewX(-10deg);
    letter-spacing: 2px;
    display: inline-block;
    vertical-align: bottom;
    transition: all .3s linear;
}

/*<--------------hover-------------->*/
.service-page-info-back:hover .service-page-info-back-text{
    color: #d3202f;
    letter-spacing: 5px;
}
.service-page-info-back:hover .service-page-info-back-arrow-line{
    background-color: #d3202f;
}
.service-page-info-back:hover .service-page-info-back-arrow{
    width: 48px;
}
.service-page-info-back:hover .service-page-info-back-arrow:after{
    border-bottom: 8px solid #d3202f;
}

@media only screen and (max-width: 1000px){
    .service-page-box{
        margin-top: 62px;
    }
    .service-page-all-box{
        width: 800px;
    }
}
@media only screen and (max-width: 800px){
    .service-page-all-box{
        width: 600px;
    }
    .service-page-info-box{
        padding-top: 20px;
    }
    .service-page-info-icon{
        display: none;
    }
    .service-page-info-title{
        margin-left: 0;
        letter-spacing: 1px;
    }
}
@media only screen and (max-width: 600px){
    .service-page-box{
        margin-top: 42px;
    }
    .service-page-all-box{
        width: 95%;
        padding: 30px 0;
    }
    .service-page-info-box{
        padding: 10px;
    }
    .service-page-info-title{
        font-size: 22px;
    }
    .service-page-info-edit{
        font-size: 14px;
        padding: 20px 0;
    }
    .service-page-info-back-text{
        font-size: 22px;
    }
    .service-page-info-back-arrow{
        width: 50px;
    }
}
@media only screen and (max-width: 400px){
    .service-page-all-box{
        padding: 20px 0;
    }
    .service-page-info-title{
        font-size: 20px;
    }
    .service-page-info-edit{
        font-size: 12px;
        padding: 10px 0;
    }
    .service-page-info-back-text{
        font-size: 20px;
    }
    .service-page-info-back-arrow{
        width: 40px;
    }
}


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

@keyframes animation_service_line_h {
    0%{
        height: 100%;
    }
    to {
        height: 16px;
        opacity: 1;
    }
}
@keyframes animation_service_line_w {
    0%{
        width: 100%;
    }
    to {
        width: 16px;
        opacity: 1;
    }
}
@media only screen and (min-width: 1001px){
    .service-page-info-line-r,
    .service-page-info-title,
    .service-page-info-edit{
        opacity: 0;
    }
    .service-page-info-line-r,
    .service-page-info-line-l{
        animation: animation_service_line_h 1s ease both;
    }
    .service-page-info-line-t,
    .service-page-info-line-b{
        animation: animation_service_line_w 1s ease both;
    }
    .service-page-info-title{
        animation: animation_rtol 1s ease both;
    }
    .service-page-info-edit{
        animation: animation_fade 1s ease both;
    }
}