/* ===========================
   ハンドクリーム（化粧品）商品詳細ページ 個別スタイル
   - 共通グルー（deco-heading・セクション余白・cosmetic変数）は
     product-detail-moist.css を共用し、本ファイルは後読みで
     本商品固有の帯・成分グリッド・使用タイミングだけを持つ
   - Figma: node 875:73473（Water Life Series 23 ハンドクリーム 1箱2本入）
     cqw の構図基準幅は Figma 実測の 1046px（実描画は content-wrap 実効1200px
     基準に比率スケールする）
   - お手入れステップ（care-routine）は本商品には無い（Figma準拠）
   =========================== */

.page-product-detail--handcream {
  --hc-brown: #544017;
  --hc-gold: #dbbd80;
}

/* 見出し英字とピルをゴールド系に上書き（Figma: #dbbd80） */
.page-product-detail--handcream .deco-heading__en { color: var(--hc-gold); }
.page-product-detail--handcream .deco-heading__ja--pill { background: rgba(219, 189, 128, 0.5); }

/* WHEN TO ENJOY の和見出し（帯なし36px・Figma: #555） */
.deco-heading__ja--lg { font-size: 36px; color: #555; }

/* ===========================
   1. 帯「触れたくなる指先へ」（商品オリジナル実装）
   シルク写真背景 + コピー(522) + 手元写真構図
   =========================== */
.hc-band {
  position: relative;
  overflow: hidden;
}

.hc-band__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url('../assets/images/products/handcream/band-bg.png') center / cover no-repeat;
}

/* 帯下端の全幅フェード（Figma: node 929:16306「Rectangle 115」・帯下端174px）。
   下端 #FCF3EC（温白）→上へ透明。次の美容成分セクション上端フェード（Rectangle 129）と
   対になり、境目（INGREDIENTS 見出しの背後）に温白の抜けゾーンを作る。silk は上下に残る。 */
.hc-band__bg::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 30%;           /* 174 / 572 ≒ 30% */
  background: linear-gradient(to top, #fcf3ec 0%, rgba(252, 243, 236, 0) 100%);
}

.hc-band__inner {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 60px;
  container-type: inline-size;
}

/* 構図本体（コピー522 ｜ ビジュアル494。基準幅 1046） */
.hc-band__stage {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.8cqw 0 0;
}

.hc-band__copy {
  flex: 0 0 49.9cqw;      /* 522 / 1046 */
  min-width: 0;
  position: relative;
  z-index: 2;
  color: var(--hc-brown);
}

/* 触れたくなる指先へ（48px・こげ茶） */
.hc-band__main {
  font-family: 'Noto Serif JP', serif;
  font-weight: 400;
  font-size: 4.589cqw;    /* 48 / 1046 */
  letter-spacing: -0.01em;
  line-height: 1.5;
  margin: 0 0 1.53cqw;
  white-space: nowrap;
}

.hc-band__desc {
  font-family: 'Zen Kaku Gothic Antique', sans-serif;
  font-weight: 500;
  font-size: 1.912cqw;    /* 20 / 1046 */
  line-height: 1.5;
  letter-spacing: -0.05em;
  margin: 0 0 2.5cqw;
}

/* 特長バッジ3つ（水彩ブロブ背景 + 2段テキスト） */
.hc-band__badges {
  display: flex;
}

.hc-band__badge {
  position: relative;
  width: 16.63cqw;        /* 174 / 1046 */
  aspect-ratio: 174 / 154;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hc-band__badge-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hc-band__badge-label {
  position: relative;
  display: flex;
  flex-direction: column;
  font-family: 'Noto Serif JP', serif;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--hc-brown);
  text-align: center;
  white-space: nowrap;
}

.hc-band__badge-label i {
  font-style: normal;
  font-size: 1.626cqw;    /* 17 / 1046 */
}

.hc-band__badge-label em {
  font-style: normal;
  font-size: 2.103cqw;    /* 22 / 1046 */
}

/* ビジュアル（花 + 手元写真 + 商品チューブ） */
.hc-band__visual {
  flex: 0 0 47.23cqw;     /* 494 / 1046 */
  position: relative;
  z-index: 1;
  aspect-ratio: 494 / 556;
  min-width: 0;
}

