.item-kiji-p {
  font-size: 12px;
}

.item-kiji-h2 {
  margin: 50px 0 20px !important;
}

.item-kiji-h3 {
  margin: 40px 0 10px;
  border-bottom: 1px solid #ccc;
}

/******************************/
/* categoryのショップ 20240504 */
/******************************/
.shop-title {
  display: flex;
  margin: 40px 10px 40px;
  text-decoration: none;
}

.shop-title .image {
  margin: 0;
  padding: 0;
  width: 70px;
}

.shop-title .image img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 50%;
}

.shop-title h2 {
  margin: 0 0 0 20px;
}

.shop-title .text {
  margin: 2px 0px 0 20px;
  padding: 0;
}

.shop-title .text::after {
  content: " ＞";
}

/******************************/
/* category */
/******************************/
.p-category__ttl {
  margin: 10px 0 10px 0;
  line-height: 1.4;
  font-size: 16px;
}

.p-category-free {
  margin-bottom: 0px;
  line-height: 2;
}

.p-category-free h2 {
  font-size: 18px;
  margin-top: 0;
}

/***** カテゴリ一覧 *****/
.p-category-list {
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  margin-top: 20px;
  margin-bottom: 20px;
}

.p-category-list__link {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  margin:0 10px 0 0;
  align-items: center;
}

.p-category-list__item {
  box-sizing: border-box;
  margin-bottom: 60px;
  padding-left: 15px;
  padding-right: 15px;
  width: 33.3%;
  font-size: 12px;
}

.p-category-list__img {
  margin-right: 10px;
  margin-bottom: 0;
  width: 75px;
}

.p-category-list__img img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 50%;
  image-rendering: auto; /* シャープに表示 */
}

.p-category-list__name {
  overflow: hidden;
  text-overflow: ellipsis;
  padding:0 20px 0 0;
  width:105px;
}

.p-category-list__link:hover,
.p-category-list__name:hover {
  text-decoration: none;
}

/***** 商品件数・ソート *****/
.p-item-list-head {
  display: flex;
  justify-content: space-between;
  padding: 0 30px 30px;
  border-top: 0px solid #7d7d7d;
}

.p-item-list-num {
  font-size: 16px;
}

.p-item-sort-list {
  display: flex;
  flex-wrap: wrap;
}

.p-item-sort-list__item {
  margin-left: 30px;
}

.p-item-sort-list__item:first-child {
  margin-left: 0;
}

.p-item-sort-list__item span {
  text-decoration: underline;
}

/******************************/
/* スマホ用メディアクエリ */
/******************************/
@media screen and (max-width: 648px) {
  .shop-title {
    margin: 40px 0 10px;
    box-sizing: border-box; /* 追加 */
  }

  .p-category-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between; /* 追加 */
    margin-left: 0;
    margin-right: 0;
    padding: 0 0px; /* 追加 */
    box-sizing: border-box; /* 追加 */
  }

  .p-category-list__item {
    margin-bottom: 15px;
    padding-left: 0;
    padding-right: 0;
    width: calc(50% - 5px); /* 修正 */
    box-sizing: border-box; /* 追加 */
    text-align: left;
  }

  .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 {
    margin-right: 10px;
    margin-bottom: 0;
    width: 55px;
  }

  .p-category-list__img img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
  }

  .p-category-list__name {
    flex: 1;
  }

  .p-category-list__name:hover {
    text-decoration: none;
  }

  .p-item-list-head {
    padding: 10px 10px 20px;
    box-sizing: border-box; /* 追加 */
  }

  .p-item-list-num {
    font-size: 14px;
  }

  .p-item-sort-list {
    width: 100%; /* 追加 */
    box-sizing: border-box; /* 追加 */
  }

  .p-item-sort-list__item {
    margin-left: 25px;
    box-sizing: border-box; /* 追加 */
  }
}
/******************************/
/* 販売ショップの上部 */
/******************************/
.shop-header {
  padding: 2rem 1rem;
  background-color: #fdfdfd;
  border-bottom: 1px solid #ddd;
}

.shop-header__container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
}

.shop-header__image img {
  max-width: 100%;
  aspect-ratio: 1.61 / 1;
  object-fit:cover;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.shop-header__title {
  font-size: 1rem;
  font-weight: bold;
  margin: 0;
  line-height: 1.4;
}

.shop-header__description {
  margin: 1rem 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: #444;
}

.shop-header__link {
  display: inline-block;
  margin: 1rem 0;
  padding: 0.4rem 1.2rem;
  background-color: #337ab7;
  color: #fff;
  font-weight: 500;
  font-size: 0.8rem;
  text-decoration: none;
  border-radius: 0.4rem;
  transition: background-color 0.3s ease;
}

.shop-header__link:hover {
  background-color: #286090;
  color: #fff;
}

@media screen and (min-width: 768px) {
  .shop-header__container {
    flex-direction: row;
    align-items: flex-start;
  }

  .shop-header__image {
    flex: 0 0 300px;
    margin-right: 2rem;
  }

  .shop-header__content {
    flex: 1;
  }

  .shop-header__title {
    font-size: 1.5rem;
  }

  .shop-header__description {
    font-size: 1.0rem;
  }
}

/******************************/
/* 販売ショップの上部ここまで */
/******************************/






