/* ============================================================
   Dimensionworks v2 — 真っ白 / Apple-like / トップ＝リール
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Zen+Old+Mincho:wght@500;600;700;900&family=Noto+Sans+JP:wght@400;500;600;700&family=Italiana&display=swap');

/* 支給フォント：Nomark（FV英字タグライン用） */
@font-face {
  font-family: 'Nomark';
  src: url('fonts/Nomark.woff2') format('woff2'),
       url('fonts/Nomark.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #fbfbf9;            /* ほんのり温かいオフホワイト */
  --bg-2: #f1f0ea;          /* 一段沈めた地 */
  --ink: #1a1a18;           /* 墨（純黒より柔らかく） */
  --ink-2: #6e6e69;         /* 二次テキスト */
  --line: #e6e4dd;
  --accent: #e0301e;        /* RECの赤（極小アクセントのみ） */
  --link: #0066cc;
  --r: 18px;                /* Apple的角丸 */
  --r-lg: 28px;
  --maxw: 1320px;
  --pad: clamp(1.2rem, 4vw, 3rem);
  --ease: cubic-bezier(0.32, 0.72, 0, 1);   /* Apple系イージング */
  --nav-h: 56px;
  --serif: "Zen Old Mincho", "Hiragino Mincho ProN", "YuMincho", "Yu Mincho", serif;
  --display-en: "Nomark", "Italiana", "Times New Roman", var(--serif);   /* 英字タグライン専用：支給フォント（無ければItaliana） */
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Arial, sans-serif;
}

/* 全面の微細フィルムグレイン（映像質感） */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 9998; pointer-events: none; opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* オープニング中はスクロール完全固定（モバイル実機対策） */
html.preload-lock { overflow: hidden; }
html.preload-lock body {
  overflow: hidden;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  touch-action: none;
  -webkit-overflow-scrolling: auto;
}

/* ページ遷移フェード（内部リンク移動 ＆ 読み込み時のフェードイン） */
body { transition: opacity 0.42s var(--ease); }
html.preload-lock body { opacity: 0; }
html.is-leaving body { opacity: 0 !important; }

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(100% - calc(var(--pad) * 2), var(--maxw)); margin-inline: auto; }

/* ---------- タイポ ---------- */
/* チップ見出し（●Company等）はマークアップに残すがCSSで非表示 */
.eyebrow { display: none !important; }

h1, h2, h3 { font-weight: 600; letter-spacing: -0.022em; line-height: 1.07; margin: 0; }
.display { font-size: clamp(2.2rem, 7vw, 5.6rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.12; }
.section-title { font-size: clamp(2rem, 5vw, 3.6rem); }

/* 大見出しは明朝（高級感） */
.display, .section-title, .page-hero h1, .prose .big, .cta h2, .statement, .quote__text {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.18;
  text-wrap: balance;
  line-break: strict;
  word-break: auto-phrase;
  overflow-wrap: break-word;
}

/* 中央寄せのリードは均等割り（「ます。」だけ落ちる等を防ぐ） */
.lead, .quote__sub, .statement-sub, .hero-video__intro .lead { text-wrap: balance; word-break: auto-phrase; }
.prose p { text-wrap: pretty; word-break: auto-phrase; }
.nbr { white-space: nowrap; }

/* 視覚的には非表示だがSEO/スクリーンリーダー用に残すページタイトル */
.vh-title { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* 英字のセクション見出し（明朝にせずクリーンなサンス） */
.section-title.en { font-family: var(--sans); font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; }

/* スマホ横切れ対策：長いメール/URLを折り返す */
.profile .row dd, .contact-lines .row dd,
.profile .row dd a, .contact-lines .row dd a { overflow-wrap: anywhere; word-break: break-word; }
.contact-mail .big-mail { overflow-wrap: anywhere; max-width: 100%; }

/* フッター最下部の大ロゴを非表示 */
.footer-logo { display: none; }

/* 英字タイトル（REEL等）は明朝にせずクリーンな大型サンスで */
.page-hero h1.title-en {
  font-family: var(--sans);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: clamp(2.8rem, 11vw, 7rem);
  line-height: 1;
}
.lead { color: var(--ink-2); font-size: clamp(1.05rem, 2vw, 1.35rem); font-weight: 400; line-height: 1.5; }

/* ============================================================
   オープニング（ロゴのドロー/フェード → ヘッダーへ収束）
   ============================================================ */
.opening {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  z-index: 200; background: var(--bg);
  display: grid; place-items: center; overflow: hidden;
}
/* 白基調のまま、ごく薄い背景映像で上品に */
.opening__bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; z-index: 0; filter: grayscale(35%);
  transform: scale(1.06); transition: opacity 1.2s var(--ease), transform 6s linear;
}
.opening.is-draw .opening__bg { opacity: 0.18; transform: scale(1.12); }
/* 端を白で締めて"紙"感を残す（映像は中央に薄く） */
.opening::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 120% at 50% 45%, rgba(251,251,249,0) 30%, rgba(251,251,249,0.85) 78%, rgba(251,251,249,1) 100%);
}
.opening__logo, .opening__rec { position: relative; z-index: 2; }
.opening__logo {
  width: min(62vw, 560px);
  clip-path: inset(0 100% 0 0);
  filter: blur(6px); opacity: 0; transform: scale(1.04);
}
.opening.is-draw .opening__logo {
  clip-path: inset(0 0% 0 0);
  filter: blur(0); opacity: 1; transform: scale(1);
  transition: clip-path 1.15s var(--ease), filter 0.9s var(--ease),
              opacity 0.7s var(--ease), transform 1.15s var(--ease);
}
.opening.is-out { opacity: 0; transition: opacity 0.7s var(--ease); pointer-events: none; }
.opening.is-out .opening__logo { transform: scale(0.96); transition: transform 0.7s var(--ease); }
.opening__rec {
  position: absolute; bottom: 8%; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 0.5em;
  font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-2);
  opacity: 0;
}
.opening.is-draw .opening__rec { opacity: 1; transition: opacity 0.6s var(--ease) 0.6s; }
.opening__rec .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: blink 1.4s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0.2; } }

