/*
  七五三LP｜CSS編集ガイド

  数値・単位・色・URL・セレクター・宣言順・ルール順は元ファイルのままです。
  編集箇所は下記の [CSS-xx] を検索してください。
  同じ対象の基本設定と追加調整を、元の位置に残しています。
  重複や上書きを削除・移動すると表示が変わるため、統合していません。

  ■ よく編集する項目
  文字サイズ：01の --body-size / --heading-size と各セクションの font-size。
  PC文字サイズ：14の基本設定、および17以降の追加調整。
  余白：margin / padding / gap。PCのセクション余白は18。
  ロゴ：04（共通）→19（PC）。
  TOP写真・コピー：04→14→17→20（最終位置・フェード）。
  プロローグ：05→14→17。縦書きアニメーションは16。
  選び方：06→14→17（並び順）→18（余白）。
  着用シーン：07→14→26（スマホ高さ）→27（写真位置）→28（タイトル位置）。
  商品紹介：08→14→18。
  エンディング：09→14→21〜23（写真表示）→24（登場アニメーション）。
  スクロール演出全体の長さ：01の --closing-scroll。
  白くなるタイミング・本文やリンクの表示タイミング：script.js側で調整。

  ■ 画面幅の条件
  359px以下：小さいスマホ ／ 599px以下：着用シーンの画像サイズ対策
  600〜899px：タブレット ／ 900px以上：PC ／ 767px以下：余白ユーティリティ
  共通指定はPCにも適用されます。メディア条件・詳細度・記述順に注意してください。

  ■ 目次
  [CSS-01] 共通変数：色・文字・余白・演出の長さ
  [CSS-02] 共通リセット・ページ全体
  [CSS-03] 共通セクション・見出し・あしらい
  [CSS-04] ロゴ・TOP・導入文・ボタン：基本
  [CSS-05] プロローグ：写真・縦書き・小写真
  [CSS-06] 選び方：写真・番号・枠・説明文
  [CSS-07] 着用シーン：基本・背景フェード・タイトル
  [CSS-08] 商品紹介：一覧・商品名・説明文
  [CSS-09] エンディング：基本・スクロール演出
  [CSS-10] フッター・TOPへ戻るボタン
  [CSS-11] 共通フェードイン・動きを減らす設定
  [CSS-12] 小さいスマホ：359px以下
  [CSS-13] タブレット：600〜899px
  [CSS-14] PC基本設定：900px以上
  [CSS-15] 動きを減らす設定・印刷
  [CSS-16] 縦書き本文：段落ごとの表示
  [CSS-17] PC追加調整：TOP・導入文・プロローグ・選び方
  [CSS-18] PC追加調整：セクション余白・注意書き
  [CSS-19] PCロゴ：最終サイズ
  [CSS-20] TOP：最終トリミング・PC配置・左右フェード
  [CSS-21] エンディング写真：共通トリミング
  [CSS-22] エンディング写真：PC全体表示
  [CSS-23] エンディング写真：PC最終サイズ・左右フェード
  [CSS-24] エンディング写真：登場時のフェードイン
  [CSS-25] 下余白ユーティリティ：共通・767px以下
  [CSS-26] スマホ着用シーン：高さ・画像サイズ対策
  [CSS-27] 着用シーン：写真ごとの最終トリミング
  [CSS-28] 着用シーン：タイトル画像ごとの位置
*/


/* 七五三LP / smartphone first
   調整順：01 共通変数 → 各セクション → 最後のPC設定。
   写真と手書き素材が入るまでは仮表示。素材一覧はREADME参照。 */


/* ============================================================
   [CSS-01] 共通変数：色・文字・余白・演出の長さ
   ============================================================ */

/* 01. 色・文字・余白（全体の調整はここから） */
:root {
  --paper: #ece6dc;
  --ink: #132f52;
  --gold: #9b8764;
  --line: #c5b58e;
  --green: #7da182;
  --serif: "Yu Mincho", "游明朝", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  --body-size: 14px;
  --heading-size: clamp(18px, 5vw, 24px);
  --section-gap: 72px;
  --side: 22px;
  --content-max: 1080px;
  --closing-scroll: 250svh; /* 締め演出の長さ。増やすほどゆっくり */
}

