﻿.recommend-info-box{
    display:block; 
    padding-bottom: 80px;
    position: relative;
}
.recommend-info{
    width: 1200px;
    max-width: 100%;
    margin: 0 auto;
    font-size: 0;
    z-index: 5;
    position: relative;
}
.recommend-info-title-box{
    width: 100%;
    text-align: center;
    padding: 50px 0;
    padding-bottom: 20px;
}
.recommend-info-title-ch{
    font-size: 24px;
    font-family: 'noto sans tc';
    font-weight: 700;
    color: #8bb639;
    display: block;
    line-height: 1;
    letter-spacing: 1px;
}
.recommend-info-title-en{
    font-size: 16px;
    line-height: 2;
    font-family: 'roboto';
    font-weight: 100;
    color: #d1d1d1;
    display: block;
    letter-spacing: 4px;
}
.recommend-info-text-box{
    font-size: 22px;
    color: #333;
    text-align:center;
    padding-bottom: 50px;
}

.recommend-info-list-box{
    width: 80%;
    display: block;
    position: relative;
    margin: 20px auto;
    font-size: 0;
}
.recommend-info-list{
    width: calc((100% - 140px) / 8);
    display: inline-block;
    vertical-align: top;
    margin-right: 20px;
    margin-bottom: 10px;
}
.recommend-info-list:nth-child(8n){
    margin-right: 0;
}
.recommend-info-list-img{
    width: 100%;
    height: calc(((100vw * 0.8) - 140px) / 8);
    position: relative;
    display:         flex;
    display: -webkit-flex;
    align-items: center;
    -webkit-align-items: center;
    justify-content: center;
    -webkit-justify-content: center;
    flex-direction: column;
    box-sizing: border-box;
    padding: 15%;
    border: 4px solid #8bb639;
    border-radius: 50%;
    overflow: hidden;
}
.recommend-info-list-img span{
    /* max-width: calc((1200px - 100px) / 8); */
    transition: all .2s linear;
}
.recommend-info-list-title{
    font-size: 16px;
    padding: 10px 0;
    display: block;
    text-align: center;
    letter-spacing: 1px;
    transition: all .2s linear;
}

