﻿.index-works-box{
    width: 100%;
    display: block;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    padding-bottom: 250px;
}
.index-works-all-box{
    width: 1560px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    font-size: 0;
    position: relative;
    box-sizing: border-box;
}
.index-works-title-box{
    text-align: center;
    box-sizing: border-box;
    padding: 100px 0;
}
.index-works-title-en{
    font-family: "IBM Plex Sans";
    color: #000;
    letter-spacing: 0.1em;
    line-height: 1;
    font-size: 60px;
    display: inline-block;
    vertical-align: bottom;
}
.index-works-title-ch{
    font-family: "Noto Sans TC";
    color: #e60012;
    letter-spacing: 0.1em;
    line-height: 1.4;
    font-size: 16px;
    display: inline-block;
    vertical-align: bottom;
    margin-left: 10px;
}
.index-works-info-box{
    box-shadow: 0 0 50px rgba(0,0,0,0.1);
    height: calc(360px + 300px);
    width: 100%;
    display: block;
    white-space: nowrap;
    overflow: hidden; 
    position: relative;
}
.index-works-info-all-box{
    display: inline-block;
    position: absolute;
    left: 0%;
    top: 0;
}
.index-works-info{
    display: inline-block;
    vertical-align: middle;
    transition: all .3s linear;
}
.index-works-info-top{
    width: 520px;
    height: 360px;
    display: block;
    overflow: hidden;
    position: relative;
}
.index-works-info-top>.main-bg{
    position: absolute;
    top: 0;
    left: 0;
}
.index-works-info-top::after{
    content: "";
    width: 100%;
    height: 100%;
    display: block;
    border-width: 180px 260px 180px 260px;
    border-style: solid;
    border-color: #fff;
    position: absolute;
    left: -50%;
    top: -50%;
    letter-spacing: 0;
    pointer-events: none;
}
.index-works-info-bottom{
    width: 520px;
    height: 300px;
    display: block;
    overflow: hidden;
    position: relative;
}
.animaWorks .index-works-info-bottom img{
    animation: fadeInRight 1s ease 3s 1 both;
}
.animaWorks .index-works-info-top::after{
    animation: animaWorksTop 1s ease 3s 1 both;
}
.animaWorks_paused .index-works-info-bottom img,
.animaWorks_paused .index-works-info-top::after{
    animation-play-state: paused;
}

@keyframes animaWorksTop {
    from {
        width: 0;
        height: 0;
        left: 0%;
        top: 0%;
    }

    to {
        width: 100%;
        height: 100%;
        left: -50%;
        top: -50%;
    }
}

@media only screen and (max-width: 1560px){
    .index-works-all-box{
        width: 1200px;
    }
    .index-works-info-top{
        width: calc(1200px / 3);
        height: calc((360 / 520) * (1200px / 3));
    }
    .index-works-info-bottom{
        width: calc(1200px / 3);
        height: calc((300 / 520) * (1200px / 3));
    }
    .index-works-info-box{
        height: calc(((360 / 520) + (300 / 520)) * (1200px / 3));
    }
    .index-works-info-top::after{
        border-width: calc(((360 / 520) * (1200px / 3)) / 2) calc((1200px / 3) / 2); 
    }
}
@media only screen and (max-width: 1200px){
    .index-works-all-box{
        width: 1000px;
    }
    .index-works-info-top{
        width: calc(1000px / 3);
        height: calc((360 / 520) * (1000px / 3));
    }
    .index-works-info-bottom{
        width: calc(1000px / 3);
        height: calc((300 / 520) * (1000px / 3));
    }
    .index-works-info-box{
        height: calc(((360 / 520) + (300 / 520)) * (1000px / 3));
    }
    .index-works-info-top::after{
        border-width: calc(((360 / 520) * (1000px / 3)) / 2) calc((1000px / 3) / 2); 
    }
    .animaWorks .index-works-info-bottom img{
        animation: fadeInRight 1s ease 2.4s 1 both;
    }
    .animaWorks .index-works-info-top::after{
        animation: animaWorksTop 1s ease 2.4s 1 both;
    }
}
@media only screen and (max-width: 1000px){
    .index-works-all-box{
        width: 750px;
    }
    .index-works-info-top{
        width: calc(750px / 3);
        height: calc((360 / 520) * (750px / 3));
    }
    .index-works-info-bottom{
        width: calc(750px / 3);
        height: calc((300 / 520) * (750px / 3));
    }
    .index-works-info-box{
        height: calc(((360 / 520) + (300 / 520)) * (750px / 3));
    }
    .index-works-info-top::after{
        border-width: calc(((360 / 520) * (750px / 3)) / 2) calc((750px / 3) / 2); 
    }
    .animaWorks .index-works-info-bottom img{
        animation: fadeInRight 1s ease 1.5s 1 both;
    }
    .animaWorks .index-works-info-top::after{
        animation: animaWorksTop 1s ease 1.5s 1 both;
    }
    .index-works-box{
        padding-bottom: 150px;
    }
    .index-works-title-en{
        font-size: 44px;
    }
}

@media only screen and (max-width: 768px){
    .index-works-info-all-box{
        width: 100%;
        display: block;
        position: relative;
    }
    .index-works-title-box{
        padding: 40px 0;
    }
    .index-works-title-en{
        font-size: 30px;
    }
    .index-works-info-box {
        box-shadow: 0 0 10px rgb(0 0 0 / 10%);
    }
    .index-works-box{
        padding-bottom: 50px;
    }
}
@media only screen and (max-width: 550px){
    .index-works-title-box{
        padding: 20px 0;
    }
    .index-works-title-en{
        font-size: 20px;
        letter-spacing: 0.06em;
    }
    .index-works-title-ch{
        font-size: 14px;
        line-height: 1;
        margin-left: 5px;
    }
    .index-works-box{
        padding-bottom: 20px;
    }
}
@media only screen and (min-width: 769px){
    .index-works-info:hover{
        box-shadow: 0 0 50px rgba(0,0,0,0.1);
    }

    .index-works-title-en,
    .index-works-title-ch,
    .index-works-info-box{
        opacity: 0;
    }
    .index-works-title-box.anima .index-works-title-en{
        animation: fadeInRight 1s ease 0s 1 both;
    }
    .index-works-title-box.anima .index-works-title-ch{
        animation: fadeInDown 1s ease .4s 1 both;
    }
    .index-works-info-box.anima{
        animation: fade 1s ease 0s 1 both;
    }
}