/* ============================================================
   [CSS-02] 共通リセット・ページ全体
   ============================================================ */

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--serif);
  font-size: var(--body-size);
  line-height: 1.9;
  -webkit-text-size-adjust: 100%;
}
h1,h2,h3,p,figure {
  margin: 0;
}
h1,h2,h3 {
  font-weight: 400;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
  width: 100%;
  height: auto;
}
button,a {
  -webkit-tap-highlight-color: transparent;
}
a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 5px;
}
a:hover {
  text-decoration-color: var(--ink);
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 12px;
  z-index: 100;
  padding: 10px 20px;
  background: white;
}
.skip-link:focus {
  top: 10px;
}

/* ============================================================
   [CSS-03] 共通セクション・見出し・あしらい
   ============================================================ */

.section-space {
  padding-block: var(--section-gap);
}
.section-inner {
  width: min(100% - var(--side) * 2, var(--content-max));
  margin-inline: auto;
}
.section-heading {
  position: relative;
  isolation: isolate;
  padding: 26px 8px;
  margin-bottom: 34px;
  text-align: center;
  font-size: var(--heading-size);
  line-height: 1.75;
  letter-spacing: .035em;
}
/* あしらい仮表示。完成PNGに変更する場合は ::before/after を無効にし、
   対象見出しに background: url("img/heading-choice.png") center / contain no-repeat; を設定。 */
.wash::before,.wash::after {
  content: "";
  position: absolute;
  inset: 0 -10px;
  z-index: -1;
  pointer-events: none;
}
.wash::before {
  background: var(--wash-color, var(--green));
  opacity: .19;
  border-radius: 46% 54% 63% 37% / 48% 36% 64% 52%;
  transform: rotate(-5deg);
}
/* 白いあしらいのみ85%に縮小。色付きの ::before は変更しません。 */
.wash::after {
  inset: 8% 12% -5% -6%;
  background: #fffdf6;
  opacity: .55;
  border-radius: 60% 40% 58% 42% / 40% 62% 38% 60%;
  transform: rotate(9deg) scale(.85);
  transform-origin: center;
}
/* 見出しのクラス名は共通。背景色だけ各セクションで指定します。 */
.prologue {
  --wash-color: #bb959a;
}
.choice,.collection {
  --wash-color: var(--green);
}
.scenes {
  --wash-color: #8a8295;
}
.text-link {
  display: inline-block;
  min-height: 44px;
  padding-block: 8px 5px;
  color: #786647;
  text-decoration: underline;
  text-underline-offset: 7px;
  text-decoration-thickness: 1px;
  line-height: 1.8;
}


/* ============================================================
   [CSS-04] ロゴ・TOP・導入文・ボタン：基本
   ============================================================ */

/* 02. ロゴ・ファーストビュー */
.site-header {
  min-height: 74px;
  display: grid;
  place-items: center;
}
.site-header .brand {
  display: block;
  padding: 0;
  line-height: 0;
}
.site-header .brand img {
  width: 132px;
  height: auto;
}
.hero-visual {
  position: relative;
  min-height: 520px;
  height: 154vw;
  max-height: 730px;
  overflow: hidden;
}
.hero-photo {
  height: 100%;
  object-fit: cover;
  object-position: 65% center;
}
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,rgba(250,248,242,.84),rgba(250,248,242,.55) 38%,transparent 67%);
  pointer-events: none;
}
.hero-copy {
  position: absolute;
  z-index: 1;
  left: 5.5%;
  top: 29%;
  width: 88%;
}
.eyebrow {
  color: #88785f;
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 14px;
  letter-spacing: .025em;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(25px,7.2vw,38px);
  line-height: 1.65;
  letter-spacing: .015em;
}
.hero-sub {
  font-size: clamp(10px,2.8vw,13px);
  margin-top: 15px;
}
.intro {
  padding: 140px var(--side) 100px;
  max-width: 700px;
  margin-inline: auto;
  text-align: center;
  letter-spacing: .13em;
  line-height: 2.35;
}
.intro p + p {
  margin-top: 45px;
}
.intro-links {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 16px;
  margin-top: 80px;
  letter-spacing: .025em;
}
.soft-button {
  display: grid;
  align-content: center;
  min-height: 58px;
  padding: 8px 4px;
  background: #d6c6a5;
  color: #fff;
  border: 1px solid #d6c6a5;
  line-height: 1.8;
  font-size: 13px;
}
.soft-button--outline {
  background: #f5f1e9;
  color: #8b7754;
}


/* ============================================================
   [CSS-05] プロローグ：写真・縦書き・小写真
   ============================================================ */

