/* ============= PLP Category Hero (tokenized with variables.css) ============= */

/* セクション全幅・高さは画面幅に応じて可変 */
.plp-hero {
  position: relative;
  inline-size: 100%;
  block-size: clamp(220px, 48vw, 420px);
  overflow: hidden;
}

/* 背景画像（PHP側で --hero にURLをセット） */
.plp-hero__bg {
  position: absolute;
  inset: 0;
  background: center / cover no-repeat var(--hero, none);
  transform: translateZ(0);
}

/* うっすら暗くして白文字を読みやすく（濃いときは .15→.12/.10 などへ） */
.plp-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .15);
}

/* 本文コンテナと同じセンタリング＋左右パディング */
.plp-hero__inner {
  position: relative;
  inline-size: 100%;
  block-size: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(var(--space-3), 3vw, var(--space-6));
}

/* タイトルの“かたまり”を縦中央に配置（英+日をまとめて中央） */
.plp-hero__titles {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--c-fg-inverse);
}

/* 英語=スラッグ（大きく）— Inter を使用し、太字は使わない */
.plp-hero__slug {
  font-family: var(--font-latin);
  font-weight: var(--fw-regular);
  font-size: clamp(var(--fs-xl), 6vw, 4rem);  /* 28px〜64px相当 */
  line-height: var(--lh-tight);
  letter-spacing: .02em;
  color: var(--c-fg-inverse);
}

/* 日本語＝カテゴリ名（小さめ）— Noto Sans JP、太字なし */
.plp-hero__name {
  margin-top: .35em;
  font-family: var(--font-sans-jp);
  font-weight: var(--fw-regular);
  font-size: clamp(var(--fs-14), 2.2vw, var(--fs-md)); /* 14px〜18px */
  line-height: 1.25;
  color: var(--c-fg-inverse);
  opacity: .95;
}

/* 小さい画面でのヒーロー高さ微調整（任意） */
@media (max-width: 480px) {
  .plp-hero { block-size: clamp(180px, 52vw, 260px); }
}

/* ============= PLP: パンくずの縦位置を少し下げる（PLPだけに適用） ============= */
.tax-product_cat .myro-breadcrumbs,
.tax-product_cat .breadcrumbs,
.tax-product_cat .woocommerce-breadcrumb {
  margin-top: var(--space-6);         /* 24px */
  margin-bottom:  var(--space-6);
}

@media (min-width: 768px) {
  .tax-product_cat .myro-breadcrumbs,
  .tax-product_cat .breadcrumbs,
  .tax-product_cat .woocommerce-breadcrumb {
    margin-top: var(--space-6);       /* 32px（PCで少しゆったり） */
  }
}

/* ===== PLP Hero layering fix ===== */
.plp-hero { position: relative; }

.plp-hero__bg{
  position: absolute;
  inset: 0;
  z-index: 0;                 /* 一番下：背景画像 */
}

.plp-hero::after{
  z-index: 1;                 /* 中間：暗幕（薄い黒） */
}

.plp-hero__inner{
  position: relative;
  z-index: 2;                 /* 一番上：テキストなどの内容 */
}

.plp-hero__titles{
  color: #fff !important;     /* 変数を介さず純白を直指定 */
  mix-blend-mode: normal !important;
  filter: none !important;
  opacity: 1 !important;
}

/* 読みやすさを少しだけ上げたい場合（任意） */
@media (min-width: 768px){
  .plp-hero__titles{ text-shadow: 0 1px 2px rgba(0,0,0,.25); }
}

/* =====================================================
   PLP Hero：モバイル時（〜768px）の高さと背景表示調整
   ===================================================== */
@media (max-width: 768px) {
  .plp-hero {
    block-size: clamp(260px, 68vw, 340px); /* ← 高さをやや高めに */
  }

  .plp-hero__bg {
    background-position: center;  /* ← 被写体を上寄せで見せる */
    background-size: cover;           /* ← 幅いっぱい */
  }

  /* タイトル位置をやや下げて自然な構図に */
  .plp-hero__titles {
    top: 58%;
    transform: translateY(-50%);
  }
}
