@charset "UTF-8";
/* ==========================================================================
   4. 利用シーン（.sec-scenes）
   - 5つの場面（.sec-scenes__row）
   - ギフトのまとまり（.sec-scenes__gift）：5場面の後に線でつなぎ、白の面にして場面の一覧と見分けられるようにしている
   - 写真の枠（.c-placeholder）は、写真が届いたら img に差し替える
   - 背景はクリーム
   ========================================================================== */

.sec-scenes {
  padding-block: var(--sec-pad);
  /* 上の余白の中で、前の商品のベージュとの中間の色からクリームへゆるやかに変える（境目に線が出ないように） */
  background: linear-gradient(to bottom, color-mix(in srgb, var(--c-bg-beige) 50%, var(--c-bg-cream)) 0, var(--c-bg-cream) var(--sec-pad));
}

/* ---------- 見出し ---------- */
.sec-scenes__head {
  text-align: center;
}

.sec-scenes__lead {
  margin-top: 20px;
  font-size: 15px;
  line-height: 1.9;
}

/* ---------- 5つの場面（スマホは写真 → 文の縦並び） ---------- */
/* 列幅を画面幅に固定する（写真枠の縦横比の指定で、列が中身に合わせて広がるのを防ぐ） */
.sec-scenes__rows {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.sec-scenes__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.sec-scenes__photo {
  aspect-ratio: 16 / 10;
}

/* 写真の端を、ページのクリームへグラデーションで溶け込ませる（FVと同じ考え方。写真そのものは加工しない） */
/* 写真の台紙（11/20）：写真は加工せず（切り抜き・ぼかし・色の補正なし）、全体をそのまま見せる。
   写真の後ろに、写真の背景と同じ色の、角を少し丸めた台紙を敷き、写真と台紙の境目が見えないようにする。
   台紙の色は、写真の端の色を実際に測った値（写真ごとに --mount-bg で指定） */
.sec-scenes__mount {
  padding: 6%;
  border-radius: 14px;
  background: var(--mount-bg);
}

.sec-scenes__mount-img {
  display: block;
  width: 100%;
  height: auto;
}

/* 利用シーン05（00004791）：台紙は使わず、写真の端をページのクリームへやわらかくフェードさせる（四角い形が分からないように）。
   写真の背景は青みのある白のため、なじませる幅を広くとり、だんだん濃くなる段階でゆっくり溶かす（色の補正はしない）。
   各辺の幅（左32%・右16%・上17%・下16%）は、ペンダント2本の本体（写真の横32〜83%・縦18〜83%）にかからない上限。
   チェーンは元の写真で上と右の端の外へ続いているため、端の近くの部分だけ薄くなる */
.sec-scenes__fade {
  aspect-ratio: auto; /* 写真の比率（1200×1011）のまま */
}

.sec-scenes__fade-img {
  display: block;
  width: 100%;
  height: auto;
  -webkit-mask-image:
    linear-gradient(to right, rgba(0, 0, 0, 0) 0.0%, rgba(0, 0, 0, 0.08) 6.4%, rgba(0, 0, 0, 0.28) 12.8%, rgba(0, 0, 0, 0.55) 19.2%, rgba(0, 0, 0, 0.82) 25.6%, rgba(0, 0, 0, 1) 32.0%),
    linear-gradient(to left, rgba(0, 0, 0, 0) 0.0%, rgba(0, 0, 0, 0.08) 3.2%, rgba(0, 0, 0, 0.28) 6.4%, rgba(0, 0, 0, 0.55) 9.6%, rgba(0, 0, 0, 0.82) 12.8%, rgba(0, 0, 0, 1) 16.0%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0) 0.0%, rgba(0, 0, 0, 0.08) 3.4%, rgba(0, 0, 0, 0.28) 6.8%, rgba(0, 0, 0, 0.55) 10.2%, rgba(0, 0, 0, 0.82) 13.6%, rgba(0, 0, 0, 1) 17.0%),
    linear-gradient(to top, rgba(0, 0, 0, 0) 0.0%, rgba(0, 0, 0, 0.08) 3.2%, rgba(0, 0, 0, 0.28) 6.4%, rgba(0, 0, 0, 0.55) 9.6%, rgba(0, 0, 0, 0.82) 12.8%, rgba(0, 0, 0, 1) 16.0%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, rgba(0, 0, 0, 0) 0.0%, rgba(0, 0, 0, 0.08) 6.4%, rgba(0, 0, 0, 0.28) 12.8%, rgba(0, 0, 0, 0.55) 19.2%, rgba(0, 0, 0, 0.82) 25.6%, rgba(0, 0, 0, 1) 32.0%),
    linear-gradient(to left, rgba(0, 0, 0, 0) 0.0%, rgba(0, 0, 0, 0.08) 3.2%, rgba(0, 0, 0, 0.28) 6.4%, rgba(0, 0, 0, 0.55) 9.6%, rgba(0, 0, 0, 0.82) 12.8%, rgba(0, 0, 0, 1) 16.0%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0) 0.0%, rgba(0, 0, 0, 0.08) 3.4%, rgba(0, 0, 0, 0.28) 6.8%, rgba(0, 0, 0, 0.55) 10.2%, rgba(0, 0, 0, 0.82) 13.6%, rgba(0, 0, 0, 1) 17.0%),
    linear-gradient(to top, rgba(0, 0, 0, 0) 0.0%, rgba(0, 0, 0, 0.08) 3.2%, rgba(0, 0, 0, 0.28) 6.4%, rgba(0, 0, 0, 0.55) 9.6%, rgba(0, 0, 0, 0.82) 12.8%, rgba(0, 0, 0, 1) 16.0%);
  mask-composite: intersect;
}

