/* ==========================================================================
   STORY FRAME（DEMO／制作練習用）
   Tokens: DESIGN_SYSTEM.md 1-2 / Mobile first → 768px → 1024px
   ========================================================================== */

:root {
  --color-bg: #F7F5F0;
  --color-bg-soft: #FBFAF7;
  --color-bg-deep: #F1ECE4;
  --color-text: #171717;
  --color-text-subtle: #4F4942;
  --color-accent: #BAA48E;
  --color-white: #FFFFFF;
  --color-line: rgba(23, 23, 23, .14);
  --color-line-strong: rgba(23, 23, 23, .26);
  --color-focus: #68482F;
  --color-shape: #EADED6; /* PCのセクション背面に敷く斜めの面 */

  --font-ja-serif: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  --font-en-serif: Georgia, "Times New Roman", serif;
  --font-ui: system-ui, -apple-system, "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif;

  --container: 1200px;
  --radius-image: 8px;
  --radius-panel: 18px;
  --radius-pill: 999px;
  --shadow-soft: 0 10px 30px rgba(23, 23, 23, .06);
  --focus-ring: 3px solid var(--color-focus);
  --ease-smooth: cubic-bezier(.22, 1, .36, 1);
  --motion-fast: 180ms;
  --motion-medium: 550ms;
  --motion-slow: 750ms;
  --header-h: 64px;
  --header-offset: 88px;

  /* CTA：上端が白く抜け、下へ向かってベージュに沈むグラデーション（既存のベージュ系の値のみ使用） */
  --satin: linear-gradient(180deg,
    #FBFAF7 0%,
    #F1ECE4 24%,
    #D7C8B9 62%,
    #D7C8B9 100%);
  /* 外枠：上がベージュ、下が白に近い縁取り */
  --satin-frame: linear-gradient(180deg, #C7B4A1 0%, #D7C8B9 45%, #F1ECE4 100%);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, ol, ul, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

/* 固定ヘッダーにアンカー先を隠させない */
[id] { scroll-margin-top: calc(var(--header-offset) + 12px); }

:focus-visible { outline: var(--focus-ring); outline-offset: 3px; }

.nowrap { display: inline-block; }
.br-pc { display: none; }

.container {
  width: calc(100% - 40px);
  max-width: var(--container);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--color-text);
  color: var(--color-white);
  border-radius: 6px;
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  border-radius: var(--radius-pill);
  font: 600 16px/1.4 var(--font-ui);
  letter-spacing: .04em;
  text-decoration: none;
  transition: transform var(--motion-fast) var(--ease-smooth),
              box-shadow var(--motion-fast) var(--ease-smooth),
              background-color var(--motion-fast) var(--ease-smooth);
}

.button--primary {
  position: relative;
  height: 52px;
  /* 右端の丸アイコン分を左右対称に空け、文字をボタン中央に置く */
  padding: 0 52px;
  color: var(--color-text);
  border: 3px solid transparent;
  background: var(--satin) padding-box, var(--satin-frame) border-box;
}
.button--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(23, 23, 23, .10);
}

/* 右側の丸＋三角アイコン：白い縁の円、内側は淡いグラデーション、中に塗りの三角 */
.button__icon {
  position: absolute;
  top: 50%;
  right: 9px;
  width: 28px;
  height: 28px;
  border: 2.5px solid transparent;
  border-radius: 50%;
  background:
    linear-gradient(180deg, #FBFAF7 0%, #E8E0D6 100%) padding-box,
    linear-gradient(180deg, #E8E0D6 0%, #FFFFFF 100%) border-box;
  transform: translateY(-50%);
}
.button__icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 11px;
  background: rgba(79, 73, 66, .62);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  transform: translate(-38%, -50%);
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.text-link:hover { text-decoration-thickness: 2px; }

/* ---------- DEMO badge ---------- */
.demo-badge {
  display: inline-block;
  padding: 3px 9px;
  font: 600 11px/1.5 var(--font-ui);
  letter-spacing: .04em;
  white-space: nowrap;
  border: 1px solid var(--color-text);
  border-radius: var(--radius-pill);
}
.demo-badge--solid {
  background: var(--color-text);
  color: var(--color-white);
  font-size: 12px;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  background: rgba(247, 245, 240, .95);
  border-bottom: 1px solid var(--color-line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font: 400 15px/1 var(--font-en-serif);
  letter-spacing: .2em;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav,
.site-header__cta { display: none; }

/* ---------- DEMO image placeholder ---------- */
.demo-image {
  position: relative;
  background: linear-gradient(138deg, #E8E0D6, #F4F0E9 50%, #DED4C7);
  border: 1px solid rgba(23, 23, 23, .14);
  border-radius: var(--radius-image);
  overflow: hidden;
}
/* 写真の構図ガイドとしての細い内枠 */
.demo-image::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(23, 23, 23, .10);
  border-radius: 4px;
}
.demo-image__label {
  position: absolute;
  right: 24px;
  bottom: 22px;
  font: 12px/1.5 var(--font-en-serif);
  letter-spacing: .14em;
  color: var(--color-text);
}
.demo-image__label small {
  display: block;
  font: 11px/1.5 var(--font-ui);
  letter-spacing: .04em;
}

/* 写真差し替え時：枠（.demo-image＋比率クラス）は残し、中身だけ <picture>/<img> にする。
   枠の比率・FVの全面表示・視差は枠側が持つため、写真は枠いっぱいに敷いてトリミングする。
   焦点は枠に style="--focal: 60% 35%" のように写真ごとに指定（既定は中央）。 */
.demo-image > picture,
.demo-image > img,
.demo-image > picture > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focal, 50% 50%);
}

.demo-image--4x5 { aspect-ratio: 4 / 5; }
.demo-image--3x2 { aspect-ratio: 3 / 2; }
.demo-image--4x3 { aspect-ratio: 4 / 3; }

figcaption {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--color-text-subtle);
}

/* ---------- 1. FIRST VIEW ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  margin-top: var(--header-h);
  min-height: max(640px, calc(88vh - var(--header-h)));
  min-height: max(640px, calc(88svh - var(--header-h)));
  color: var(--color-white);
  overflow: hidden;
  /* 次セクションへ水平線で切らず、ごく浅い斜めでつなぐ */
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), 0 100%);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.demo-image--hero {
  position: absolute;
  inset: -16px 0;
  border: 0;
  border-radius: 0;
  /* SP：上部に人物を置く想定。下に向かって暗くなるトーン */
  background:
    linear-gradient(105deg, transparent 52%, rgba(255, 250, 240, .16) 68%, transparent 84%),
    linear-gradient(180deg, #B3A191 0%, #94806F 42%, #5E4E43 100%);
}
.demo-image--hero::before {
  inset: 36px 20px;
  border-color: rgba(255, 255, 255, .28);
}
/* 写真の注記（.hero 基準）。SP・タブレットはコピーと重ならないよう写真の左上に置く */
.hero__image-label {
  top: 44px; /* SP：上に .hero__demo（高さ24px）を置くため、その下へ。タブレットは12px */
  bottom: auto;
  left: 36px;
  right: 36px;
  z-index: 1; /* 写真の暗部（.hero__overlay・PCの .hero__shade）より手前に出し、DEMO表示を暗くしない */
  width: fit-content;
  padding: 6px 10px;
  color: var(--color-white);
  background: rgba(23, 23, 23, .62); /* SPで明るいカーテンの上に来ても、下地だけで白文字が読める濃さ */
  border-radius: 4px;
}

/* SP：写真を見せるため上側は薄く。文字の背後の暗部は .hero__title::before が受け持つ */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(23, 23, 23, .04) 0%,
    rgba(23, 23, 23, .08) 30%,
    rgba(23, 23, 23, .40) 55%,
    rgba(23, 23, 23, .70) 100%);
}

