@charset "utf-8";

/*----------------------------------------
	workslist
----------------------------------------*/
.workslist_area {
    position: relative;
    text-align: center;
    margin-bottom: 40px;
}

.workslist_area h2 {
    font-family: "AMETTHA", sans-serif;
    font-size: 6rem;
    color: #fff;
    text-shadow: 2px 2px 12px #393a3a, -3px 3px 12px #393a3a,
        3px -3px 12px #393a3a, -3px -3px 10px #393a3a;
    position: absolute;
    top: 4%;
    left: 28%;
    transform: translate(-50%, -50%);
    z-index: 1;
}
.slider {
    overflow: hidden;
    width: 100%;
    margin: 0 auto;
}
.slider_item {
    object-fit: cover;
    animation: zoom-fade 60s both;
}

.works {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    margin: 0 auto;
    padding: 0;
}

.works_body h3,
.works_classifying {
    font-size: 1.8rem;
}
.works_block{
    margin-top: 40px;
}
.category_link{
    font-size: 2rem;
    color: #fff;
    background-color: var(--base-color);
    padding: 11px 30px;
    display: inline-block;
}


@media (width>700px) {
    .works {
        column-gap: 80px; /* 横方向だけに間隔を設定 */
        row-gap: 0;       /* 縦方向は間隔なし（もしくは必要な値） */
        justify-content: space-evenly;
    }

    .workslist_area h2 {
        font-size: 10rem;
        position: absolute;
        top: 8%;
        left: 36%;
        transform: translate(-50%, -50%);
    }
    .about_inner {
    padding: 70px;
    width: 65%;
    }
    .slider{
        width: 65%;;
    }
    .works_item {
    position: relative;
    max-width: 250px;
    }
.works_img{
    transition-duration: 0.5s;
}

.works_img::before,
.works_img::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    transition-duration: 0.5s;
    opacity: 0;
}
.works_img::before {
    background: rgba(83, 82, 82, 0.6);
    width: 100%;
    height: 100%;
}
.works_img::after {
    color: #fff;
    content: "Read More";
    font-size: 22px;
    font-weight: bold;
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
    bottom: 0;
    right: 0;
}
.works_img:hover::before,
.works_img:hover::after  {
    opacity: 1;
}
.works_img:hover::after  {
    letter-spacing: 0.1em;
}
.works_img:hover{
    transform: scale(0.9);
}
}

@media (width>1200px) {
    .workslist_area h2 {
        font-size: 14rem;
        position: absolute;
        top: 12%;
        left: 37%;
        transform: translate(-50%, -50%);
    }
    .works {
        gap: 80px;
        justify-content: space-around;
    }
        .category_link{
        display: block;
        width: fit-content;
        text-align: center;
        margin-left: 100px;
        padding: 11px 100px;
    }
}