/* 03. プロローグ（見出しは共通の .section-heading で中央揃え） */
.prologue-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
}
.prologue-photo img {
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.vertical-copy {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  height: 345px;
  margin: 30px auto 0;
  font-size: 14px;
  line-height: 1.95;
  letter-spacing: .09em;
  max-width: 100%;
}
.vertical-copy p + p {
  margin-right: 15px;
}
.prologue-small {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-top: -30px;
  padding-right: 4px;
}
.prologue-small img {
  width: calc(50% - 8px);
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.prologue-small img:first-child {
  opacity: 1;
  transform: translateY(-35px);
}
.prologue-small img:last-child {
  width: 42%;
}


/* ============================================================
   [CSS-06] 選び方：写真・番号・枠・説明文
   ============================================================ */

/* 04. 選び方：写真と縦書きタイトルを左右交互 */
.choice {
  padding: 90px 10px;
}
.choice .section-heading {
  margin-inline: -6px;
  margin-bottom: 100px;
  /* タイトルと01の間 */
}
.point-list {
  display: grid;
  gap: 120px;
}
.point {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(102px,.62fr);
  gap: 17px;
  align-items: center;
}
.point figure {
  grid-column: 1;
  grid-row: 1;
}
/* セクション3：透過PNGをタイトル枠に使用。上下paddingで文字と飾りの間隔を調整。 */
.point-title {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 300px;
  padding: 32px 16px 36px;
  position: relative;
  background: url("img/あしらい.png") center / 100% 100% no-repeat;
}
.point-number {
  font-family: Georgia,serif;
  font-size: 25px;
  line-height: 1.3;
  color: var(--gold);
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
}
.point h3 {
  writing-mode: vertical-rl;
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: .1em;
}
.point figure img {
  aspect-ratio: 4 / 4.5;
  object-fit: cover;
  object-position: center 20%;
}
.point figcaption {
  margin-top: 10px;
  text-align: left;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: .07em;
}
.point:nth-child(even) {
  grid-template-columns: minmax(102px,.62fr) minmax(0,1fr);
}
.point:nth-child(even) .point-title {
  grid-column: 1;
}
.point:nth-child(even) figure {
  grid-column: 2;
}


/* ============================================================
   [CSS-07] 着用シーン：基本・背景フェード・タイトル
   ============================================================ */

/* 05. 着用シーン：白い斜めパネル・支給された手書きタイトルPNG */
.scenes {
  padding-top: 10px;
}
.scenes > .section-heading {
  margin-inline: 16px;
  margin-bottom: 30px;
}
.scene-list {
  display: grid;
  gap: 10px;
  max-width: var(--content-max);
  margin: auto;
}
.scene {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 300px;
  background: #faf9f6;
  overflow: hidden;
}
.scene figure {
  grid-column: 2;
  grid-row: 1;
  min-height: 300px;
}
.scene figure img {
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
}
.scene-copy {
  grid-column: 1;
  grid-row: 1;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 35px 8px 28px 19px;
  isolation: isolate;
  position: relative;
  z-index: 1;
}
/* テキストが左・写真が右：白背景から写真へフェード */
.scene-copy::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 -36px 0 0;
  clip-path: none;
  background: linear-gradient(
    to right,
    #faf9f6 0,
    #faf9f6 calc(100% - 36px),
    rgba(250, 249, 246, 0) 100%
  );
  pointer-events: none;
}
.hand-title {
  font-size: clamp(18px,4.5vw,24px);
  line-height: 1.65;
  letter-spacing: .035em;
  margin-bottom: 19px;
}
.hand-title img {
  height: auto;
  width: 100%;
}
.scene-lead {
  font-size: 15px;
  line-height: 1.7;
}
.scene-detail {
  font-size: 12px;
  line-height: 1.9;
  margin-top: 18px;
}
.scene:nth-child(even) figure {
  grid-column: 1;
}
.scene:nth-child(even) .scene-copy {
  grid-column: 2;
  padding-inline: 13px 12px;
}
/* 写真が左・テキストが右：フェードの向きを反転 */
.scene:nth-child(even) .scene-copy::before {
  inset: 0 0 0 -36px;
  background: linear-gradient(
    to left,
    #faf9f6 0,
    #faf9f6 calc(100% - 36px),
    rgba(250, 249, 246, 0) 100%
  );
}
.scene-note {
  width: min(100% - 44px,850px);
  margin: 22px auto 0;
  padding-top: 13px;
  border-top: 1px solid #c3c3bb;
  font-size: 10px;
  text-align: center;
  line-height: 1.85;
}


/* ============================================================
   [CSS-08] 商品紹介：一覧・商品名・説明文
   ============================================================ */

/* 06. 商品：SPでも2列。英語は自動折返し、名前を切らない */
.collection {
  padding-top: 18px;
}
.collection .section-inner {
  --side: 17px;
}
.collection .section-heading {
  margin-bottom: 38px;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 50px 16px;
}
.product {
  min-width: 0;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.product-photo {
  width: 100%;
  display: block;
  overflow: hidden;
  background: #e1ded7;
}
.product-photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  object-fit: cover;
  object-position: center top;
  transition: opacity .4s;
}
.product-photo:hover img {
  opacity: .85;
}
.product h3 {
  font-size: 15px;
  line-height: 1.65;
  margin-top: 11px;
}
.product-en {
  font-family: Georgia,serif;
  font-style: italic;
  font-size: 12px;
  line-height: 1.6;
  margin: 2px 0 9px;
  overflow-wrap: anywhere;
}
.product-description {
  font-size: 13px;
  line-height: 1.85;
  margin-bottom: 6px;
}
.product .text-link {
  margin-top: auto;
  font-size: 13px;
}


/* ============================================================
   [CSS-09] エンディング：基本・スクロール演出
   ============================================================ */

/* 07. 締め：JSが正常に動く場合のみsticky演出。JSなしでも本文・リンクは読めます。 */
.closing {
  background: #faf9f6;
}
.closing-stage {
  position: relative;
  max-width: 1400px;
  margin: auto;
}
.closing-photo {
  max-height: 720px;
  object-fit: cover;
  object-position: center 30%;
}
.closing-veil {
  display: none;
}
.closing-copy {
  padding: 30px 20px 48px;
}
.closing-copy h2 {
  font-size: clamp(23px,6.2vw,32px);
  line-height: 1.6;
  margin-bottom: 24px;
}
.closing-copy p {
  font-size: 14px;
  line-height: 1.9;
  margin-bottom: 13px;
}
.closing-links {
  display: grid;
  justify-items: start;
  margin-top: 15px;
}
.closing-links a {
  font-size: 14px;
}
.closing.is-animated {
  height: var(--closing-scroll);
}
.is-animated .closing-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 580px;
  overflow: hidden;
}
.is-animated .closing-photo {
  position: absolute;
  inset: 0;
  height: 100%;
  max-height: none;
  object-fit: cover;
}
.is-animated .closing-veil {
  display: block;
  position: absolute;
  inset: 0;
  background: #faf9f6;
  opacity: var(--veil,0);
}
.is-animated .closing-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: var(--copy,0);
  transform: translateY(calc((1 - var(--copy,0)) * 22px));
}
.is-animated .closing-links {
  opacity: var(--links,0);
  transform: translateY(calc((1 - var(--links,0)) * 14px));
}

