.main{
    margin-bottom: 150px;
}
.works{
    .lead{
        width: 85%;
        margin: 0 auto 20px;
    }
    .lead span{
        width: 120px;
        margin: 0 auto 20px;
        display: block;
    }
    .lead_text{
        text-align: center;
    }
    .works_line{
        margin: 0 0 20px 0;
        height: 8px;
        background-image: url("../images/line-works.svg");
        background-repeat: repeat-x;
        background-position: left center;
        background-size: 80px 5px;
    }
    .works_list{
        margin: 0 0 30px 0;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 30px 20px;
    }
    .works_item{
        position: relative;
        z-index: 99;
    }
    figure{
        width: 100%;
        aspect-ratio: 4 / 3;
        background: var(--color-gray-light);
        overflow: hidden;
    }
    figure img{
        width: 100%;
        height: 100%;
        display: block;
        object-fit: contain;
    }
    .name{
        min-height: 60px;
        padding: 10px 20px;
        font-family: var(--font-zenmaru);
        font-size: 16px;
        font-weight: 700;
        background: var(--color-white);
    }
    .button-more{
        width: 250px;
        margin: 0 auto;
        padding: 15px 0;
        color: var(--color-brown);
        font-weight: 500;
        text-align: center;
        line-height: 1;
        border-radius: 50vh;
        background: var(--color-yellow);
        display: block;
        transition:
        color 0.25s ease,
        background 0.25s ease;
    }

    .button-more:hover{
        color: var(--color-white);
        background: var(--color-brown);
    }
}

@media screen and (max-width: 1024px) {
    .works{
        .works_list{
            grid-template-columns: repeat(3, 1fr);
        }
    }
}

@media screen and (max-width: 800px) {
    .works{
        .lead{
            width: 100%;
        }
        .lead_text{
            text-align: left;
        }
        .works_list{
            grid-template-columns: repeat(2, minmax(0, 300px));
            justify-content: center;
        }
    }
}

@media screen and (max-width: 640px) {
    .works{
        .lead span{
            width: 100px;
        }
        .works_list{
            grid-template-columns: repeat(1, 1fr);
            gap: 20px;
        }
        .works_item{
            display: flex;
        }
        figure{
            width: 140px;
            margin-bottom: 0;
            flex-shrink: 0;
        }
        .name{
            width: 100%;
            font-size: 14px;
        }
    }
}