/* =====================================================================
   コマドリ倶楽部 / KOMADORI CLUB — v2
   ・サイズは画面幅で連続的に変えず、3 段階（スマホ / タブレット / PC）で固定
   ・デザインの別案は <html data-*> で切り替え（alt.js のパネル）
   ===================================================================== */

:root {
  /* 色（AI 実測） */
  --bg: #e8e8da;
  --band: #f2f2eb;
  --ink: #2d2d2d;
  --ink-sub: #6b6b63;
  --line: rgba(45, 45, 45, .16);
  --ph: #c4c4c4;
  --chip: #eadebb;
  --white: #fff;
  --c1: #59698d; --c2: #b04d62; --c3: #a2bdf4; --c4: #efc360; --c5: #dd775e; --c6: #5b9599;

  /* ---- スマホ（〜767px） ---- */
  --fs-xs: 11px; --fs-sm: 13px; --fs-base: 15px; --fs-md: 16px;
  --fs-lg: 20px; --fs-xl: 24px; --fs-2xl: 30px; --fs-3xl: 30px;
  --gutter: 20px;
  --max: 1440px;
  --logo-w: 56px;              /* ヘッダーの S ロゴ */
  --header-h: 60px;
  --hero-logo: 360px;          /* Home 最上部の大ロゴ（スマホは画面幅まで） */
  --footer-logo: 168px;
  --tile: 42px;                /* タイル案の 1 マス */
  --sp-xs: 8px; --sp-sm: 16px; --sp-md: 24px; --sp-lg: 40px; --sp-xl: 64px;

  --ease: cubic-bezier(.3, .7, .3, 1);
  --overlay: 0;                /* 透過ヘッダーのときだけ 1 */
}
@media (min-width: 768px) {
  :root {
    --fs-xs: 12px; --fs-sm: 13px; --fs-base: 16px; --fs-md: 17px;
    --fs-lg: 22px; --fs-xl: 28px; --fs-2xl: 38px; --fs-3xl: 52px;
    --gutter: 40px;
    --logo-w: 64px; --header-h: 72px;
    --hero-logo: 400px; --footer-logo: 208px; --tile: 80px;
    --sp-xs: 10px; --sp-sm: 20px; --sp-md: 32px; --sp-lg: 56px; --sp-xl: 96px;
  }
}
@media (min-width: 1200px) {
  :root {
    --fs-xs: 12px; --fs-sm: 14px; --fs-base: 16px; --fs-md: 18px;
    --fs-lg: 24px; --fs-xl: 32px; --fs-2xl: 46px; --fs-3xl: 64px;
    --gutter: 64px;
    --logo-w: 72px; --header-h: 84px;
    --hero-logo: 520px; --footer-logo: 240px; --tile: 104px;
    --sp-xs: 12px; --sp-sm: 24px; --sp-md: 40px; --sp-lg: 72px; --sp-xl: 128px;
  }
}

/* ---------------------------------------------------------------------
   文字組みの案（data-type）
   --------------------------------------------------------------------- */
:root, [data-type="now"] {
  --font-ui: "Segoe UI", "Source Sans 3", "Noto Sans JP", system-ui, sans-serif;
  --font-ja: "Noto Sans JP", "Segoe UI", sans-serif;
  --font-meta: var(--font-ui);
  --font-statement: "M PLUS Rounded 1c", "Noto Sans JP", sans-serif;
  --w-statement: 300; --w-title: 400; --w-head: 600; --w-name: 300; --w-strong: 600;
  --ls-head: .005em; --ls-ja: .02em; --lh-ja: 2;
  --meta-case: none; --meta-ls: .03em; --meta-size: var(--fs-sm);
}
[data-type="geo"] {          /* ロゴ（幾何学的な字形）に寄せる */
  --font-ui: "Jost", "Zen Kaku Gothic New", sans-serif;
  --font-ja: "Zen Kaku Gothic New", "Jost", sans-serif;
  --font-meta: "Jost", sans-serif;
  --font-statement: "Zen Kaku Gothic New", "Jost", sans-serif;
  --w-statement: 500; --w-title: 500; --w-head: 500; --w-name: 400; --w-strong: 600;
  --ls-head: .01em; --ls-ja: .05em; --lh-ja: 1.95;
  --meta-case: uppercase; --meta-ls: .14em; --meta-size: 11px;
}
[data-type="grot"] {         /* グロテスク＋等幅（クレジット表記の気配） */
  --font-ui: "Schibsted Grotesk", "Noto Sans JP", sans-serif;
  --font-ja: "Noto Sans JP", sans-serif;
  --font-meta: "DM Mono", "Noto Sans JP", monospace;
  --font-statement: "Schibsted Grotesk", "Noto Sans JP", sans-serif;
  --w-statement: 500; --w-title: 500; --w-head: 600; --w-name: 500; --w-strong: 600;
  --ls-head: -.015em; --ls-ja: .02em; --lh-ja: 1.95;
  --meta-case: uppercase; --meta-ls: .02em; --meta-size: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-ui); font-size: var(--fs-base); line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
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; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

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