.hc-band__flower {
  position: absolute;
  left: 12%;
  top: 3%;
  width: 85%;
  height: auto;
  transform: rotate(-90deg);
  transform-origin: center;
  opacity: 0.9;
  z-index: 0;
  /* 素材（band-flower.png）は刷毛の途中で切れており端が不透明＝矩形のハードエッジ
     （横線・白い縦線）が出る。四辺をソフトにフェードするマスクでエッジを消す
     （マスクは要素と一緒に回転するので回転後も四辺に効く）。 */
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 9%, #000 91%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 9%, #000 91%, transparent 100%);
  mask-composite: intersect;
}

.hc-band__hands {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  z-index: 1;
  /* 手首の肌エッジを白グロー（.hc-band__fade）へ馴染ませるため下端だけ軽く透明フェード。
     ※手が消えすぎないよう範囲は狭め（下端28%のみ）・最下端でのみ完全透明にする。 */
  -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 80%, transparent 100%);
}

/* 白フェード（Figma: Rectangle 115 / node 929:16480）。手元写真（z1）の上・商品チューブ（z3）
   の下に置き、手首の切れ目を温白へ溶かす＝白いグローを作る。
   ⚠️ ただしビジュアル幅いっぱいの単純な矩形だと、左右端に縦の縁（台形）が出るので、
   左右方向のマスクで端をソフトにフェードし、手のある中央〜右にグローを寄せる。 */