.recommend-case{
    width: 360px;
    max-width: 100%;
    padding-bottom: 17px;
    border: 1px solid #ccc;
    display: inline-block;
    box-sizing: border-box;
    transition: all .2s linear;
    margin-right: 60px;
    margin-bottom: 60px;
    vertical-align: top;
}
.recommend-case:nth-child(3n){
    margin: 0;
    margin-bottom: 60px;
}
.recommend-case-top-img-box{
    overflow: hidden;
}
.recommend-case-top-img{
    width: 100%;
    height: 260px;
    background-image: url(../img/front/recommend-img-bc.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    transition: all .2s linear;
}
.recommend-case-top-name{
    font-size: 16px;
    text-align: center;
    padding: 10px 0;
    background-color: #f5f5f5;
}
.recommend-case-bottom-box{
    box-sizing: border-box;
    padding: 0 20px;
    padding-top: 15px;
    position: relative;
}
.recommend-case-bottom-client-box{
    text-align: center;
    padding-bottom: 20px;
}
.recommend-case-bottom-client{
    font-size: 18px;
    font-weight: bold;
    color: #8bb639;
    position: relative;
}
.recommend-case-bottom-client:after{
    content: '';
    width: 100%;
    height: 2px;
    display: block;
    background-color: #8bb639;
    position: absolute;
    bottom: -5px;
    left: 0;
}
.recommend-case-bottom-text{
    font-size: 14px;
    color: #555;
    line-height: 2;
    overflow : hidden;
    max-height: 140px;
    height: 140px;
    margin-bottom: 35px;
    position: relative;
}
.recommend-case-bottom-text.active{
    max-height: 100%;
    height: auto;
}
.recommend-case-bottom-omit{
    width: 30px;
    height: 15px;
    overflow: hidden;
    display: block;
    position: absolute;
    bottom: 8px;
    right: 6px;
    text-align: right;
    display: none;
}
.recommend-case-bottom-omit>span{
    font-size: 28px;
    line-height: 15px;
    color: #8bb639;
    cursor: pointer;
    background-color: #fff;
    transition: all .2s linear;
    box-shadow: -5px 0 10px #fff;
}
.recommend-case-bottom-button-box{
    width: 100%;
    text-align: right;
}
.recommend-case-bottom-button{
    width: 90px;
    height: 38px;
    display: inline-block;
    color: #8bb639;
    box-sizing: border-box;
    border: 1px solid #8bb639;
    font-size: 14px;
    text-align: center;
    padding: 7px 0;
    cursor: pointer;
    transition: all .2s linear;
}

/*<--------------hover--------------->*/
.recommend-case-bottom-button:hover{
    color: #fff;
    background-color: #8bb639;
}
.recommend-case:hover{
    border: 1px solid #8bb639;
    box-shadow: 0px 1px 5px 1px #ccc; 
}
.recommend-case:hover .recommend-case-top-img{
    transform: scale(1.1);
}
.recommend-fancybox-button:hover,
.recommend-fancybox-button.active{
    border-top-color: #8bb639;
    background-color: #fff; 
}
.recommend-fancybox-button:hover .recommend-fancybox-button-span,
.recommend-fancybox-button.active .recommend-fancybox-button-span{
    color: #8bb639;
    border: none;
}
.recommend-case-bottom-box>span:hover{
    color: #000;
}
.recommend-info-list:hover .recommend-info-list-img span{
    transform: scale(1.1);
}
.recommend-info-list:hover .recommend-info-list-title{
    color: #8bb639;
}

/*fancy-box*/

.recommend-fancybox-table{
    width: 100%;
    height: 100vh;
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
}
.recommend-fancybox-table.active{
    display: table;
}
.recommend-fancybox-table-mid{
    display: table-cell;
    vertical-align: middle;
}
.recommend-fancybox-box{
    width: 1000px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    position: relative;
    z-index: 3;
    font-size: 0;
}
.recommend-fancybox-button{
    width: 120px;
    height: 60px;
    display: inline-block;
    background-color: #ddd;
    text-align: center;
    padding: 10px 0;
    box-sizing: border-box;
    border-top: 2px solid #333;
    cursor: pointer;
    transition: all .3s linear;
}
.recommend-fancybox-button-span{
    width: 100%;
    line-height: 40px;
    display: block;
    font-size: 14px;
    color: #888;
    box-sizing: border-box;
    border-right: 1px solid #aaa;
    transition: all .3s linear;
}
.recommend-fancybox-button:nth-child(3) .recommend-fancybox-button-span{
    border:none;
}
.recommend-fancybox-talk-box{
    width: 100%;
    display: block;
    background-color: #fff;
    padding: 60px 70px;
    box-sizing: border-box;
    position: relative;
}

.recommend-fancybox-talk-big{
    width: 100%;
    height: 70vh;
    display: block;
    overflow-y: auto;
    text-align: center;
}
.recommend-fancybox-talk-small-box{
    margin-top: 25px;
}
.recommend-fancybox-talk-small{
    width: 162px;
    height: 100px;
    display: inline-block;
    overflow: hidden;
    background-image: url(../img/front/recommend-fancy-bc.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    margin-right: 10px;
    cursor: pointer;
}
.recommend-fancybox-img-box{
    width: 100%;
    display: block;
    background-color: #fff;
    padding: 60px 70px;
    box-sizing: border-box;
    position: relative;
}

.recommend-fancybox-img-big{
    width: 100%;
    height: 560px;
    display: block;
    overflow: hidden;
}
.recommend-fancybox-img-small-box{
    margin-top: 25px;
}
.recommend-fancybox-img-small{
    width: 162px;
    height: 100px;
    display: inline-block;
    overflow: hidden;
    background-image: url(../img/front/recommend-fancy-bc.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    margin-right: 10px;
    cursor: pointer;
}
.recommend-fancybox-article{
    max-height: calc(100vh - 700px);
    overflow: auto;
}
.recommend-fancybox-mask-box{
    width: 100%;
    height: 100%;
    display: block;
    background-color: rgba(0,0,0,0.3);
    position: fixed;
    top: 0;
    left: 0;
}
.recommend-fancybox-close{
    width: 40px;
    height: 40px;
    line-height: 40px;
    font-size: 20px;
    color: #000;
    text-align: center;
    position: absolute;
    top: -20px;
    right: -20px;
    background-color: #ddd;
    cursor: pointer;
    z-index: 4;
}
.recommend-fancybox-block::-webkit-scrollbar{
    display:none;
}
#recommend .slick-next{
    right: -45px;
}
#recommend .slick-prev{
    left: -45px;
}
.recommend-fancybox-img-big-box .slick-prev, .recommend-fancybox-img-big-box .slick-next{
    z-index: 2;
}
.recommend-fancybox-img-big-box .slick-next:before{
    content: '\f0da';
    font-weight: bold;
    font-family: "Font Awesome 5 Free";
    display: block;
    width: 100%;
    text-align: right;
    font-size: 30px;
    color: #888;
    position: relative;
}
.recommend-fancybox-img-big-box .slick-prev:before{
    content: '\f0d9';
    font-weight: bold;
    font-family: "Font Awesome 5 Free";
    display: block;
    width: 100%;
    text-align: left;
    font-size: 30px;
    color: #888;
    position: relative;
}
.recommend-fancybox-pdf-box{
    width: 100%;
    display: block;
    background-color: #fff;
    padding: 60px 70px;
    box-sizing: border-box;
    overflow: hidden;
    font-size: 14px;
    position: relative;
}
.recommend-fancybox-download{
    width: 50px;
    height: 50px;
    position: absolute;
    bottom: 0;
    right: 0;
    text-align: center;
    background-color: #ccc;
    font-size: 30px;
    color: #555;
    border-radius: 50%;
}


@media only screen and (max-width: 1200px){
    .recommend-info{
        width: 1000px;
    }
    .recommend-info-list {
        width: calc((100% - 70px) / 8);
        margin-right: 10px
    }
    .recommend-info-list-img{
        height: calc(((100vw * 0.8) - 70px) / 8);
    }
    .recommend-info-list-img span {
        /* max-width: calc((1000px - 100px) / 10); */
    }
    .recommend-case{
        width: 300px;
        margin-right: 50px;
        margin-bottom: 50px;
    }
    .recommend-case-top-img{
        height: 217px;
    }
    .recommend-info-text-box{
        font-size: 20px;
    }
}
@media only screen and (max-height: 860px){
    .recommend-fancybox-img-box{
        padding: 20px 70px;
    }
    .recommend-fancybox-button{
        height: 46px;
        padding: 10px 0;
    }
    .recommend-fancybox-button-span{
        line-height: 26px;
    }
}
@media only screen and (max-height: 768px){
    .recommend-fancybox-img-big{
        height: 500px;
    }
    .recommend-fancybox-img-small-box{
        margin-top: 15px;
    }
}
@media only screen and (max-height: 700px){
    .recommend-fancybox-img-big{
        height: 450px;
    }
    .recommend-fancybox-img-small-box{
        margin-top: 10px;
    }
    .recommend-fancybox-img-small{
        height: 90px;
    }
}
@media only screen and (max-width: 1000px){
    .recommend-info,
    .recommend-info-list-box{
        width: 800px;
    }
    .recommend-info-list-box{
        margin: 10px auto;
    }

    .recommend-info-list:nth-child(n){
        width: calc((100% - 60px) / 4);
        margin-right: 20px;
    }
    .recommend-info-list:nth-child(4n){
        margin-right: 0;
    }
    .recommend-info-list-img{
        height: calc((800px - 60px) / 4);
    }

    .recommend-case{
        width: 375px;
        margin-right: 50px;
        margin-bottom: 50px;
    }
    .recommend-case-top-img{
        height: 271px;
    }
    .recommend-case-bottom-button{
        width: 95px;
    }
    .recommend-case:nth-child(3n){
        margin-right: 50px;
        margin-bottom: 50px;
    }
    .recommend-case:nth-child(2n){
        margin: 0;
        margin-bottom: 30px;
    }
    .recommend-fancybox-box{
        width: 780px;
    }
    .recommend-fancybox-img-big{
        height: 430px;
    }
    .recommend-info-text-box{
        font-size: 18px;
    }
}
@media only screen and (max-width: 800px){
    .recommend-info,
    .recommend-info-list-box{
        width: 600px;
    }
    .recommend-info-list-img{
        height: calc((600px - 60px) / 4);
    }
    .recommend-info-list-img span {
        /* max-width: calc((500px - 60px) / 8); */
    }
    .recommend-case{
        width: 285px;
        margin-right: 30px;
        margin-bottom: 30px;
    }
    .recommend-case-top-img{
        height: 206px;
    }
    .recommend-case-bottom-button{
        width: 80px;
    }
    .recommend-case-bottom-box{
        padding: 0 10px;
    }
    .recommend-case:nth-child(3n){
        margin-right: 30px;
        margin-bottom: 30px;
    }
    .recommend-case:nth-child(2n){
        margin: 0;
        margin-bottom: 30px;
    }
    .recommend-case-top-name{
        font-size: 14px;
    }
    .recommend-case-bottom-client{
        font-size: 16px;
    }
    .recommend-case-bottom-text{
        font-size: 12px;
    }
    .recommend-info-title-ch{
        font-size: 20px;
    }
    .recommend-info-title-en{
        font-size: 14px;
    }
    .recommend-info-title-box{
        padding: 20px 0; 
    }
    .recommend-info-box{
        padding-bottom: 40px;
    }

    .recommend-fancybox-box{
        width: 580px;
    }
    .recommend-fancybox-img-big-box .slick-prev:before, 
    .recommend-fancybox-img-big-box .slick-next:before{
        content: '';
    }
    .recommend-fancybox-img-box,
    .recommend-fancybox-talk-box{
        padding: 20px 17px;
    }
    .recommend-fancybox-download{
        width: 30px;
        height: 30px;
        font-size: 18px;
    }
    .recommend-info-text-box{
        font-size: 16px;
    }
}
@media only screen and (max-width: 600px){
    .recommend-info,
    .recommend-info-list-box{
        width: 400px;
    }
    .recommend-info-list:nth-child(n){
        width: calc((100% - 20px) / 3);
        margin-right: 10px;
    }
    .recommend-info-list:nth-child(3n){
        margin-right: 0;
    }
    .recommend-info-list-img{
        height: calc((400px - 20px) / 3);
        border-width: 3px;
    }
    .recommend-info-list-title{
        font-size: 14px;
    }
    .recommend-case{
        width: 400px;
        margin: 0;
        margin-bottom: 20px;
    }
    .recommend-case-top-img{
        height: 289px;
    }
    .recommend-case:nth-child(2n){
        margin-bottom: 20px;
    }
    .recommend-case-bottom-button-box{
        text-align: center;
    }
    .recommend-fancybox-box{
        width: 380px;
    }
    .recommend-fancybox-button-span{
        font-size: 12px;
    }
    .recommend-fancybox-button{
        height: 46px;
        padding: 10px 0;
        width: 100px;
    }
    .recommend-fancybox-button-span{
        line-height: 26px;
    }
    .recommend-fancybox-img-big{
        height: 236px;
    }
    .recommend-fancybox-img-small{
        height: 40px;
    }
    .recommend-info-text-box{
        font-size: 14px;
        padding-bottom: 30px;
    }
    .recommend-case-bottom-omit{
        height: 25px;
        bottom: -7px
    }

}
@media only screen and (max-width: 400px){
    .recommend-info,
    .recommend-info-list-box{
        width: 300px;
    }
    
    .recommend-info-list-img{
        height: calc((300px - 20px) / 3);
    }
    .recommend-info-list-img span {
        /* max-width: calc((300px - 20px) / 6); */
    }

    .recommend-case{
        width: 100%;
        margin: 0;
        margin-bottom: 20px;
    }
    .recommend-case-top-img{
        height: 217px;
    }
    .recommend-fancybox-box{
        width: 300px;
    }
    .recommend-fancybox-button{
        height: 36px;
        padding: 5px 0;
        width: 80px;
    }
    .recommend-fancybox-button-span{
        line-height: 21px;
    }

    .recommend-info-text-box{
        font-size: 12px;
    }
    .recommend-fancybox-close{
        width: 25px;
        height: 25px;
        line-height: 25px;
        top: -15px;
        right: -10px;
    }
}

/*animation*/
/*<-------------動畫------------->*/
@keyframes recommend_fedfromtop {
    0%{
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@keyframes recommend_fedfrombottom {
    0%{
        transform: translateY(150px);
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@keyframes recommend_fed {
    0%{
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@media only screen and (min-width: 1001px){
    .recommend-info-title-ch{
        animation: recommend_fedfromtop 1.5s ease both;
    }
    .recommend-info-title-en{
        animation: recommend_fed 1s ease 1.5s both;
    }
    .recommend-case,
    .recommend-info-list{
        opacity: 0;
    }
    .recommend-case.active,
    .recommend-info-list.active{
        animation: recommend_fedfrombottom 1s ease 0s 1 both;
    }
    .recommend-info-text-box{
        animation: recommend_fedfrombottom 1s ease 0s 1 both;
    }
}