/* =========================================================
   ROSTER — style.css
   ========================================================= */

:root {
  --bg: #f4f4f2;
  --bg-alt: #e9e9e6;
  --fg: #111111;
  --muted: rgba(0, 0, 0, .6);   /* 説明文・フッターの薄い文字（wonderstudios 実測） */
  --line: rgba(0, 0, 0, .12);
  --pill-bg: rgba(255, 255, 255, .7);
  --card-radius: 6px; /* wonderstudios 実測：大きい映像・小さい映像 6px／カード 5px／作品カード 8px */
  --gutter: 40px; /* wonderstudios 実測：PC 40px / スマホ 15px */
  /* 英字は Geist、日本語は Zen Kaku Gothic New（細身のかな・シャープな漢字で Geist と相性がよい） */
  /* 日本語は 400/500/700 だけ読み込む → 本文（300指定）の日本語は自動で 400 になり、英字は Geist 300 のまま */
  --font: "Geist", "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  --fw-ja-lead: 500;   /* 日本語の大きな紹介文 */

  /* 文字の大きさ（wonderstudios.com 実測：PC 1440px → スマホ 375px） */
  --fs-display: clamp(32px, 3.41vw, 49px);  --ls-display: -.055em;  /* 1ページ目の見出し・大見出し 49px/500 */
  --fs-h2:      clamp(24px, 2.67vw, 38px); --ls-h2: -.04em;        /* 紹介文・セクション見出し 38px/500 */
  --fs-h3:      clamp(20px, 1.67vw, 24px);                          /* カード見出し 24px/300 */
  --fs-body:    clamp(16px, 1.25vw, 18px);                          /* 本文 18px/300 */
  --fs-small:   14px;                                               /* メニュー・ボタン・フッター 14px/400 */
  /* 日本語の大きな紹介文：英語38px/500と同じ見た目のバランスになるよう 30px/400・行間1.55（PCで約4〜5行） */
  --fs-lead-ja: clamp(19px, 2.08vw, 30px);
  --accent: rgb(15, 118, 110);                                      /* ボタン文字の緑 */
  --pill-solid: #f4f4f4;                                            /* ボタンの背景 */
}
@media (max-width: 809px) { :root { --ls-display: -.02em; --ls-h2: -.02em; } }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c0c0c; --bg-alt: #161616; --fg: #f2f2f2; --muted: rgba(255, 255, 255, .6);
    --line: rgba(255, 255, 255, .14); --pill-bg: rgba(30, 30, 30, .7);
    --accent: rgb(94, 234, 212); --pill-solid: #1c1c1c;
  }
}
:root[data-theme="dark"] {
  --bg: #0c0c0c; --bg-alt: #161616; --fg: #f2f2f2; --muted: rgba(255, 255, 255, .6);
  --line: rgba(255, 255, 255, .14); --pill-bg: rgba(30, 30, 30, .7);
  --accent: rgb(94, 234, 212); --pill-solid: #1c1c1c;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: -.02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* 日本語組版：かな・約物をプロポーショナルに詰める／禁則を厳しく */
  font-feature-settings: "palt";
  line-break: strict;
  overflow-x: hidden;
  transition: background .4s, color .4s;
}
a { color: inherit; text-decoration: none; }
/* 英字中心の見出し：字間 -0.02em（wonderstudios 実測：24px で -0.48px） */
.pillar__title, .footer__tag, .card__title, .member__name, .project__title, .press__title { letter-spacing: -.02em; }
/* 日本語の本文・説明文：プロポーショナル詰め（palt）に対して、読みやすさのため字間をわずかに +0.02em */
.block__desc, .pillar__desc, .cta__text, .story__body p, .article__body, .contact__links, .number__label { letter-spacing: .02em; }
/* 大きな文章・見出しだけ：文節（言葉の切れ目）で改行し、最後の行が1〜2文字だけにならないように。
   狭い幅の本文は文字単位で自然に折り返した方が行の長さが揃うので対象外 */