/* ============================================================
   [CSS-10] フッター・TOPへ戻るボタン
   ============================================================ */

.site-footer {
  padding: 44px 20px 80px;
  background: var(--ink);
  text-align: center;
  color: #f2ece2;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  justify-content: center;
  font-family: Georgia,serif;
  margin-bottom: 30px;
}
.site-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.footer-brand {
  display: inline-block;
  font-family: Georgia,serif;
  font-size: 28px;
  letter-spacing: .16em;
}
.site-footer p {
  font-size: 12px;
  margin: 18px 0;
}
.site-footer small {
  display: block;
  font-size: 9px;
  line-height: 1.9;
  opacity: .8;
}
.back-to-top {
  position: fixed;
  right: 14px;
  bottom: 16px;
  z-index: 10;
  width: 46px;
  height: 46px;
  border: 1px solid #b3a487;
  border-radius: 50%;
  background: rgba(250,249,246,.92);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  line-height: 1.2;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s,visibility .3s;
}
.back-to-top span {
  font-size: 19px;
  line-height: 1;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}

/* ============================================================
   [CSS-11] 共通フェードイン・動きを減らす設定
   ============================================================ */

/* 共通フェード：ゆっくり、控えめに浮かび上がる */
.reveal {
  transition:
    opacity 1.2s ease,
    transform 1.2s cubic-bezier(.22, 1, .36, 1);
}

.reveal.is-pending {
  opacity: 0;
  transform: translateY(14px);
}

/* キーボードでリンクへ移動した場合も表示 */
.reveal.is-pending:focus-within {
  opacity: 1;
  transform: none;
}

