@charset "utf-8";
/* PRODUCTS 案3（index_products3.html 専用）
   中身は HP制作③ の PRODUCTS をそのまま複製。
   導入部だけ NEWS（.topics）と同じ組み方に差し替える：
     ・画面幅いっぱいの写真を上に敷く
     ・その下端へ、画面左端から出る白カードを食い込ませる（右上・右下だけ角丸）
     ・カードの中に PRODUCTS／取扱商品／リード文
     ・右に写真を1枚、カードの右端へ少しだけ重ねて画面右端まで */

.products.p3 {
  background: var(--white);
  padding-bottom: 0; /* 下余白は .p3-body へ移す（クリームをセクション下端まで届かせるため） */
}

/* ---------- 上に敷く全幅写真 ---------- */
.p3-hero {
  position: relative;
  height: 400px; /* 340→400。カードが食い込んでも空が帯として残る高さ */
  margin-bottom: -130px; /* この分だけ下の白カードが写真に食い込む */
  overflow: hidden;
}
.p3-hero > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 帯として広く出るので、彩度だけ少し落として他セクションとトーンを揃える */
  filter: saturate(0.88);
}
/* 上端＝前セクションの白から写真へ、下端＝写真から下の白へ、両側をぼかして帯の切れ目を消す。
   下端のぼかしはカードで隠れない「右側」で効く */
.p3-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.34) 0%,
    rgba(255, 255, 255, 0.1) 34%,
    rgba(255, 255, 255, 0) 56%,
    rgba(255, 255, 255, 0) 74%,
    rgba(255, 255, 255, 0.72) 100%
  );
}

.p3-intro {
  position: relative;
  padding-bottom: 104px; /* 白カードの下端から PICK UP までの余白 */
}
/* 画面左端から出る白カード。幅は「テキスト列の右端＋100px」まで＝
   右の写真の左端（テキスト列＋60px）へ 40px だけ潜り込む */
.p3-intro::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 0;
  top: 0; /* ＝写真の下端より 130px 上 */
  bottom: 104px; /* ＝ .p3-intro の padding-bottom。中身の下端に一致 */
  width: calc((100% - var(--container)) / 2 + 760px);
  /* 白は少し透かして、食い込んだ写真がうっすら透ける＝全体になじませる */
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(6px); /* 透けた写真がぼけるので文字は読める */
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  /* 写真の上に乗っていると分かる程度の弱い影。左は画面外へ抜けるので右・上・下だけに出る */
  box-shadow: 0 4px 18px rgba(30, 35, 33, 0.09);
}
.p3-intro-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 660px 1fr; /* 左＝カード内のテキスト／右＝写真 */
  column-gap: 60px;
  align-items: center;
  padding: 56px 0; /* カードは中身の上下 56px ずつ大きくなる */
}
.p3-intro-text {
  position: relative;
  z-index: 1;
}
/* 見出しの組み方は案2（.p2-label／.p2-title）と同じ。
   緑の短い罫＋ラベル → 大きな見出し → 本文 */
.p3-label {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: "Arial", "Helvetica Neue", sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.18em;
  color: var(--green);
}
.p3-label::before {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--green);
}
.p3-title {
  margin-top: 24px;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.p3-intro-text .t-body {
  margin-top: 26px;
  font-size: 14px;
  line-height: 2.4;
  color: var(--ink);
}

.p3-intro-photo {
  position: relative;
  z-index: 2; /* 白カードより前面 */
  margin: 0;
  /* 画面右端まで完全に抜く。15px 空けると、背後の全幅写真がその隙間から
     細い帯になって見えてしまうため（この写真は帯の上に重なる） */
  margin-right: calc(600px - 50vw);
  height: 400px; /* 高さを固定。画面が広くても写真だけが巨大にならないようにする */
  overflow: hidden;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  box-shadow: 0 10px 30px rgba(30, 35, 33, 0.13); /* 白カードと空の両方に乗るので、カードより一段強い影 */
}
.p3-intro-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center; /* 横長の素材。右端を画面右端に合わせ、画面が広いほど左へ絵が伸びる */
}

/* ---------- 装飾 ---------- */
/* 空を横切る白い鳥は削除（2026-09-08）。ヒーロー写真の右上がすっきりするため。 */
/* 白カードの右上に置く葉付きの枝（MESSAGE カードと同じ branch.png）。
   左端は .p3-intro-inner（＝コンテナ）基準。右の写真は 720px から始まるので、
   幅 132px なら画面幅が変わってもカードの中に収まる */
.p3-deco-branch {
  z-index: 3; /* 白カード（::before）より前 */
  left: 592px;
  top: 0; /* -38→0。写真の帯へはみ出さず、カードの上部に収める */
  width: 132px;
  opacity: 0.85;
}
/* カード下の余白（左側）に粒テクスチャ。右の葉と左右で釣り合わせる。
   上端が白カードの下端へ少し重なる位置まで持ち上げ、カードより前面に出す */
.p3-deco-dots {
  z-index: 3; /* 白カード（::before）と写真より前 */
  left: 80px; /* 0→80。画面左端から少し内側へ寄せる */
  bottom: 24px; /* 0→24。カードの下端へ 28px ほど重なる */
  width: 300px;
  opacity: 0.9;
  transform: scaleY(-1); /* 上下反転。粒の密な側を下へ向ける */
}
/* カード下の余白（右側）に舞う葉 */
.p3-deco-leaves {
  right: 5%;
  bottom: 8px;
  width: 190px;
  opacity: 0.45;
}