h1, h2, .intro__lead, .work-intro__lead, .talent-lead__text, .about-lead__text, .culture__title, .cta__title, .cta__text {
  word-break: auto-phrase; text-wrap: pretty;
}
ul { list-style: none; }

/* ---------- Pill button（wonderstudios 実測：高さ48px・左右32px・背景#f4f4f4・緑の文字 14px/400） ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 32px;
  font-family: var(--font); font-size: var(--fs-small); font-weight: 400; line-height: 1.4; letter-spacing: -.03em;
  border: 0; border-radius: 99px;
  background: var(--pill-solid); color: var(--accent);
  transition: background .25s, color .25s, transform .25s;
  white-space: nowrap;
}
.pill:hover { background: var(--accent); color: #fff; }
.pill--sm { height: 34px; padding: 0 20px; }
.pill--solid { background: var(--fg); color: var(--bg); }
.pill--solid:hover { background: var(--fg); color: var(--bg); transform: translateY(-2px); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; padding: 0 var(--gutter);
  /* wonderstudios 実測：文字は白（#fff）。白が読めない明るい背景の上だけ main.js が .is-dark を付けて黒に */
  color: #fff; transition: color .3s;
}
.header.is-dark { color: #111; }
.header .pill {   /* Contact：白文字＋白10%の半透明＋背景ぼかし 48px（wonderstudios 実測） */
  background: rgba(255, 255, 255, .1); color: inherit; border: 0;
  backdrop-filter: blur(48px); -webkit-backdrop-filter: blur(48px);
  transition: background .3s, color .3s;
}
.header .pill:hover { background: rgba(255, 255, 255, .25); color: inherit; }
.header.is-dark .pill { background: rgba(0, 0, 0, .06); }
.header.is-dark .pill:hover { background: rgba(0, 0, 0, .12); }
/* ロゴ（wonderstudios 実測：1200px以上は文字ロゴ 97×19px／1199px以下はマーク 23×24px） */
.logo { display: flex; align-items: center; color: inherit; font-family: var(--font); line-height: 1; }
.logo__full { font-size: 22px; font-weight: 600; letter-spacing: -.03em; }
.logo__mark { display: none; font-size: 26px; font-weight: 600; letter-spacing: -.04em; width: 23px; height: 24px; align-items: center; justify-content: center; }
@media (min-width: 1200px) {
  .header { padding: 0 24px; }
  .logo { min-width: 122px; padding-left: 13px; }   /* ロゴ枠 122px（左端24px）、文字は左から37px。メニューはその右48px */
}
@media (max-width: 1199px) {
  .header { padding: 0 20px; }                       /* マークは左から20px */
  .logo__full { display: none; }
  .logo__mark { display: flex; }
}
.menu-btn {
  width: 32px; height: 32px; background: none; border: 0; cursor: pointer;
  display: grid; place-content: center; gap: 6px;
}
.menu-btn span { display: block; width: 22px; height: 1.5px; background: currentColor; transition: transform .35s; }
.menu-btn { color: inherit; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* メニュー項目（wonderstudios 実測：14px・半透明の白・ロゴのすぐ右に並ぶ） */
.gnav { display: flex; gap: 4px; margin-left: 48px; margin-right: auto; }
.gnav a {
  padding: 8px; font-size: var(--fs-small); font-weight: 400; line-height: 1.4; letter-spacing: -.03em;
  color: inherit; transition: opacity .2s;   /* 白（wonderstudios 実測 #fff） */
}
.gnav a:hover { opacity: .6; }
.header__contact { min-width: 122px; height: 34px; }

/* 横幅1199px以下：メニュー項目を隠し、Contact を中央・ハンバーガーを表示 */
@media (max-width: 1199px) {
  .gnav { display: none; }
  .header__contact { position: absolute; left: 50%; transform: translateX(-50%); min-width: 0; height: 30px; padding: 0 16px; font-size: 12px; }
}
/* 横幅1200px以上：ハンバーガーなし（全項目を表示） */
@media (min-width: 1200px) {
  .menu-btn { display: none; }
}

/* ---------- Overlay menu ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 40;
  background: var(--bg);
  display: grid; place-items: center;
  opacity: 0; pointer-events: none; transition: opacity .4s;
}
.overlay.is-open { opacity: 1; pointer-events: auto; }
.overlay ul { text-align: center; }
.overlay a {
  display: block; font-size: clamp(36px, 8vw, 80px); font-weight: 500; letter-spacing: -.04em; line-height: 1.2;
  transition: opacity .25s;
}
.overlay ul:hover a { opacity: .35; }
.overlay ul a:hover { opacity: 1; }

/* ---------- Hero ---------- */
/* wonderstudios.com 実測：横幅いっぱい × 高さ＝画面の高さの80%（スマホは50%） */
.panel {
  position: relative;
  height: 80vh; min-height: 320px;
  overflow: hidden;
  display: flex; align-items: flex-end;
  padding: var(--gutter);
}
.panel__title {   /* wonderstudios 実測：49px/500・行間1.2・字間-0.055em（スマホ32px） */
  position: relative; z-index: 2;
  color: #fff; font-size: var(--fs-display); font-weight: 500; line-height: 1.2; letter-spacing: var(--ls-display);
}
.visual { position: absolute; inset: 0; }
.panel--2 { background: linear-gradient(160deg, #0e2a3a, #3a6b7a 45%, #c9d6d9); }
.visual--wave {
  background:
    repeating-radial-gradient(circle at 20% 120%, rgba(255,255,255,.08) 0 2px, transparent 2px 40px),
    linear-gradient(180deg, transparent 50%, rgba(0,0,0,.45));
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: scale(1.15) translateY(-4%); } }

/* ---------- Intro ---------- */
.intro {
  position: relative; z-index: 3; background: var(--bg);
  padding: clamp(40px, 5.5vw, 80px) var(--gutter) clamp(64px, 8vw, 120px);
  display: grid; gap: 56px;
}
.intro__lead {   /* wonderstudios の紹介文（英語 38px・幅970px・4行）と同じ大きさのブロックになるよう日本語用に調整 */
  max-width: 970px;
  font-size: var(--fs-lead-ja); font-weight: var(--fw-ja-lead); line-height: 1.45; letter-spacing: 0;   /* palt で詰め、字間0・行間1.45 */
}

/* ---------- Blocks ---------- */
.block { position: relative; z-index: 3; background: var(--bg); padding: 48px var(--gutter) 64px; }
.block__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.block__title { font-size: var(--fs-h2); font-weight: 500; line-height: 1.2; letter-spacing: var(--ls-h2); }
.block__desc { max-width: 560px; font-size: var(--fs-body); font-weight: 300; line-height: 1.6; color: var(--muted); margin-top: 12px; }
.block__actions { display: flex; gap: 10px; flex-wrap: wrap; }

.media {
  position: relative; border-radius: var(--card-radius); overflow: hidden;
  height: 704px; /* wonderstudios 実測：高さ固定・横幅は画面に合わせて伸びる */
  transform: scale(.94); transition: transform 1s cubic-bezier(.2, .7, .2, 1);
}
.media.is-in { transform: scale(1); }
.media--a {
  background:
    radial-gradient(ellipse at 30% 60%, rgba(255,255,255,.12), transparent 50%),
    linear-gradient(120deg, #26302e, #4c5a56 60%, #2b3533);
}
.media--a::before { /* thin river line */
  content: ""; position: absolute; left: 45%; top: 10%; width: 2px; height: 80%;
  background: linear-gradient(transparent, #e8e2d0, transparent);
  transform: rotate(12deg); filter: blur(.5px);
  box-shadow: 0 0 18px rgba(255,255,255,.4);
}
.media--b { background: linear-gradient(135deg, #f5c84b, #ef6a4c 45%, #5b2b8a); }
.media__tag {
  position: absolute; left: 20px; bottom: 18px;
  font-size: var(--fs-small); font-weight: 400; letter-spacing: -.03em; color: #fff;
}


/* ---------- News ---------- */
.news { position: relative; z-index: 3; background: var(--bg); padding: 80px var(--gutter); }
.news__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 28px; }
.link-sm { font-size: var(--fs-small); font-weight: 400; color: var(--muted); }
.link-sm:hover { color: var(--fg); }
.news__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card { cursor: pointer; }
.card__img { aspect-ratio: 1.9 / 1; border-radius: var(--card-radius); overflow: hidden; margin-bottom: 14px; transition: transform .5s; }
.card:hover .card__img { transform: scale(.98); }
.card__img--1 { background: radial-gradient(circle at 50% 30%, #f7d77a, transparent 30%), linear-gradient(180deg, #0f2a2a, #2e6a5a); }
.card__img--2 { background: repeating-linear-gradient(45deg, #2b1a4a 0 18px, #c2416b 18px 36px, #f09a6a 36px 54px); }
.card__date { display: block; font-size: var(--fs-small); font-weight: 400; color: var(--muted); margin-bottom: 6px; }
.card__title { font-size: var(--fs-h3); font-weight: 300; line-height: 1.3; margin-bottom: 12px; }
.chip {   /* タグ（wonderstudios のタグと同じ：緑の文字・薄い背景） */
  display: inline-block; font-size: var(--fs-small); font-weight: 400; letter-spacing: -.03em;
  padding: 4px 10px; border-radius: 4px; background: rgba(15, 118, 110, .08); color: var(--accent);
}

/* ---------- CTA ---------- */
.cta {
  position: relative; z-index: 3;
  background: var(--bg-alt);
  text-align: center;
  padding: clamp(80px, 14vw, 180px) var(--gutter);
}
.cta__title { font-size: var(--fs-display); font-weight: 500; line-height: 1.2; letter-spacing: var(--ls-display); margin-bottom: 24px; }   /* 49px/500 */
.cta__text { color: var(--muted); font-size: var(--fs-body); font-weight: 300; line-height: 1.6; max-width: 564px; margin: 0 auto 36px; }  /* 18px/300 */
.cta__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { position: relative; z-index: 3; background: var(--bg); padding: 80px var(--gutter) 24px; overflow: hidden; }
/* フッター（wonderstudios 実測：キャッチコピー 18px/300 薄字、見出し 14px 薄字、リンク 14px 黒） */
.footer__tag { font-size: var(--fs-body); font-weight: 300; line-height: 1.6; color: var(--muted); margin-bottom: 56px; }
.footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 200px)); gap: 24px; margin-bottom: 64px; }
.footer__cols li { font-size: var(--fs-small); font-weight: 400; line-height: 1.4; letter-spacing: -.03em; margin-bottom: 12px; }
.footer__cols a { color: var(--fg); transition: color .2s; }
.footer__cols a:hover { color: var(--accent); }
.footer__h { color: var(--muted); }
.footer__big {
  font-size: 24vw; font-weight: 500; letter-spacing: -.06em; line-height: .8;
  color: var(--fg); opacity: .06; user-select: none; white-space: nowrap;
}
.footer__copy { font-size: var(--fs-small); font-weight: 400; letter-spacing: -.03em; color: var(--muted); margin-top: 24px; }

/* ---------- 3 cards under intro ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar__media { position: relative; height: 201px; /* wonderstudios 実測：高さ固定 */ border-radius: 5px; overflow: hidden; margin-bottom: 14px; }
.pillar__media--1 { background: linear-gradient(135deg, #2a2f3a, #8a6f9e 55%, #e6c3b0); }
.pillar__media--2 { background: linear-gradient(135deg, #3a1d10, #c4572c 50%, #f2b25c); }
.pillar__media--3 { background: linear-gradient(135deg, #0f1f2a, #2d5f73 55%, #a9c7cf); }
.pillar__src { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pillar__title { font-size: var(--fs-h3); font-weight: 300; line-height: 1.3; margin-bottom: 8px; }   /* 24px/300 */
.pillar__desc { font-size: var(--fs-body); font-weight: 300; line-height: 1.6; color: var(--muted); }  /* 18px/300 薄字 */

/* ---------- Scrolling strips (small clips / logos) ---------- */
/* 速さは main.js が「毎秒○px」になるよう再生時間を計算（data-speed）。マウスを乗せると90%の速さに */
.strip { --gap: 22px; overflow: hidden; margin-top: 12px; margin-inline: calc(var(--gutter) * -1); }
/* 1セット分の幅（--shift）だけ動かして最初に戻る → つなぎ目なくループ。--shift は main.js が実測して設定 */
.strip__track { display: flex; gap: var(--gap); width: max-content; animation: strip var(--dur, 50s) linear infinite; will-change: transform; }
.strip__track--reverse { animation-direction: reverse; }   /* 右向き */
.strip__track.is-js { animation: none; }   /* JS（main.js）がループ距離を実測して動かすので、CSS のアニメーションは使わない */
@keyframes strip { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(var(--shift, -50%), 0, 0); } }
@media (max-width: 809px) { .strip { --gap: 16px; } }

.clip { position: relative; flex: none; width: 271px; height: 152px; /* wonderstudios 実測：固定サイズ */ border-radius: var(--card-radius); overflow: hidden; background: var(--bg-alt); }
.clip__src { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.clip--ph1 { background: linear-gradient(135deg, #1b2330, #56708f); }
.clip--ph2 { background: linear-gradient(135deg, #3b2a1d, #b98a55); }
.clip--ph3 { background: linear-gradient(135deg, #22142e, #a0507a); }
.clip--ph4 { background: linear-gradient(135deg, #102a24, #4f9b83); }
.clip--ph5 { background: linear-gradient(135deg, #2b2b2b, #9b9b9b); }
.clip--ph6 { background: linear-gradient(135deg, #3a1414, #d0664e); }

/* ロゴの間隔（wonderstudios 実測）：PC 42px／50px、タブレット 34px／48px、スマホ 16px */
.strip--logos { --gap: 42px; padding: 36px 0 12px; margin-top: 20px; }
.strip--logos-2 { --gap: 50px; }
@media (max-width: 1199px) { .strip--logos { --gap: 34px; } .strip--logos-2 { --gap: 48px; } }
@media (max-width: 809px) { .strip--logos, .strip--logos-2 { --gap: 16px; } }
.logo-item { flex: none; height: clamp(28px, 3vw, 40px); display: flex; align-items: center; }
.logo-item__img { height: 100%; width: auto; max-width: 180px; object-fit: contain; display: block; }
:root[data-theme="dark"] .logo-item__img { filter: invert(1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-item__img { filter: invert(1); } }

/* ---------- Uploaded media (管理画面から差し替えた画像・動画) ---------- */
.visual--media, .media__src, .card__src {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
}
.panel--has-media::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, transparent 35%, rgba(0,0,0,.55) 100%);
}
.media:has(.media__src)::before { display: none; }
.media__tag { z-index: 1; }
.card { display: block; }
.card__img { position: relative; }

/* ---------- Work page（wonderstudios.com/work を実測） ---------- */
.panel--work { height: 72.8vh; }                 /* 1440×900 で 655px、1920×1080 で 786px */
/* wonderstudios.com/work 実測（1440×900・アニメーションの影響を除いた本来の位置）：
   1枚目→紹介文 88px／紹介文→帯 80px／帯→黒いエリア 15px */
.work-intro { position: relative; z-index: 3; background: var(--bg); padding: 88px var(--gutter) 15px; }
.work-intro__lead { max-width: 900px; font-size: var(--fs-lead-ja); font-weight: var(--fw-ja-lead); line-height: 1.45; letter-spacing: 0; margin-bottom: 80px; }   /* wonderstudios：幅900px・5行／紹介文→帯 80px */
.work-intro .strip { --gap: 16px; }
.work-intro .clip { width: 298px; height: 168px; }

/* 黒いエリア（wonderstudios.com/work 実測）：上端→見出し 122px／見出し→カード 66px／最後のカード→下端 82px／左右 44px */
.projects { position: relative; z-index: 3; background: #111; color: #fff; padding: 122px 44px 82px; }
.projects__title { font-size: var(--fs-h2); font-weight: 500; line-height: 1.2; letter-spacing: var(--ls-h2); margin-bottom: 66px; }
@media (max-width: 720px) { .projects { padding: 72px var(--gutter) 56px; } .projects__title { margin-bottom: 32px; } }
.projects__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px 40px; }
.project {
  position: relative; display: block; height: 295px; border-radius: 8px; overflow: hidden;
  color: #fff; isolation: isolate;
}
.project::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, .55)); }
.project__src { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
a.project:hover .project__src { transform: scale(1.04); }
.project__title { position: absolute; left: 32px; bottom: 34px; z-index: 2; font-size: var(--fs-h3); font-weight: 300; line-height: 1.3; }
.project__tags { position: absolute; right: 24px; bottom: 26px; z-index: 2; display: flex; gap: 8px; list-style: none; }
.project__tags li { display: flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 6px; background: #f4f4f4; color: #111; font-size: 12px; font-weight: 400; letter-spacing: 0; }
.project--ph1 { background: linear-gradient(135deg, #1b2330, #56708f); }
.project--ph2 { background: linear-gradient(135deg, #3b2a1d, #b98a55); }
.project--ph3 { background: linear-gradient(135deg, #22142e, #a0507a); }
.project--ph4 { background: linear-gradient(135deg, #102a24, #4f9b83); }
.project--ph5 { background: linear-gradient(135deg, #2b2b2b, #8b8b8b); }
.project--ph6 { background: linear-gradient(135deg, #3a1414, #d0664e); }

/* ---------- 共通：緑系のボタン・黒背景セクション（wonderstudios 実測） ---------- */
.pill--tint { }   /* 通常の .pill と同じ（緑の文字・#f4f4f4 の背景） */
.dark { position: relative; z-index: 3; background: #111; color: #fff; padding: 96px var(--gutter); }
.dark__title { font-size: var(--fs-h2); font-weight: 500; line-height: 1.2; letter-spacing: var(--ls-h2); margin-bottom: 48px; }
.cta--plain { background: var(--bg); }
.nowrap { white-space: nowrap; }

/* ---------- About page（wonderstudios.com/about を実測） ---------- */
.about-lead { padding: clamp(120px, 17.8vw, 256px) var(--gutter) 0; }
.about-lead__text { max-width: 960px; font-size: var(--fs-display); font-weight: 500; line-height: 1.35; letter-spacing: 0; }   /* 日本語の大見出し：字間0・行間1.35 */
.about-lead__media { height: 602px; margin-top: 40px; border-radius: 16px; transform: none; }

.story { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 104px var(--gutter) 0; }
.story__head { display: grid; align-content: space-between; justify-items: start; gap: 32px; padding-right: 40px; }
.story__title { font-size: var(--fs-h2); font-weight: 500; line-height: 1.2; letter-spacing: var(--ls-h2); }
.story__body p { font-size: var(--fs-body); font-weight: 300; line-height: 1.6; margin-bottom: 1.1em; }

/* 2段の写真の帯（wonderstudios 実測：段の高さ200px・段の間10px・枠100×192px・間隔104px・毎秒70px） */
.ticker { display: flex; flex-direction: column; gap: 10px; padding: 96px 0 88px; }
.ticker__row { height: 200px; overflow: hidden; }
.ticker__track {
  display: flex; gap: 104px; width: max-content; margin: 4px 0 0 4px;
  animation: var(--anim) var(--dur, 17.4857s) linear infinite;
}
.ticker__track--left  { --anim: ticker-left; }
.ticker__track--right { --anim: ticker-right; }
@keyframes ticker-left  { from { transform: translateX(0); } to { transform: translateX(var(--shift, -1224px)); } }
@keyframes ticker-right { from { transform: translateX(var(--shift, -1224px)); } to { transform: translateX(0); } }
.ticker__item { flex: none; width: 100px; height: 192px; display: flex; align-items: center; justify-content: center; }
.ticker__src { width: 100%; height: 100%; object-fit: contain; display: block; }   /* 枠に収める → 写真ごとにサイズが変わる */
.ticker__ph { display: block; width: 100%; max-height: 100%; }

.numbers { padding-bottom: 72px; }
.numbers__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 44px; }
.number__value { font-size: clamp(40px, 4.5vw, 64px); font-weight: 300; line-height: 1; letter-spacing: -.03em; }
.number__label { font-size: var(--fs-body); font-weight: 300; line-height: 1.6; color: #fff; margin-top: 16px; max-width: 301px; }

.press { padding-top: 24px; }
.press__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px 10px; }
.press__item { display: block; }
.press__title { font-size: var(--fs-h3); font-weight: 300; line-height: 1.3; margin-bottom: 16px; }
.press__media { position: relative; height: 400px; border-radius: var(--card-radius); overflow: hidden; background: #222; }
.press__src { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.culture { padding-top: 52px; padding-bottom: 120px; }
.culture__title { text-align: center; font-size: var(--fs-display); font-weight: 500; line-height: 1.35; letter-spacing: 0; margin-bottom: 72px; }
.culture__grid { columns: 4; column-gap: 24px; }
.culture__item { position: relative; break-inside: avoid; margin: 0 0 24px; border-radius: 8px; overflow: hidden; }
.culture__item--1 { height: 280px; } .culture__item--2 { height: 190px; } .culture__item--3 { height: 382px; } .culture__item--4 { height: 241px; }
.culture__item--5 { height: 310px; } .culture__item--6 { height: 142px; } .culture__item--7 { height: 260px; } .culture__item--8 { height: 330px; }
.culture__src { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.culture__label { position: absolute; left: 10px; top: 10px; z-index: 1; padding: 4px 8px; border-radius: 4px; background: #fff; color: #111; font-size: var(--fs-small); font-weight: 400; letter-spacing: -.03em; }

/* ---------- Talent page（wonderstudios.com/talent を実測） ---------- */
.talent-lead { padding: 24px var(--gutter) 0; }
.talent-lead__text { max-width: 1200px; font-size: var(--fs-h2); font-weight: 500; line-height: 1.4; letter-spacing: 0; }   /* 日本語：字間0・行間1.4 */
.members { display: grid; grid-template-columns: repeat(3, 1fr); gap: 66px 54px; padding: 120px clamp(var(--gutter), 7.8vw, 112px); }
.member { display: block; }
.member__photo { position: relative; aspect-ratio: 370 / 257; border-radius: 8px; overflow: hidden; }
.member__src { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
a.member:hover .member__src { transform: scale(1.04); }
.member__name { font-size: var(--fs-h3); font-weight: 300; line-height: 1.3; margin-top: 20px; }
.member__tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-top: 12px; }
.member__tags li { padding: 4px 10px; border-radius: 4px; background: rgba(15, 118, 110, .08); color: var(--accent); font-size: var(--fs-small); font-weight: 400; letter-spacing: -.03em; }

/* ---------- Contact page（wonderstudios.com/contact を実測：メールを画面幅いっぱいに） ---------- */
.contact { padding: 144px 20px 160px; min-height: 70vh; }
.contact__email { font-size: 11.6vw; /* JSで「一番長い行が横幅ぴったり」になるよう自動調整 */ font-weight: 500; line-height: .9; letter-spacing: -.05em; }

/* メールアドレス：クリックでコピー（wonderstudios.com/contact を分析） */
.email-copy {
  display: block; width: 100%; padding: 0; margin: 0; border: 0; background: none;
  font: inherit; letter-spacing: inherit; line-height: inherit; color: var(--fg); text-align: left; cursor: pointer;
  transition: transform .15s cubic-bezier(.22, 1, .36, 1);
}
.email-copy:active { transform: scale(.98); }           /* 押した瞬間に少し縮む */
.email-copy:focus-visible { outline: 2px solid var(--fg); outline-offset: 6px; }
.email-copy__stack { display: grid; }
.email-copy__text, .email-copy__done {
  grid-area: 1 / 1; display: block;
  transition: opacity .28s cubic-bezier(.22, 1, .36, 1), transform .28s cubic-bezier(.22, 1, .36, 1), filter .28s cubic-bezier(.22, 1, .36, 1);
}
.email-copy__line { display: block; white-space: nowrap; }
.email-copy__done { opacity: 0; transform: translateY(6px); filter: blur(2px); pointer-events: none; }
.email-copy.is-copied .email-copy__text { opacity: 0; transform: translateY(-6px); filter: blur(2px); }
.email-copy.is-copied .email-copy__done { opacity: 1; transform: none; filter: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* メールアドレスの上だけに出る黒丸カーソル（72px・白字 COPY） */
.copy-cursor {
  position: fixed; left: 0; top: 0; z-index: 55; width: 72px; height: 72px; margin: -36px 0 0 -36px;
  color: var(--bg);
  display: flex; align-items: center; justify-content: center; pointer-events: none; user-select: none;
  font-family: var(--font); font-size: 14px; font-weight: 400; letter-spacing: .04em; text-transform: uppercase; line-height: 1;
  will-change: transform;
}
.copy-cursor__inner { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: 50%; background: var(--fg);
  transform: scale(0); opacity: 0;
  transition: transform .25s cubic-bezier(.55, .055, .675, .19), opacity .25s cubic-bezier(.55, .055, .675, .19); }   /* 消えるとき */
.copy-cursor.is-on .copy-cursor__inner { transform: scale(1); opacity: 1;
  transition: transform .4s cubic-bezier(.34, 1.45, .64, 1), opacity .2s ease-out; }                                 /* 出るとき（少し弾む） */
html.copy-cursor-active, html.copy-cursor-active * { cursor: none !important; }
@media (prefers-reduced-motion: reduce) {
  .copy-cursor__inner, .copy-cursor.is-on .copy-cursor__inner { transform: none; transition: opacity .15s linear !important; }
}
.contact__links { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 18px; font-size: var(--fs-body); font-weight: 300; line-height: 1.6; }
.contact__links a { color: var(--muted); }
.contact__links a:hover { color: var(--fg); }

/* ---------- Sub pages (news) ---------- */
.page { padding: 120px var(--gutter) 96px; min-height: 70vh; }
.page__actions { justify-content: flex-start; margin-top: 32px; }
.page__title { font-size: var(--fs-display); font-weight: 500; line-height: 1.2; letter-spacing: var(--ls-display); margin-bottom: 32px; }
.article { max-width: 760px; margin: 0 auto; display: grid; gap: 14px; justify-items: start; }
.article__title { font-size: var(--fs-h2); font-weight: 500; line-height: 1.2; letter-spacing: var(--ls-h2); }
.article__media { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--card-radius); overflow: hidden; margin: 12px 0; }
.article__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.article__body { font-size: var(--fs-body); font-weight: 300; line-height: 1.8; }

/* ---------- Theme toggle ---------- */
.theme-btn {
  position: fixed; right: var(--gutter); bottom: var(--gutter); z-index: 60;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--pill-bg); color: var(--fg);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: grid; place-items: center; cursor: pointer;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s, transform .9s cubic-bezier(.2, .7, .2, 1); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .media { transform: none; }
}

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
  .news__grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  :root { --gutter: 15px; }
  .media { height: 247px; }
  .panel { height: 50vh; min-height: 280px; }
  .about-lead__media { height: 247px; }
  .story { grid-template-columns: 1fr; gap: 24px; padding-top: 64px; }
  .numbers__grid { grid-template-columns: 1fr 1fr; gap: 32px 16px; }
  .press__grid { grid-template-columns: 1fr; gap: 40px; }
  .press__media { height: 220px; }
  .culture__grid { columns: 2; column-gap: 12px; }
  .culture__item { margin-bottom: 12px; max-height: 220px; }
  .members { grid-template-columns: 1fr; gap: 40px; padding: 64px var(--gutter); }
  .contact { padding-top: 120px; }
  .contact__email { font-size: 13vw; }
  .projects__grid { grid-template-columns: 1fr; gap: 16px; }
  .project { height: 220px; }
  .project__title { left: 16px; bottom: 60px; }
  .project__tags { left: 16px; right: auto; bottom: 16px; }
  .project__tags li { height: 30px; padding: 0 10px; }
  .block__head { flex-direction: column; }
}
