/******************************/
/* 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 {
   font-size: 25px; 
   margin: 10px 0 10px 0;
}}

.p-category-free {
  margin-bottom: 60px;
  line-height: 2;
}
/***** カテゴリ一覧 *****/
.p-category-list {
  display: flex;
  flex-wrap: wrap;
  margin-top: 60px;
  margin-bottom: 60px;
  margin-left: -15px;
  margin-right: -15px;
}
@media screen and (max-width: 767px) {
  .p-category-list {
    display: block;
    margin-left: 0;
    margin-right: 0;
  }
}
.p-category-list__item {
  box-sizing: border-box;
  margin-bottom: 60px;
  padding-left: 15px;
  padding-right: 15px;
  width: 33.3333%;
  font-size: 16px;
  text-align: center;
}
@media screen and (max-width: 767px) {
  .p-category-list__item {
    margin-bottom: 15px;
    padding-left: 0;
    padding-right: 0;
    width: auto;
    text-align: left;
  }
}
.p-category-list__link {
  position: relative;
}
@media screen and (max-width: 767px) {
  .p-category-list__link {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }
}
.p-category-list__link:hover {
  text-decoration: none;
}
@media screen and (max-width: 767px) {
  .p-category-list__link:before {
    content: "";
    position: absolute;
    top: 50%;
    right: 5px;
    margin-top: -6px;
    width: 8px;
    height: 8px;
    border-right: 1px solid #aaaaaa;
    border-bottom: 1px solid #aaaaaa;
    transform: rotate(-45deg);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
}
.p-category-list__img {
  display: block;
  margin-bottom: 30px;
}
@media screen and (max-width: 767px) {
  .p-category-list__img {
    margin-right: 10px;
    margin-bottom: 0;
    width: 75px;
  }
}
.p-category-list__name:hover {
  text-decoration: underline;
}
@media screen and (max-width: 767px) {
  .p-category-list__name:hover {
    text-decoration: none;
  }
}
@media screen and (max-width: 767px) {
  .p-category-list__name {
    flex: 1;
  }
}
/***** 商品件数・ソート *****/
.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;
}


/* フィルタリングスタイル */
.p-item-filter {
  margin-bottom: 20px;
}

.p-item-filter label {
  margin-right: 10px;
}

.p-item-filter select {
  margin-right: 20px;
}


.search-box {
      display: flex;
      width: 80%;
      margin: 20px auto;
      border: 1px solid #ccc;
    }

    .search-box div {
      width: 50%;
      height: 300px;
      overflow-y: auto;
      padding: 10px;
      box-sizing: border-box;
    }

    .search-box div select {
      width: 100%;
      height: 100%;
      border: none;
      font-size: 16px;
      }

/******************************/
/* side menu（ワンズテラス風） */
/******************************/
.p-side-menu {
  background: #f9f6ee;
  padding: 24px 18px 40px;
  border-radius: 0 24px 24px 0;
  box-sizing: border-box;
}

.p-side-menu__head {
  text-align: center;
  margin-bottom: 24px;
}

.p-side-menu__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid #dddddd;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-size: 24px;
}

.p-side-menu__label {
  font-size: 14px;
  letter-spacing: .08em;
}

.p-side-menu__sub {
  margin-top: 4px;
  font-size: 11px;
  color: #999999;
}

.p-side-menu__block + .p-side-menu__block {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #e4ddcf;
}

.p-side-menu__block-ttl {
  font-size: 12px;
  font-weight: bold;
  letter-spacing: .1em;
  margin-bottom: 8px;
}

.p-side-menu__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #e4ddcf;
}

.p-side-menu__item {
  border-bottom: 1px solid #e4ddcf;
}

/* 1行ごとのリンク */
.p-side-menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 4px;
  font-size: 13px;
  line-height: 1.4;
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
}

.p-side-menu__link.is-link {
  cursor: pointer;
}

.p-side-menu__link:hover {
  background: #ffffff;
}

.p-side-menu__text {
  flex: 1;
}

/* 右側の矢印 */
.p-side-menu__arrow {
  width: 8px;
  height: 8px;
  border-right: 1px solid #999999;
  border-bottom: 1px solid #999999;
  transform: rotate(45deg);
  margin-left: 6px;
  transition: transform .2s;
}