/* 和文の組み：句読点の詰め・文節で改行・行末のそろえ */
.prose { max-width: 34em; text-wrap: pretty; }
.prose[lang="ja"] { font-family: var(--font-ja); font-size: calc(var(--fs-base) - 1px); line-height: var(--lh-ja); letter-spacing: var(--ls-ja); line-break: strict; word-break: auto-phrase; }
.prose[lang="en"] { line-height: 1.7; }
.prose p + p { margin-top: 1.3em; }
.jp-head, [lang="ja"] .section-title, .project-title, .work-title, .page-title { font-feature-settings: "palt"; text-wrap: balance; }

.meta { font-family: var(--font-meta); font-size: var(--meta-size); text-transform: var(--meta-case); letter-spacing: var(--meta-ls); color: var(--ink-sub); }

/* ---------------------------------------------------------------------
   ヘッダー：帯あり・追従（data-header）
   --------------------------------------------------------------------- */
:root, [data-header="base"] { --header-bg: var(--bg); --header-ink: var(--ink); --header-line: var(--line); }
[data-header="white"] { --header-bg: #fff; --header-ink: var(--ink); --header-line: transparent; }
[data-header="black"] { --header-bg: #1f1f1d; --header-ink: #e8e8da; --header-line: transparent; }
[data-header="clear"] { --header-bg: transparent; --header-ink: var(--ink); --header-line: transparent; --overlay: 1; }

.page { position: relative; }
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: var(--header-bg); color: var(--header-ink);
  box-shadow: inset 0 -1px 0 var(--header-line);
}
[data-header="clear"] .site-header { margin-bottom: calc(var(--header-h) * -1); pointer-events: none; }
[data-header="clear"] .header-inner > * { pointer-events: auto; }
.header-inner { height: 100%; display: flex; align-items: center; gap: var(--sp-sm); }
.header-logo { display: block; width: var(--logo-w); flex: none; margin-right: auto; transition: opacity .3s ease, transform .3s var(--ease); }
.header-logo img { width: 100%; }
.is-home .header-logo { opacity: 0; transform: translateY(-4px); pointer-events: none; }
.is-home.is-past-hero .header-logo { opacity: 1; transform: none; pointer-events: auto; }

.global-nav { display: flex; gap: 32px; }
.global-nav a {
  font-size: var(--fs-md); text-decoration: none; letter-spacing: .01em;
  padding-block: 4px; border-bottom: 1.5px solid transparent; transition: border-color .2s ease;
}
.global-nav a:hover { border-bottom-color: currentColor; }
.global-nav a[aria-current="page"] { font-weight: var(--w-strong); border-bottom-color: currentColor; }
.lang-switch {
  display: inline-flex; align-items: center; gap: 6px; margin-left: 8px;
  background: var(--white); color: var(--ink); padding: 6px 12px 6px 10px; border-radius: 2px;
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .06em; text-decoration: none;
}
.lang-switch svg { width: 14px; height: 14px; fill: currentColor; }
.lang-switch:hover { background: var(--ink); color: var(--bg); }
[data-header="white"] .lang-switch { background: var(--bg); }
[data-header="black"] .lang-switch { background: transparent; color: var(--header-ink); box-shadow: inset 0 0 0 1px rgba(232, 232, 218, .5); }
.menu-toggle { display: none; }

@media (max-width: 767px) {
  .menu-toggle { display: grid; place-items: center; width: 40px; height: 40px; border: 0; background: transparent; color: var(--header-ink); cursor: pointer; }
  .menu-toggle svg { width: 26px; height: 26px; fill: currentColor; }
  .lang-switch { margin-left: 0; }
  .header-inner { gap: 8px; }
  .global-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px 0 16px;
    background: var(--header-bg); color: var(--header-ink); box-shadow: 0 12px 20px rgba(0, 0, 0, .08);
    opacity: 0; transform: translateY(-6px); visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility 0s .2s;
  }
  [data-header="clear"] .global-nav { background: var(--bg); color: var(--ink); }
  .global-nav a { padding: 12px var(--gutter); border: 0; font-size: 20px; }
  .is-menu-open .global-nav { opacity: 1; transform: none; visibility: visible; transition: opacity .2s ease, transform .2s ease; }
}

/* ---------------------------------------------------------------------
   共通
   --------------------------------------------------------------------- */
main { display: block; padding-bottom: calc(var(--header-h) * var(--overlay)); }
.page-top { padding-top: calc(var(--header-h) * var(--overlay) + var(--sp-lg)); }

.section-title { font-size: var(--fs-xl); font-weight: var(--w-head); line-height: 1.2; letter-spacing: var(--ls-head); }
.label { font-family: var(--font-meta); font-size: var(--meta-size); font-weight: 400; color: var(--ink-sub); letter-spacing: var(--meta-ls); text-transform: var(--meta-case); margin-bottom: .8em; }
.label--caps { text-transform: uppercase; letter-spacing: max(var(--meta-ls), .08em); }

