@charset "UTF-8";

/*====== header second ======*/

.header.second {
    position: static;
    background: #2b2b2b;
    padding: 25px 0;
}

.header.second .header-container {
    justify-content: right;
}

.header.second .nav-list {
    margin: 0;
}

.header.second .nav-item a {
    color: #fff;
}

/*====== works hero ======*/

.works-hero {
    background-image: url(../images/アセット\ 25@2x-100.jpg);
    background-position: center top;
    padding: 100px 0 350px 0;
    color: #fff;
}

.works-hero-inner {
    text-align: center;
}

.works-title {
    margin: 0 auto;
}

.works-title .star.left {
    top: 30%;
    animation: twist 5s ease-in-out infinite;
}

.works-title h2 {
    font-family: "Raleway", sans-serif;
    font-size: clamp(50px, 10vw, 90px);
    font-weight: 900;
}

.works-title p {
    font-size: 0.7rem;
    font-weight: 500;
    margin: 0;
}

.works-btn.second {
    width: 320px;
    display: flex;
    margin: 10% auto 15% auto;
    gap: 100px;
}

.works-btn.second a {
    text-align: center;
    font-family: "Raleway", sans-serif;
    font-size: 0.75rem;
    font-weight: 900;
    padding: 3px 15px;
    white-space: nowrap;
    color: #2b2b2b;
    background: #fff;
    border: 1px solid #c2c2c2;
    text-decoration: none;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    filter: drop-shadow(5px 5px 5px #000000);
    cursor: pointer;
}

.works-btn.second a:hover {
    background: #cacaca;
    transform: scale(1.05);
    cursor: none;
}

.works-wrap {
    width: 70%;
    margin: 0 auto;
}

.works-head {
    font-family: "Raleway", sans-serif;
    font-size: 2rem;
    text-align: left;
    margin: 0 0 100px 0;
}

.works-grid.second {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin: 0;
    gap: 100px;
}

.works-grid.second img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.4s ease, box-shadow 0.4s ease, filter 0.4s ease;
    will-change: transform;
}

.works-grid.second img:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    filter: brightness(0.9);
}

.line {
    width: 95%;
    border: 6px solid #fff;
    margin: 150px auto 100px auto;
}

@media (max-width: 1080px) {

    .works-hero {
        padding: 100px 0 250px 0;
    }

    .works-title {
        position: relative;
        top: 0;
        left: 0;
        margin: 0;
    }

    .works-wrap {
        width: 80%;
    }

}

@media (max-width: 768px) {

    .works-hero {
        padding: 50px 0 250px 0;
    }

    .works-title .star.left {
        top: 25%;
    }

    .works-title p {
        font-size: 0.6rem;
    }

    .works-btn.second {
        width: 130px;
        display: grid;
        margin: 15% auto 50% auto;
        gap: 50px;
    }

    .works-head {
        font-size: 1.5rem;
        margin: 100px 0 50px 0;
    }

    .works-grid.second {
        grid-template-columns: none;
        gap: 80px;
    }

}