/* 開いているときの矢印向き */
.js-toggle-btn.is-on .p-side-menu__arrow {
  transform: rotate(-135deg);
}

/* サブカテゴリリスト */
.p-side-menu__sub-list {
  margin: 0;
  padding: 4px 0 8px 12px;
  list-style: none;
  border-top: 1px solid #e4ddcf;
  display: none; /* jQueryで開閉 */
}

.p-side-menu__sub-item + .p-side-menu__sub-item {
  margin-top: 2px;
}

.p-side-menu__sub-link {
  display: block;
  font-size: 12px;
  padding: 4px 0;
  text-decoration: none;
}

.p-side-menu__sub-link:hover {
  text-decoration: underline;
}

/* スマホ調整 */
@media screen and (max-width: 767px) {
  .p-side-menu {
    margin-bottom: 20px;
    padding: 16px 12px 24px;
    border-radius: 0;
  }

  .p-side-menu__head {
    display: flex;
    align-items: center;
    text-align: left;
  }

  .p-side-menu__icon {
    margin: 0 12px 0 0;
  }
}

/* =======================================
   商品一覧ページ：TOP風カードレイアウト
   ======================================= */

/* 見出しを少しだけリッチに */
.product_list .p-category__ttl {
  margin: 0 0 32px;
  font-size: 32px;
  letter-spacing: 0.18em;
  font-weight: 500;
}

/* 商品グリッド全体 */
.product_list .p-category-list {
  display: flex;
  flex-wrap: wrap;
  margin-left: -16px;
  margin-right: -16px;
}

/* 1つ1つの商品を「カード化」する
   （通常の商品用とシートカバー用どちらにも適用） */
.product_list .p-category-list__item,
.product_list .c-item-list__cover {
  box-sizing: border-box;
  width: 25%;                /* PCで4列のまま */
  padding: 22px 16px 18px;   /* カード内の余白 */
  margin-bottom: 32px;

  background-color: #ffffff;
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(15, 35, 52, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* ホバーでふわっと浮く */
.product_list .p-category-list__item:hover,
.product_list .c-item-list__cover:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(15, 35, 52, 0.14);
}

/* 画像部分：角丸に合わせてクリップ
   ※高さ比率（正方形）は既存のままなので、画像サイズは変わりません */
.product_list .p-category-list__img {
  margin-bottom: 16px;
  border-radius: 20px;
  overflow: hidden;
}

/* タイトル・テキスト類を少し整える */
.product_list .c-item-list__ttl {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 6px;
}

.product_list .c-item-list__price {
  margin-top: 8px;
  font-size: 13px;
  color: #9b9b9b;
}

.product_list .c-item-list__expl {
  margin-top: 10px;
  font-size: 12px;
  color: #757575;
}

/* スマホ時：2列のまま、カードだけ少し軽めに */
@media screen and (max-width: 767px) {
  .product_list .p-category-list__item,
  .product_list .c-item-list__cover {
    width: 50%;
    padding: 14px 8px 18px;
    margin-bottom: 20px;
    border-radius: 18px;
    box-shadow: 0 10px 26px rgba(15, 35, 52, 0.08);
  }
}

/* =======================================
   商品カード同士の横方向のすき間を広げる
   ======================================= */

/* グリッド全体：端とのバランス調整用（お好みで） */
.p-category-list .c-item-list {
  margin-left: -12px;
  margin-right: -12px;
}

/* PC：4列のまま、カード同士に12pxずつ余白をつける */
.product_list .p-category-list__item,
.product_list .c-item-list__item,
.product_list .c-item-list__cover {
  width: calc(25% - 24px);   /* 25% から左右マージン合計24pxを引く */
  margin: 0 12px 32px;       /* ← この 12px がカード間のすき間 */
}

/* SP：2列のまま、少しだけゆとりをプラス */
@media screen and (max-width: 767px) {
　.product_list .p-category-list__item,
  .product_list .c-item-list__item,
  .product_list .c-item-list__cover {
    width: calc(50% - 16px); /* 50% から左右マージン合計16pxを引く */
    margin: 0 8px 20px;
  }
}