.hero__caption { display: none; }

/* SP：.hero__demo を .hero 基準で写真の左上に置くため、ここは位置の基準にしない（タブレット以上で relative に戻す） */
.hero__content {
  padding-bottom: 56px;
}

.hero__shade { display: none; } /* PCのみ（コピーの形に沿う暗部） */

.hero__eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font: 12px/1.6 var(--font-en-serif);
  letter-spacing: .12em;
  text-transform: uppercase;
}
/* SP・タブレット：英字ラベルは写真を見せる位置（h1より上）にあるため、ラベルの周りだけ小さな暗い下地を敷く */
.hero__eyebrow > span[lang="en"] {
  padding: 2px 8px;
  background: rgba(23, 23, 23, .60); /* 背後の暗部をh1近くまで縮めたため、下地だけで白文字が読める濃さにする */
  border-radius: 4px;
}
/* 320px級の画面では写真の見える高さが足りず、英字ラベルが女性の顔に重なるため出さない（装飾の英字なので情報は減らない） */
@media (max-width: 359px) {
  .hero__eyebrow > span[lang="en"] { display: none; }
}
/* SP：英字ラベルと並べると2行になり、英字ラベルが女性の顔にかかるため、写真の左上（DEMO IMAGE表示の上）へ移す。
   英字ラベルは1行になり、その分h1に近づいて顔から離れる。読み上げ順は変えない */
