/******************************/
/* category */
/******************************/
.p-category__ttl {
  margin: 10px 0 30px 0;
  line-height: 1.4;
  font-size: 30px;
  font-weight: normal;
}
@media screen and (max-width: 767px) {
  .p-category__ttl {
    margin: 10px 0 10px 0; /* 余白を小さく調整 */
    font-size: 16px; /* フォントサイズを小さく調整 */
    line-height: 1.2; /* 行間も少し詰める */
   }
}
.p-category-free {
  margin-bottom: 60px;
  line-height: 2;
}
/***** カテゴリ一覧 *****/
.p-category-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* 全体を中央寄せ */
  gap: 30px;
  margin: 60px auto;
  padding: 0;
  max-width: 1200px;
}

/* 各項目：PCで4列 */
.p-category-list__item {
  box-sizing: border-box;
  width: calc(25% - 30px * 3 / 4);
  display: flex;
  justify-content: center;
}

/* スマホで2列 */
@media screen and (max-width: 767px) {
  .p-category-list__item {
    width: calc(50% - 15px);
  }
}

/* ボタン全体 */
.p-category-list__link {
  display: flex;
  align-items: center;         /* 縦中央揃え */
  justify-content: flex-start;
  width: 100%;
  height: 60px;
  padding: 0;                  /* 余白をなくす → 画像を左端に密着 */
  border: 1px solid #ddd;
  border-radius: 4px;          /* &#128312;少し角丸を付ける */
  background-color: #fff;      /* ホバー時も背景は変化させない */
  text-decoration: none;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
  overflow: hidden;
}

/* ホバー時（背景を変えない） */
.p-category-list__link:hover {
  border-color: #888;
  background-color: #fff; /* &#128312;白のままに固定 */
}

/* 画像 */
.p-category-list__img {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  margin-right: 12px;
  margin-left: 0;              /* &#128312;左の余白をゼロに */
}
.p-category-list__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  display: block;
}

/* 文字 */
.p-category-list__name {
  display: inline-block;
  font-size: 15px;
  color: #333;
  line-height: 1.2;
}

/* スマホ調整 */
@media screen and (max-width: 767px) {
  .p-category-list {
    gap: 15px;
  }
  .p-category-list__link {
    height: 50px;
    border-radius: 4px; /* スマホでも角丸キープ */
  }
  .p-category-list__img {
    width: 50px;
    height: 50px;
  }
  .p-category-list__name {
    font-size: 12px;
  }
}

/***** 商品件数・ソート *****/
.p-item-list-head {
  display: flex;
  justify-content: space-between;
  padding: 30px;
  border-top: 1px solid #ddd;
}
@media screen and (max-width: 767px) {
  .p-item-list-head {
    padding: 20px 0;
  }
}
.p-item-list-num {
  font-size: 16px;
}
@media screen and (max-width: 767px) {
  .p-item-list-num {
    font-size: 13px;
  }
}
.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: 15px;
  }
}
.p-item-sort-list__item:first-child {
  margin-left: 0;
}
.p-item-sort-list__item span {
  text-decoration: underline;
}

.l-contents-side {
  display: none;
}
.l-contents-main {
  width: 100%; /* 全幅に設定 */
  flex: none; /* フレックスボックスの場合、幅制約を解除 */
  margin: 0 auto; /* 中央揃え */
  padding: 0px; /* 適切な余白を設定 */
}

.l-contents-wrap {
  display: block; /* フレックス設定を解除して1カラム構造に */
}