/* 動きを減らす設定・印刷時は通常表示 */
@media (prefers-reduced-motion: reduce), print {
  .reveal,
  .reveal.is-pending {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================================
   [CSS-12] 小さいスマホ：359px以下
   ============================================================ */

@media (max-width: 359px) {
  :root {
    --side: 16px;
    --body-size: 13px;
  }
  .vertical-copy {
    font-size: 12px;
    height: 330px;
    line-height: 1.85;
  }
  .vertical-copy p + p {
    margin-right: 6px;
  }
  .scene-copy {
    padding-left: 12px;
  }
  .scene-detail {
    font-size: 11px;
  }
  .scene-lead {
    font-size: 12px;
  }
  .product-grid {
    gap: 28px 12px;
  }
  .product h3 {
    font-size: 14px;
  }
  .product-description {
    font-size: 12px;
  }
  .closing-copy {
    padding-inline: 16px;
  }
  .closing-copy h2 {
    font-size: 21px;
  }
  .closing-copy p,.closing-links a {
    font-size: 13px;
  }
}


/* ============================================================
   [CSS-13] タブレット：600〜899px
   ============================================================ */

/* 08. タブレット：スマホの見た目を適切な最大幅に */
@media (min-width: 600px) and (max-width: 899px) {
  .hero-visual,.prologue,.choice,.scenes,.collection {
    max-width: 600px;
    margin-inline: auto;
  }
  .vertical-copy {
    margin-inline: auto;
    font-size: 16px;
    height: 365px;
  }
  .scene {
    min-height: 380px;
  }
}


/* ============================================================
   [CSS-14] PC基本設定：900px以上
   ============================================================ */

/* 09. PC専用（修正依頼時は主にこのブロックを編集） */
@media (min-width: 900px) {
  :root {
    --body-size: 16px;
    --heading-size: 30px;
    --section-gap: 90px;
    --side: 36px;
  }
  .site-header {
    min-height: 82px;
  }
  .hero-visual {
    height: 610px;
    max-height: none;
    min-height: 0;
    max-width: 1440px;
    margin: auto;
  }
  .hero-photo {
    width: 60%;
    margin-left: auto;
    object-fit: cover;
    object-position: center 30%;
  }
  .hero-visual::after {
    background: linear-gradient(90deg,var(--paper) 26%,rgba(236,230,220,.8) 40%,transparent 62%);
  }
  .hero-copy {
    top: 27%;
    left: max(6%,calc((100% - 1080px)/2));
    width: 50%;
  }
  .hero h1 {
    font-size: 40px;
    line-height: 1.8;
  }
  .eyebrow {
    font-size: 17px;
    letter-spacing: .1em;
  }
  .hero-sub {
    font-size: 17px;
  }
  .intro {
    padding-top: 52px;
  }
  .intro p {
    line-height: 2.1;
  }
  .intro p + p {
    margin-top: 25px;
  }
  .intro-links {
    max-width: 500px;
    margin-inline: auto;
  }
  .prologue-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 60px;
    align-items: start;
  }
  .prologue .section-heading {
    grid-column: 2;
    grid-row: 1;
  }
  .prologue-photo {
    grid-column: 1;
    grid-row: 1 / 3;
    aspect-ratio: 4 / 5;
  }
  .vertical-copy {
    grid-column: 2;
    grid-row: 2;
    margin: 0 auto;
    font-size: 16px;
    height: 370px;
  }
  .prologue-small {
    grid-column: 2;
    margin-top: 30px;
    width: 70%;
    justify-self: end;
  }
  .choice .section-heading {
    max-width: 770px;
    margin: 0 auto 65px;
  }
  .point-list {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 45px;
  }
  .point-title {
    min-height: 340px;
  }
  .point h3 {
    font-size: 19px;
  }
  .point figcaption {
    font-size: 15px;
  }
  .scenes > .section-heading {
    max-width: 770px;
    margin: 0 auto 50px;
  }
  .scene-list {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 18px;
  }
  .scene,.scene figure {
    min-height: 375px;
  }
  .scene-copy {
    padding-left: 24px;
  }
  .hand-title {
    font-size: 23px;
  }
  .scene-lead {
    font-size: 16px;
  }
  .scene-detail {
    font-size: 13.5px;
  }
  .scene-note {
    font-size: 12px;
  }
  .collection .section-heading {
    max-width: 770px;
    margin-inline: auto;
    margin-bottom: 55px;
  }
  .product-grid {
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 50px 32px;
  }
  .product h3 {
    font-size: 19px;
  }
  .product-en {
    font-size: 15px;
  }
  .product-description,.product .text-link {
    font-size: 15px;
  }
  .closing-copy {
    padding: 60px max(6%,calc((100% - 1080px)/2));
  }
  .closing-copy h2 {
    font-size: 34px;
  }
  .closing-copy p,.closing-links a {
    font-size: 16px;
  }
  .closing-photo {
    width: 60%;
    margin-left: auto;
  }
  .is-animated .closing-photo {
    left: auto;
  }
}

/* ============================================================
   [CSS-15] 動きを減らす設定・印刷
   ============================================================ */

/* 動きを減らす設定・低い画面では読める通常レイアウト */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,*::before,*::after {
    transition: none !important;
  }
}
@media print {
  .site-header,.site-footer,.back-to-top {
    display: none;
  }
  .closing.is-animated {
    height: auto;
  }
  .is-animated .closing-stage {
    position: relative;
    height: auto;
    overflow: visible;
  }
  .is-animated .closing-photo {
    position: static;
    max-height: 400px;
  }
  .is-animated .closing-copy {
    position: static;
    opacity: 1;
    transform: none;
  }
  .is-animated .closing-links {
    opacity: 1;
    transform: none;
  }
  .reveal.is-pending {
    opacity: 1;
    transform: none;
  }
}


