/* ==========================================================
   Ryoya Terada Portfolio - style.css
   デザインガイドライン（Figma）と仕様書6章に合わせて実装
   1. Tokens / Base
   2. Header
   3. Footer（エンドロール）
   4. Common parts（ラベル・リンク・ボタン・作品カード）
   5. Top
   6. Works
   7. Work detail
   8. Annotation（引き出し線の解説）
   9. About
   10. 404
   11. Responsive
   ========================================================== */

/* ----------------------------------------------------------
   1. Tokens / Base
---------------------------------------------------------- */
:root {
  --color-bg: #EFECE6;
  --color-surface: #F7F4EE; /* 生成りの紙。純白は背景から浮くため使わない */
  --color-ink: #17171A;
  --color-sub: #64625D;
  --color-line: #D6D2CA;
  --color-accent: #A3471F;
  --color-accent-on-dark: #E8916A;
  --color-sub-on-dark: #9A978F;

  --font-title: "Antonio", "Arial Narrow", "Helvetica Neue Condensed", sans-serif;
  --font-ja: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --gutter: clamp(16px, 4vw, 64px);
  --max: 1240px;
  --header-h: 64px;
  --section-gap: clamp(72px, 9vw, 120px);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-ja);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .04em;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -100px;
  z-index: 100;
  padding: 8px 16px;
  background: var(--color-ink);
  color: var(--color-bg);
}
.skip-link:focus { top: 8px; }

/* タイトル専用書体：英字の短い言葉だけ（仕様書6-3） */
.title {
  font-family: var(--font-title);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 1.05;
}
.title strong { font-weight: 600; color: var(--color-accent); }

/* ----------------------------------------------------------
   2. Header
   トップでは黒帯の中（data-theme="dark"）、スクロール後は明るい背景
---------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-line);
  transition: transform .35s var(--ease), background-color .3s, border-color .3s;
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header[data-theme="dark"] {
  background: var(--color-ink);
  border-color: transparent;
  color: var(--color-bg);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.site-header__logo {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .08em;
  text-decoration: none;
}
.site-nav ul { display: flex; align-items: center; gap: clamp(16px, 3vw, 36px); }
.site-nav a {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .1em;
  text-decoration: none;
}
.site-nav a:hover { color: var(--color-accent); }
.site-header[data-theme="dark"] .site-nav a:hover { color: var(--color-accent-on-dark); }
.site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.site-nav .mail-link { color: var(--color-accent); }
.site-header[data-theme="dark"] .mail-link { color: var(--color-accent-on-dark); }
.mail-link__short { display: none; }

/* ----------------------------------------------------------
   3. Footer（エンドロール）
---------------------------------------------------------- */
.end-credits {
  background: var(--color-ink);
  color: var(--color-bg);
  padding-block: clamp(72px, 9vw, 112px) 32px;
  text-align: center;
}
.credits { display: grid; gap: 10px; }
.credits div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.credits dt {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--color-sub-on-dark);
  text-align: right;
}
.credits dd span { white-space: nowrap; }
.credits dd {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .1em;
  text-align: left;
}
.end-credits__contact { margin-top: clamp(56px, 7vw, 88px); }
.end-credits__contact-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--color-sub-on-dark);
}
.end-credits__mail {
  display: inline-block;
  margin-top: 12px;
  font-size: clamp(22px, 3.4vw, 36px);
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--color-accent-on-dark);
  text-underline-offset: 8px;
  text-decoration-thickness: 1px;
}
.end-credits__mail:hover { text-decoration-thickness: 2px; }
.end-credits__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: clamp(64px, 8vw, 96px);
  padding-top: 20px;
  border-top: 1px solid #2E2E32;
  font-size: 12px;
  color: var(--color-sub-on-dark);
}
.end-credits__bottom ul { display: flex; gap: 24px; }
.end-credits__bottom a { text-decoration: none; }
.end-credits__bottom a:hover { color: var(--color-bg); }