/* ============================================================
   ヘッダー
   ============================================================ */
.site-header {
  position: fixed; top: clamp(8px, 1.4vw, 16px); left: 0; right: 0; z-index: 100;
}
.nav {
  position: relative;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  width: min(100% - calc(var(--pad) * 2), var(--maxw)); margin-inline: auto;
  padding-inline: clamp(1.1rem, 2.4vw, 1.8rem);
  border-radius: 980px;
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.65);
  box-shadow: 0 10px 34px -14px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.85);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.nav > * { position: relative; z-index: 1; }
.site-header.is-scrolled .nav { background: rgba(255,255,255,0.68); box-shadow: 0 14px 40px -16px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.9); }
.brand { display: flex; align-items: center; height: 100%; }
.brand img { height: 22px; width: auto; }
html.preload-lock .brand img { opacity: 0; transform: translateY(-4px); }
.brand.is-in img { opacity: 1; transform: none; transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.nav-links { display: flex; gap: clamp(1.2rem, 2.6vw, 2.4rem); align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: inline-block; font-size: 0.82rem; font-weight: 500; letter-spacing: 0.01em; color: var(--ink);
  opacity: 0.82; transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { opacity: 1; }
.nav-links a:hover { transform: scale(1.18); }
.nav-links a:active { transform: scale(0.94); }
@media (prefers-reduced-motion: reduce) {
  .nav-links a:hover, .nav-links a:active { transform: none; }
}
.nav-toggle { display: none; background: none; border: none; cursor: pointer; width: 28px; height: 22px; position: relative; }
.nav-toggle span { position: absolute; left: 2px; right: 2px; height: 1.5px; background: var(--ink); transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
.nav-toggle span:nth-child(1){ top: 5px; } .nav-toggle span:nth-child(2){ top: 11px; } .nav-toggle span:nth-child(3){ top: 17px; }
body.nav-open .nav-toggle span:nth-child(1){ transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2){ opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }

/* ---------- ボタン（Appleのピル） ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 0.5em;
  font-size: 0.95rem; font-weight: 500;
  padding: 0.8em 1.6em; border-radius: 980px;
  background: var(--ink); color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 10px 24px -12px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.22);
  transition: transform 0.25s var(--ease), box-shadow 0.3s var(--ease), background 0.25s var(--ease);
}
.btn > * { position: relative; }
.btn:hover { background: #000; transform: translateY(-1px); box-shadow: 0 16px 30px -12px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.28); }
.btn--ghost { background: transparent; color: var(--link); padding-inline: 0.2em; }
.btn--ghost:hover { background: transparent; text-decoration: underline; transform: none; }
.btn .arr { transition: transform 0.25s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.link-more { color: var(--link); font-size: 1rem; font-weight: 500; display: inline-flex; align-items: center; gap: 0.4em; }
.link-more:hover { text-decoration: underline; }
.link-more .arr { transition: transform 0.25s var(--ease); }
.link-more:hover .arr { transform: translateX(3px); }

/* ============================================================
   トップ＝ヒーロー映像（ミュート自動ループ）
   ============================================================ */
.hero-video { position: relative; padding-block: 0; }
.hero-video__media {
  position: relative; width: 100%;
  height: clamp(62vh, 82vh, 940px);
  background: #000; overflow: hidden;
}
.hero-video__media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-video__scrim { position: absolute; inset: 0; box-shadow: inset 0 -120px 80px -40px rgba(0,0,0,0.5); pointer-events: none; }
.hero-video__cap {
  position: absolute; left: var(--pad); bottom: clamp(1rem, 3vw, 1.8rem); z-index: 2;
  color: #fff; font-size: 0.82rem; letter-spacing: 0.01em; display: flex; align-items: center; gap: 0.6em;
  text-shadow: 0 1px 16px rgba(0,0,0,0.5);
}
.hero-video__cap .rec { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero-video__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); z-index: 3;
  width: clamp(64px, 8vw, 92px); height: clamp(64px, 8vw, 92px); border-radius: 50%;
  background: rgba(255,255,255,0.28);
  backdrop-filter: blur(18px) saturate(180%); -webkit-backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.65); cursor: pointer;
  box-shadow: 0 16px 40px -14px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.85);
  display: grid; place-items: center; transition: transform 0.3s var(--ease), background 0.3s var(--ease), opacity 0.4s var(--ease);
}
.hero-video__play:hover { transform: translate(-50%,-50%) scale(1.07); background: rgba(255,255,255,0.4); }
.hero-video__play::before { content: ""; width: 0; height: 0; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #fff; margin-left: 4px; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3)); }
.hero-video.is-playing .hero-video__play { opacity: 0; pointer-events: none; }
.hero-video.is-playing .hero-video__scrim,
.hero-video.is-playing .hero-video__cap { opacity: 0; transition: opacity 0.4s var(--ease); }
.hero-video__intro { text-align: center; padding-block: clamp(2.6rem, 5.5vw, 4.2rem); }
.hero-video__intro h1 { display: block; max-width: fit-content; margin: 0.4rem auto 0; text-align: center; }
.hero-video__intro .lead { max-width: 42ch; margin: 1.2rem auto 0; }
.hero-video__intro .actions { margin-top: 1.8rem; display: flex; gap: 1.4rem; justify-content: center; align-items: center; flex-wrap: wrap; }

/* ============================================================
   リール帯 / フラッグシップ / 事業内容
   ============================================================ */

/* 映像集リール帯（全幅・横スクロール2列・逆方向） */
.top-reel { padding-top: clamp(2.2rem, 5vw, 3.8rem); padding-bottom: clamp(2.2rem, 5vw, 3.8rem); }
.reel { display: grid; gap: clamp(0.8rem, 1.6vw, 1.2rem); overflow: hidden; }
.reel__row { display: flex; gap: clamp(0.8rem, 1.6vw, 1.2rem); width: max-content; will-change: transform; }
.reel__row .yt { flex: 0 0 clamp(240px, 30vw, 420px); }
.reel__row:first-child { margin-left: calc(var(--pad) * -0.5); }

/* フラッグシップ動画 */
.featured { padding-top: clamp(2.4rem, 6vw, 4.5rem); }
.featured .head { text-align: center; margin-bottom: clamp(1.6rem, 4vw, 2.6rem); }
.featured h1 { margin: 0.6rem auto 0; }
.featured .lead { max-width: 42ch; margin: 1.2rem auto 0; }
.featured__stage { width: min(100% - calc(var(--pad) * 2), 1100px); margin: clamp(1.8rem, 4vw, 2.8rem) auto 0; }
.featured__stage .yt { border-radius: var(--r-lg); box-shadow: 0 30px 60px -30px rgba(0,0,0,0.35); }
.featured__cap { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-top: 1rem; color: var(--ink-2); font-size: 0.9rem; }
.featured__cap .t { color: var(--ink); font-weight: 600; }

/* 事業内容 */
.what .section-head .lead { max-width: 56ch; }
.services-wrap { position: relative; margin-top: clamp(1rem, 3vw, 2rem); }
.services {
  display: flex; gap: clamp(1.1rem, 2.2vw, 1.8rem);
  overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; margin: 0 calc(-1 * var(--pad)); padding: 0.2rem var(--pad) 0.6rem;
}
.services::-webkit-scrollbar { display: none; }
.service {
  flex: 0 0 calc((100% - 2 * clamp(1.1rem, 2.2vw, 1.8rem)) / 3);
  scroll-snap-align: start;
  text-align: left;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  border-radius: var(--r-lg);
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(20px) saturate(170%);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: 0 24px 50px -28px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.8);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.service:hover { transform: translateY(-4px); box-shadow: 0 34px 60px -28px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.9); }
.service .ic { width: 30px; height: 30px; color: var(--ink); margin-bottom: 1rem; }
.service h3 { font-size: 1.3rem; letter-spacing: -0.01em; }
.service .en { display: block; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.06em; color: var(--ink-2); margin-bottom: 0.5rem; }
.service p { margin: 0.7rem 0 0; color: var(--ink-2); font-size: 0.98rem; line-height: 1.7; }

