:root {
  --bg: #0a0a0a;
  --surface: #131313;
  --surface-2: #1a1a1a;
  --line: #262626;
  --text: #f2f0eb;
  --muted: #9b9a95;
  --body: #cfcdc7;
  --accent: #ecd06f;
  --peak: #d14836;
  --radius: 6px;
  --maxw: 1040px;
  --font-body: "Zen Kaku Gothic New", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Yu Gothic", "Noto Sans JP", "Segoe UI", sans-serif;
  --font-display: "Syne", "Zen Kaku Gothic New", -apple-system, "Hiragino Sans", "Yu Gothic", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 56px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

/* 日本語の改行: 文節(<wbr>)の位置でだけ折り返し、単語の途中で切れないようにする */
main p, main dd, main dt, main li, main h2 { word-break: keep-all; overflow-wrap: anywhere; line-break: strict; text-wrap: pretty; }
/* JSで後から入る作品・受賞の文章は、対応ブラウザでは文節単位で自動改行 */
.card-desc, .card-title, .card-meta, .modal-text, .modal-title, .award-title, .award-detail, .modal-facts dd { word-break: normal; word-break: auto-phrase; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0 16px; min-height: 56px; padding-top: 6px; padding-bottom: 6px; }
.logo { white-space: nowrap; flex-shrink: 0; font-family: var(--font-display); color: var(--text); font-weight: 800; letter-spacing: 0.06em; font-size: 0.95rem; }
.logo span { color: var(--accent); }
.logo:hover { text-decoration: none; }
.nav { display: flex; gap: 22px; white-space: nowrap; }
.nav a { color: var(--muted); font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.03em; }
.nav a:hover { color: var(--text); text-decoration: none; }

/* ---------- Hero ---------- */
/* 波形はページ全体の固定背景(assets/js/wave-bg.js)。前面のコンテンツは z-index で上に重ねる */
.bg-wave { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; pointer-events: none; }
main, .site-footer { position: relative; z-index: 1; }
.hero { display: flex; flex-direction: column; min-height: calc(100svh - 56px); padding: clamp(48px, 10vh, 104px) 0 48px; }
.hero-inner { display: flex; flex-direction: column; flex: 1; width: 100%; }
.eyebrow {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px;
  color: var(--text); font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; letter-spacing: 0.03em; margin-bottom: 22px;
}
.eyebrow span { color: var(--accent); font-weight: 700; font-size: 0.9rem; }
.hero h1 {
  font-size: clamp(2.3rem, 7.2vw, 5rem); line-height: 1.22; font-weight: 900; letter-spacing: 0.01em;
}
.hero h1:lang(en) { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.8rem, 9vw, 6.4rem); line-height: 1.02; letter-spacing: -0.01em; }
.lead { color: var(--body); margin-top: 24px; max-width: 28em; font-size: 1.05rem; line-height: 1.9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.92rem; padding: 11px 24px; border-radius: 999px;
  color: var(--bg); background: var(--accent); border: 1px solid var(--accent);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover { text-decoration: none; background: #f4dd8f; border-color: #f4dd8f; }
.btn-ghost { color: var(--text); background: transparent; border-color: var(--line); }
.btn-ghost:hover { background: transparent; color: var(--accent); border-color: var(--accent); }
.status { margin-top: auto; padding-top: 40px; color: var(--muted); font-size: 0.82rem; display: flex; align-items: center; gap: 10px; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(236, 208, 111, 0.15); flex-shrink: 0; margin-left: 4px; }

/* ---------- Sections ---------- */
.section {
  position: relative; overflow: clip;
  min-height: calc(100svh - 56px); display: flex; flex-direction: column; justify-content: center;
  padding: clamp(72px, 10vh, 112px) 0 clamp(48px, 8vh, 88px);
}
.section > .wrap { position: relative; z-index: 1; width: 100%; }
/* 各セクションの奥に浮かぶ巨大な輪郭文字(静止して置かれ、ページに入るときだけ現れる) */
.ghost {
  position: absolute; z-index: 0; top: clamp(8px, 4vh, 40px); right: -0.04em;
  font-family: var(--font-display); font-weight: 800; font-size: clamp(5.5rem, 20vw, 17rem); line-height: 0.85; letter-spacing: -0.02em;
  color: transparent; -webkit-text-stroke: 1px rgba(242, 240, 235, 0.09);
  white-space: nowrap; pointer-events: none; user-select: none;
}

/* ---------- セクション(枠・背景・影はなく、ひと続きのページとして流れる) ---------- */
.anchor { display: block; height: 0; }
.section-title {
  display: flex; align-items: baseline; gap: 14px;
  font-size: clamp(1.9rem, 4.6vw, 2.9rem); font-weight: 900; letter-spacing: 0.02em; line-height: 1.25; margin-bottom: clamp(32px, 5vw, 52px);
}
.section-title span { font-family: var(--font-display); font-size: 0.95rem; font-weight: 700; color: var(--accent); letter-spacing: 0.04em; }

.about { display: grid; gap: 48px; grid-template-columns: 1.35fr 1fr; align-items: start; }
.about-lead { font-size: 1.15rem; font-weight: 500; line-height: 1.9; }
.about-text p { color: var(--body); max-width: 34em; }
.about-text p + p { margin-top: 16px; }

.facts { border-top: 1px solid var(--line); }
.facts div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 0.78rem; letter-spacing: 0.06em; }
.facts dd { margin-top: 2px; font-size: 0.95rem; }
.tool-list { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 2px; }
.tool-list li { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; }

/* ---------- 経歴(About) ---------- */
.timeline { list-style: none; margin-top: 28px; padding-left: 0; }
.timeline li { position: relative; z-index: 1; display: grid; grid-template-columns: 6.6em 1fr; gap: 12px; padding: 7px 0 7px 22px; }
/* 点の中心(--dot)を縦線のまん中にそろえ、線は点から次の点までだけを結ぶ */
.timeline { --dot: calc(7px + 0.72em); }
.timeline li::before { content: ""; position: absolute; left: -3px; top: var(--dot); width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--accent); z-index: 1; }
.timeline li:not(:last-child)::after { content: ""; position: absolute; left: 0; width: 1px; top: var(--dot); bottom: calc(-1 * var(--dot)); background: var(--line); transform-origin: top; z-index: 0; }
.tl-year { font-family: var(--font-display); font-weight: 700; color: var(--accent); font-size: 0.9rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tl-text { color: var(--body); font-size: 0.92rem; }

/* ---------- Awards (About の中に小さく) ---------- */
.award-mini { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.award-mini .award { display: flex; flex-direction: column; gap: 1px; }
.award-mini .award-title { font-size: 0.8rem; font-weight: 500; line-height: 1.55; color: var(--text); }
.award-mini .award-detail { font-size: 0.74rem; color: var(--muted); line-height: 1.5; }
.ext-link { display: inline-flex; vertical-align: -1px; margin-left: 2px; padding: 2px 3px; color: var(--accent); border-radius: 4px; transition: background 0.2s, color 0.2s; }
.ext-link:hover, .ext-link:focus-visible { background: rgba(236, 208, 111, 0.16); }

/* ---------- Works ---------- */
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filter:empty { display: none; }
.chip {
  background: transparent; color: var(--muted); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 14px; font-size: 0.8rem; cursor: pointer; font-family: inherit;
}
.chip:hover { color: var(--text); border-color: var(--muted); }
.chip.is-active { color: var(--bg); background: var(--accent); border-color: var(--accent); }

.grid { display: grid; gap: clamp(36px, 5vw, 56px) 28px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

/* 作品は枠で囲まず、サムネイルと文字をそのまま並べる */
.card { position: relative; background: none; border: 0; border-radius: 0; }
.thumb-frame { position: relative; isolation: isolate; border-radius: 14px; overflow: hidden; background: #050505; }
.card:hover .title-btn, .card:focus-within .title-btn { color: var(--accent); }
.card-body { padding: 18px 2px 6px; }
.card-meta { display: flex; flex-wrap: wrap; gap: 0 12px; color: var(--muted); font-size: 0.76rem; letter-spacing: 0.02em; }
.card-meta .year { font-family: var(--font-display); font-weight: 700; color: var(--accent); }
.card-title { font-size: 1.1rem; margin-top: 4px; font-weight: 700; line-height: 1.5; }
.card-desc {
  color: var(--muted); font-size: 0.88rem; margin-top: 8px; line-height: 1.75;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* 先頭の作品は大きく見せる */
@media (min-width: 900px) {
  .grid:not(.is-archive) > .card:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1.55fr 1fr; gap: 0 clamp(28px, 4vw, 52px); align-items: center; }
  .grid:not(.is-archive) > .card:first-child .card-body { display: flex; flex-direction: column; justify-content: center; padding: 0; }
  .grid:not(.is-archive) > .card:first-child .thumb-frame { height: 100%; }
  .grid:not(.is-archive) > .card:first-child .card-title { font-size: 1.5rem; }
  .grid:not(.is-archive) > .card:first-child .card-desc { font-size: 0.95rem; -webkit-line-clamp: 4; }
  .grid:not(.is-archive) > .card:first-child .media { height: 100%; aspect-ratio: auto; min-height: 260px; }
}

.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin-top: 14px; }
.tags li { font-size: 0.72rem; color: var(--accent); border: 1px solid rgba(236, 208, 111, 0.32); border-radius: 999px; padding: 1px 10px; }

.media { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #050505; }
.media-video {
  position: relative; cursor: pointer; padding: 0; overflow: hidden;
  background-size: cover; background-position: center;
}
.media-video::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.3); transition: background 0.2s; }
.media-video:hover::after { background: rgba(0, 0, 0, 0.1); }
.media-image::after { background: rgba(0, 0, 0, 0.12); }

/* カード内のサムネイルはゆっくりズーム、再生ボタンは黄色く光る */
/* サムネイルはホバーでゆっくりズーム */
.media-thumb { transition: scale 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.card:hover .media-thumb, .card:focus-within .media-thumb { scale: 1.06; }
.card:hover .play, .card:focus-within .play { background: var(--accent); transform: scale(1.08); }
.card:hover .play::before, .card:focus-within .play::before { border-left-color: var(--bg); }

.play {
  position: absolute; z-index: 1; top: 50%; left: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px;
  border-radius: 50%; background: rgba(10, 10, 10, 0.8); border: 1px solid var(--accent);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.25s;
}
.play::before {
  content: ""; position: absolute; top: 50%; left: 50%; margin: -8px 0 0 -5px;
  border-style: solid; border-width: 8px 0 8px 14px; border-color: transparent transparent transparent var(--accent);
}
.media-empty { display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 0.85rem; letter-spacing: 0.1em; }

.empty { color: var(--muted); }

/* ---------- Card buttons ---------- */
.media-thumb { position: relative; overflow: hidden; cursor: pointer; padding: 0; font: inherit; }
.media-empty.media-thumb:hover { color: var(--text); }
.title-btn {
  background: none; border: 0; padding: 0; margin: 0;
  font: inherit; color: inherit; text-align: left; cursor: pointer;
}
.title-btn:hover { color: var(--accent); }
.more {
  display: inline-block; margin-top: 14px; background: none; border: 0; padding: 0;
  font: inherit; font-size: 0.82rem; color: var(--accent); cursor: pointer;
}
.more:hover { text-decoration: underline; text-underline-offset: 4px; }
.more { align-self: flex-start; text-align: left; }

/* ---------- Modal (作品の詳細ポップアップ) ---------- */
[hidden] { display: none !important; }
html.modal-open { overflow: hidden; }

.modal {
  width: min(960px, 94vw); max-width: none; max-height: 92vh;
  margin: auto; padding: 0; overflow: auto;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); color: var(--text);
}
.modal::backdrop { background: rgba(0, 0, 0, 0.88); }
.modal[open] { animation: modal-in 0.18s ease-out; }
@keyframes modal-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.modal-panel { position: relative; }
.modal-close {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(10, 10, 10, 0.85);
  color: var(--text); font-size: 1.3rem; line-height: 1; cursor: pointer;
}
.modal-close:hover { border-color: var(--accent); color: var(--accent); }

.modal-media { aspect-ratio: 16 / 9; background: #000; }
.modal-media.is-audio { aspect-ratio: auto; height: 166px; }
.modal-frame { display: block; width: 100%; height: 100%; border: 0; }
.modal-image { display: block; width: 100%; height: 100%; object-fit: cover; }

.modal-body { padding: 24px 28px 32px; }
.modal-panel.no-media .modal-body { padding-top: 56px; }
.modal-title { font-size: 1.5rem; line-height: 1.4; margin-top: 4px; font-weight: 700; }
.modal-text { color: var(--body); margin-top: 14px; line-height: 1.9; }

.modal-facts { margin-top: 22px; border-top: 1px solid var(--line); }
.modal-facts > div {
  display: grid; grid-template-columns: 8em 1fr; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.modal-facts dt { color: var(--muted); font-size: 0.8rem; letter-spacing: 0.06em; }
.modal-facts dd { font-size: 0.92rem; }
.modal-facts .tags { margin-top: 0; }
.modal-body > .tags { margin-top: 18px; }
.modal-links { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 16px; font-size: 0.9rem; }

@media (max-width: 720px) {
  .modal { width: 100vw; max-width: 100vw; max-height: 94vh; margin: auto 0 0; border-radius: 14px 14px 0 0; }
  .modal-body { padding: 18px 18px 26px; }
  .modal-aside { padding: 20px 18px 28px; }
  .modal-facts > div { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) { .modal[open] { animation: none; } }

/* ---------- Contact ---------- */
.contact-lead { color: var(--muted); }
.contact-mail { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.25rem, 4.6vw, 2.3rem); margin-top: 10px; word-break: break-all; line-height: 1.4; }
.contact-mail a { color: var(--text); background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 2px no-repeat; transition: background-size 0.25s, color 0.2s; }
.contact-mail a:hover { color: var(--accent); background-size: 100% 2px; text-decoration: none; }
.link-list { list-style: none; display: flex; flex-wrap: wrap; gap: 22px; margin-top: 24px; font-size: 0.92rem; }
.link-list:empty { display: none; }

.site-footer { background: var(--bg); border-top: 1px solid var(--line); padding: 28px 0 48px; color: var(--muted); font-size: 0.8rem; }

/* ---------- Responsive / a11y ---------- */
@media (max-width: 720px) {
  .wrap { padding: 0 18px; }
  .about { grid-template-columns: 1fr; gap: 32px; }
  .nav { gap: 14px; }
  .logo { font-size: 0.8rem; letter-spacing: 0.03em; }
  .nav a { font-size: 0.78rem; }
  .section { padding: 64px 0 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .media-video::after, .media-thumb, .play { transition: none; }
  .card:hover, .card:focus-within, .card:hover .media-thumb, .card:focus-within .media-thumb, .card:hover .play, .card:focus-within .play { transform: none; }
}

/* ---------- Language switch ---------- */
.nav a.lang-switch {
  color: var(--accent); border: 1px solid currentColor; border-radius: 999px;
  padding: 0 12px; line-height: 1.7;
}
.nav a.lang-switch:hover { color: var(--text); }

/* ---------- ページ送り(assets/js/pages.js) ---------- */
/* マウス・トラックパッド・キーボードでは、少しスクロールするだけで次(前)のページまで自動で滑って切り替わる(assets/js/pages.js)。
   画面より長いページ(作品)は、その中を自由にスクロールでき、端まで来ると次のページへ切り替わる。
   タッチ操作の端末(スマホ・タブレット)では吸着をやめて、指の動きどおりに普通にスクロールする
   (長いページで吸着すると、少しスワイプしても元の位置に引き戻されてしまうため) */

/* 右端のページ点(広い画面のみ) */
.pager { position: fixed; z-index: 9; right: 20px; top: 50%; transform: translateY(-50%); display: none; flex-direction: column; align-items: flex-end; gap: 16px; }
@media (min-width: 1100px) { .pager { display: flex; } }
.pager-dot {
  display: flex; align-items: center; gap: 10px; padding: 2px 0; cursor: pointer;
  background: none; border: 0; color: var(--muted); font: inherit;
}
.pager-label {
  font-family: var(--font-display); font-weight: 700; font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase;
  opacity: 0.55; transition: opacity 0.25s, color 0.25s;
}
.pager-dot::after {
  content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--muted);
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}
.pager-dot:hover .pager-label, .pager-dot.is-active .pager-label { opacity: 1; }
.pager-dot:hover::after { border-color: var(--accent); transform: scale(1.25); }
.pager-dot.is-active .pager-label { color: var(--accent); }
.pager-dot.is-active::after { background: var(--accent); border-color: var(--accent); transform: scale(1.25); }

/* 入場アニメーション: JSが動いたときだけ、ページに入るまで隠しておく。pg=浮かび上がる / pg-wipe=左から現れる */
.has-pages .pg { opacity: 0; transform: translateY(40px); }
.has-pages .in-view .pg {
  opacity: 1; transform: none;
  transition: opacity 0.45s ease, transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--i, 0) * 55ms + 30ms);
}
.has-pages .pg-wipe { clip-path: inset(-0.2em 100% -0.2em 0); }
.has-pages .in-view .pg-wipe {
  clip-path: inset(-0.2em -0.2em -0.2em 0);
  transition: clip-path 0.7s cubic-bezier(0.77, 0, 0.18, 1);
  transition-delay: calc(var(--i, 0) * 55ms + 30ms);
}

/* ページごとの見せ場 */
/* Hero: 見出しが左から一気に現れる(上の .pg-wipe) */
/* About: 経歴の縦線が上から伸びる */
.has-pages .timeline li:not(:last-child)::after { transform: scaleY(0); }
.has-pages .in-view .timeline li:not(:last-child)::after { transform: scaleY(1); transition: transform 0.45s cubic-bezier(0.77, 0, 0.18, 1); transition-delay: calc(var(--i, 0) * 70ms + 150ms); }
/* Awards: 各行の下を金色の線がさっと走る */
/* Works: サムネイルが下から上へ幕を開けるように現れる */
.has-pages .thumb-frame { clip-path: inset(100% 0 0 0 round 14px); }
.has-pages .in-view .thumb-frame {
  clip-path: inset(0 0 0 0 round 14px);
  transition: clip-path 0.75s cubic-bezier(0.77, 0, 0.18, 1);
  transition-delay: calc(var(--i, 0) * 80ms + 100ms);
}
/* 背景の巨大文字: 右からすっと入って、そのまま静止 */
.has-pages .ghost { opacity: 0; transform: translateX(10vw); }
.has-pages .in-view .ghost { opacity: 1; transform: none; transition: opacity 0.9s ease 0.05s, transform 1s cubic-bezier(0.16, 1, 0.3, 1) 0.05s; }

@media (prefers-reduced-motion: reduce) { html { scroll-snap-type: none; } }


/* ---------- 作品ショーケース(大きなサムネイルが順番に切り替わる) ---------- */
.showcase { --sc-w: min(100%, calc((100svh - 410px) * 16 / 9)); --sc-ms: 6000ms; display: block; }
.showcase-stage { margin-inline: auto; position: relative; isolation: isolate; width: max(var(--sc-w), min(100%, 360px)); aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #050505; }
.showcase .slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden; transform: scale(1.04);
  transition: opacity 0.7s ease, transform 1.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0.7s;
}
.showcase .slide.is-active { opacity: 1; visibility: visible; transform: none; z-index: 1; transition-delay: 0s; }
.showcase .slide .media { height: 100%; aspect-ratio: auto; }
.showcase .caption {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; pointer-events: none;
  padding: 56px clamp(18px, 3vw, 34px) clamp(18px, 2.6vw, 30px);
  background: linear-gradient(to top, rgba(5, 5, 5, 0.9), rgba(5, 5, 5, 0.6) 55%, transparent);
}
.showcase .caption .title-btn, .showcase .caption a { pointer-events: auto; }
.showcase .caption .card-title { font-size: clamp(1.2rem, 2.3vw, 1.75rem); }
.showcase .caption .card-desc { max-width: 44em; -webkit-line-clamp: 2; color: #c9c7c1; }
.showcase .caption > * { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.showcase .slide.is-active .caption > * { opacity: 1; transform: none; transition-delay: calc(0.25s + var(--k, 0) * 70ms); }
.showcase .caption > :nth-child(2) { --k: 1; }
.showcase .caption > :nth-child(3) { --k: 2; }
.showcase .slide .play { z-index: 1; }
.showcase .slide:hover .media-thumb { scale: 1.03; }
.showcase .slide:hover .play { background: var(--accent); transform: scale(1.08); }
.showcase .slide:hover .play::before { border-left-color: var(--bg); }

.sc-arrow {
  position: absolute; z-index: 3; top: 50%; width: 44px; height: 44px; margin-top: -22px; padding: 0 0 3px; border-radius: 50%;
  background: rgba(10, 10, 10, 0.62); border: 1px solid rgba(255, 255, 255, 0.2); color: var(--text);
  font-size: 1.5rem; line-height: 1; cursor: pointer; opacity: 0; transition: opacity 0.25s, background 0.2s, color 0.2s;
}
.sc-prev { left: 14px; }
.sc-next { right: 14px; }
.showcase-stage:hover .sc-arrow, .showcase-stage:focus-within .sc-arrow { opacity: 1; }
.sc-arrow:hover { background: var(--accent); color: var(--bg); }
@media (hover: none) { .sc-arrow { opacity: 0.85; } }

.showcase-nav { margin-inline: auto; display: flex; gap: 14px; width: max(var(--sc-w), min(100%, 560px)); margin-top: 26px; padding-top: 12px; }
.sc-tab { flex: 1 1 0; min-width: 0; padding: 0; background: none; border: 0; text-align: left; color: var(--muted); cursor: pointer; font: inherit; }
.sc-th {
  position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden;
  background: #050505 center / cover no-repeat; opacity: 0.5; outline: 1px solid transparent; outline-offset: 0;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s, outline-color 0.3s, box-shadow 0.5s;
}
.sc-th.is-empty { display: grid; place-items: center; color: var(--muted); font-size: 0.9rem; }
.sc-tab:hover .sc-th { opacity: 0.85; }
.sc-tab.is-active .sc-th { opacity: 1; transform: translateY(-12px); outline-color: var(--accent); box-shadow: 0 14px 26px rgba(0, 0, 0, 0.55); }
.sc-label { display: flex; gap: 8px; margin-top: 8px; font-size: 0.74rem; white-space: nowrap; transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.sc-tab.is-active .sc-label { transform: translateY(-4px); }
.sc-num { flex: none; font-family: var(--font-display); font-weight: 700; color: var(--accent); }
.sc-name { overflow: hidden; text-overflow: ellipsis; transition: color 0.2s; }
.sc-tab:hover .sc-name, .sc-tab.is-active .sc-name { color: var(--text); }
.sc-bar { position: absolute; left: 0; right: 0; bottom: 0; display: block; height: 3px; background: rgba(0, 0, 0, 0.45); }
.sc-bar i { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.sc-tab.is-active .sc-bar i { animation: sc-fill var(--sc-ms) linear forwards; }
.showcase.is-paused .sc-tab.is-active .sc-bar i { animation-play-state: paused; }
@keyframes sc-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (max-width: 640px) {
  .sc-name { display: none; }
  .showcase-nav { gap: 8px; }
  .sc-th { border-radius: 6px; }
  .showcase .caption { padding-top: 48px; }
  .showcase .caption .card-desc, .showcase .caption .card-meta { display: none; }
  .sc-arrow { width: 38px; height: 38px; margin-top: -19px; }
}
@media (prefers-reduced-motion: reduce) {
  .showcase .slide, .showcase .caption > * { transition: none; }
  .sc-tab.is-active .sc-bar i { animation: none; transform: scaleX(1); }
}


/* ---------- 「全作品を見る」リンク / 全作品ページ ---------- */
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: clamp(32px, 5vw, 52px); }
.section-head .section-title { margin-bottom: 0; }
.all-link { font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.04em; color: var(--muted); white-space: nowrap; transition: color 0.2s; }
.all-link:hover { color: var(--accent); text-decoration: none; }
.all-link span { display: inline-block; transition: transform 0.25s; }
.all-link:hover span { transform: translateX(4px); }
.archive { justify-content: flex-start; }
.back-link { display: inline-block; margin-bottom: 20px; font-size: 0.82rem; color: var(--muted); }
.back-link:hover { color: var(--accent); text-decoration: none; }

/* ノートPC(高さの低い画面)では、1ページに収まるよう余白を詰める */
@media (max-height: 940px) and (min-width: 900px) {
  .section { padding-top: 52px; padding-bottom: 34px; }
  .section-title, .section-head { margin-bottom: 22px; }
  .section-head .section-title { margin-bottom: 0; }
  .about { gap: 36px; }
  .facts div { padding: 9px 0; }
  .timeline { margin-top: 18px; }
  .timeline li { padding-top: 3px; padding-bottom: 3px; }
  .about-text p { line-height: 1.75; }
  .about-lead { margin-bottom: 10px; }
  .showcase-nav { margin-top: 20px; }
}


/* ---------- 受賞などの小さな印 ---------- */
.badge {
  display: inline-block; font-family: var(--font-display); font-weight: 700; font-size: 0.66rem; letter-spacing: 0.06em;
  line-height: 1; color: var(--bg); background: var(--accent); border-radius: 999px; padding: 4px 9px 3px;
}
.badge-on { position: absolute; z-index: 2; top: 10px; left: 10px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45); }
.card-meta .badge { align-self: center; }

/* ---------- 全作品ページ: サムネイル・タイトル・年だけの小さなカード ---------- */
.grid.is-archive { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 30px 22px; }
.mini { position: relative; }
.mini .thumb-frame { border-radius: 10px; }
.mini .play { width: 40px; height: 40px; margin: -20px 0 0 -20px; }
.mini .play::before { margin: -6px 0 0 -4px; border-width: 6px 0 6px 10px; }
.mini:hover .media-thumb, .mini:focus-within .media-thumb { scale: 1.06; }
.mini:hover .play, .mini:focus-within .play { background: var(--accent); transform: scale(1.08); }
.mini:hover .play::before, .mini:focus-within .play::before { border-left-color: var(--bg); }
.mini-body { padding: 12px 2px 0; }
.mini-title { font-size: 0.98rem; font-weight: 700; line-height: 1.45; }
.mini:hover .title-btn, .mini:focus-within .title-btn { color: var(--accent); }
.mini-meta { margin-top: 2px; font-family: var(--font-display); font-weight: 700; font-size: 0.74rem; color: var(--accent); }
.media-empty.media-thumb { font-size: 0.78rem; }
@media (max-width: 640px) {
  .grid.is-archive { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
  .mini-title { font-size: 0.88rem; }
}


/* ---------- 小さなアイコン ---------- */
.ic { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 1.05em; height: 1.05em; color: var(--accent); vertical-align: -0.14em; }
.ic svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ic img { width: 100%; height: 100%; object-fit: contain; border-radius: 3px; }
.facts dt .ic { font-size: 0.95rem; }
.tool-list .ic { font-size: 0.98rem; }
.award-mini .award-title .ic { margin-right: 7px; font-size: 0.95em; }


/* ---------- 詳細ポップアップの「制作メモ」 ---------- */
.modal-aside { padding: 22px 28px 30px; border-top: 1px solid var(--line); }
.modal-aside[hidden] { display: none; }
@media (max-width: 720px) { .modal-aside { padding: 20px 18px 28px; } }
/* PC: 左に映像と情報、右に制作メモ。それぞれ別々にスクロールできる */
@media (min-width: 900px) {
  .modal:has(.has-notes) { width: min(1240px, 96vw); height: min(86vh, 760px); overflow: hidden; }
  .modal-panel.has-notes { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr); height: 100%; }
  .modal-panel.has-notes .modal-main { overflow-y: auto; min-height: 0; }
  .modal-panel.has-notes .modal-aside { overflow-y: auto; min-height: 0; border-top: 0; border-left: 1px solid var(--line); padding: 56px 28px 30px; background: rgba(255, 255, 255, 0.02); }
}
.modal-notes-title { font-family: var(--font-display); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.note + .note { margin-top: 20px; }
.note-text + .note-text { margin-top: 8px; }
.note-heading { font-size: 0.95rem; font-weight: 700; line-height: 1.5; }
.note-text { margin-top: 6px; color: var(--body); font-size: 0.92rem; line-height: 1.85; }
.note-figure { margin: 12px 0 0; }
.note-figure img { display: block; width: 100%; height: auto; border-radius: 10px; background: #050505; }
.note-figure figcaption { margin-top: 6px; color: var(--muted); font-size: 0.76rem; }
.note-placeholder { display: grid; place-items: center; aspect-ratio: 16 / 9; border: 1px dashed rgba(236, 208, 111, 0.4); border-radius: 10px; color: var(--muted); font-size: 0.8rem; text-align: center; padding: 12px; }
