/* ==========================================================================
   Zielweg — S1 OPENING
   演出のタイミングは js/main.js の CUTS で管理。ここは見た目だけ。
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: #0b0b0c;
  color: #2f2f2f;
  font-family: 'Noto Sans JP', system-ui, sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}
html { scrollbar-gutter: stable; }   /* スクロールを止めたときにスクロールバーぶん幅が変わってレイアウトがずれないように */
body.is-locked { overflow: hidden; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- S1 の長さ（スクロール量）---------- */
.opening { position: relative; z-index: 1; height: 640vh; height: 640svh; }
.opening__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }

/* ---------- 背景：PSD アートボード 1（1366×768）を cover で拡縮 ---------- */
:root {
  /* PSD の 1px。画面を覆うように拡縮（object-fit: cover と同じ考え方） */
  --u: max(100vw / 1366, 100vh / 768);
  --u: max(100vw / 1366, 100svh / 768);
  /* 光の中心は画面のど真ん中（ロゴの中心と揃える） */
  --cx: 50%;
  --cy: 50%;
}
.psd-bg {
  position: fixed; inset: 0; z-index: 0;   /* S1・S2 共通の背景。画面に固定して、場面のつなぎ目で光が二重にならないように */
  scale: var(--s2-bg-zoom, 1);              /* S2 のはじめ：文字と一緒に光へ寄る */
}
.psd-layer { position: absolute; inset: 0; }
/* PSD のレイヤー構成：
     グラデーション 1｜通常 100%｜円形 #606060→#FFFFFF（反転・中間点45%・滑らか）— 実画素から算出
       灰：255 @0 / 239 @120 / 162 @546 / 146 @618 / 125 @724 / 114 @772 / 113 @784 / 108 @808（PSD の px）
     レイヤー 1｜オーバーレイ 100%｜#9DAC9A
     レイヤー 2｜ソフトライト 100%｜#FFF｜レイヤー 1 にクリップ
   レイヤー 1・2 はどちらも単色なので、重ねた結果を色ごとに計算し、1 枚のグラデーションにまとめている
   （CSS の mix-blend-mode で毎フレーム合成すると、上に重なる 3D の描画が重くなるため）。
   計算：レイヤー1+2 = ソフトライト(#9DAC9A, 白) = √各色 → rgb(200.1 209.4 198.2)。
         それをグラデーションの灰にオーバーレイ（灰 ≤ 50% なら 2×灰×色、それ以上は 1−2(1−灰)(1−色)）。
         オーバーレイは灰 50%（127.5）で折れるので、そこ（711.38）に色を 1 つ足している。 */
.psd-gradient, .sub-bar {
  background: radial-gradient(circle at var(--cx) var(--cy),
    rgb(255 255 255) 0,
    rgb(248 249 248) calc(120 * var(--u)),
    rgb(215 222 214) calc(546 * var(--u)),
    rgb(208 216 206) calc(618 * var(--u)),
    rgb(200 209 198) calc(711.38 * var(--u)),
    rgb(196 205 194) calc(724 * var(--u)),
    rgb(179 187 177) calc(772 * var(--u)),
    rgb(177 186 176) calc(784 * var(--u)),
    rgb(169 177 168) calc(808 * var(--u)));
}