.text-link { display: inline-block; font-size: var(--fs-sm); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.text-link:hover { text-decoration-thickness: 2px; }
.more-link { display: inline-flex; align-items: center; gap: .5em; font-size: var(--fs-sm); font-weight: var(--w-strong); text-decoration: none; white-space: nowrap; }
.more-link svg { width: 1.1em; height: 1.1em; fill: currentColor; transform: scaleX(-1); transition: transform .25s var(--ease); }
.more-link:hover svg { transform: scaleX(-1) translateX(-4px); }

.back-link { display: inline-flex; align-items: center; gap: .45em; font-size: var(--fs-md); font-weight: var(--w-strong); text-decoration: none; padding: 4px 0; margin-bottom: var(--sp-md); }
.back-link svg { width: 1.1em; height: 1.1em; fill: currentColor; transition: transform .25s var(--ease); }
.back-link:hover svg { transform: translateX(-4px); }

.ph { display: grid; place-items: center; width: 100%; height: 100%; background: var(--ph); color: var(--bg); font-size: var(--fs-md); letter-spacing: .04em; }
.media { position: relative; display: block; overflow: hidden; background: var(--ph); text-decoration: none; }
.media > img { width: 100%; height: 100%; object-fit: cover; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-sm); margin-bottom: var(--sp-md); }
.count { font-family: var(--font-meta); font-size: var(--meta-size); color: var(--ink-sub); letter-spacing: var(--meta-ls); margin-left: .6em; font-weight: 400; }

/* ---------------------------------------------------------------------
   写真ボタンのホバー（6 色ランダム）
   data-hovertext: base = 常にベース色の文字 / auto = 明るい 2 色のときは墨色
   data-hovermotion: fade = フェード / koma = 3 コマで切り替わる
   --------------------------------------------------------------------- */
.hover-card__overlay {
  position: absolute; inset: 0; z-index: 2;
  display: grid; place-content: center; gap: .3em; text-align: center; padding: 1em;
  background: var(--hover-color, var(--c1)); color: var(--bg);
  opacity: 0; transition: opacity .45s ease;
}
[data-hovertext="auto"] .hover-card__overlay { color: var(--hover-ink, var(--bg)); }
[data-hovermotion="koma"] .hover-card__overlay { transition: opacity .3s steps(3, end); }
[data-hover]:hover .hover-card__overlay, [data-hover]:focus-visible .hover-card__overlay { opacity: 1; }
.hover-card__title { font-size: var(--fs-lg); font-weight: var(--w-title); line-height: 1.25; font-feature-settings: "palt"; }
.hover-card__sub { font-family: var(--font-meta); font-size: var(--fs-xs); letter-spacing: var(--meta-ls); text-transform: var(--meta-case); opacity: .9; }
@media (hover: none) { .hover-card__overlay { display: none; } }

/* ---------------------------------------------------------------------
   HOME：ヒーロー（data-home）
   --------------------------------------------------------------------- */
.home-hero { padding-top: calc(var(--header-h) * var(--overlay) + var(--sp-sm)); }
.hero-logo { width: var(--hero-logo); }
.hero-logo img { width: 100%; }
.tagline { font-family: "M PLUS Rounded 1c", var(--font-ui); font-weight: 800; letter-spacing: .01em; line-height: 1.2; white-space: nowrap; }
.home-hero .tagline { font-size: calc(var(--hero-logo) * .06); margin-top: .45em; }

/* ロゴ＋ステートメント */
.home-hero--statement .wrap { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--sp-xl); align-items: end; }
.home-hero--statement .hero-logo { width: calc(var(--hero-logo) * .8); }
.home-hero--statement .tagline { font-size: calc(var(--hero-logo) * .048); }
.statement { font-family: var(--font-statement); font-weight: var(--w-statement); font-size: var(--fs-2xl); line-height: 1.45; letter-spacing: .03em; font-feature-settings: "palt"; text-wrap: balance; padding-bottom: .2em; }
.stats { display: flex; gap: var(--sp-md); margin-top: var(--sp-md); font-family: var(--font-meta); font-size: var(--meta-size); letter-spacing: var(--meta-ls); text-transform: var(--meta-case); color: var(--ink-sub); }
.stats b { display: block; font-family: var(--font-ui); font-size: var(--fs-xl); font-weight: var(--w-head); color: var(--ink); letter-spacing: 0; text-transform: none; line-height: 1.1; }
@media (max-width: 767px) {
  .home-hero--statement .wrap { grid-template-columns: 1fr; row-gap: var(--sp-md); }
  .home-hero--statement .hero-logo { width: var(--hero-logo); }
  .home-hero--statement .tagline { font-size: calc(var(--hero-logo) * .06); }
}

