/* -----------------------------------------------------
   ① 全体のデフォルトフォント → Noto Sans JP
----------------------------------------------------- */
body {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 400;
}

/* -----------------------------------------------------
   ② .en クラスの部分だけ → Roboto Bold
----------------------------------------------------- */
.en {
  font-family: "Roboto", sans-serif !important;
  font-weight: 700; /* Bold */
}

.big-chara{
  font-size: clamp(56px, 7vw, 110px) !important;
  line-height: 1 !important;
  position: relative !important;
  left: -2px !important;
  color: #6b6b6b !important;
}

.pfi-archive__sub {
  margin-top: 8px !important;
}

.pfi-contact-form-wrap{
  margin-top: 60px !important;
}


/* ===========================
   スマホ用ヘッダー（〜767px）
   =========================== */
@media (max-width: 767px) {
  .pfi-header__menu-btn {
    width: 40px;
    height: 40px;
  }
  .pfi-header__menu-icon{
    margin-bottom: 8px;
  }
  .pfi-header__menu-label {
    font-size: 8px;
  }

}

.pfi-footer__link-main {
  filter: none;
}

.fillter-black {
  filter: invert(1);
}

.pfi-footer__sns li a{
  border: none !important;
}

.pfi-footer__right{
  margin-top: 64px;

}

/* ===== 上段レイアウトの親 ===== */
.pfi-footer__top {
  /* ここは block でも flex でもOKですが、とりあえず flex のままでOK */
  display: block; /* ← flex である必要がなければ block にしてしまってもよい */
}

/* ナビ＋SDGs＋SNS 全体 */
.pfi-footer__nav {
  display: flex;
  width: 100%;            /* コンテンツ幅いっぱいに広げる */
  gap: 70px;
  align-items: flex-start;
}

/* 各ナビカラムを均等に広げる */
.pfi-footer__nav-col {
  flex: 1 1 1;
  min-width: 0;
}

/* 右側の SDGs ＋ SNS ブロック */
.pfi-footer__right {
  flex: 0 0 auto;     /* 中身に応じた幅 */
  margin-left: auto;  /* 一番右端に寄せる */
}


.pfi-footer__bottom
{
  margin-top: 60px;
  margin-bottom: 0px;
}

.pfi-footer {
  padding: 0px 50px !important;
}

.pfi-footer__inner{
  padding: 60px 0px 60px 0px !important;
  border-top: 1px solid #ccc;
  max-width: 1446px;
}

.pfi-footer__logo{
  margin-bottom: 60px;
}

.pfi-footer-hover {
  display: inline-flex;
  align-items: flex-end;
  transition: transform 0.25s ease;
}

.pfi-footer-hover:hover {
  transform: translateX(5px);
  opacity: 0.6;
  text-decoration: none !important;
}

/* ===========================
   スマホ用フッター（〜767px）
   =========================== */
@media (max-width: 767px) {

  .pfi-footer__logo {
    margin-bottom: 30px;
  }

  /* 上段を縦並びに */
  .pfi-footer__nav {
    flex-direction: column;
    gap: 0px;
    align-items: flex-start;
  }

  .pfi-footer__nav-col {
    flex: none;
    width: 100%;
  }

  /* 左メニュー（Service / Products / Works / News / Catalog）を縦に */
  .pfi-footer__nav-col ul {
    margin: 0;
    padding: 0;
  }

  .pfi-footer__nav-col ul li {
    margin-bottom: 30px;
  }

  /* Support 見出しを「Support + / -」のトグルにする */
  .pfi-footer__nav-col--support .pfi-footer__heading {
    font-size: 17px;
    /* display: flex;
    justify-content: space-between; */
    align-items: center;
    cursor: pointer;
    margin-bottom: 30px;
    border: none;
  }

  .pfi-footer__nav-col--support .pfi-footer__heading::after {
    content: "+";           /* 閉じているとき */
    font-size: 18px;
    line-height: 1;
    margin-left: 6px;
  }

  .pfi-footer__nav-col--support.is-open .pfi-footer__heading::after {
    content: "−";           /* 開いているとき */
  }

  /* Support の中身はデフォルト非表示、開いたら表示 */
  .pfi-footer__nav-col--support ul {
    display: none;
    margin-top: 8px;
  }

  .pfi-footer__nav-col--support.is-open ul {
    display: block;
  }

  .pfi-footer__nav-col--related .pfi-footer__heading {
    font-size: 17px;
    padding: 0px 0px 10px 0px;
    margin: 0px 0px 30px 0px;
  }

  /* Related Services も 1 カラム縦並び */
  .pfi-footer__nav-col--related ul li {
    margin-bottom: 6px;
  }

  /* SDGs ＋ SNS を下の方にまとめて左寄せ */
  .pfi-footer__right {
    align-items: flex-start;
    margin-left: 0;
  }

  /* 法務リンクは縦並び＋先頭に ▶ アイコン */
  .pfi-footer__legal {
    flex-direction: column;
    gap: 4px;
  }

  .pfi-footer__legal li::after {
    content: "";
    margin: 0;
  }

  .pfi-footer__legal li a::before {
    content: ">";
    margin-right: 4px;
    font-size: 10px;
  }

  /* コピーライトは下寄せ・左寄せ */
  .pfi-footer__copy {
    margin-top: 30px;
    white-space: normal;
    text-align: center;
  }

  .sp-font-12{
    font-size: 12px !important;
  }

  .pfi-footer__bottom
  {
    margin-top: 20px;
    margin-bottom: 0px;
  }

  .pfi-footer__sns-block {
    margin-top: 30px;
  }

  /* SDGs + SNS を1行に横並び */
  .pfi-footer__sns-block {
    display: flex;
    align-items: center;
    gap: 16px;       /* SDGs と SNS アイコンの間 */
  }

  .pfi-footer__sdgs img {
    display: block;
  }

  .pfi-footer__sns {
    display: flex;   /* ← SNS アイコン横並び */
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .pfi-footer__sns li a img {
    display: block;
  }

  .pfi-footer {
    padding: 0px 20px !important;
  }

}

:root {
  /* ヘッダー高さ（背景を上にかぶせたい場合に使用） */
  --pfi-header-height: 100px;
  /* .site-main の左右 padding 分 */
  --pfi-site-padding-x: 50px;
  --pfi-inner-width: 1446px;
}

/* ===== 背景固定ラッパー ===== */
.pfi-hero-wrapper {
  /* .site-main の padding を打ち消して全幅に */
  /* margin-left: calc(-1 * var(--pfi-site-padding-x));
  margin-right: calc(-1 * var(--pfi-site-padding-x));
  width: calc(100% + calc(var(--pfi-site-padding-x) * 2)); */
  width: 100vw;
  margin-left:  calc(50% - 50vw);
  margin-right: calc(50% - 50vw);

  /* 背景画像（固定） */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* ← 背景固定の本体はここ */
  color: #fff;

  /* 背景をヘッダーの裏まで伸ばす */
  margin-top: calc(-1 * var(--pfi-header-height));
}

/* ===== HERO base（最初は背景だけ見せるスペーサー） ===== */
.pfi-hero {
  height: 100vh; /* 1画面分の高さ */
}

/* ===== リードセクション（透明背景・白文字） ===== */
.pfi-hero-lead {
  padding: 80px var(--pfi-site-padding-x) 100px;
  color: #fff;                   /* 白文字 */
  background-color: transparent; /* 背景は透過 → wrapper の背景が見える */
}

.pfi-hero-lead__inner {
  max-width: 1446px;
  margin: 0 auto;
  min-height: 100vh;
}

/* リード文のリンク部分全体を横並び・上下中央揃えにする */
.pfi-hero-lead__link {
  display: inline-flex;                /* ← aタグをflex化（ズレ防止の決定打） */
  align-items: center;                 /* ← アイコンとテキストを縦中央に揃える */
  gap: 12px;                           /* テキストとアイコンの隙間 */
  color: #fff;
  text-decoration: none;
  
  line-height: 1;                      /* ← テキスト行の高さを整えズレを防ぐ */
  vertical-align: middle;              /* 念のため */
}

/* ホバー時の半透明 */
.pfi-hero-lead__link:hover {
  opacity: 0.6;
}

/* アイコン（画像） */
.pfi-hero-lead__icon {
  width: 32px;
  height: 32px;
  display: block;
  background-image: url('/wp-content/themes/kawajiun-pfi/assets/img/right_arrow_wh.webp');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* 見出し */
.pfi-hero__title {
  margin: 0 0 24px;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.4;
  font-weight: 700;
  color: #fff;
}

.pfi-hero__title-line {
  display: block;
}

/* サブコピー */
.pfi-hero__lead {
  margin: 0 0 40px;
  font-size: 17px;
  line-height: 1.8;
  color: #fff;
}

/* CTA hover（将来使うかもしれないので残しておく） */
.pfi-hero__cta:hover {
  background: #fff;
  color: #000;
  transform: translateY(-2px);
}

/* SP調整 */
@media (max-width: 767px) {
  .pfi-hero-wrapper {
    /* iOS Safari は background-attachment: fixed が効かないのでフォールバックも検討 */
    background-attachment: scroll;
  }

  .pfi-hero-lead {
    padding: 64px 20px 80px;
  }

  .pfi-hero__lead {
    margin-bottom: 32px;
  }

  .pfi-hero-lead__link {
    font-size: 13px;
    line-height: 26px !important;
  }

  .pfi-hero-lead__icon {
    position: relative;
    top: 15px;
    right: 86px;
    width: 18px;
    height: 18px;
  }

  .pfi-hero__title {
    margin-bottom: 40px;
  }

  .pfi-hero__title-line {
    line-height: 45px;
  }
}

.pfi-header {
  background: none !important;
  z-index: 3;
}

/* =======================================
   Top page arrow motion
   ======================================= */

.pfi-arrow-motion-icon {
  position: relative;
  display: inline-block;
  overflow: hidden;
  vertical-align: middle;
  background-image: none !important;
  background-color: transparent !important;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  box-sizing: border-box;
  color: #000;
  transition: opacity 0.3s ease;
  --pfi-arrow-image: url('/wp-content/themes/kawajiun-pfi/assets/img/right_arrow_bk.webp');
  --pfi-arrow-clip: inset(26% 26% 26% 26%);
}

.pfi-arrow-motion-icon::before,
.pfi-arrow-motion-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: var(--pfi-arrow-image);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  clip-path: var(--pfi-arrow-clip);
  will-change: transform;
}

.pfi-arrow-motion-icon::before {
  transform: translate3d(0, 0, 0);
}

.pfi-arrow-motion-icon::after {
  transform: translate3d(-130%, 0, 0);
}

.pfi-hero-lead__icon.pfi-arrow-motion-icon,
.top-service__arrow.pfi-arrow-motion-icon,
.top-products__arrow.pfi-arrow-motion-icon,
.top-works__arrow.pfi-arrow-motion-icon,
.top-news__arrow.pfi-arrow-motion-icon,
.top-showroom__arrow.pfi-arrow-motion-icon {
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px currentColor;
}

.pfi-hero-lead__icon.pfi-arrow-motion-icon {
  color: #fff;
  --pfi-arrow-image: url('/wp-content/themes/kawajiun-pfi/assets/img/right_arrow_wh.webp');
}

.top-news__arrow.pfi-arrow-motion-icon {
  color: #000;
}

@keyframes pfi-arrow-loop-current {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(130%, 0, 0);
  }
}