/* パッケージ例（00004784。箱の上下の何も写っていない部分を切り落とし、箱が真ん中に来る正方形にした。箱・リボン・左右は切っていない）：
   写真の背景は、上がやや青み（#f4f4f9）で、下へ向かって明るくなる */
.sec-scenes__mount--gift {
  /* 色の位置は、写真のある範囲（上下の余白8pxの内側）に合わせる。写真の左右の端の色（縦の変化）を測った値。
     上の余白だけは、写真の上の端の色（中央が少し明るく、角が少し暗い）に合わせた横のグラデーションを重ねる */
  --mount-bg: linear-gradient(to right, #f4f5fa 0%, #f5f6fb 30%, #f6f6fb 50%, #f5f6fb 70%, #f3f4f9 100%) top / 100% 8px no-repeat,
    linear-gradient(to bottom, #f4f4f9 calc(8px + 0.000 * (100% - 16px)), #f4f4fa calc(8px + 0.100 * (100% - 16px)), #f6f5fa calc(8px + 0.200 * (100% - 16px)), #f7f6fb calc(8px + 0.400 * (100% - 16px)), #f8f7fc calc(8px + 0.600 * (100% - 16px)), #f8f7fc calc(8px + 0.900 * (100% - 16px)), #f7f6fb calc(8px + 1.000 * (100% - 16px)));
  aspect-ratio: auto; /* 写真の比率（600×600）のまま */
  width: 160px; /* スマホでも幅160pxにして中央に置く（PCも160px） */
  margin-inline: auto;
  padding: 8px;
  border-radius: 10px;
}

/* ギフトの大きい写真（00004855。切り抜き・ぼかしなしで全体を見せる。ふたの上の端とリボンの先は、元の写真の構図で切れている）：
   写真の背景はほぼ白（左の端 #fcfcfe、右の端 #fdfdff） */
.sec-scenes__mount--open {
  --mount-bg: linear-gradient(to right, #fcfcfe 0%, #fdfdff 100%);
  aspect-ratio: auto; /* 写真の比率（964×643）のまま */
  padding: 5%;
}

/* 場面の番号（01〜05）。場面の区切りをわかりやすくする飾り */
.sec-scenes__num {
  display: block;
  margin-bottom: 4px;
  font-family: var(--ff-en);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.12em;
  line-height: 1.5;
  color: var(--c-label);
}

.sec-scenes__title {
  font-size: 19px;
  line-height: 1.6;
  letter-spacing: 0.04em;
}

.sec-scenes__text {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.9;
}

/* ---------- 場面 → ギフトのつなぎ（縦の線と◇） ---------- */
.sec-scenes__bridge {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 40px;
  color: var(--c-line-gold);
  font-size: 14px;
  line-height: 1;
}

.sec-scenes__bridge::before {
  content: "";
  width: 1px;
  height: 40px;
  margin-bottom: 8px;
  background: var(--c-line-gold);
}

/* ---------- ギフトのまとまり ---------- */
.sec-scenes__gift {
  margin-top: 24px;
  padding: 40px 20px;
  border: 1px solid var(--c-line-soft);
  background: var(--c-bg-white);
  text-align: center;
}

.sec-scenes__gift-title {
  font-size: clamp(19px, 5.6vw, 22px);
  line-height: 1.7;
  letter-spacing: 0.05em;
}

.sec-scenes__gift-message {
  margin-top: 16px;
  font-family: var(--ff-serif);
  font-size: 17px;
  line-height: 1.8;
  color: var(--c-heading);
}

/* 大きい写真：写真の背景と同じ色の台紙の上に、写真の全体を置く（11/20。前は左右の端まで広げ、端をぼかしていた） */
.sec-scenes__gift-photo {
  width: 100%;
  margin: 24px 0 0;
}

/* スマホ：「日々の装いに寄り添うジュエリーに託して。」が1行に収まるよう、狭い画面では文字を少しだけ小さくする
   （15px が上限。幅375pxで約14.8px、幅360pxで14px。下限は14px。幅320pxでは収まらず、「寄り添う」と「ジュエリー」の間で折り返す） */
.sec-scenes__gift-text {
  margin-top: 24px;
  font-size: clamp(14px, calc((100vw - 94px) / 19), 15px);
  line-height: 1.9;
}

/* 本文の2つのまとまり（「大切な人を〜託して。」／「進学や就職〜贈り物に。」）。
   スマホは、まとまりの間を行間より少し広くあける（行と行のすき間 約13px → 約21px） */
.sec-scenes__gift-group {
  display: block;
}

.sec-scenes__gift-group + .sec-scenes__gift-group {
  margin-top: 0.55em;
}

/* パッケージ例を隠す（11/24。PC・スマホとも）：大きい写真で箱を見せているため、内容が重なる小さい写真を外す。
   HTMLは残しているので、.sec-scenes__gift から --no-package を外せば元に戻る */
.sec-scenes__gift--no-package .sec-scenes__package {
  display: none;
}

/* パッケージ例（閉じたギフトボックスの写真。写真全体を台紙の上に置く） */
.sec-scenes__package {
  max-width: 220px;
  margin: 28px auto 0;
}

.sec-scenes__package-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--c-heading);
}

.sec-scenes__action {
  margin-top: 32px;
}

/* ---------- PC ---------- */
@media (min-width: 900px) {
  .sec-scenes__lead {
    margin-top: 28px;
    font-size: var(--fs-text-pc);
  }

  /* 写真と文を左右に並べ、1段ごとに左右を入れ替える */
  .sec-scenes__rows {
    gap: 56px;
    max-width: 960px;
    margin: 64px auto 0;
  }

  .sec-scenes__row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 48px;
  }

  .sec-scenes__row:nth-child(even) .sec-scenes__photo {
    order: 2;
  }

  .sec-scenes__title {
    font-size: 24px;
  }

  .sec-scenes__text {
    margin-top: 12px;
    font-size: var(--fs-text-pc);
  }

  .sec-scenes__bridge {
    margin-top: 72px;
  }

  .sec-scenes__bridge::before {
    height: 56px;
  }

  /* ギフト：文を左、写真を右。パッケージ例は、大きい写真の左下の角に少し重ねる（11/22。前は文の下）。
     元案のように写真を大きく見せるため、まとまりの幅を広げ（960px → 1120px）、写真の列を広くした（写真の幅 約396px → 約560px）。
     文の列の下は空きの行（1fr）にして、見出し・本文の間隔が写真の高さで広がらないようにする */
  .sec-scenes__gift {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.2fr);
    grid-template-areas:
      "title   photo"
      "message photo"
      "text    photo"
      ".       photo"
      "action  action";
    grid-template-rows: auto auto auto 1fr auto;
    column-gap: 48px;
    align-items: start;
    max-width: 1120px;
    margin: 32px auto 0;
    padding: 64px 48px 64px 64px;
    text-align: left;
  }

  .sec-scenes__gift-title {
    grid-area: title;
    font-size: 26px; /* セクション見出し（32px）より一段小さく（11/20。前は30px） */
  }

  .sec-scenes__gift-message {
    grid-area: message;
    font-size: 19px;
  }

  /* 大きい写真：列の下に寄せ、下にパッケージ例がはみ出す分（小さい写真の高さ136px − 重なり64px ＝ 72px）をあける */
  .sec-scenes__gift-photo {
    grid-area: photo;
    align-self: end;
    width: 100%;
    margin: 0 0 72px;
  }

  .sec-scenes__gift-text {
    grid-area: text;
    font-size: var(--fs-text-pc);
  }

  /* PCは前と同じ：まとまりの間はあけない（ふつうの改行と同じ見た目） */
  .sec-scenes__gift-group + .sec-scenes__gift-group {
    margin-top: 0;
  }

  /* パッケージ例（PCだけ）：大きい写真と同じ場所に置き、左下の角に重ねる。
     小さい写真の上の64pxが大きい写真の台紙にかかり、左へ40pxはみ出す。かかるのは大きい写真の左下の何も写っていない所
     （写真の横0〜13%・縦89〜100%）だけで、箱とペンダントにはかからない。
     【未確認】のラベルと説明は、小さい写真の右横（大きい写真の下の端より下）に置く */
  .sec-scenes__package {
    grid-area: photo;
    align-self: end;
    justify-self: start;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    gap: 10px;
    max-width: none;
    margin: 0 0 0 -40px;
  }

  /* 重なりが分かるよう、細い白の縁取りと、ごく薄い影を付ける（大きい写真の背景が白に近いため、主に影で分かる） */
  .sec-scenes__package-photo {
    width: 136px;
    flex-shrink: 0;
    padding: 7px;
    box-shadow: 0 0 0 3px var(--c-bg-white), 0 6px 16px var(--shadow-gift-package);
  }

  .sec-scenes__package-caption {
    justify-content: flex-start;
    margin: 0 0 2px;
    white-space: nowrap;
  }

  /* パッケージ例を隠したとき：大きい写真の下にあけていた、パッケージ例がはみ出す分（72px）をなくす */
  .sec-scenes__gift--no-package .sec-scenes__gift-photo {
    margin-bottom: 0;
  }

  .sec-scenes__action {
    grid-area: action;
    margin-top: 48px;
    text-align: center;
  }
}

/* スマホ：見出しを一回り小さく（PCは変えない） */
@media (max-width: 899px) {
  .sec-scenes__title {
    font-size: 18px;
  }

  .sec-scenes__gift-title {
    font-size: clamp(16px, 4.8vw, 19px); /* セクション見出し（約21px）より一段小さく（11/20。前は20px） */
  }

  .sec-scenes__gift-message {
    font-size: 16px;
  }
}

/* ギフトの見出し：PCの幅900〜1199px。「大切な人を想う気／持ちを、」と言葉の途中で改行されないよう、
   画面の幅に合わせて小さくする（1200px以上は26px） */
@media (min-width: 900px) and (max-width: 1199px) {
  .sec-scenes__gift-title {
    font-size: min(26px, 2.3vw);
  }

  /* パッケージ例：大きい写真が小さくなる幅では、小さい写真も一回り小さくし（136px → 112px）、重なりを64px → 52pxにする
     （大きい写真の左下にかかる範囲を、1200px以上と同じくらいに保つ）。下のあきは 112 − 52 ＝ 60px */
  .sec-scenes__gift-photo {
    margin-bottom: 60px;
  }

  .sec-scenes__package-photo {
    width: 112px;
    padding: 6px;
  }
}
