@charset "UTF-8";

.visual-box{
    background-image: url(../images/worksVisual.webp);
}

/* =============
　section-top
================ */
.section-top{
    margin-bottom: 0;
    height: 100vh;
}
.section-top::after{
    display: none;
}
.top-phrase{
    margin: 3vh 0;
}
.visual-box::after{
    display: none;
}
.section-top .p-box{
    width: 90%;
    margin: 0 auto;
}
.section-top .p-box p{
    font-size: var(--fontSizeNormal);
    margin-bottom: 1rem;
}

/* =============
　section-news
================ */
.section-news{
    width: 100%;
    height: fit-content;
    position: relative;
    padding-bottom: 15vh;
}
.heading{
    text-align: center;
}
.news-list{
    width: 90%;
    margin: 0 auto;
    padding: 4rem 2rem 2rem;
    position: relative;
    z-index: 0;
}
.news-item{
    width: min(100%, 500px);
    margin: 0 auto 3rem;
    aspect-ratio: 4/3;
    border: 3px solid var(--mainYellow);
    border-radius: 5vw;
    position: relative;
    background-color: white;
    overflow: hidden;
}
.news-item a{
    display: block;
    width: 100%;
    height: 100%;
}
.item-img{
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    right: 0;
    clip-path: polygon(0 0, 100% 0, 100% 50%, 100% 100%, 95% 100%, 0 10%);
}
.item-img img{
    width: 100%;
    height: 100%;
    filter: blur(2px);
    object-fit: cover;
}
.news-item p{
    width: fit-content;
    height: fit-content;
    margin: auto 0;
    background-color: white;
    border: 2px solid var(--mainYellow);
    border-radius: 4px;
    font-size: 1.4rem;
    font-weight: 600;
    padding: .5rem 1rem;
    position: absolute;
    top: 0;
    left: 4vw;
    bottom: 0;
    z-index: 1;
}
.news-item h3{
    width: 90%;
    font-size: min(5vw, 1.7rem);
    font-weight: 600;
    line-height: 3.3rem;
    position: absolute;
    left: 4vw;
    bottom: 4vw;
}
.news-item h3 span{
    width: 100%;
    height: 100%;
    background-color: var(--mainYellow);
    padding: 1% 2%;
}




@media screen and (min-width:960px) {

    /* --------  section-top  --------- */
    .section-top{
        height: 90vh;
    }
    .top-phrase{
        font-size: 5rem;
        line-height: 10rem;
        letter-spacing: .5rem;
        top: 40%;
        left: 0;
    }
    .top-phrase span{
        padding: .6rem 1.5rem .6rem 3vw;
    }
    .section-top .p-box{
        position: absolute;
        bottom: 5vw;
        left: 3vw;
    }
    .section-top .p-box p{
        color: white;
        font-size: 2.2rem;
        font-weight: 500;
        letter-spacing: .1rem;
        text-shadow: 0px 0px 10px rgb(0, 0, 0);
        margin-bottom: 1.5rem;
    }

    /* =============
    　section-news
    ================ */
    .section-news{
        width: 100%;
        padding: 5vh 0 0 0;
        position: relative;
    }
    .news-list{
        width: 90%;
        height: fit-content;
        padding: 6rem 2rem;
        display: flex;
        flex-wrap: wrap;
        justify-content: left;
        align-items: center;
        margin-bottom: 8vh;
        gap: 3%;
        padding-left: 6%;
    }
    .news-item{
        width: 30%;
        margin: 0 0 4% 0;
        border-radius: 3rem;
        transition: .5s;
    }
    .item-img img{
        transition: .5s;
    }
    .news-item p{
        font-size: 1.4rem;
        left: 2rem;
        top: 4vw;
        bottom: auto;
    }
    .news-item h3{
        font-size: 1.5vw;
        line-height: 3vw;
        left: 2rem;
        bottom: 2rem;
    }
    .news-item:hover{
        transform: scale(1.05);
        .item-img img{
            filter: none;
        }
    }
}