/* ----------------------------------------------------------
   4. Common parts
---------------------------------------------------------- */
/* 英数字は等幅、日本語はゴシックに分ける（仕様書6-3） */
.scene {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 12px;
  color: var(--color-sub);
}
.scene__en { font-family: var(--font-mono); letter-spacing: .14em; }
.scene__ja { font-weight: 500; letter-spacing: .08em; }

/* 見出し：英字タイトル＋下に日本語を小さく添える */
.heading .title { font-size: clamp(40px, 6vw, 80px); }
.heading__ja {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--color-sub);
}

/* リンク（押せる）：銅色＋下線＋→ */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-accent);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}
.text-link .arrow { transition: transform .25s var(--ease); }
.text-link:hover { text-decoration-color: transparent; }
.text-link:hover .arrow { transform: translateX(4px); }

/* ボタン：銅色の面に白文字（1画面に1つまで） */
.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--color-accent);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color .2s;
}
.button:hover { background: #8A3B19; }
.button--ghost {
  background: transparent;
  color: var(--color-ink);
  box-shadow: inset 0 0 0 1px var(--color-ink);
}
.button--ghost:hover { background: var(--color-ink); color: var(--color-bg); }

/* シネスコ比率（2.39:1）の作品画像 */
.still {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2.39 / 1;
  background: var(--still-bg, #2A2A2E);
}
.still img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
/* 縦長の作品（フライヤー）は横長の背景の中に置く */
.still--poster img {
  width: auto;
  height: 88%;
  margin: 6% auto 0;
  object-fit: contain;
  box-shadow: 0 12px 32px rgba(23, 23, 26, .18);
}

.badge {
  display: inline-block;
  padding: 2px 12px;
  border: 1px solid var(--color-accent);
  border-radius: 999px;
  color: var(--color-accent);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .06em;
}

.todo {
  background: #F6E3A6;
  padding: 0 .3em;
}

/* ----------------------------------------------------------
   5. Top
---------------------------------------------------------- */
/* ヘッダー部分：キャッチコピーは小さめにまとめ、すぐ下から作品を見せる */
.home-head {
  padding-top: calc(var(--header-h) + clamp(40px, 6vw, 80px));
  padding-bottom: clamp(32px, 4vw, 56px);
}
.home-head__catch { font-size: clamp(48px, 7.2vw, 112px); }
.home-head__lead {
  margin-top: 16px;
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 500;
}

/* コンタクトシート（フィルムのベタ焼き）：1行＝1作品。細い墨色の線をコマ枠に見立てる */
.sheet { border-top: 1px solid var(--color-ink); }
.sheet__row { border-bottom: 1px solid var(--color-ink); }
.sheet__link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
  text-decoration: none;
}
.sheet__title {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: clamp(20px, 2.2vw, 32px);
  border-right: 1px solid var(--color-ink);
}
.sheet__name {
  margin-top: 4px;
  font-size: clamp(32px, 3.6vw, 56px);
  transition: color .2s;
}
.sheet__desc { font-size: 15px; font-weight: 500; line-height: 1.7; }
.sheet__origin { font-size: 13px; color: var(--color-sub); }
.sheet__more {
  margin-top: auto;
  padding-top: 16px;
  color: var(--color-accent);
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 6px;
}
.sheet__more .arrow { display: inline-block; transition: transform .25s var(--ease); }
.sheet__link:hover .sheet__name { color: var(--color-accent); }
.sheet__link:hover .sheet__more { text-decoration-color: transparent; }
.sheet__link:hover .sheet__more .arrow { transform: translateX(4px); }
.sheet__link:focus-visible { outline-offset: -3px; }

/* 作品カード（作品詳細の「ほかの作品」で使う） */
.work-card { display: block; text-decoration: none; }
.work-card .still img { transition: transform .6s var(--ease); }
.work-card:hover .still img { transform: scale(1.03); }
.work-card__body { padding-top: 16px; }
.work-card__title {
  margin-block: 8px 6px;
  font-size: clamp(26px, 2.6vw, 36px);
  transition: color .2s;
}
.work-card:hover .work-card__title { color: var(--color-accent); }
.work-card__desc { font-size: 15px; font-weight: 500; line-height: 1.7; }
.work-card__origin { margin-top: 4px; font-size: 13px; color: var(--color-sub); }

/* 自己紹介の要約：左右非対称 */
.statement {
  display: grid;
  grid-template-columns: 4fr 7fr;
  gap: clamp(32px, 6vw, 96px);
  padding-block: var(--section-gap);
}
.statement__body p { max-width: 34em; font-size: 17px; }
.statement__body p + p { margin-top: 1.2em; }
.statement__body .text-link { margin-top: 32px; }

/* ----------------------------------------------------------
   6. Works
---------------------------------------------------------- */
.page-head {
  padding-top: calc(var(--header-h) + clamp(48px, 7vw, 88px));
  padding-bottom: clamp(32px, 5vw, 56px);
}
.page-head .title { font-size: clamp(56px, 9vw, 128px); }
.page-head__lead { margin-top: 20px; max-width: 36em; color: var(--color-sub); }

.work-list { border-top: 1px solid var(--color-ink); }
.work-row {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding-block: clamp(32px, 5vw, 56px);
  border-bottom: 1px solid var(--color-line);
}
.work-row__media { display: block; }
[data-pan-item] { transition: opacity .35s var(--ease), filter .35s var(--ease); }

/* 劇場の暗転：選んだ作品だけに光を当て、ほかを暗くする */
/* 止まっているときに見せる表紙の画像（縦長のポスターなど、上の部分だけでは作品名が見えないもの）。
   パンが始まるとふわっと消え、下の画像が流れ始める */
.still--pan .pan-cover {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .5s var(--ease);
}
[data-pan].is-panning .pan-cover { opacity: 0; }

[data-pan-list].is-dimmed [data-pan-item]:not(.is-active) {
  opacity: .32;
  filter: grayscale(.6);
}

/* カメラのパン：ホバーすると、ページ全体の画像がゆっくり下へ流れる */
.still--pan img {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  height: auto;
  object-fit: initial;
  will-change: transform;
}
.work-row__title {
  margin-block: 10px 6px;
  font-size: clamp(36px, 4.6vw, 64px);
}
.work-row__title a { text-decoration: none; }
.work-row__title a:hover { color: var(--color-accent); }
.work-row__desc { font-size: 15px; }
.work-row .badge { margin-top: 12px; }
.work-row .facts { margin-block: 20px 24px; }

/* 映画のクレジット風の基本情報 */
.facts { display: grid; gap: 6px; }
.facts div {
  display: grid;
  grid-template-columns: 7.5em 1fr;
  gap: 16px;
  align-items: baseline;
}
.facts dt {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--color-sub);
}
.facts dd { font-size: 14px; }
.facts a { color: var(--color-accent); text-underline-offset: 4px; word-break: break-all; }
.facts small { display: block; font-size: 12px; color: var(--color-sub); }