/* タイル：ロゴのマス目（タイル：間隔 = 8：1）をそのまま画面いっぱいに広げる */
.home-hero--tiles .tiles {
  --g: calc(var(--tile) / 8);
  display: grid; grid-template-columns: repeat(var(--cols, 7), var(--tile)); grid-auto-rows: var(--tile);
  gap: var(--g); width: max-content;
}
.tile { position: relative; display: block; overflow: hidden; text-decoration: none; }
.tile--logo-en { grid-column: 1 / span 4; grid-row: 1 / span 3; }
.tile--logo-jp { grid-column: 1 / span 7; grid-row: 4; }
.tile--logo-en img, .tile--logo-jp img { width: 100%; height: 100%; }
.tile--img img { width: 100%; height: 100%; object-fit: cover; }
.tile--color { background: var(--tile-color); }
.tile--stat { background: var(--white); display: grid; align-content: space-between; padding: calc(var(--tile) * .1); }
.tile--stat b { font-family: var(--font-ui); font-size: calc(var(--tile) * .36); font-weight: var(--w-head); line-height: 1; }
.tile--stat span { font-family: var(--font-meta); font-size: max(10px, calc(var(--tile) * .11)); letter-spacing: var(--meta-ls); text-transform: var(--meta-case); color: var(--ink-sub); line-height: 1.2; }
.tile .hover-card__title { font-size: max(11px, calc(var(--tile) * .12)); }
.home-hero--tiles .tagline { font-size: calc(var(--tile) * .3); margin-top: calc(var(--tile) / 4); }
.tile--swap img { animation: none; }

/* ---------------------------------------------------------------------
   ループボックス（120px 角・45px/s・上段→右 / 下段←左）
   --------------------------------------------------------------------- */
.loop { margin-top: var(--sp-lg); display: grid; gap: 16px; overflow: hidden; }
.loop-row { overflow: hidden; }
.loop-track { display: flex; gap: 16px; width: max-content; will-change: transform; }
.loop-row[data-dir="left"] .loop-track { animation: loop-left var(--dur, 60s) linear infinite; }
.loop-row[data-dir="right"] .loop-track { animation: loop-right var(--dur, 60s) linear infinite; }
.loop-row:hover .loop-track { animation-play-state: paused; }
@keyframes loop-left { from { transform: translateX(0); } to { transform: translateX(calc(var(--set-w) * -1)); } }
@keyframes loop-right { from { transform: translateX(calc(var(--set-w) * -1)); } to { transform: translateX(0); } }
.loop-item { position: relative; display: block; width: 120px; height: 120px; flex: none; }
.loop-item .hover-card__title { font-size: 12px; line-height: 1.4; }
@media (prefers-reduced-motion: reduce) { .loop-row { overflow-x: auto; } .loop-track { animation: none !important; } }

/* ---------------------------------------------------------------------
   HOME：イントロ / Projects / Artists
   --------------------------------------------------------------------- */
.home-section { margin-top: var(--sp-xl); }
.home-intro .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); column-gap: var(--sp-lg); }
.home-intro .lead { font-family: var(--font-statement); font-weight: var(--w-statement); font-size: var(--fs-xl); line-height: 1.5; letter-spacing: .03em; font-feature-settings: "palt"; text-wrap: balance; }
.home-intro .lead + .prose { margin-top: var(--sp-sm); }
.home-intro .more-link { margin-top: var(--sp-md); }
@media (max-width: 767px) { .home-intro .wrap { grid-template-columns: 1fr; row-gap: var(--sp-xs); } }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-md); }
.p-card { display: block; text-decoration: none; }
.p-card .media { aspect-ratio: 2.414 / 1; }
.p-card__title { display: block; font-size: var(--fs-lg); font-weight: var(--w-title); line-height: 1.3; margin-top: .7em; font-feature-settings: "palt"; }
.p-card .meta { display: block; margin-top: .3em; }
@media (max-width: 767px) { .card-grid { grid-template-columns: 1fr; } }

.face-grid { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 12px; }
.face-grid .media { aspect-ratio: 1 / 1; }
.face-grid .hover-card__title { font-size: var(--fs-sm); }
.face-grid .ph { font-size: 10px; }
@media (max-width: 1199px) { .face-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 767px) { .face-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; } }

/* ---------------------------------------------------------------------
   Projects 一覧（data-projects）
   --------------------------------------------------------------------- */
.page-head { margin-bottom: var(--sp-lg); }

/* rows：交互の帯（現行） */
.project-row { padding-block: var(--sp-lg); }
.project-row:nth-of-type(odd) { background: var(--band); }
.project-row .wrap { display: grid; align-items: center; grid-template-columns: minmax(0, 34fr) minmax(0, 56fr); column-gap: var(--sp-lg); }
.project-row.is-flip .wrap { grid-template-columns: minmax(0, 56fr) minmax(0, 34fr); }
.project-row.is-flip .project-media { order: -1; }
.project-title { font-size: var(--fs-xl); font-weight: var(--w-title); line-height: 1.25; letter-spacing: var(--ls-head); margin-bottom: .7em; }
.project-title a { text-decoration: none; }
.project-desc { margin-bottom: 1.6em; }
.project-text .text-link { display: table; margin-left: auto; }
.project-media { display: block; aspect-ratio: 2.414 / 1; }
.project-media .hover-card__title { font-size: var(--fs-xl); }
@media (max-width: 767px) {
  .project-row .wrap, .project-row.is-flip .wrap { grid-template-columns: 1fr; row-gap: var(--sp-sm); }
  .project-row .project-media, .project-row.is-flip .project-media { order: -1; }
}