.services-nav { display: flex; justify-content: flex-end; gap: 0.6rem; margin-top: 1.3rem; }
.services-nav__btn {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  border: 1px solid rgba(0,0,0,0.14); background: #fff; color: var(--ink);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background 0.22s var(--ease), color 0.22s var(--ease), border-color 0.22s var(--ease), transform 0.22s var(--ease);
}
.services-nav__btn svg { width: 18px; height: 18px; }
.services-nav__btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); transform: translateY(-1px); }

/* 動画タイル（lite YouTube） */
.yt {
  position: relative; aspect-ratio: 16/9; border-radius: var(--r); overflow: hidden;
  background: #ececee; cursor: pointer;
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: 0 18px 40px -22px rgba(0,0,0,0.35);
  transition: box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.work:hover .yt, .reel__row .yt:hover { box-shadow: 0 26px 50px -22px rgba(0,0,0,0.4); }
.yt img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1); }
.yt:hover img { transform: scale(1.025); }
.yt .play {
  position: absolute; left: 14px; bottom: 14px; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(6px); display: grid; place-items: center;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.yt:hover .play { transform: scale(1.05); }
.yt .play::before { content: ""; width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 11px; border-color: transparent transparent transparent var(--ink); margin-left: 2px; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ============================================================
   セクション共通
   ============================================================ */
section { padding-block: clamp(2.8rem, 5.5vw, 5rem); }
/* 映像ヘッダーを持たないページの最初のセクション：固定ヘッダー分の余白を確保 */
.section--lead { padding-top: calc(var(--nav-h) + clamp(3.2rem, 7vw, 5.5rem)) !important; }
section + section { padding-top: clamp(2rem, 4vw, 3.4rem); }
.section--grey + .section--grey, section.cta { padding-top: clamp(2.8rem, 5.5vw, 5rem); }
.section--grey { background: var(--bg-2); }
.section-head { text-align: center; margin-bottom: clamp(2rem, 4.5vw, 3.4rem); }
.section-head .lead { margin: 1rem auto 0; max-width: 46ch; }

/* ============================================================
   WORKS
   ============================================================ */
.works-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem, 2.4vw, 2rem); }
.work .meta { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-top: 1rem; }
.work .ttl { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; }
.work .cat { font-size: 0.82rem; color: var(--ink-2); white-space: nowrap; }
.work .credits { display: block; margin-top: 0.35rem; color: var(--ink-2); font-size: 0.78rem; letter-spacing: 0.01em; }
.works-cta { text-align: center; margin-top: clamp(2.4rem, 5vw, 3.6rem); }
.works-grid.cols3 { grid-template-columns: repeat(3, 1fr); gap: clamp(0.7rem, 1.2vw, 1.1rem); }

