/******************************/
/* category */
/******************************/
.p-category__ttl {
  margin: 10px 0 30px 0;
  line-height: 1.4;
  font-size: 30px;
  font-weight: normal;
}
.p-category-free {
  margin-bottom: 60px;
  line-height: 2;
}
-
/***** 商品件数・ソート *****/
.p-item-list-head {
  display: flex;
  justify-content: space-between;
  padding: 30px;
  border-top: 1px solid #7d7d7d;
}
@media screen and (max-width: 767px) {
  .p-item-list-head {
    padding: 30px 0;
  }
}
.p-item-list-num {
  font-size: 16px;
}
@media screen and (max-width: 767px) {
  .p-item-list-num {
    font-size: 14px;
  }
}
.p-item-sort-list {
  display: flex;
  flex-wrap: wrap;
}
.p-item-sort-list__item {
  margin-left: 30px;
}
@media screen and (max-width: 767px) {
  .p-item-sort-list__item {
    margin-left: 25px;
  }
}
.p-item-sort-list__item:first-child {
  margin-left: 0;
}
.p-item-sort-list__item span {
  text-decoration: underline;
}


/*商品一覧のh2h3デザイン*/
.custom_h2 {
  font-size: 1.4rem;
  font-weight: bold;
  border-left: 5px solid #004a29;
  background: #f0f1ec;       /* 薄いベージュ背景 */
  padding: 0.4em 0.6em;
  margin: 2em 0 0.8em;
}

.custom_h3 {
  font-size: 1.2rem;
  font-weight: bold;
  border-left: 3px solid #004a29;
  padding-left: 0.6em;
  margin: 1.5em 0 0.6em;
  color: #333;
}


/***** フッター *****/
/* セクション全体 */
.ral-search {
  margin: 40px 0;
  padding-top: 30px;
  border-top: 1px solid #e5e5e5;
}

/* 見出し */
.ral-search h2 {
  font-size: 20px;
  margin-bottom: 20px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* 画像 */
.ral-image {
  width: 100%;
  height: auto;
  margin-bottom: 24px;
}


/* リスト全体 */
.ral-list a {
  display: block;
  padding: 8px 6px;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 999px;
  font-size: 13px;     /* 少しだけ小さく */
  text-decoration: none;
  color: #333;
  background: #fff;
  transition: all 0.2s ease;
}


/* ボタン */
.ral-list a {
  display: block;
  padding: 8px 6px;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 999px;
  font-size: 13px;
  text-decoration: none;
  color: #333;
  background: #fff;
}


/* hover */
.ral-list a:hover {
  background: #f5f5f5;
  border-color: #999;
}







.ral-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* ← PCは4列 */
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 640px;  /* 4列がきれいに収まる幅 */
}


@media screen and (max-width: 600px) {
  .ral-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}
/***** フッターここまで *****/







/* ===== 小カテゴリ：ボタン化（PC） ===== */
@media screen and (min-width: 768px) {
  .p-category-list {
    display: flex;        /* ★必須 */
    flex-wrap: wrap;      /* ★必須 */
    justify-content: center;
  }

  .p-category-list__item {
    width: 25%;           /* 4列 */
    margin-bottom: 30px;

    display: flex;
    justify-content: center;
  }

  .p-category-list__link {
    display: inline-block;
    min-width: 140px;
    padding: 10px 8px;
    border: 1px solid #ccc;
    border-radius: 999px;
    text-align: center;
    transition: background 0.2s ease, border-color 0.2s ease;
  }

  .p-category-list__link:hover {
    background: #f5f5f5;
    border-color: #999;
  }
}


/* ===== 小カテゴリ：ボタン共通（SP + PC） ===== */
.p-category-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.p-category-list__item {
  width: 50%;                 /* ← SPは2列 */
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
}

.p-category-list__link {
  display: inline-block;
  min-width: 140px;
  padding: 10px 8px;
  border: 1px solid #ccc;
  border-radius: 999px;
  text-align: center;
  text-decoration: none;
  color: #333;
}


/* ===== PC：4列 ===== */
@media screen and (min-width: 768px) {
  .p-category-list__item {
    width: 25%;
    margin-bottom: 30px;
  }

  .p-category-list__link:hover {
    background: #f5f5f5;
    border-color: #999;
  }
}