.hero__demo {
  position: absolute;
  top: 12px;
  left: 36px;
  padding: 3px 10px;
  font: 700 12px/1.5 var(--font-ui);
  letter-spacing: .04em;
  text-transform: none;
  color: var(--color-text);
  background: var(--color-white);
  border-radius: var(--radius-pill);
}

.hero__title {
  position: relative;
  margin-top: 16px;
  font-family: var(--font-ja-serif);
  font-weight: 600;
  font-size: clamp(34px, 10.5vw, 42px);
  line-height: 1.3;
  letter-spacing: .02em;
}
/* SP・タブレット：メインコピー（h1）を起点に、上へ向かって透明になる暗部を敷く。
   h1から下（サブコピー・本文・CTA・注記）はしっかり暗く、h1より上は写真を見せる。
   下端はFVの外まで伸ばし、.hero の overflow で切り取る */
.hero__title::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -48px; /* 英字ラベルの上の写真（顔）まで暗部を広げない */
  bottom: -1000px;
  left: -48px;
  width: calc(100vw + 48px);
  background: linear-gradient(180deg,
    rgba(23, 23, 23, 0) 0,
    rgba(23, 23, 23, .30) 24px,
    rgba(23, 23, 23, .66) 48px,
    rgba(23, 23, 23, .72) 100%);
  pointer-events: none;
}

.hero__lead {
  margin-top: 14px;
  font-family: var(--font-ja-serif);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.7;
}

.hero__text {
  margin-top: 14px;
  max-width: 34em;
  font-size: 15px;
  line-height: 1.85;
  color: rgba(255, 255, 255, .94);
}

.hero__cta {
  width: 100%;
  margin-top: 26px;
}

.hero__note {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .9);
}

/* 暗い背景上のフォーカスは白＋茶の二重リング */
.hero :focus-visible {
  outline: 3px solid var(--color-white);
  outline-offset: 3px;
  box-shadow: 0 0 0 9px var(--color-focus);
}

/* ---------- Sections ---------- */
.section {
  position: relative;
  padding-block: 80px;
}
.section > .container { position: relative; z-index: 1; }

/* 斜めの淡いトーン＋上下のフェード帯で境界を直線にしない */
.section--ambient {
  background: linear-gradient(137deg, #F7F5F0 0%, #FAF8F4 44%, #F1ECE4 100%);
}
.section--ambient::before,
.section--ambient::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 160px;
  pointer-events: none;
}
.section--ambient::before {
  top: 0;
  background: linear-gradient(180deg, var(--color-bg), rgba(247, 245, 240, 0));
}
.section--ambient::after {
  bottom: 0;
  background: linear-gradient(0deg, var(--color-bg), rgba(247, 245, 240, 0));
}

.section--deep {
  background: linear-gradient(180deg, var(--color-bg) 0, var(--color-bg-deep) 180px, var(--color-bg-deep) 100%);
}

.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 12px/1.6 var(--font-en-serif);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-text-subtle);
}
.section-label::after {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--color-accent);
}

.section-title {
  margin-top: 20px;
  font-family: var(--font-ja-serif);
  font-weight: 600;
  font-size: 30px;
  line-height: 1.4;
  letter-spacing: .02em;
}

.sub-title {
  font-family: var(--font-ja-serif);
  font-weight: 600;
  font-size: 23px;
  line-height: 1.5;
}