@keyframes pfi-arrow-loop-next {
  0% {
    transform: translate3d(-130%, 0, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

.pfi-arrow-motion-link.is-arrow-entering .pfi-arrow-motion-icon::before,
.pfi-arrow-motion-link:hover .pfi-arrow-motion-icon::before,
.pfi-arrow-motion-link:focus-visible .pfi-arrow-motion-icon::before,
.pfi-arrow-motion-link.is-pressed .pfi-arrow-motion-icon::before,
.pfi-arrow-motion-link:active .pfi-arrow-motion-icon::before {
  animation: pfi-arrow-loop-current 0.42s cubic-bezier(0.22, 1, 0.36, 1) 1 both;
}

.pfi-arrow-motion-link.is-arrow-entering .pfi-arrow-motion-icon::after,
.pfi-arrow-motion-link:hover .pfi-arrow-motion-icon::after,
.pfi-arrow-motion-link:focus-visible .pfi-arrow-motion-icon::after,
.pfi-arrow-motion-link.is-pressed .pfi-arrow-motion-icon::after,
.pfi-arrow-motion-link:active .pfi-arrow-motion-icon::after {
  animation: pfi-arrow-loop-next 0.42s cubic-bezier(0.22, 1, 0.36, 1) 1 both;
}

@media (prefers-reduced-motion: reduce) {
  .pfi-arrow-motion-link.is-arrow-entering .pfi-arrow-motion-icon::before,
  .pfi-arrow-motion-link:hover .pfi-arrow-motion-icon::before,
  .pfi-arrow-motion-link:focus-visible .pfi-arrow-motion-icon::before,
  .pfi-arrow-motion-link.is-pressed .pfi-arrow-motion-icon::before,
  .pfi-arrow-motion-link:active .pfi-arrow-motion-icon::before,
  .pfi-arrow-motion-link.is-arrow-entering .pfi-arrow-motion-icon::after,
  .pfi-arrow-motion-link:hover .pfi-arrow-motion-icon::after,
  .pfi-arrow-motion-link:focus-visible .pfi-arrow-motion-icon::after,
  .pfi-arrow-motion-link.is-pressed .pfi-arrow-motion-icon::after,
  .pfi-arrow-motion-link:active .pfi-arrow-motion-icon::after {
    animation: none;
  }

  .pfi-arrow-motion-icon::before {
    transform: translate3d(0, 0, 0);
  }

  .pfi-arrow-motion-icon::after {
    transform: translate3d(-130%, 0, 0);
  }
}


:root {
  /* 既にどこかで定義済みなら重複不要です */
  --pfi-site-padding-x: 50px;
}

/* =======================================
   Feature セクション全体
   ======================================= */

.top-feature {
  padding: 60px var(--pfi-site-padding-x) 84px;
  background-color: rgba(255, 255, 255, 0.7); /* 白 70% */
  color: #000;
}

.top-feature__inner {
  max-width: 1446px;
  margin: 0 auto;
}

.top-feature__heading {
  font-size: 32px;
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 0;
}

/* スライダーだけを画面幅いっぱいに広げるラッパー */
.top-feature__slider-wrap {
  margin-top: 16px;
}

/* ここで「左右パディングなし・画面幅」で広げる */
.top-feature__slider-wrap.no-side-padding {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* SP 調整 */
/* @media (max-width: 767px) {
  .top-feature {
    padding: 56px var(--pfi-site-padding-x) 72px;
  }

  .top-feature__heading {
    font-size: 24px;
    margin-bottom: 24px;
  }

  .top-feature__slider-wrap {
    margin-top: 12px;
  }
} */
:root {
  --pfi-site-padding-x: 50px;
}

/* 既存のSP用を少し修正 */
@media (max-width: 767px) {
  .top-feature {
    /* 他セクション同様に左右20px */
    padding: 56px 20px 82px;
  }

  .top-feature__heading {
    font-size: 26px;
    margin-bottom: 24px;
  }

  .top-feature__slider-wrap {
    margin-top: 12px;
  }

  /* ★ SPではfull-bleed解除 → セクションの20pxパディングの中に収める */
  .top-feature__slider-wrap.no-side-padding {
    width: auto;
    margin-left: 0;
    margin-right: 0;
  }

  /* 1枚表示はそのまま（既に指定済み） */
  .top-feature .feature-viewport {
    --feature-gap: 16px;
  }

  .top-feature .feature-card-list {
    flex: 0 0 auto;
    width: 100% !important;
  }

  .top-feature .feature-track {
    padding-inline: 0;
  }
}

/* =======================================
   横スクロールレイアウト
   ======================================= */

/* ビューポート（見える範囲） */
.top-feature .feature-viewport {
  overflow-x: hidden;
  overflow-y: visible;
}

/* スライドを横一列に並べるトラック */
.top-feature .feature-track {
  display: flex;
  gap: var(--feature-gap, 24px);
  will-change: transform;
  transition: none !important;
}

/* カード1枚分の枠 */
.top-feature .feature-card-list {
  flex: 0 0 auto;
  min-width: 0;
}

/* =======================================
   カード中身
   ======================================= */

.top-feature .img-wrap {
  position: relative;
  width: 100%;
}

.top-feature .feature-img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  background: #e5e5e5;
}

.top-feature .meta {
  margin-top: 14px;
  color: #222;
}

.top-feature .meta .feature-ttl {
  font-weight: 800;
  line-height: 1.4;
  /* font-size: 1.4rem; */
  font-size: 14px;
}

.top-feature .meta .feature-desc {
  margin-top: 8px;
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1.8;
  color: #333;
}

/* SP 調整（必要なら） */
@media (max-width: 767px) {
  .top-feature .meta .feature-ttl {
    font-size: 13px !important;
  }

  .top-feature .meta .feature-desc {
    font-size: 13px !important;
  }
}

/* =======================================
   UI（矢印・ドット）
   ======================================= */

/* フッター（ドット）用のラッパー */
.top-feature .feature-ui-footer {
  width: 100%;
  position: absolute;
  left: 0;
  right: 0;
  bottom: -28px;
  text-align: center;
}

/* ドット */
.top-feature .feature-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

.top-feature .feature-dots .dot:hover {
  background: rgba(0, 0, 0, 0.45);
}

.top-feature .feature-dots .dot.is-active {
  background: rgba(0, 0, 0, 0.85);
}

/* 矢印位置（使う場合用） */
.top-feature .feature-arrow.is-prev {
  left: 0;
}

.top-feature .feature-arrow.is-next {
  right: 0;
}

@media (max-width: 767px) {
  .top-feature .feature-arrow {
    display: none;
  }
}

/* =======================================
   カーソル系（ドラッグ演出）
   ======================================= */

.top-feature .feature-viewport .img-wrap {
  cursor: grab;
}

.top-feature .feature-viewport.is-dragging .img-wrap {
  cursor: grabbing;
}

/* =======================================
   レイアウト別：PC / Tablet / SP
   ======================================= */

/* ===== PC 共通：3枚レイアウト ===== */
@media (min-width: 1025px) {
  .top-feature .feature-viewport {
    --feature-gap: 32px; /* カード間ギャップ。お好みで調整 */
  }

  /* 3枚でちょうど 100% 幅を使う */
  .top-feature .feature-card-list {
    flex: 0 0 auto;
    width: calc(
      (100% - 2 * var(--feature-gap)) / 3
    ) !important;
  }
}

/* カードリンクをブロック化（クリック面積を確実に） */
.top-feature .feature-card-list > a{
  display: block;
}

/* overlay UIがカードのクリックを邪魔しないようにする */
.top-feature .feature-ui{
  pointer-events: none;
}

/* ただしUI内の操作系はクリックできるように戻す */
.top-feature .feature-arrow,
.top-feature .feature-dots button{
  pointer-events: auto;
}

/* リンクがあるカードは、画像上でもリンク用ポインタにする */
.top-feature .feature-card-list > a .img-wrap,
.top-feature .feature-card-list > a .feature-img{
  cursor: pointer !important;
}

/* ドラッグ中は grabbing を優先（見た目だけ） */
.top-feature .feature-viewport.is-dragging .feature-card-list > a .img-wrap,
.top-feature .feature-viewport.is-dragging .feature-card-list > a .feature-img{
  cursor: grabbing !important;
}

/* ===== 1025〜1446px：両端なし、3枚だけ ===== */
@media (min-width: 1025px) and (max-width: 1446px) {
  .top-feature .feature-track {
    padding-inline: 24px; /* 余白なし → 3枚だけジャスト表示 */
  }
}

/* ===== 1447px 以上：3枚＋両端半分見せ ===== */
@media (min-width: 1447px) {
  .top-feature .feature-track {
    /* カード1枚分の半分だけ左右に余白を足す */
    padding-inline: calc(
      ((100% - 2 * var(--feature-gap)) / 3) / 2
    );
  }
}

/* ===== タブレット：2枚表示 ===== */
@media (max-width: 1024px) and (min-width: 768px) {
  .top-feature .feature-viewport {
    --feature-gap: 20px;
  }

  .top-feature .feature-card-list {
    flex: 0 0 auto;
    width: calc((100% - var(--feature-gap)) / 2) !important;
  }

  .top-feature .feature-track {
    padding-inline: 0;
  }
}

/* ===== SP：1枚表示（フル幅） ===== */
@media (max-width: 767px) {
  .top-feature .feature-viewport {
    --feature-gap: 16px;
  }

  .top-feature .feature-card-list {
    flex: 0 0 auto;
    width: 100% !important;
  }

  .top-feature .feature-track {
    padding-inline: 0;
  }
}

/* ==============================
   Service セクション全体
   ============================== */

.top-service {
  padding: 120px var(--pfi-site-padding-x) 50px;
  background-color: rgba(255, 255, 255, 1);
  color: #000;
}

.top-service__inner {
  max-width: 1446px;
  margin: 0 auto;
}

/* クリック領域をまとめる */
.top-service__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

/* 左右 2 カラム */
.top-service__content {
  display: flex;
  gap: 0px;
  align-items: flex-start;
}

/* 左：テキストカラム（画像の手前まで） */
.top-service__text-col {
  flex: 0 0 40%;
}

/* 右：画像カラム */
.top-service__image {
  flex: 0 0 60%;
  margin: 0;
}

.top-service__image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* 見出し + 矢印 */
.top-service__head-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.top-service__heading {
  font-size: 32px;
  line-height: 1.2;
  font-weight: 700;
}


/* 右側の矢印アイコン */
.top-service__arrow {
  width: 25px;       /* 必要に応じて調整 */
  height: 25px;
  display: inline-block;
  background-image: url('/wp-content/themes/kawajiun-pfi/assets/img/right_arrow_bk.webp');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: opacity 0.3s ease;
}

/* ホバー時に Service + 画像 + アイコンが半調になる制御 */
.top-service__link:hover .top-service__arrow {
  opacity: 0.5;
}

.top-service__arrow-icon {
  width: 32px;
  height: 32px;
}

/* 見出しの下のライン（テキストカラム幅いっぱい → 画像の手前まで） */
.top-service__line {
  position: relative;
  margin-top: 10px;
  margin-bottom: 24px;
  height: 2px;
  background-color: #d4d4d4;
  overflow: hidden;
}

/* 黒が左から右へ走るレイヤー */
.top-service__line::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: #000;
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.45s ease;
}

/* サブ見出し・本文 */
.top-service__subheading {
  font-weight: 700;
  margin: 0 0 8px;
}

.top-service__body-copy p {
  margin: 0 0 6px;
  line-height: 1.8;
  font-size: 14px;
}

/* ==============================
   ホバー演出
   ============================== */

/* ホバー時に見出し・矢印・画像を半調（少しフェード） */
.top-service__heading,
.top-service__arrow-icon,
.top-service__image img {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.top-service__link:hover .top-service__heading,
.top-service__link:hover .top-service__arrow-icon,
.top-service__link:hover .top-service__image img {
  opacity: 0.5;
}

/* ホバー時：ラインの黒レイヤーが左→右へ伸びる */
.top-service__link:hover .top-service__line::after {
  transform: scaleX(1);
}

/* Service 全体がホバー可能な場合 */
.top-service__link {
  cursor: pointer;
  display: block;
}

/* ホバー時 */
.top-service__link:hover {
  cursor: pointer;
}

/* 子要素もホバー時は全て pointer */
.top-service__link * {
  cursor: inherit;
}

/* ==============================
   SP レイアウト
   ============================== */

@media (max-width: 767px) {
  .top-service {
    padding: 90px 20px 44px;
  }

  .top-service__content {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }

  .top-service__text-col,
  .top-service__image {
    flex: 0 0 auto;
    width: 100%;
  }

  .top-service__heading {
    font-size: 24px;
  }
}


/* ==============================
   Products セクション全体
   ============================== */

.top-products {
  padding: 50px var(--pfi-site-padding-x) 50px;
  background-color: rgba(255, 255, 255, 1);
  color: #000;
}

.top-products__inner {
  max-width: 1446px;
  margin: 0 auto;
}

/* クリック領域をまとめる */
.top-products__link {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

/* 子要素も pointer に揃える */
.top-products__link * {
  cursor: inherit;
}

/* 左右 2 カラム */
.top-products__content {
  display: flex;
  gap: 0;
  align-items: flex-start;
}

/* 左：テキストカラム（画像の手前まで） */
.top-products__text-col {
  flex: 0 0 40%;
}

/* 右：画像カラム */
.top-products__image {
  flex: 0 0 60%;
  margin: 0;
}

.top-products__image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* 見出し + 矢印 */
.top-products__head-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.top-products__heading {
  font-size: 32px;
  line-height: 1.2;
  font-weight: 700;
}

/* 右側の矢印アイコン（Service と同じ画像） */
.top-products__arrow {
  width: 25px;
  height: 25px;
  display: inline-block;
  background-image: url('/wp-content/themes/kawajiun-pfi/assets/img/right_arrow_bk.webp');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: opacity 0.3s ease;
}

/* 見出しの下のライン（テキストカラム幅いっぱい → 画像の手前まで） */
.top-products__line {
  position: relative;
  margin-top: 10px;
  margin-bottom: 24px;
  height: 2px;
  background-color: #d4d4d4;
  overflow: hidden;
}

/* 黒が左から右へ走るレイヤー */
.top-products__line::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: #000;
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.45s ease;
}

/* サブ見出し・本文 */
.top-products__subheading {
  font-weight: 700;
  margin: 0 0 8px;
}

.top-products__body-copy p {
  margin: 0 0 6px;
  line-height: 1.8;
  font-size: 14px;
}

/* ==============================
   ホバー演出
   ============================== */

/* transition をまとめて定義 */
.top-products__heading,
.top-products__arrow,
.top-products__image img {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* ホバー時に見出し・矢印・画像を半調（少しフェード） */
.top-products__link:hover .top-products__heading,
.top-products__link:hover .top-products__arrow,
.top-products__link:hover .top-products__image img {
  opacity: 0.5;
}

/* ホバー時：ラインの黒レイヤーが左→右へ伸びる */
.top-products__link:hover .top-products__line::after {
  transform: scaleX(1);
}

/* ==============================
   SP レイアウト
   ============================== */

@media (max-width: 767px) {
  .top-products {
    padding: 0px 20px 44px;
  }

  .top-products__content {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }

  .top-products__text-col,
  .top-products__image {
    flex: 0 0 auto;
    width: 100%;
  }

  .top-products__heading {
    font-size: 24px;
  }
}

/* ==============================
   Works セクション全体
   ============================== */
.top-works {
  padding: 50px var(--pfi-site-padding-x) 50px;
  background-color: rgba(255, 255, 255, 1);
  color: #000;
}

.top-works__inner {
  max-width: 1446px;
  margin: 0 auto;
}

/* クリック領域をまとめる */
.top-works__link {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

/* 子要素も pointer に揃える */
.top-works__link * {
  cursor: inherit;
}

.top-works__content {
  display: flex;
  gap: 0px;
  align-items: flex-start;
}

.top-works__text-col {
  flex: 0 0 40%;
}

.top-works__image {
  flex: 0 0 60%;
  margin: 0;
}

.top-works__image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* 見出し + 矢印 */
.top-works__head-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.top-works__heading {
  font-size: 32px;
  line-height: 1.2;
  font-weight: 700;
}

/* 矢印アイコン（Service / Products と同じ） */
.top-works__arrow {
  width: 25px;
  height: 25px;
  display: inline-block;
  background-image: url('/wp-content/themes/kawajiun-pfi/assets/img/right_arrow_bk.webp');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: opacity 0.3s ease;
}

/* 見出しの下のライン（内側いっぱい） */
.top-works__line {
  position: relative;
  margin-top: 10px;
  margin-bottom: 24px;
  height: 2px;
  background-color: #d4d4d4;
  overflow: hidden;
}

/* 黒が左から右へ走るレイヤー（Service / Products と同じ） */
.top-works__line::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: #000;
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.45s ease;
}

/* サブ見出し・本文 */
.top-works__subheading {
  font-weight: 700;
  margin: 0 0 8px;
}

.top-works__body-copy p {
  margin: 0 0 6px;
  line-height: 1.8;
  font-size: 14px;
}

/* ==============================
   ホバー演出
   ============================== */

.top-works__heading,
.top-works__arrow,
.top-works__image img {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* ホバー時：見出し・矢印・画像を半調 */
.top-works__link:hover .top-works__heading,
.top-works__link:hover .top-works__arrow,
.top-works__link:hover .top-works__image img {
  opacity: 0.5;
}

/* ホバー時：ラインの黒レイヤーが左→右へ伸びる */
.top-works__link:hover .top-works__line::after {
  transform: scaleX(1);
}

/* ==============================
   SP レイアウト
   ============================== */

@media (max-width: 767px) {
  .top-works {
    padding: 0px 20px 44px;
  }

  .top-works__content {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }

  .top-works__text-col,
  .top-works__image {
    flex: 0 0 auto;
    width: 100%;
  }

  .top-works__heading {
    font-size: 24px;
  }
}


/* 横帯のラッパー */
.top-feature .horizontal_scroll,
.top-works__slider .horizontal_scroll {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-x: clip;
}

/* ビューポート */
.top-feature .feature-viewport,
.top-works__slider .feature-viewport {
  box-sizing: content-box;
  width: 100%;
  margin: 0 auto;
  margin-bottom: 20px;
  overflow: visible;
  position: relative;

  --cols: 3;
  --gap: 24px;
  --feature-card-list-w: calc(
    (100% - (var(--gap) * (var(--cols) - 1))) / var(--cols)
  );

  padding-inline: 0 !important;
}

/* ブレークポイントごとの cols / gap */
@media (max-width: 1418px) {
  .top-feature .feature-viewport,
  .top-works__slider .feature-viewport {
    --cols: 2;
    --gap: 20px;
    overflow-x: hidden;
    overflow-y: visible;
  }
}

@media (min-width: 1025px) and (max-width: 1446px) {
  .top-feature__slider-wrap.no-side-padding {
    width: auto;
    margin-left: 0;
    margin-right: 0;
  }

  .top-feature .feature-viewport {
    --cols: 3;
    --gap: 24px;
    overflow-x: hidden;
    overflow-y: visible;
  }

  .top-feature .feature-track {
    padding-inline: 0;
  }
}

@media (max-width: 1024px) {
  .top-feature .feature-viewport,
  .top-works__slider .feature-viewport {
    --cols: 2;
    --gap: 20px;
  }
}

@media (max-width: 767px) {
  .top-feature .feature-viewport,
  .top-works__slider .feature-viewport {
    --cols: 1;
    --gap: 16px;
  }
}

/* トラック */
.top-feature .feature-track,
.top-works__slider .feature-track {
  display: flex;
  gap: var(--gap);
  will-change: transform;
  transition: none !important;
}

/* カード1枚分 */
.top-feature .feature-card-list,
.top-works__slider .feature-card-list {
  flex: 0 0 var(--feature-card-list-w);
  min-width: 0;
}

/* カード中身（Feature と同じ） */
.top-feature .img-wrap,
.top-works__slider .img-wrap {
  position: relative;
  width: 100%;
}

.top-feature .feature-img,
.top-works__slider .feature-img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  background: #e5e5e5;
}

.top-feature .meta,
.top-works__slider .meta {
  margin-top: 14px;
  color: #222;
}

.top-feature .meta .feature-ttl,
.top-works__slider .meta .feature-ttl {
  font-weight: 800;
  line-height: 1.4;
  /* font-size: 1.4rem; */
  font-size: 14px;
}

.top-feature .meta .feature-desc,
.top-works__slider .meta .feature-desc {
  margin-top: 8px;
  font-weight: 400;
  /* font-size: 1.4rem; */
  font-size: 14px;
  line-height: 1.8;
  color: #333;
}

@media (max-width: 767px) {
  .top-feature .meta .feature-ttl,
  .top-works__slider .meta .feature-ttl {
    font-size: 13px;
  }

  .top-feature .meta .feature-desc,
  .top-works__slider .meta .feature-desc {
    font-size: 13px;
  }
}

/* UI（矢印・ドット） */
.top-feature .feature-ui,
.top-works__slider .feature-ui {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.top-feature .feature-ui-footer,
.top-works__slider .feature-ui-footer {
  width: 100%;
  position: absolute;
  left: 0;
  right: 0;
  bottom: -28px;
  text-align: center;
}

.top-feature .feature-dots,
.top-works__slider .feature-dots {
  height: 22.5px;
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
  pointer-events: auto;
  line-height: 1.0;
}

.top-feature .feature-dots .dot,
.top-works__slider .feature-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

.top-feature .feature-dots .dot:hover,
.top-works__slider .feature-dots .dot:hover {
  background: rgba(0, 0, 0, 0.45);
}

.top-feature .feature-dots .dot.is-active,
.top-works__slider .feature-dots .dot.is-active {
  background: rgba(0, 0, 0, 0.85);
}

/* 矢印 */
.top-feature .feature-arrow,
.top-works__slider .feature-arrow {
  display: none; /* 必要なら display: grid; などに変更 */
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  color: #fff;
  font-size: 70px;
  pointer-events: auto;
  cursor: pointer;
}

.top-feature .feature-arrow.is-prev,
.top-works__slider .feature-arrow.is-prev {
  left: 0;
}

.top-feature .feature-arrow.is-next,
.top-works__slider .feature-arrow.is-next {
  right: 0;
}

@media (max-width: 767px) {
  .top-feature .feature-arrow,
  .top-works__slider .feature-arrow {
    display: none;
  }
}

/* ドラッグ時のカーソル */
.top-feature .feature-viewport .img-wrap,
.top-works__slider .feature-viewport .img-wrap {
  cursor: grab;
}

.top-feature .feature-viewport.is-dragging .img-wrap,
.top-works__slider .feature-viewport.is-dragging .img-wrap {
  cursor: grabbing;
}

/* Works セクション内での余白 */
.top-works__slider {
  margin-top: 40px;
}

/* ==============================
   News セクション全体
   ============================== */

.top-news {
  padding: 0px var(--pfi-site-padding-x) 50px;
  background-color: #fff;
  color: #000;
}

.top-news__inner {
  max-width: 1446px;
  margin: 0 auto;
}

/* 見出し行 */
.top-news__head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.top-news__link {
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.top-news__link * {
  cursor: inherit;
}

.top-news__head-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.top-news__heading {
  font-size: 32px;
  line-height: 1.2;
  font-weight: 700;
}

.top-news__arrow {
  width: 25px;
  height: 25px;
  display: inline-block;
  background-image: url('/wp-content/themes/kawajiun-pfi/assets/img/right_arrow_bk.webp');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* hover 時ちょっと薄く */
.top-news__link:hover .top-news__heading,
.top-news__link:hover .top-news__arrow {
  opacity: 0.5;
}

/* 本体のボックス */
.top-news__list-wrap {
  background-color: #f7f7f7;
  padding: 10px 10px;
}

/* リストのレイアウト */
.top-news__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.top-news__item + .top-news__item {
  /* border-top: 1px solid #e3e3e3; */
}

/* 行全体をクリック可能に */
.top-news__item-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  color: inherit;
  text-decoration: none;
}

/* 日付とタイトル */
.top-news__date {
  /* min-width: 120px; */
  font-size: 15px;
}

.top-news__title {
  font-size: 15px;
  line-height: 1.8;
}

.top-news__item-link:hover {
  opacity: 0.6;
}

.top-news__item-link:hover .top-news__title {
  opacity: 0.6;
}

/* ==============================
   SP レイアウト
   ============================== */

@media (max-width: 767px) {
  .top-news {
    padding: 20px 20px 44px;
  }

  .top-news__head {
    align-items: flex-start;
  }

  .top-news__heading {
    font-size: 24px;
  }

  .top-news__list-wrap {
    padding: 10px 10px;
  }

  .top-news__item-link {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 10px 0;
  }

  .top-news__date {
    min-width: auto;
    font-size: 12px;
  }

  .top-news__title {
    font-size: 12px;
  }

  .top-news__head {
    margin-bottom: 20px;
  }
}

/* ==============================
   Showroom & Office セクション全体
   ============================== */

.top-showroom {
  padding: 50px var(--pfi-site-padding-x) 240px;
  background-color: rgba(255, 255, 255, 1);
  color: #000;
}

.top-showroom__inner {
  max-width: 1446px;
  margin: 0 auto;
}

/* クリック領域をまとめる */
.top-showroom__link {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

/* 子要素も pointer に揃える */
.top-showroom__link * {
  cursor: inherit;
}

/* 左右 2 カラム */
.top-showroom__content {
  display: flex;
  gap: 0;
  align-items: flex-start;
}

/* 左：テキストカラム（画像の手前まで） */
.top-showroom__text-col {
  flex: 0 0 40%;
}

/* 右：画像カラム */
.top-showroom__image {
  flex: 0 0 60%;
  margin: 0;
}

.top-showroom__image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* 見出し + 矢印 */
.top-showroom__head-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.top-showroom__heading {
  font-size: 32px;
  line-height: 1.2;
  font-weight: 700;
}

/* 右側の矢印アイコン（他セクションと共通） */
.top-showroom__arrow {
  width: 25px;
  height: 25px;
  display: inline-block;
  background-image: url('/wp-content/themes/kawajiun-pfi/assets/img/right_arrow_bk.webp');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: opacity 0.3s ease;
}

/* 見出しの下のライン（テキストカラム幅いっぱい → 画像の手前まで） */
.top-showroom__line {
  position: relative;
  margin-top: 10px;
  margin-bottom: 24px;
  height: 2px;
  background-color: #d4d4d4;
  overflow: hidden;
}

/* 黒が左から右へ走るレイヤー */
.top-showroom__line::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: #000;
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.45s ease;
}

/* サブ見出し・本文 */
.top-showroom__subheading {
  font-weight: 700;
  margin: 0 0 8px;
}

.top-showroom__body-copy p {
  margin: 0 0 6px;
  line-height: 1.8;
  font-size: 14px; /* 他セクションと揃え */
}

/* ==============================
   ホバー演出
   ============================== */

/* transition をまとめて定義 */
.top-showroom__heading,
.top-showroom__arrow,
.top-showroom__image img {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* ホバー時に見出し・矢印・画像を半調（少しフェード） */
.top-showroom__link:hover .top-showroom__heading,
.top-showroom__link:hover .top-showroom__arrow,
.top-showroom__link:hover .top-showroom__image img {
  opacity: 0.5;
}

/* ホバー時：ラインの黒レイヤーが左→右へ伸びる */
.top-showroom__link:hover .top-showroom__line::after {
  transform: scaleX(1);
}

/* ==============================
   SP レイアウト
   ============================== */

@media (max-width: 767px) {
  .top-showroom {
    padding: 0px 20px 80px;
  }

  .top-showroom__content {
    flex-direction: column;
    gap: 24px;
  }

  .top-showroom__text-col,
  .top-showroom__image {
    flex: 0 0 auto;
  }

  .top-showroom__heading {
    font-size: 24px;
  }
}

/* PC デフォルト */
.pfi-hero-wrapper {
  /* background-image: var(--hero-bg-pc);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat; */
}

/* SP 幅では SP 画像に切り替え、画像の下端を画面下に揃える */
@media (max-width: 767px) {
  .pfi-hero-wrapper {
    /* 画像切り替え */
    /* background-image: var(--hero-bg-sp) !important;
    background-size: auto 100% !important;
    background-position: center bottom !important;
    background-repeat: no-repeat !important;
    min-height: 100vh; */
  }

  .site-main {
    max-width: none !important;
    padding: 0px 20px;
    margin: 0 auto;
  }

  .pfi-header {
    padding: 0px 20px;
  }
}






/* =========================
   Serviceページ Heroセクション
========================= */

:root{
  --service-hero-offset: 100px;
}

/* site-main の左右paddingが効いている前提で「ヒーローだけ」全幅にする */
.service-page .service-hero{
  position: relative;
  min-height: 100vh;
  background-image: var(--service-hero-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  isolation: isolate;

  /* ① 左右の余白（site-mainのpadding）を打ち消して全幅にする */
  margin-left: calc(var(--pfi-site-padding-x, 24px) * -1);
  margin-right: calc(var(--pfi-site-padding-x, 24px) * -1);

  /* ① ついでに幅もウィンドウに合わせておく（環境によって効く） */
  width: calc(100% + (var(--pfi-site-padding-x, 24px) * 2));
}

.service-page .service-hero__preload{
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  left: 0;
  top: 0;
}

/* 暗めオーバーレイ */
.service-page .service-hero::before{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.35);
  pointer-events: none;
}

/* ヒーローの内側 */
.service-page .service-hero__inner{
  max-width: 1446px;
  margin: 0 auto;
  min-height: 100vh;
  /* display: block; */
  /* align-items: center; */

  /* ② ヒーロー自体は上端から開始するので、ここでは上paddingを持たせない */
  /* padding: 0 var(--pfi-site-padding-x, 24px); */
  box-sizing: border-box;

  position: relative;
  left: -3px;
}

/* テキストだけヘッダー分だけ下げる（ヘッダーの後ろにヒーローを被せるため） */
.service-page .service-hero__content{
  max-width: 560px;
  color: #fff;
  padding-top: var(--pfi-header-height, 100px);
  position: absolute;
  left: 0;
  top: calc(var(--service-hero-offset));
  padding: 0px 0px;
}

@media (max-width: 1446px){
  .service-page .service-hero__content{
    padding: 0 50px !important;
  }
}




.service-page .service-hero__title{
  margin: 0;
  font-weight: 300;
  font-size: clamp(56px, 7vw, 110px);
  line-height: 1.0;
  letter-spacing: .02em;
}

.service-page .service-hero__subtitle{
  margin: 16px 0 0;
  font-size: 14px;
  letter-spacing: .12em;
  position: relative;
  left: 3px;
}

.service-page .service-hero__text{
  margin-top: 56px;
  font-size: 16px;
  line-height: 2.2;
  letter-spacing: .08em;
}

.service-page .service-hero__text p{ 
  margin: 0;
  position: relative;
  left: 2px;
}

/* SP */
@media (max-width: 768px){
  .service-page .service-hero{
    /* SPは左右余白が20px想定ならそれに合わせて打ち消す */
    margin-left: -20px;
    margin-right: -20px;
    width: calc(100% + 40px);
  }

  .service-page .service-hero__inner{
    padding: 0 20px;
    align-items: flex-start;
  }

  .service-page .service-hero__content{
    padding-top: calc(var(--pfi-header-height, 100px) + 12vh);
    padding: 0 20px !important;
  }

  .service-page .service-hero__text{
    margin-top: 32px;
    font-size: 14px;
    line-height: 2.1;
  }
}

/* Serviceページだけ：ヘッダー分の押し下げを無効化（site-main側に入ってる想定） */
.service-page#primary.site-main{
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* ヒーローをヘッダー高さ分だけ上に引っ張って、ヘッダーの裏に潜らせる */
.service-page .service-hero{
  margin-top: calc(var(--pfi-header-height, 100px) * -1);
}



/* =========================
   Serviceページ Contents(timeline)セクション
========================= */

.service-page .service-contents{
  background: #fff;
  padding: 140px 0 160px;
}

.service-page .service-contents__inner{
  max-width: 1446px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

.service-page .service-contents__list{
  /* ===== PC用：座標管理 ===== */
  --list-pad-left: 75px;
  --timeline-x: 44px;
  --dot-size: 12px;
  --dot-top: 30px;

  --mask-w: 3px;

  list-style: none;
  margin: 0;
  padding: 0;

  padding-left: var(--list-pad-left);
  position: relative;
  /* left: -22.5px; */
  left: -57.5px;
}

/* 縦ライン（ul基準） */
.service-page .service-contents__list::before{
  content: "";
  position: absolute;
  left: calc(var(--timeline-x) - 0.5px);
  top: 0;
  bottom: 0;
  width: 1px;
  background: #000;
  opacity: 0.9;
}

.service-page .service-contents__item{
  position: relative;
  padding: 22px 0 26px;
}

/* 黒丸（li基準） */
.service-page .service-contents__item::before{
  content: "";
  position: absolute;

  /* ul基準(縦線X) → li基準へ変換し、中心が縦線に合う */
  left: calc(var(--timeline-x) - var(--list-pad-left) - (var(--dot-size) / 2));
  top: var(--dot-top);

  width: var(--dot-size);
  height: var(--dot-size);
  border-radius: 50%;
  background: #000;

  /* 縦線・マスクより前面に */
  z-index: 2;
}

/* ==============================
   Feature Archive
   ============================== */

.feature-archive {
  background: #fff;
}

.feature-archive__inner {
  max-width: 1446px;
  margin: 0 auto;
}

.feature-archive__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 40px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.feature-archive__heading {
  min-width: 0;
}

.feature-archive__title {
  margin: 0;
  font-size: clamp(56px, 7vw, 110px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #6b6b6b;
  position: relative;
  left: -5px;
}

.feature-archive__lead {
  margin: 8px 0 0;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  color: #666;
}

.feature-archive-search {
  width: min(100%, 340px);
  margin-left: auto;
}

.feature-archive-search__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.feature-archive-search__field {
  position: relative;
}

.feature-archive-search__field input {
  width: 100%;
  height: 48px;
  border: 1px solid #9f9f9f;
  background: #fff;
  padding: 0 16px 0 54px;
  font-size: 14px;
  color: #111;
  outline: none;
}

.feature-archive-search__field input::placeholder {
  color: #b2b2b2;
}

.feature-archive-search__field input:focus {
  border-color: #111;
}

.feature-archive-search__button {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 48px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.feature-archive-search__icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #666;
  border-radius: 50%;
  position: relative;
}

.feature-archive-search__icon::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 2px;
  background: #666;
  right: -6px;
  bottom: -2px;
  transform: rotate(45deg);
}

.feature-archive__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-archive__item {
  min-width: 0;
}

.feature-archive__link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.feature-archive .feature-card,
.feature-archive .feature-archive__link,
.feature-archive .feature-archive__card--static {
  display: block;
}

.feature-archive .img-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.feature-archive .feature-img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: #e5e5e5;
  transition: transform 0.35s ease;
}

.feature-archive .meta {
  margin-top: 14px;
  color: #222;
}

.feature-archive .meta .feature-ttl {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.5;
}

.feature-archive .meta .feature-desc {
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8;
  color: #333;
}

.feature-archive__link:hover .feature-img,
.feature-archive__link:focus-visible .feature-img {
  transform: scale(1.03);
}

.feature-archive__link:focus-visible {
  outline: 2px solid #111;
  outline-offset: 6px;
}

.feature-archive .pagination {
  margin-top: 56px;
}

.feature-archive .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.feature-archive .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #111;
  color: #111;
  text-decoration: none;
  font-size: 14px;
  line-height: 1;
}

.feature-archive .page-numbers.current {
  background: #111;
  color: #fff;
}

.feature-archive__empty {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
}

@media (max-width: 1024px) {
  .feature-archive__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .feature-archive__header {
    align-items: stretch;
    gap: 20px;
    margin-bottom: 32px;
  }

  .feature-archive-search {
    width: 100%;
  }

  .feature-archive-search__field input {
    height: 44px;
    padding-left: 48px;
  }

  .feature-archive__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .feature-archive .meta .feature-ttl {
    font-size: 16px;
  }

  .feature-archive .meta .feature-desc {
    font-size: 13px;
  }

  .feature-archive .page-numbers {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
  }
}

/* ▼ 縦線の上はみ出しを消す（最初の◯の“上端”より上をマスク） */
.service-page .service-contents__item:first-child::after{
  content: "";
  position: absolute;

  /* マスクも縦線と同じXに乗せる（li基準へ変換） */
  left: calc(var(--timeline-x) - var(--list-pad-left) - (var(--mask-w) / 2));
  top: 0;

  width: var(--mask-w);

  /* ◯の上端まで隠す（中心までにしない＝食い込み防止） */
  height: var(--dot-top);

  background: #fff;
  z-index: 1;
}

/* ▼ 縦線の下はみ出しを消す（最後の◯の“下端”より下をマスク） */
.service-page .service-contents__item:last-child::after{
  content: "";
  position: absolute;

  left: calc(var(--timeline-x) - var(--list-pad-left) - (var(--mask-w) / 2));

  /* ◯の下端から下を隠す */
  top: calc(var(--dot-top) + var(--dot-size));
  bottom: 0;

  width: var(--mask-w);
  background: #fff;
  z-index: 1;
}

.service-page .service-contents__lead{
  margin: 0;
  font-size: 16px;
  letter-spacing: .06em;
  line-height: 2.0;
  color: #000;
  font-weight: 600;
}

.service-page .service-contents__desc{
  margin: 8px 0 0;
  font-size: 15px;
  letter-spacing: .06em;
  line-height: 1.85;
  color: #000;
}

/* SP */
@media (max-width: 768px){
  .service-page .service-contents{
    padding: 20px 0 60px;
  }

  .service-page .service-contents__inner{
    padding: 0 20px;
  }

  .service-page .service-contents__list{
    --list-pad-left: 42px;
    --timeline-x: 18px;
    --dot-top: 27px;
    --mask-w: 3px;

    padding-left: var(--list-pad-left);
    left: -36.5px !important;
  }

  .service-page .service-contents__item{
    position: relative;
    padding: 20px 0 20px;
  }

  /* SPでも同じ計算で丸・マスクが縦線に一致 */
  .service-page .service-contents__item::before{
    left: calc(var(--timeline-x) - var(--list-pad-left) - (var(--dot-size) / 2));
    top: var(--dot-top);
  }

  .service-page .service-contents__lead{
    font-size: 13px;
    letter-spacing: .0em;
  }

  .service-page .service-contents__desc{
    font-size: 10px;
    letter-spacing: -.06em;
  }
}


/* =========================
   Serviceページ Workflowセクション
========================= */

:root{
  --workflow-pane-x: -280px; /* マイナスで左（テキスト側）へ寄る */
}

.service-page .service-workflow{
  background:#fff;
  padding: 140px 0 160px;
}

.service-page .service-workflow__inner{
  max-width: 1446px;
  margin: 0 auto;
  /* padding: 0 15px; */
  padding: 0px 0px;
  box-sizing: border-box;
}

.service-page .service-workflow__title{
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 18px;
  letter-spacing: .02em;
}

.workflow-subtitle{
  /* margin-left: 20px; */
  font-size: 16px;
  font-weight: 600;
}

.service-page .service-workflow__lead{
  margin-bottom: 520px;
  line-height: 1.85;
  letter-spacing: .06em;
  color:#111;
  font-size: 15px;
  margin-top: 10px;
}

/* 2カラム */
.service-page .service-workflow__grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* 左 */
.service-page .service-workflow__left{
  position: relative;
  z-index: 2;
}

.service-page .workflow-steps{
  list-style:none;
  margin: 0;
  padding-top: 30px;
}

.service-page .workflow-step{
  padding: 22px 0 26px;
  min-height: var(--workflow-pane-h, 64vh);
  opacity: .4;
  transition: opacity .35s ease;
}
.service-page .workflow-step.is-active{ opacity: 1; }

.service-page .workflow-step__num{
  margin: 0 0 6px;
  font-size: 30px;
  letter-spacing: .08em;
  font-weight: 600;
  color: #808180;
}

.service-page .workflow-step__title{
  margin: 0 0 10px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: .04em;
}

.service-page .workflow-step__text{
  margin: 0;
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: .06em;
  font-size: 15px;
}

/* 右（stickyの親） */
.service-page .service-workflow__right{
  position: relative;
  z-index: 1;
  overflow: visible;
}

.service-page .workflow-right-guard{
  position: relative;
  min-height: calc(var(--workflow-pane-h, 64vh) * 4);
}

/* sticky本体 */
.service-page .workflow-pane{
  position: sticky;
  top: calc(var(--pfi-header-height, 100px) + 40px);
  height: var(--workflow-pane-h, 64vh);
  max-height: 720px;
  overflow: hidden;

  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease;
}

.service-page .workflow-pane.is-visible{
  opacity: 1;
  visibility: visible;
}

.pfi-storage-shelf__section--cta {
  padding: 112px 0 122px;
  background: #efeee6;
}

.pfi-storage-shelf__cta-box {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.pfi-storage-shelf__cta-text {
  margin: 0;
  font-size: 18px;
  line-height: 1.8;
  letter-spacing: 0.03em;
  color: #111;
}

.pfi-storage-shelf__button--cta {
  width: min(440px, 100%);
  min-width: 0;
  min-height: 84px;
  margin-top: 42px;
  border-radius: 14px;
  border-color: #3a3a3a;
  background: #3a3a3a;
  font-size: 24px;
  letter-spacing: 0.04em;
  font-family: inherit;
  text-transform: none;
}
.service-page .workflow-pane.is-hidden  { opacity: 0; }

/* セクション外にいる時は強制的に消す */
.service-page .workflow-pane.is-outside{
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.service-page .workflow-pane__img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
  opacity: 1;
  transition: opacity .25s ease;
  background: transparent !important;
  display: block;
}

/* SP：右を消して、各ステップ直下の画像を表示 */
.service-page .workflow-step__img-sp{
  display:none;
  margin-top: 12px;
  aspect-ratio: 3 / 2;
  overflow:hidden;
}
.service-page .workflow-step__img-sp img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* sticky死亡原因の予防（親側に transform/overflow があると死ぬ） */
.service-page .service-workflow,
.service-page .service-workflow *{
  filter: none;
}
.service-page .service-workflow{
  overflow: visible;
}

/* タブレット以下 */
@media (max-width: 1024px){
  .service-page .service-workflow__grid{
    grid-template-columns: 1fr;
  }
  .service-page .service-workflow__right{
    display:none;
  }
  .service-page .workflow-step{
    min-height: 0;
    opacity: 1;
  }
  .service-page .workflow-step__img-sp{
    display:block;
  }
}

/* =========================
   Workflow テキスト間隔調整
========================= */

/* PCのみ：右画像と同期させる */
@media (min-width: 1025px) {
  /* 01〜03は余白を足す（間隔を稼ぐ） */
  .service-page .workflow-step {
    min-height: calc(var(--workflow-pane-h) + 20px);
    padding-top: 40px;
    padding-bottom: 40px;
    box-sizing: border-box;
  }

  /* ★最後(04)だけは余白分を足さない＝終端ズレ防止 */
  .service-page .workflow-step:last-child {
    min-height: var(--workflow-pane-h);
  }
}

@media (max-width: 767px){

  .service-page .service-workflow__title{
    font-size: 26px;
    margin: 0px 0 4px;
  }

  .service-page .service-workflow{
    padding: 0px 0 160px;
  }

  .service-page .service-workflow__lead{
    margin-bottom: 40px !important;
    font-size: 14px !important;
  }

  .service-page .workflow-steps{
    padding-top: 0px;
  }

  .service-page .workflow-step{
    padding: 0 0 40px;
  }

  .service-page .workflow-step__title{
    font-size: 26px;
  }

  .service-page .workflow-step__text{
    font-size: 14px;
  }

}


/* =========================
   商品一覧ページ Products Archiveページ
========================= */

.pfi-products-archive{
  padding: 20px 0 80px;
}

.pfi-products-archive__inner{
  /* width: min(1200px, 100%); */
  max-width: 1446px;
  margin: 0 auto;

  /* PCは現状のまま（必要なら復活OK）
     padding: 0 24px;
  */
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 56px;
}

/* =========================
   SP 固定UI（デフォルトは非表示）
========================= */
.pfi-products-sp-searchbar{
  display:none;
}
.pfi-products-cat-fab{
  display:none;
}
.pfi-products-cat-drawer{
  display:none;
}

/* side */
.pfi-products-side-search{
  margin: 0 0 24px;
}
.pfi-products-side-search__label{
  display:block;
  font-size: 12px;
  color:#777;
  margin: 0 0 8px;
}
.pfi-products-side-search__field{
  position: relative;
  display:flex;
  align-items:center;
  border:1px solid #000;
  border-radius: 4px;
  overflow:hidden;
  background:#fff;

  /* 安定させたい場合は高さ固定（必要なければ削除OK） */
  height: 36px;
}
.pfi-products-side-search__field input{
  width:100%;
  height:100%;
  border:0;
  outline:0;
  padding: 0 40px 0 12px;
  font-size: 14px;
}
.pfi-products-side-search__field select{
  width:100%;
  height:100%;
  border:0;
  outline:0;
  padding: 0 12px;
  font-size: 14px;
  background: transparent;
}
.pfi-products-side-search__field button{
  position:absolute;
  right:0;
  top:0;
  bottom:0;
  width:40px;
  border:0;
  background:transparent;
  cursor:pointer;
}
.pfi-products-side-search__icon{
  display:inline-block;
  width:16px;
  height:16px;
  border:2px solid #333;
  border-radius:50%;
  position:relative;
}
.pfi-products-side-search__icon::after{
  content:"";
  position:absolute;
  width:8px;
  height:2px;
  background:#333;
  right:-6px;
  bottom:-2px;
  transform:rotate(45deg);
}

.pfi-products-side-title{
  font-size: 20px;
  letter-spacing: .06em;
  margin: 0 0 16px;
}
.pfi-products-side-nav__list{
  list-style:none;
  margin:0;
  padding:0;
}
.pfi-products-side-nav__group{
  margin: 0 0 18px;
}
.pfi-products-side-nav__group-link{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  color:#111;
  font-size: 16px;
}
.pfi-products-side-nav__group-icon{
  width:40px;
  height:40px;
  display:grid;
  place-items:center;
  flex: 0 0 40px;
}
.pfi-products-side-nav__group-icon img{
  width:40px;
  height:40px;
  object-fit:contain;
  display:block;
}
.pfi-products-side-nav__children{
  list-style:none;
  margin: 10px 0 0 68px;
  padding:0;
}
.pfi-products-side-nav__children li{
  margin: 10px 0;
}
.pfi-products-side-nav__children a{
  color:#111;
  text-decoration:none;
  font-size: 14px;
}
.pfi-products-side-nav__children a:hover{
  text-decoration: underline;
}

/* head */
.pfi-products-archive-head__title{
  font-size: 22px;
  margin: 2px 0 50px;
}
.pfi-products-archive-head__meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin: 0 0 10px;
}
.pfi-products-archive-head__count{
  margin:0;
  font-size: 12px;
  color:#000;
  /* margin-bottom: 30px; */
}
.pfi-products-archive-head__sort{
  display:flex;
  align-items:center;
  gap:0px;
}
.pfi-products-sort__btn{
  border:1px solid #a5a5a5;
  background:#e5e4e4;
  border-radius: 3px;
  padding: 0px 10px;
  font-size: 12px;
}
.pfi-products-sort__links{
  display: flex;
  align-items: center;
  font-size: 12px;
  gap: 0; /* ← 重要：gapは使わない */
}

.pfi-products-sort__links span{
  margin-left: 10px;
}

.pfi-products-sort__links a{
  position: relative; /* ← 重要 */
  padding: 0 5px;
  color: #111;
  text-decoration: none;
}

.pfi-products-sort__links a:hover{
  text-decoration: underline;
}

/* 念のため初期化 */
.pfi-products-sort__links a::after{
  content: none;
}

/* 昇順 | 降順 */
.pfi-products-sort__links a:nth-child(2)::after{
  content: "|";
  position: absolute;
  right: -2px;
  top: 50%;
  transform: translateY(-50%);
  color: #111;
}

/* 最近 | 以前 */
.pfi-products-sort__links a:nth-child(5)::after{
  content: "|";
  position: absolute;
  right: -2px;
  top: 50%;
  transform: translateY(-50%);
  color: #111;
}



/* grid */
.pfi-products-grid{
  display:grid;

  /* まずは3列まで（PC） */
  grid-template-columns: repeat(6, minmax(0, 1fr));

  gap: 26px 22px;
}

.pfi-products-card{
  /* border-radius: 3px; */
  background:#fff;
}
.pfi-products-card__link{
  display:block;
  position:relative;
  text-decoration:none;
  color:#000;
  /* padding: 14px 14px 12px; */
}
.pfi-products-card__badge_new{
  position:absolute;
  top:0px;
  left:0px;
  z-index:2;
  background:#b1453b;
  color:#fff;
  font-size: 12px;
  padding: 2px 6px;
  /* border-radius: 2px; */
}
.pfi-products-card__badge_discontinued{
  position:absolute;
  top:0px;
  left:0px;
  z-index:2;
  background:#6E6E6E;
  color:#fff;
  font-size: 12px;
  padding: 2px 6px;
  /* border-radius: 2px; */
}
.pfi-products-card__thumb{
  border: 1px dotted #d9d9d9;
  aspect-ratio: 1 / 1;
  display:grid;
  place-items:center;
  padding: 10px;
  /* margin: 8px 0 10px; */
}
.pfi-products-card__thumb img{
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display:block;
}
.pfi-products-card__name{
  font-size: 12px;
  margin: 10px 0px 0px 0px;
  text-align:center;
  letter-spacing: .04em;
}

.no-search-text{
  white-space: nowrap;
  font-size: 12px;
}





/* =========================
   responsive（SP指示対応）
========================= */
@media (max-width: 768px){

  .pfi-products-archive-head__meta{
    display: block !important;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    margin: 0 0 10px;
  }

  .pfi-products-sort__btn{
    border:1px solid #a5a5a5;
    background:#e5e4e4;
    border-radius: 3px;
    padding: 0px 1px;
    font-size: 12px;
  }

  .pfi-products-archive-head__title{
    font-size: 22px;
    margin: 7px 0 0;
  }

  /* 左カラムはSPでは非表示（カテゴリはドロワーに出す） */
  .pfi-products-archive__side{
    display:none;
  }

  .pfi-products-archive__inner{
    grid-template-columns: 1fr;
    gap: 24px;

    /* SPは左右余白を合わせる（必要なら20px） */
    padding: 0;
  }

  /* 商品一覧は2列 */
  .pfi-products-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* =========================
     SP固定：検索窓 上部固定
  ========================= */
  .pfi-products-sp-searchbar{
    display:block;
    position: sticky;
    top: 100px;
    z-index: 60;
    background: #fff;
    /* padding: 12px 20px 10px; */
    border-bottom: 1px solid #e6e6e6;
  }
  .pfi-products-sp-searchbar .pfi-products-side-search{
    margin: 0;
  }
  .pfi-products-sp-searchbar .pfi-products-side-search + .pfi-products-side-search{
    margin-top: 0;
    padding-top: 20px;
  }
  .pfi-products-sp-searchbar .pfi-products-side-search__label{
    /* 指示書だとラベル無しに見えるので非表示（残したいなら削除OK） */
    display:none;
  }

  /* =========================
     SP固定：カテゴリーボタン 右下固定
  ========================= */
  .pfi-products-cat-fab{
    display:grid;
    place-items:center;
    position: fixed;
    right: 20px;
    bottom: 16px;
    width: 40px;
    height: 40px;

    /* 添付の見た目 */
    background:#000;
    border: 0;
    z-index: 70;
    border-radius: 0;
    cursor:pointer;

    /* SVGの線色を白に */
    color:#fff;
  }

  .pfi-products-cat-fab__svg{
    display:block;
  }

  /* .pfi-products-cat-fab__icon{
    width: 18px;
    height: 18px;
    display:block;
    background:
      linear-gradient(#000,#000) 0 0/6px 6px no-repeat,
      linear-gradient(#000,#000) 50% 0/6px 6px no-repeat,
      linear-gradient(#000,#000) 100% 0/6px 6px no-repeat,
      linear-gradient(#000,#000) 0 50%/6px 6px no-repeat,
      linear-gradient(#000,#000) 50% 50%/6px 6px no-repeat,
      linear-gradient(#000,#000) 100% 50%/6px 6px no-repeat,
      linear-gradient(#000,#000) 0 100%/6px 6px no-repeat,
      linear-gradient(#000,#000) 50% 100%/6px 6px no-repeat,
      linear-gradient(#000,#000) 100% 100%/6px 6px no-repeat;
  } */

  /* =========================
     SP：カテゴリドロワー（全画面）
  ========================= */
  .pfi-products-cat-drawer{
    display:block;
    position: fixed;
    inset: 0;
    z-index: 80;
    pointer-events: none;
    opacity: 0;
    transition: opacity .2s ease;
  }

  .pfi-products-cat-drawer__panel{
    position:absolute;
    inset: 0;
    background:#fff;
    transform: translateY(10px);
    transition: transform .2s ease;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  .pfi-products-cat-drawer__body{
    padding: 24px 20px 40px;
  }

  .pfi-products-cat-drawer__title{
    font-size: 16px;
    margin: 0 0 18px;
    letter-spacing: .06em;
  }

  .pfi-products-cat-drawer__close{
    position: absolute;
    right: 12px;
    top: 12px;
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    cursor: pointer;
  }
  .pfi-products-cat-drawer__close::before,
  .pfi-products-cat-drawer__close::after{
    content:"";
    position:absolute;
    left: 50%;
    top: 50%;
    width: 28px;
    height: 2px;
    background:#000;
    transform-origin:center;
  }
  .pfi-products-cat-drawer__close::before{
    transform: translate(-50%,-50%) rotate(25deg);
  }
  .pfi-products-cat-drawer__close::after{
    transform: translate(-50%,-50%) rotate(-25deg);
  }

  /* OPEN状態（JSで body に付与） */
  body.is-products-cat-open .pfi-products-cat-drawer{
    pointer-events: auto;
    opacity: 1;
  }
  body.is-products-cat-open .pfi-products-cat-drawer__panel{
    transform: translateY(0);
  }

  /* OPEN中はスクロールを止める */
  body.is-products-cat-open{
    overflow:hidden;
    height:100%;
  }

  .pfi-products-archive-head__count{
    margin-bottom: 30px;
  }

}

@media (max-width: 560px){
  /* 商品一覧は2列のまま（指示画像に合わせる）
     1列にしたいなら下を戻してください
     .pfi-products-grid{ grid-template-columns: 1fr; }
  */
}

/* =========================
   Pagination（ハードコード）
========================= */
.pfi-products-pagination{
  margin: 26px 0 0;
}

.pfi-products-pagination__list{
  list-style:none;
  margin: 0;
  padding: 0;
  display:flex;
  justify-content:center;
  align-items:center;
  gap: 10px;
  font-size: 12px;
  color:#111;
}

/* 数字の縦線っぽい区切り */
.pfi-products-pagination__item{
  position: relative;
  padding: 0 8px;
}

.pfi-products-pagination__item:not(:last-child)::after{
  content:"";
  position:absolute;
  right: -5px;
  top: 50%;
  width: 1px;
  height: 12px;
  background:#111;
  transform: translateY(-50%);
  opacity: .65;
}

/* リンク */
.pfi-products-pagination__link{
  color:#111;
  text-decoration:none;
}

.pfi-products-pagination__link:hover{
  text-decoration: underline;
}

/* current */
.pfi-products-pagination__item.is-current .pfi-products-pagination__link{
  /* font-weight: 700; */
  text-decoration: underline;
}

/* PREV / NEXT の三角 */
.pfi-products-pagination__item.is-prev .pfi-products-pagination__link,
.pfi-products-pagination__item.is-next .pfi-products-pagination__link{
  display:inline-flex;
  align-items:center;
  gap: 6px;
  /* font-weight: 600; */
}

.pfi-products-pagination__item.is-prev .pfi-products-pagination__link::before{
  content:"";
  width:0;
  height:0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-right: 6px solid #111;
  display:inline-block;
}

.pfi-products-pagination__item.is-next .pfi-products-pagination__link::after{
  content:"";
  width:0;
  height:0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid #111;
  display:inline-block;
}

@media (max-width: 768px){

  .pfi-products-pagination__list{
    gap: 5px;
  }

  .pfi-products-pagination__item{
    padding: 0 5px;
  }
}








/* ===== variants thumbnailの見た目を必ず揃える ===== */
.pfi-product-single__swatches{
  display:flex;
  flex-wrap:wrap;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pfi-product-single__swatch button{
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.pfi-product-single__swatchThumb{
  width: 80px;   /* お好みで調整 */
  height: 80px;  /* お好みで調整 */
  display: block;
}

.pfi-product-single__swatchThumb img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain; /* ここが重要：大きさがバラついても枠内に収める */
}

.pfi-product-single__swatchText{
  font-size: 14px;
  line-height: 1.2;
  color: #111;
}

@media (max-width: 768px){
  .pfi-product-single__swatchThumb{
    height: 100%;
  }
}






/* =========================================
   Variants（thumbnail）
   SP：4列固定 + 画像がデカくならない（強制上書き）
========================================= */
@media (max-width: 480px) {

  /* まず「flex」を確実に殺して grid を強制 */
  .pfi-product-single__swatches{
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 10px 10px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    align-items: start;
  }

  .pfi-product-single__swatch{
    width: auto !important;
    margin: 0 !important;
  }

  .pfi-product-single__swatch button{
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 0 !important;
  }

  /*
    列幅いっぱいにすると「椅子画像」が大きく見えやすいので、
    サムネは「上限サイズ」を設ける（ここがスクショ改善ポイント）
  */
  .pfi-product-single__swatchThumb{
    width: min(64px, 100%) !important;  /* ★ 上限64px（好みで56〜72） */
    aspect-ratio: 1 / 1 !important;
    display: block !important;
  }

  .pfi-product-single__swatchThumb img{
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: contain !important;
  }

  .pfi-product-single__swatchText{
    font-size: 11px !important;
    line-height: 1.2 !important;
    text-align: center !important;
    word-break: break-word;
  }
}

/* =========================================
   Variants：active state（画像のみ黒枠）
========================================= */

/* 枠を当てるために基準を作る */
.pfi-product-single__swatchThumb{
  position: relative;
  display: block;
}

/* active時：画像だけ囲う */
.pfi-product-single__swatch.is-active
.pfi-product-single__swatchThumb::after{
  content: '';
  position: absolute;
  inset: -4px;              /* 枠の外側余白（調整可） */
  border: 2px solid #000;
  pointer-events: none;
}

/* hover（PCのみ・薄め） */
/* @media (hover: hover) {
  .pfi-product-single__swatch:hover
  .pfi-product-single__swatchThumb::after{
    content: '';
    position: absolute;
    inset: -4px;
    border: 1px solid #999;
    pointer-events: none;
  }
} */


/* =========================================
   Variants：textButton レイアウト
========================================= */

/* 横並び・折り返し */
.pfi-product-single__buttons{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px; /* ボタン間 */
}

/* li は中身に合わせる */
.pfi-product-single__buttonItem{
  margin: 0;
  padding: 0;
  min-width: 0;
}

/* ボタン本体（非アクティブ） */
.pfi-product-single__buttonItem button{
  appearance: none;
  display: block;
  width: 100%;
  border: 1px solid #d9d9d9;
  background: #f2f2f2;
  color: #111;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  padding: 18px 16px;
  min-width: 0;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  cursor: pointer;
  border-radius: 0;
}

/* hover */
@media (hover:hover){
  .pfi-product-single__buttonItem button:hover{
    opacity: .85;
  }
}

/* アクティブ（黒枠） */
.pfi-product-single__buttonItem.is-active button{
  border: 2px solid #000;
  background: #f2f2f2; /* 背景はそのまま */
}

/* スマホ：2列にしたい場合（画像の雰囲気に近い） */
@media (max-width: 480px){
  .pfi-product-single__buttons{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .pfi-product-single__buttonItem button{
    padding: 16px 14px;
    font-size: 13px;
  }
}















/* =========================================
   Product Single (single-products.php) CSS
   指示書レイアウト用：HTMLは前回の pfi-product-single 構造前提
   ※既存レイアウトは崩さない方針で、クラスを閉じて書いています
========================================= */

/* 右カラム内のベース */
.pfi-product-single{
  width:100%;
}

.pfi-product-single__top{
  display:grid;
  grid-template-columns: 1fr 50%; /* 右パネル幅は指示書寄せ */
  gap: 44px;
  align-items:start;
}

/* =========================================
   左：ギャラリー
========================================= */
.pfi-product-single__gallery{
  min-width: 0;
}

.pfi-product-single__mainImage{
  position: relative;
  width:100%;
  background:#fff;
  border:1px solid #e6e6e6;
  border-radius: 2px;
  overflow:hidden;
}

.pfi-product-single__slides{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  width:100%;
  transform: translateX(0);
  transition: transform .35s ease;
}

.pfi-product-single__slide{
  flex: 0 0 100%;
  padding: 10px;
}

.pfi-product-single__mainImage img{
  width:100%;
  height:auto;
  display:block;
}

/* サムネ行：サムネの上に矢印を“被せる” */
.pfi-product-single__thumbRow{
  margin-top: 14px;
  position: relative;
  display:flex;
  align-items:center;

  /* ここは余白を取らない（矢印がサムネに被さるため） */
  padding: 0;
}

/* サムネ：左寄せ（画像の幅に収まる/はみ出す場合はスクロール） */
.pfi-product-single__thumbs{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  gap: 5px;
  align-items:center;
  justify-content: flex-start;

  width: 100%;
  min-width: 0;

  /* 必要なら横スクロール（PCでも枚数が増えた時用） */
  overflow: hidden;
}

/* クリックされるサムネのサイズ */
.pfi-product-single__thumb{
  width: 70px;
  height: 70px;
  border: 2px solid transparent;
  /* border-radius: 2px; */
  overflow:hidden;
  background:#fff;
  flex: 0 0 auto;
}

.pfi-product-single__thumb button{
  width:100%;
  height:100%;
  padding:5px;
  border:0;
  background:transparent;
  cursor:pointer;
  display:block;
}

.pfi-product-single__thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.pfi-product-single__thumb.is-active{
  border-color:#111;
}

/* 矢印：サムネ列の上に“半透明四角背景”で被せる（添付の見た目寄せ） */
.pfi-product-single__thumbArrow{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  width: 30px;
  height: 40px;

  border: 0;
  background: rgba(255,255,255,.65); /* 半透明の白 */
  border-radius: 0; /* 四角 */
  cursor:pointer;
  z-index: 3;

  display: grid;
  place-items: center;
}

/* 位置：サムネ列の左右端に被せる（外に出さない） */
.pfi-product-single__thumbArrow.is-prev{
  left: 0;
  padding-left: 10px;
}

.pfi-product-single__thumbArrow.is-next{
  right: 0;
  padding-right: 10px;
}

/* 青い矢印 */
.pfi-product-single__thumbArrow::before{
  content:"";
  width: 16px;
  height: 16px;
  border-left: 2px solid #000;
  border-bottom: 2px solid #000;
  transform: rotate(45deg);
  opacity: .95;
}

.pfi-product-single__thumbArrow.is-next::before{
  transform: rotate(-135deg);
}

.pfi-product-single__thumbArrow:hover::before{
  opacity: 1;
}

.pfi-product-single__thumbArrow:focus{
  outline: none;
}

.pfi-product-single__thumbArrow:focus-visible{
  outline: 2px solid rgba(43, 102, 255, .35);
  outline-offset: 2px;
}

/* スマホ：サムネは横スクロールにして矢印は被せたまま */
@media (max-width: 480px){
  .pfi-product-single__thumbs{
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* =========================================
   右：商品情報パネル
========================================= */
.pfi-product-single__panel{
  min-width: 0;
  color:#111;
  font-size: 12px;
  line-height: 1.65;
}

.pfi-product-single__code{
  font-size: 11px;
  letter-spacing: .02em;
  color:#333;
  margin-bottom: 6px;
}

.pfi-product-single__name{
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 6px;
  letter-spacing: .02em;
}

.pfi-product-single__desc{
  margin: 0 0 14px;
  color:#333;
}

/* 見出しラベル */
.pfi-product-single__block{
  margin-top: 14px;
}

.pfi-product-single__label{
  font-weight: 400;
  margin-top: 10px;
  margin-bottom: 8px;
  color:#111;
}

/* スウォッチ */
.pfi-product-single__swatches{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  grid-template-columns: repeat(5, 0fr);
  gap: 10px;
  text-align: center;
}

.pfi-product-single__swatch button{
  width:100%;
  border:0;
  background:transparent;
  padding:0;
  cursor:pointer;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap: 6px;
}

.pfi-product-single__swatchChip{
  width: 70px;
  height: 70px;
  border: 1px solid #d9d9d9;
  border-radius: 2px;
  display:block;
  background:#eee;
}

.pfi-product-single__swatchText{
  font-size: 10px;
  color:#333;
  margin: 0 auto;
}

/* 色（指示書っぽい雰囲気） */
.pfi-product-single__swatchChip.is-lightbrown{ background:#b78655; }
.pfi-product-single__swatchChip.is-cafebrown{ background:#5b3a22; }
.pfi-product-single__swatchChip.is-silver{ background:#cfcfcf; }
.pfi-product-single__swatchChip.is-black{ background:#1c1c1c; }

/* Spec（dt:dd） */
.pfi-product-single__spec{
  margin:0;
}

.pfi-product-single__specRow{
  display:flex;
  gap: 4px;
}

.pfi-product-single__specRow dt{
  /* width: 44px; */
  font-weight: 600;
  color:#111;
}

.pfi-product-single__specRow dd{
  margin:0;
  color:#333;
}

/* Download */
.pfi-product-single__downloads{
  list-style:none;
  padding:0;
  margin: 6px 0 0;
  display:flex;
  gap: 60px;
  align-items:center;
}

/* Price (Upholstery rank A-F) */
.pfi-product-single__block--price{
  margin-top: 14px;
}

/* Price tables (ACF: price_tables) */
.pfi-product-single__priceTables{
  margin-top: 40px;
}

.pfi-product-single__block--priceTable{
  margin-top: 14px;
}

.pfi-product-single__priceTableNote{
  margin: 6px 0 0;
  color:#333;
  font-size: 12px;
}

.pfi-product-single__priceTableWrap{
  margin: 10px 0 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
  position: relative;
}

.pfi-product-single__priceTableWrap.is-scrollable{
  overflow-x: scroll;
  padding-bottom: 14px;
}

/* 「スクロールが必要な表」だけ、常時見えるバー（macOSのオーバーレイ対策） */
.pfi-product-single__priceTableWrap.is-scrollable::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 10px;
  background: #eee;
  border-radius: 999px;
  pointer-events: none;
}

.pfi-product-single__priceTableWrap.is-scrollable::before{
  content: "";
  position: absolute;
  left: var(--pfi-hscroll-thumb-x, 0px);
  bottom: 0;
  height: 10px;
  width: var(--pfi-hscroll-thumb-w, 40px);
  background: #d9d9d9;
  border-radius: 999px;
  pointer-events: none;
}

/* Price table cell alignment (ACF per-cell settings) */
.pfi-product-single__priceCell.is-va-top{ vertical-align: top; }
.pfi-product-single__priceCell.is-va-middle{ vertical-align: middle; }
.pfi-product-single__priceCell.is-va-bottom{ vertical-align: bottom; }

.pfi-product-single__priceCell.is-ta-left{ text-align: left; }
.pfi-product-single__priceCell.is-ta-center{ text-align: center; }
.pfi-product-single__priceCell.is-ta-right{ text-align: right; }

/* このテーブル専用：横スクロールがあるとき分かるように */
.pfi-product-single__priceTableWrap::-webkit-scrollbar{
  height: 10px;
}

.pfi-product-single__priceTableWrap::-webkit-scrollbar-track{
  background: #eee;
}

.pfi-product-single__priceTableWrap::-webkit-scrollbar-thumb{
  background: #d9d9d9;
  border-radius: 999px;
}

.pfi-product-single__priceTableWrap{
  scrollbar-color: #d9d9d9 #eee;
  scrollbar-width: thin;
}

.pfi-product-single__priceTable{
  width: max-content;
  /* min-width: 100%; */
  min-width:990px;
  border-collapse: collapse;
}

.pfi-product-single__priceTable th,
.pfi-product-single__priceTable td{
  border: 1px solid #d9d9d9;
  padding: 10px 12px;
  vertical-align: top;
  color:#111;
  font-size: 12px;
}

.pfi-product-single__priceTable th{
  font-weight: 400;
  white-space: nowrap;
}

.pfi-product-single__priceGrid{
  margin: 6px 0 0;
  display:flex;
  gap: 60px;
  align-items:flex-start;
}

.pfi-product-single__pricePrimary{
  margin: 2px 0 10px;
  color:#111;
  white-space: nowrap;
}

.pfi-product-single__priceCol{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap: 10px;
}

.pfi-product-single__priceRow{
  display:flex;
  gap: 12px;
  align-items:baseline;
  color:#111;
}

.pfi-product-single__priceRank{
  font-weight: 600;
  min-width: 12px;
}

.pfi-product-single__priceValue{
  white-space: nowrap;
}

.pfi-product-single__download a{
  text-decoration:none;
  color:#111;
  display:flex;
  flex-direction:column;
  align-items:center;
  /* gap: 6px; */
}

.pfi-product-single__dlIcon{
  width: 34px;
  height: 34px;
  border: 1px solid #d9d9d9;
  border-radius: 999px;
  position:relative;
  background:#fff;
}

.pfi-product-single__dlIcon::before{
  /* シンプルな「下向き矢印」アイコン */
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  width: 10px;
  height: 10px;
  border-left: 2px solid #666;
  border-bottom: 2px solid #666;
  transform: translate(-50%, -60%) rotate(-45deg);
}

.pfi-product-single__dlIcon::after{
  content:"";
  position:absolute;
  left:50%;
  top:62%;
  width: 14px;
  height: 2px;
  background:#666;
  transform: translateX(-50%);
  opacity:.9;
}

.pfi-product-single__dlText{
  font-size: 10px;
  letter-spacing:.02em;
}

.pfi-product-single__note{
  margin: 10px 0 0;
  color:#666;
  font-size: 11px;
}

/* Contact ボタン */
.pfi-product-single__cta{
  margin-top: 18px;
  width: 280px;
  float: right;
}

.pfi-product-single__contactBtn{
  display:block;
  text-align:center;
  text-decoration:none;
  color:#111;
  background:#d9d7d4; /* 指示書の薄グレー */
  border: 1px solid #bdb9b4;
  border-radius: 999px;
  padding: 14px 16px;
  font-size: 13px;
  letter-spacing:.02em;
}

.pfi-product-single__contactBtn:hover{
  opacity:.85;
}

.pfi-product-single__noteLink{
 text-decoration: underline;
}

.pfi-product-single__priceTableRemark {
  font-size: 12px;
  margin-top: 20px;
}

.pfi-product-single__bodyContent{
  margin-top: 44px;
}

.pfi-product-single__bodyContent > * + *{
  margin-top: 24px;
}

.pfi-product-single__bodyContent img{
  max-width: 100%;
  height: auto;
}

.pfi-product-single__bodyContent .wp-block-image{
  margin: 0;
}

.pfi-product-single__bodyContent p{
  line-height: 1.8;
}


/* =========================================
   中段：詳細画像2枚＋バリエーション
========================================= */
.pfi-product-single__middle{
  margin-top: 44px;
}

.pfi-product-single__middleGrid{
  /* display:grid; */
  /* grid-template-columns: 1fr 1fr; */
  /* gap: 40px; */
  /* align-items:start; */
}

.pfi-product-single__middleItem{
  margin:0;
  background:#fff;
  border: 0;
}

.pfi-product-single__middleItem img{
  width:80%;
  height:auto;
  display:block;
}

/* バリエーション */
.pfi-product-single__variation{
  margin-top: 26px;
}

.pfi-product-single__variationTitle{
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 10px;
}

.pfi-product-single__variationList{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  gap: 18px;
  align-items:flex-start;
  flex-wrap:wrap;
}

.pfi-product-single__variationList figure{
  margin:0;
}

.pfi-product-single__variationList img{
  width: 84px;
  height: 64px;
  object-fit:cover;
  display:block;
  border:1px solid #e6e6e6;
}

.pfi-product-single__variationList figcaption{
  margin-top: 6px;
  font-size: 10px;
  color:#333;
  text-align:center;
}




/* =========================================
   下段：関連（Sofa / PREV NEXT / ALL）
========================================= */
.pfi-product-single__related{
  margin-top: 54px;
  /* border-top: 1px solid #e6e6e6; */
  padding-top: 18px;

  /* flex配下での横はみ出し対策 */
  min-width: 0;
}

.pfi-product-single__relatedBody{
  /* flex配下での横はみ出し対策 */
  min-width: 0;
}

/* タイトル */
.pfi-product-single__relatedTitle{
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 15px;
  padding: 15px 0px;
  border-bottom: 1px solid #e6e6e6;
}

/* ===== スライダー本体 ===== */

/* viewport（表示領域） */
.pfi-product-single__relatedGrid{
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;

  /* ★ここで確実にクリップ */
  overflow: hidden !important;

  position: relative;

  /* ★ flex配下での横はみ出し対策 */
  min-width: 0;
}

/* track（横に並ぶ列） */
.pfi-product-single__relatedTrack{
  display: flex;
  gap: 18px;

  transform: translate3d(0,0,0);
  transition: transform .35s ease;
  will-change: transform;

  /* ★ flex配下での横はみ出し対策 */
  min-width: 0;
}

/* card */
.pfi-product-single__relatedCard{
  display: block;
  flex: 0 0 auto;
  box-sizing: border-box;

  border:1px solid #e6e6e6;
  background:#fff;
  text-decoration:none;
  padding: 10px;
}

.pfi-product-single__relatedCard img{
  width:100%;
  height:auto;
  display:block;
  max-width: 100%;
}

.pfi-product-single__related--options .pfi-product-single__relatedGrid{
  overflow: visible !important;
}

.pfi-product-single__related--options .pfi-product-single__relatedTrack{
  flex-wrap: wrap;
  transform: none !important;
  transition: none;
  will-change: auto;
}

.pfi-product-single__related--options .pfi-product-single__relatedCard{
  flex: 0 0 calc((100% - 18px * 4) / 5);
  max-width: calc((100% - 18px * 4) / 5);
}

/* ===== PREV / NEXT ===== */
.pfi-product-single__relatedNav{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top: 40px;
  margin-bottom: 10px;
}

.pfi-product-single__relatedPrev,
.pfi-product-single__relatedNext{
  font-size: 11px;
  color:#666;
  text-decoration:none;
  cursor:pointer;
}

.pfi-product-single__relatedPrev:hover,
.pfi-product-single__relatedNext:hover{
  text-decoration: underline;
}

/* ===== ALL ボタン ===== */
.pfi-product-single__relatedAllWrap{
  margin-top: 40px;
  display:flex;
  justify-content:center;
}

.pfi-product-single__relatedAllBtn{
  display:inline-block;
  min-width: 300px;
  text-align:center;
  text-decoration:none;
  color:#111;
  background:#fff;
  border: 1px solid #bdb9b4;
  border-radius: 999px;
  padding: 12px 16px;
  font-size: 12px;
}

.pfi-product-single__relatedAllBtn:hover{
  opacity:.85;
}

.pfi-products-archive__main{
  min-width: 0;
}

/* =========================================
   レスポンシブ
========================================= */
@media (max-width: 1024px){
  .pfi-product-single__top{
    grid-template-columns: 1fr 300px;
    gap: 28px;
  }
  .pfi-product-single__relatedGrid{
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 834px){
  .pfi-product-single__top{
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .pfi-product-single__panel{
    max-width: 520px;
  }

  .pfi-product-single__middleGrid{
    /* grid-template-columns: 1fr; */
    /* gap: 22px; */
  }

  .pfi-product-single__relatedGrid{
    grid-template-columns: repeat(2, 1fr);
  }

  .pfi-product-single__related--options .pfi-product-single__relatedCard{
    flex-basis: calc((100% - 18px) / 2);
    max-width: calc((100% - 18px) / 2);
  }

  .pfi-product-single__cta{
    width: 50%;
    float: none;
    margin: auto;
    margin-top: 20px;
  }

  .pfi-product-single__swatchChip{
    width: 60px;
    height: 60px;
    border: 1px solid #d9d9d9;
    border-radius: 2px;
    display:block;
    background:#eee;
  }

}

/* SP：サムネ横スクロール対応（崩れ防止） */
@media (max-width: 480px){
  .pfi-product-single__thumbRow{
    align-items:flex-start;
  }
  .pfi-product-single__thumbs{
    overflow:auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .pfi-product-single__thumbs::-webkit-scrollbar {
    display: none;
  }
  .pfi-product-single__relatedTrack{
    gap: 12px; /* SPは少し詰める（お好みで） */
  }

  .pfi-product-single__related--options .pfi-product-single__relatedCard{
    flex-basis: calc((100% - 12px) / 2);
    max-width: calc((100% - 12px) / 2);
  }
}

/* =========================
   News Archive
========================= */

.pfi-news-archive{
  max-width: 1446px;
  margin: 0 auto;
  /* padding: 40px 24px 60px; */
}

.pfi-news-archive__head{
  margin-bottom: 60px;
}

.pfi-news-archive__title{
  font-size: clamp(56px, 7vw, 110px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #6b6b6b; /* 薄いグレー */
  margin: 0;
  position: relative;
  left: -5px;
}

.pfi-news-archive__sub{
  margin: 8px 0 0;
  font-size: 14px;
  color: #333;
}

.pfi-news-item{
  border-bottom: 1px solid #2d2d2d;
  padding: 30px 0;
}

.pfi-news-item:first-child{
  padding: 0px 0px 30px 0px;
}

.pfi-news-item:last-child{
  border-bottom: 1px solid #2d2d2d;
}
.pfi-news-item:last-child{
  border-bottom: none;
}

.pfi-news-item__row{
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 18px;
  align-items: center;
}

.pfi-news-item__date{
  font-size: 14px;
  color: #111;
  white-space: nowrap;
}

.pfi-news-item__main{
  display: flex;
  align-items: baseline;
  /* justify-content: space-between; */
  gap: 16px;
}

.pfi-news-item__title{
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  color: #111;
}

.pfi-news-item__titleLink{
  color: inherit;
  text-decoration: none;
}

.pfi-news-item__titleLink:hover{
  text-decoration: underline;
}

.pfi-news-item__works{
  font-size: 14px;
  font-weight: 700;
  color: #111;
  text-decoration: none;
  white-space: nowrap;
}

.pfi-news-item__works:hover{
  text-decoration: underline;
}

/* お知らせ本文（下に段落表示） */
.pfi-news-item__body{
  margin-top: 14px;
  padding-left: calc(140px + 18px); /* 日付カラム分だけインデント */
  font-size: 14px;
  line-height: 1.9;
  color: #111;
}

.pfi-news-item__body a{
  color: #111;
  text-decoration: underline;
}

/* ページャ（下部 左PREV 右NEXT） */
.pfi-news-pager{
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* margin-top: 26px; */
  padding-top: 60px;
  padding-bottom: 30px;
  /* border-top: 1px solid #2d2d2d; */
}

.pfi-news-pager__prev a,
.pfi-news-pager__next a{
  color: #111;
  text-decoration: none;
  font-weight: 700;
}

.pfi-news-pager__prev a:hover,
.pfi-news-pager__next a:hover{
  /* text-decoration: underline; */
  opacity: 0.7;
}

/* SP */
@media (max-width: 640px){
  .pfi-news-archive{
    /* padding: 28px 20px 50px; */
  }
  .pfi-news-item__row{
    display: block;
    grid-template-columns: 120px 1fr;
    gap: 12px;
  }
  .pfi-news-item__body{
    padding-left: 0;
  }
  .pfi-news-item__main{
    /* flex-direction: column; */
    align-items: flex-start;
    gap: 6px;
    margin-top: 10px;
  }

  .pfi-news-item{
    padding: 10px 0px 30px 0;
  }

  .pfi-news-item:first-child{
    padding: 0px 0px 30px 0px;
  }

  .pfi-news-item:last-child{
    border-bottom: 1px solid #2d2d2d;
  }

  .pfi-news-item__titleLink{
    font-size: 14px;
  }

  .pfi-news-pager__prev a,
  .pfi-news-pager__next a{
    /* color: #111; */
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
  }

}


/* =========================
   News Single
========================= */

.pfi-news-single{
  max-width: 1446px;
  margin: 0 auto;
  /* padding: 36px 24px 70px; */
}

.pfi-news-single__headTitle{
  font-size: clamp(56px, 7vw, 110px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #6b6b6b;
  margin: 0;
  position: relative;
  left: -5px;
}

.pfi-news-single__title{
  font-size: 20px;
  font-weight: 500;
  margin: 60px 0 10px;
}

.pfi-news-single__date{
  display: block;
  font-size: 12px;
  color: #8a8a8a;
  margin-bottom: 60px;
}

.pfi-news-single__content{
  font-size: 14px;
  line-height: 2;
  color: #111;
}

.pfi-news-single__content a{
  color: #111;
  text-decoration: underline;
}

.pfi-news-single__content a:hover{
  opacity: .7;
}

.pfi-news-single__rule{
  margin: 48px 0 0;
  border: none;
  border-top: 1px solid #d9d9d9;
}

.pfi-news-single__pager{
  display: grid;
  grid-template-columns: 1fr minmax(240px, 420px) 1fr;
  align-items: center;
  gap: 16px;
  padding-top: 60px;
}

.pfi-news-single__pagerLink{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #111;
  font-weight: 500;
}

.pfi-news-single__pagerLink:hover{
  opacity: .7;
}

.pfi-news-single__pagerText{
  letter-spacing: .06em;
}

.pfi-news-single__arrow{
  font-size: 20px;
  line-height: 1;
}

.pfi-news-single__pagerSide--prev{
  justify-self: start;
}

.pfi-news-single__pagerSide--next{
  justify-self: end;
}

.pfi-news-single__pagerCenter{
  justify-self: center;
  width: 100%;
}

.pfi-news-single__backBtn{
  display: block;
  width: 100%;
  text-align: center;
  border: 1px solid #cfcfcf;
  padding: 12px 10px;
  text-decoration: none;
  color: #111;
  letter-spacing: .06em;
}

.pfi-news-single__backBtn:hover{
  opacity: .7;
}

.pfi-news-single__pagerLink.is-disabled{
  opacity: .25;
  pointer-events: none;
}

/* SP */
@media (max-width: 640px){
  .pfi-news-single{
    /* padding: 26px 20px 60px; */
  }
  .pfi-news-single__pager{
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "prev next"
      "back back";
    row-gap: 14px;
  }
  .pfi-news-single__pagerSide--prev{ grid-area: prev; }
  .pfi-news-single__pagerSide--next{ grid-area: next; }
  .pfi-news-single__pagerCenter{ grid-area: back; }
}



/* =====================================
   FAQ
===================================== */

.pfi-faq {
  /* 既存の .site-main の padding と合わせる想定 */
  padding: 0;
  max-width: 1446px;
  margin: auto;
}

.pfi-faq__head {
  margin: 0 0 60px;
}

.pfi-faq__title {
  position: relative;
  font-size: clamp(56px, 7vw, 110px);
  line-height: 1;
  font-weight: 700;
  margin: 0;
  color: #5a5a5a;
  left: -5px;
}

.pfi-faq__sub {
  margin: 6px 0 0;
  font-size: 14px;
  color: #333;
}

.pfi-faq__list {
  display: grid;
  gap: 90px; /* Q/A ブロック間の余白 */
}

/* 1アイテム */
.pfi-faq-item {
  border: 0;
}

.pfi-faq-item__row {
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: start;
  column-gap: 14px;
}

.pfi-faq-item__row--q {
  margin-bottom: 10px;
}

.pfi-faq-item__row--a {
  margin-top: 0;
}

/* Q/A 丸 */
.pfi-faq-item__badge {
  width: 34px;
  height: 34px;
  border-radius: 9999px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
}

.pfi-faq-item__badge--q {
  background: #4a4a4a;
  color: #fff;
}

.pfi-faq-item__badge--a {
  background: #fff;
  color: #111;
  border: 2px solid #111;
}

/* テキスト */
.pfi-faq-item__text {
  margin: 0;
  padding-top: 6px; /* 丸とベースライン合わせ */
}

.pfi-faq-item__question {
  font-size: 15px;
  font-weight: 700;
  color: #111;
  margin: 0;
}

.pfi-faq-item__answer {
  font-size: 14px;
  color: #111;
  line-height: 1.9;
}

.pfi-faq-item__answer a {
  text-decoration: underline;
}

/* 空表示 */
.pfi-faq__empty {
  color: #666;
  font-size: 14px;
}



.cls-1 tspan{
  left: -2px !important;
}


/* SP：アイコンをテキスト縦中央へ */
@media (max-width: 767px) {
  .pfi-faq-item__row {
    align-items: center; /* ← start → center */
  }

  /* もともと上にズラしている分をSPでは戻す */
  .pfi-faq-item__text {
    padding-top: 0;
  }

  /* アイコン自体も中央揃えを安定させる（念のため） */
  .pfi-faq-item__icon {
    display: grid;
    place-items: center;
  }
}








/* ==============================
   Showroom
============================== */

.pfi-showroom {
  padding: 0 0 60px;
  max-width: 1446px;
  margin: auto;
}

.pfi-showroom__head {
  max-width: 1446px;
  /* margin: 0 auto 80px; */
  /* padding: 0 20px; */
}

.pfi-showroom__title {
  font-size: clamp(56px, 7vw, 110px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #6b6b6b;
  margin: 0;
  position: relative;
  left: -3px;
}

.pfi-showroom__lead {
  margin-top: 60px;
  line-height: 1.8;
  font-size: 15px;
}

.showroom-lead-1{
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 10px;
}

/* ---- 各ショールーム（PCはflexで“カラム落ち”を完全に防ぐ） ---- */

.pfi-showroom-item {
  position: relative;

  /* ★反転系（rtl / writing-mode 等）をブロック内で確実に無効化 */
  direction: ltr !important;
  writing-mode: horizontal-tb !important;

  display: grid !important;
  grid-template-columns: 28% minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: 2.4%;
  row-gap: 18px;
  align-items: stretch !important;
  max-width: 1446px;
  margin-top: 150px;
}

.pfi-showroom-item__title {
  grid-column: 1;
  grid-row: 1;
  font-size: 22px;
  margin: 0;
  line-height: 1.2;
}

/* 左カラム固定幅 */
.pfi-showroom-item__info {
  grid-column: 1;
  grid-row: 2;

  display: flex;
  flex-direction: column;

  min-width: 0;
  min-height: 0;
}

/* 右カラムは残り幅 */
.pfi-showroom-item__image {
  grid-column: 2;
  grid-row: 1 / span 2;
  min-width: 0;
  min-height: 1px;

  position: relative;
  overflow: hidden; /* トリミング */
}

/* ★右画像はabsoluteで領域いっぱい（上下ピッタリ揃う） */
.pfi-showroom-item__image img {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  display: block;
  object-fit: cover;
  object-position: center;
}

/* 住所 */
.pfi-showroom-item__address {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* WYSIWYG wpautop対策 */
.pfi-showroom-item__address p {
  margin: 0;
}

.pfi-showroom-item__map {
  margin-bottom: 20px;
}

.reservation-guide-text {
  font-size: 12px;
  margin-bottom: 20px;
}

.booking-button {
  display: inline-block;
  height: 36px;
  width: 100%;
  background-color: #000;
  color: #fff !important;
  font-size: 14px;
  font-weight: 200;
  text-align: center;
  text-decoration: none !important;
  line-height: 36px;
  opacity: .5;
  border-radius: 4px;
}

/* ==============================
   Showroom（SP）
   ※SPは「タイトル → 画像 → 住所 → MAP → テキスト → ボタン」
============================== */
@media (max-width: 768px) {

  .pfi-showroom-item {
    display: block !important;
    margin-top: 60px;
    direction: ltr !important; /* 念のため */
    writing-mode: horizontal-tb !important; /* 念のため */
  }

  .pfi-showroom-item__title {
    position: static;
    margin: 0 0 30px;
    font-size: 28px;
    line-height: 1.15;
  }

  /* SPは画像を通常フローで表示 */
  .pfi-showroom-item__image {
    position: static;
    overflow: visible;
    margin: 0 0 16px;
  }

  .pfi-showroom-item__image img {
    position: static;
    inset: auto;
    width: 100%;
    height: auto;
    object-fit: initial;
    object-position: initial;
  }

  .pfi-showroom-item__info {
    width: auto;
    flex: none;
    display: block;
    grid-column: auto;
    grid-row: auto;

    /* SPは通常フローなので order は不要だが念のため中和 */
    order: initial !important;
  }

  .pfi-showroom-item__image {
    order: initial !important;
    grid-column: auto;
    grid-row: auto;
  }

  .pfi-showroom-item__address {
    margin: 0 0 18px;
  }

  .pfi-showroom-item__map iframe {
    width: 100%;
    height: 320px;
  }

  .reservation-guide-text {
    margin-top: 18px;
    margin-bottom: 14px;
  }

  .booking-button {
    height: 44px;
    line-height: 44px;
    border-radius: 6px;
  }

  .pfi-faq-item__text{
    font-size: 12px;
  }

  .pfi-faq-item__question {
    color: #187FC5;
    font-weight: 400;
  }

  .pfi-faq-item__row {
    column-gap: 5px;
  }

  .showroom-lead-1{
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 20px;
  }

  .showroom-lead-2{
    font-size: 14px;
  }
}


/* ==============================
   Storage Shelf (LP) — kawajun.jp/ht/storage-shelf 準拠
============================== */

.storage-shelf-page {
  background: #fff;
  color: #1a1a1a;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
}

.storage-shelf-page .en {
  font-family: "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.06em;
}

.pfi-storage-shelf__container {
  width: min(920px, calc(100% - 80px));
  margin: 0 auto;
}

.pfi-storage-shelf__container--narrow {
  width: min(800px, calc(100% - 80px));
}

.pfi-storage-shelf__section {
  padding: 100px 0;
  background: #fff;
}

.pfi-storage-shelf__section--alt {
  background: #ffffff;
}

.pfi-storage-shelf__section--cta {
  background: #efeee6;
}

.pfi-storage-shelf__heading-block {
  margin-bottom: 40px;
}

.pfi-storage-shelf__heading-block--center {
  text-align: center;
}

.pfi-storage-shelf__label {
  margin: 0 0 22px;
  font-size: 12px;
  letter-spacing: 0.32em;
  color: #1a1a1a;
  text-transform: uppercase;
  font-family: "Helvetica Neue", Arial, sans-serif;
}

.pfi-storage-shelf__section-title {
  margin: 0;
  /* font-size: clamp(24px, 2.6vw, 36px); */
  font-size: 20px;
  line-height: 1.55;
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* ---------- Storage Shelf Header ---------- */
body.page-storage-shelf-header-page {
  --storage-shelf-header-height: 80px;
  --storage-shelf-page-width: 1087px;
  --storage-shelf-page-gutter: 15px;
  background: #fff;
}

#storage-shelf-problems {
  scroll-margin-top: var(--storage-shelf-header-height);
}

.pfi-storage-shelf-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1001;
  background: #7F7F7F;
  /* border-top: 1px solid #4d5552; */
}

body.page-storage-shelf-header-page .storage-shelf-page#primary.site-main {
  padding-top: var(--storage-shelf-header-height) !important;
}

.pfi-storage-shelf-header__inner {
  /* width: min(1510px, calc(100% - 120px)); */
  width: var(--storage-shelf-page-width);
  min-height: 80px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-left: 15px;
  padding-right: 15px;
}

.pfi-storage-shelf-header__brand {
  flex: 0 0 auto;
  opacity: 0;
  transform: translateY(-20px);
  animation: pfi-storage-shelf-logo-fade-in 1s ease forwards;
}

.pfi-storage-shelf-header__brand a {
  display: inline-flex;
  align-items: center;
}

.pfi-storage-shelf-header__brand img {
  display: block;
  width: 233px;
  height: auto;
}

@keyframes pfi-storage-shelf-logo-fade-in {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pfi-storage-shelf-hero-panel-fade-in {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pfi-storage-shelf-header__brand {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .pfi-storage-shelf__hero-panel,
  .pfi-storage-shelf__hero-scroll {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

.pfi-storage-shelf-header__nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.pfi-storage-shelf-header__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* min-width: 140px; */
  /* min-height: 56px; */
  padding: 9px;
  border-radius: 6px;
  background: #3a3a3a;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.04em;
  font-weight: 400;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.pfi-storage-shelf-header__link:hover {
  opacity: 0.82;
}

/* ---------- Hero ---------- */
.storage-shelf-page {
  position: relative;
  z-index: 0;
}

.storage-shelf-page#primary.site-main {
  max-width: none !important;
  width: 100%;
  padding: 0 !important;
  margin: 0;
}

.storage-shelf-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: var(--storage-shelf-hero);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.pfi-storage-shelf__hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  color: #111;
}

.pfi-storage-shelf__hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: clamp(360px, 45vh, 540px);
  /* background: #fff; */
  z-index: 0;
}

.pfi-storage-shelf__hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex: 1;
}

.pfi-storage-shelf__hero-panel {
  background: #fff;
  min-height: auto;
  border-bottom-left-radius: 30px;
  border-bottom-right-radius: 30px;
  padding: 0px 0 50px;
  opacity: 0;
  transform: translateY(-40px);
  animation: pfi-storage-shelf-hero-panel-fade-in 2s ease 1s forwards;
}

.pfi-storage-shelf__hero-copy {
  /* width: min(1446px, calc(100% - 120px)); */
  width: var(--storage-shelf-page-width);
  margin: 0 auto;
  max-width: 100%;
  padding-left: 15px;
  padding-right: 15px;
  padding-top: 120px;
}

.pfi-storage-shelf__hero-lead {
  margin: 0 0 32px;
  font-size: 14px;
  line-height: 1.8;
  letter-spacing: 0.05em;
  font-weight: 400;
  color: #4d4d4d;
}

.pfi-storage-shelf__hero-title {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-left: 48px;
}

.pfi-storage-shelf__hero-title-jp {
  /* font-size: clamp(32px, 3.8vw, 54px); */
  font-size: 34px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  font-weight: 500;
}

.pfi-storage-shelf__hero-title-en {
  /* font-size: clamp(28px, 2.5vw, 40px); */
  font-size: 34px;
  line-height: 0.5;
  letter-spacing: 0.05em;
  font-weight: 500;
  color: #000;
}

.pfi-storage-shelf__hero-scroll {
  position: absolute;
  right: calc(50% - (var(--storage-shelf-page-width) / 2) + var(--storage-shelf-page-gutter));
  bottom: -45px;
  top: 334px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #505050;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  opacity: 0;
  transform: translateY(-20px);
  animation: pfi-storage-shelf-logo-fade-in 2s ease 1s forwards;
}

.pfi-storage-shelf__hero-scroll-line {
  position: relative;
  display: block;
  width: 4px;
  height: 30px;
  background: #fff;
}

.pfi-storage-shelf__hero-scroll-line::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1px;
  width: 25px;
  height: 25px;
  border-right: 4px solid #fff;
  border-bottom: 4px solid #fff;
  transform: translateX(-50%) rotate(45deg);
}

/* ---------- Buttons ---------- */
.pfi-storage-shelf__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  min-height: 46px;
  padding: 16px;
  border: 1px solid #3a3a3a;
  background: #3a3a3a;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 12px;
  letter-spacing: 0.18em;
  font-family: "Helvetica Neue", Arial, sans-serif;
  text-transform: uppercase;
  transition: opacity 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.pfi-storage-shelf__button:hover {
  opacity: 0.78;
}

.pfi-storage-shelf__button--light {
  background: transparent;
  border-color: #fff;
  color: #fff !important;
}

.pfi-storage-shelf__button--light:hover {
  background: rgba(255, 255, 255, 0.12);
}

.pfi-storage-shelf__button--ghost {
  background: rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.85);
  color: #fff !important;
  backdrop-filter: blur(2px);
}

.pfi-storage-shelf__button--ghost:hover {
  background: rgba(255, 255, 255, 0.18);
}

.pfi-storage-shelf__button--wide {
  min-width: 280px;
}

/* ---------- Problems ---------- */
.pfi-storage-shelf__section--problems {
  background: #efeee6;
  padding-top: 60px;
  padding-bottom: 80px;
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
}

.pfi-storage-shelf__section--problems .pfi-storage-shelf__heading-block {
  margin-bottom: 54px;
}

.pfi-storage-shelf__section--problems .pfi-storage-shelf__section-title {
  /* font-size: clamp(24px, 2.4vw, 42px); */
  font-size: 20px;
  line-height: 1.6;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.pfi-storage-shelf__problem-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.pfi-storage-shelf__problem-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pfi-storage-shelf__problem-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #ececec;
  border-radius: 12px;
}

.pfi-storage-shelf__problem-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pfi-storage-shelf__problem-title {
  order: -1;
  margin: 0;
  min-height: 3.3em;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  text-align: left;
  margin: auto;
}

/* ---------- Intro / Solution ---------- */
.pfi-storage-shelf__section--intro {
  padding-bottom: 56px;
}

.pfi-storage-shelf__intro {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.pfi-storage-shelf__intro-copy {
  padding: 0;
  max-width: 1060px;
  margin: 0 auto;
  text-align: center;
}

.pfi-storage-shelf__intro-copy .pfi-storage-shelf__section-title {
  /* font-size: clamp(30px, 3.2vw, 52px); */
  font-size: 26px;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.pfi-storage-shelf__intro-visual {
  width: min(1000px, 100%);
  margin: 0 auto;
}

.pfi-storage-shelf__intro-visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.pfi-storage-shelf__intro-detail {
  width: min(1000px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 98px;
  align-items: center;
}

.pfi-storage-shelf__intro-detail-image img {
  display: block;
  width: 100%;
  aspect-ratio: 1.15 / 0.78;
  object-fit: cover;
  object-position: 28% center;
  border-radius: 8px;
}

.pfi-storage-shelf__intro-detail-copy {
  width: 100%;
}

.pfi-storage-shelf__intro-title {
  margin: 0;
  /* font-size: clamp(24px, 2vw, 32px); */
  font-size: 18px;
  line-height: 1.65;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.pfi-storage-shelf__intro-text {
  margin: 20px 0 0;
  font-size: 14px;
  line-height: 2;
  letter-spacing: 0.03em;
  color: #333;
  text-align: left;
}

/* ---------- Features ---------- */
.pfi-storage-shelf__section--features {
  padding-top: 28px;
}

.pfi-storage-shelf__feature {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 98px;
  align-items: center;
  width: min(1000px, 100%);
  margin: 0 auto;
}

.pfi-storage-shelf__feature + .pfi-storage-shelf__feature {
  margin-top: 92px;
}

  .pfi-storage-shelf__section--cta {
    padding: 100px 0 80px;
  }

  .pfi-storage-shelf__cta-text {
    font-size: 14px;
    line-height: 1.8;
  }

  .pfi-storage-shelf__button--cta {
    /* min-height: 64px; */
    max-width: 300px;
    margin-top: 28px;
    border-radius: 10px;
    font-size: 16px;
  }
.pfi-storage-shelf__feature--text-left .pfi-storage-shelf__feature-copy {
  order: 1;
}

.pfi-storage-shelf__feature--text-left .pfi-storage-shelf__feature-media {
  order: 2;
  justify-self: end;
}

.pfi-storage-shelf__feature--text-right .pfi-storage-shelf__feature-media {
  order: 1;
  justify-self: start;
}

.pfi-storage-shelf__feature--text-right .pfi-storage-shelf__feature-copy {
  order: 2;
}

.pfi-storage-shelf__feature-copy {
  width: 100%;
}

.pfi-storage-shelf__feature-media {
  width: 100%;
}

.pfi-storage-shelf__feature-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.pfi-storage-shelf__feature-title {
  margin: 0;
  /* font-size: clamp(24px, 2vw, 31px); */
  font-size: 18px;
  line-height: 1.6;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.pfi-storage-shelf__feature-text {
  margin: 18px 0 0;
  font-size: 14px;
  line-height: 2;
  letter-spacing: 0.03em;
  color: #333;
}

.pfi-storage-shelf__feature--compare {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
}

.pfi-storage-shelf__feature-compare {
  position: relative;
  width: min(520px, 100%);
  min-height: 300px;
  justify-self: end;
}

.pfi-storage-shelf__feature-compare-before,
.pfi-storage-shelf__feature-compare-after {
  position: absolute;
}

.pfi-storage-shelf__feature-compare-before {
  top: 0;
  left: 0;
  width: 62%;
}

.pfi-storage-shelf__feature-compare-after {
  right: 0;
  bottom: 0;
  width: 40%;
}

.pfi-storage-shelf__feature-compare img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.pfi-storage-shelf__feature-compare-arrow {
  position: absolute;
  left: 52%;
  top: 53%;
  width: 54px;
  height: 1px;
  background: #1a1a1a;
  transform: translate(-50%, -50%);
}

.pfi-storage-shelf__feature-compare-arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -1px;
  width: 12px;
  height: 12px;
  border-top: 1px solid #1a1a1a;
  border-right: 1px solid #1a1a1a;
  transform: translateY(-50%) rotate(45deg);
}

.pfi-storage-shelf__text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  color: #1a1a1a;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.12em;
  padding-bottom: 4px;
  border-bottom: 1px solid #1a1a1a;
}

.pfi-storage-shelf__text-link::after {
  content: "→";
  font-size: 14px;
  line-height: 1;
}

.pfi-storage-shelf__text-link:hover {
  opacity: 0.7;
}

/* ---------- Cases ---------- */
.pfi-storage-shelf__section--cases {
  background: #fff;
}

.pfi-storage-shelf__section--cases .pfi-storage-shelf__heading-block {
  margin-bottom: 40px;
}

.pfi-storage-shelf__case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 46px;
}

.pfi-storage-shelf__case-card {
  background: transparent;
  border: 0;
}

.pfi-storage-shelf__case-link {
  display: block;
  padding: 0;
  color: inherit;
  text-decoration: none !important;
  height: 100%;
  transition: opacity 0.25s ease;
}

/* .pfi-storage-shelf__case-link:hover {
  opacity: 0.78;
} */

.pfi-storage-shelf__case-title {
  margin: 0;
  font-size: 17.5px;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-align: center;
}

.pfi-storage-shelf__case-image {
  margin-top: 18px;
}

.pfi-storage-shelf__case-image img {
  display: block;
  width: 100%;
  aspect-ratio: 1.33 / 1;
  object-fit: cover;
}

.pfi-storage-shelf__case-meta-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin: 16px 0 0;
  font-size: 14px;
  color: #111;
  letter-spacing: 0.03em;
}

.pfi-storage-shelf__case-meta {
  margin: 0;
}

.pfi-storage-shelf__case-meta-divider {
  display: none;
}

.pfi-storage-shelf__case-text {
  margin: 28px 0 0;
  font-size: 14px;
  line-height: 1.95;
  color: #111;
}

/* ---------- Guide ---------- */
.pfi-storage-shelf__section--more {
  background: #efeee6;
}

.pfi-storage-shelf__guide-grid {
  display: grid;
  width: min(960px, 100%);
  margin: 0 auto;
  gap: 58px 64px;
}

.pfi-storage-shelf__guide-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px 0px;
  align-items: center;
}

.pfi-storage-shelf__guide-card:nth-child(2) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pfi-storage-shelf__guide-copy {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  width: 100%;
  text-align: center;
}

.pfi-storage-shelf__guide-thumb {
  display: block;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.pfi-storage-shelf__guide-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pfi-storage-shelf__guide-thumb iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.pfi-storage-shelf__guide-thumb--video {
  aspect-ratio: 16 / 9;
  background: #000;
}

.pfi-storage-shelf__guide-thumb--video::after {
  display: none;
}

.pfi-storage-shelf__guide-thumb--catalog {
  aspect-ratio: 0.71 / 1;
  width: min(230px, 100%);
  justify-self: center;
}

.pfi-storage-shelf__guide-catalog-cover {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #cabfb0 0%, #c3b8a8 100%);
}

.pfi-storage-shelf__guide-catalog-cover::before,
.pfi-storage-shelf__guide-catalog-cover::after,
.pfi-storage-shelf__guide-catalog-mark::before,
.pfi-storage-shelf__guide-catalog-mark::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.42);
}

.pfi-storage-shelf__guide-catalog-cover::before {
  top: 18%;
  left: 25%;
  width: 36%;
  height: 56%;
}

.pfi-storage-shelf__guide-catalog-cover::after {
  top: 10%;
  left: 48%;
  width: 22%;
  height: 18%;
  transform: skewY(35deg);
  transform-origin: bottom left;
}

.pfi-storage-shelf__guide-catalog-mark {
  position: absolute;
  inset: 0;
}

.pfi-storage-shelf__guide-catalog-mark::before {
  top: 48%;
  left: 34%;
  width: 36%;
  height: 12%;
}

.pfi-storage-shelf__guide-catalog-mark::after {
  top: 64%;
  left: 34%;
  width: 36%;
  height: 12%;
}

.pfi-storage-shelf__guide-catalog-title {
  position: absolute;
  top: 8%;
  left: 12%;
  font-size: 15px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.42);
}

.pfi-storage-shelf__guide-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.pfi-storage-shelf__guide-time {
  font-size: 14px;
  color: inherit;
  margin-left: 4px;
}

.pfi-storage-shelf__guide-text {
  display: none;
}

/* ---------- Flow ---------- */
.pfi-storage-shelf__flow-list {
  display: flex;
  flex-direction: column;
  width: min(820px, 100%);
  margin: 0 auto;
  gap: 77px;
  list-style: none;
  padding: 0;
}

.pfi-storage-shelf__flow-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(180px, 210px) minmax(0, 1fr);
  gap: 28px 65px;
  align-items: center;
  padding: 0;
}

.pfi-storage-shelf__flow-item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% + 30px);
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 14px solid #222;
  transform: translateX(-50%);
}

.pfi-storage-shelf__flow-number {
  display: none;
}

.pfi-storage-shelf__flow-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-align: center;
}

.pfi-storage-shelf__flow-thumb {
  display: none;
}

.pfi-storage-shelf__flow-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: #222;
}

/* ---------- FAQ ---------- */
.pfi-storage-shelf__faq-layout {
  display: grid;
  grid-template-columns: minmax(180px, 210px) minmax(0, 1fr);
  gap: 24px 0px;
  align-items: start;
}

.pfi-storage-shelf__faq-heading {
  padding-top: 2px;
}

.pfi-storage-shelf__faq-heading .pfi-storage-shelf__section-title {
  text-align: left;
}

.pfi-storage-shelf__faq-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.pfi-storage-shelf__faq-item {
  border: 0;
}

.pfi-storage-shelf__faq-question {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 0;
  font-size: 16px;
  line-height: 1.7;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

.pfi-storage-shelf__faq-question::-webkit-details-marker {
  display: none;
}

.pfi-storage-shelf__faq-q,
.pfi-storage-shelf__faq-a {
  flex: 0 0 auto;
  font-size: 20px;
  line-height: 1;
  font-weight: 500;
  color: #1a1a1a;
}

.pfi-storage-shelf__faq-q {
  font-family: "Noto Sans JP", HiraKakuPro-W3, "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", sans-serif;
  font-weight: 700;
}

.pfi-storage-shelf__faq-question-text {
  flex: 1;
  font-weight: 200;
  font-size: 18px;
}

.pfi-storage-shelf__faq-toggle {
  position: relative;
  justify-self: end;
  width: 18px;
  height: 18px;
  border: 1px solid #1a1a1a;
  border-radius: 50%;
  box-sizing: border-box;
}

.pfi-storage-shelf__faq-toggle::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 6px;
  width: 5px;
  height: 5px;
  border-right: 1px solid #1a1a1a;
  border-bottom: 1px solid #1a1a1a;
  background: transparent;
  transition: transform 0.25s ease;
  transform: rotate(45deg);
  transform-origin: center;
}

.pfi-storage-shelf__faq-item[open] .pfi-storage-shelf__faq-toggle::before {
  transform: rotate(225deg);
}

.pfi-storage-shelf__faq-answer {
  padding: 12px 0px 0 0px;
}

.pfi-storage-shelf__faq-answer p {
  margin: 0;
  font-size: 14px;
  line-height: 1.85;
  color: #222;
}

/* ---------- Showroom ---------- */
.pfi-storage-shelf__showroom-grid {
  display: flex;
  flex-direction: column;
  gap: 76px;
}

.pfi-storage-shelf__showroom-card {
  background: transparent;
  display: flex;
  flex-direction: column;
}

.pfi-storage-shelf__showroom-title {
  margin: 0 0 30px;
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: 0.06em;
  font-weight: 700;
  text-transform: none;
}

.pfi-storage-shelf__showroom-body {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  gap: 24px 42px;
  align-items: stretch;
}

.pfi-storage-shelf__showroom-image {
  height: 100%;
  min-height: 534px;
  overflow: hidden;
}

.pfi-storage-shelf__showroom-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pfi-storage-shelf__showroom-copy {
  display: flex;
  flex-direction: column;
}

.pfi-storage-shelf__showroom-map {
  margin-top: 12px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.pfi-storage-shelf__showroom-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.pfi-storage-shelf__showroom-address p,
.pfi-storage-shelf__showroom-note,
.pfi-storage-shelf__contact-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #111;
  /* letter-spacing: 0.2em; */
}

.pfi-storage-shelf__showroom-copy{
  letter-spacing: 0.2em;
}

.pfi-storage-shelf__showroom-address p + p {
  margin-top: 4px;
}

.pfi-storage-shelf__showroom-note {
  margin-top: 18px;
  margin-bottom: 18px;
}

.pfi-storage-shelf__showroom-button {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 100%;
  max-width: 268px;
  min-height: 54px;
  background: #9d9d9d;
  border-color: #9d9d9d;
  color: #fff;
  border-radius: 4px;
  padding: 8px 14px 9px;
  letter-spacing: 0;
  line-height: 1.1;
  font-family: "Noto Sans JP", sans-serif;
  text-transform: none;
}

.pfi-storage-shelf__showroom-button:hover {
  background: #000000;
  border-color: #000000;
}

.pfi-storage-shelf__showroom-button-eyebrow {
  display: block;
  font-size: 13px;
  line-height: 1.1;
  letter-spacing: 0.04em;
  font-weight: 400;
}

.pfi-storage-shelf__showroom-button-label {
  display: block;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  font-weight: 400;
  white-space: nowrap;
}

/* ---------- Contact ---------- */
.pfi-storage-shelf__section--contact {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 0;
  background-image: linear-gradient(rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.34)), var(--storage-shelf-contact-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.pfi-storage-shelf__contact-box {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 292px;
  padding: 0;
  color: #fff;
  background: transparent;
}

.pfi-storage-shelf__contact-copy {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  width: min(100%, 860px);
}

.pfi-storage-shelf__contact-icon {
  flex: 0 0 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  color: #fff;
}

.pfi-storage-shelf__contact-text-block {
  min-width: 0;
}

.pfi-storage-shelf__contact-title {
  /* margin: 6px 0 22px; */
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.5;
  font-weight: 700;
  color: #fff;
}

.pfi-storage-shelf__contact-text {
  max-width: 760px;
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  font-weight: 700;
  color: #fff;
}

.pfi-storage-shelf__contact-action {
  flex: 0 0 auto;
}

.pfi-storage-shelf__contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 200px;
  min-width: 200px;
  height: 50px;
  padding: 0 20px;
  border: 1px solid #000;
  background: #fff;
  color: #000;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

/* .pfi-storage-shelf__contact-button:hover {
  background: #000;
  border-color: #000;
  color: #fff;
} */

.pfi-storage-shelf__contact-button-icon {
  flex: 0 0 auto;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  body.page-storage-shelf-header-page {
    --storage-shelf-header-height: 114px;
  }

  .pfi-storage-shelf-header__inner {
    width: min(100%, calc(100% - 48px));
  }

  .pfi-storage-shelf__section {
    padding: 100px 0;
  }

  .pfi-storage-shelf__section--problems {
    padding-top: 54px;
    padding-bottom: 100px;
  }

  .pfi-storage-shelf__problem-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pfi-storage-shelf__case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 28px;
  }

  .pfi-storage-shelf__flow-item {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 24px 32px;
  }

  .pfi-storage-shelf__intro {
    gap: 48px;
  }

  .pfi-storage-shelf__intro-detail,
  .pfi-storage-shelf__feature,
  .pfi-storage-shelf__feature--compare {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .pfi-storage-shelf__intro-detail-copy,
  .pfi-storage-shelf__feature-copy,
  .pfi-storage-shelf__feature-media,
  .pfi-storage-shelf__feature-compare {
    max-width: none;
    width: 100%;
    justify-self: stretch;
  }

  .pfi-storage-shelf__feature--text-left .pfi-storage-shelf__feature-media,
  .pfi-storage-shelf__feature--text-right .pfi-storage-shelf__feature-media,
  .pfi-storage-shelf__feature--text-right .pfi-storage-shelf__feature-copy {
    order: initial;
  }

  .pfi-storage-shelf__feature--text-right .pfi-storage-shelf__feature-media,
  .pfi-storage-shelf__feature--compare .pfi-storage-shelf__feature-media {
    order: 1;
  }

  .pfi-storage-shelf__feature--text-right .pfi-storage-shelf__feature-copy,
  .pfi-storage-shelf__feature--compare .pfi-storage-shelf__feature-copy {
    order: 2;
  }

  .pfi-storage-shelf__feature-compare {
    min-height: 360px;
  }

  .pfi-storage-shelf__showroom-grid {
    gap: 64px;
  }

  .pfi-storage-shelf__showroom-body {
    grid-template-columns: 248px minmax(0, 1fr);
    gap: 24px 28px;
  }

  .pfi-storage-shelf__showroom-image {
    min-height: 480px;
  }
}

@media (max-width: 767px) {
  body.page-storage-shelf-header-page {
    --storage-shelf-header-height: 80px;
  }

  .pfi-storage-shelf-header__inner {
    width: min(100%, calc(100% - 32px));
    min-height: 80px;
    padding: 0;
    gap: 10px;
    flex-direction: row;
    align-items: center;
  }

  .pfi-storage-shelf-header__brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .pfi-storage-shelf-header__brand img {
    width: min(156px, 42vw);
    max-width: 100%;
  }

  .pfi-storage-shelf-header__nav {
    flex: 0 0 auto;
    width: auto;
    gap: 8px;
  }

  .pfi-storage-shelf-header__link {
    flex: 0 0 auto;
    min-width: 86px;
    min-height: 40px;
    padding: 0 10px;
    font-size: 11px;
    letter-spacing: 0.03em;
    border-radius: 8px;
  }

  .storage-shelf-page::before {
    background-position: 63% center;
  }

  .pfi-storage-shelf__container,
  .pfi-storage-shelf__container--narrow,
  .pfi-storage-shelf__hero-inner {
    width: min(100%, calc(100% - 32px));
  }

  .pfi-storage-shelf__section {
    padding: 40px 0;
  }

  .pfi-storage-shelf__section--problems {
    padding-top: 72px;
    padding-bottom: 80px;
    border-top-left-radius: 30px;
    border-top-right-radius: 0px;
  }

  .pfi-storage-shelf__heading-block {
    margin-bottom: 44px;
  }

  /* Hero */
  .pfi-storage-shelf__hero {
    min-height: 100svh;
  }

  .pfi-storage-shelf__hero::before {
    height: clamp(260px, 38svh, 360px);
  }

  .pfi-storage-shelf__hero-inner {
    width: 100%;
    padding: 0;
  }

  .pfi-storage-shelf__hero-panel {
    min-height: 34svh;
    border-bottom-left-radius: 22px;
    border-bottom-right-radius: 0px;
    padding: 70px 0 28px;
  }

  .pfi-storage-shelf__hero-copy {
    width: calc(100% - 40px);
    padding-left: 0;
    padding-top: 0px;
  }

  .pfi-storage-shelf__hero-title{
    margin-left: 20px;
  }

  .pfi-storage-shelf__hero-title-jp {
    font-size: 24px;
    line-height: 1.3;
  }

  .pfi-storage-shelf__hero-title-en {
    font-size: 28px;
  }

  .pfi-storage-shelf__hero-lead {
    margin-bottom: 22px;
    font-size: 12px;
    line-height: 1.7;
  }

  .pfi-storage-shelf__hero-scroll {
    right: 20px;
    /* top: calc(34svh + 18px); */
    top: 246px;
    width: 72px;
    height: 72px;
  }

  .pfi-storage-shelf__hero-scroll-line {
    height: 28px;
  }

  .pfi-storage-shelf__hero-scroll-line::after {
    width: 18px;
    height: 18px;
  }

  /* Grids */
  .pfi-storage-shelf__problem-grid,
  .pfi-storage-shelf__flow-list,
  .pfi-storage-shelf__showroom-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .pfi-storage-shelf__case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 16px;
  }

  .pfi-storage-shelf__guide-grid {
    gap: 32px;
  }

  .pfi-storage-shelf__guide-card,
  .pfi-storage-shelf__guide-card:nth-child(2) {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .pfi-storage-shelf__guide-copy {
    justify-content: center;
  }

  .pfi-storage-shelf__guide-thumb--catalog {
    width: min(230px, 58vw);
    justify-self: center;
  }

  .pfi-storage-shelf__problem-image {
    aspect-ratio: 4 / 3;
  }

  .pfi-storage-shelf__problem-title {
    font-size: 16px;
    min-height: 0;
  }

  /* Section title */
  .pfi-storage-shelf__section-title {
    font-size: 20px;
    line-height: 1.7;
  }

  .pfi-storage-shelf__intro-copy .pfi-storage-shelf__section-title {
    font-size: 26px;
    line-height: 1.7;
    text-align: left;
  }

  .pfi-storage-shelf__intro-title,
  .pfi-storage-shelf__feature-title {
    font-size: 18px;
    margin-top: -32px;
  }

  .pfi-storage-shelf__intro {
    gap: 32px;
  }

  .pfi-storage-shelf__section--intro {
    padding-bottom: 32px;
  }

  .pfi-storage-shelf__intro-detail {
    gap: 24px;
  }

  .pfi-storage-shelf__intro-detail-image img {
    aspect-ratio: 4 / 3;
    margin-top: 40px;
  }

  .pfi-storage-shelf__intro-title {
    font-size: 18px;
    margin-top: -26px;
  }

  .pfi-storage-shelf__intro-text {
    margin-top: 20px;
    font-size: 14px;
    line-height: 1.9;
  }

  .pfi-storage-shelf__feature + .pfi-storage-shelf__feature {
    margin-top: 80px;
  }

  .pfi-storage-shelf__feature-compare {
    min-height: 220px;
  }

  .pfi-storage-shelf__feature-compare-arrow {
    left: 50%;
    top: 52%;
    width: 38px;
  }

  .pfi-storage-shelf__feature-compare-arrow::after {
    width: 10px;
    height: 10px;
  }

  /* Cases */
  .pfi-storage-shelf__case-link {
    padding: 0;
  }

  .pfi-storage-shelf__case-title {
    font-size: 17.5px;
  }

  .pfi-storage-shelf__case-image {
    margin-top: 14px;
  }

  .pfi-storage-shelf__case-text {
    margin-top: 18px;
    font-size: 13px;
    line-height: 1.9;
  }

  /* Guide */
  .pfi-storage-shelf__guide-title {
    font-size: 18px;
  }

  /* Flow */
  .pfi-storage-shelf__flow-list {
    gap: 77px;
  }

  .pfi-storage-shelf__flow-item {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 0;
    justify-items: center;
  }

  .pfi-storage-shelf__flow-item:not(:last-child)::after {
    top: calc(100% + 30px);
  }

  .pfi-storage-shelf__flow-title {
    text-align: center;
  }

  .pfi-storage-shelf__flow-title {
    font-size: 16px;
  }

  .pfi-storage-shelf__flow-text {
    width: min(80%, 540px);
    justify-self: center;
    font-size: 13px;
    line-height: 1.8;
    text-align: left;
  }

  /* FAQ */
  .pfi-storage-shelf__faq-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .pfi-storage-shelf__faq-heading .pfi-storage-shelf__section-title {
    text-align: center;
  }

  .pfi-storage-shelf__faq-question {
    font-size: 14px;
    gap: 14px;
  }

  .pfi-storage-shelf__faq-q,
  .pfi-storage-shelf__faq-a {
    font-size: 18px;
  }

  .pfi-storage-shelf__faq-answer {
    padding: 10px 34px 0 24px;
  }

  /* Showroom */
  .pfi-storage-shelf__showroom-title {
    font-size: 24px;
    margin-bottom: 18px;
  }

  .pfi-storage-shelf__showroom-body {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .pfi-storage-shelf__showroom-image {
    order: 1;
  }

  .pfi-storage-shelf__showroom-copy {
    order: 2;
  }

  .pfi-storage-shelf__showroom-image {
    min-height: 0;
    aspect-ratio: 1.15 / 1;
  }

  .pfi-storage-shelf__showroom-map {
    aspect-ratio: 1.18 / 1;
  }

  .pfi-storage-shelf__showroom-button {
    max-width: none;
    min-height: 54px;
  }

  .pfi-storage-shelf__showroom-button-label {
    white-space: normal;
  }

  /* Contact */
  .pfi-storage-shelf__section--contact {
    isolation: isolate;
    overflow: hidden;
    background: none;
  }

  .pfi-storage-shelf__section--contact::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: max(100%, 100vh);
    background-image: var(--storage-shelf-contact-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: translate3d(0, var(--storage-shelf-contact-offset, 0px), 0);
    will-change: transform;
    z-index: 0;
    pointer-events: none;
  }

  .pfi-storage-shelf__section--contact::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.34);
    z-index: 0;
    pointer-events: none;
  }

  .pfi-storage-shelf__button--wide {
    min-width: 0;
    width: 100%;
  }

  .pfi-storage-shelf__contact-box {
    min-height: 0;
    padding: 72px 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .pfi-storage-shelf__contact-copy {
    width: 100%;
    gap: 18px;
  }

  .pfi-storage-shelf__contact-title {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 18px;
  }

  .pfi-storage-shelf__contact-text {
    font-size: 15px;
    line-height: 1.75;
  }

  .pfi-storage-shelf__contact-action {
    width: 100%;
  }

  .pfi-storage-shelf__contact-button {
    width: 200px;
    min-width: 200px;
    max-width: 200px;
    height: 50px;
    padding: 0 20px;
    margin-left: 78px;
  }
}

/* ==============================
   Office
============================== */

/* .pfi-office {
  max-width: 1446px;
  margin-top: 120px;
}

.pfi-office__title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 28px;
}

.pfi-office-list {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.pfi-office-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  column-gap: 40px;
  align-items: start;
}

.pfi-office-row__name {
  font-size: 14px;
  font-weight: 200;
  line-height: 1.8;
}

.pfi-office-row__address {
  font-size: 14px;
  line-height: 1.8;
}

.pfi-office-row__address p {
  margin: 0;
}

.pfi-office-row__address a {
  text-decoration: underline;
} */

/* ==============================
   Office
============================== */

.pfi-office {
  max-width: 1446px;
  margin-top: 120px;
}

.pfi-office__title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 28px;
}

.pfi-office-list {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.pfi-office-row {
  display: grid;
  grid-template-columns: 150px 1fr; /* PC：左＝オフィス名 / 右＝住所 */
  column-gap: 40px;
  align-items: start;
}

.pfi-office-row__name {
  font-size: 14px;
  font-weight: 200;
  line-height: 1.8;
}

.pfi-office-row__address {
  font-size: 14px;
  line-height: 1.8;
}

/* WYSIWYG の wpautop 対策 */
.pfi-office-row__address p {
  margin: 0;
}

.pfi-office-row__address a {
  text-decoration: underline;
}

/* ==============================
   Office（SP）
   スマホだけ：縦積み（オフィス名→住所）
============================== */
@media (max-width: 768px) {

  .pfi-office {
    margin-top: 80px;
  }

  .pfi-office__title {
    font-size: 28px;
    margin: 0 0 18px;
    line-height: 1.15;
  }

  .pfi-office-list {
    gap: 22px;
  }

  /* 2カラムをやめて1カラムに */
  .pfi-office-row {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 8px;
  }

  .pfi-office-row__name {
    font-weight: 400;
    line-height: 1.6;
  }

  .pfi-office-row__address {
    line-height: 1.7;
  }
}



/* プライバシーポリシー */
/* コンテナ全体のスタイル */
#pr_container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Meiryo", sans-serif;
    font-size: 13px;
    color: #333;
    line-height: 1.8;
    letter-spacing: 0.05em;
}

/* ページタイトル */
#contentsTitle {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 40px;
    color: #000;
}

/* 各セクションの余白 */
.privacy-sec01 {
    margin-bottom: 40px;
}

/* 大見出し (個人情報保護方針, Cookieポリシー) */
.privacy-subtitle {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #000;
}

/* 小見出し (個人情報の定義など) */
.privacy-sec01 .heading {
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #000;
}

/* 小見出しの先頭の「ー」をCSSで追加 */
.privacy-sec01 .heading::before {
    content: "ー ";
}

/* 段落のスタイル */
.privacy-sec01 p {
    margin: 0 0 15px;
}

/* リスト(li)のスタイル設定 
※HTML上にul/olがないため、疑似要素で箇条書きの黒丸を追加します */
#pr_container li {
    list-style-type: none;
    position: relative;
    padding-left: 1.2em;
    margin-bottom: 5px;
}

#pr_container li::before {
    content: "・";
    position: absolute;
    left: 0;
    top: 0;
}

/* リンクのスタイル */
#pr_container a {
    color: #333;
    text-decoration: underline;
}

#pr_container a:hover {
    text-decoration: none;
    color: #666;
}

/* 太字(strong)の強調 */
#pr_container strong {
    font-weight: bold;
}



/* 大見出し (ご利用条件) */
.titleBox {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 24px;
    color: #000;
}

/* 小見出し (責任の制限、リンクサイトについてなど) */
#read_container h3 {
    font-size: 13px;
    font-weight: bold;
    color: #000;
    margin: 0;
}

/* 段落の基本スタイル */
#read_container p {
    margin: 0;
}

/* * 余白調整用クラス (HTMLのクラス名に準拠)
 * mb = margin-bottom を意味しているため、それぞれの数値を設定します
 */
#read_container .mb24 {
    margin-bottom: 24px;
}

#read_container .mb12 {
    margin-bottom: 12px;
}

