/* ------------------------------------------------------------
   商品CPT（詳細 single-product.php / 一覧 archive-products.php）
   ------------------------------------------------------------ */

.p-prd {
  --prd-accent: #fb64b6;
  --prd-ink: #1a1a1a;
  --prd-line: #e5e7eb;
  color: var(--prd-ink);
}

.p-prd__inner {
  width: 92%;
  max-width: 1080px;
  margin: 0 auto;
}

.p-prd__badge {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--prd-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
}

.p-prd__heading {
  margin-bottom: 32px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
}

.p-prd__heading .__en {
  display: block;
  margin-bottom: 6px;
  color: var(--prd-accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ---------- ヒーロー ---------- */
.p-prd_hero {
  padding: 64px 0 72px;
}

.p-prd_hero__inner {
  display: flex;
  align-items: center;
  gap: 48px;
}

.p-prd_hero__body {
  flex: 1 1 44%;
  min-width: 0;
}

.p-prd_hero__eyebrow {
  margin-bottom: 10px;
  color: var(--prd-accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.p-prd_hero__title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.35;
}

.p-prd_hero__copy {
  margin-top: 20px;
  font-size: 17px;
  line-height: 1.8;
}

.p-prd_hero__itemno {
  margin-top: 20px;
  color: #6b7280;
  font-size: 14px;
}

.p-prd_hero__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding: 0;
  list-style: none;
}

.p-prd_hero__cats li a {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--prd-line);
  border-radius: 999px;
  color: #4b5563;
  font-size: 13px;
  text-decoration: none;
}

.p-prd_hero__visual {
  flex: 1 1 56%;
  min-width: 0;
}

.p-prd_hero__img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  /* 画像比率がバラついてもレイアウトが崩れないように */
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #f7f7f8;
}

/* ---------- CTA ---------- */
.p-prd__cta {
  margin-top: 32px;
}

.p-prd__cta_btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 280px;
  padding: 18px 32px;
  border-radius: 999px;
  background: linear-gradient(100deg, #fb64b6 0%, #c27aff 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.p-prd__cta_btn:hover {
  opacity: 0.88;
  transform: translateY(-2px);
}

/* ---------- 商品説明 ---------- */
.p-prd_desc {
  padding: 64px 0;
  background: #fafafa;
}

.p-prd_desc__body {
  font-size: 16px;
  line-height: 1.9;
}

.p-prd_desc__body p + p {
  margin-top: 1.2em;
}

.p-prd_desc__editor {
  margin-top: 24px;
}

/* ---------- 特徴 ---------- */
.p-prd_features {
  padding: 72px 0;
}

.p-prd_features__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding: 0;
  list-style: none;
}

.p-prd_features__item {
  padding: 32px 28px;
  border: 1px solid var(--prd-line);
  border-radius: 16px;
  background: #fff;
}

.p-prd_features__num {
  display: block;
  margin-bottom: 12px;
  color: var(--prd-accent);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
}

.p-prd_features__title {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;
}

.p-prd_features__text {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.8;
  color: #4b5563;
}

/* ---------- ギャラリー ---------- */
.p-prd_gallery {
  padding: 0 0 72px;
}

.p-prd_gallery__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 0;
  list-style: none;
}

.p-prd_gallery__item img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  background: #f7f7f8;
}

/* ---------- スペック ---------- */
.p-prd_spec {
  padding: 72px 0;
  background: #fafafa;
}

.p-prd_spec__list {
  border-top: 1px solid var(--prd-line);
}

.p-prd_spec__row {
  display: flex;
  gap: 24px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--prd-line);
}

.p-prd_spec__label {
  flex: 0 0 200px;
  font-weight: 700;
  font-size: 15px;
}

.p-prd_spec__value {
  flex: 1 1 auto;
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
}

/* ---------- 下部CTA ---------- */
.p-prd_cta_block {
  padding: 72px 0;
  text-align: center;
}

.p-prd_cta_block__text {
  font-size: 17px;
  font-weight: 700;
}

/* ---------- 一覧へ戻る ---------- */
.p-prd__pager {
  padding-bottom: 72px;
  text-align: center;
}

