@charset "utf-8";

.catalog {
    padding: 30px;
}

.productList {
    padding: 70px 0 30px;
}

.productList__inner {
    width: min(1100px, 100%);
    margin: 0 auto;
}

.productList__title {
    font-size: 3.6rem;
    font-weight: 800;
    color: var(--picky-orange);
    letter-spacing: 0.2em;
    margin-bottom: 60px;
}

.productGrid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 28px;
}

.productList__empty {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 1.6rem;
    color: #666;
    padding: 60px 0;
}

.productCard {
    background: var(--picky-orange-light);
    border-radius: 18px;
    padding: 20px;
}

.productCard__link {
    text-decoration: none;
    color: #fff;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

.productCard__media {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.productCard__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.productCard__title {
    margin: 12px 0 8px;
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    min-height: calc(1.4em * 2);
}

.productCard__bottom {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.productCard__bottom span {
    font-size: 1.8rem;
    font-weight: 700;
}

/* ===============================================
 *
 * メディアクエリ タブレット縦 (768px ~ 1023px)
 *
 * ============================================ */


@media (max-width: 1023px) {
    .catalog {
        padding: 30px;
    }

    .productList {
        padding: 30px 0;
    }

    .productList__title {
        margin-bottom: 40px;
    }

    .productGrid {
        grid-template-columns: repeat(4,1fr);
        gap: 16px;
    }

    .productCard {
        padding: clamp(10px, calc(3.92vw - 20.1px), 20px);
    }

    .productCard__media {
        margin: clamp(6px, calc(1.57vw - 6.1px), 10px) clamp(6px, calc(1.57vw - 6.1px), 10px) 0;
    }

    .productCard__title {
        font-size: 1.4rem;
    }

    .productCard__bottom span {
        font-size: 1.6rem;
    }
}

/* ===============================================
 *
 * メディアクエリ SP標準 (480px ~ 767px)
 *
 * ============================================ */

@media (max-width: 767px) {
    .productGrid {
        grid-template-columns: repeat(3,1fr);
        gap: clamp(10px, 2.09vw, 16px);
    }

    .productCard {
        padding: clamp(10px, calc(3.48vw - 6.72px), 20px);
    }

    .productCard__title {
        font-size: 1.3rem;
        font-weight: 500;
    }

    .productCard__bottom span {
        font-size: 1.5rem;
        font-weight: 600;
    }
}

/* ===============================================
 *
 * メディアクエリ SP ( ~ 479px)
 *
 * ============================================ */

@media (max-width: 479px) {
    .catalog {
        padding: 15px;
    }

    .productList {
        padding: 25px 0;
    }

    .productList__title {
        font-size: 2.8rem;
        margin-bottom: 20px;
    }

    .productGrid {
        grid-template-columns: repeat(2,1fr);
        gap: clamp(10px, calc(8.81vw - 18.17px), 24px);
    }

    .productCard {
        padding: clamp(10px, calc(3.77vw - 2.07px), 16px);
    }

    .productCard__title {
        font-size: 1.2rem;
        font-weight: 600;
    }

    .productCard__bottom span {
        font-size: 1.4rem;
        font-weight: 600;
    }
}