/* index：文字の一覧＋カーソルに画像が付いてくる */
.index-list { border-top: 1px solid var(--ink); }
.index-row {
  display: grid; align-items: baseline; text-decoration: none;
  grid-template-columns: 5em minmax(0, 1fr) 9em 5em 1.5em; column-gap: var(--sp-sm);
  padding-block: var(--sp-sm); border-bottom: 1px solid var(--line);
  transition: background .25s ease, padding .25s var(--ease);
}
.index-row__title { font-size: var(--fs-2xl); font-weight: var(--w-title); line-height: 1.15; letter-spacing: var(--ls-head); font-feature-settings: "palt"; }
.index-row .meta { white-space: nowrap; }
.index-row__arrow svg { width: 1.2em; height: 1.2em; fill: currentColor; transform: scaleX(-1); opacity: 0; transition: opacity .2s ease, transform .25s var(--ease); }
.index-row:hover { padding-left: 12px; }
.index-row:hover .index-row__arrow svg { opacity: 1; transform: scaleX(-1) translateX(-4px); }
.index-row__thumb { display: none; }
@media (max-width: 767px) {
  .index-row { grid-template-columns: 1fr; row-gap: 4px; }
  .index-row__title { font-size: var(--fs-xl); }
  .index-row__arrow { display: none; }
  .index-row__thumb { display: block; aspect-ratio: 2.414 / 1; margin-bottom: 8px; }
}
@media (hover: none) { .index-row__thumb { display: block; aspect-ratio: 2.414 / 1; margin-bottom: 8px; } .index-row { grid-template-columns: 1fr; } .index-row__arrow { display: none; } }

.peek { position: fixed; left: 0; top: 0; z-index: 60; width: 320px; pointer-events: none; opacity: 0; transition: opacity .2s ease; background: var(--hover-color, var(--c1)); }
.peek.is-on { opacity: 1; }
.peek img { width: 100%; height: 100%; object-fit: cover; }
.peek[data-shape="wide"] { aspect-ratio: 2.414 / 1; width: 380px; }
.peek[data-shape="square"] { aspect-ratio: 1 / 1; width: 240px; }
@media (hover: none), (max-width: 767px) { .peek { display: none; } }

/* cards：2 列の大判 */
.projects-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--sp-md); row-gap: var(--sp-lg); }
.projects-cards .p-card__title { font-size: var(--fs-xl); }
.projects-cards .prose { margin-top: .8em; }
@media (max-width: 767px) { .projects-cards { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------
   Artists 一覧（data-artists）
   --------------------------------------------------------------------- */
.artist-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--sp-xl); row-gap: var(--sp-lg); }
.artist-card { display: block; text-decoration: none; }
.artist-card .media { aspect-ratio: 1 / 1; }
.artist-card__name { display: block; margin-top: .8em; font-size: var(--fs-sm); }
.artist-card__ja { display: block; font-family: var(--font-ja); font-size: var(--fs-xs); color: var(--ink-sub); margin-top: .1em; }
.artist-card__roles { display: block; margin-top: .45em; line-height: 1.5; }
.artist-card .hover-card__title { font-size: var(--fs-lg); }
.artist-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--sp-md); row-gap: var(--sp-lg); }
.artist-grid--4 .artist-card__name { font-size: var(--fs-md); font-weight: var(--w-strong); }
@media (max-width: 1199px) { .artist-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) { .artist-grid, .artist-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; row-gap: 32px; } }

.name-index { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--sp-lg); border-top: 1px solid var(--ink); }
.name-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; column-gap: var(--sp-sm); padding-block: var(--sp-sm); border-bottom: 1px solid var(--line); text-decoration: none; transition: padding .25s var(--ease); }
.name-row__name { font-size: var(--fs-xl); font-weight: var(--w-name); line-height: 1.2; letter-spacing: var(--ls-head); }
.name-row__ja { font-family: var(--font-ja); font-size: var(--fs-sm); color: var(--ink-sub); margin-left: .6em; letter-spacing: .08em; }
.name-row .meta { display: block; grid-column: 1 / -1; margin-top: .3em; }
.name-row__no { font-family: var(--font-meta); font-size: var(--meta-size); color: var(--ink-sub); }
.name-row:hover { padding-left: 12px; }
.name-row__thumb { display: none; }
@media (max-width: 767px) { .name-index { grid-template-columns: 1fr; } }
@media (hover: none), (max-width: 767px) {
  .name-row { grid-template-columns: 64px minmax(0, 1fr); }
  .name-row__thumb { display: block; width: 64px; aspect-ratio: 1; grid-row: 1 / span 2; }
  .name-row__no { display: none; }
  .name-row .meta { grid-column: 2; }
}

/* ---------------------------------------------------------------------
   Artist 詳細
   --------------------------------------------------------------------- */