.lead {
  margin-top: 24px;
  max-width: 42ch;
  font-size: 17px;
  line-height: 1.85;
  color: var(--color-text-subtle);
}

.tag {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 10px;
  vertical-align: middle;
  font: 700 12px/1.5 var(--font-ui);
  letter-spacing: .08em;
  color: var(--color-white);
  background: var(--color-text);
  border-radius: var(--radius-pill);
}

/* ---------- 2. PROBLEM ---------- */
.worries {
  margin-top: 48px;
}
.worries__item {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 8px;
  padding: 22px 0;
  border-top: 1px solid var(--color-line);
  font-family: var(--font-ja-serif);
  font-size: 19px;
  line-height: 1.7;
}
.worries__item:last-child { border-bottom: 1px solid var(--color-line); }
/* 頭の中が絡まる線画アイコン（装飾。悩みの内容は本文で伝える） */
.worries__icon {
  width: 36px;
  height: 36px;
}

.problem__answer {
  margin-top: 40px;
  max-width: 42ch;
}

/* ---------- 3. BENEFITS ---------- */
.benefits__lead { margin-top: 20px; }

.benefit {
  display: grid;
  gap: 28px;
  margin-top: 72px;
}

/* SPでも写真サイズと重心を変えてリズムを作る */
.benefit--reverse .benefit__figure { order: -1; width: 82%; margin-left: auto; }
.benefit--wide .benefit__figure { width: 74%; }

.benefit__title {
  margin: 0 0 16px;
  font-family: var(--font-ja-serif);
  font-weight: 600;
  font-size: 23px;
  line-height: 1.5;
}
.benefit__text p:last-child { max-width: 42ch; }

/* ---------- 4. OFFER / FLOW ---------- */
.offer__intro .lead { max-width: 40ch; }

.split { display: grid; gap: 28px; }
.split__note {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-subtle);
}

.approach,
.works,
.flow { margin-top: 88px; }

.principles__item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  padding: 24px 0;
  border-top: 1px solid var(--color-line);
}
.principles__item:last-child { border-bottom: 1px solid var(--color-line); }
.principles__num {
  font: 28px/1.2 var(--font-en-serif);
  color: var(--color-text-subtle);
}
.principles h4,
.steps h4,
.entry__steps h4 {
  font-family: var(--font-ja-serif);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.5;
}
.principles p,
.steps p {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.85;
}

.works__note {
  margin-top: 14px;
  max-width: 46ch;
  font-size: 14px;
  line-height: 1.75;
  color: var(--color-text-subtle);
}

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 16px;
  margin-top: 36px;
}
.gallery__item--a { grid-column: 1 / -1; width: 88%; }
.gallery__item--b { grid-column: 1 / -1; }
.gallery__item--c { grid-column: 1 / -1; width: 72%; margin-left: auto; }

.steps { position: relative; }
.steps__item {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding-bottom: 32px;
}
.steps__item:last-child { padding-bottom: 0; }
/* 番号同士をつなぐ細い線 */
.steps__item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 23.5px;
  top: 52px;
  bottom: 4px;
  width: 1px;
  background: var(--color-accent);
}
.steps__num {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  font: 14px/1 var(--font-en-serif);
  letter-spacing: .06em;
  border: 1px solid var(--color-line-strong);
  border-radius: 50%;
  background: var(--color-bg);
}
.steps h4 { padding-top: 10px; }

.bridge {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  margin-top: 88px;
  padding-top: 40px;
  border-top: 1px solid var(--color-line);
}
.bridge .button { width: 100%; }
.bridge__text { font-size: 15px; }

/* ---------- 5. FAQ ---------- */
.faq__list { display: grid; gap: 12px; }

.faq__item {
  background: var(--color-bg-soft);
  border: 1px solid rgba(23, 23, 23, .12);
  border-radius: var(--radius-panel);
}