#read_container .mb8 {
    margin-bottom: 8px;
}



















/* 共通クラス（他でも使うなら残してOK） */
/* .no-side-padding {
  margin-left: calc(-1 * var(--pfi-site-padding-x));
  margin-right: calc(-1 * var(--pfi-site-padding-x));
  width: calc(100% + calc(var(--pfi-site-padding-x) * 2));
} */

.site-main{
  max-width: none !important;
}

.pfi-header__logo img {
  position: relative;
  top: -3px;
}

.pfi-header__plus {
  top: 0px;
  left: 3px;
}

.pfi-header__nav-list li a:hover, .pfi-header__english:hover {
  text-decoration: none;
}

.pfi-header__submenu-inner {
  background: none;
}

.pfi-header__submenu-inner li {
  padding-top: 8px;
}

.pfi-menu-overlay__list {
  margin-right: 130px;
}

.pfi-hero__title {
  position: relative;
  left: -2.5px;
}

/* 共通スタイル */
.pfi-logo {
  display: block;
  height: 26px;
}

/* 初期：白ロゴだけ表示 */
/* .pfi-logo--black {
  display: none;
} */



.pfi-footer a:hover {
  text-decoration: none !important;
  opacity: 0.6 !important;
}

.top-transparent-joint {
  background-color: rgba(255, 255, 255, 0);
  display: block;
  height: 300px;
}