.hc-band__fade {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 34%;
  background: linear-gradient(to top, #fcf3ec 0%, rgba(252, 243, 236, 0) 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 28%, #000 90%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 28%, #000 90%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

.hc-band__product {
  position: absolute;
  left: 66%;              /* 326 / 494 */
  top: 28.8%;             /* 160 / 556 */
  width: 23.5%;           /* 116 / 494 */
  height: auto;
  filter: drop-shadow(1.5px 2.5px 3px rgba(229, 182, 164, 0.42));
  z-index: 3;
}

/* ===========================
   2. 美容成分（8項目グリッド・白背景）
   =========================== */
/* 美容成分セクションは帯から続くシルク背景（Figma: node 929:16301「15_01_26 2」）を敷く。
   帯の band-bg.png と同シリーズの連続テクスチャで、セクション下端（WHEN TO ENJOY 直前）で
   白へフェードさせる（Figma: Rectangle 130 の下端白フェード）。成分一覧カードは半透明白で
   テクスチャが透ける。 */
.hc-ing-section {
  position: relative;
  background-image:
    /* 上端の温白フェード（Figma: Rectangle 129・帯下端フェードと対で境目に抜けを作る） */
    linear-gradient(to bottom, #fcf3ec 0%, rgba(252, 243, 236, 0) 20%),
    url('../assets/images/products/handcream/ing-bg.png');
  background-size: 100% 100%, cover;
  background-position: center, center top;
  background-repeat: no-repeat, no-repeat;
  /* 上余白は帯との間隔（手が下端で溶けるぶん空きが大きく見えるため詰める）。 */
  padding: 48px 0 100px;
}

/* 下端フェード（Figma: Rectangle 130）→ WHEN TO ENJOY(#ffffff) へ滑らかに繋ぐ。
   ⚠️ %基準で背景に敷くと、成分一覧カードの相対位置がビューポートで変わり（PC≒90% / SP≒95%）
   半透明カードに白グラデが透ける。カード下の余白（padding-bottom）内に収まる固定高の
   ::after にして、カードに重ねずセクション最下部だけを白へフェードさせる。 */
.hc-ing-section::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 80px;          /* PC padding-bottom100px の内側。カード下端より下 */
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #ffffff 100%);
  pointer-events: none;
}

/* 美容成分 見出しは Figma 準拠に上書き（共有デフォルトは New 30px/薄青灰線で非準拠）
   - 和文: Zen Kaku Gothic Antique Regular 42px・こげ茶 #544017・字間なし
   - 区切り線: グリッド全幅まで flex 伸長・色 #544017（Figma 実測） */
.hc-ing-section .deco-heading__ja {
  font-family: 'Zen Kaku Gothic Antique', sans-serif;
  font-weight: 400;
  font-size: 42px;
  color: var(--hc-brown);
  letter-spacing: 0;
}

.hc-ing-section .deco-heading__line {
  flex: 1 1 0;
  width: auto;
  max-width: none;
  min-width: 0;
  background: var(--hc-brown);
}

.hc-ing-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 43px 45px;
  padding: 0;
  margin: 0;
}

.hc-ing-item {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.hc-ing-item__icon {
  flex: none;
  width: 89px;
  height: 89px;
  object-fit: cover;
}

.hc-ing-item__body {
  min-width: 0;
  padding-top: 6px;
}

.hc-ing-item__name {
  font-family: 'Zen Kaku Gothic Antique', sans-serif;
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.05em;
  line-height: 1.5;
  color: #4c4c4c;
  margin: 0 0 9px;
}

.hc-ing-item__desc {
  font-family: 'Zen Kaku Gothic Antique', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  color: #4c4c4c;
  margin: 0;
}

/* 成分一覧カード（Figma: node 929:16458）。半透明白でシルクが透ける・角丸15px・枠線なし。
   ※Figma に border は無いので付けない（付けると「フィグマにない枠」になる）。 */
.hc-list {
  margin-top: 40px;
  background: rgba(255, 255, 255, 0.86);
  border-radius: 15px;
  padding: 23px 31px 32px;
}

.hc-list__title {
  font-family: 'Noto Serif JP', serif;
  font-weight: 600;
  font-size: 24px;
  text-align: center;
  line-height: 1.5;
  background: linear-gradient(to bottom, #dccbaa, #916c22);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #a8863f;
  margin: 0 0 6px;
}

.hc-list__text {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  color: #4c4c4c;
  margin: 0;
  word-break: break-word;
}

/* ===========================
   3. おすすめの使用タイミング（energy enjoy 型・金枠）
   =========================== */
.hc-enjoy-section {
  background: #ffffff;
  padding: 0 0 104px;
}

.hc-enjoy-section .deco-heading {
  margin-bottom: 20px;
}

.hc-enjoy-grid {
  display: flex;
  gap: 18px;
  justify-content: center;
  max-width: 870px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
}

.hc-enjoy-card {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hc-enjoy-card__media {
  width: 100%;
  aspect-ratio: 278 / 297;
  border: 3px solid var(--hc-gold);
  border-radius: 30px;
  overflow: hidden;
  position: relative;
}

.hc-enjoy-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hc-enjoy-card__title {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: -0.05em;
  color: #4c4c4c;
  margin: 20px 0 0;
}

.hc-enjoy-card__desc {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.05em;
  color: #4c4c4c;
  margin: 9px 0 0;
}

/* ===========================
   レスポンシブ
   =========================== */
@media (max-width: 1100px) {
  .deco-heading__ja--lg { font-size: 30px; }

  .hc-band__inner {
    container-type: normal;
  }

  .hc-band {
    padding: 56px 0 0;
  }

  .hc-band__stage {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 0;
  }

  .hc-band__copy {
    flex: 0 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hc-band__main { font-size: 34px; margin-bottom: 14px; }

  .hc-band__desc {
    font-size: 17px;
    line-height: 1.75;
    max-width: 620px;
    margin-bottom: 20px;
  }

  .hc-band__badges { justify-content: center; }
  .hc-band__badge { width: 150px; }
  .hc-band__badge-label i { font-size: 15px; }
  .hc-band__badge-label em { font-size: 19px; }

  .hc-band__visual {
    flex: 0 0 auto;
    width: min(494px, 84%);
    margin-top: 8px;
  }

  /* 成分: 2カラム */
  .hc-ing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }

  .hc-enjoy-grid {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .hc-enjoy-card { width: min(278px, 80vw); }
}

@media (max-width: 767px) {
  .deco-heading__ja--lg { font-size: 24px; }

  .hc-band { padding-top: 40px; }

  /* SP は content-wrap と同じ左右20px */
  .hc-band__inner { padding: 0 20px; }

  .hc-band__main { font-size: 26px; }
  .hc-band__desc { font-size: 15px; }

  .hc-band__badge { width: 110px; }
  .hc-band__badge-label i { font-size: 12px; }
  .hc-band__badge-label em { font-size: 15px; }

  .hc-ing-section { padding: 40px 0 72px; }
  /* SP は padding-bottom 72px なので下端フェードも縮めてカードに重ねない */
  .hc-ing-section::after { height: 56px; }

  /* 美容成分見出し: SP は一段縮小（美容成分30px）・線はグリッド全幅維持 */
  .hc-ing-section .deco-heading__ja { font-size: 30px; }
  .hc-ing-section .deco-heading__line { max-width: none; }

  /* 成分: 1カラム */
  .hc-ing-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 420px;
    margin: 0 auto;
  }

  .hc-ing-item__icon { width: 72px; height: 72px; }
  .hc-ing-item__name { font-size: 18px; }

  .hc-list { padding: 20px 20px 24px; }
  .hc-list__title { font-size: 20px; }

  .hc-enjoy-section { padding-bottom: 72px; }
}
