﻿.categroy-info-box{
    display:block; 
    padding-top: 40px;
    padding-bottom: 80px;
    position: relative;
}
.categroy-info{
    width: 1200px;
    max-width: 100%;
    margin: 0 auto;
    font-size: 0;
    z-index: 5;
    position: relative;
}
.categroy-info-title-box{
    width: 100%;
    text-align: center;
    padding: 30px 0;
}
.categroy-info-title-ch{
    font-size: 24px;
    font-family: 'noto sans tc';
    font-weight: 700;
    color: #8bb639;
    display: block;
    vertical-align: bottom;
    line-height: 1;
    letter-spacing: 1px;
}
.categroy-info-title-en{
    font-size: 16px;
    line-height: 2;
    font-family: 'roboto';
    font-weight: 100;
    color: #d1d1d1;
    display: block;
    letter-spacing: 4px;
}
.categroy-numberpages-box{
    width: 100%;
    text-align: center;
}
.categroy-numberpages-box a{
    font-family: "roboto";
    font-size: 30px;
    vertical-align: middle;
    display: inline-block;
    margin-left: 30px;
    color: #888;
    font-weight: 700;
    font-style: italic;
    transition: all .2s linear; 
}
.categroy-numberpages-box .news-numberpages{
    color: #8bb639;
}
.categroy-numberpages-arrow{
    font-size: 30px;
    color: #8bb639;
    vertical-align: middle;
    display: inline-block;
    cursor: pointer;
}
.categroy-numberpages-r{
    padding-left: 30px;
}

.categroy-numberpages-box .categroy-numberpages{
    color: #8bb639;
}
.categroy-info-button-box{
    text-align: center;
}
.categroy-info-button{
    width: 160px;
    height: 46px;
    border: 1px solid #ccc;
    display: inline-block;
    margin-left: 20px;
    font-size: 16px;
    padding-top: 10px;
    margin-bottom: 20px;
    box-sizing: border-box;
    cursor: pointer;
    transition: all .3s linear; 
}
.categroy-info-button:nth-child(6n + 1){
    margin-left: 0;
}
.categroy-info-video-box{
    width: 100%;
    height: calc((720 / 1280) * 1200px );
}


.categroy-info-case-box{
    padding: 70px 0;
    padding-top: 30px;
    box-sizing: border-box;
}
.categroy-info-case{
    margin-right: 80px;
    margin-bottom: 20px;
    display: inline-block;
}
.categroy-info-case:nth-child(2n){
    margin-right: 0;
}
.categroy-info-case-img-box{
    width: 560px;
    height: 360px;
    display: block;
    position: relative;
    box-sizing: border-box;
    overflow: hidden;
    transition: all .4s linear;
}
.categroy-info-case-img{
    width: 100%;
    height: 100%;
    display: block;
    background-image: url(../img/front/categroy-case-img-1.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    transition: all .4s linear;
}
.categroy-info-case-text{
    box-sizing: border-box;
    padding-top: 20px;
}
.categroy-info-case-text h2{
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 2px;
    transition: all .4s linear;
}


/*<-------hover------->*/
.categroy-info-case a:hover .categroy-info-case-img-box{
    box-shadow: 5px 5px 5px 0px #555;
}
.categroy-info-case a:hover .categroy-info-case-img-box{
    border: 2px solid #8bb639;
}
.categroy-info-case a:hover .categroy-info-case-img{
    transform: scale(1.1);
}
.categroy-info-button:hover,
.categroy-info-button.active{
    border: 1px solid #8bb639;
    color: #8bb639;
}
.categroy-info-case a:hover .categroy-info-case-text h2{
    color: #8bb639;
}
.categroy-numberpages-box a:hover,
.categroy-numberpages-box a.acitve{
    color: #8bb639;
}



@media only screen and (max-width: 1200px){
    .categroy-info{
        width: 1000px;
    }
    .categroy-info-case-img-box{
        width: 460px;
        height: 296px;
    }
    .categroy-info-button:nth-child(6n + 1){
        margin-left: 20px;
    }
    .categroy-info-button:nth-child(5n + 1){
        margin-left: 0;
    }
    .categroy-info-video-box{
        height: calc((720 / 1280) * 1000px );
    }
}
@media only screen and (max-width: 1000px){
    .categroy-info{
        width: 800px;
    }
    .categroy-info-case-img-box{
        width: 360px;
        height: 231px;
    }
    .rwd-menu-class-list{
        display: block;
    }
    .categroy-info-button{
        display: block;
        width: 100%;
        margin: 0;
        border: none;
    }
    .categroy-info-button-box{
        border: 1px solid #ccc;
        border-top: none;
        box-sizing: border-box;
    }
    .categroy-info-button-box{
        display: none;
        width: 100%;
        position: absolute;
        z-index: 3;
        background-color: #fff;
    }
    .categroy-info-video-box{
        height: calc((720 / 1280) * 800px );
    }
}
@media only screen and (max-width: 800px){
    .categroy-info{
        width: 600px;
    }
    .categroy-info-case-img-box{
        width: 260px;
        height: 167px;
    }
    .categroy-numberpages,
    .categroy-numberpages-arrow{
        font-size: 20px;
    }
    .categroy-info-title-box{
        padding: 0;
    }
    .categroy-info-video-box{
        height: calc((720 / 1280) * 600px );
    }
}
@media only screen and (max-width: 600px){
    .categroy-info-case-box{
        padding: 40px 0;
    }
    .categroy-info{
        width: 400px;
    }
    .categroy-info-case{
        margin-right: 0px;
    }
    .categroy-info-case-img-box{
        width: 400px;
        height: 257px;
    }
    .categroy-info-video-box{
        height: calc((720 / 1280) * 400px );
    }
}
@media only screen and (max-width: 400px){
    .categroy-info-case-box{
        padding: 40px 0;
    }
    .categroy-info{
        width: 300px;
    }
    .categroy-info-case{
        margin-right: 0px;
    }
    .categroy-info-case-img-box{
        width: 300px;
        height: 193px;
    }
    .categroy-info-video-box{
        height: calc((720 / 1280) * 300px );
    }
}

/*animation*/
/*<-------------動畫------------->*/
@keyframes categroy_fedfromtop {
    0%{
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@keyframes categroy_fed {
    0%{
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@keyframes categroy_fedleft {
    0%{
        transform: translateX(-250px);
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@keyframes categroy_fedfrombottom {
    0%{
        transform: translateY(150px);
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@media only screen and (min-width: 1001px){
    .categroy-info-title-ch{
        animation: categroy_fedfromtop 1.5s ease both;
    }
    .categroy-info-title-en{
        animation: categroy_fed 1s ease 1.5s both;
    }
    .categroy-info-button{
        animation: categroy_fedleft 2s ease both;
    }
    .categroy-info-case,
    .categroy-numberpages-box{
        opacity: 0;
    }
    .categroy-info-case.active,
    .categroy-numberpages-box.active{
        animation: categroy_fedfrombottom 1.5s ease both;
    }

}