﻿.index-works-box{
    width: 100%;
    display: block;
    position: relative;
}
.index-works-all-box{
    width: 1360px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 175px 0;
    font-size: 0;
    position: relative;
    z-index: 1;
}
.index-works-category-box{
    width: 440px;
    display: inline-block;
    vertical-align: top;
    box-sizing: border-box;
    padding: 25px 20px 50px 35px;
    border-left: 1px solid #fff;
}
.index-works-category-title{
    font-family: "Noto Sans TC";
    font-size: 20px;
    color: #fff;
    letter-spacing: 0.2em;
    line-height: 20px;
}
.index-works-category{
    font-family: "Noto Sans TC";
    font-size: 16px;
    color: #888;
    letter-spacing: 0.2em;
    line-height: 1.4;
    display: block;
    margin-top: 25px;
    transition: all .3s linear;
}
.index-works-info-box{
    width: 920px;
    max-width: 100%;
    display: inline-block;
    vertical-align: top;
}
.index-works-info{
    width: 420px;
    max-width: 100%;
    height: 210px;
    display: inline-block;
    vertical-align: top;
    margin-right: 80px;
    overflow: hidden;
    position: relative;
}
.index-works-info:nth-child(even){
    margin-right: 0;
}
.index-works-info:nth-child(n + 3){
    margin-top: 80px;
}
.index-works-info-mask{
    position: absolute;
    top: 100%;
    left: 0;
    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;
    background-color: rgba(0,0,0,0.7);
}


.index-works-more-box{
    margin-top: 60px;
}
.index-works-more{
    width: 210px;
    max-width: 100%;
    display: block;
    background-color: #ffd200;
    box-shadow: 0 0 0px rgba(255, 255, 255, 0.15);
    box-sizing: border-box;
    padding: 0 25px;
    transition: all .3s linear;
}
.index-works-more p{
    font-family: "Noto Sans TC";
    font-size: 16px;
    color: #000;
    letter-spacing: 0.2em;
    line-height: 50px;
    display: inline-block;
    vertical-align: middle;
    transition: all .3s linear;
}
.index-works-more span{
    font-size: 16px;
    color: #000;
    letter-spacing: 0.2em;
    line-height: 50px;
    display: inline-block;
    vertical-align: middle;
}
.index-works-bg-box{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.index-works-bg{
    width: 100%;
    height: 100%;
}

.works-box{
    width: 100%;
    display: block;
    position: relative;
    box-sizing: border-box;
    padding-top: 80px;
    min-height: calc(100vh - 80px);
}




@media only screen and (max-width: 1360px){
    .index-works-all-box{
        width: 1000px;
    }
    .index-works-category-box{
        width: 320px;
    }
    .index-works-info-box{
        width: 680px;
    }
    .index-works-info{
        width: 320px;
        margin-right: 40px;
        height: calc((210 / 420) * 320px);
    }
    .index-works-info:nth-child(n + 3){
        margin-top: 40px;
    }
}
@media only screen and (max-width: 1000px){
    .index-works-all-box{
        width: 750px;
        padding: 100px 0;
    }
    .index-works-category-box{
        width: 210px;
        padding: 15px 10px 30px 20px;
    }
    .index-works-info-box{
        width: 540px;
    }
    .index-works-info{
        width: 260px;
        margin-right: 20px;
        height: calc((210 / 420) * 260px);
    }
    .index-works-info:nth-child(n + 3){
        margin-top: 20px;
    }
    .index-works-category{
        margin-top: 15px;
    }
}
@media only screen and (max-width: 768px){
    .index-works-all-box{
        width: 550px;
        padding: 60px 0;
    }
    .index-works-category-box{
        width: 100%;
        display: block;
        border-left: none;
        padding: 0;
        padding-bottom: 20px;
    }
    .rwd-index-works-category{
        width: 100%;
        height: 50px;
        font-size: 16px;
        letter-spacing: 0.2em;
        display: block;
        line-height: 50px;
        position: relative;
        box-sizing: border-box;
        background-color: #333;
        box-sizing: border-box;
        padding: 0 20px;
        margin-top: 10px;
    }
    .rwd-index-works-category:after {
        content: '';
        width: 0px;
        height: 0px;
        margin: 0 auto;
        border-right: 5px solid transparent;
        border-top: 8px solid #fff;
        border-left: 5px solid transparent;
        display: block;
        position: absolute;
        bottom: calc(50% - 4px);
        right: 20px;
        box-sizing: border-box;
    }
    .index-works-category-all-box{
        width: 100%;
        background-color: #fff;
        box-sizing: border-box;
        padding: 10px;
        position: absolute;
        display: none;
    }
    .index-works-category{
        margin-top: 0;
        box-sizing: border-box;
        padding: 10px 10px;
    }
    .index-works-info-box{
        width: 100%;
        display: block;
    }
    .index-works-info {
        width: 265px;
        margin-right: 20px;
        height: calc((210 / 420) * 265px);
    }
}
@media only screen and (max-width: 550px){
    .works-box{
        padding-top: 63px;
        min-height: calc(100vh - 63px);
    }
    .index-works-all-box{
        width: calc(100vw - 40px);
        padding: 20px 0;
    }
    .index-works-info {
        width: calc((100vw - 40px - 10px) / 2);
        margin-right: 10px;
        height: calc((210 / 420) * ((100vw - 40px - 10px) / 2));
    }
    .index-works-info:nth-child(n + 3){
        margin-top: 10px;
    }
    .index-works-more-box{
        margin-top: 20px;
    }
}
@media only screen and (min-width: 769px){
    .index-works-category.active,
    .index-works-category:hover{
        color: #ffd200;
    }
    .index-works-info:hover .main-bg{
        transform: scale(1.1);
    }
    .index-works-more:hover{
        background-color: #000;
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.15);
    }
    .index-works-more:hover p{
        color: #fff;
    }
}




@media only screen and (min-width: 769px){
    .index-works-category-box,
    .index-works-category-title,
    .index-works-category,
    .index-works-info,
    .index-works-more-box{
        opacity: 0;
    }
    .index-works-category-box.anima{
        animation: fadeInDown .4s linear 0s 1 both;
    }
    .index-works-category-box.anima .index-works-category-title{
        animation: fadeInRight 1.4s ease .4s 1 both;
    }
    .index-works-category-box.anima .index-works-category{
        animation: fadeInRight 1.4s ease .4s 1 both;
    }
    .index-works-info.anima{
        animation: fade 1.4s ease 0s 1 both;
    }
    .index-works-more-box.anima{
        animation: fadeInLeft 1.4s ease 0s 1 both;
    }
}