.faq__item summary {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 44px;
  padding: 18px 20px;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.6;
  cursor: pointer;
  list-style: none;
  border-radius: var(--radius-panel);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover .faq__question { text-decoration: underline; text-underline-offset: 4px; }

.faq__q {
  flex: none;
  font: 400 17px/1.5 var(--font-en-serif);
  color: var(--color-text-subtle);
}
.faq__question { flex: 1; }

/* ＋／− はCSSのみ（読み上げ対象外） */
.faq__icon {
  position: relative;
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 4px;
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform var(--motion-fast) var(--ease-smooth);
}
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }

.faq__answer {
  padding: 0 20px 20px 49px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--color-text-subtle);
}

/* ---------- 6. FINAL CTA & ENTRY ---------- */
.final {
  background: linear-gradient(170deg, var(--color-bg-deep) 0%, #F4F0E9 45%, var(--color-bg) 100%);
}
.final__cta .button { width: 100%; margin-top: 32px; }

.entry {
  margin-top: 72px;
  padding: 28px 20px;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-panel);
}
.entry:focus { outline: none; }
.entry:focus-visible { outline: var(--focus-ring); outline-offset: 4px; }

.entry__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}
.entry__label {
  font: 12px/1.6 var(--font-en-serif);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-text-subtle);
}
.entry__title {
  margin-top: 18px;
  font-family: var(--font-ja-serif);
  font-weight: 600;
  font-size: 23px;
  line-height: 1.5;
}
/* 何の流れか（CTA「撮影までの流れを見る」と同じ言葉）を先に伝える */
.entry__lead {
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.8;
}
/* 非受付の告知：見出しより強く見えないよう、枠ではなく左に線の入った帯にする（文言・太字は維持） */
.entry__notice {
  margin-top: 18px;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.7;
  border-left: 3px solid var(--color-accent);
  background: var(--color-white);
}

.entry__steps {
  display: grid;
  margin-top: 28px;
}
.entry__steps li {
  padding: 20px 0;
  border-top: 1px solid var(--color-line);
}
.entry__num {
  display: block;
  font: 13px/1.6 var(--font-en-serif);
  letter-spacing: .1em;
  color: var(--color-text-subtle);
}
.entry__steps h4 { margin-top: 4px; font-size: 18px; }
.entry__steps p { margin-top: 6px; font-size: 15px; line-height: 1.8; }

.entry__foot {
  padding-top: 18px;
  border-top: 1px solid var(--color-line);
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-subtle);
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 56px 0 48px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-subtle);
}
.site-footer__inner { display: grid; gap: 12px; justify-items: start; }
.brand--footer { color: var(--color-text); min-height: 0; }

/* ---------- Floating CTA（〜1023px） ---------- */
.floating-cta {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 40;
  width: min(560px, calc(100% - 32px));
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity 200ms var(--ease-smooth),
              transform 200ms var(--ease-smooth),
              visibility 0s linear 200ms;
}
.floating-cta.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition-delay: 0s;
}
.button--floating {
  width: 100%;
  height: 52px;
  box-shadow: 0 8px 24px rgba(23, 23, 23, .14);
}
.button--floating:hover { transform: none; }

/* ---------- Reveal（JS有効かつ動きを許可した環境のみ） ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js-reveal .reveal {
    transition: opacity 650ms var(--ease-smooth), transform 650ms var(--ease-smooth);
  }
  .js-reveal .reveal:not(.is-visible) {
    opacity: 0;
    transform: translateY(10px);
  }
}

/* ==========================================================================
   Tablet 768px〜
   ========================================================================== */