/* 作品ホバー（角のPLAYは消し、下グラデ＋PLAYラベルに集約） */
.work .yt .play { display: none; }
.work .yt::after { content: ""; position: absolute; inset: 0; z-index: 1;
  box-shadow: inset 0 -80px 60px -20px rgba(0,0,0,0.55); opacity: 0; pointer-events: none;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.work:hover .yt::after { opacity: 1; }
.work .yt::before { content: "▶ PLAY"; position: absolute; right: 14px; bottom: 12px; z-index: 2;
  color: #fff; font: 700 0.72rem/1 var(--sans); letter-spacing: 0.1em; opacity: 0; transform: translateY(6px);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1); pointer-events: none; }
.work:hover .yt::before { opacity: 1; transform: none; }
.work.is-hidden { display: none; }
.work { transition: opacity 0.7s var(--ease); }
.work.is-fading { opacity: 0 !important; }

/* WORKSフィルタ（ガラスピル） */
.work-filter { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-bottom: clamp(2rem, 4vw, 3rem); }
.work-filter button { font: 500 0.86rem/1 var(--sans); color: var(--ink-2); cursor: pointer;
  padding: 0.62em 1.2em; border-radius: 980px; background: rgba(255,255,255,0.55);
  backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(0,0,0,0.06); box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
  transition: color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease); }
.work-filter button:hover { transform: translateY(-1px); color: var(--ink); }
.work-filter button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ============================================================
   ABOUT
   ============================================================ */
.statement { max-width: 22ch; font-size: clamp(2rem, 5.5vw, 4rem); font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; margin: 0 auto; text-align: center; }
.statement .muted { color: var(--ink-2); }
.about-actions { text-align: center; margin-top: 2.4rem; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.4rem, 4vw, 3rem); max-width: 900px; margin: clamp(3rem,7vw,5rem) auto 0; text-align: center; }
.facts .n { font-size: clamp(2.6rem, 6vw, 4rem); font-weight: 600; letter-spacing: -0.03em; }
.facts .l { color: var(--ink-2); font-size: 0.95rem; margin-top: 0.4rem; }

