/* VINash Design — vinash.net
   色と書体はロゴガイドライン（logo_vd.ai）に則る。薄いグリッドで仕分け、ところどころ歪ませる
   ------------------------------------------------------------ */
:root {
  --bg: #E6E6E6;
  --ink: #000F00;
  --ash: #7A857D;
  --line: rgba(0, 15, 0, 0.14);
  --line-wob: rgba(0, 15, 0, 0.55);
  --jp: "游ゴシック体", YuGothic, "Yu Gothic Medium", "游ゴシック Medium", "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
  --en: "Josefin Sans", "游ゴシック体", YuGothic, "Yu Gothic Medium", "Yu Gothic", sans-serif;
  --pad: clamp(16px, 2.2vw, 32px);
  --gl-m: #EC009F;   /* グリッチの色版：NCF2026 KV のピンク（本人 10/25「NCFと同じグリーンとピンク」） */
  --gl-c: #4DB186;   /* NCF2026 KV のグリーン */
  --gl-y: #F9F237;   /* NCF2026 KV のイエロー（バーストのときだけ） */
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--jp); font-weight: 500; font-size: 13px; line-height: 1.75; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, figure, dl, dd, ul { margin: 0; padding: 0; }
ul { list-style: none; }
section { scroll-margin-top: 96px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* グリッド線（site.js が SVG で描く）。言葉と狼のまわりだけ線が沸く */
.rough-grid { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 0; overflow: visible; }
.rough-grid--base { will-change: transform; }   /* 薄い線は1回描いたら描き直さない層に */
.rg-line { fill: none; stroke: var(--line); stroke-width: 1; }
.rg-wob { fill: none; stroke: rgba(0, 15, 0, .9); stroke-width: 2; }
.wz { position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none; overflow: visible; will-change: transform; }
.wz path { fill: none; stroke-width: 1.6; stroke: rgba(0, 15, 0, .9); }
.wz .wz-c { stroke: var(--gl-c); stroke-width: 2; }
.wz .wz-m { stroke: var(--gl-m); stroke-width: 2; }

/* ---------- 上部バー ---------- */
.bar { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: auto 3fr 3fr 4fr 2fr; gap: 16px; align-items: center; padding: 14px var(--pad); background: var(--bg); font-family: var(--en); font-size: 10px; font-weight: 600; letter-spacing: .04em; line-height: 1.5; text-transform: uppercase; }
.bar nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.bar nav, .bar__ext { font-size: 12px; }
.bar nav a:hover, .bar__ext:hover { border-bottom: 1px solid currentColor; }
.bar__ext { justify-self: end; white-space: nowrap; }
.bar__mark img { height: 46px; width: auto; }

/* ---------- ヒーロー：ロゴタイプを幅いっぱいに ---------- */
.sheet { position: relative; --cols: 5; overflow-x: clip; }   /* 本人 10/25「横列一つ減らして」6→5 */
.hero { position: relative; min-height: 72vh; min-height: 72svh; display: flex; flex-direction: column; justify-content: space-between; padding: 3vh var(--pad) 2.5vh; padding: 3svh var(--pad) 2.5svh; }
.hero__roles { display: none; position: relative; z-index: 1; font-family: var(--en); font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.hero__type { position: relative; z-index: 1; width: auto; margin-top: auto; margin-left: calc(var(--cw, 20vw) - var(--pad)); }   /* 1マスあけて右詰め（本人 10/27） */
.hero__type svg { display: block; width: 100%; height: auto; overflow: visible; cursor: crosshair; }
.lt-fill path { fill: var(--ink); pointer-events: all; cursor: pointer; }
.lt-fill .is-line path, .lt-band path { fill: none; stroke: var(--ink); stroke-width: .8px; vector-effect: non-scaling-stroke; }
/* グリッチ：色版がズレて覗く（スパイダーバースっぽい刷りズレ）。インクの下に乗算で重ねる */
.lt-c path { fill: var(--gl-c); }
.lt-m path { fill: var(--gl-m); }
.lt-y path { fill: var(--gl-y); }

/* ---------- 絞り込み ---------- */
.filters { position: sticky; top: var(--barh, 74px); z-index: 15; display: flex; flex-wrap: wrap; gap: 6px; padding: 10px var(--pad); background: var(--bg); }
.filters button { font: 600 11px/1 var(--en); letter-spacing: .03em; padding: 10px 12px; border: 1px solid var(--ink); background: none; color: var(--ink); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.filters small { font-weight: 400; margin-left: 4px; }

/* ---------- 作品のカタログ ---------- */
.wall { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(var(--cols), 1fr); grid-auto-rows: var(--row, 270px); grid-auto-flow: row dense; }
.tile { position: relative; display: flex; flex-direction: column; padding: 14px 14px 12px; transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.tile__img { flex: 1; min-height: 0; position: relative; }
.tile__img img, .tile__img video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.tile--web, .tile--graphic.tile--wide, .tile--space.tile--wide { grid-column: span 2; }

/* グラフィック：紙を置いたような薄い影。画像の箱＝絵の大きさにして影を絵に沿わせる */
.tile--graphic .tile__img { display: flex; align-items: center; justify-content: center; }
.tile--graphic .tile__img img, .tile--graphic .tile__img video { position: static; width: auto; height: auto; max-width: 100%; max-height: 100%; box-shadow: 0 1px 2px rgba(0, 15, 0, .10), 0 10px 22px -10px rgba(0, 15, 0, .35); }

/* Web：細いブラウザのバー＋スクショ（上から見せる） */
.tile--web .tile__img { display: flex; flex-direction: column; border: 1px solid rgba(0, 15, 0, .22); background: #fff; }
.tile__bar { flex: none; display: flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-bottom: 1px solid rgba(0, 15, 0, .14); background: #F4F4F2; }
.tile__bar i { width: 6px; height: 6px; border-radius: 50%; background: rgba(0, 15, 0, .25); }
.tile__bar span { margin-left: 8px; font-family: var(--en); font-size: 10px; font-weight: 600; letter-spacing: .03em; color: rgba(0, 15, 0, .6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile__shot { flex: 1; min-height: 0; position: relative; overflow: hidden; }
.tile--web .tile__shot img { object-fit: cover; object-position: top; }
a.tile--web:hover .tile__img { border-color: var(--ink); }

/* ロゴ：枠も背景もなく、地の上にロゴだけ。カーソルを乗せるとブランドの色の地に */
.tile--logo .tile__img { transition: background-color .25s; }
.tile--logo .tile__img img { inset: 18%; width: 64%; height: 64%; transition: opacity .25s; }
.tile--logo .tile__img img:not(.mk):not(.mk-on) { inset: 12%; width: 76%; height: 76%; }
.tile--logo .mk-on { opacity: 0; }
a.tile--logo:hover .tile__img, a.tile--logo:focus-visible .tile__img { background: var(--brand, transparent); }
a.tile--logo.has-on:hover .mk, a.tile--logo.has-on:focus-visible .mk { opacity: 0; }
a.tile--logo.has-on:hover .mk-on, a.tile--logo.has-on:focus-visible .mk-on { opacity: 1; }

/* 空間：写真をマスいっぱいに */
.tile--space .tile__img img { object-fit: cover; }
.tile--big { grid-column: span 2; grid-row: span 2; }
.tile--big.tile--tall, .tile--tall.tile--big { grid-row: span 2; }
.tile--tall { grid-row: span 2; }
.tile__cap { margin-top: 10px; font-size: 12px; line-height: 1.45; }
.tile__cap .y { font-family: var(--en); font-weight: 600; margin-right: 10px; }
.tile__cap b { font-weight: 700; }
.tile__cap .meta { display: block; font-size: 12px; }
a.tile:hover b { text-decoration: underline; text-underline-offset: 3px; }
.tile.pushed { transform: translateX(calc(var(--cw) * .5)); }
.tile[hidden], .qd[hidden], .qbig[hidden], .strip[hidden] { display: none; }

/* 言葉：作品のあいだに割り込む */
.q { position: relative; z-index: 2; }
.q__t { font-family: var(--jp); font-weight: 700; letter-spacing: .02em; }
.q__src { margin-top: 14px; font-size: 12px; }
.qd { grid-column: span 3; position: relative; display: flex; align-items: center; padding: 0 18px; }
.qd .q__t { font-size: clamp(22px, 2.5vw, 40px); line-height: 1.34; }
.qbig { grid-column: 1 / -1; grid-row: span 2; position: relative; display: flex; flex-direction: column; justify-content: center; padding: 0 var(--pad); }
.qbig .q__t { font-size: clamp(40px, 6vw, 104px); line-height: 1.06; letter-spacing: -.01em; }

/* 冊子：スキャンの帯（真っ黒） */
.strip { grid-column: 1 / -1; grid-row: span 2; position: relative; display: flex; flex-direction: column; padding: clamp(40px, 5vw, 72px) 0 clamp(28px, 3.4vw, 48px) 18px; background: #000; color: var(--bg); }   /* 2マスの高さ＋上下の黒を広く（本人 10/25） */
.strip__track { flex: 1; min-height: 0; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.strip__track::-webkit-scrollbar { display: none; }
.strip__track img { height: 100%; width: auto; max-width: none; flex: none; scroll-snap-align: start; background: #111; }   /* max-width を外さないと、狭い画面で幅だけ縮んで縦に伸びる */
.strip__cap { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; margin-top: 12px; padding-right: 18px; font-size: 12px; }
.strip__count { font-family: var(--en); font-weight: 600; }
.strip .go { font-family: var(--en); font-weight: 600; font-size: 11px; letter-spacing: .03em; border-bottom: 1px solid currentColor; }
.strip a:focus-visible, .strip .strip__track:focus-visible { outline-color: var(--bg); }

/* 狼：画面の中を斜めにバウンドし続ける。クリックは邪魔しない */
.runner { position: fixed; z-index: 30; left: 0; top: 0; width: clamp(110px, 10vw, 170px); pointer-events: none; will-change: transform; }
.runner video, .runner img { width: 100%; height: auto; }

/* ---------- About／Projects／Press／Contact ---------- */
.sec { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(6, 1fr); gap: 0 var(--pad); padding: clamp(64px, 9vw, 140px) var(--pad); }
.sec__h { grid-column: 1 / span 2; font-family: var(--en); font-weight: 700; font-size: clamp(36px, 4.6vw, 76px); line-height: .95; letter-spacing: -.035em; text-transform: uppercase; }
.sec__body { grid-column: 3 / -1; }
.about__text { display: grid; gap: 1em; max-width: 38em; font-size: 14px; }
.history { margin-top: 40px; }
.history > div, .press__meta > div { display: grid; grid-template-columns: 5em 1fr; gap: 16px; padding: 9px 0; border-top: 1px solid var(--ink); }
.history > div:last-child { border-bottom: 1px solid var(--ink); }
.history dt, .press__meta dt { font-family: var(--en); font-weight: 600; letter-spacing: .02em; }

.projects__list { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(32px, 4vw, 56px) var(--pad); margin-top: clamp(32px, 4vw, 56px); }
.projects__cap { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px solid var(--ink); font-family: var(--en); font-size: 11px; font-weight: 600; letter-spacing: .03em; }
.projects__img { display: block; aspect-ratio: 4 / 5; overflow: hidden; }
.projects__img img { width: 100%; height: 100%; object-fit: cover; }
a.projects__img:hover img { opacity: .85; }
.projects__txt { margin-top: 8px; font-size: 12px; }
.projects__list .is-text .projects__txt { margin-top: 0; font-size: 14px; }

.press__title { font-family: var(--jp); font-weight: 700; font-size: clamp(20px, 2.2vw, 32px); line-height: 1.4; max-width: 22em; }
.press__meta { margin-top: 24px; max-width: 32em; }
.press__meta > div:last-child { border-bottom: 1px solid var(--ink); }
.press__links { margin-top: 24px; display: flex; gap: 24px; }
.link { font-family: var(--en); font-size: 11px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.link:hover { opacity: .6; }

.contact__list { display: grid; gap: 8px; }
.contact__big { font-family: var(--en); font-weight: 600; font-size: clamp(22px, 3vw, 44px); line-height: 1.2; letter-spacing: -.01em; border-bottom: 2px solid currentColor; justify-self: start; overflow-wrap: anywhere; }
.contact__big:hover { opacity: .6; }
.contact__addr { margin-top: 24px; font-size: 12px; }
.contact__dance { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; font-weight: 700; font-size: clamp(16px, 1.6vw, 22px); }

/* ---------- フッター ---------- */
.foot { position: relative; z-index: 1; display: grid; grid-template-columns: 3fr 3fr 6fr; gap: 16px; padding: var(--pad); border-top: 1px solid var(--ink); font-family: var(--en); font-size: 10px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; background: var(--bg); }
.foot__col { display: grid; align-content: start; justify-items: start; gap: 2px; }
.foot__col a { font-size: 12px; }
.foot__col a:hover { border-bottom: 1px solid currentColor; }
.foot__label { color: var(--ink); opacity: .7; margin-bottom: 4px; }
.foot__col--end { justify-items: end; align-content: end; gap: 10px; }
.foot__col--end img { width: 44px; }

/* ---------- スマホ ---------- */
@media (max-width: 800px) {
  .bar { grid-template-columns: auto 1fr; row-gap: 8px; }
  .bar__ext { grid-row: 1; grid-column: 2; }
  .bar nav { grid-row: 2; grid-column: 1 / -1; }
  .bar__col { display: none; }
  .bar__mark img { height: 36px; }
  .bar nav { gap: 2px 14px; }
  .bar nav a, .bar__ext { padding: 6px 0; }
  .sheet { --cols: 2; }
  .hero { min-height: 0; gap: 28px; padding: 20px var(--pad) 28px; }
  .hero__roles { display: block; }
  .hero__type { margin-left: 0; }
  .filters { top: var(--barh, 60px); flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filters button { flex: none; }
  .tile { padding: 12px 10px 10px; }
  .tile--big { grid-column: span 2; }
  .tile.pushed { transform: none; }
  .strip { grid-row: span 2; padding: 56px 0 40px 14px; }   /* スマホは上下の余白を広めに */
  .tile--wide { grid-column: span 2; }   /* 横長の画像はスマホで2マス（本人 10/25） */
  .qd { grid-column: 1 / -1; }
  .qd .q__t { font-size: clamp(19px, 5.2vw, 26px); }
  .qbig .q__t { font-size: clamp(22px, 7.4vw, 42px); }   /* 「自分の人生にノイズを。」を1行に収める */
  .runner { width: 92px; }
  .sec { grid-template-columns: 1fr; gap: 28px; }
  .sec__h, .sec__body { grid-column: 1; }
  .projects__list { grid-template-columns: 1fr 1fr; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot__col--end { grid-column: 1 / -1; justify-items: start; margin-top: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tile { transition: none; }
}

/* 幅の狭いスマホ：メニューを1行に収める */
@media (max-width: 380px) {
  .bar nav { gap: 2px 10px; }
}