/* ============================================================
   [CSS-16] 縦書き本文：段落ごとの表示
   ============================================================ */

/* 縦書き本文：段落ごとに右からふんわり表示 */
.vertical-copy p {
  transition:
    opacity 1.2s ease,
    translate 1.2s cubic-bezier(.22, 1, .36, 1);
  transition-delay: var(--vertical-delay, 0s);
}

.vertical-copy.is-right-pending p {
  opacity: 0;
  translate: 12px 0;
}

@media (prefers-reduced-motion: reduce), print {
  .vertical-copy p,
  .vertical-copy.is-right-pending p {
    opacity: 1;
    translate: none;
    transition: none;
  }
}


/* ============================================================
   [CSS-17] PC追加調整：TOP・導入文・プロローグ・選び方
   ============================================================ */

/* ==================================================
   PC表示の調整（900px以上）
   ================================================== */
@media (min-width: 900px) {

  /* ① TOP：横幅いっぱい＋ロゴを含めて画面の高さに */
  .site-header {
    height: 82px;
    min-height: 82px;
  }

  .hero-visual {
    width: 100%;
    max-width: none;
    height: calc(100vh - 82px);
    height: calc(100svh - 82px);
    min-height: 520px;
    max-height: none;
    margin: 0;
  }

  /* 写真を右側へ、画面端まで広げる */
  .hero-photo {
    width: 64%;
    height: 100%;
    margin-left: auto;
    object-fit: cover;
    object-position: center 30%;
  }

  .hero-copy {
    left: 10%;
    top: 25%;
    width: 42%;
  }


  /* ② 導入文：写真との間・段落・ボタンに余白 */
  .intro {
    width: 100%;
    max-width: 900px;
    padding: 110px 40px 100px;
    margin-inline: auto;
    font-size: 19px;
    letter-spacing: .12em;
  }

  .intro p {
    font-size: inherit;
    line-height: 2.5;
  }

  .intro p + p {
    margin-top: 44px;
  }

  .intro-links {
    width: 100%;
    max-width: 720px;
    gap: 26px;
    margin: 76px auto 0;
  }

  .intro-links .soft-button {
    min-height: 88px;
    padding: 18px 24px;
    font-size: 17px;
    line-height: 1.9;
  }


  /* ③ プロローグ：小さな写真2枚を本文のすぐ下へ */
  .prologue-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    column-gap: 60px;
    row-gap: 20px;
    align-items: start;
  }

  .prologue .section-heading {
    grid-column: 2;
    grid-row: 1;
  }

  /* 左の大きな写真は右側3段にまたがって配置 */
  .prologue-photo {
    grid-column: 1;
    grid-row: 1 / 4;
    align-self: start;
  }

  .prologue .vertical-copy {
    grid-column: 2;
    grid-row: 2;
    height: 320px;
    margin: 0 auto;
  }

  .prologue-small {
    grid-column: 2;
    grid-row: 3;
    justify-self: center;
    align-self: start;
    width: 78%;
    margin: 35px 0 0;
    padding: 0;
    gap: 20px;
    align-items: flex-start;
  }

  .prologue-small img {
    width: calc((100% - 20px) / 2);
    aspect-ratio: 3 / 4;
    object-fit: cover;
  }

  /* 左の写真を少し高く、右を少し低く */
  .prologue-small img:first-child {
    transform: translateY(-35px);
  }

  .prologue-small img:last-child {
    width: calc((100% - 20px) / 2);
    transform: none;
  }


  /* ④ 選び方：2列・全項目を写真左／飾り枠右に */
  .point-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 60px;
    row-gap: 70px;
  }

  .point-list > .point,
  .point-list > .point:nth-child(even) {
    grid-template-columns: minmax(0, 1fr) minmax(102px, .62fr);
    gap: 24px;
    align-items: center;
  }

  .point-list > .point figure {
    grid-column: 1;
    grid-row: 1;
  }

  .point-list > .point .point-title {
    grid-column: 2;
    grid-row: 1;
  }

  /* 右上01・左上02・右下03・左下04 */
  .point-list > .point:nth-child(1) {
    grid-column: 2;
    grid-row: 1;
  }

  .point-list > .point:nth-child(2) {
    grid-column: 1;
    grid-row: 1;
  }

  .point-list > .point:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
  }

  .point-list > .point:nth-child(4) {
    grid-column: 1;
    grid-row: 2;
  }
}