/* ============================================================
   ブランドの一言（映像背景）
   ============================================================ */
.quote { position: relative; padding-block: 0; min-height: clamp(56vh, 78vh, 820px);
  display: grid; place-items: center; overflow: hidden; background: #0a0a0b; color: #fff; }
.quote video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.6;
  animation: dwKen 26s ease-in-out infinite alternate; }
@keyframes dwKen { from { transform: scale(1.04); } to { transform: scale(1.14); } }
.quote::after { content: ""; position: absolute; inset: 0; background: rgba(8,8,10,0.5); pointer-events: none; }
.quote__inner { position: relative; z-index: 2; text-align: center; width: min(100% - calc(var(--pad)*2), 1000px); }
.quote__text { color: #fff; font-size: clamp(2rem, 6vw, 4.4rem); margin: 0; text-shadow: 0 2px 36px rgba(0,0,0,0.45); }
.quote__text .accent { color: #fff; position: relative; }
.quote__sub { margin: 1.4rem auto 0; max-width: 44ch; color: rgba(255,255,255,0.82);
  font-size: clamp(1rem, 1.8vw, 1.2rem); line-height: 1.8; }

/* CTA */
.cta { text-align: center; }
.cta h2 { font-size: clamp(2.2rem, 6vw, 4.4rem); margin-bottom: 1.6rem; }

/* ============================================================
   フッター
   ============================================================ */
.site-footer { background: var(--bg-2); padding-block: clamp(3.5rem, 8vw, 6rem); border-top: 1px solid var(--line); }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.2rem 1.8rem; }
.footer-nav a { font-size: 0.85rem; color: var(--ink-2); }
.footer-nav a:hover { color: var(--ink); }
.footer-meta { font-size: 0.8rem; color: var(--ink-2); text-align: right; line-height: 1.7; }
.footer-bottom { margin-top: clamp(2rem, 5vw, 3rem); padding-top: 1.4rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.8rem; font-size: 0.76rem; color: var(--ink-2); }

/* ============================================================
   下層ページ・ヒーロー
   ============================================================ */
.page-hero { padding-top: calc(var(--nav-h) + clamp(3rem, 8vw, 6rem)); padding-bottom: clamp(1.2rem, 3vw, 2rem); text-align: center; }
.page-hero h1 { font-size: clamp(2.6rem, 8vw, 5.4rem); }
.page-hero .lead { margin: 1rem auto 0; max-width: 44ch; }

/* 下層ヘッダーの映像背景（Pexels） */
.page-hero--video { position: relative; overflow: hidden; background: #0a0a0b; color: #fff;
  padding-top: calc(var(--nav-h) + clamp(4.5rem, 10vw, 8rem)); padding-bottom: clamp(3.5rem, 8vw, 6rem); }
.page-hero--video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0.5; z-index: 0; animation: dwKen 28s ease-in-out infinite alternate; }
.page-hero--video::after { content: ""; position: absolute; inset: 0; background: rgba(8,8,10,0.55); z-index: 1; pointer-events: none; }
.page-hero--video h1, .page-hero--video .lead { position: relative; z-index: 2; color: #fff; }
.page-hero--video h1 { text-shadow: 0 2px 30px rgba(0,0,0,0.4); }
.page-hero--video .lead { color: rgba(255,255,255,0.85); }

/* ============================================================
   下層ページ用ブロック（About / Recruit / Contact）
   ============================================================ */
.prose { max-width: 760px; margin-inline: auto; }
.prose .big { font-size: clamp(1.9rem, 5vw, 3.2rem); font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; margin: 0 0 1.6rem; }
.prose p { color: var(--ink-2); font-size: clamp(1rem, 1.6vw, 1.15rem); line-height: 1.9; margin: 0 0 1.2rem; }
.prose p strong { color: var(--ink); font-weight: 600; }

/* 会社概要テーブル */
.profile {
  max-width: 760px; margin: clamp(2rem,5vw,3rem) auto 0;
  padding: clamp(0.6rem,2vw,1.4rem) clamp(1.4rem,3vw,2.4rem);
  border-radius: var(--r-lg);
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 28px 60px -34px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.85);
}
.profile .row { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; column-gap: 1.4rem; padding: 1.1rem 0; border-bottom: 1px solid rgba(0,0,0,0.06); }
.profile .row:last-child { border-bottom: none; }
.profile .row dt { color: var(--ink-2); font-size: 0.85rem; font-weight: 600; }
.profile .row dd { margin: 0; font-size: 0.98rem; }
.profile .row dd a { color: var(--link); }
.profile .row dd ul { list-style: none; margin: 0; padding: 0; }
.profile .row dd ul li { padding-left: 1.1em; position: relative; margin: 0 0 0.4em; }
.profile .row dd ul li:last-child { margin-bottom: 0; }
.profile .row dd ul li::before { content: "—"; position: absolute; left: 0; color: var(--ink-2); }

