/**********/
/*   ID   */
/**********/

/* 商品リストエリア */
#product-list{
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 20px 40px; 
    background-color: #faf7e2;
}

/* 商品リストエリア直下のpタグ */
#product-list > p{
    margin-top: 0px;
    font-size: 15pt;
    font-weight: bold;
}

/**********/
/* クラス */
/**********/

.br-gap{
    display: block;
    height: 10px;
}

/* 商品リストの行 */
.product-row{
    display: flex;
    flex-direction: row;
    border: 1px solid #ccc;
    padding: 16px;
    gap: 16px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 1);
}

/* 商品画像エリア */
.product-image{
    flex: 0 0 150px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 商品画像 */
.product-image img{
    width: 128px;
    height: 128px;
    border-radius: 4px;
}

/* 商品情報エリア */
.product-info{
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* 商品情報エリア内のh2タグ */
.product-info h2{
    margin: 0 0 8px;
    font-size: 1.4rem;
    font-weight: bold;
}

/* 商品説明 */
.product-info .description{
    margin-bottom: 12px;
    line-height: 1.6;
}

/* 購入ボタン */
.purchase-button{
    align-self: flex-start;
    background-color: #007bff;
    color: #fff;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

/* 購入ボタンカーソルセット時 */
.purchase-button:hover{
    background-color: #0056b3;
}

/*** スマホ用デザイン ***/
@media (max-width: 768px) {
    #product-list > p{
        font-size: 12pt;
    }
    
/*** クラス ***/
    /* 商品リストの行 */
    .product-row{
        flex-direction: column;
        align-items: center;
    }

    /* 商品画像エリア */
    .product-image{
        width: 100%;
        max-width: 300px;
    }

    /* 商品情報エリア */
    .product-info{
        align-items: center;
        text-align: left;
        font-size: 0.8rem;
    }

    /* 購入ボタン */
    .purchase-button{
        width: 50px;
        text-align: center;
    }
}