/* =================================================
  【優先度高】商品ホバーアニメーション
================================================= */

/* --- 追加 --- */
/* ▼商品リストアイテム全体に動きの基準と奥行きを追加 */
.c-item-list__item {
  transition: box-shadow 0.4s ease, transform 0.4s ease; /* 滑らかな変化を追加 */
}

/* --- 追加 --- */
/* ▼マウスが乗った時に、少し浮き上がるような影と動きを付ける */
.c-item-list__item:hover {
  transform: translateY(-5px); /* 少し上に移動 */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); /* 影を濃くして浮遊感を演出 */
}

/* --- 追加 --- */
/* ▼画像がはみ出ないように親要素でマスクする */
.c-item-list__img {
  overflow: hidden;
}

/* --- 追加 --- */
/* ▼商品画像に滑らかな拡大アニメーションを追加 */
.c-item-list__img img {
  transition: transform 0.6s ease-out; /* ゆっくりとした変化 */
}

/* --- 追加 --- */
/* ▼マウスが乗った時に、画像を少しだけ拡大する */
.c-item-list__item:hover .c-item-list__img img {
  transform: scale(1.08); /* 1.08倍に拡大 */
}
/* ======================================================
 スクロール連動アニメーションのCSS
====================================================== */

/* ▼商品アイテムの初期状態（アニメーション前）を定義 */
/* HTMLの<ul class="c-item-list u-opa">内のアイテムに適用される */
.c-item-list.u-opa > .c-item-list__item {
  opacity: 0; /* 透明な状態 */
  transform: translateY(20px); /* 少し下にずらした状態 */
  transition: opacity 1.5s ease-out, transform 1.5s ease-out; /* 透明度と位置が0.8秒かけて滑らかに変化するように設定 */
}

/* ▼JavaScriptによって「is-visible」クラスが付与された時のスタイルを定義 */
.c-item-list.u-opa > .c-item-list__item.is-visible {
  opacity: 1; /* 透明度を1（不透明）にする */
  transform: translateY(0); /* ずらした位置を元に戻す */
}

/* ▼アイテムごとにアニメーションが始まるタイミングをずらす */
.c-item-list.u-opa > .c-item-list__item:nth-child(2) { transition-delay: 0.15s; }
.c-item-list.u-opa > .c-item-list__item:nth-child(3) { transition-delay: 0.35s; }
.c-item-list.u-opa > .c-item-list__item:nth-child(4) { transition-delay: 0.55s; }
.c-item-list.u-opa > .c-item-list__item:nth-child(5) { transition-delay: 0.75s; }
.c-item-list.u-opa > .c-item-list__item:nth-child(6) { transition-delay: 0.95s; }
/* ※商品が一行にさらに多く並ぶ場合は、必要に応じてこの行を増やす */
.p-category__ttl {
  margin: 10px 0 40px 0;
  line-height: 1.4;
  font-size: 30px;
  font-weight: normal;
  font-family: "Noto Serif JP", "游明朝体", "Yu Mincho", YuMincho, serif;
  text-align: center;
  color: #99896f;
}
@media screen and (max-width: 767px) {
  .p-category__ttl {
    margin-bottom: 30px;
    font-size: 20px;
  }
}
.p-category-free {
  margin-top: 30px;
  margin-bottom: 60px;
  margin-left: 100px;
  margin-right: 100px;
  line-height: 2;
}
@media screen and (max-width: 767px) {
  .p-category-free {
    margin-top: 30px;
    margin-bottom: 30px;
    margin-left: 0;
    margin-right: 0;
  }
}
.p-category-search {
  margin-bottom: 30px;
  font-family: "Noto Serif JP", "游明朝体", "Yu Mincho", YuMincho, serif;
}
/***** カテゴリ一覧 *****/
.p-category-list {
  display: flex;
  flex-wrap: wrap;
  margin-top: 60px;
  margin-bottom: 60px;
  margin-left: -25px;
  margin-right: -25px;
}
@media screen and (max-width: 767px) {
  .p-category-list {
    margin-left: -10px;
    margin-right: -10px;
  }
}
@media screen and (max-width: 767px) {
  .p-category-list {
    display: block;
    margin-left: 0;
    margin-right: 0;
    margin-top: 30px;
  }
}
.p-category-list__item {
  box-sizing: border-box;
  margin-bottom: 50px;
  padding-left: 25px;
  padding-right: 25px;
  width: 33.3333%;
}
@media screen and (max-width: 1030px) {
  .p-category-list__item {
    margin-bottom: 20px;
    padding-left: 10px;
    padding-right: 10px;
    width: 50%;
  }
}
@media screen and (max-width: 767px) {
  .p-category-list__item {
    margin-bottom: 15px;
    padding-left: 0;
    padding-right: 0;
    width: auto;
  }
}
.p-category-list__link {
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  position: relative;
  padding: 20px;
  text-align: center;
}
@media screen and (max-width: 1030px) {
  .p-category-list__link {
    padding: 10px;
    text-align: left;
    min-height: 70px;
  }
}
.p-category-list__link:hover {
  background: rgba(240, 237, 232, 0.8);
  text-decoration: none;
}
.p-category-list__img {
  display: block;
  margin-right: 20px;
  width: 100px;
}
@media screen and (max-width: 1030px) {
  .p-category-list__img {
    width: 50px;
  }
}
.p-category-list__name {
  display: block;
  flex: 1;
  font-size: 18px;
  font-family: "Noto Serif JP", "游明朝体", "Yu Mincho", YuMincho, serif;
}
@media screen and (max-width: 767px) {
  .p-category-list__name {
    font-size: 16px;
  }
}
/***** 商品件数・ソート *****/
.p-item-list-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
  font-family: "Noto Serif JP", "游明朝体", "Yu Mincho", YuMincho, serif;
}
.p-item-list-num {
  font-size: 18px;
}
@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;
}