.p3-body {
  position: relative;
  padding-bottom: 160px; /* 元の .products の下余白 */
}
/* 背景は擬似要素（z-index:-1）に敷く。直接 .p3-body に敷くと、
   同じ段にいる装飾（.deco は z-index:0）を覆い隠してしまうため。
   230px ＝ .p3-body 上端から PICK UP カードの高さ中央まで（元の 1048px と同じ狙い） */
.p3-body::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to bottom,
    var(--white) 0,
    var(--white) 230px,
    var(--cream) 230px
  );
}

/* ============================================================
   レスポンシブ（デザイン/_レスポンシブ対応_計画.md）
   ------------------------------------------------------------
   PC用の上の記述は変えない。節ごとに下へ追記する。
   1279px以下：PC幅の詰め（D5）／1024px以下：タブレット／767px以下：スマホ
   ============================================================ */

/* --- 導入部（全幅写真＋白カード＋右の写真） --- */
@media (max-width: 1279px) {
  /* テキスト列 660px／写真列を、コンテナ幅に比例させる（1279pxでPCとほぼ同じ 660:480） */
  .p3-intro-inner {
    grid-template-columns: minmax(0, 660fr) minmax(0, 480fr);
  }
  /* 白カード＝画面左端から「テキスト列の右端＋100px」まで（PCと同じ関係） */
  .p3-intro::before {
    width: calc(var(--gutter) + (100% - var(--gutter) * 2 - 60px) * 0.5789 + 100px);
  }
  /* 写真は画面右端まで抜く（1279px以下はコンテナの外が --gutter） */
  .p3-intro-photo {
    margin-right: calc(var(--gutter) * -1);
  }
}
@media (max-width: 1024px) {
  .p3-hero {
    height: 320px;
    margin-bottom: -104px;
  }
  .p3-intro {
    padding-bottom: 80px;
  }
  .p3-intro::before {
    bottom: 80px;
  }
  .p3-intro-inner {
    padding: 48px 0;
  }
  .p3-title {
    font-size: 28px;
  }
  .p3-intro-photo {
    height: 320px;
  }
}
@media (max-width: 767px) {
  /* 重ねを解いて縦積み：全幅写真 → 白カード（見出し＋リード） → 写真。
     白カードは写真の下端に少しだけかけ（文字は写真にかけない）、右の写真はカードの下へ */
  .p3-hero {
    height: 220px;
    margin-bottom: -40px;
  }
  .p3-intro {
    padding-bottom: 56px;
  }
  .p3-intro-inner {
    grid-template-columns: 1fr;
    row-gap: 0;
    padding: 64px 0 0;
  }
  /* 2026-09-15 ユーザー指示：カードの下にも上と同じ余白を取り、その余白へ右下の写真を重ねる。
     上＝カード上端からラベルまで 64px。下＝本文の最終行の字の下端からカード下端まで同じ 64px
     （本文は行高 2.2 で行の下に約8px の空きがあるので、指定は 56px）。
     写真はカード下端より 32px 上から始める＝余白へ 32px 重なる。
     カード下端＝写真の上端から 32px 下（写真 220px ＋ 下余白 56px − 重なり 32px） */
  .p3-intro::before {
    width: calc(100% - var(--gutter));
    bottom: calc(56px + 220px - 32px);
  }
  .p3-intro-text {
    padding-right: var(--gutter);
    padding-bottom: 56px;
  }
  .p3-label {
    gap: 12px;
  }
  .p3-label::before {
    width: 32px;
  }
  .p3-title {
    margin-top: 16px;
    font-size: 24px;
    line-height: 1.6;
  }
  .p3-intro-text .t-body {
    margin-top: 20px;
    line-height: 2.2;
  }
  .p3-intro-photo {
    height: 220px;
    margin-top: -32px; /* カードの下の余白へ重ねる（上の ::before の bottom と対） */
  }
}

/* --- 装飾 --- */
@media (max-width: 1279px) {
  /* 枝はテキスト列の右端から 68px 内側（PCの left:592px と同じ関係） */
  .p3-deco-branch {
    left: calc((100% - 60px) * 0.5789 - 68px);
  }
}
@media (max-width: 1024px) {
  .p3-deco-branch {
    width: 100px;
  }
  .p3-deco-leaves {
    width: 150px;
  }
}
@media (max-width: 767px) {
  /* カードの右上へ。見出しにかからない大きさに縮小 */
  .p3-deco-branch {
    left: auto;
    right: 4px;
    top: 0;
    width: 56px;
  }
  .p3-deco-leaves {
    bottom: 8px;
    width: 120px;
  }
}

/* --- 本文（PICK UP 以降の余白と地色） --- */
@media (max-width: 1024px) {
  .p3-body {
    padding-bottom: 128px;
  }
}
@media (max-width: 767px) {
  .p3-body {
    padding-bottom: 96px;
  }
  /* 白→クリームの境目＝PICK UP カードの高さの中央（見出し分 113px ＋ 縦積みカードの半分）。
     2026-09-15 見切れスライダー化でカードの高さが画面幅によって 361〜411px と変わるので、
     境目は index.css の .prd-slider-body::before（JS が入れるカードの高さの半分から）に任せる。
     こちらはそれより下まで白にしておくだけ（113px ＋ 435px の半分より少し下） */
  .p3-body::before {
    background: linear-gradient(
      to bottom,
      var(--white) 0,
      var(--white) 340px,
      var(--cream) 340px
    );
  }
}