.p-prd__back {
  display: inline-block;
  padding: 12px 28px;
  border: 1px solid var(--prd-ink);
  border-radius: 999px;
  color: var(--prd-ink);
  font-size: 14px;
  text-decoration: none;
}

/* ------------------------------------------------------------
   商品一覧（archive-product.php）
   ※ p-product_posts 系のスタイルはテーマ側に存在しなかったため新規に定義
   ------------------------------------------------------------ */
.p-product_main_inner {
  width: 92%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 56px 0 88px;
}

.p-prd_archive__header {
  margin-bottom: 32px;
  text-align: center;
}

.p-prd_archive__header .p-prd__heading {
  margin-bottom: 0;
}

.p-prd_archive__desc {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.8;
  color: #4b5563;
}

/* カテゴリー絞り込み（詳細ページのカテゴリーチップと同じ形） */
.p-prd_archive__filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 44px;
}

.p-prd_archive__filter_item {
  display: inline-block;
  padding: 7px 18px;
  border: 1px solid var(--prd-line);
  border-radius: 999px;
  color: #4b5563;
  font-size: 14px;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.p-prd_archive__filter_item:hover {
  border-color: var(--prd-accent);
  color: var(--prd-accent);
}

.p-prd_archive__filter_item.is-current {
  background: var(--prd-ink);
  border-color: var(--prd-ink);
  color: #fff;
}

/* カード（詳細ページの特徴カードと同じ枠線・角丸） */
.p-product_posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.p-prd_card {
  border: 1px solid var(--prd-line);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.p-prd_card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.p-prd_card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.p-prd_card__thumb {
  position: relative;
}

.p-prd_card__thumb img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #f7f7f8;
  display: block;
}

.p-prd_card__badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  margin-bottom: 0;
}

.p-prd_card__body {
  padding: 22px 22px 26px;
}

.p-prd_card__eyebrow {
  margin-bottom: 6px;
  color: var(--prd-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.p-prd_card__title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}

.p-prd_card__itemno {
  margin-top: 8px;
  color: #6b7280;
  font-size: 13px;
}

.p-prd_card__more {
  display: inline-block;
  margin-top: 16px;
  padding-right: 22px;
  position: relative;
  color: var(--prd-accent);
  font-size: 14px;
  font-weight: 700;
}

.p-prd_card__more::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 14px;
  height: 6px;
  border-bottom: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: translateY(-50%) skewX(45deg);
}

.__non_item {
  padding: 64px 0;
  text-align: center;
  line-height: 1.9;
}

.__non_item__return {
  margin-top: 24px;
}

.__non_item__return a {
  display: inline-block;
  padding: 12px 28px;
  border: 1px solid #1a1a1a;
  border-radius: 999px;
  color: #1a1a1a;
  font-size: 14px;
  text-decoration: none;
}

.p-pager {
  margin-top: 56px;
  text-align: center;
}

.p-pager .page-numbers {
  display: inline-block;
  margin: 0 4px;
  padding: 8px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  color: #1a1a1a;
  font-size: 14px;
  text-decoration: none;
}

.p-pager .page-numbers.current {
  background: #1a1a1a;
  border-color: #1a1a1a;
  color: #fff;
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 900px) {
  .p-prd_hero {
    padding: 40px 0 48px;
  }

  .p-prd_hero__inner {
    flex-direction: column;
    gap: 28px;
  }

  .p-prd_hero__title {
    font-size: 28px;
  }

  .p-prd__heading {
    font-size: 24px;
    margin-bottom: 24px;
  }

  .p-prd_features__list,
  .p-prd_gallery__list {
    grid-template-columns: 1fr;
  }

  .p-prd_features,
  .p-prd_spec,
  .p-prd_desc,
  .p-prd_cta_block {
    padding: 48px 0;
  }

  .p-prd_spec__row {
    flex-direction: column;
    gap: 6px;
  }

  .p-prd_spec__label {
    flex: none;
  }

  .p-prd__cta_btn {
    width: 100%;
    min-width: 0;
  }

  .p-product_posts {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 18px;
  }
}

@media (max-width: 600px) {
  .p-product_posts {
    grid-template-columns: 1fr;
  }
}