.artist-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--sp-lg); align-items: center; }
.artist-name-ja { font-family: var(--font-ja); font-size: var(--fs-lg); font-weight: 300; letter-spacing: .12em; line-height: 1.4; }
.artist-name-en { font-size: var(--fs-2xl); font-weight: var(--w-name); line-height: 1.15; letter-spacing: var(--ls-head); }
.role-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--sp-sm); }
.role-chips li { background: var(--chip); font-size: var(--fs-xs); line-height: 1.2; padding: 7px 14px; border-radius: 2px; }
.artist-photo { aspect-ratio: 1 / 1; width: min(100%, 440px); justify-self: start; }
.artist-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--sp-lg); margin-top: var(--sp-xl); }
.contact-block + .contact-block { margin-top: var(--sp-md); }
.mail-link { font-size: var(--fs-md); font-weight: var(--w-strong); text-decoration: underline; text-underline-offset: 4px; word-break: break-all; }
.btn-link { display: inline-block; font-size: var(--fs-sm); font-weight: var(--w-strong); text-decoration: none; border: 1.5px solid var(--ink); padding: 6px 16px; border-radius: 2px; transition: background .2s ease, color .2s ease; }
.btn-link:hover { background: var(--ink); color: var(--bg); }
.sns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 16px; }
.sns a { display: grid; place-items: center; width: 28px; height: 28px; transition: transform .2s var(--ease), opacity .2s ease; }
.sns a:hover { transform: translateY(-2px); opacity: .6; }
.sns svg { width: 22px; height: 22px; fill: currentColor; }
@media (max-width: 767px) {
  .artist-head, .artist-body { grid-template-columns: 1fr; row-gap: 28px; }
  .artist-head .artist-photo { order: -1; width: 100%; }
}

/* ---------------------------------------------------------------------
   Works（大／小アイコン）。小アイコンの比率は data-thumb
   --------------------------------------------------------------------- */
:root, [data-thumb="3x4"] { --thumb-ratio: 3 / 4; }
[data-thumb="4x5"] { --thumb-ratio: 4 / 5; }
[data-thumb="1x1"] { --thumb-ratio: 1 / 1; }
[data-thumb="16x9"] { --thumb-ratio: 16 / 9; }

.works { margin-top: var(--sp-xl); }
.works-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: var(--sp-md); }
.view-toggle { display: flex; gap: 6px; }
.view-toggle button { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 0; background: transparent; color: #9a9a90; cursor: pointer; transition: color .2s ease, background .2s ease; }
.view-toggle button:hover { color: var(--ink); }
.view-toggle button[aria-pressed="true"] { color: var(--ink); background: var(--white); }
.view-toggle svg { width: 20px; height: 20px; fill: currentColor; }

.work-card { display: block; text-decoration: none; }
.work-card .media { transition: box-shadow .35s var(--ease); }
[data-hovermotion="koma"] .work-card .media { transition: box-shadow .3s steps(3, end); }
.work-card:hover .media, .work-card:focus-visible .media { box-shadow: 10px 10px 0 0 var(--hover-color, var(--c5)); }
.work-card__title { display: block; font-size: var(--fs-sm); line-height: 1.5; font-feature-settings: "palt"; }
.work-card__artist { display: block; margin-top: .2em; }
.work-card__meta { display: none; }

.works-list.is-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--sp-md); row-gap: var(--sp-lg); }
.works-list.is-grid .media { aspect-ratio: var(--thumb-ratio); }
.works-list.is-grid .work-card__body { display: block; margin-top: .8em; }
@media (max-width: 767px) { .works-list.is-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; } }

.works-list.is-list { display: grid; row-gap: var(--sp-lg); }
.works-list.is-list .work-card { display: grid; grid-template-columns: minmax(0, 56fr) minmax(0, 44fr); column-gap: var(--sp-md); align-items: end; }
.works-list.is-list .media { aspect-ratio: 16 / 9; }
.works-list.is-list .work-card__title { font-size: var(--fs-lg); font-weight: var(--w-strong); margin-bottom: .6em; }
.works-list.is-list .work-card__artist { display: none; }
.works-list.is-list .work-card__meta { display: grid; grid-template-columns: auto 1fr; column-gap: 1.2em; row-gap: .2em; font-size: var(--fs-base); }
.works-list.is-list .work-card__meta dt { font-family: var(--font-meta); font-size: var(--meta-size); letter-spacing: var(--meta-ls); text-transform: var(--meta-case); color: var(--ink-sub); align-self: center; }
@media (max-width: 767px) { .works-list.is-list .work-card { grid-template-columns: 1fr; row-gap: 16px; } }

/* ---------------------------------------------------------------------
   Project 詳細 / Work 詳細
   --------------------------------------------------------------------- */
.project-head { display: grid; grid-template-columns: minmax(0, 34fr) minmax(0, 56fr); column-gap: var(--sp-lg); align-items: start; }
.page-title { font-size: var(--fs-2xl); font-weight: var(--w-title); line-height: 1.15; letter-spacing: var(--ls-head); }
.meta-list { display: grid; grid-template-columns: auto 1fr; column-gap: 1.2em; row-gap: .25em; margin-top: 1.2em; font-size: var(--fs-sm); }
.meta-list dt { font-family: var(--font-meta); font-size: var(--meta-size); letter-spacing: var(--meta-ls); text-transform: var(--meta-case); color: var(--ink-sub); align-self: center; }
.project-visual { margin-top: var(--sp-lg); aspect-ratio: 2.414 / 1; }
.project-artists { margin-top: var(--sp-xl); }
.name-chips { display: flex; flex-wrap: wrap; gap: 10px 12px; }
.name-chips a { font-size: var(--fs-sm); text-decoration: none; background: var(--white); padding: 7px 14px; border-radius: 2px; transition: background .2s ease, color .2s ease; }
.name-chips a:hover { background: var(--hover-color, var(--c1)); color: var(--bg); }
@media (max-width: 767px) { .project-head { grid-template-columns: 1fr; row-gap: 20px; } }