/* body{
  background-image: var(--hero-bg-pc);
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

@media (max-width: 767px){
  body{
    background-image: var(--hero-bg-sp);
    background-position: center bottom;
  }
  .pfi-footer {
    padding: 0px 20px !important;
  }
} */

/* bodyの背景は使わない */
body{
  background: none !important;
  position: relative;
}

/* 擬似要素で背景を固定表示（iOSでも安定） */
body::before{
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: var(--hero-bg-pc, none);
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  transform: translateZ(0);
}

/* SPはSP画像（無ければPC） */
@media (max-width: 767px){
  body::before{
    background-image: var(--hero-bg-sp, var(--hero-bg-pc, none));
  }
}

.pfi-bg-peek{
  height: 300px;
  background: transparent;
}

@media (max-width: 767px){
  .pfi-bg-peek{
    height: 200px;
  }
}


body.pfi-header--theme-white .pfi-header  .pfi-header__nav-list li a{
  color: #fff !important;
}

body.pfi-header--theme-black .pfi-header  .pfi-header__nav-list li a{
  color: #000 !important;
}

/* スクロールして .is-dark-logo が付いたら黒ロゴに切り替え */
body.pfi-header--theme-black .pfi-logo--white {
  display: none;
}

body.pfi-header--theme-white .pfi-logo--black {
  display: none;
}

