/* 深町 駿 — 本名サイト
   手本：シンプルフォーム（SANKOU 2026-09-29）の寸法を実測して合わせた
   - 見出しは太さ400・36〜44px、英字の小見出しは灰色
   - 最初の画面は Claude Design で選んだ B-2「明るい地に、色つきのガラス」（2026-10-21 本人が選択）
   - 色は白・薄い緑の地と、深い緑の面。差し色は緑 #0F7C6E
   - 本文は18〜20px・行間2、左に見出し／右に本文のずらし組み
   - リンクは「↳ 詳しく見る」型の文字リンク
   - 書体は英字 Inter・和文 BIZ UDPゴシック（2026-10-21 本人が選択） */

:root {
  --white: #FFFFFF;
  --ink: #141414;
  --text: #333333;
  --gray: #566B67;
  --gray-2: #9FC2BB;
  --line: #D6E2DF;
  --mint: #EEF4F3;
  --teal: #0F7C6E;
  --dark: #0E2F2B;
  --dark-2: #163C37;
  --dark-line: #2B4F4A;
  --dark-text: #D3E5E1;
  /* 幅と余白は SANKOU のIT企業11件を幅1512で実測した値に合わせた（中身は左右約90px・幅約1340px、章の見出しの上は約180px） */
  --side: clamp(20px, 6vw, 96px);
  --max: 1320px;
  --sec: clamp(80px, 10vw, 160px); /* 章の上下の余白 */
  /* 英字は Inter を先に当て、和文は BIZ UDPゴシック（手本と同じく和文の中の英数字も Inter になる） */
  --en: "Inter", "BIZ UDPGothic", sans-serif;
  --jp: "Inter", "BIZ UDPGothic", "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  /* ヘッダーと最初の画面がつながって見えるよう、地は薄い緑。下の章はそれぞれ自分の地の色を持つ */
  background: var(--mint);
  color: var(--ink);
  font-family: var(--jp);
  font-size: 17px;
  line-height: 1.9;
  font-feature-settings: "palt" 0;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p, h1, h2, h3, h4, dl, dd, ol, ul, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
h1, h2, h3, h4 { font-weight: 400; word-break: auto-phrase; }
p, dd { text-wrap: pretty; }
dt, .num__c, .card__cap, .card__meta, .card__label { text-wrap: balance; }
.hero__lead, .lead__text, .split__body p, .num__c, .card__cap, dt, .rows__t, .years__t, .terms dd, .years__d, .note, .facts dd, .profile__bio, .profile__off { word-break: auto-phrase; }
.nowrap { white-space: nowrap; }
.sp { display: none; }
@media (max-width: 639px) { .sp { display: inline; } .pc { display: none; } }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--white); padding: 8px 12px; }

.wrap { padding-inline: var(--side); max-width: calc(var(--max) + var(--side) * 2); margin-inline: auto; }

/* 英字の小見出し */
.label {
  font-family: var(--en);
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.5;
  color: var(--gray);
  margin-bottom: clamp(8px, 1vw, 12px);
}
.dark .label { color: var(--gray-2); }

/* ---------- ヘッダー ----------
   参考の大半（Asobica・KAGAMI・Yoom・Payn・ALGO ARTIS・Unipos など）と同じく、
   横1列の目次＋右端に「連絡のしかた」のボタン。スクロールしても上に残り、下に来たら薄い線とぼかしの地を付ける */
.head {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 0 max(var(--side), calc((100% - var(--max)) / 2));
  background: rgba(238, 244, 243, .82);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.head.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(14, 47, 43, .35); }