/* 取引先企業 */
.clients { max-width: 900px; margin: clamp(2rem,5vw,3rem) auto 0; }
.clients ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 2.4rem; }
.clients li { font-size: 0.92rem; color: var(--ink-2); padding: 0.55rem 0; border-bottom: 1px solid rgba(0,0,0,0.06); break-inside: avoid; }
.clients .note { margin: 1.2rem 0 0; text-align: right; font-size: 0.8rem; color: var(--ink-2); }
@media (max-width: 640px) { .clients ul { columns: 1; } }

/* 募集要項 */
.roles {
  max-width: 760px; margin: clamp(2rem,5vw,3rem) auto 0;
  padding: clamp(0.4rem,1.5vw,1rem) clamp(1.4rem,3vw,2.4rem);
  border-radius: var(--r-lg);
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 28px 60px -34px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.85);
}
.role { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.4rem 0; border-bottom: 1px solid rgba(0,0,0,0.06); }
.role:last-child { border-bottom: none; }
.role h3 { font-size: 1.15rem; }
.role .tag { font-size: 0.78rem; color: var(--ink-2); border: 1px solid var(--line); border-radius: 980px; padding: 0.3em 0.9em; white-space: nowrap; }

/* Contact 連絡先 */
.contact-lines {
  max-width: 640px; margin: clamp(2rem,5vw,3rem) auto 0;
  padding: clamp(0.6rem,2vw,1.2rem) clamp(1.4rem,3vw,2.2rem);
  border-radius: var(--r-lg);
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 28px 60px -34px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.85);
}
.contact-lines .row { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; column-gap: 1.4rem; padding: 1.1rem 0; border-bottom: 1px solid rgba(0,0,0,0.06); align-items: baseline; }
.contact-lines .row:last-child { border-bottom: none; }
.contact-lines dt { color: var(--ink-2); font-size: 0.85rem; font-weight: 600; }
.contact-lines dd { margin: 0; font-size: 1.1rem; }
.contact-lines dd a { color: var(--link); }
.contact-mail { text-align: center; margin-top: clamp(2.4rem,6vw,4rem); }
.contact-mail .big-mail { display: inline-block; font-size: clamp(1.3rem, 3.5vw, 2.2rem); font-weight: 600; letter-spacing: -0.02em; color: var(--ink); border-bottom: 2px solid var(--ink); padding-bottom: 0.1em; }
.socials { display: flex; gap: 1.4rem; justify-content: center; margin-top: 1.6rem; }
.socials a { font-size: 0.9rem; color: var(--ink-2); }
.socials a:hover { color: var(--ink); }

/* Instagram フィード（外部ウィジェット埋め込み／未設定時は控えめなテキストリンクにフォールバック） */
/* スクロール進捗バー */
.dw-progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 200;
  background: var(--accent); box-shadow: 0 0 12px rgba(224,48,30,0.5); transition: width 0.1s linear; }

/* ============================================================
   reveal（既定可視。JSがある時だけ隠す＝Apple的フェードアップ）
   ============================================================ */
html.js .reveal { opacity: 0; transform: translateY(22px); }
html.js .reveal.in { opacity: 1; transform: none; transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }

/* ============================================================
   レスポンシブ（全MQをここに集約）
   ============================================================ */
@media (max-width: 980px) {
  .works-grid.cols3 { grid-template-columns: repeat(2, 1fr); }
  .service { flex-basis: calc((100% - clamp(1.1rem, 2.2vw, 1.8rem)) / 2); }
}

@media (max-width: 760px) {
  .services { gap: 1rem; }
  .service { flex-basis: 84%; }
}

