/* =========================================
   大枠のリスト設定（PCの基本設定）
========================================= */
.custom-item-list {
    list-style: none; 
    padding: 0 20px; 
margin: 40px auto 0;
    max-width: 1200px; 
    
    /* Flexboxを使って並べる */
    display: flex;
    flex-wrap: wrap;
    justify-content: center; 
    gap: 50px 20px; 
}

/* =========================================
   各アイテムのサイズ設定（PC）
========================================= */
.custom-item {
    /* 4列に並べる計算（全体の25%から隙間分を引く） */
    width: calc(25% - 15px); 
    max-width: 280px; 
    box-sizing: border-box;
}

/* =========================================
   リンクとテキスト色
========================================= */
.custom-item-link {
    display: flex;
    flex-direction: column;
    text-align: center;
    text-decoration: none;
    color: #5e4c41; 
}

.custom-item-link:hover {
    color: #8c7b70;
    opacity: 0.9;
}

/* =========================================
   画像エリア
========================================= */
.custom-item-image {
    width: 100%;
    overflow: hidden;
    margin-bottom: 15px;
    background-color: #fcfaf5;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #f0e9e1; 
}

.custom-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

/* =========================================
   商品名テキスト
========================================= */
.custom-item-name {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: bold;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media screen and (max-width: 1023px) {
    .custom-item-list {
padding: 0;
        grid-template-columns: repeat(2, 1fr); 
        gap: 30px 10px; 
margin-top: 30px;
    }

.custom-item {
        /* 中央の隙間10pxの半分（5px）を引いて、画面いっぱいにピッタリ2列にする計算 */
        width: calc(50% - 5px); 
        max-width: 280px; 
    }
}


