/* 商品を絞り込み */
.product-filter__panel {
    width: 34.5rem;
    padding: 3rem 2rem 2rem;
    background-color: var(--white, #FFF);
    border-radius: 2rem;
    margin: 0 auto;
}
.product-filter__title {
    color: var(--text, #000);
    text-align: center;
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 100%;
    letter-spacing: 0.144rem;
    border-bottom: 1px solid var(--line, #C3CBD7);
    padding-bottom: 2rem;
}
.filter-section {
    padding: 1.6rem 0;
    border-bottom: 1px dashed var(--line, #C3CBD7);
}
.filter-section:last-of-type {
    border-bottom: 1px solid var(--line, #C3CBD7);
    margin-bottom: 2rem;
}
.filter-section__title {
    color: var(--text, #000);;
    font-size: 1.8rem;;
    font-weight: 700;
    line-height: 100%;
    letter-spacing: 0.108rem;
    margin-bottom: 1.6rem;
}
.filter-section__submit-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--bg-black01, #212529);
    text-align: center;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.16rem;
    width: 26.2rem;
    min-height: 5.2rem;
    border-radius: 2.6rem;
    padding: 1rem 2rem;
    justify-content: center;
    align-items: center;
    background-color: var(--yellow, #FCB900);
    margin: 0 auto 2rem;
}
.filter-section__reset-btn {
    display: flex;
    align-items: center;
    color: var(--text, #000);
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 100%;
    letter-spacing: 0.064rem;
    margin: 0 auto;
}
.filter-section__reset-btn::after {
    display: block;
    content: '';
    background-image: url(../images/icon_reset.svg);
    background-size: contain;
    background-repeat: no-repeat;
    width: 2.8rem;
    height: 2.8rem;
    margin-left: 0.8rem;
}
@media (min-width: 897px) {
    .product-filter__panel {
        width: 80.6rem;
        padding: 5rem 6rem 4rem;
    }
    .filter-section {
        padding: 3.2rem 0;
        display: flex;
        gap: 5.2rem;
    }
    .filter-section__title {
        margin-bottom: 0;
        flex-shrink: 0;
    }
    .filter-section__submit-btn {
        font-size: 1.8rem;
        letter-spacing: 0.18rem;
        width: 34.7rem;
        min-height: 5.2rem;
        border-radius: 6rem;
        padding: 2rem;
        margin: 0 auto 3rem;
    }
}


/* チェックボックス */
/* 共通 */
input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}
/* 畜種 */
.filter-section__livestock-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 0 3.8rem;
    gap: 2rem 2.4rem;
}
.filter-section__livestock-label {
    position: relative;
    display: block;
    color: var(--text, #000);
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 100%;
    letter-spacing: 0.084rem;
    cursor: pointer;
    width: calc((100% - 4.8rem) / 3);
}
.filter-section__livestock-icon {
    display: block;
    background-color: var(--bg, #F8F8F8);
    border-radius: 1rem;
    margin-bottom: 0.8rem;
}
/* 分類 */
.filter-section__category-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 1.6rem 2rem;
    align-items: center;
}
.filter-section__category-label {
    position: relative;
    display: flex;
    align-items: center;
    color: var(--text, #000);
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.8rem;
    letter-spacing: 0.072rem;
    padding-left: 2.3rem;
    cursor: pointer;
}
.filter-section__category-label .filter-section__category-checkbox {
    background-image: url('../images/icon_unchecked.svg');
    background-size: cover;
    background-repeat: no-repeat;
    width: 1.6rem;
    height: 1.6rem;
    margin-right: 0.5rem;
}
.filter-section__category-label input[type="checkbox"]:checked + .filter-section__category-checkbox {
    background-image: url('../images/icon_checked.svg');
    background-size: cover;
    background-repeat: no-repeat;
    width: 1.6rem;
    height: 1.6rem;
}
@media (min-width: 897px) {
    .filter-section__livestock-wrapper {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        padding: 0;
        padding-right: 4rem;
        gap: 1.5rem;
    }
    .filter-section__livestock-label {
        width: 100%;
    }
    .filter-section__livestock-icon {
        display: block;
        background-color: var(--bg, #F8F8F8);
        border-radius: 1rem;
        margin-bottom: 0.9rem;
    }
    .filter-section__category-label {
        font-size: 1.4rem;
        line-height: 1;
        letter-spacing: 0.084rem;
        padding-left: 0;
    }
}

.animal-checkbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.animal-checkbox-text{
    display: flex;
    align-items: center;
    font-size: 1.2rem;
}
.animal-checkbox-text::before {
    content: '';
    display: block;
    width: 1.6rem;
    height: 1.6rem;
    margin-right: 0.5rem;
    transition: all 0.2s ease;
    background-image: url('../images/icon_unchecked.svg');
    background-size: contain;
    background-repeat: no-repeat;
}
.filter-section__livestock-label {
  cursor: pointer;
  user-select: none;
}
.filter-section__livestock-checkbox:checked + .animal-checkbox-content .animal-checkbox-text::before {
  background-image: url('../images/icon_checked.svg');
}
@media (min-width: 897px) {
    .animal-checkbox-text{
        font-size: 1.4rem;
    }
}


/* 検索結果画面 */
.product-filter-area{
    padding: 4rem 1.5rem;
}
.product-filter__message{
    color: var(--text, #000);
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 1.85;
    letter-spacing: 0.096rem;
    text-align: center;
}
.product-filter__text{
    color: var(--text, #000);
    font-size: 1.6rem;
    line-height: 1;
    letter-spacing: 0.012rem;
    margin-bottom: 2rem;
}
.product-filter__count{
    color: var(--text, #000);
    font-size: 2rem;
    line-height: 1;
    letter-spacing: 0.012rem;
    margin-left: 1.5rem;
}
@media (min-width: 897px) {
    .product-filter-area{
        padding: 8rem 2rem;
    }
    .product-filter__text{
        margin-bottom: 4rem;
    }
}

/* リスト */
.product-list{
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
    padding: 0 2rem 1rem;
}
.product-item{
    background-color: #fff;
    padding: 2rem;
    border-radius: 1rem;
}
.product-item__detail__animal-types__list{
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}
.product-item__detail__animal-types__item{
    width: 3rem;
    height: 3rem;
    display: block;
    content: '';
    background-size: contain;
    background-repeat: no-repeat;
}
.product-item__detail__title{
    color: var(--text, #000);
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.0108rem;
}
.product-item__detail__info{
    color: var(--text, #000);
    font-size: 1.4rem;
    line-height: 1.85;
    letter-spacing: 0.96px;
    margin-top: 1rem;
}
.product-item__detail__annotation{
    color: var(--text, #000);
    font-size: 1.4rem;
    font-style: normal;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.0084rem;
    margin-top: 0.5rem;
}
.product-item__img{
    width: 100%;
    max-height: 20rem;
    display: block;
    margin-bottom: 1.5rem;
    aspect-ratio: 305/229;
    object-fit: cover;
    object-position: center;
}

.product-item__detail__product-categories__list{
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
}
.product-item__detail__product-categories__item{
    display: block;
    color: var(--bg-black01, #212529);
    text-align: center;
    font-size: 1.2rem;
    line-height: 1;
    letter-spacing: 0.0072rem;
    padding: 0.8rem;
    border-radius: 4px;
    border: 1px solid var(--line, #C3CBD7);
}
@media (min-width: 897px) {
    .product-filter-area{
        max-width: 126rem;
        width: 100%;
        margin: 0 auto;
    }
    .product-list{
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        padding: 0 0 1rem;
    }
    .product-item{
        padding: 2.5rem;
        display: flex;
        flex-direction: column;
    }
    .product-item__detail__animal-types__list{
        margin-top: 1.5rem;
    }
    .product-item__detail__title{
        font-size: 2rem;
        letter-spacing: 0.12rem;
    }
    .product-item__detail__info{
        margin-top: 1.5rem;
    }
    .product-item__detail{
        order: 1;
        flex-grow: 1;
    }
    .product-item__img{
        order: 2;
        margin-bottom: 0;
        width: 20rem;
        max-height: 15rem;
        aspect-ratio: 4 / 3;
        margin-bottom: 2.7rem;
    }
}
.product-item__modal-button{
    color: var(--text, #000);
    font-size: 1.6rem;
    font-weight: 500;
    letter-spacing: 0.016rem;
    margin-top: 0.2rem;
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    gap: 0.8rem;
    cursor: pointer;
}
.product-item__modal-button::after{
    display: block;
    content: '';
    background-image: url('../images/product/icon_see-more.svg');
    background-size: contain;
    background-repeat: no-repeat;
    width: 2.8rem;
    height: 2.8rem;
    margin-left: 0.4rem;
}
.animal-type-cow{
    background-image: url('../images/product/icon_circle_cow.svg');
}
.animal-type-pig{
    background-image: url('../images/product/icon_circle_pig.svg');
}
.animal-type-chicken{
    background-image: url('../images/product/icon_circle_chicken.svg');
}
.animal-type-fish{
    background-image: url('../images/product/icon_circle_fish.svg');
}
.animal-type-horse{
    background-image: url('../images/product/icon_circle_horse.svg');
}
.animal-type-pet{
    background-image: url('../images/product/icon_circle_pet.svg');
}

/* モーダル */
.modal-wrapper {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}
.modal-wrapper.is-active {
    display: flex;
}
.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    cursor: pointer;
}
.modal-content {
    position: relative;
    background-color: #fff;
    padding: 6rem 2rem 3rem;
    border-radius: 2rem;
    max-width: 89.4rem;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1001;
}

.modal-close-btn {
    content: "";
    display: block;
    background-image: url('../images/product/icon_see-more.svg');
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 4.6rem;
    height: 4.6rem;
    background-size: contain;
    background-repeat: no-repeat;
    transform: rotate(45deg);
    cursor: pointer;
}

@media (min-width: 897px) {
    .product-item__head{
        display: flex;
        gap: 2.5rem;
        flex-grow: 1;
    }
    .modal-wrapper.is-active {
        display: flex;
    }
    .modal-content {
        padding: 6rem;
        border-radius: 2rem;
    }

    .modal-close-btn {
        content: "";
        display: block;
        background-image: url('../images/product/icon_see-more.svg');
        position: absolute;
        top: 1rem;
        right: 1rem;
        width: 4.6rem;
        height: 4.6rem;
        background-size: contain;
        background-repeat: no-repeat;
        transform: rotate(45deg);
    }

}

/* モーダル内のデザイン　*/
.modal-product-image {
    width: 100%;
    display: block;
    margin-bottom: 2rem;
    object-fit: cover;
    object-position: center;
    aspect-ratio: 305/229;
}
.modal-product-title-wrap{
    margin-bottom: 4rem;
}
.modal-product-title {
    color: var(--text, #000);
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.6;
    letter-spacing: 1.44px;
}
.modal-product-annotation {
    color: var(--text, #000);
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.6;
    letter-spacing: 1.08px;
}
.modal-product-info{
    color: var(--text, #000);
    font-size: 1.6rem;
    line-height: 1.85;
    letter-spacing: 0.96px;
}
.modal-product-info-wrap{
    flex-grow: 1;
}
.modal-product__common__title{
    color: var(--text, #000);
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.96px;
}
.modal-product__pdf{
    margin-top: 2rem;
}
.modal-product__pdf__list{
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    margin-top: 2rem;
}
.modal-product__pdf__item{
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.modal-product__pdf__item::before{
    content: '';
    display: block;
    width: 2.3rem;
    height: 2.3rem;
    background-image: url('../images/icon_pdf.svg');
    background-size: contain;
    background-repeat: no-repeat;
}
.modal-product__pdf__link{
    color: var(--text, #000);
    font-family: "Noto Sans JP";
    font-size: 1.4rem;
    line-height: 1;
    letter-spacing: 0.0084rem;
    text-decoration-line: underline;
}

.modal-product__categories-wrap{
    padding: 1.5rem;
    border-radius: 1rem;
    background: var(--bg, #F8F8F8);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}
.modal-product__product-categories{
    display: flex;
    align-items: center;
    gap: 3.6rem;
}
.modal-product__product-categories__text{
    color: var(--text, #000);
    font-size: 1.4rem;
    line-height: 1;
    letter-spacing: 0.0084rem;
}
.load-more-btn{
    max-width: 22.6rem;
    min-height: 5rem;
}

@media (min-width: 897px) {
    .modal-product-image {
        width: 35.4rem;
        height: 26.6rem;
        margin-bottom: 0;
        aspect-ratio: 354 / 266;
    }
    .modal-product-title-wrap{
        margin-bottom: 3rem;
    }
    .modal-product-title {
        font-size: 3.8rem;
        letter-spacing: 0.288rem;
    }
    .modal-product-annotation {
        font-size: 2.4rem;
        line-height: 1.6;
        letter-spacing: 0.144rem;
    }
    .modal-product-image-wrap{
        display: flex;
        gap: 6rem;
    }
    .modal-product__common__title{
        font-size: 1.8rem;
        letter-spacing: 0.108rem;
    }
    .modal-product__pdf{
        margin-top: 3rem;
    }
    .modal-product__categories-wrap{
        padding: 2rem;
        margin-top: 3rem;
    }
    .modal-product__product-categories{
        gap: 3.2rem;
    }
}

body.modal-open {
  overflow: hidden;
}