/* ============================================================
   [CSS-18] PC追加調整：セクション余白・注意書き
   ============================================================ */

/* PC：各セクションの余白・注意書きの調整 */
@media (min-width: 900px) {

  /* 1枚目：選び方のタイトルと01・02の間 */
  .choice .section-heading {
    margin-bottom: 120px;
  }

  /* 1枚目：上段（01・02）と下段（03・04）の間 */
  .point-list {
    row-gap: 120px;
  }

  /* 2枚目：選び方の終わり〜次のタイトルまで */
  .choice {
    padding-bottom: 150px;
  }

  .scenes {
    padding-top: 40px;
  }

  /* 2枚目：着用シーンのタイトルと写真の間 */
  .scenes > .section-heading {
    margin-bottom: 100px;
  }

  /* 3枚目・青枠：注意書きの文字サイズ */
  .scene-note {
    font-size: 15px;
    line-height: 2;
  }

  /* 3枚目：注意書き〜商品紹介タイトルまで */
  .scenes {
    padding-bottom: 120px;
  }

  .collection {
    padding-top: 50px;
  }

  /* 3枚目：商品紹介タイトルと商品画像の間 */
  .collection .section-heading {
    margin-bottom: 110px;
  }

  /* 4枚目：最後の商品〜締めの画像まで */
  .collection {
    padding-bottom: 170px;
  }
}

/* ============================================================
   [CSS-19] PCロゴ：最終サイズ
   ============================================================ */

/* PC表示のみ：ヘッダーロゴを拡大 */
@media (min-width: 900px) {
  .site-header .brand img {
    width: 180px;
    height: auto;
  }
}


/* ============================================================
   [CSS-20] TOP：最終トリミング・PC配置・左右フェード
   ============================================================ */

