/* 価格表示の修正 */

/*
 * 商品リストの共通スタイル
 */
.list01 li h3 {
  text-align: left !important;
  font-weight: bold !important;
}

.list01 li .price {
  font-weight: bold !important;
  color: #d82b3a;
  margin: 0.5em 0;
  font-size: 1.2em;
}

/*
 * 既存の共通スタイルはそのまま残します
 */
.list01 p {
  text-align: left;
  margin-bottom: 10px;
}

.list01 li a {
  display: block;
}

/*
 * 並び替え機能のスタイル
 */
.prd_lst_sort {
    text-align: right;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.prd_lst_sort a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.prd_lst_sort a:hover {
    color: #333;
    text-decoration: underline;
}

.prd_lst_sort strong {
    font-weight: bold;
    color: #333;
}

/*
 * ページ送り機能のスタイル
 */
.prd_lst_pager {
    text-align: center;
    margin-top: 30px;
}

.prd_lst_pager ul {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.prd_lst_pager li {
    margin: 0 5px;
}

.prd_lst_pager a {
    display: block;
    padding: 8px 12px;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s, border-color 0.3s;
}

.prd_lst_pager a:hover {
    background-color: #eee;
    border-color: #999;
}

.prd_lst_pager .icon_prev,
.prd_lst_pager .icon_next {
    font-size: 0.9rem;
}

.prd_lst_pager .icon_prev_dis,
.prd_lst_pager .icon_next_dis {
    color: #ccc;
    cursor: not-allowed;
}

.prd_lst_pos {
    padding: 8px 12px;
    font-size: 1.5rem;
    color: #333;
}

/*
 * スマートフォン向けカテゴリーリスト
 */
#category_list_sp {
    padding: 10px 0;
    margin-bottom: 20px;
    background-color: #f5f5f5;
    white-space: nowrap;
    overflow-x: scroll;
    -webkit-overflow-scrolling: touch;
    display: none;
}

#category_list_sp ul {
    list-style: none;
    padding: 0 10px;
    margin: 0;
    display: flex;
    gap: 8px;
}

#category_list_sp li {
    flex-shrink: 0;
}

#category_list_sp a {
    display: block;
    padding: 8px 12px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 20px;
    color: #333;
    text-decoration: none;
    font-size: 16px; /* ← この行を修正 */
    line-height: 1.2;
    transition: background-color 0.2s;
}

#category_list_sp a:hover {
    background-color: #eee;
}

/*
 * スマートフォン向けスタイル調整 (768px以下)
 */
@media (max-width: 768px) {
    /* カテゴリーリストをスマートフォンで表示 */
    #category_list_sp {
        display: block;
    }

    /* 並び替え機能の文字を小さくする */
    .prd_lst_sort {
        font-size: 14px; 
    }

    /* 「該当する商品がありません」のスタイルを調整 */
    .prd_lst_none_sp {
        font-size: 18px; /* このサイズはそのまま維持します */
        text-align: center !important;
        margin: 20px 0;
        writing-mode: horizontal-tb !important;
        -webkit-writing-mode: horizontal-tb !important;
        -ms-writing-mode: horizontal-tb !important;
    }

    /* 商品画像とテキストを拡大 */
    .list01 li img {
        width: 100%;
        height: auto;
    }

    /* 商品名と販売価格 */
    .list01 li h3,
    .list01 li .price {
        font-size: 16px !important; 
    }
    
    /* 簡易説明文 */
    .list01 li p {
        font-size: 14px;
    }
    
    /* ページ送り */
    .prd_lst_pager,
    .prd_lst_pos,
    .prd_lst_pager a {
        font-size: 16px;
    }

    /* カテゴリー角丸ボタン */
    #category_list_sp a {
        font-size: 14px;
    }
}

    /* 「該当する商品がありません」のスタイルを調整 */
    .prd_lst_none_sp {
        font-size: 18px;
        text-align: center !important;
        margin: 20px 0;
        writing-mode: horizontal-tb !important; /* ← この行を修正 */
        -webkit-writing-mode: horizontal-tb !important; /* ← この行を追加 */
        -ms-writing-mode: horizontal-tb !important; /* ← この行を追加 */
    }

    /* 商品画像とテキストを拡大 */
    .list01 li img {
        width: 100%;
        height: auto;
    }

    .list01 li h3 {
        font-size: 16px !important; 
    }

    .list01 li .price {
        font-size: 16px !important; 
    }

    .list01 li p {
        font-size: 14px;
    }
}