﻿.works-box{
    width: 100%;
    display: block;
    position: relative;
    box-sizing: border-box;
    margin-top: 150px;
    padding-top: 60px;
    min-height: 100vh;
    font-size: 0;
}
.works-title{
    font-size: 36px;
    line-height: 1;
    font-weight: 700;
    color: #000;
    text-align: center;
}
.works-category-box{
    width: 1500px;
    max-width: 100%;
    margin: 0 auto;
    display: block;
    box-sizing: border-box;
    padding: 40px 0;
    margin-top: 10px;
}
.works-category-all-box{
    display: flex;
    justify-content: center;
    align-items: center;
}
.works-category{
    width: 25%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.works-category-title{
    display: inline-block;
    position: relative;
}
.works-category-title p{
    font-size: 26px;
    color: #000;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}
.works-category-title::after{
    content: '';
    width: 0%;
    height: 50%;
    background-color: #ffd200;
    display: block;
    position: absolute;
    bottom: 0;
    left: -5px;
    transition: all .3s linear;
}
.works-category-title.active::after,
.works-category-title:hover::after{
    width: calc(100% + 10px);
}
.works-tag-box{
    background-color: #333;
}
.works-tag-all-box{
    width: 1500px;
    max-width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    place-items: center;
    box-sizing: border-box;
}
.works-tag{
    box-sizing: border-box;
    padding: 20px 0;
}
.works-tag input{
    position: absolute;
    opacity: 0;
}
.works-tag-title{
    display: inline-block;
    font-size: 22px;
    color: #fff;
    line-height: 1;
    transition: all .3s linear;
}
.works-tag-title span{
    width: 14px;
    height: 2px;
    display: inline-block;
    vertical-align: middle;
    background-color: #fff;
    position: relative;
    margin-top: -5px;
    margin-left: 15px;
    transition: all .3s linear;
}
.works-tag-title span::after{
    content: "";
    width: 2px;
    height: 14px;
    background-color: #fff;
    position: absolute;
    top: -6px;
    left: 6px;
    transition: all .3s linear;
}
.works-tag-title.active,
.works-tag-title:hover{
    color: #ffce00;
}
.works-tag-title.active span,
.works-tag-title:hover span{
    transform: rotateZ(45deg);
    background-color: #ffce00;
}
.works-tag-title.active span:after,
.works-tag-title:hover span::after{
    background-color: #ffce00;
}
.works-info-box{
    width: 1500px;
    max-width: 100%;
    display: grid;
    margin: 0 auto;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 5px;
    box-sizing: border-box;
    padding-top: 90px;
    padding-bottom: 150px;
}
.works-info{
    position: relative;
    overflow: hidden;
}
.works-info-img-box{
    box-sizing: border-box;
    padding-bottom: 100%;
}
.works-info-img-box img{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s linear;
}
.works-info-text-box{
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    transition: all 0.3s linear;
}
.works-info:hover .works-info-text-box{
    opacity: 1;
}
.works-info:hover img{
    transform: scale(1.1);
}
.works-info-text-box p{
    font-family: Arial;
    font-weight: 700;
    color: #ffce00;
    line-height: 1.4;
    font-size: 30px;
    box-sizing: border-box;
    padding: 0 5%;
}
.works-info-text-box span{
    display: block;
    font-size: 26px;
    color: #fff;
    font-weight: 700;
}
.works-arrow-box{
    position: absolute;
    bottom: 50px;
    left: calc(50%);
    height: 63px;
}
.works-arrow-box:before {
    content: '';
    width: 23px;
    height: 6px;
    display: block;
    background-color: #000;
    border-radius: 3px;
    position: absolute;
    left: -19px;
    top: 30px;
    transform: rotateZ(40deg);
}
.works-arrow-box:after {
    content: '';
    width: 23px;
    height: 6px;
    display: block;
    background-color: #000;
    border-radius: 3px;
    position: absolute;
    right: -19px; 
    top: 30px;
    transform: rotateZ(-40deg);
}

/* .about-award-arrow-box{
    width: 100%;
    text-align: center;
    cursor: pointer;
    display: block;
    margin-top: 40px;
}
.about-award-arrow-box span{
    position: relative;
    display: inline-block;
    height: 63px;
}
.about-award-arrow-box span::before{
    content: '';
    width: 23px;
    height: 6px;
    display: block;
    background-color: #000;
    border-radius: 3px;
    position: absolute;
    left: -19px;
    top: 30px;
    transform: rotateZ(40deg);
}
.about-award-arrow-box span::after{
    content: '';
    width: 23px;
    height: 6px;
    display: block;
    background-color: #000;
    border-radius: 3px;
    position: absolute;
    right: -19px; 
    top: 30px;
    transform: rotateZ(-40deg);
} */


@media only screen and (max-width: 1500px){
    .works-title {
        font-size: 46px;
    }
    .works-category-box,
    .works-tag-all-box,
    .works-info-box{
        width: 1200px;
    }
}
@media only screen and (max-width: 1200px){
    .works-category-box,
    .works-tag-all-box,
    .works-info-box{
        width: 1000px;
    }
    .works-tag-title{
        font-size: 22px;
    }
    .works-info-text-box p{
        font-size: 26px;
    }
    .works-info-text-box span{
        font-size: 22px;
    }
}
@media only screen and (max-width: 1000px){
    .works-box{
        margin-top: 55px;
        padding-top: 40px;
    }
    .works-title {
        font-size: 30px;
    }
    .works-category-box,
    .works-tag-all-box,
    .works-info-box{
        width: 750px;
    }
    .works-tag-title {
        font-size: 20px;
    }
    .works-tag-title span{
        width: 10px;
        margin-left: 10px;
    }
    .works-tag-title span::after{
        height: 10px;
        top: -4px;
        left: 4px;
    }
    .works-category-box{
        padding: 40px 0;
    }
    .works-category-title p{
        font-size: 24px;
    }
    .works-info-box{
        padding-top: 60px;
        padding-bottom: 100px;
    }
    .works-arrow-box {
        bottom: 30px;
    }
    /* .works-arrow-box:before{
        border-left: 9px solid #000;
        border-top: 9px solid transparent;
        border-bottom: 9px solid transparent;
        display: inline-block;
        width: 7px;
        height: 14px;
        margin-right: -2.5px;
    }
    .works-arrow-box:after{
        border-right: 9px solid #000;
        border-top: 9px solid transparent;
        border-bottom: 9px solid transparent;
        width: 7px;
        height: 14px;
        margin-left: -2.5px;
    } */
    .works-info-text-box p{
        font-size: 22px;
    }
    .works-info-text-box span{
        font-size: 20px;
    }
}
@media only screen and (max-width: 768px){
    .works-box{
        padding-top: 20px;
    }
    .works-title {
        font-size: 24px;
    }
    .works-category-box,
    .works-tag-all-box,
    .works-info-box{
        width: 550px;
    }
    .works-tag-all-box{
        grid-template-columns: repeat(3, 1fr);
    }
    .works-tag{
        padding: 15px 0;
    }
    .works-category-box{
        padding: 20px 0;
        position: relative;
    }
    .rwd-works-category{
        width: 100%;
        display: block;
        font-size: 20px;
        color: #fff;
        line-height: 2;
        position: relative;
        text-align: center;
        box-sizing: border-box;
        background-color: rgba(0, 0, 0, 0.5);
    }
    .rwd-works-category:after {
        content: '';
        width: 0px;
        height: 0px;
        margin: 0 auto;
        border-right: 6px solid transparent;
        border-top: 10px solid #fff;
        border-left: 6px solid transparent;
        display: block;
        position: absolute;
        bottom: calc(50% - 5px);
        right: 20px;
        box-sizing: border-box;
    }
    .works-category-all-box{
        width: 100%;
        display: none;
        position: absolute;
        background-color: rgba(0, 0, 0, 0.95);
        box-shadow: 0 8px 10px rgba(0, 0, 0, 0.7);
        box-sizing: border-box;
        padding: 10px 0;
        z-index: 2;
    }
    .works-category{
        width: 100%;
        display: block;
    }
    .works-category-title{
        width: 100%;
        display: block;
        text-align: center;
        box-sizing: border-box;
        padding: 10px 0;
    }
    .works-category-title p{
        font-size: 20px;
        color: #fff;
        z-index: 1;
    }

    .works-info-text-box {
        opacity: 1;
    }
    .works-info-box{
        grid-template-columns: repeat(2, 1fr);
        padding-top: 40px;
        padding-bottom: 60px;
    }
    .works-arrow-box {
        bottom: 18px;
    }
}
@media only screen and (max-width: 550px){
    .works-title {
        font-size: 20px;
    }
    .works-category-box,
    .works-tag-all-box,
    .works-info-box{
        width: calc(100vw - 40px);
    }
    .works-tag-all-box{
        padding: 10px 0;
    }
    .works-tag{
        padding: 10px 0;
    }
    .works-tag-title{
        font-size: 16px;
    }
    .works-category-box{
        padding: 10px 0;
        margin-top: 5px;
    }
    .works-category-title p{
        font-size: 16px;
    }
    .rwd-works-category{
        font-size: 16px;
    }
    .works-info-box {
        padding-top: 20px;
        padding-bottom: 40px
    }
    .works-arrow-box {
        bottom: 10px;
    }
    /* .works-arrow-box:before{
        border-left: 6px solid #000;
        border-top: 6px solid transparent;
        border-bottom: 6px solid transparent;
        display: inline-block;
        width: 4px;
        height: 10px;
        margin-right: -1px;
    }
    .works-arrow-box:after{
        border-right: 6px solid #000;
        border-top: 6px solid transparent;
        border-bottom: 6px solid transparent;
        width: 4px;
        height: 10px;
        margin-left: -1px;
    } */
    .works-info-text-box p{
        font-size: 18px;
    }
    .works-info-text-box span{
        font-size: 16px;
    }
}
@media only screen and (max-width: 400px){
    .works-tag-title{
        font-size: 12px;
    }
    .works-tag-title span {
        width: 5px;
        height: 1px;
        margin-left: 3px;
        margin-top: -3px;
    }
    .works-tag-title span::after {
        height: 5px;
        width: 1px;
        top: -2px;
        left: 2px;
    }
    .works-category-title p{
        font-size: 14px;
    }
    .works-info-text-box p{
        font-size: 16px;
    }
    .works-info-text-box span{
        font-size: 14px;
    }
}


@media only screen and (min-width: 1001px){
    .works-title,
    .works-category-box,
    .works-tag-box,
    .works-info{
        opacity: 0;
    }
    .works-title.anima{
        animation: fadeInUp 1s ease 0s 1 both;
    }
    .works-category-box.anima{
        animation: fadeInDown 1s ease 0s 1 both;
    }
    .works-tag-box.anima{
        animation: fade 1s ease 0s 1 both;
    }
    .works-info.anima{
        animation: fadeInUp 1s ease 0s 1 both;
    }
}