@media (min-width: 768px) {
  .container { width: calc(100% - 64px); }

  .hero {
    min-height: max(620px, calc(88svh - var(--header-h)));
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), 0 100%);
  }
  .demo-image--hero {
    background:
      linear-gradient(105deg, transparent 50%, rgba(255, 250, 240, .18) 66%, transparent 82%),
      linear-gradient(120deg, #5F5148 0%, #8C7A6C 45%, #BBA897 100%);
  }
  .demo-image--hero::before { inset: 40px 32px 56px; }
  .hero__overlay {
    background:
      /* 中ほど（コピーの右端付近）を濃くし、狭いPC幅で人物の明るい部分が文字に近づいても読めるようにする */
      linear-gradient(90deg,
        rgba(23, 23, 23, .66) 0%,
        rgba(23, 23, 23, .56) 38%,
        rgba(23, 23, 23, .30) 60%,
        rgba(23, 23, 23, .08) 100%),
      linear-gradient(0deg, rgba(23, 23, 23, .28), transparent 55%);
  }

  /* 右端の縦組み風キャプション */
  .hero__caption {
    position: absolute;
    top: 50%;
    right: 28px;
    display: flex;
    align-items: center;
    gap: 16px;
    writing-mode: vertical-rl;
    transform: translateY(-50%);
    font: 12px/1 var(--font-en-serif);
    letter-spacing: .24em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .92);
    /* 明るい窓の上に重なるため、文字の輪郭にだけ薄い暗部を添えて読みやすくする */
    text-shadow: 0 0 2px rgba(23, 23, 23, .55), 0 1px 6px rgba(23, 23, 23, .45);
  }
  .hero__caption::before {
    content: "";
    width: 1px;
    height: 56px;
    background: rgba(255, 255, 255, .7);
  }

  .hero__image-label { top: 12px; }
  .hero__content { position: relative; padding-bottom: 88px; max-width: var(--container); }
  .hero__demo { position: static; }
  .hero__content > * { max-width: 600px; }
  .hero__title { font-size: clamp(42px, 6vw, 54px); line-height: 1.25; }
  .hero__lead { font-size: 20px; }
  .hero__text { font-size: 16px; }
  .hero__cta { width: auto; }

  .section { padding-block: 104px; }
  .section-title { font-size: clamp(32px, 4vw, 40px); line-height: 1.38; }
  .sub-title { font-size: 26px; }
  .lead { font-size: 18px; }

  .gallery { grid-template-columns: 7fr 5fr; gap: 40px 24px; }
  .gallery__item--a { grid-column: 1; grid-row: 1 / span 2; width: auto; }
  .gallery__item--b { grid-column: 2; align-self: start; }
  .gallery__item--c { grid-column: 2; width: 84%; margin-left: 0; align-self: end; }

  .bridge { flex-direction: row; align-items: center; justify-content: space-between; }
  .bridge .button { width: auto; }

  .faq__item summary { padding: 22px 26px; }
  .faq__answer { padding: 0 26px 24px 55px; }

  .final__cta .button { width: auto; }
  .entry { padding: 40px; }
}

/* ==========================================================================
   Desktop 1024px〜
   ========================================================================== */