/* スマホ・PC共通：写真の右側を優先して表示 */
.hero-photo {
  object-fit: cover;
  object-position: 80% center;
}
@media (min-width: 900px) {

  /* テキストを少し中央へ */
  .hero-copy {
    left: 15%;
  }

  /* 写真全体を少し左へ移動 */
  .hero-photo {
    width: 64%;
    height: 100%;
    margin-left: auto;
    margin-right: 5%;
    object-fit: cover;
    object-position: right center;

    /* 左は広め、右は控えめにフェード */
    -webkit-mask-image: linear-gradient(
      to right,
      transparent 0%,
      #000 30%,
      #000 92%,
      transparent 100%
    );

    mask-image: linear-gradient(
      to right,
      transparent 0%,
      #000 30%,
      #000 92%,
      transparent 100%
    );
  }

  .hero-visual {
    background-color: var(--paper, #ece6dc);
  }

  .hero-visual::after {
    background: none;
  }
}


/* ============================================================
   [CSS-21] エンディング写真：共通トリミング
   ============================================================ */

/* エンディング：スマホ */
.closing .closing-photo {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;

  /* 左側にいるモデルを優先して表示 */
  object-position: 10% center;
}


/* ============================================================
   [CSS-22] エンディング写真：PC全体表示
   ============================================================ */

/* エンディング：PC */
@media (min-width: 900px) {
  .closing {
    width: 100%;
    max-width: none;
  }

  .closing .closing-stage {
    width: 100%;
    max-width: none;
    background-color: var(--paper, #ece6dc);
  }

  .closing .closing-photo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
  }
}

/* ============================================================
   [CSS-23] エンディング写真：PC最終サイズ・左右フェード
   ============================================================ */

/* PC：写真そのものの左右両端をフェード */
@media (min-width: 900px) {
  .closing .closing-photo {
    position: absolute;
    inset: 0;
    margin: auto;

    /* 写真の縦横比を保ち、表示範囲内に収める */
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;

    -webkit-mask-image: linear-gradient(
      to right,
      transparent 0%,
      #000 12%,
      #000 88%,
      transparent 100%
    );

    mask-image: linear-gradient(
      to right,
      transparent 0%,
      #000 12%,
      #000 88%,
      transparent 100%
    );
  }
}


/* ============================================================
   [CSS-24] エンディング写真：登場時のフェードイン
   ============================================================ */

/* エンディング写真：ゆっくりフェードイン */
.closing .closing-photo {
  transition: opacity 2s cubic-bezier(.22, 1, .36, 1);
}

.closing .closing-photo.is-entry-pending {
  opacity: 0;
}

.closing .closing-photo.is-entry-visible {
  opacity: 1;
}

/* 動きを減らす設定への対応 */
@media (prefers-reduced-motion: reduce) {
  .closing .closing-photo {
    transition: none;
  }

  .closing .closing-photo.is-entry-pending {
    opacity: 1;
  }
}


/* ============================================================
   [CSS-25] 下余白ユーティリティ：共通・767px以下
   ============================================================ */

/*===== マージン群 =====*/
.mb-10 {
  margin-bottom: 10px;
}
.mb-20 {
  margin-bottom: 20px;
}
.mb-30 {
  margin-bottom: 30px;
}
.mb-40 {
  margin-bottom: 40px;
}
.mb-50 {
  margin-bottom: 50px;
}
.mb-75 {
  margin-bottom: 75px;
}
.mb-100 {
  margin-bottom: 100px;
}
.mb-125 {
  margin-bottom: 125px;
}
.mb-150 {
  margin-bottom: 150px;
}
.mb-200 {
  margin-bottom: 200px;
}
.mb-n10 {
  margin-bottom: -10px;
}
.mb-n20 {
  margin-bottom: -20px;
}
.mb-n30 {
  margin-bottom: -30px;
}
.mb-n40 {
  margin-bottom: -40px;
}
.mb-n50 {
  margin-bottom: -50px;
}

@media (max-width: 767px) {
  .mb-10 {
    margin-bottom: 0.625rem;
  }
  .mb-20 {
    margin-bottom: 1.25rem;
  }
  .mb-30 {
    margin-bottom: 1.875rem;
  }
  .mb-40 {
    margin-bottom: 2.5rem;
  }
  .mb-50 {
    margin-bottom: 3.125rem;
  }
  .mb-75 {
    margin-bottom: 4.6875rem;
  }
  .mb-100 {
    margin-bottom: 6.25rem;
  }
  .mb-125 {
    margin-bottom: 7.8125rem;
  }
  .mb-150 {
    margin-bottom: 9.375rem;
  }
  .mb-200 {
    margin-bottom: 12.5rem;
  }
}



/* ============================================================
   [CSS-26] スマホ着用シーン：高さ・画像サイズ対策
   ============================================================ */

@media (max-width: 599px) {
  /* シーン全体の高さの目安 */
  .scenes .scene {
    height: auto;
    min-height: 280px;
  }

  /* 画像の配置基準 */
  .scenes .scene figure {
    position: relative;
    min-width: 0;
    min-height: 0;
    height: auto;
    align-self: stretch;
    margin: 0;
  }

  /* 画像本来のサイズで、枠が縦に伸びるのを防ぐ */
  .scenes .scene figure img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 20%;
  }
}

/* ============================================================
   [CSS-27] 着用シーン：写真ごとの最終トリミング
   ============================================================ */

/* 1番目のシーン：写真の横位置・縦位置 */
.scenes .scene:nth-child(1) figure img {
  object-position:100% 20%;
}
/* 2番目のシーン：写真の横位置・縦位置 */
.scenes .scene:nth-child(2) figure img {
  object-position: 10% 20%;
}


/* ============================================================
   [CSS-28] 着用シーン：タイトル画像ごとの位置
   ============================================================ */

/* 「七五三・お宮参り」のタイトル画像だけ左へ */
.scene .hand-title img[src$="お宮参り.png"] {
  position: relative;
  left: -12px;
}
/* 「卒業式.png」のタイトル画像だけ左へ */
.scene .hand-title img[src$="卒業式.png"] {
  position: relative;
  left: -12px;
}
