@charset "utf-8";
/* ==================== section ==================== */
#product_sec01 {
    padding: 150px 40px;
    width: 100%;
}
.product_inner {
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center;
    gap: 80px;
}
.product_cont {
    max-width: 768px;
    width: 100%;
    margin-bottom: 100px;    
}

.product_cont p {
    line-height: 32px;
    letter-spacing: 0.08rem;
    text-align: center;
}

.product_list {
    max-width: 1027px;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center; 
    align-items: center;
    object-fit: cover;
    flex-wrap: wrap;
    gap: 50px;
}
.product_list:after {
    content: "";
    display: block;
    width: 308px;  /* .boxに指定したwidthと同じ幅を指定する */
    height: 0;
}
.product_list_item {
    width: 308px;
    height: auto;
}
.product_list_item_img {
    position: relative;
    width: 308px;
    height: 216px;
    overflow: hidden;
    margin-bottom: 5px;
}

.product_list_item_img img {
    width: 308px;
    height: 216px;
    overflow: hidden;
    margin-bottom: 5px;
}
.product_list_item time {
    font-size: 12px;
    margin-bottom: 5px;
}

.product_filter {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
}

.product_filter .filter_btn {
    max-width: none;      /* ← 重要 */
    width: 160px;         /* TOPへより少し小さめ */
    padding: 18px 0;      /* 横paddingを消す */
}

/* active */
.product_filter a.is-active {
    color: #fff;
    border: 1px solid transparent; /* 明示 */
    background-color: #333;
}

/* 制作 */
.product_filter a.is-active[data-type="tag_y"] {
    background-color: var(--main_color);
}

/* 請負 */
.product_filter a.is-active[data-type="tag_b"] {
    background-color: var(--sub_blue);
}



@media screen and (max-width:768px) {
    .product_inner {
        display: flex;
        flex-direction: column;
        justify-content: center; 
        align-items: center;
        gap: 80px;
    }
    .product_cont {
        max-width: 768px;
        width: 100%;
        margin-bottom: 100px;    
    }
    
    .product_cont p {
        line-height: 32px;
        letter-spacing: 0.08rem;
        text-align: center;
    }
    
    .product_list {
        max-width: 1027px;
        width: 100%;
        display: flex;
        flex-direction: row;
        justify-content: center; 
        align-items: center;
        object-fit: cover;
        flex-wrap: wrap;
        gap: 50px;
    }
    .product_list:after {
        content: "";
        display: block;
        width: 308px;  /* .boxに指定したwidthと同じ幅を指定する */
        height: 0;
    }
    .product_list_item {
        width: 308px;
        height: auto;
    }
    .product_list_item_img {
        position: relative;
        width: 308px;
        height: 216px;
        overflow: hidden;
        margin-bottom: 5px;
    }
    
    .product_list_item_img img {
        width: 308px;
        height: 216px;
        overflow: hidden;
        margin-bottom: 5px;
    }
    .product_list_item time {
        font-size: 12px;
        margin-bottom: 5px;
    }


        .product_filter {
        gap: 12px;
        margin-bottom: 40px;
    }
    .product_filter .filter_btn {
        max-width: 120px;
        font-size: 14px;
        padding: 10px 0;
    }
}