@media (max-width: 720px) {
  /* ナビ：ハンバーガー化 */
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: calc(var(--nav-h) + clamp(14px, 4vw, 26px));
    left: var(--pad); right: var(--pad); flex-direction: column; gap: 0;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%);
    padding: 0.4rem 1.4rem 0.8rem; border-radius: 22px;
    border: 1px solid rgba(255,255,255,0.65);
    box-shadow: 0 24px 50px -20px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.85);
    transform: translateY(-12px) scale(0.98); opacity: 0; pointer-events: none;
    transform-origin: top center; transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
  }
  body.nav-open .nav-links { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links li { width: 100%; border-bottom: 1px solid rgba(0,0,0,0.06); }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links a { display: block; padding: 1rem 0.2rem; font-size: 1rem; opacity: 1; }

  /* WORKS一覧 */
  .works-grid { grid-template-columns: 1fr; }

  /* WORKSフィルタ：折り返させず横1列でスクロール */
  .work-filter {
    flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    padding: 0.2rem clamp(1rem, 4vw, 1.4rem) 0.6rem; margin-left: calc(-1 * var(--pad)); margin-right: calc(-1 * var(--pad));
  }
  .work-filter::-webkit-scrollbar { display: none; }
  .work-filter button { flex: none; white-space: nowrap; }

  /* ヒーロー動画：16:9で横切れゼロ */
  .hero-video__media { height: auto; aspect-ratio: 16 / 9; }

  /* 下層ヘッダー映像背景：縦を詰めて横切れ軽減 */
  .page-hero--video {
    padding-top: calc(var(--nav-h) + clamp(2.5rem, 6vw, 4rem));
    padding-bottom: clamp(2rem, 5vw, 3.5rem);
  }

  /* FV：モバイルのみ右寄せ・SCROLL非表示・見出しを目一杯大きく */
  .fv .fv__overlay { align-items: flex-end; }
  .fv__center, .fv__label, .fv__overlay .lead { text-align: right; }
  .fv__scroll { display: none !important; }
  .fv__overlay .display { font-size: 14vw !important; line-height: 1.04 !important; max-width: 100% !important; }
}

