.main{
    margin-bottom: 150px;
}
.goods{
    .lead{
        width: 85%;
        margin: 0 auto 20px;
    }
    .lead span{
        width: 180px;
        margin: 0 auto 20px;
        display: block;
    }
    .goods_line{
        margin: 0 0 20px 0;
        height: 8px;
        background-image: url("../images/line-goods.svg");
        background-repeat: repeat-x;
        background-position: left center;
        background-size: 80px 5px;
    }
    .goods_tabs{
        margin: 0 0 30px 0;
        display: grid;
        grid-template-columns: 80px repeat(6, 1fr);
        justify-content: center;
        gap: 10px 10px;
    }
    .goods_tab{
        padding: 5px 10px;
        color: var(--color-gray);
        font-size: 15px;
        line-height: 1.2;
        border: solid 1px var(--color-gray);
        border-radius: 50vh;
        background: var(--color-white);
        transition: color 0.3s ease, opacity 0.3s ease;
    }
    .goods_tabs p{
        text-align: center;
        line-height: 30px;
    }
    .goods_tab:hover{
        color: var(--color-gray-dark);
    }
    .goods_tab.is-active{
        color: var(--color-white);
        border-color: var(--color-green);
        background: var(--color-green);
    }
    .goods_list{
        margin: 0 0 30px 0;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 30px 20px;
    }
    .goods_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) {
    .goods{
        .goods_list{
            grid-template-columns: repeat(3, 1fr);
        }
    }
}

@media screen and (max-width: 800px) {
    .goods{
        .lead{
            width: 100%;
        }
        .goods_tabs{
            grid-template-columns: 80px repeat(5, 1fr);
        }
        .goods_list{
            grid-template-columns: repeat(2, minmax(0, 300px));
            justify-content: center;
        }
    }
}

@media screen and (max-width: 640px) {
    .goods{
        .lead span{
            width: 140px;
        }
        .goods_tabs{
            grid-template-columns: repeat(3, minmax(0, 1fr));
        }
        .goods_tabs p{
            grid-column: 1 / -1;
            margin: 0;
        }
        .goods_tab{
            font-size: 12px;
        }
        .goods_list{
            grid-template-columns: repeat(1, 1fr);
            gap: 20px;
        }
        .goods_item{
            display: flex;
        }
        figure{
            width: 140px;
            margin-bottom: 0;
            flex-shrink: 0;
        }
        .name{
            width: 100%;
            font-size: 14px;
        }
    }
}