@media (min-width: 1024px) {
  /* ヘッダーCTAもPrimary（高さ56px）なので、上下に余白が残る高さにする */
  :root { --header-h: 76px; }
  .container { width: min(var(--container), calc(100% - 96px)); }
  .br-pc { display: inline; }

  .site-nav { display: block; margin-left: auto; }
  .site-nav ul { display: flex; gap: 28px; }
  .site-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 14px;
    text-decoration: none;
  }
  .site-nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
  .site-header__cta { display: inline-flex; margin-left: 12px; }

  .hero {
    --hero-title-size: clamp(48px, 5vw, 72px);
    min-height: min(88svh, 920px);
    min-height: max(600px, min(88svh, 920px));
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 56px), 0 100%);
  }
  /* PC：写真全体の横グラデーションはやめ、暗部はコピーの形に沿う .hero__shade が受け持つ。
     ここは下端を少し沈めるだけにして、女性の顔に暗部をかけない */
  .hero__overlay { background: linear-gradient(0deg, rgba(23, 23, 23, .28), transparent 55%); }
  /* コピーの背後の暗部。英字ラベルの上を横に走り、h1の1行目の右端の外で丸く折れて下り、
     顔の下をくぐって本文の右端の外へ流れ、そのまま下へ抜ける形を ::before の多角形で描き、
     親の blur で角を溶かして写真になじむ曲線とグラデーションにする（clip-path の後に filter は効かないため2段にする）。
     座標の原点はコピー左上（英字ラベルの上端）で、箱の中では (100vw, 120px)。
     h1に連動する値はem（h1と同じ文字サイズ）、本文に連動する値はpxで持つ。ぼかしの内側40pxまでは暗さが落ちない */
  .hero__content > .hero__shade {
    display: block;
    position: absolute;
    z-index: -1;
    top: -120px;
    left: -100vw;
    width: calc(100vw + 1000px);
    max-width: none; /* .hero__content > * の幅制限を外す */
    height: 1400px;
    font-size: var(--hero-title-size);
    filter: blur(20px);
    pointer-events: none;
  }
  .hero__shade::before {
    --ax: calc(100vw + 8.16em + 24px);        /* h1 1行目の右端の外 */
    --ay: calc(160px + 1.22em);               /* h1 1行目の下端 */
    --bx: calc(100vw + 700px);                /* 本文1行目の右端（633px）の外 */
    --by: calc(235px + 2.44em);               /* 本文の上端 */
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(23, 23, 23, .66);
    clip-path: polygon(
      0 76px,
      calc(var(--ax) - 72px) 76px,
      calc(var(--ax) - 20px) 92px,
      calc(var(--ax) - 4px) 160px,
      var(--ax) var(--ay),
      calc(var(--ax) + (var(--bx) - var(--ax)) * .25) calc(var(--ay) + (var(--by) - var(--ay)) * .5),
      calc(var(--ax) + (var(--bx) - var(--ax)) * .65) calc(var(--ay) + (var(--by) - var(--ay)) * .88),
      var(--bx) var(--by),
      calc(var(--bx) + 12px) calc(var(--by) + 90px),
      calc(var(--bx) + 60px) calc(var(--by) + 300px),
      calc(var(--bx) + 120px) 100%,
      0 100%
    );
  }
  .hero__caption { right: 40px; }
  .hero__title::before { content: none; } /* PCは .hero__shade で足りる */
  .hero__image-label { top: auto; left: auto; right: 64px; bottom: 72px; width: auto; }
  .hero__eyebrow > span[lang="en"] { padding: 0; background: none; } /* PCは横グラデーションの暗部上にあるため下地不要 */
  .hero__content { padding-bottom: 120px; }
  .hero__content > * { max-width: 640px; }
  .hero__title { font-size: var(--hero-title-size); line-height: 1.22; }
  .hero__lead { font-size: 22px; margin-top: 20px; }
  .hero__text { margin-top: 18px; }
  .hero__cta { margin-top: 36px; }
  .button--primary { height: 56px; padding: 0 60px; }
  .button__icon { right: 11px; width: 30px; height: 30px; }
  .button__icon::before { width: 11px; height: 12px; }

  .section { padding-block: 136px; }
  .section-title { font-size: clamp(36px, 3.4vw, 48px); line-height: 1.35; }
  .sub-title { font-size: 30px; line-height: 1.45; }
  .lead { margin-top: 32px; font-size: 20px; line-height: 1.9; }

  /* セクション冒頭（PROBLEM・OFFER・FINAL共通）：英字ラベルと見出しを同じ余白で横に並べ、組ごと中央に置く。
     ラベルは見出し1行目のベースラインにそろえる */
  .section-head {
    display: flex;
    justify-content: center;
    align-items: baseline;
    column-gap: 72px;
  }
  .section-head > .section-label { flex: none; white-space: nowrap; }
  .section-head > .section-title { margin-top: 0; }

  /* PROBLEM：テキスト中心、ラベルと本文の重心をずらす */
  .problem__grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
  }
  .problem__body { grid-column: 1 / 13; }
  .problem__body .lead { max-width: none; text-align: center; }
  .worries { grid-column: 6 / 13; margin-top: 110px; }
  .worries__item { grid-template-columns: 60px 1fr; column-gap: 6px; align-items: center; padding: 17px 0 17px 20px; font-size: 22px; }
  .worries__icon { width: 60px; height: 60px; }
  .problem__answer { grid-column: 6 / 12; margin-top: 48px; }

  /* 背面の斜めの面：写真や文字より下、セクション背景より上に敷く */
  .benefits,
  .offer,
  .faq { background: none; }
  .benefits::before,
  .offer::before,
  .faq::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    background: var(--color-shape);
    pointer-events: none;
  }
  .benefits::after { content: none; }

  /* BENEFITS：左上から右下へ流れる面 */
  .benefits::before {
    top: 0;
    bottom: 0;
    height: auto;
    clip-path: polygon(0 .8%, 52.4% 7%, 95.1% 63.3%, 0 88.6%);
  }

  /* BENEFITS：写真の大小と左右の重心を交互に */
  .benefit {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
    margin-top: 112px;
  }
  .benefit__title { font-size: clamp(24px, 2.3vw, 30px); line-height: 1.45; margin: 0 0 20px; }

  .benefit--large .benefit__figure { grid-column: 1 / 7; }
  .benefit--large .benefit__text { grid-column: 8 / 13; align-self: end; padding-bottom: 48px; }

  .benefit--reverse .benefit__figure { order: 0; grid-column: 7 / 13; width: auto; margin: 0; }
  .benefit--reverse .benefit__text { grid-column: 1 / 6; align-self: center; padding-left: 4%; }

  .benefit--wide .benefit__figure { grid-column: 3 / 8; width: auto; }
  .benefit--wide .benefit__text { grid-column: 9 / 13; align-self: center; }

  /* OFFER / FLOW：ラベルと見出しを横に並べ、導入文は右へ寄せる */
  .offer::before {
    top: 0;
    height: 1108px;
    clip-path: polygon(100% 0, 47.7% 77px, 34.7% 244px, 100% 100%);
  }
  .offer__intro { margin-top: 32px; }
  .offer__intro .lead { margin: 8px 0 0 auto; }
  .approach, .works, .flow { margin-top: 136px; }

  .split {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
  }
  .split__head { grid-column: 1 / 5; align-self: start; position: sticky; top: calc(var(--header-h) + 40px); }
  .split > :not(.split__head) { grid-column: 6 / 13; }

  .principles__item { grid-template-columns: 72px 1fr; padding: 32px 0; }
  .principles__num { font-size: 34px; }
  .principles h4, .steps h4 { font-size: 21px; }

  .works__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; }
  .works__head .sub-title { grid-column: 1 / 6; }
  .works__head .works__note { grid-column: 7 / 13; margin-top: 0; }
  .gallery { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 48px 24px; margin-top: 56px; }
  .gallery__item--a { grid-column: 1 / 7; grid-row: 1 / span 2; }
  .gallery__item--b { grid-column: 8 / 13; }
  .gallery__item--c { grid-column: 8 / 12; width: auto; }

  .steps__item { grid-template-columns: 56px 1fr; gap: 24px; padding-bottom: 40px; }
  .steps__num { width: 56px; height: 56px; }
  .steps__item:not(:last-child)::before { left: 27.5px; top: 60px; }
  .steps h4 { padding-top: 14px; }

  .bridge { margin-top: 120px; padding-top: 48px; }
  .bridge__text { font-size: 16px; }

  /* FAQ：上辺は中央が下がる谷、下辺は中央が突き出る山形の面 */
  /* 面の左右下端（セクション下端の34px上）より下は、FINALの上端と同じ色で埋める */
  .faq {
    z-index: 1;
    background: linear-gradient(180deg, transparent calc(100% - 34px), var(--color-bg-deep) calc(100% - 34px));
  }
  .faq::before {
    top: -28px;
    bottom: -37px;
    clip-path: polygon(0 0, 50% 68px, 100% 0, 100% calc(100% - 71px), 50% 100%, 0 calc(100% - 71px));
  }
  .faq .split__head .section-title { margin-top: 20px; }
  .faq__item summary { padding: 24px 28px; font-size: 17px; }
  .faq__answer { padding: 0 28px 26px 57px; font-size: 16px; }

  /* FINAL & ENTRY */
  /* ラベル＋見出し・導入文・ボタンを中央にそろえる */
  .final__cta {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .final__title { font-size: clamp(38px, 3.8vw, 52px); }
  .final__cta .lead { max-width: none; text-align: center; }
  .final__cta .button { margin-top: 72px; }
  .entry { margin-top: 96px; padding: 56px 64px; }
  .entry__title { font-size: 30px; }
  .entry__lead { font-size: 17px; }
  .entry__notice { font-size: 16px; padding: 12px 20px; }
  .entry__steps { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px; margin-top: 40px; }
  .entry__steps li { padding: 24px 0 32px; border-top: 1px solid var(--color-text); }
  .entry__foot { margin-top: 8px; }

  .site-footer__inner { grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; }

  .floating-cta { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  [data-parallax] { transform: none !important; }
}