.work-title { font-size: var(--fs-2xl); font-weight: var(--w-title); line-height: 1.2; letter-spacing: var(--ls-head); }
.work-title-sub { font-size: var(--fs-md); color: var(--ink-sub); margin-top: .3em; }
.work-by { margin-top: 1em; font-size: var(--fs-md); }
.work-by a { font-weight: var(--w-strong); text-underline-offset: 3px; }
.video { margin-top: var(--sp-md); aspect-ratio: 16 / 9; position: relative; }
.video .ph::after { content: ""; width: 0; height: 0; border-style: solid; border-width: 36px 0 36px 62px; border-color: transparent transparent transparent rgba(255, 255, 255, .7); }
.stills { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.stills .media { aspect-ratio: 16 / 9; }
.work-info { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--sp-lg); margin-top: var(--sp-lg); }
.work-info .meta-list { margin-top: 0; font-size: var(--fs-base); }
.credit-list li { font-size: var(--fs-base); }
.credit-list li + li { margin-top: .25em; }
@media (max-width: 767px) { .work-info { grid-template-columns: 1fr; row-gap: 32px; } .stills { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------------------------------------------------------------------
   About
   --------------------------------------------------------------------- */
.about { text-align: center; padding-bottom: var(--sp-lg); }
.about.page-top { padding-top: calc(var(--header-h) * var(--overlay) + var(--sp-xl)); }
.about-lead { font-family: var(--font-statement); font-weight: var(--w-statement); font-size: var(--fs-2xl); line-height: 1.5; letter-spacing: .04em; font-feature-settings: "palt"; }
.about .prose { margin: var(--sp-lg) auto 0; max-width: 38em; font-family: var(--font-statement); font-weight: var(--w-statement); font-size: var(--fs-md); line-height: 2.1; }
.about .prose[lang="en"] { line-height: 1.9; }

/* ---------------------------------------------------------------------
   フッター
   --------------------------------------------------------------------- */
.site-footer { margin-top: var(--sp-xl); padding-block: var(--sp-lg) var(--sp-md); }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.footer-logo { display: block; width: var(--footer-logo); }
.footer-logo img { width: 100%; }
.footer-brand .tagline { font-size: calc(var(--footer-logo) * .066); margin-top: .55em; }
.footer-meta { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.footer-sns { display: flex; gap: 20px; margin-bottom: var(--sp-md); }
.footer-sns a { display: grid; place-items: center; width: 44px; height: 44px; transition: transform .2s var(--ease), opacity .2s ease; }
.footer-sns a:hover { transform: translateY(-2px); opacity: .6; }
.footer-sns svg { width: 30px; height: 30px; fill: currentColor; }
.footer-label { font-family: var(--font-meta); font-size: var(--meta-size); letter-spacing: max(var(--meta-ls), .08em); text-transform: uppercase; }
.footer-mail { font-size: var(--fs-md); font-weight: 700; text-underline-offset: 4px; word-break: break-all; }
.copyright { font-size: var(--fs-xs); color: var(--ink-sub); margin-top: var(--sp-md); }
@media (max-width: 767px) { .footer-inner { flex-direction: column; align-items: flex-start; } .footer-meta { align-items: flex-start; text-align: left; } }

.todo { outline: 1.5px dashed #b04d62; outline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.name-row__thumb .ph, .index-row__thumb .ph { font-size: 9px; letter-spacing: .02em; }

/* =====================================================================
   v2.2
   ===================================================================== */
:root { --r-card: 12px; --r-panel: 18px; }
@media (min-width: 768px) { :root { --r-card: 14px; --r-panel: 22px; } }
@media (min-width: 1200px) { :root { --r-card: 18px; --r-panel: 28px; } }

/* カード（写真）は角丸 */
.media { border-radius: var(--r-card); isolation: isolate; }
.loop-item { border-radius: 10px; }
.face-grid .media { border-radius: 10px; }

/* アーティスト一覧：角丸のカード */
.acards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 768px) { .acards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1200px) { .acards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.acard { display: block; height: 100%; padding: 12px 12px 20px; border-radius: var(--r-panel); background: var(--band); text-decoration: none; transition: transform .45s var(--ease); }
.acard:hover { transform: scale(1.015); }
@media (min-width: 768px) { .acard { padding: 14px 14px 24px; } }
.acard__img { display: grid; place-items: center; aspect-ratio: 1 / 1; }
.acard__init { font-family: var(--font-ui); font-size: clamp(40px, 5vw, 72px); font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.acard__txt { display: block; padding: 16px 6px 0; }
.acard__txt b { display: block; font-family: var(--font-ja); font-size: var(--fs-md); font-weight: 700; line-height: 1.35; letter-spacing: .04em; }
.acard__en { display: block; margin-top: 2px; font-size: var(--fs-sm); color: var(--ink-sub); }
.acard__roles { display: block; margin-top: 6px; font-family: var(--font-meta); font-size: var(--meta-size); letter-spacing: var(--meta-ls); text-transform: var(--meta-case); color: var(--ink-sub); line-height: 1.5; }

/* About：左寄せ。文章は指定の改行のまま */
.about { text-align: left; }
.about .prose { margin-left: 0; }
.about-club { margin-top: var(--sp-lg); font-family: var(--font-ja); font-size: var(--fs-md); line-height: 2.1; letter-spacing: .06em; font-feature-settings: "palt"; }
.about-club p + p { margin-top: 2em; }
@media (min-width: 768px) { .about-club p { white-space: nowrap; } }
.about-def { margin-top: var(--sp-xl); color: var(--ink-sub); }

/* 日本語の見出し・名前は語の途中で折らない */
.about-lead, .acard__txt b { word-break: keep-all; overflow-wrap: anywhere; text-wrap: balance; }
/* 指定の改行を保つ：どの画面幅でも 1 行に収まる大きさにする（最長 22 字） */
.about-club { font-size: min(var(--fs-md), 3.7vw); }
.about-club p { white-space: nowrap; }
/* 見出しの 2 行目（12 字）がスマホでも 1 行に収まる大きさに */
.about-lead { font-size: min(var(--fs-2xl), 7vw); }
/* コマ撮りの説明は補足なので本文より小さく */
.about .about-def { font-size: var(--fs-sm); line-height: 2; }

/* ---- v2.2 第 2 回 ---- */
/* ナビは畳まず、どの幅でも横並びで出す */
.menu-toggle { display: none !important; }
@media (max-width: 767px) {
  .header-inner { gap: 12px; }
  .global-nav { position: static; flex-direction: row; gap: 18px; min-width: 0; padding: 0; background: none; box-shadow: none; opacity: 1; transform: none; visibility: visible; transition: none; }
  .global-nav a { padding: 4px 0; font-size: 14px; border-bottom: 1.5px solid transparent; }
  .global-nav a[aria-current="page"] { text-decoration: none; border-bottom-color: currentColor; }
}
@media (max-width: 359px) { .global-nav { gap: 12px; } .global-nav a { font-size: 13px; } }
.hero-logo { max-width: 100%; }

/* アーティストは 4 列（スマホは 2 列） */
@media (min-width: 768px) { .acards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1200px) { .acards { gap: 20px; } }

/* 作品カード：タイトル＋アーティストだけ */
.work-card__artist { display: block; margin-top: .3em; font-size: var(--fs-sm); color: var(--ink-sub); }
.works-list.is-list .work-card__title { margin-bottom: .3em; }
.works-list.is-list .work-card__artist { display: block; font-size: var(--fs-base); }
.work-card__meta { display: none !important; }
.work-info { grid-template-columns: 1fr; }

/* ---- v2.4：ヘッダーは半透明（ベース色を不透明度 5%＋すりガラスのぼかし） ---- */
[data-header="frost"] { --header-bg: rgba(232, 232, 218, .05); --header-ink: var(--ink); --header-line: rgba(45, 45, 45, .08); }
[data-header="frost"] .site-header { -webkit-backdrop-filter: saturate(160%) blur(6px); backdrop-filter: saturate(160%) blur(6px); }

/* ---- 作品の動画・公式リンク・©表記 ---- */
.video { background: #111; }
.video__play { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.video__play img { width: 100%; height: 100%; object-fit: cover; }
.video__icon { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: rgba(0, 0, 0, .55); transition: background .2s ease, transform .2s ease; }
.video__icon::after { content: ""; position: absolute; left: 50%; top: 50%; margin: -14px 0 0 -8px; border-style: solid; border-width: 14px 0 14px 24px; border-color: transparent transparent transparent #fff; }
.video__play:hover .video__icon, .video__play:focus-visible .video__icon { background: rgba(0, 0, 0, .8); transform: scale(1.06); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 767px) { .video__icon { width: 60px; height: 60px; margin: -30px 0 0 -30px; } }
.work-info { row-gap: var(--sp-md); }
.watch-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.watch-links a { font-size: var(--fs-base); text-decoration: underline; text-underline-offset: 3px; }
.watch-links a:hover { text-decoration-thickness: 2px; }
.copyright-note { margin-top: .8em; font-size: var(--fs-xs); color: var(--ink-sub); }
.meta-list a { text-decoration: underline; text-underline-offset: 3px; }

/* ---- Artists 一覧の Producer 枠 ---- */
.producers { margin-top: var(--sp-xl); }
.producers .section-title { margin-bottom: var(--sp-lg); }
.face-init { display: grid; place-items: center; width: 100%; height: 100%; font-size: clamp(16px, 2vw, 28px); }