/******************************/
/* Custom */
/******************************/

.p-category-free .step-box {
  /* background-color: aliceblue; */
  background-color: white;
  border: double;  /* 二重線の枠線をひく*/
  padding: 40px 10px;
  position: relative;
}

.p-category-free .step-label {
  font-size: 20px;
  color: white;
  font-weight: bold;
  display: block;
  position: absolute;
  top: -20px;
  left: 15px;
  background-color: #ceacde;
  padding: 0px 15px;
}

.p-category-free .step-innter {
  display: flex;
  gap: 20px;
}

@media screen and (max-width: 767px) {
  .p-category-free .step-title {
    font-size: 22px;
  }
}

.step-title {
  font-size: 30px;
  font-weight: bold;
}

.p-category-free .step-inner-right-box {
  display: flex;
  flex-direction: column;
}

.p-category-free hr {
  margin: 5px 0px;
  border: none;
  border-top: 2px dotted #b7b7b7;
  height: 0;
  margin-top: auto;
}

.p-category-free .arrow-wrapper
{
  text-align: center;
  margin: 20px 0;
}

.p-category-free .dli-arrow-down {
  display: inline-block;
  vertical-align: middle;
  color: #333;
  line-height: 1;
  position: relative;
  width: 0.1em;
  height: 1em;
  background: currentColor;
}

.p-category-free .dli-arrow-down::before {
  content: '';
  width: 0.65em;
  height: 0.65em;
  border: 0.1em solid currentColor;
  border-top: 0;
  border-right: 0;
  transform: rotate(-45deg);
  transform-origin: bottom left;
  position: absolute;
  left: 50%;
  bottom: -0.05em;
  box-sizing: border-box;
}

.p-category .description-text, .p-category h2 {
  text-align: center;
}

.p-category.u-contents {
  background: linear-gradient(0deg, #faeafa, #e5d4ef 50%, #e3dcfc) !important;
}

.p-category.u-contents h2 {
  font-size: 2.5rem;
  text-shadow: 1px 1px 30px rgba(255, 255, 255, 0.6), -1px 1px 30px rgba(255, 255, 255, 0.6), 1px -1px 30px rgba(255, 255, 255, 0.6), -1px -1px 30px rgba(255, 255, 255, 0.6);
}

/******************************/
/* End Custom */
/******************************/