@media (max-width: 640px) {
  .works-grid.cols3 { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 560px) {
  .contact-mail .big-mail { font-size: 1.05rem; letter-spacing: 0; }
  .profile .row { grid-template-columns: 1fr; gap: 0.2rem; }
  .contact-lines .row { grid-template-columns: 1fr; gap: 0.2rem; }
}

@media (max-width: 480px) {
  .page-hero--video {
    padding-top: calc(var(--nav-h) + 2rem);
    padding-bottom: 1.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .opening { display: none !important; }
  html.preload-lock { overflow: auto; }
  html.preload-lock body { overflow: auto; position: static; touch-action: auto; opacity: 1 !important; }
  body { transition: none !important; }
  html.is-leaving body { opacity: 1 !important; }
  html.js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .brand img { opacity: 1 !important; transform: none !important; }
  .reel__row { transform: none !important; }
  .quote video, .hero-video__v { animation: none !important; }
}

/* ============================================================
   FV（isai風：フルスクリーン映像＋タグライン重ね＋スクロール誘導）
   ============================================================ */
.fv { padding-block: 0 !important; }
.fv .hero-video__media { height: 100svh; min-height: 560px; }
.fv .hero-video__v { width: 100%; height: 100%; object-fit: cover; }
.fv .hero-video__scrim { inset: 0; height: 100%;
  background: rgba(0,0,0,0.3);
  box-shadow: inset 0 120px 80px -60px rgba(0,0,0,0.35), inset 0 -180px 120px -60px rgba(0,0,0,0.5); }
.fv__overlay { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center;
  text-align: center; padding: var(--nav-h) var(--pad) 0; }
.fv__overlay .display { color: #fff; text-shadow: 0 2px 44px rgba(0,0,0,0.5); }
/* 英字の長いタグライン用：署名フォント(Anton)で大きく・派手に押す */
.fv__overlay .display {
  font-family: var(--display-en);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: clamp(2.8rem, 9vw, 7.8rem);
  line-height: 1.06;
  max-width: 32ch;
  overflow-wrap: normal;
  word-break: normal;
  font-style: italic;
}
.fv__overlay .lead { color: rgba(255,255,255,0.92); margin-top: 1.3rem; max-width: 42ch; }
.fv__scroll { position: absolute; left: 50%; bottom: clamp(1.2rem, 3vw, 2rem); transform: translateX(-50%); z-index: 3;
  color: #fff; font: 600 0.68rem/1 var(--sans); letter-spacing: 0.22em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 0.7rem; opacity: 0.9; }
.fv__scroll::after { content: ""; width: 1px; height: 40px; background: rgba(255,255,255,0.65);
  transform-origin: top; animation: fvScroll 1.9s var(--ease) infinite; }
@keyframes fvScroll { 0%{ transform: scaleY(0.15); transform-origin: top; } 45%{ transform: scaleY(1); transform-origin: top; }
  55%{ transform: scaleY(1); transform-origin: bottom; } 100%{ transform: scaleY(0.15); transform-origin: bottom; } }
.fv .hero-video__play { left: auto; top: auto; right: var(--pad); bottom: clamp(1.2rem, 3vw, 2rem);
  transform: none; width: clamp(48px, 6vw, 60px); height: clamp(48px, 6vw, 60px); }
.fv .hero-video__play:hover { transform: scale(1.08); }
.fv.is-playing .fv__overlay, .fv.is-playing .fv__scroll { opacity: 0; pointer-events: none; transition: opacity 0.4s var(--ease); }
@media (prefers-reduced-motion: reduce){ .fv__scroll::after { animation: none; } }

/* ===== FV ポスター化（映画ポスター風キービジュアル） ===== */
.fv__frame { position:absolute; inset:clamp(10px,1.6vw,20px); z-index:2; border:1px solid rgba(255,255,255,0.38); pointer-events:none; }
.fv .fv__overlay { display:flex; flex-direction:column; justify-content:space-between; place-items:stretch;
  padding: calc(var(--nav-h) + clamp(1.6rem,4vw,3rem)) clamp(1.6rem,4vw,3.4rem) clamp(0.6rem,1.4vw,1rem); }
.fv__center { margin:auto 0; }
.fv__top { display:flex; align-items:center; justify-content:center; gap:clamp(0.8rem,2vw,1.4rem);
  color:rgba(255,255,255,0.92); font:600 clamp(0.62rem,1.4vw,0.74rem)/1 var(--sans); letter-spacing:0.3em; text-transform:uppercase; }
.fv__top::before, .fv__top::after { content:""; height:1px; width:clamp(24px,8vw,96px); background:rgba(255,255,255,0.5); }
.fv__credit { color:rgba(255,255,255,0.85); font:500 clamp(0.66rem,1.4vw,0.76rem)/1.6 var(--sans); letter-spacing:0.16em; text-transform:uppercase; }
.fv__overlay .lead { margin-top:1.2rem; }

/* FV 左下レイアウト（顔と被らない）＋SCROLL右 */
.fv .hero-video__cap { display: none; }
.fv .hero-video__play { display: none; }
.fv .fv__overlay { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; text-align: left; }
.fv__top { width: 100%; }
.fv__center { max-width: min(92vw, 1180px); }
.fv__label { color: #fff; opacity: 0.88; font: 600 clamp(0.62rem,1.4vw,0.74rem)/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; margin: 0 0 1rem; }
.fv__overlay .lead { margin-top: 1rem; }
.fv__scroll { left: auto; right: var(--pad); transform: none; align-items: flex-end; }

.fv__center { margin-top: auto; }

.fv .fv__center { margin: auto 0 clamp(0.1rem, 0.4vw, 0.3rem) 0; }

/* ============================================================
   動画モーダル（Liquid Glass）
   ============================================================ */
.dw-modal {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(251,251,249,0.45);
  backdrop-filter: blur(48px) saturate(200%);
  -webkit-backdrop-filter: blur(48px) saturate(200%);
  display: grid; place-items: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.dw-modal.is-open { opacity: 1; pointer-events: auto; }
body.modal-lock { overflow: hidden; }
.dw-modal__inner {
  position: relative;
  width: min(92vw, 1100px);
}
.dw-modal__stage {
  position: relative; aspect-ratio: 16/9; border-radius: var(--r-lg); overflow: hidden;
  background: #0a0a0b;
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: 0 40px 80px -24px rgba(0,0,0,0.32), inset 0 1px 0 rgba(255,255,255,0.9);
  transform: scale(0.97) translateY(18px);
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.06s;
}
.dw-modal.is-open .dw-modal__stage { transform: scale(1) translateY(0); }
.dw-modal__stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.dw-modal__title {
  margin: 1rem 0 0; color: var(--ink-2);
  font-size: clamp(0.9rem, 1.6vw, 1.05rem); font-weight: 500; letter-spacing: 0.01em;
  text-align: center;
}
.dw-modal__credits {
  margin: 0.5rem 0 0; padding: 0; list-style: none;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.3rem 1.1rem;
  color: var(--ink-2); font-size: 0.8rem; letter-spacing: 0.02em;
}
.dw-modal__credits:empty { display: none; }
.dw-modal__close {
  position: absolute; top: -3rem; right: 0;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.75);
  box-shadow: 0 8px 20px -8px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.9);
  cursor: pointer; display: grid; place-items: center;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.dw-modal__close:hover { background: rgba(255,255,255,0.8); transform: scale(1.08); }
.dw-modal__close::before, .dw-modal__close::after {
  content: ""; position: absolute; width: 14px; height: 1.5px; background: var(--ink);
}
.dw-modal__close::before { transform: rotate(45deg); }
.dw-modal__close::after  { transform: rotate(-45deg); }
@media (prefers-reduced-motion: reduce) {
  .dw-modal, .dw-modal__stage { transition: none; }
}
