﻿.index-works-box{
    width: 100%;
    display: block;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    padding-top: 60px;
    padding-bottom: 120px;
}
.index-works-info-box{
    width: 1800px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    font-size: 0;
    position: relative;
}
.index-works-info{
    width: calc(33.33% - 10px);
    display: inline-block;
    vertical-align: top;
    margin-right: calc((10px * 3) / 2);
}
.index-works-info:nth-child(3n){
    margin-right: 0;
}
.index-works-info:nth-child(n + 4){
    margin-top: 70px;
}
.index-works-info-img-box{
    width: 100%;
    height: calc((400 / 600) * ((1800px * 0.3333) - 10px));
    display: block;
    overflow: hidden;
    position: relative;
}
.index-works-info-text-box{
    box-sizing: border-box;
    padding: 10px 0;
}
.index-works-info-text{
    font-size: 18px;
    font-family: 'Noto Sans TC';
    line-height: 30px;
    color: #000;
    letter-spacing: 0.06em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.index-works-info-text-date{
    display: block;
}
.index-works-info-text-date span{
    display: inline-block;
    vertical-align: middle;
    font-size: 16px;
    font-family: 'Roboto';
    font-weight: 300;
    line-height: 30px;
    color: #000;
    letter-spacing: 0.06em;
    margin-right: 10px;
}
.index-works-info-text-date p{
    display: inline-block;
    vertical-align: middle;
    font-size: 16px;
    font-family: 'Roboto';
    font-weight: 300;
    line-height: 30px;
    color: #000;
    letter-spacing: 0.06em;
}

@media only screen and (max-width: 1800px){
    .index-works-info-box{
        width: calc(100% - 120px);
    }
    .index-works-info {
        width: calc(33.33% - 10px);
    }
    .index-works-info-img-box {
        height: calc((400 / 600) * (((100vw - 120px) * 0.3333) - 10px));
    }
}
@media only screen and (max-width: 768px){
    .index-works-box{
        padding-top: 40px;
        padding-bottom: 80px;
    }
    .index-works-info-box{
        width: calc(100% - 60px);
    }
    .index-works-info:nth-child(n){
        width: calc(50% - 10px);
        margin-right: 20px;
    }
    .index-works-info:nth-child(2n){
        margin-right: 0px;
    }
    .index-works-info:nth-child(n + 3){
        margin-top: 40px;
    }
    .index-works-info-img-box {
        height: calc((400 / 600) * (((100vw - 60px) * 0.5) - 10px));
    }
}
@media only screen and (max-width: 550px){
    .index-works-box{
        padding-top: 10px;
        padding-bottom: 10px;
    }
    .index-works-info-box{
        width: calc(100vw - 20px);
    }
    .index-works-info:nth-child(n){
        width: calc(50% - 5px);
        margin-right: 10px;
    }
    .index-works-info:nth-child(2n){
        margin-right: 0px;
    }
    .index-works-info:nth-child(n + 3){
        margin-top: 10px;
    }
    .index-works-info-img-box {
        height: calc((400 / 600) * (((100vw - 20px) * 0.5) - 5px));
    }
    .index-works-info-text-box {
        padding: 5px 0;
    }
    .index-works-info-text {
        font-size: 16px;
        line-height: 22px;
    }
    .index-works-info-text-date span{
        font-size: 14px;
        line-height: 22px;
        margin-right: 5px;
    }
    .index-works-info-text-date p{
        font-size: 14px;
        line-height: 22px;
    }
}
@media only screen and (max-width: 350px){
    .index-works-info:nth-child(n){
        width: 100%;
        margin-top: 5px;
    }
    .index-works-info:nth-child(1){
        margin-top: 0px;
    }
    .index-works-info-img-box {
        height: calc((400 / 600) * (100vw - 20px));
    }
}



@media only screen and (min-width: 769px){
    .index-works-info:hover .main-bg{
        transform: scale(1.1);
    }
    .index-works-info .main-bg::after{
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(255, 255, 255, 0.2);
        opacity: 0;
        transition: all .3s ease;
    }
    .index-works-info:hover .main-bg::after{
        opacity: 1;
    }


    .index-works-info{
        /* opacity: 0; */
    }
    .index-works-info.anima{
        animation: fadeInUp 1s ease 0s 1 both;
    }
}