/******************************/
/* category */
/******************************/
.p-category {
  overflow: hidden;

  details {
    border-radius: 4px;
    background: rgba(255,255,255,0.4);
    padding: 16px;

    summary {
      cursor: pointer;
      font-size: 14px;
      color: #505748;

      & + .p-category-list {
        margin-top: 16px;
      }
    }
  }
}

/******************************/
/* ページヘッダー */
/******************************/
.p-page-header {
  background: #E9EDE8;
  padding: 40px 0;

  @media screen and (min-width: 768px) {
    padding: 64px 0;
  }
}

.p-page-header__container {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 1280px;
  margin-inline: auto;
  padding: 0 max(16px, 2%);

  @media screen and (min-width: 768px) {
    gap: 48px;
  }
}

.p-page-header__meta {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.p-page-header__title {
  margin: 0;
  font-family: "ヒラギノ明朝 ProN", "Hiragino Mincho ProN", "游明朝", "Yu Mincho", "YuMincho", "MS P明朝", "MS PMincho", serif;
  font-size: 26px;
  line-height: 1.3;
  color: #505748;
  font-weight: normal;
  letter-spacing: 0.1em;

  @media screen and (min-width: 500px) {
    font-size: 32px;
  }
}

.p-page-header__description {
  font-size: 12px;

  @media screen and (min-width: 768px) {
    font-size: 14px;
  }
}

/******************************/
/* カテゴリー一覧 */
/******************************/
.p-category-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px 24px;
}

.p-category-list__item {
  display: flex;
}

.p-category-list__link {
  display: flex;
  align-items: center;
  gap: 8px;
}

.p-category-list__image {
  border-radius: 4px;
  width: 48px;
  height: 48px;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

.p-category-list__label {
  font-size: 12px;
}

/******************************/
/* 商品件数・ソート */
/******************************/
.p-product-option {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4px;
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;

  @media screen and (min-width: 500px) {
    flex-direction: row;
    align-items: center;
  }
}

.p-product-option__number {
  font-size: 14px;
}

.p-product-option__sort {
  display: flex;
  align-items: center;
  gap: 4px;
}

.p-product-option__title {
  flex: 0 0 auto;
  font-size: 14px;
}

.p-product-option__select {
  border: 1px solid #b3b2b2;
  border-radius: 4px;
  min-width: 180px;
  height: auto;
  padding: 8px;
  line-height: 1.4;
  color: #212121;
}

/******************************/
/* 商品一覧 */
/******************************/
.p-product-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  justify-content: center;
  gap: 32px 16px;
  width: 100%;

  @media screen and (min-width: 768px) {
    grid-template-columns: repeat(3, 1fr);
    gap: 48px 24px;
  }

  @media screen and (min-width: 1024px) {
    grid-template-columns: repeat(4, 1fr);
  }
}

.p-product-list__item {
  flex: 0 0 auto;
  display: flex;
}