/* ----------------------------------------------------------
   7. Work detail
---------------------------------------------------------- */
/* 冒頭：メインビジュアル → タイトル → 説明と基本情報 の順。
   開いた画面にメインビジュアルとタイトルが必ず収まるよう、画像の高さを画面の高さに合わせて抑える */
.detail-top { padding-top: calc(var(--header-h) + clamp(16px, 2.5vw, 32px)); }
.key-visual .still {
  /* 画面の高さから、ヘッダーとタイトルの分（約240px）を引いた高さまで。収まらないときは横幅はそのままで上下を切り抜く */
  width: 100%;
  max-height: calc(100svh - var(--header-h) - 240px);
  min-height: 160px;
}
.detail-title { padding-top: clamp(16px, 2vw, 28px); }
.detail-title .title { font-size: clamp(40px, 4.8vw, 72px); }
.detail-head__ja { margin-top: 8px; font-size: clamp(16px, 1.6vw, 19px); font-weight: 500; }
.detail-title .badge { margin-top: 12px; }

.detail-info {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(24px, 5vw, 80px);
  align-items: start;
  margin-top: clamp(32px, 4vw, 56px);
  padding-bottom: var(--section-gap);
}
.detail-head__lead { font-size: 15px; }
.detail-info .facts { padding-top: 16px; border-top: 1px solid var(--color-ink); }