/* ---------- 3D ---------- */
.stage { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* ---------- C01 暗転 ---------- */
.blackout {
  position: absolute; inset: 0;
  background: #0b0b0c;
  opacity: var(--blackout, 1);           /* JS が 1 → 0 にする（C02） */
  pointer-events: none;
}
.gate {
  position: absolute; inset: 0; z-index: 5;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  background: none; border: 0; padding: 0; margin: 0;
  color: #cfd3cd;
  font-family: 'Jost', sans-serif; font-weight: 200;
  letter-spacing: .32em;
  opacity: var(--gate, 1);   /* --gate は 0 / 1 のみ＝瞬いて消える（フェードではない） */
  -webkit-tap-highlight-color: transparent;
}
.gate[hidden] { display: none; }
.gate__loading { font-size: 13px; margin-right: -.32em; }
.gate__dots i { font-style: normal; animation: dot 1.4s infinite; opacity: .2; }
.gate__dots i:nth-child(2) { animation-delay: .2s; }
.gate__dots i:nth-child(3) { animation-delay: .4s; }
@keyframes dot { 0%, 100% { opacity: .2; } 40% { opacity: 1; } }


/* ---------- C04 スクロール誘導 ---------- */
.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; translate: -50% 0; margin: 0;
  font-family: 'Jost', sans-serif; font-weight: 300; font-size: 10px; letter-spacing: .3em; text-transform: uppercase;
  color: rgba(47, 47, 47, .7);
  clip-path: inset(0 0 calc((1 - var(--cue, 0)) * 100%) 0);   /* 上から線を引くように現れる（フェードなし） */
  pointer-events: none;
}
.scroll-cue span::after {
  content: ''; display: block; width: 1px; height: 36px; margin: 10px auto 0;
  background: linear-gradient(rgba(47, 47, 47, .6), transparent);
  animation: cue 2.2s cubic-bezier(.6, 0, .3, 1) infinite; transform-origin: top;
}
@keyframes cue { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* ==========================================================================
   S2 WORLDS「世界観は、創れる」
   ========================================================================== */
.worlds { position: relative; z-index: 1; height: 190vh; height: 190svh; }   /* 固定されたら時間で再生。終わったあと砂漠の背景が寄りながら、0.9 画面ぶんスクロールして次へ */
.worlds__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.worlds__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* はじめと終わり：S1 の背景のまま、元のロゴと同じ書体の質感（PSD：乗算の影 43%・21px） */
.world__origin-copy {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  margin: 0; white-space: nowrap;
  font-family: "Noto Serif JP", serif; font-weight: 600;
  font-size: clamp(26px, 3.4vw, 56px); letter-spacing: .06em; line-height: 1;
  color: #474747;
  text-shadow: 0 0 clamp(12px, 1.54vw, 30px) rgba(0, 0, 0, .43);
  scale: var(--s2-text-zoom, 1);   /* S2 のはじめ：文字へズーム（js/worlds.js） */
}
.worlds:not([data-world="origin"]) .world__origin-copy { visibility: hidden; }

/* 終わり：次のページの色（#e9ece7）が、グラデーションの先端を立てながら画面の下から上へ浸食する。--s2-wipe：0〜1 */
.worlds__wipe {
  position: absolute; left: 0; right: 0; height: 170%;
  top: calc(100% - var(--s2-wipe, 0) * 170%);
  background: linear-gradient(to bottom, rgb(233 236 231 / 0) 0, rgb(233 236 231 / .55) 22%, #e9ece7 40%);
  pointer-events: none;
}   /* 世界観が出ている間は、元の文字を隠す */

/* カット表用：S2 だけを表示（?s2=進行） */
.s2-only .opening { display: none; }
.s2-only .worlds { height: 100vh; height: 100svh; }

/* ---------- 次のシーン（仮） ---------- */
/* ==========================================================================
   S3 WORKS「制作事例」— nexola.framer.website の Projects と同じ構成
   （明るいグレーの背景に 4 列の線／大きな見出し／1 件 = 横 1 行：名前｜写真（2 列ぶん）｜矢印と期間・分野）
   ========================================================================== */
/* 次のページ（S4）の背景：ロゴの正面の色を中心にした網点の煙。制作事例から S4 へ移るあいだに、画面全体がじんわり切り替わる（.page-tint） */
:root {
  --page-dark: #3e4140; --page-ink: #e4eadc;
}
/* 画面に固定した背景の層（網点の煙）。濃さ --tint は js/approach.js がスクロールに合わせて 0→1 にする */
.page-tint {
  position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
}
.page-tint[hidden] { display: none; }
.page-tint.no-gl { background: var(--page-dark); opacity: 0; transition: opacity .5s; }   /* WebGL が使えないとき */
.page-tint.no-gl.is-on { opacity: 1; }
/* つなぎ：ZIELWEG の段がはけきったあと、制作事例のページ全体が下からせり上がる（js/works.js が transform で持ち上げる） */
.works { will-change: transform; }

.works {
  --wk-pad: clamp(16px, 2.1vw, 30px);      /* 左右の余白（参考：1440px 幅で 30px） */
  --wk-line: rgb(15 15 15 / .1);           /* 4 列の線・行の区切り線 */
  --wk-ink: #0f0f0f;
  --wk-sub: #666;
  /* 日本語：見出しは源ノ明朝 Bold（Adobe Fonts・kit ryd4omf）、細い文字は Zen Kaku Gothic New Light */
  --wk-jp-lead: "source-han-serif-jp-subset", "Noto Serif JP", serif;
  --wk-jp-thin: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  position: relative; z-index: 1;
  min-height: 100vh; min-height: 100svh;
  padding: 0 0 clamp(64px, 8vw, 120px);
  color: var(--wk-ink);              /* 背景は最初の画面と同じ（画面に固定した PSD の背景 .psd-bg がそのまま見える） */
  font-family: "Switzer", "Archivo", Arial, sans-serif;
}
.works > * { position: relative; }

/* 見出し：左の列に小さく「制作事例」、真ん中の 2 列に大きく Works、右の列に件数とリンク */
.works__head {
  display: grid; grid-template-columns: repeat(4, 1fr); align-items: end;
  padding: clamp(56px, 9vw, 130px) var(--wk-pad) clamp(40px, 6.5vw, 96px);
}
.works__label { grid-column: 1; margin: 0; padding: 0 10px 1.1em; }
.works__label-ja {
  font-family: var(--wk-jp-thin); font-weight: 300;
  font-size: clamp(12px, .9vw, 14px); letter-spacing: .2em; color: var(--wk-sub);
}
.works__title {
  grid-column: 2 / 4; margin: 0; padding-left: 10px;
  font-size: clamp(64px, 8.4vw, 128px); font-weight: 600; line-height: 1; letter-spacing: -.035em;
}
.works__meta {
  grid-column: 4; margin: 0; padding: 0 10px 1.1em;
  display: flex; flex-direction: column; gap: 2px;
  font-size: 14px; font-weight: 600; line-height: 1.2;
}
.works__meta-count { color: #6b6b6b; }
.works__meta-more { color: var(--wk-ink); text-decoration: underline; text-underline-offset: 2px; }

/* 説明文：4 列の 2 列目から。見出しは少し大きく、本文は細く読みやすい行の長さに */
.works__intro {
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 0 var(--wk-pad) clamp(48px, 6vw, 88px);
}
.works__lead, .works__text { grid-column: 2 / 4; margin: 0; padding: 0 10px; }
.works__lead {
  font-family: var(--wk-jp-lead); font-weight: 700;   /* 大きな Works（Switzer Semibold）と並んでも負けない太さ */
  font-size: clamp(22px, 2.3vw, 34px); line-height: 1.4; letter-spacing: .04em;
  font-feature-settings: "palt";    /* かぎ括弧のまわりの空きを詰める */
  margin-bottom: clamp(18px, 1.8vw, 28px);
}
.works__text {
  max-width: 40em;
  font-family: var(--wk-jp-thin); font-weight: 300;
  font-size: clamp(14px, 1.05vw, 16px); line-height: 2.1; letter-spacing: .06em; color: #3a3a3a;
  text-align: justify;
}

/* 1 件 = 横 1 行：左に名前、真ん中の 2 列に写真、右に矢印と期間・分野 */
.works__list { margin: 0 var(--wk-pad); border-top: 1px solid var(--wk-line); z-index: 0; }
/* 4 列の縦線：一覧の上端から下端まで（見出しと More のところには出さない） */
.works__list::before {
  content: ""; position: absolute; z-index: -1; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to right, var(--wk-line) 1px, transparent 1px) 0 0 / 25% 100% repeat-x;
  border-right: 1px solid var(--wk-line);
  pointer-events: none;
}
.work {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--wk-line);
  color: inherit; text-decoration: none;
}
.work__info, .work__meta {
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 14px 10px 16px; min-width: 0;
}
.work__name { margin: 0; font-size: clamp(18px, 1.46vw, 21px); font-weight: 500; line-height: 1.1; }
.work__name-ja {
  display: block; margin-top: .55em;
  font-family: var(--wk-jp-thin); font-weight: 300;
  font-size: clamp(11px, .8vw, 12px); letter-spacing: .14em; color: var(--wk-sub);
}
.work__cat { margin: .35em 0 0; font-size: clamp(14px, 1.1vw, 16px); line-height: 1.2; color: var(--wk-sub); }
.work__jump { font-size: clamp(14px, 1.1vw, 16px); line-height: 1.2; }
.work__media { grid-column: 2 / 4; position: relative; aspect-ratio: 683 / 372; overflow: hidden; background: #e4e4e4; }
.work__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.work__meta { align-items: flex-end; text-align: right; }
.work__arrow { width: 22px; height: 22px; }
.work__arrow path { fill: none; stroke: currentColor; stroke-width: 1.8; }
.work__facts { margin: 0; display: grid; gap: 14px; font-size: 14px; font-weight: 600; line-height: 1.2; }
.work__facts dt { color: var(--wk-sub); }
.work__facts dd { margin: 0; }

/* 一覧の下：More（すべての制作事例＝サブページ works.html へ） */
.works__more { display: flex; justify-content: center; padding: clamp(40px, 6vw, 88px) var(--wk-pad) 0; }
.works__more-btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 18px 30px 18px 34px; border: 1px solid var(--wk-ink); border-radius: 999px;
  color: var(--wk-ink); text-decoration: none; background: rgb(246 246 246 / .55);
  font-size: clamp(15px, 1.1vw, 17px); font-weight: 600; line-height: 1;
  transition: background-color .45s cubic-bezier(.16, 1, .3, 1), color .45s cubic-bezier(.16, 1, .3, 1);
}
.works__more-ja {
  font-family: var(--wk-jp-thin); font-weight: 300;
  font-size: 12px; letter-spacing: .14em; opacity: .7;
}
.works__more-arrow { width: 20px; height: 20px; transition: translate .45s cubic-bezier(.16, 1, .3, 1); }
.works__more-arrow path { fill: none; stroke: currentColor; stroke-width: 1.6; }
.works__more-btn--back .works__more-arrow { scale: -1 1; }
.works__more-btn:hover, .works__more-btn:focus-visible { background: var(--wk-ink); color: #f6f6f6; }
.works__more-btn:hover .works__more-arrow { translate: 4px 0; }
.works__more-btn--back:hover .works__more-arrow { translate: -4px 0; }

/* スクロールでじんわり現れる（js/reveal.js が --rv を 0→1 にする）：ぼかしが晴れながら、少し下から浮かび上がる */
.has-reveal [data-reveal] {
  --rv: 0;
  opacity: var(--rv);
  filter: blur(calc((1 - var(--rv)) * 16px));
  translate: 0 calc((1 - var(--rv)) * 48px);
}
.has-reveal [data-reveal][style*="--rv: 1"] { filter: none; }   /* 現れきったら、ぼかしの計算をやめる（軽く） */
@media (prefers-reduced-motion: reduce) { .has-reveal [data-reveal] { opacity: 1; filter: none; translate: none; } }

/* 上の帯：画面の上に固定。色は背景と同じ（同じグラデーションを画面に固定して塗るので、つなぎ目が出ない）。
   ロゴは中央、サブページでは右に「トップへ戻る」。
   トップでは、ZIELWEG の段が去ったら上から下りてくる（js/works.js が is-shown を付け外し）。
   暗いページのあいだは、背景の網点の煙をそのまま写して同じ色にする（js/dither-bg.js）。ロゴと線は明るく（is-dark） */
.sub-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 6;
  height: var(--band-h); box-sizing: border-box;
  display: flex; justify-content: flex-end; align-items: center;
  padding: 0 clamp(16px, 2.1vw, 30px);
  background-attachment: fixed;   /* ※ transform を付けると fixed が効かなくなるので、出し入れは top で動かす */
  overflow: hidden;
  border-bottom: 1px solid rgb(15 15 15 / .14);   /* 背景と同じ色の帯に、境界線だけ */
  font-family: "Switzer", "Archivo", Arial, sans-serif; color: #0f0f0f;
  top: calc(-1 * var(--band-h) - 2px);
  transition: top .8s cubic-bezier(.16, 1, .3, 1), color .9s, border-color .9s;
}
.sub-bar.is-shown { top: 0; }
/* 暗いページの背景（網点の煙）を写すキャンバス（js/dither-bg.js）。グラデーションの上・ロゴの下 */
.sub-bar__tint { position: absolute; top: 0; left: 0; z-index: -1; image-rendering: pixelated; pointer-events: none; }
.sub-bar { isolation: isolate; }
/* 暗いページのあいだは、ロゴと境界線を明るく */
.sub-bar.is-dark { color: var(--page-ink); border-bottom-color: rgb(228 234 220 / .18); }
:root { --band-h: clamp(52px, 4.4vw, 64px); }
/* ロゴ：明るいページは中抜き（zielweg-outline.webp・黒い線）、暗いグレーのページは元の塗りのロゴ（zielweg-band.webp・明るい色）。
   2 枚を同じ場所に重ねて、帯が暗いページに切り替わるのに合わせて入れ替える */
.sub-bar__logo { display: grid; place-items: center; line-height: 0; position: absolute; left: 50%; translate: -50% 0; }   /* 上の中央 */
.sub-bar__logo img { grid-area: 1 / 1; display: block; width: auto; height: clamp(21px, 2vw, 30px); filter: brightness(0); transition: opacity .9s; }   /* 灰色のロゴを黒に */
.sub-bar__logo .sub-bar__logo-fill { height: calc(clamp(21px, 2vw, 30px) * 240 / 258); filter: brightness(0) invert(.92); opacity: 0; }   /* 中抜きの画像は上下に余白があるので、そのぶん小さく */
.sub-bar.is-dark .sub-bar__logo-line { opacity: 0; }
.sub-bar.is-dark .sub-bar__logo-fill { opacity: 1; }
.sub-bar__back { font-size: 14px; font-weight: 600; color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.works--page { padding-top: var(--band-h); }

/* ================= 事例：お客様の声（interview.html）。左に社長の写真を大きく、右に文章 ================= */
.iv {
  --iv-ink: #0f0f0f; --iv-sub: #666; --iv-line: rgb(15 15 15 / .12);
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr; align-items: start;
  padding-top: var(--band-h); color: var(--iv-ink);
}
/* 写真：左半分いっぱい。右の文章を読み進めるあいだ、帯の下に留まる */
.iv__photo { position: sticky; top: var(--band-h); height: calc(100svh - var(--band-h)); margin: 0; overflow: hidden; }
.iv__photo img, .iv__photo-empty { display: block; width: 100%; height: 100%; object-fit: cover; }
.iv__photo-empty {   /* 写真が届くまでの仮の枠 */
  display: grid; place-content: center; gap: 10px; text-align: center;
  background: linear-gradient(160deg, #c9cfc4, #9aa296);
  color: rgb(15 15 15 / .45); font-family: "Switzer", "Archivo", sans-serif; font-size: 13px; letter-spacing: .3em; text-transform: uppercase;
}
.iv__photo-empty span:lang(ja) { font-family: "Zen Kaku Gothic New", sans-serif; font-weight: 300; letter-spacing: .14em; text-transform: none; }
.iv__caption {
  position: absolute; left: clamp(16px, 2.1vw, 30px); bottom: clamp(16px, 2.1vw, 30px);
  display: flex; flex-direction: column; gap: 4px;
  font-family: "Zen Kaku Gothic New", sans-serif; font-weight: 300; font-size: 13px; letter-spacing: .12em; color: #f6f6f2;
  text-shadow: 0 1px 8px rgb(0 0 0 / .35);
}
.iv__caption-co { font-size: 11px; opacity: .8; }

/* 文章：右半分。読みやすい行の長さに収める */
.iv__body {
  padding: clamp(56px, 8vw, 128px) clamp(24px, 5.5vw, 104px) clamp(72px, 8vw, 128px);
  font-family: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
}
.iv__body > * { max-width: 34rem; }
.iv__label { display: flex; align-items: baseline; gap: 14px; margin: 0 0 clamp(28px, 3vw, 44px); }
.iv__label-en { font-family: "Switzer", "Archivo", sans-serif; font-weight: 600; font-size: 14px; letter-spacing: .02em; }
.iv__label-ja { font-weight: 300; font-size: 12px; letter-spacing: .2em; color: var(--iv-sub); }
.iv__lead {
  margin: 0; font-family: "source-han-serif-jp-subset", "Noto Serif JP", serif; font-weight: 700;
  font-size: clamp(26px, 2.6vw, 40px); line-height: 1.55; letter-spacing: .02em; font-feature-settings: "palt";
}
.iv__who { margin: clamp(20px, 2vw, 28px) 0 0; font-weight: 300; font-size: 14px; letter-spacing: .1em; color: var(--iv-sub); }
.iv__facts {
  margin: clamp(32px, 3.4vw, 48px) 0 clamp(48px, 5vw, 80px); padding: 0;
  border-top: 1px solid var(--iv-line);
}
.iv__facts div { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--iv-line); font-size: 14px; }
.iv__facts dt { font-weight: 300; letter-spacing: .14em; color: var(--iv-sub); }
.iv__facts dd { margin: 0; font-weight: 500; letter-spacing: .06em; }
.iv__qa + .iv__qa, .iv__pull + .iv__qa { margin-top: clamp(40px, 4.4vw, 64px); }
.iv__q {
  display: flex; gap: .7em; margin: 0 0 16px;
  font-weight: 500; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.7; letter-spacing: .06em;
}
.iv__q-mark { flex: none; font-family: "Switzer", "Archivo", sans-serif; font-weight: 600; letter-spacing: 0; }
.iv__a { margin: 0; font-weight: 300; font-size: clamp(15px, 1.05vw, 16px); line-height: 2.1; letter-spacing: .06em; text-align: justify; color: #2a2a2a; }
/* 本文の途中の大きな引用 */
.iv__pull { margin: clamp(56px, 6vw, 96px) 0; padding: 0 0 0 clamp(18px, 1.6vw, 26px); border-left: 2px solid var(--iv-ink); }
.iv__pull p {
  margin: 0; font-family: "source-han-serif-jp-subset", "Noto Serif JP", serif; font-weight: 700;
  font-size: clamp(20px, 1.8vw, 27px); line-height: 1.7; letter-spacing: .02em;
}
/* 下のボタン：制作事例へ／トップへ戻る */
.iv__nav { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(64px, 7vw, 112px); }
.iv__btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 26px 16px 30px; border: 1px solid var(--iv-ink); border-radius: 999px;
  color: var(--iv-ink); text-decoration: none; background: rgb(246 246 246 / .55);
  font-family: "Switzer", "Archivo", sans-serif; font-weight: 600; font-size: 15px; line-height: 1;
  transition: background-color .45s cubic-bezier(.16, 1, .3, 1), color .45s cubic-bezier(.16, 1, .3, 1);
}
.iv__btn-ja { font-family: "Zen Kaku Gothic New", sans-serif; font-weight: 300; font-size: 12px; letter-spacing: .14em; opacity: .7; }
.iv__btn-arrow { width: 18px; height: 18px; transition: translate .45s cubic-bezier(.16, 1, .3, 1); }
.iv__btn-arrow path { fill: none; stroke: currentColor; stroke-width: 1.6; }
.iv__btn--back { padding: 16px 30px 16px 26px; }
.iv__btn--back .iv__btn-arrow { scale: -1 1; }
.iv__btn:hover, .iv__btn:focus-visible { background: var(--iv-ink); color: #f6f6f6; }
.iv__btn:hover .iv__btn-arrow { translate: 4px 0; }
.iv__btn--back:hover .iv__btn-arrow { translate: -4px 0; }

/* スマホ・タブレット：写真を上に（縦長の枠）、文章をその下に */
@media (max-width: 991px) {
  .iv { grid-template-columns: 1fr; }
  .iv__photo { position: relative; top: 0; height: auto; aspect-ratio: 4 / 5; max-height: 80svh; }
  .iv__body { padding: 48px 16px 72px; }
  .iv__body > * { max-width: none; }
}

/* ホバー：写真がわずかに寄り、矢印が右上へ抜ける */
@media (hover: hover) and (pointer: fine) {
  .work__img { transition: scale .9s cubic-bezier(.16, 1, .3, 1); }
  .work__arrow { transition: translate .5s cubic-bezier(.16, 1, .3, 1); }
  .work:hover .work__img { scale: 1.04; }
  .work:hover .work__arrow { translate: 3px -3px; }
}
.work:focus-visible { outline: 2px solid var(--wk-ink); outline-offset: -2px; }
/* 公開準備中（Waiting）：写真は入れず、うすい面の真ん中に Waiting。リンクにはしない。公開したら work--waiting を外し、<a class="work" href="…"> と写真に戻す */
.work--waiting .work__media { background: #e9eae7; }   /* 後ろの縦線が透けないよう、塗りつぶす */
.work__wait {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: "Switzer", "Archivo", sans-serif; font-weight: 500; font-size: clamp(14px, 1.1vw, 16px);
  letter-spacing: .32em; text-indent: .32em; text-transform: uppercase; color: var(--wk-ink);
}
.work--waiting .work__facts dd { color: var(--wk-sub); }

/* スマホ：名前と矢印・期間を上に並べ、写真は下に横いっぱい */
@media (max-width: 767px) {
  .works__list::before { background-size: 50% 100%; }
  .works__head { grid-template-columns: 1fr 1fr; row-gap: 14px; }
  .works__title { grid-column: 1 / -1; grid-row: 1; padding-left: 8px; }
  .works__label { grid-column: 1; grid-row: 2; padding: 0 8px; }
  .works__meta { grid-column: 2; grid-row: 2; padding: 0 8px; text-align: right; align-items: flex-end; }
  .works__lead, .works__text { grid-column: 1 / -1; padding: 0 8px; }
  .work { grid-template-columns: 1fr 1fr; }
  .work__info, .work__meta { padding: 12px 8px; gap: 18px; }
  .work__media { grid-column: 1 / -1; grid-row: 2; }
  .work__jump { display: none; }
}

/* ==========================================================================
   S4 APPROACH「How we build brands」
   db-union-awards の FILM TEAM STATEMENT のデザインを採用（寸法は参考サイトの値をそのまま）：
     ・左右 2 分割（文字｜写真）を 1 段ごとに入れ替える。写真の枠は 1 枚ずつ違う角だけ大きく丸める
     ・見出しは細長い大文字（参考は Coolvetica Crammed → キットの Alternate Gothic Extra Cond）
     ・本文は Switzer。一語ずつ、強いぼかしが晴れて現れる
   背景：ロゴの正面の色（#3E4140）を中心にした網点の煙（codapress のトップの雰囲気・js/dither-bg.js）
   ========================================================================== */
.approach {
  --ap-bg: var(--page-dark);        /* ロゴの正面の色（制作事例と共通） */
  --ap-ink: var(--page-ink);        /* 文字：背景の PSD の明るいセージに寄せた白 */
  --ap-radius: clamp(9.438rem, 4.447rem + 21.29vw, 30rem);
  position: relative; z-index: 1;
  color: #2f2f2f;                   /* 切り替わる前は、元の明るい背景の上なので暗い文字 */
  transition: color .9s cubic-bezier(.45, 0, .2, 1);   /* 背景と一緒に、なめらかに切り替わる */
  font-family: "Switzer", "Archivo", Arial, sans-serif;
}
/* 網点で描く煙：小さなキャンバスを、ぼかさずに画面いっぱいへ拡大する（js/dither-bg.js） */
.page-tint__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; image-rendering: pixelated; }

.approach.is-dark { color: var(--ap-ink); }   /* 背景が網点の煙に切り替わったら明るい文字 */
.approach__pin, .approach__list { position: relative; z-index: 1; }
.approach { overflow-x: clip; }

/* 見出し：How we build brands。定位置（画面いっぱい・上下中央）に来たら、--ap-hold ぶんスクロールするあいだ止まる。
   止まった瞬間に背景が切り替わり（js/approach.js）、止まりきったら STEP 01 から先が上がってくる */
.approach { --ap-hold: 70svh; }
.approach__pin { height: calc(100vh + var(--ap-hold)); height: calc(100svh + var(--ap-hold)); }
.approach__head {
  position: sticky; top: 0; box-sizing: border-box;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center; gap: clamp(.75rem, .6rem + .5vw, 1.25rem);
  padding: clamp(3rem, 2rem + 4vw, 6rem) clamp(1rem, .5rem + 2vw, 3rem);
}
.approach__eyebrow {
  margin: 0; font-size: clamp(.875rem, .84rem + .15vw, 1rem); font-weight: 600;
  letter-spacing: .02em; text-transform: uppercase; opacity: .7;
}
.approach__title {
  margin: 0; max-width: 14ch;
  font-family: "alternate-gothic-extra-cond", "Archivo", Arial, sans-serif; font-stretch: 62%; font-weight: 400;
  font-size: clamp(4.5rem, 2.5rem + 8vw, 11rem); line-height: .86; text-transform: uppercase;
}

/* 1 段：文字｜写真（--reverse で左右入れ替え） */
.approach__item { display: flex; justify-content: space-between; }
.approach__item--reverse { flex-direction: row-reverse; }
.approach__box { width: 50%; }
.approach__box--center { display: flex; justify-content: center; align-items: center; }
.approach__text {
  display: flex; flex-direction: column; gap: clamp(2rem, 1.879rem + .52vw, 2.5rem);
  width: 100%; max-width: clamp(21.438rem, 16.72rem + 20.13vw, 40.875rem); margin: 0 1rem;
}
.approach__heading {
  margin: 0;
  font-family: "alternate-gothic-extra-cond", "Archivo", Arial, sans-serif; font-stretch: 62%; font-weight: 400;
  font-size: clamp(4rem, 3.515rem + 2.07vw, 6rem); line-height: .89; text-transform: uppercase; text-align: center;
}
.approach__paragraph {
  margin: 0;
  font-size: clamp(1rem, .939rem + .26vw, 1.25rem); font-weight: 500; line-height: 1.5; letter-spacing: -.03em;
}
/* 日本語：Zen Kaku Gothic New の細め（Light 300・Google Fonts）。見出しは英語のまま、その下に小さく日本語 */
.approach__heading-ja {
  display: block; margin-top: 1.4rem;
  font-family: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif; font-weight: 300; font-stretch: normal;   /* 英語の見出しの下に、日本語を細く小さく */
  font-size: clamp(.8125rem, .78rem + .15vw, .9375rem); line-height: 1.4; letter-spacing: .2em; text-transform: none; text-indent: .2em;   /* 中央揃えで、字間のぶん右にずれないように */
}
.approach__paragraph:lang(ja) {
  font-family: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif; font-weight: 300;   /* Zen Kaku Gothic New Light */
  font-size: clamp(.9375rem, .89rem + .2vw, 1.125rem); line-height: 2; letter-spacing: .04em;
}
.approach__link:lang(ja) {
  font-family: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif; font-weight: 300;   /* Zen Kaku Gothic New Light */
  font-size: clamp(.875rem, .84rem + .15vw, 1rem); letter-spacing: .08em; line-height: 1.4;
}
.approach__link {
  align-self: flex-start; color: inherit;
  font-size: clamp(1rem, .939rem + .26vw, 1.25rem); font-weight: 600; letter-spacing: -.05em; line-height: .89;
  text-decoration: underline; text-underline-offset: 3px;
}
/* 「事例」ボタン：背景が透けるうすいガラスの板。影で背景から浮き出して見せ、押すと沈む（ニューモーフィズム）
   元：uiverse.io「Button」by ke1221（MIT License）。塗りをやめて背景が透けるようにし、暗い背景の上で浮いて見えるよう影を調整
   （.approach__link:lang(ja) の文字の指定より強くするため、2 つのクラスで指定） */
.approach__link.ap-btn {
  --ab-shade: rgb(10 12 11 / .55);       /* 右下の影 */
  --ab-light: rgb(228 234 220 / .1);     /* 左上の照り返し */
  padding: .7em 1.7em .7em calc(1.7em + .08em);   /* 字間の分だけ左を足して、文字を真ん中に */
  border: 1px solid rgb(228 234 220 / .12); border-radius: .5em;
  background: linear-gradient(145deg, rgb(228 234 220 / .04), rgb(228 234 220 / 0));   /* ほぼ透明。ごくうすい明るさだけを重ねて、背景の網点がそのまま見える */
  color: #e4eadc;
  /* 文字：ほかの日本語と同じ Zen Kaku Gothic New Light */
  font-family: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif; font-weight: 300;
  font-size: clamp(.875rem, .84rem + .15vw, 1rem); letter-spacing: .08em; line-height: 1.4;
  text-decoration: none;
  box-shadow: 6px 6px 14px var(--ab-shade), -5px -5px 12px var(--ab-light), inset 1px 1px 0 rgb(228 234 220 / .08);
  transition: color .3s, box-shadow .3s, background-color .3s;
}
.ap-btn:hover { background-color: rgb(228 234 220 / .06); }
.ap-btn:active { color: #b9c0b4; box-shadow: inset 4px 4px 10px var(--ab-shade), inset -3px -3px 10px var(--ab-light); }   /* 押すと沈む（元のボタンと同じ） */
.ap-btn:focus-visible { outline: 1px solid #e4eadc; outline-offset: 4px; }

/* 写真の枠：段ごとに違う角だけ大きく丸める（参考サイトと同じ並び） */
.approach__image { position: relative; width: 100%; height: clamp(21.313rem, 11.407rem + 42.27vw, 62.125rem); overflow: hidden; }
.approach__image--first  { border-top-left-radius: var(--ap-radius); }
.approach__image--second { border-bottom-left-radius: var(--ap-radius); }
.approach__image--third  { border-top-right-radius: var(--ap-radius); border-bottom-right-radius: var(--ap-radius); }
.approach__image--fourth { border-bottom-right-radius: var(--ap-radius); }
.approach__image img {
  display: block; width: 100%; height: 110%; object-fit: cover;
  transform: translate3d(0, var(--ap-shift, -5%), 0);   /* スクロールより少しゆっくり動く（js/approach.js） */
  filter: sepia(.22) saturate(.6) brightness(.9) contrast(1.04);  /* 色を少し抜いて背景になじませつつ、光の温かみは残す */
}
/* 背景になじませるフィルター：
   ::before … ロゴの色（#3E4140）の色みを薄くのせて、セージがかったグレーに少しだけ寄せる
   ::after  … 背景と同じ 8×8 の網点（1 マス 4px）を、うっすら重ねる */
.approach__image::before, .approach__image::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.approach__image::before { background: #3e4140; mix-blend-mode: color; opacity: .28; }
.approach__image::after {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' shape-rendering='crispEdges'%3E%3Crect x='0' y='0' width='4' height='4' fill='rgb(0,0,0)'/%3E%3Crect x='4' y='0' width='4' height='4' fill='rgb(130,130,130)'/%3E%3Crect x='8' y='0' width='4' height='4' fill='rgb(32,32,32)'/%3E%3Crect x='12' y='0' width='4' height='4' fill='rgb(162,162,162)'/%3E%3Crect x='16' y='0' width='4' height='4' fill='rgb(8,8,8)'/%3E%3Crect x='20' y='0' width='4' height='4' fill='rgb(138,138,138)'/%3E%3Crect x='24' y='0' width='4' height='4' fill='rgb(40,40,40)'/%3E%3Crect x='28' y='0' width='4' height='4' fill='rgb(170,170,170)'/%3E%3Crect x='0' y='4' width='4' height='4' fill='rgb(194,194,194)'/%3E%3Crect x='4' y='4' width='4' height='4' fill='rgb(65,65,65)'/%3E%3Crect x='8' y='4' width='4' height='4' fill='rgb(227,227,227)'/%3E%3Crect x='12' y='4' width='4' height='4' fill='rgb(97,97,97)'/%3E%3Crect x='16' y='4' width='4' height='4' fill='rgb(202,202,202)'/%3E%3Crect x='20' y='4' width='4' height='4' fill='rgb(73,73,73)'/%3E%3Crect x='24' y='4' width='4' height='4' fill='rgb(235,235,235)'/%3E%3Crect x='28' y='4' width='4' height='4' fill='rgb(105,105,105)'/%3E%3Crect x='0' y='8' width='4' height='4' fill='rgb(49,49,49)'/%3E%3Crect x='4' y='8' width='4' height='4' fill='rgb(178,178,178)'/%3E%3Crect x='8' y='8' width='4' height='4' fill='rgb(16,16,16)'/%3E%3Crect x='12' y='8' width='4' height='4' fill='rgb(146,146,146)'/%3E%3Crect x='16' y='8' width='4' height='4' fill='rgb(57,57,57)'/%3E%3Crect x='20' y='8' width='4' height='4' fill='rgb(186,186,186)'/%3E%3Crect x='24' y='8' width='4' height='4' fill='rgb(24,24,24)'/%3E%3Crect x='28' y='8' width='4' height='4' fill='rgb(154,154,154)'/%3E%3Crect x='0' y='12' width='4' height='4' fill='rgb(243,243,243)'/%3E%3Crect x='4' y='12' width='4' height='4' fill='rgb(113,113,113)'/%3E%3Crect x='8' y='12' width='4' height='4' fill='rgb(210,210,210)'/%3E%3Crect x='12' y='12' width='4' height='4' fill='rgb(81,81,81)'/%3E%3Crect x='16' y='12' width='4' height='4' fill='rgb(251,251,251)'/%3E%3Crect x='20' y='12' width='4' height='4' fill='rgb(121,121,121)'/%3E%3Crect x='24' y='12' width='4' height='4' fill='rgb(219,219,219)'/%3E%3Crect x='28' y='12' width='4' height='4' fill='rgb(89,89,89)'/%3E%3Crect x='0' y='16' width='4' height='4' fill='rgb(12,12,12)'/%3E%3Crect x='4' y='16' width='4' height='4' fill='rgb(142,142,142)'/%3E%3Crect x='8' y='16' width='4' height='4' fill='rgb(45,45,45)'/%3E%3Crect x='12' y='16' width='4' height='4' fill='rgb(174,174,174)'/%3E%3Crect x='16' y='16' width='4' height='4' fill='rgb(4,4,4)'/%3E%3Crect x='20' y='16' width='4' height='4' fill='rgb(134,134,134)'/%3E%3Crect x='24' y='16' width='4' height='4' fill='rgb(36,36,36)'/%3E%3Crect x='28' y='16' width='4' height='4' fill='rgb(166,166,166)'/%3E%3Crect x='0' y='20' width='4' height='4' fill='rgb(206,206,206)'/%3E%3Crect x='4' y='20' width='4' height='4' fill='rgb(77,77,77)'/%3E%3Crect x='8' y='20' width='4' height='4' fill='rgb(239,239,239)'/%3E%3Crect x='12' y='20' width='4' height='4' fill='rgb(109,109,109)'/%3E%3Crect x='16' y='20' width='4' height='4' fill='rgb(198,198,198)'/%3E%3Crect x='20' y='20' width='4' height='4' fill='rgb(69,69,69)'/%3E%3Crect x='24' y='20' width='4' height='4' fill='rgb(231,231,231)'/%3E%3Crect x='28' y='20' width='4' height='4' fill='rgb(101,101,101)'/%3E%3Crect x='0' y='24' width='4' height='4' fill='rgb(61,61,61)'/%3E%3Crect x='4' y='24' width='4' height='4' fill='rgb(190,190,190)'/%3E%3Crect x='8' y='24' width='4' height='4' fill='rgb(28,28,28)'/%3E%3Crect x='12' y='24' width='4' height='4' fill='rgb(158,158,158)'/%3E%3Crect x='16' y='24' width='4' height='4' fill='rgb(53,53,53)'/%3E%3Crect x='20' y='24' width='4' height='4' fill='rgb(182,182,182)'/%3E%3Crect x='24' y='24' width='4' height='4' fill='rgb(20,20,20)'/%3E%3Crect x='28' y='24' width='4' height='4' fill='rgb(150,150,150)'/%3E%3Crect x='0' y='28' width='4' height='4' fill='rgb(255,255,255)'/%3E%3Crect x='4' y='28' width='4' height='4' fill='rgb(125,125,125)'/%3E%3Crect x='8' y='28' width='4' height='4' fill='rgb(223,223,223)'/%3E%3Crect x='12' y='28' width='4' height='4' fill='rgb(93,93,93)'/%3E%3Crect x='16' y='28' width='4' height='4' fill='rgb(247,247,247)'/%3E%3Crect x='20' y='28' width='4' height='4' fill='rgb(117,117,117)'/%3E%3Crect x='24' y='28' width='4' height='4' fill='rgb(215,215,215)'/%3E%3Crect x='28' y='28' width='4' height='4' fill='rgb(85,85,85)'/%3E%3C/svg%3E") 0 0 / 32px 32px;
  image-rendering: pixelated; mix-blend-mode: soft-light; opacity: .32;
}

/* ---- 動き（js/approach.js が is-ready を付けたあとだけ。読み込めなくても文字は見える） ---- */
.approach.is-ready [data-blur-words] .ap-word {
  display: inline-block; opacity: 0; filter: blur(30px);
  transition: opacity 1s .1s, filter 1s .1s; will-change: opacity, filter;
}
.approach.is-ready [data-blur-words] .ap-word.is-visible { opacity: 1; filter: blur(0); }
.approach.is-ready .approach__link { opacity: 0; transform: translateY(40px); transition: opacity .4s .4s cubic-bezier(.5, 1, .89, 1), transform .4s .4s cubic-bezier(.5, 1, .89, 1); }
.approach.is-ready .approach__link.is-visible { opacity: 1; transform: none; }
.approach.is-ready .approach__link.ap-btn { transition: opacity .4s .4s cubic-bezier(.5, 1, .89, 1), transform .4s .4s cubic-bezier(.5, 1, .89, 1), color .3s, box-shadow .3s, background-color .3s; }   /* 浮き出る動きに、押したときの影の動きを足す */
.approach.is-ready .approach__image { clip-path: inset(100% 0 0 0); transition: clip-path 1.2s cubic-bezier(.32, 0, .29, .99); }
.approach.is-ready .approach__image.is-visible { clip-path: inset(0 0 0 0); }

@media (max-width: 991px) {
  .approach__list { display: flex; flex-direction: column; gap: 3.75rem; padding-bottom: 5rem; }
  .approach__item, .approach__item--reverse { flex-direction: column-reverse; gap: 2.5rem; }
  .approach__box { width: 100%; padding: 0 1rem; }
  .approach__text { max-width: 100%; margin: 0; }
  .approach__image--second { border-top-left-radius: var(--ap-radius); }
}
@media (max-width: 767px) { .approach__paragraph { line-height: 1.4; } .approach__paragraph:lang(ja) { line-height: 1.9; } }
@media (prefers-reduced-motion: reduce) {
  .approach.is-ready [data-blur-words] .ap-word, .approach.is-ready .approach__link, .approach.is-ready .approach__image { transition: none; }
}

/* ==========================================================================
   S5 SQUARE「ブランディング四角形」
   画面に止めたまま、スクロールで 1 角ずつ進む（js/square.js が is-active・data-side・--sq-draw を付ける）。
   四角形と文章は 1 角ごとに左右が入れ替わる（1・3 つめの角：四角形が右・文章が左／2・4 つめ：その逆）
   ========================================================================== */
.square {
  --sq-steps: 4;
  --sq-ease: cubic-bezier(.65, 0, .2, 1);
  position: relative; z-index: 1;
  height: calc(100vh * 4.6); height: calc(100svh * 4.6);   /* 1 角あたり画面 1 枚ぶんのスクロール＋最後の余韻 */
  color: var(--page-ink);
  font-family: "Switzer", "Archivo", Arial, sans-serif;
}
.square__stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr;
  padding: clamp(4.5rem, 3rem + 5vw, 8rem) clamp(1rem, .5rem + 3vw, 4rem) clamp(2rem, 1rem + 3vw, 4rem);
  box-sizing: border-box;
}
.square__head {
  position: absolute; top: clamp(1.5rem, 1rem + 2vw, 3rem); left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 0 clamp(1rem, .5rem + 3vw, 4rem);
}
.square__eyebrow { margin: 0; font-size: clamp(.75rem, .7rem + .2vw, .9rem); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; opacity: .7; }
.square__title { margin: 0; font-family: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif; font-weight: 300; font-size: clamp(.8125rem, .78rem + .15vw, .9375rem); letter-spacing: .2em; opacity: .85; }

/* 四角形：左右の半分を行き来する */
.square__figure {
  position: absolute; top: 50%; left: 75%;
  width: min(32vw, 52svh); aspect-ratio: 1;
  translate: -50% -45%;
  transition: left 1.1s var(--sq-ease);
}
.square[data-side="left"] .square__figure { left: 25%; }
.square__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.square__base { fill: none; stroke: currentColor; stroke-opacity: .18; stroke-width: 1; vector-effect: non-scaling-stroke; }
.square__line {
  fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round;   /* 線の長さを svg の座標で測るため、non-scaling-stroke は使わない */
  stroke-dasharray: 0 9999;   /* 辺が角から角へ伸びる（長さは js/square.js が入れる） */
  transition: stroke-dasharray 1.1s var(--sq-ease);
}
/* 角のきらめき：ダイヤモンドの輝きを参考に、js/sparkle.js が WebGL で描く（四角形のまわりまで光が伸びるよう、ひとまわり大きく重ねる） */
.square__sparkle { position: absolute; inset: -40%; width: 180%; height: 180%; pointer-events: none; }
/* 角のラベル */
.square__label {
  position: absolute; margin: 0; display: flex; flex-direction: column; gap: .3em;
  opacity: .4; transition: opacity .6s; white-space: nowrap;
}
.square__label.is-active { opacity: 1; }
.square__label-en { font-family: "alternate-gothic-extra-cond", "Archivo", sans-serif; font-stretch: 62%; font-size: clamp(1.1rem, .9rem + .7vw, 1.6rem); line-height: .9; text-transform: uppercase; }
.square__label-ja { font-family: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif; font-weight: 300; font-size: clamp(.6875rem, .66rem + .12vw, .8125rem); letter-spacing: .14em; }
/* ラベルは角のきらめき（縦の光の筋）にかからないよう、少し離す */
.square__label--tl { left: 0; top: 0; translate: 0 calc(-100% - 3.6rem); }
.square__label--tr { right: 0; top: 0; translate: 0 calc(-100% - 3.6rem); align-items: flex-end; text-align: right; }
.square__label--br { right: 0; bottom: 0; translate: 0 calc(100% + 3.6rem); align-items: flex-end; text-align: right; }
.square__label--bl { left: 0; bottom: 0; translate: 0 calc(100% + 3.6rem); }

/* 文章：四角形の反対側の半分 */
.square__texts { position: relative; grid-column: 1; grid-row: 1; display: grid; align-items: center; transition: transform 1.1s var(--sq-ease); }
.square[data-side="left"] .square__texts { transform: translateX(100%); }
.square__text {
  grid-area: 1 / 1; max-width: clamp(20rem, 15rem + 18vw, 34rem);
  margin: 0 auto 0 0; padding-right: clamp(1rem, 3vw, 3rem);
  display: flex; flex-direction: column; gap: clamp(1rem, .8rem + .8vw, 1.75rem);
  opacity: 0; filter: blur(14px); translate: 0 28px; pointer-events: none;
  transition: opacity .3s, filter .3s, translate .3s var(--sq-ease);   /* 消えるときは素早く */
}
.square[data-side="left"] .square__text { margin: 0 0 0 auto; padding: 0 0 0 clamp(1rem, 3vw, 3rem); }
.square__text.is-active { opacity: 1; filter: blur(0); translate: 0 0; pointer-events: auto; transition-duration: .7s; transition-delay: .55s; }   /* 移動し終わるころに現れる */
.square__name {
  margin: 0; font-family: "alternate-gothic-extra-cond", "Archivo", sans-serif; font-stretch: 62%; font-weight: 400;
  font-size: clamp(3.5rem, 2.6rem + 4vw, 7rem); line-height: .88; text-transform: uppercase; text-align: center;
}
.square__name-ja { display: block; margin-top: 1.2rem; text-align: center; text-indent: .2em;   /* 字間のぶん、右にずれないように */ font-family: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif; font-weight: 300; font-stretch: normal; font-size: clamp(.8125rem, .78rem + .15vw, .9375rem); line-height: 1.4; letter-spacing: .2em; text-transform: none; }
/* 問い（何を・どこで・いつ）：Zen Kaku Gothic New（Adobe Fonts の 400）を横だけ縮めて縦長に（日本語の縦長書体がないので scaleX で）。見出しとのあいだを少し広く空ける */
.square__lead {
  margin: clamp(.75rem, .5rem + .8vw, 1.5rem) 0 0;
  font-family: "zen-kaku-gothic-new", "Zen Kaku Gothic New", "Noto Sans JP", sans-serif; font-weight: 400;
  font-size: clamp(1.375rem, 1.1rem + .9vw, 1.875rem); line-height: 1.4; letter-spacing: .06em;
  text-align: center; transform: scaleX(.78); transform-origin: center;   /* この一行だけ、文章の幅の中央に */
}
.square__body { margin: 0; font-family: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif; font-weight: 300; font-size: clamp(.9375rem, .89rem + .2vw, 1.0625rem); line-height: 2; letter-spacing: .04em; }
.square__quote { margin: 0; display: flex; flex-direction: column; gap: .9rem; }
.square__quote-en { margin: 0; font-size: clamp(1.25rem, 1rem + 1vw, 1.875rem); font-weight: 500; line-height: 1.3; letter-spacing: -.02em; }
.square__quote-ja { margin: 0; font-family: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif; font-weight: 300; font-size: clamp(.875rem, .84rem + .15vw, 1rem); line-height: 1.9; letter-spacing: .06em; opacity: .85; }
.square__quote-by { font-size: .875rem; font-weight: 600; letter-spacing: .02em; opacity: .7; }

/* スマホ：四角形を上、文章を下に（左右の入れ替えはしない） */
@media (max-width: 767px) {
  .square__stage { grid-template-columns: 1fr; grid-template-rows: 44% 1fr; padding-top: 4.5rem; }
  .square__figure, .square[data-side="left"] .square__figure { left: 50%; top: 27%; width: min(56vw, 30svh); translate: -50% -50%; }
  .square__texts, .square[data-side="left"] .square__texts { grid-row: 2; transform: none; align-items: start; }
  .square__text, .square[data-side="left"] .square__text { margin: 0; padding: 2.25rem 0 0; max-width: none; }   /* 上：四角形の下の角の名前と重ならないように */
  .square__name { font-size: clamp(2.75rem, 2rem + 4vw, 4rem); }
  .square__label-en { font-size: 1rem; }
  .square__label--tl, .square__label--tr { translate: 0 calc(-100% - 2.4rem); }
  .square__label--br, .square__label--bl { translate: 0 calc(100% + 2.4rem); }
}
@media (prefers-reduced-motion: reduce) {
  .square__figure, .square__line, .square__texts, .square__text { transition: none; }
}

/* ---------- 静止画モード（カット表用 ?still=1）---------- */
.is-still .gate__dots i, .is-still .scroll-cue span::after { animation: none !important; }

@media (prefers-reduced-motion: reduce) {
  .gate__dots i, .scroll-cue span::after { animation: none; opacity: 1; }
}

/* ================= いちばん下（フッター）：背景は変えず、上と同じ暗い網点のまま。左に見出し Contact、右に目次・メール・会社情報 ================= */
.contact {
  --ct-ink: #e4eadc; --ct-sub: rgb(228 234 220 / .55);
  /* 4 列：ロゴ／目次／お問い合わせ／会社情報（上の段と下の段でそろえる） */
  --ct-cols: minmax(0, 1fr) minmax(7.5rem, 11vw) minmax(10rem, 13vw) minmax(15rem, 22vw);
  position: relative; z-index: 2;
  box-sizing: border-box;
  padding: clamp(40px, 4.4vw, 64px) clamp(16px, 4vw, 64px) clamp(20px, 2vw, 28px);
  border-top: 1px solid rgb(228 234 220 / .14);   /* 上の四角形との境目：細い線だけ */
  color: var(--ct-ink);
  font-family: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif; font-weight: 300;
}
.contact__main, .contact__bottom { display: grid; grid-template-columns: var(--ct-cols); column-gap: clamp(16px, 2vw, 32px); }
.contact__label { margin: 0 0 .8em; font-size: clamp(12px, .9vw, 14px); letter-spacing: .2em; color: var(--ct-sub); }
.contact__title {
  margin: 0; color: #b9c0b4;   /* 背景のグレーグリーンと同系色（明るめ） */
  font-family: "Jost", "Switzer", Arial, sans-serif; font-weight: 200;
  font-size: clamp(44px, 5vw, 76px); line-height: 1; letter-spacing: .02em;
}
/* 見出し Contact も押せる（メールのひな型が開く。js/contact.js） */
.contact__title a { color: inherit; text-decoration: none; transition: color .4s; }
.contact__title a:hover, .contact__title a:focus-visible { color: var(--ct-ink); }
.contact__sign { display: flex; align-items: center; gap: 16px; }
.contact__logo img { display: block; width: auto; height: clamp(20px, 1.8vw, 26px); filter: brightness(0) invert(1); opacity: .78; }
.contact__head { margin: 0 0 clamp(18px, 1.8vw, 26px); font-family: "Switzer", "Archivo", sans-serif; font-weight: 400; font-size: 13px; color: var(--ct-sub); }
.contact__list { display: grid; gap: clamp(12px, 1.1vw, 16px); margin: 0; padding: 0; list-style: none; font-size: 14px; line-height: 1.5; }
.contact__list--nav { letter-spacing: .02em; }
.contact__list a, .contact__policy { color: inherit; text-decoration: none; text-underline-offset: 3px; }
.contact__list a:hover, .contact__list a:focus-visible, .contact__policy:hover, .contact__policy:focus-visible { text-decoration: underline; }
.contact__list a:lang(en) { font-family: "Switzer", "Archivo", sans-serif; font-weight: 400; font-size: 13px; }
.contact__address { font-style: normal; font-size: 13px; line-height: 1.7; letter-spacing: .04em; }
.contact__address p { margin: 0 0 .8em; }
.contact__address p:last-child { margin-bottom: 0; }
.contact__bottom { align-items: center; margin-top: clamp(40px, 4.4vw, 64px); font-family: "Switzer", "Archivo", sans-serif; font-size: 12px; color: var(--ct-sub); }
.contact__copy { font-size: inherit; }
/* タブレット以下：見出しを上に。スマホは目次とお問い合わせを横に並べ、会社情報はその下 */
@media (max-width: 991px) {
  .contact { --ct-cols: repeat(3, minmax(0, 1fr)); }
  .contact__title-box { grid-column: 1 / -1; margin-bottom: 36px; }
}
@media (max-width: 767px) {
  .contact { --ct-cols: repeat(2, minmax(0, 1fr)); }
  .contact__col:last-child { grid-column: 1 / -1; margin-top: 32px; }
  .contact__policy { text-align: right; }
}