.head__name {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .04em;
  white-space: nowrap;
}
.head__name span { font-family: var(--en); font-size: 13px; font-weight: 400; color: var(--gray); letter-spacing: 0; }
.head__nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); }
.head__links { display: flex; gap: clamp(20px, 2.6vw, 36px); }
.head__links a { font-size: 15px; letter-spacing: .04em; text-decoration: none; padding: 8px 0; border-bottom: 1px solid transparent; transition: border-color .25s, color .25s; }
.head__links a:hover { color: var(--teal); border-bottom-color: var(--teal); }
.head__btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--teal);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  white-space: nowrap;
  transition: background .25s;
}
.head__btn:hover { background: #0B6458; }
/* 狭い画面：名前とボタンを1行目、目次を2行目に */
@media (max-width: 759px) {
  .head { flex-wrap: wrap; row-gap: 0; min-height: 0; padding-top: 12px; padding-bottom: 4px; }
  .head__name { font-size: 17px; }
  .head__name span { display: none; }
  .head__nav { display: contents; }
  .head__btn { order: 2; min-height: 40px; padding: 0 16px; font-size: 14px; }
  .head__links { order: 3; width: 100%; gap: 20px; margin-top: 4px; }
  .head__links a { font-size: 14px; display: inline-block; padding: 8px 0; }
}
/* 目次で飛んだとき、見出しがヘッダーの下に隠れないように */
[id] { scroll-margin-top: 88px; }
@media (max-width: 759px) { [id] { scroll-margin-top: 120px; } }

/* ---------- 最初の画面（B-2 明るい地に、色つきのガラス） ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--mint);
  padding: clamp(48px, 6vw, 96px) 0 clamp(56px, 7vw, 112px);
}
.hero__glow { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .75; pointer-events: none; }
.hero__glow--1 { width: clamp(220px, 28vw, 400px); aspect-ratio: 1; right: 14%; top: 8%; background: #7FCDBF; }
.hero__glow--2 { width: clamp(160px, 21vw, 300px); aspect-ratio: 1; right: 2%; top: 45%; background: #A8DCD2; }
.hero__in { position: relative; display: grid; gap: clamp(24px, 4vw, 40px); align-items: center; }
@media (min-width: 900px) {
  .hero__in { grid-template-columns: minmax(0, 44fr) minmax(0, 56fr); min-height: clamp(560px, 44vw, 700px); }
}
.hero__title {
  font-size: clamp(30px, 3.6vw, 52px);
  line-height: 1.45;
  letter-spacing: .02em;
  color: var(--ink);
}
.hero__lead {
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 2;
  color: var(--text);
  margin-top: clamp(18px, 2vw, 28px);
}
.hero .more { border-color: var(--teal); }
.hero .label { color: var(--gray); }

/* ガラスの画面：中は 760×680 で組み、箱の幅に合わせて縮める（--s は script.js が入れる） */
.hero__stage { position: relative; width: 100%; max-width: 760px; height: calc(680px * var(--s, .5)); justify-self: end; }
.stage { position: absolute; left: 0; top: 0; width: 760px; height: 680px; perspective: 1600px; transform: scale(var(--s, .5)); transform-origin: 0 0; }
.stack { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateY(-24deg) rotateX(8deg); }
.glass {
  position: absolute;
  border-radius: 18px;
  background: linear-gradient(140deg, rgba(255,255,255,.62), rgba(255,255,255,.28));
  border: 1px solid rgba(255,255,255,.95);
  box-shadow: 0 40px 80px -30px rgba(30,70,62,.28), inset 0 1px 0 rgba(255,255,255,.9);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  overflow: hidden;
  color: #1F2D2A;
}
.glass--1 { left: 40px; top: 40px; width: 420px; height: 250px; animation: fl1 9s ease-in-out infinite; }
.glass--2 { left: 230px; top: 250px; width: 470px; height: 210px; animation: fl2 8s ease-in-out infinite; }
.glass--3 { left: 90px; top: 420px; width: 380px; height: 200px; animation: fl3 10s ease-in-out infinite; }
.glass__bar { height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 14px; border-bottom: 1px solid rgba(31,45,42,.1); font-size: 12px; color: #5A6F6B; }
.glass__dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(31,45,42,.22); }
.glass__name { margin-left: 8px; }
.glass__mono { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 13px; line-height: 2; padding: 16px 18px; }
.glass__dim { color: #5A6F6B; }
.glass__ok { margin-right: .6em; }
.glass__cursor { display: inline-block; width: 8px; height: 15px; background: #1F2D2A; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
.tl { position: relative; padding: 18px; height: 150px; }
.tl__track { position: relative; height: 26px; margin-bottom: 10px; }
.tl__clip { position: absolute; top: 0; height: 26px; border-radius: 5px; background: rgba(47,165,147,.4); border: 1px solid rgba(31,45,42,.12); }
.tl__clip--b { background: rgba(31,45,42,.08); }
.tl__clip--thin { height: 12px; top: 7px; }
.tl__head { position: absolute; top: 10px; bottom: 6px; width: 2px; background: var(--teal); box-shadow: 0 0 10px var(--teal); animation: scan 6s linear infinite; }
.chat { padding: 18px; font-size: 14px; line-height: 1.8; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.chat__bub { padding: 10px 14px; border-radius: 12px; background: rgba(31,45,42,.07); }
.chat__bub--me { background: rgba(47,165,147,.22); }
.chat__typing { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #1F2D2A; margin-right: 4px; animation: typing 1.2s infinite; }
.chat__typing:nth-child(2) { animation-delay: .2s; }
.chat__typing:nth-child(3) { animation-delay: .4s; }
@keyframes fl1 { 0%,100% { transform: translateZ(-60px) translateY(0); } 50% { transform: translateZ(-60px) translateY(-14px); } }
@keyframes fl2 { 0%,100% { transform: translateZ(40px) translateY(0); } 50% { transform: translateZ(40px) translateY(12px); } }
@keyframes fl3 { 0%,100% { transform: translateZ(120px) translateY(-6px); } 50% { transform: translateZ(120px) translateY(10px); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes scan { from { left: 18px; } to { left: calc(100% - 20px); } }
@keyframes typing { 0%,100% { opacity: .25; } 50% { opacity: 1; } }
@media (max-width: 899px) {
  .hero__stage { justify-self: center; }
}

/* 最初の画面のすぐ下：くわしい説明と数字 */
.intro { background: var(--white); }

.lead { padding: var(--sec) 0; }
.lead__text {
  max-width: 40em;
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 2;
  color: var(--ink);
}

/* 「↳ 詳しく見る」型のリンク */
.more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: clamp(24px, 2.6vw, 32px);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  text-decoration: none;
  letter-spacing: .04em;
  transition: border-color .3s;
}
.more::before { content: "↳"; font-family: var(--en); }
.more:hover { border-color: var(--teal); }
.dark .more { border-color: var(--dark-line); }
.dark .more:hover { border-color: var(--gray-2); }

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: clamp(20px, 2.2vw, 36px); /* 下の仕事のカード3枚と列の位置をそろえる */
  margin-top: clamp(48px, 6vw, 88px);
  border-top: 1px solid var(--line);
}
.facts > div { padding: 20px 16px 0 0; }
.facts dt { font-family: var(--en); font-size: clamp(30px, 3vw, 40px); font-weight: 500; line-height: 1.2; white-space: nowrap; }
.facts dt small { font-family: var(--jp); font-size: 15px; font-weight: 400; margin-left: 4px; color: var(--gray); }
.facts dd { font-size: 15px; color: var(--gray); margin-top: 6px; line-height: 1.6; }
@media (max-width: 479px) {
  .facts { grid-template-columns: 1fr; }
  .facts > div { display: grid; grid-template-columns: 128px minmax(0, 1fr); align-items: baseline; column-gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); } /* 数字の幅が違っても、右の説明は3行とも同じ位置から */
}
@media (max-width: 359px) {
  .facts > div { grid-template-columns: 1fr; row-gap: 2px; } /* とても狭い画面では、説明を数字の下に置く（3行とも同じ位置） */
  .facts dd { margin: 0; }
}

/* ---------- 白と黒の面 ---------- */
.dark { background: var(--dark); color: var(--white); padding: var(--sec) 0; }
.light { background: var(--white); padding: var(--sec) 0; }
.light--line { border-top: 1px solid var(--line); }

.title {
  font-size: clamp(26px, 2.8vw, 38px);
  line-height: 1.5;
  letter-spacing: .02em;
}

/* 左に見出し、右に本文 */
.split {
  display: grid;
  gap: 24px;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 5fr 7fr; gap: clamp(48px, 6vw, 96px); align-items: start; }
  .split__body { padding-top: calc(clamp(14px, 1.2vw, 16px) * 1.5 + clamp(8px, 1vw, 12px) + 2px); } /* 左の英字の小見出しの分と、見出しの大きい文字の上の行間の差だけ下げ、1行目の字の上端をそろえる */
}
.split__body { max-width: 680px; }
.split__body, .split__body p { font-size: clamp(16px, 1.4vw, 18px); line-height: 1.9; letter-spacing: .03em; }
.dark .split__body, .dark .split__body p { color: var(--dark-text); }

/* 小さな章見出し（基幹プロダクト・ケーススタディ型） */
.sub {
  font-size: clamp(18px, 1.9vw, 24px);
  line-height: 1.35;
  letter-spacing: .05em;
  margin: clamp(72px, 8vw, 128px) 0 clamp(24px, 2.4vw, 36px);
}
.sub--ink { color: var(--ink); }

/* 3つの仕事 */
.cards { display: grid; gap: clamp(56px, 6vw, 80px) clamp(20px, 2.2vw, 36px); }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cards { grid-template-columns: repeat(3, 1fr); } }
/* 説明の長さが違っても、画像・小見出し・見出し・説明・料金・注記の高さを横の並びでそろえる（subgrid） */
@media (min-width: 760px) {
  .cards { row-gap: 0; } /* 親の行の間隔が subgrid の中に入り込むのを防ぎ、段の間はカードの下の余白で空ける */
  .card { display: grid; grid-row: span 6; grid-template-rows: subgrid; row-gap: 0; margin-bottom: clamp(56px, 6vw, 80px); }
  .card > * { align-self: start; }
}
.card__img {
  aspect-ratio: 16 / 10;
  background: var(--dark-2);
  overflow: hidden;
}
.card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
  filter: grayscale(1) contrast(1.08);
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.card:hover .card__img img { transform: scale(1.03); }
.card__img--num {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: clamp(20px, 2.4vw, 32px);
  background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1px);
  background-size: 8px 8px;
}
.num__v { font-family: var(--en); font-size: clamp(40px, 4.4vw, 56px); line-height: 1; letter-spacing: -.01em; }
.num__v small { font-family: var(--jp); font-size: max(14px, .32em); margin-left: 4px; }
.num--sub .num__v { font-size: clamp(26px, 2.6vw, 32px); }
.num__c { font-size: 13px; color: var(--gray-2); margin-top: 6px; line-height: 1.6; }
.card__label {
  font-family: var(--jp);
  font-size: 15px;
  color: var(--gray-2);
  margin-top: 18px;
}
.card__label::before { content: "↳"; font-family: var(--en); margin-right: .4em; }
.card__title { font-size: clamp(20px, 2vw, 26px); line-height: 1.5; letter-spacing: .03em; margin-top: 10px; }
.card__text { font-size: 16px; line-height: 1.95; color: #E6F1EE; margin-top: 18px; letter-spacing: .02em; }
.card__meta { font-size: 14px; color: var(--white); margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--dark-line); }
.card__cap { font-size: 13px; color: var(--gray-2); margin-top: 8px; line-height: 1.7; }

/* 番号つきの行（ケーススタディ型） */
.rows { border-top: 1px solid var(--dark-line); }
.rows li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: clamp(24px, 2.6vw, 36px) 0;
  border-bottom: 1px solid var(--dark-line);
}
.rows__n { font-family: var(--en); font-size: 16px; font-weight: 500; color: var(--gray-2); padding-top: 3px; }
.rows__t { font-size: clamp(17px, 1.4vw, 18px); line-height: 1.9; letter-spacing: .02em; max-width: 42em; color: #E6F1EE; }
@media (min-width: 900px) { .rows li { grid-template-columns: 200px 1fr; } }
@media (max-width: 479px) { .rows li { grid-template-columns: 1fr; gap: 4px; } }
.note { font-size: 14px; line-height: 1.9; color: var(--gray-2); margin-top: 24px; max-width: 42em; }
.note--top { margin-top: 20px; }

/* ---------- 経歴 ---------- */
.profile { display: grid; gap: 28px; align-items: start; }
@media (min-width: 760px) {
  .profile { grid-template-columns: minmax(200px, 300px) 1fr; gap: clamp(32px, 5vw, 64px); }
}
.profile__photo { aspect-ratio: 4 / 5; max-width: min(320px, 56vw); overflow: hidden; background: #EEF1F3; }
.profile__photo img { width: 100%; height: 100%; object-fit: cover; }
.profile__name { margin-top: clamp(24px, 2.4vw, 32px); font-size: clamp(18px, 1.6vw, 22px); font-weight: 700; line-height: 1.5; letter-spacing: .06em; }
.profile__name span { font-family: var(--en); font-size: 14px; font-weight: 400; color: var(--gray); margin-left: 12px; letter-spacing: 0; }
.profile__role { margin-top: 4px; font-size: 15px; font-weight: 700; line-height: 1.6; color: var(--teal); letter-spacing: .04em; }
.profile__bio { margin-top: 16px; font-size: clamp(16px, 1.4vw, 17px); line-height: 1.9; color: var(--text); letter-spacing: .02em; max-width: 40em; }
.profile__off { margin-top: 20px; font-size: 15px; line-height: 1.8; color: var(--text); }

/* 担当できること（札） */
.skills { margin-top: 24px; display: grid; gap: 10px; }
.skills > div { display: grid; grid-template-columns: 1fr; gap: 6px; }
@media (min-width: 480px) { .skills > div { grid-template-columns: 72px 1fr; align-items: start; gap: 8px; } }
.skills dt { font-family: var(--en); font-size: 13px; line-height: 32px; color: var(--gray); }
.skills ul { display: flex; flex-wrap: wrap; gap: 8px; }
.skills li { display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; line-height: 1.4; color: var(--ink); }

.years { border-top: 1px solid var(--line); }
.years li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: clamp(24px, 2.6vw, 36px) 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 900px) { .years li { grid-template-columns: 200px 1fr; } }
/* 期間は見出しの1行目と同じ行の高さにして、字の上端をそろえる */
.years__y { font-family: var(--en); font-size: 15px; font-weight: 500; line-height: calc(clamp(18px, 1.6vw, 21px) * 1.6); color: var(--gray); letter-spacing: .04em; white-space: nowrap; }
.years__t { font-size: clamp(18px, 1.6vw, 21px); font-weight: 700; line-height: 1.6; letter-spacing: .02em; }
.years__d { font-size: 16px; line-height: 1.9; color: var(--text); margin-top: 8px; letter-spacing: .02em; max-width: 42em; }
.years__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; background: #E3F1EE; color: #0B6458; font-family: var(--en); font-size: 13px; font-weight: 500; letter-spacing: .01em; }
@media (max-width: 479px) { .years li { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- ご依頼 ---------- */
.terms { border-top: 1px solid var(--line); }
.terms > div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: clamp(24px, 2.6vw, 36px) 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 900px) { .terms > div { grid-template-columns: 200px 1fr; } }
.terms dt { font-size: 16px; font-weight: 700; letter-spacing: .04em; }
.terms dd { font-size: 16px; line-height: 1.9; color: var(--text); letter-spacing: .02em; max-width: 42em; }
.terms--qa > div { grid-template-columns: 28px 1fr; gap: 6px 12px; }
/* 左の列に Q・A の印を置き、質問と答えは同じ位置から始める（PCでは上の「ご依頼の条件」の右の列とも同じ位置） */
.terms--qa > div::before, .terms--qa > div::after { grid-column: 1; font-family: var(--en); font-size: 16px; font-weight: 500; line-height: 1.9; }
.terms--qa > div::before { content: "Q"; grid-row: 1; color: var(--teal); }
.terms--qa > div::after { content: "A"; grid-row: 2; color: var(--gray); }
.terms--qa dt { grid-column: 2; grid-row: 1; }
.terms--qa dd { grid-column: 2; grid-row: 2; }
@media (min-width: 900px) { .terms--qa > div { grid-template-columns: 200px 1fr; gap: 8px 16px; } }
.terms--qa dt { font-size: 16px; line-height: 1.9; }
@media (max-width: 479px) { .terms:not(.terms--qa) > div { grid-template-columns: 1fr; gap: 4px; } }
.more--ink { color: var(--ink); border-color: var(--teal); }

/* ---------- 連絡・フッター ---------- */
.dark--contact { padding-bottom: var(--sec); }
.foot { background: var(--dark); color: var(--white); border-top: 1px solid var(--dark-line); }
.foot__in { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 12px; padding-block: 32px 40px; }
.foot .head__name span { color: var(--gray-2); }
.foot__copy { font-family: var(--en); font-size: 13px; color: var(--gray-2); }

/* ---------- 動き（SANKOU のIT企業16件のうち7件がスクロールで要素を出していたのに合わせる） ---------- */
/* 1. 浮かび上がり：同じ並びの中では少しずつ遅らせる（--i は script.js が入れる） */
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s ease, transform 1.1s cubic-bezier(.16,1,.3,1); transition-delay: calc(var(--i, 0) * 110ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
/* 2. 行や表は、1行ずつ順に */
.js [data-stagger] > * { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform 1s cubic-bezier(.16,1,.3,1); transition-delay: calc(var(--i, 0) * 90ms); }
.js [data-stagger].is-in > * { opacity: 1; transform: none; }
/* 3. 見出しは1行ずつ下からせり上げる（行の分け方は script.js） */
.line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.line__in { display: inline-block; transform: translateY(110%); transition: transform 1.1s cubic-bezier(.16,1,.3,1); transition-delay: calc(var(--i, 0) * 120ms + .1s); }
.is-in .line__in { transform: none; }
/* 4. 仕事の画像は、少し大きい状態から戻す */
.js .card .card__img img { transform: scale(1.08); transition: transform 1.6s cubic-bezier(.16,1,.3,1); }
.js .card.is-in .card__img img { transform: scale(1); }
.js .card.is-in:hover .card__img img { transform: scale(1.03); }
.count { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js [data-stagger] > *, .line__in, .js .card .card__img img { opacity: 1; transform: none; transition: none; }
  .glass, .glass__cursor, .tl__head, .chat__typing { animation: none; }
}