body.pfi-header--theme-white .is-dark-logo .pfi-logo--black {
  display: block;
}

body.pfi-header--theme-white .is-dark-logo .pfi-logo--white {
  display: none;
}

body.pfi-header--theme-black .is-menu-open .pfi-logo--black {
  display: none;
}

body.pfi-header--theme-black .is-menu-open .pfi-logo--white {
  display: block;
}

body.page-storage-shelf-custom .pfi-header {
  background: #fff !important;
}

body.page-storage-shelf-custom .bg-white-wrapper {
  background: #fff;
}

body.page-storage-shelf-custom::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--pfi-header-height, 100px);
  background: #fff;
  z-index: 999;
  pointer-events: none;
}

body.page-storage-shelf-custom .pfi-header {
  z-index: 1000;
}

.bg-white-wrapper{
  background: #fff;
  padding-bottom: 60px;
}
.home .bg-white-wrapper{
  background: none;
}

body.page-storage-shelf-header-page .pfi-bg-peek {
  display: none;
}

body.page-storage-shelf-header-page .pfi-footer {
  position: relative;
  z-index: 2;
  margin-top: -62px;
  background: #fff;
}

body.page-storage-shelf-header-page .pfi-footer__inner {
  width: min(100%, 1446px);
  margin: 0 auto;
  padding-top: 60px !important;
}

body.page-storage-shelf-header-page .pfi-footer__right {
  margin-top: 0;
}

h3.wp-block-heading {
  font-size: 18px !important;
}

h4.wp-block-heading{
  font-size: 12px !important;
  margin-top: 0px !important;
}

h5.wp-block-heading{
  font-size: 12px !important;
  margin-top: 0px !important;
}
