﻿.works-box{
    width: 100%;
    position: relative;
    display: block;
}
.works-all-box{
    width: 1840px;
    max-width: 100%;
    font-size: 0;
    display: block;
    margin: 0 auto;
    position: relative;
    box-sizing: border-box;
    padding: 150px 0;
}

.works-info{
    width: calc((100% - 160px) / 3);
    max-width: 100%;
    display: inline-block;
    vertical-align: top;
    position: relative;
    margin-right: 80px;
    padding-bottom: 60px;
}
.works-info:nth-child(3n){
    margin-right: 0;
}
.works-info:nth-child(n + 4){
    margin-top: 60px;
}
.works-info-img{
    width: 100%;
    height: 380px;
    display: block;
    overflow: hidden;
}
.works-info-text-box{
    width: 510px;
    max-width: 100%;
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: #fff;
    box-sizing: border-box;
    padding: 15px;
    padding-bottom: 24px;
    transition: all .3s linear;
}
.works-info-title{
    font-size: 24px;
    letter-spacing: 0.1em;
    color: #000;
    font-family: 'jf-openhuninn';
    font-weight: 700;
}
.works-info-text{
    font-size: 18px;
    letter-spacing: 0.1em;
    color: #64A600;
    margin-top: 5px;
    font-family: 'jf-openhuninn';
}
.works-info-class{
    font-size: 14px;
    letter-spacing: 0.1em;
    color: #666;
}
.works-info-arrow{
    width: 60px;
    height: 1px;
    background-color: #000;
    display: block;
    position: relative;
    margin-top: 25px;
}
.works-info-arrow span{
    border-bottom: 4px solid #000;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    position: absolute;
    right: 0;
    bottom: 0;
}


.works-page_number-box.page{
    margin: 60px 0;
}
.works-page_number-box.page>a{
    font-size: 22px;
    color: #888;
    font-family: "roboto";
    display: inline-block;
}
.works-page_number-box.page>a:hover,
.works-page_number-box.page>a.select{
    color: #000;
    font-weight: 600;
}
.works-page_number-box.page>a.prev,
.works-page_number-box.page>a.next{
    width: 30px;
    height: 30px;
    padding: 0;
    display: inline-flex;
    display: -webkit-inline-flex;
    align-items: center;
    -webkit-align-items: center;
    justify-content: center;
    -webkit-justify-content: center;
    flex-direction: column;
}
.works-page_number-box.page>a.prev span,
.works-page_number-box.page>a.next span{
    width: 100%;
    height: 1px;
    background-color: #000;
    display: block;
    position: relative;
    top: 5px;
}
.works-page_number-box.page>a.prev span::after{
    content: '';
    border-bottom: 4px solid #000;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    position: absolute;
    left: -1px;
    bottom: 0;
}
.works-page_number-box.page>a.next span::after{
    content: '';
    border-bottom: 4px solid #000;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    position: absolute;
    right: -1px;
    bottom: 0;
}





@media only screen and (max-width: 1840px){
    .works-all-box{
        width: 95%;
        padding: 140px 0;
    }
    .works-info{
        width: calc((100% - 160px) / 3);
    }
    .works-info-img{
        height: calc((380 / 560) * ((95vw - 160px) / 3));
    }
    .works-info-text-box{
        width: 80%;
    }
}
@media only screen and (max-width: 1280px){
    .works-all-box{
        padding: 100px 0;
    }
    .works-info{
        width: calc((100% - 80px) / 3);
        margin-right: 40px;
    }
    .works-info-img{
        height: calc((380 / 560) * ((95vw - 80px) / 3));
    }
    .works-info:nth-child(n + 4) {
        margin-top: 30px;
    }
}
@media only screen and (max-width: 1000px){
    .works-all-box{
        padding: 80px 0;
    }
    .works-info:nth-child(n) {
        width: calc((100% - 40px) / 2);
        margin-right: 40px;
    }
    .works-info-img{
        height: calc((380 / 560) * ((95vw - 40px) / 2));
    }
    .works-info:nth-child(2n) {
        margin-right: 0;
    }
    .works-info:nth-child(n + 3) {
        margin-top: 30px;
    }
}
@media only screen and (max-width: 750px){
    .works-all-box{
        padding: 40px 0;
    }
    .works-info:nth-child(n) {
        width: calc((100% - 20px) / 2);
        margin-right: 20px;
        padding-bottom: 0;
    }
    .works-info-img{
        height: calc((380 / 560) * ((95vw - 20px) / 2));
    }
    .works-info:nth-child(2n) {
        margin-right: 0;
    }
    .works-info:nth-child(n + 3) {
        margin-top: 20px;
    }
    .works-info-title{
        font-size: 20px;
    }
    .works-info-text-box{
        width: 100%;
        display: block;
        position: static;
        padding: 10px 0;
    }
}
@media only screen and (max-width: 550px){
    .works-all-box{
        padding: 20px 0;
    }
    .works-info:nth-child(n) {
        width: 100%;
        margin-right: 0;
        padding-bottom: 0;
        margin-top: 10px;
    }
    .works-info-img{
        height: calc((380 / 560) * 95vw);
    }
    .works-info-text-box{
        padding: 5px 0;
    }
    .works-info-class{
        font-size: 12px;
    }
    .works-info-title{
        font-size: 18px;
    }
    .works-info-text{
        font-size: 16px;
        margin-top: 0;
    }
    .works-info-arrow{
        margin-top: 10px;
    }
}



.works-info:hover .works-info-img span{
    transform: scale(1.1);
}


/*animation*/
/*<-------------動畫------------->*/
@media only screen and (min-width: 1001px){
    .works-info:hover .works-info-text-box{
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    }
    
    .works-info,
    .works-page_number-box{
        opacity: 0;
    }
    .works-info.anima{
        animation: fadeInUp 1s ease 0s 1 both;
    }
    .works-page_number-box.anima{
        animation: fade 1s ease 0s 1 both;
    }
}