.chapter { padding-bottom: var(--section-gap); }
.chapter__head { margin-bottom: clamp(28px, 4vw, 48px); }
.chapter__title {
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .06em;
}
.chapter__lead {
  margin-top: 10px;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-sub);
}
/* コンセプトの一文：作品ごとの「誰に合わせたか」の答え */
.chapter__lead--concept {
  margin-top: 16px;
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 700;
  line-height: 1.6;
  color: var(--color-ink);
}

/* 読み物：本文幅を狭める */
.prose { max-width: 40em; }
.prose p + p { margin-top: 1.4em; }
.prose h3 { margin-top: 2.2em; font-size: 18px; font-weight: 700; }
.prose strong { font-weight: 700; }

/* コンセプト：大きな一文＋本文 */
.concept {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(28px, 5vw, 80px);
}
.concept__summary {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.8;
  padding-left: 16px;
  border-left: 2px solid var(--color-accent);
  align-self: start;
}

/* 配色と書体の見本：横並び */
.specimen {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
}
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.swatch { font-family: var(--font-mono); font-size: 11px; line-height: 1.5; }
.swatch__chip { aspect-ratio: 1; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(23, 23, 26, .1); }
.swatch b { display: block; margin-top: 8px; font-family: var(--font-ja); font-size: 12px; font-weight: 500; }
.typeset { display: grid; gap: 14px; }
.typeset__item { padding-bottom: 14px; border-bottom: 1px solid var(--color-line); }
.typeset__sample { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.35; }
.typeset__name { margin-top: 4px; font-size: 12px; color: var(--color-sub); }
.specimen__note { margin-top: 20px; font-size: 14px; }

/* ページ全体：ブラウザ枠の中でスクロール */
.browser {
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: var(--color-surface);
}
.browser__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--color-line);
}
.browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--color-line); }
.browser__bar span {
  flex: 1;
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-sub);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.browser__view { height: min(78vh, 720px); overflow-y: auto; overscroll-behavior: contain; }
.browser + p { margin-top: 12px; font-size: 13px; color: var(--color-sub); }

/* ほかの作品：一番下に、ほかの作品のカードを並べて選べるようにする */
.other-works {
  padding-top: clamp(48px, 6vw, 80px);
  padding-bottom: var(--section-gap);
  border-top: 1px solid var(--color-ink);
}
.other-works__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: clamp(24px, 3vw, 36px);
}
.other-works__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}

/* ----------------------------------------------------------
   8. Annotation（引き出し線の解説・仕様書4-7）
   JSなし／スマホ：番号方式。JSあり＋769px以上：.has-lines で線を描く
---------------------------------------------------------- */
.annot {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: stretch;
}
.annot + .annot { margin-top: clamp(64px, 8vw, 104px); }
.annot--flip { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
.annot--flip .annot__media { order: 2; }
.annot__media { position: relative; align-self: start; }
.annot__media img { width: 100%; border-radius: 4px; }
.annot__media--narrow { max-width: 380px; justify-self: center; width: 100%; }

.annot__pt {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .9);
  transition: transform .2s var(--ease);
}

.annot__notes {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 32px;
  counter-reset: note;
}
/* 解説カード：白い面＋細い墨色の線＋やわらかい影で、背景と画像から浮かせる */
.annot__note {
  position: relative;
  padding: 18px 22px 20px 56px;
  background: var(--color-surface);
  border: 1px solid var(--color-ink);
  box-shadow: 0 6px 16px rgba(74, 52, 30, .10);
  counter-increment: note;
  transition: opacity .2s, border-color .2s, box-shadow .2s;
}
.annot__note::before {
  content: counter(note);
  position: absolute;
  left: 20px;
  top: 21px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
}
.annot__note h4 { font-size: 18px; font-weight: 700; line-height: 1.6; }
.annot__note p { margin-top: 6px; font-size: 15px; line-height: 1.8; }

.annot__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  display: none;
}
.annot__lines .halo { stroke: rgba(255, 255, 255, .9); stroke-width: 4; fill: none; }
.annot__lines .line { stroke: var(--color-accent); stroke-width: 1.5; fill: none; transition: opacity .2s; }

/* 線を描く状態 */
.annot.has-lines .annot__lines { display: block; }
.annot.has-lines .annot__pt {
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  background: #fff;
  font-size: 0;
  box-shadow: 0 0 0 3px var(--color-accent);
}
.annot.has-lines .annot__note { padding-left: 22px; }
.annot.has-lines .annot__note::before { display: none; }
.annot.is-focus .annot__note:not(.is-on) { opacity: .35; }
.annot__note.is-on {
  border-color: var(--color-accent);
  box-shadow: 0 8px 20px rgba(163, 71, 31, .16);
}
.annot.is-focus .annot__lines g:not(.is-on) .line { opacity: .2; }
.annot.is-focus .annot__lines g:not(.is-on) .halo { opacity: 0; }
.annot__pt.is-on { transform: scale(1.4); }

/* ----------------------------------------------------------
   9. About
---------------------------------------------------------- */
.profile {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(32px, 6vw, 96px);
  padding-bottom: var(--section-gap);
}
.profile__name { font-size: clamp(28px, 3.2vw, 40px); font-weight: 700; line-height: 1.4; }
.profile__name span {
  display: block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .12em;
  color: var(--color-sub);
}

.process { counter-reset: step; border-top: 1px solid var(--color-ink); }
.process li {
  display: grid;
  grid-template-columns: 4em 12em 1fr;
  gap: 24px;
  padding-block: 24px;
  border-bottom: 1px solid var(--color-line);
  counter-increment: step;
}
.process li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-accent);
  padding-top: 4px;
}
.process h3 { font-size: 18px; font-weight: 700; }
.process p { font-size: 15px; }

.skills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 48px);
}
.skills h3 {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .14em;
  color: var(--color-sub);
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--color-ink);
}
.skills li { font-size: 15px; }
.skills small {
  margin-left: 8px;
  font-size: 12px;
  color: var(--color-sub);
}

/* ----------------------------------------------------------
   10. 404
---------------------------------------------------------- */
.cut {
  min-height: 72svh;
  display: grid;
  align-content: center;
  gap: 24px;
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: 64px;
}
.cut .title { font-size: clamp(48px, 9vw, 128px); }
.cut__actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 16px; }

/* ----------------------------------------------------------
   Motion
   動きは、見る人の操作に応えるもの（暗転とパン、ヘッダー、解説の連動）だけにする
---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  [data-pan-item] { transition: none; }
}
/* ----------------------------------------------------------
   11. Responsive
---------------------------------------------------------- */
@media (max-width: 960px) {
  .work-row,
  .detail-info,
  .concept,
  .specimen,
  .statement,
  .profile { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --header-h: 56px; }
  body { font-size: 15px; }
  .site-header__logo { font-size: 12px; }
  .site-nav ul { gap: 14px; }
  .site-nav a { font-size: 12px; }
  .mail-link__full { display: none; }
  .mail-link__short { display: inline; }

  .other-works__list { grid-template-columns: 1fr; gap: 40px; }
  /* スマホでは、横長の画像を上、作品名を下に置く */
  .sheet__link { grid-template-columns: 1fr; }
  .sheet__image { order: -1; }
  .sheet__title { border-right: 0; border-top: 1px solid var(--color-ink); gap: 4px; }
  .sheet__more { padding-top: 10px; }

  .annot,
  .annot--flip { grid-template-columns: 1fr; gap: 24px; }
  .annot--flip .annot__media { order: 0; }
  .annot__notes { justify-content: flex-start; gap: 14px; }
  .annot__note { padding: 14px 16px 16px 48px; }
  .annot__note::before { left: 14px; top: 16px; }

  .process li { grid-template-columns: 3em 1fr; }
  .process li p { grid-column: 2; }
  .skills { grid-template-columns: 1fr; }
  .credits { gap: 18px; }
  .credits div { grid-template-columns: 1fr; gap: 2px; }
  .credits dt,
  .credits dd { text-align: center; }
}
