:root {
  --night: #0C1220;      /* カメラ内部の闇 */
  --navy: #16203A;       /* 浮いた面 */
  --navy-line: rgba(133, 200, 242, .16);
  --paper: #EDF2FA;      /* 主文字 */
  --body-ink: #C9D4E6;   /* 本文 */
  --dim: #8A97AD;        /* 補足 */
  --sky: #85C8F2;        /* EVF・ファインダー */
  --amber: #F6C453;      /* 光 */
  --rose: #F2879E;       /* アノテーション */
  --lx: .5;              /* 光源の水平位置 (0-1) */
  --ly: .35;             /* 光源の垂直位置 (0-1) */
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --pixel: "DotGothic16", "IBM Plex Mono", monospace; /* カメラ液晶の和文 */
  --display: "Unbounded", sans-serif;
  --mincho: "Shippori Mincho B1", "Hiragino Mincho ProN", serif;
  --body: "Zen Kaku Gothic Antique", "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-color: #223052 #0A0F1C;
  scrollbar-width: thin;
  /* スマホで勝手に文字だけ拡大される(フォントブースト)のを止める */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* レンズの絵は画面外へはみ出す。はみ出しを「切る」ことで
     横スクロール(=左右の揺れ)と、それに伴う表示倍率の変化を防ぐ */
  overflow-x: hidden;
  /* 端まで来たときの横方向の引っ張り(ラバーバンド/戻るスワイプ)も止める */
  overscroll-behavior-x: none;
}
@supports (overflow: clip) {
  html { overflow-x: clip; } /* clipはスクロール領域を作らないので揺れない */
}
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #0A0F1C; }
::-webkit-scrollbar-thumb {
  background: #223052;
  border-radius: 5px;
  border: 2px solid #0A0F1C;
}
::-webkit-scrollbar-thumb:hover { background: #2E4070; }

body {
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.9; /* 長文の基準行間 */
  color: var(--body-ink);
  background: var(--night);
  /* はみ出しの制御は html 側だけで行う。body に overflow を付けると
     body 自体がスクロール領域になり、ヘッダーの position: sticky が効かなくなる */
  width: 100%;
}

/* 語の途中で折り返さないための最小の道具 */
.nw { white-space: nowrap; }

::selection { background: var(--amber); color: var(--night); }

a { color: var(--sky); }

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

/* ================= 差し込む光とレンズ内の塵 ================= */
.light {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.beam {
  position: absolute;
  top: -35vh;
  left: 50%;
  height: 185vh;
  transform-origin: 50% 0;
  transform:
    translateX(calc((var(--lx) - .5) * 62vw - 50%))
    rotate(calc((var(--lx) - .5) * -22deg + var(--tilt)));
  filter: blur(14px);
  mix-blend-mode: screen;
  /* 縦の減衰はマスクで(横断面=光の構造、縦=減衰) */
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .95), rgba(0, 0, 0, .4) 45%, transparent 78%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .95), rgba(0, 0, 0, .4) 45%, transparent 78%);
}
/* 光芒の構造: 白い芯 + 内部を走る細い光の筋(フィラメント) */
.beam-a {
  --tilt: -13deg;
  width: 30vw;
  background:
    repeating-linear-gradient(90deg,
      transparent 0 9px,
      rgba(255, 240, 205, .17) 9px 12px,
      rgba(246, 196, 83, .05) 12px 21px,
      rgba(255, 240, 205, .1) 21px 24px,
      transparent 24px 36px),
    linear-gradient(90deg,
      transparent,
      rgba(246, 196, 83, .13) 30%,
      rgba(255, 245, 218, .2) 50%,
      rgba(246, 196, 83, .11) 70%,
      transparent);
  animation: beam-breathe 7.2s ease-in-out infinite;
}
.beam-b {
  --tilt: -3deg;
  width: 15vw;
  background:
    repeating-linear-gradient(90deg,
      transparent 0 7px,
      rgba(255, 226, 233, .14) 7px 9px,
      rgba(242, 135, 158, .04) 9px 17px,
      transparent 17px 26px),
    linear-gradient(90deg,
      transparent,
      rgba(242, 135, 158, .09) 32%,
      rgba(255, 235, 240, .14) 50%,
      rgba(242, 135, 158, .08) 68%,
      transparent);
  animation: beam-breathe 9.6s ease-in-out 1.8s infinite;
}
.beam-c {
  --tilt: 8deg;
  width: 23vw;
  background:
    repeating-linear-gradient(90deg,
      transparent 0 8px,
      rgba(224, 242, 255, .15) 8px 11px,
      rgba(133, 200, 242, .05) 11px 19px,
      rgba(224, 242, 255, .09) 19px 22px,
      transparent 22px 31px),
    linear-gradient(90deg,
      transparent,
      rgba(133, 200, 242, .11) 30%,
      rgba(228, 244, 255, .17) 50%,
      rgba(133, 200, 242, .1) 70%,
      transparent);
  animation: beam-breathe 8.3s ease-in-out .9s infinite;
}
/* 光は静止しない: それぞれ別周期で明滅する */
@keyframes beam-breathe {
  0%, 100% { opacity: .72; }
  50% { opacity: 1; }
}
.glow {
  position: absolute;
  left: 0;
  top: 0;
  width: 1300px;
  height: 1300px;
  margin: -650px 0 0 -650px;
  background: radial-gradient(closest-side, rgba(133, 200, 242, .11), rgba(133, 200, 242, 0) 60%);
  will-change: transform;
}
#dust {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* ゴーストフレア: 光源と画面中心を結ぶ線上に絞り形のゴーストが並ぶ */
.ghosts {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: var(--gho, 0);
}
.ghosts i {
  position: absolute;
  left: 0;
  top: 0;
  aspect-ratio: 1;
  clip-path: polygon(50% 0%, 82% 12%, 100% 44%, 91% 78%, 62% 100%, 28% 96%, 4% 71%, 2% 35%, 25% 8%);
  mix-blend-mode: screen;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.ghosts i:nth-child(1) { width: 90px;  background: radial-gradient(circle, rgba(246, 196, 83, .34), transparent 70%); }
.ghosts i:nth-child(2) { width: 44px;  background: radial-gradient(circle, rgba(133, 200, 242, .4), transparent 70%); }
.ghosts i:nth-child(3) { width: 26px;  background: radial-gradient(circle, rgba(242, 135, 158, .42), transparent 70%); }
.ghosts i:nth-child(4) { width: 150px; background: radial-gradient(circle, rgba(138, 92, 246, .22), transparent 70%); }

/* スクロールするほど下から光が差してくる(終点=参加ボタンが最も明るい) */
.dawn {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: calc(var(--p, 0) * .9);
  background: radial-gradient(120% 70% at 50% 112%,
    rgba(246, 196, 83, .30),
    rgba(242, 135, 158, .12) 45%,
    rgba(242, 135, 158, 0) 72%);
}

/* レンズの周辺減光(静止・光学的に正しいヴィネット) */
.vignette {
  position: fixed;
  inset: 0;
  z-index: 44;
  pointer-events: none;
  background: radial-gradient(130% 100% at 50% 42%,
    transparent 55%,
    rgba(3, 6, 15, .35) 88%,
    rgba(3, 6, 15, .52) 100%);
}

/* フィルムグレイン(静止) */
.grain {
  position: fixed;
  inset: 0;
  z-index: 45;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

/* ================= EVF HUD ================= */
.vf {
  position: fixed;
  width: 26px;
  height: 26px;
  border: 2px solid rgba(133, 200, 242, .55);
  border-radius: 2px;
  z-index: 40;
  pointer-events: none;
}
.vf-tl { top: 16px; left: 16px; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.vf-tr { top: 16px; right: 16px; border-left: 0; border-bottom: 0; border-radius: 0 6px 0 0; }
.vf-bl { bottom: 16px; left: 16px; border-right: 0; border-top: 0; border-radius: 0 0 0 6px; }
.vf-br { bottom: 16px; right: 16px; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }

/* ================= シャッター(ロード時+ボタン押下時) ================= */
#iris, .iris-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
}
#iris svg, .iris-overlay svg { width: 100%; height: 100%; display: block; }

/* ================= ヘッダー ================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px clamp(24px, 5vw, 60px);
  background: linear-gradient(to bottom, rgba(12, 18, 32, .88), rgba(12, 18, 32, 0));
  border-bottom: 1px solid transparent;
  transition: background-color .3s ease, border-color .3s ease;
}
/* スクロール後は磨りガラスに変わり、本文と分離する */
.site-header.scrolled {
  background: rgba(12, 18, 32, .8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--navy-line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--paper);
}
.brand-icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(133, 200, 242, .25);
}
.brand-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .12em;
}
.site-nav { display: flex; gap: clamp(14px, 3vw, 34px); }
.site-nav a {
  position: relative;
  color: var(--body-ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .04em;
  padding-bottom: 3px;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
/* ホバーはマウスのある環境だけ。タッチだと :hover がタップ後も残り、
   別の項目を開いても前の項目に下線が引かれたままになる */
@media (hover: hover) and (pointer: fine) {
  .site-nav a:hover { color: var(--amber); }
  .site-nav a:hover::after { transform: scaleX(1); }
}

main { position: relative; z-index: 2; }

.container {
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: clamp(24px, 5vw, 60px);
}

/* ================= 章のピント送り(スクロールで合焦) ================= */
.ch {
  opacity: .02;
  filter: blur(16px);
  transform: scale(.985);
  transition:
    opacity 1.1s cubic-bezier(.22, .6, .2, 1),
    filter 1.1s cubic-bezier(.22, .6, .2, 1),
    transform 1.1s cubic-bezier(.22, .6, .2, 1);
  will-change: opacity, filter;
}
.ch.in { opacity: 1; filter: blur(0); transform: none; }
/* 人にはブラーをかけない: 運営メンバーはフェードのみで登場 */
#members.ch { filter: none; transform: none; }

/* ================= ヒーロー ================= */
.hero {
  position: relative;
  min-height: calc(100svh - 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(48px, 8vh, 90px);
}
.eyebrow {
  /* 「視覚若手の会」は名前 = 人の声(明朝)で組む */
  font-family: var(--mincho);
  font-size: clamp(16px, 2.4vw, 21px);
  font-weight: 600;
  font-feature-settings: "palt";
  letter-spacing: .14em;
  color: var(--paper);
  line-height: 1; /* 単行ラベルは行間を持たせない */
  transform: translateY(calc(var(--sy, 0) * .10px));
}
.hero-title {
  position: relative;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(72px, 16vw, 176px);
  letter-spacing: .04em;
  line-height: 1.02;
  margin-top: 14px;
  color: var(--paper);
  margin-left: -.05em; /* Lの縦画を本文の左端に視覚的に揃える */
  transform:
    perspective(900px)
    rotateX(calc((var(--ly) - .5) * -4deg))
    rotateY(calc((var(--lx) - .5) * 6deg))
    translateY(calc(var(--sy, 0) * .16px));
  will-change: transform;
}
.hero-title .ghost {
  position: absolute;
  inset: 0;
  mix-blend-mode: screen;
  pointer-events: none;
}
.ghost-r { color: #FF5C74; }
.ghost-b { color: #4FA8FF; }
.ghost-g { color: #59E3A7; }
/* 三原色が重なって像を結ぶ: 色は最後まで見えていて、重なった瞬間に溶ける */
@keyframes converge-r {
  0% { transform: translate(clamp(30px, 6vw, 78px), clamp(-18px, -3vw, -40px)); opacity: .95; }
  70% { opacity: .85; }
  100% { transform: none; opacity: 0; }
}
@keyframes converge-b {
  0% { transform: translate(clamp(-30px, -6vw, -78px), clamp(16px, 2.7vw, 36px)); opacity: .95; }
  70% { opacity: .85; }
  100% { transform: none; opacity: 0; }
}
@keyframes converge-g {
  0% { transform: translate(clamp(-12px, -2vw, -26px), clamp(-26px, -4.4vw, -56px)); opacity: .8; }
  70% { opacity: .7; }
  100% { transform: none; opacity: 0; }
}
@keyframes title-focus {
  0% { filter: blur(18px); opacity: .2; }
  100% { filter: blur(0); opacity: 1; }
}
.hero-title .solid { animation: title-focus 4.4s cubic-bezier(.3, .1, .25, 1) .55s both; }
.hero-title .ghost-r { animation: converge-r 4.4s cubic-bezier(.3, .1, .25, 1) .55s both; }
.hero-title .ghost-b { animation: converge-b 4.4s cubic-bezier(.3, .1, .25, 1) .55s both; }
.hero-title .ghost-g { animation: converge-g 4.4s cubic-bezier(.3, .1, .25, 1) .55s both; }
.hero-sub {
  font-family: var(--mono);
  font-size: clamp(15px, 2.2vw, 20px);
  letter-spacing: .08em;
  line-height: 1.55; /* 折返し時(スマホ)も詰まりすぎない */
  color: var(--sky);
  margin-top: 10px;
  transform: translateY(calc(var(--sy, 0) * .10px));
}
/* LENS = 頭文字。L→E→N→S の順に光って琥珀色で残り、以後は星のように瞬く */
.ac { color: var(--amber); font-weight: 500; }
.hero-sub .ac { animation: ac-glow .9s ease both, ac-twinkle 4.6s ease-in-out infinite; }
.hero-sub .ac:nth-of-type(1) { animation-delay: 4.7s, 6.3s; animation-duration: .9s, 4.1s; }
.hero-sub .ac:nth-of-type(2) { animation-delay: 4.88s, 7.1s; animation-duration: .9s, 5.3s; }
.hero-sub .ac:nth-of-type(3) { animation-delay: 5.06s, 7.6s; animation-duration: .9s, 3.7s; }
.hero-sub .ac:nth-of-type(4) { animation-delay: 5.24s, 8.2s; animation-duration: .9s, 4.9s; }
@keyframes ac-glow {
  0% { color: var(--sky); text-shadow: 0 0 0 rgba(246, 196, 83, 0); }
  40% { color: #FFE8B3; text-shadow: 0 0 16px rgba(246, 196, 83, .95); }
  100% { color: var(--amber); text-shadow: 0 0 0 rgba(246, 196, 83, 0); }
}
@keyframes ac-twinkle {
  0%, 78%, 100% { color: var(--amber); text-shadow: 0 0 0 rgba(246, 196, 83, 0); }
  88% { color: #FFEDC2; text-shadow: 0 0 12px rgba(246, 196, 83, .95), 0 0 28px rgba(246, 196, 83, .45); }
}
html.fast .hero-sub .ac:nth-of-type(1) { animation-delay: 1.0s, 2.2s; }
html.fast .hero-sub .ac:nth-of-type(2) { animation-delay: 1.15s, 3.0s; }
html.fast .hero-sub .ac:nth-of-type(3) { animation-delay: 1.3s, 3.5s; }
html.fast .hero-sub .ac:nth-of-type(4) { animation-delay: 1.45s, 4.1s; }
/* 目的であることを一目で示すラベルと縦罫 */
.purpose-label {
  font-family: var(--pixel);
  font-size: 12.5px;
  letter-spacing: .28em;
  line-height: 1;
  color: var(--amber);
  margin-top: clamp(28px, 5vh, 44px);
  opacity: 0;
  animation: line-in 1s cubic-bezier(.2, .65, .25, 1) 1.6s both;
  transform: translateY(calc(var(--sy, 0) * .06px));
}
.hero-poem {
  font-family: var(--mincho);
  font-weight: 500;
  font-size: clamp(16px, 2.1vw, 20px);
  font-feature-settings: "palt";
  letter-spacing: .05em;
  line-height: 2.15; /* 語りの行間: ゆったり、しかし間延びしない */
  color: var(--paper);
  margin-top: 14px;
  max-width: 40em; /* 2行目(約35em)が一行で収まる幅 */
  border-left: 2px solid rgba(246, 196, 83, .5); /* ステートメントの縦罫 */
  padding-left: 18px;
  transform: translateY(calc(var(--sy, 0) * .06px));
}
.hero-note {
  font-family: var(--mincho);
  font-size: clamp(13.5px, 1.7vw, 16px);
  font-feature-settings: "palt";
  letter-spacing: .05em;
  line-height: 1.95; /* 2〜3行に折れても読みやすい行間 */
  color: var(--body-ink);
  margin-top: 16px;
  max-width: 38em; /* 絞りのイラストに重ならない幅で折り返す */
  opacity: 0;
  animation: line-in 1.1s cubic-bezier(.2, .65, .25, 1) 2.6s both;
  transform: translateY(calc(var(--sy, 0) * .06px));
}
/* 折り返しは文節単位でのみ許可(語の途中で折らない) */
.hero-poem .nb, .hero-note .nb { display: inline-block; }
/* 目的の核心語だけを琥珀で */
.hero-poem .key { font-style: normal; font-weight: 600; color: var(--amber); }
.hero-poem .line {
  display: block;
  opacity: 0;
  transform: translateY(10px);
  animation: line-in 1.1s cubic-bezier(.2, .65, .25, 1) both;
}
@keyframes line-in {
  to { opacity: 1; transform: none; }
}
.hero-poem .l1 { animation-delay: 1.8s; }
.hero-poem .l2 { animation-delay: 2.2s; }
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch; /* 2つのボタンの高さを揃える */
  gap: 14px;
  margin-top: clamp(30px, 5vh, 44px);
  opacity: 0;
  animation: line-in 1s ease 3.2s both;
}
.hero-scroll {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .3em;
  color: var(--dim);
  opacity: 0;
  animation: line-in 1s ease 3.9s both;
}

/* ランダムグリッチの色収差(ズレる方向も毎回変わる) */
.hero-title.live .ghost-r {
  animation: none;
  opacity: var(--abo, 0);
  transform: translate(calc(var(--ab, 0) * var(--abx, 1) * 1px), calc(var(--ab, 0) * var(--aby, 1) * -.55px));
}
.hero-title.live .ghost-b {
  animation: none;
  opacity: var(--abo, 0);
  transform: translate(calc(var(--ab, 0) * var(--abx, 1) * -1px), calc(var(--ab, 0) * var(--aby, 1) * .45px));
}
.hero-title.live .ghost-g {
  animation: none;
  opacity: calc(var(--abo, 0) * .8);
  transform: translate(calc(var(--ab, 0) * var(--abx, 1) * -.3px), calc(var(--ab, 0) * var(--aby, 1) * -1px));
}

/* 再訪時(sessionStorage)は演出を短縮 */
html.fast .hero-title .solid,
html.fast .hero-title .ghost-r,
html.fast .hero-title .ghost-g,
html.fast .hero-title .ghost-b { animation-delay: .05s; animation-duration: .8s; }
html.fast .purpose-label { animation-delay: .15s; }
html.fast .hero-poem .l1 { animation-delay: .25s; }
html.fast .hero-poem .l2 { animation-delay: .4s; }
html.fast .hero-note { animation-delay: .55s; }
html.fast .hero-cta { animation-delay: .7s; }
html.fast .hero .sponsor-cta { animation-delay: .85s; }
html.fast .hero-scroll { animation-delay: 1.0s; }
@keyframes drift {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 6px); }
}
.hero-scroll::after {
  content: "";
  display: block;
  width: 1px;
  height: 26px;
  margin: 8px auto 0;
  background: linear-gradient(to bottom, var(--sky), transparent);
}

/* 背面の巨大絞りポリゴン */
.hero-aperture {
  position: absolute;
  top: 50%;
  right: max(-80px, -7vw);
  width: min(58vw, 700px);
  aspect-ratio: 1;
  transform-style: preserve-3d; /* 3層が実際のZ深度を持つ */
  /* 運動はJSが毎フレーム直接transformを書く(全体スタイル再計算を避ける) */
  transform: translateY(-50%);
  will-change: transform;
  z-index: -1;
  opacity: .92;
}
.hero-aperture svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
/* 鏡筒は奥、前面反射は手前 — 傾けると層が物理的にずれる */
.hero-aperture .lens-back { transform: translateZ(-48px); }
.hero-aperture .lens-front { transform: translateZ(44px); }
.hero-aperture .pupil-glow { opacity: calc(.2 + var(--ap, .5) * .4); }
.hero-aperture .sunstar { opacity: calc((1 - var(--ap, .5)) * .85); }
.hero-aperture .anamorphic { mix-blend-mode: screen; }
/* フォーカスリングはスクロールに連動して回転 */
.hero-aperture .rot {
  transform-origin: 300px 300px;
  transform: rotate(calc(var(--rot, 0) * 1deg));
}
.hero-aperture .ring-text {
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: .1em;
  fill: rgba(133, 200, 242, .5);
}
/* 絞り羽根: --ap(0-1)で開閉。羽根は各グループのローカルX方向=半径方向に動く */
.hero-aperture .iris {
  transform-origin: 300px 300px;
  transform: rotate(calc(var(--rot, 0) * -.25deg));
}
.hero-aperture .blade {
  fill: url(#bladeg); /* 金属の羽根: 内側の縁が光を受ける */
  fill-opacity: .97;
  stroke: rgba(133, 200, 242, .3);
  stroke-width: 1.2;
  transform: translateX(calc(var(--ap, .5) * 30px));
}
/* ガラスの層ごとに視差の深さが違う(奥ほど動かない) */
.hero-aperture .flare-deep {
  transform:
    translate(calc((var(--lx) - .5) * 20px), calc((var(--ly) - .5) * 20px));
}
.hero-aperture .flare {
  transform:
    translate(calc((var(--lx) - .5) * 46px), calc((var(--ly) - .5) * 46px));
}
.hero-aperture .sheen {
  transform:
    translate(calc((var(--lx) - .5) * 74px), calc((var(--ly) - .5) * 40px));
}
.hero-aperture .specular {
  transform:
    translate(calc((var(--lx) - .5) * -18px), calc((var(--ly) - .5) * -18px));
}

/* ================= ボタン(AF+シャッター) ================= */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--body);
  font-weight: 700;
  font-size: 15px;
  font-feature-settings: "palt";
  line-height: 1;
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease, color .16s ease;
}
/* ホバーでAFフレームが吸い付く(マウス環境のみ) */
.btn::after {
  content: "";
  position: absolute;
  inset: 6px 12px;
  pointer-events: none;
  opacity: 0;
  --c: currentColor;
  background:
    linear-gradient(var(--c), var(--c)) top left / 9px 1.5px,
    linear-gradient(var(--c), var(--c)) top left / 1.5px 9px,
    linear-gradient(var(--c), var(--c)) top right / 9px 1.5px,
    linear-gradient(var(--c), var(--c)) top right / 1.5px 9px,
    linear-gradient(var(--c), var(--c)) bottom left / 9px 1.5px,
    linear-gradient(var(--c), var(--c)) bottom left / 1.5px 9px,
    linear-gradient(var(--c), var(--c)) bottom right / 9px 1.5px,
    linear-gradient(var(--c), var(--c)) bottom right / 1.5px 9px;
  background-repeat: no-repeat;
  transform: scale(1.15);
  transition: opacity .14s ease, transform .2s cubic-bezier(.2, .7, .3, 1.3);
}
/* 絞りアイコン: ホバーで羽根が回って開く */
.btn .ap-icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .5s cubic-bezier(.2, .7, .3, 1);
}
/* 二声構造のラベル: 詩的な誘い + 機能の明示 */
.btn .btn-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-align: left;
}
.btn .btn-label small {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 9.5px;
  letter-spacing: .22em;
  line-height: 1;
  opacity: .72;
  transition: letter-spacing .25s ease, opacity .25s ease;
}
/* 覗き込みレンズ: カーソル位置に光の円が追従 */
.btn .peek {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle 70px at var(--bx, 50%) var(--by, 50%), rgba(255, 255, 255, .5), transparent 72%);
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
}
.btn-primary {
  /* 差し込む光と同じ琥珀→桃のグラデーション + 周期的に走る光 */
  background-image:
    linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .5) 48%, rgba(255, 255, 255, .12) 52%, transparent 65%),
    linear-gradient(140deg, #F6C453, #F0A45E 52%, #F2879E);
  background-size: 250% 100%, 100% 100%;
  background-position: 160% 0, 0 0;
  color: var(--night);
  border: 1px solid rgba(255, 255, 255, .4);
  box-shadow:
    0 4px 18px rgba(246, 196, 83, .22),
    inset 0 1px 0 rgba(255, 255, 255, .5);
  animation: btn-sheen 3.8s ease-in-out infinite;
}
@keyframes btn-sheen {
  0%, 55% { background-position: 160% 0, 0 0; }
  88%, 100% { background-position: -60% 0, 0 0; }
}
.btn-ghost {
  border: 1.5px solid var(--sky);
  color: var(--sky);
}

/* ================= スポンサー募集(メールで連絡) =================
   琥珀は主CTA(Discord)と「操作の色」が衝突するので使わない。
   ここはレンズの硝子板に見立てる: 彩度で目立たせるのではなく、
   透けた面と上端のリムライトという「素材の差」で浮かび上がらせ、
   文字は紙白のまま置いて可読性を最優先する */
.sponsor-cta { margin-top: 14px; }
.hero .sponsor-cta {
  opacity: 0;
  animation: line-in 1s ease 3.5s both;
}
.btn-sponsor {
  display: flex;
  width: 100%;
  max-width: 560px;
  justify-content: center;
  gap: 12px;
  padding: 15px 22px;
  border: 1px solid rgba(133, 200, 242, .26);
  border-radius: 14px;
  /* 上ほど明るい面 = 上から差す光を受けた硝子 */
  background: linear-gradient(180deg,
    rgba(237, 242, 250, .09),
    rgba(237, 242, 250, .025) 45%,
    rgba(133, 200, 242, .05));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .2),  /* 硝子の上端が光を受ける(フレネル) */
    inset 0 -1px 0 rgba(3, 6, 15, .3),      /* 下端は落ちる */
    0 6px 22px rgba(3, 6, 15, .3);          /* 板が紙面から浮く */
  color: var(--paper);
  font-size: 14.5px;
  text-align: center;
}
.btn-sponsor .mail-icon {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  stroke: var(--sky);
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.btn-sponsor .btn-label { align-items: center; text-align: center; gap: 6px; }
/* ここは操作ラベルではなく運営からの一文。すぐ上の .hero-note と同じ「人の声」
   なので、ボタン既定のゴシック700ではなく明朝で組む(サイト全体の書体の役割分担に従う) */
.btn-sponsor .btn-line {
  display: block;
  font-family: var(--mincho);
  font-weight: 500;
  font-size: 15.5px;
  font-feature-settings: "palt";
  letter-spacing: .05em;
  line-height: 1.8;
}
.btn-sponsor .btn-line .nb { display: inline-block; }
/* 最後の文節 =「(連絡はこちらから)。」は添え書き。
   硝子の色で押せる先を示しつつ、本文より一段小さくして主従を付ける
   (em 指定なのでスマホの縮小にもそのまま追随する) */
.btn-sponsor .btn-line .nb:last-child {
  color: var(--sky);
  font-size: .84em;
}
/* メールアドレスは実際に読む情報なので、.btn 既定の .72 より明るく戻す */
.btn-sponsor small { color: var(--sky); opacity: .82; }
/* フッターでは中央に置く */
.site-footer .sponsor-cta {
  display: flex;
  justify-content: center;
  margin: 0 0 46px;
}
.site-footer .btn-sponsor { font-size: 14px; }

/* ================= ホバー(マウス環境のみ) =================
   タッチでは :hover がタップ後も残るため、指の環境には一切適用しない */
@media (hover: hover) and (pointer: fine) {
  .btn:hover::after { opacity: .75; transform: scale(1); }
  .btn:hover .ap-icon { transform: rotate(90deg) scale(1.12); }
  .btn:hover .btn-label small { letter-spacing: .3em; opacity: 1; }
  .btn:hover .peek { opacity: 1; }
  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow:
      0 10px 38px rgba(246, 196, 83, .45),
      0 2px 14px rgba(242, 135, 158, .35),
      inset 0 1px 0 rgba(255, 255, 255, .65);
  }
  .btn-ghost:hover {
    background: var(--sky);
    color: var(--night);
    transform: translateY(-2px);
  }
  /* ホバー: 硝子に当たる光が強まる(色を足すのではなく明るさを上げる) */
  .btn-sponsor:hover {
    border-color: rgba(133, 200, 242, .5);
    background: linear-gradient(180deg,
      rgba(237, 242, 250, .14),
      rgba(237, 242, 250, .05) 45%,
      rgba(133, 200, 242, .09));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .3),
      inset 0 -1px 0 rgba(3, 6, 15, .3),
      0 10px 30px rgba(3, 6, 15, .38),
      0 0 22px rgba(133, 200, 242, .14);
    transform: translateY(-2px);
  }
}

/* ================= セクション共通 ================= */
.section {
  padding-block: clamp(80px, 13vh, 150px);
  /* 背後の英字(.title-ghost)は nowrap の巨大文字なので、狭い画面では
     "ACTIVITY" が画面幅をはみ出し、そのぶん横に動かせてしまう。
     ここで横だけ切る。overflow-x: clip は縦のはみ出し(見出し下への
     はみ出し)を保ったまま横だけを断てる指定 */
  overflow-x: clip;
}
.section-title {
  position: relative;
  font-family: var(--mincho);
  font-size: clamp(28px, 4.4vw, 40px);
  font-weight: 700;
  font-feature-settings: "palt";
  letter-spacing: .08em;
  line-height: 1.3; /* 大見出しは詰める */
  margin-top: 16px;
  color: var(--paper);
}
/* 和文見出しの背後に輪郭だけの英語(二言語ラベルの型のタイポグラフィ表現) */
.title-ghost {
  position: absolute;
  left: -.05em;
  bottom: -.14em;
  font-family: var(--display);
  font-size: 2.5em;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(133, 200, 242, .13);
  pointer-events: none;
  white-space: nowrap;
  z-index: -1;
}

/* ================= アクティビティ = コンタクトシート =================
   横走りの35mmフィルム。1コマ = 活動1件。露光済みのコマだけが光り、
   未露光のコマは「次の活動」の席を空けて待つ(フッターの空き枠と同じ文法)。
   コマ数が増えたら .film が横に伸び、自動で横スクロールになる */
.act-legend {
  margin-top: 14px;
  font-family: var(--pixel);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--dim);
}
.sheet {
  margin-top: 30px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.film {
  position: relative;
  display: flex;
  gap: 10px;
  width: max-content;  /* コマ数に応じて伸びる */
  min-width: 100%;
  list-style: none;
  padding: 26px 18px;
  background: rgba(10, 15, 28, .82); /* フィルムベース */
  border-block: 1px solid var(--navy-line);
}
/* 上下のパーフォレーション(#membersの縦送りと同じ抽象度の横送り) */
.film::before, .film::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 11px;
  background: repeating-linear-gradient(to right,
    rgba(133, 200, 242, .2) 0 10px,
    transparent 10px 26px);
  opacity: .5;
  pointer-events: none;
}
.film::before { top: 7px; }
.film::after { bottom: 7px; }
.shot {
  scroll-snap-align: center;
  flex: 0 0 auto;
  width: min(296px, 72vw);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 16px 18px;
  border-radius: 4px; /* フィルム窓のわずかな丸み */
}
.shot-id {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--sky);
}
.shot-wait { font-family: var(--pixel); font-size: 11px; letter-spacing: .2em; }
/* 露光済み: 琥珀→桃の光漏れをまとった一枚 */
.shot.exposed {
  background:
    radial-gradient(120% 90% at 18% 0%, rgba(246, 196, 83, .14), transparent 55%),
    radial-gradient(130% 100% at 100% 100%, rgba(242, 135, 158, .1), transparent 60%),
    #0E1526;
  box-shadow:
    0 0 0 1px rgba(246, 196, 83, .28),
    0 0 34px rgba(246, 196, 83, .07);
}
.shot-pic {
  display: grid;
  place-items: center;
  padding: 16px 0 4px;
}
.shot-pic img {
  width: min(128px, 32vw);
  height: auto;
  border-radius: 24px;
  box-shadow:
    0 10px 30px rgba(3, 6, 15, .5),
    0 0 0 1px rgba(133, 200, 242, .25);
}
.shot-text {
  /* 感情を担う日本語は明朝 */
  font-family: var(--mincho);
  font-weight: 600;
  font-size: clamp(15.5px, 2vw, 18px);
  font-feature-settings: "palt";
  letter-spacing: .05em;
  line-height: 1.7;
  color: var(--paper);
  text-align: center;
  padding-bottom: 4px;
}
/* 未露光: 暗いまま次を待つコマ */
.shot.blank {
  background: #05080F;
  box-shadow: inset 0 0 0 1px rgba(133, 200, 242, .09);
}
.shot.blank .shot-id { color: rgba(138, 151, 173, .55); }
.shot-next {
  margin: auto;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .3em;
  text-indent: .3em; /* 字間で右に膨らむ分の光学補正 */
  color: rgba(138, 151, 173, .5);
  border: 1px dashed rgba(138, 151, 173, .3);
  border-radius: 3px;
  padding: 8px 14px;
}
/* フィルム端の刻印 */
.act-edge {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .3em;
  color: var(--dim);
  opacity: .6;
  text-align: right;
}
/* コンタクトシート左下の小さな添え書き */
.act-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.act-foot .act-edge { margin-left: auto; }
.act-soon {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
  color: #FFFFFF;
  opacity: .82;
}
/* 章が合焦した時、一枚目が現像される(1回だけ) */
@keyframes develop {
  0% { filter: brightness(.12) contrast(.55) sepia(.5); }
  60% { filter: brightness(.62) contrast(.82) sepia(.22); }
  100% { filter: none; }
}
#activity.in .shot.exposed { animation: develop 1.9s cubic-bezier(.3, .6, .2, 1) both; }

/* 運営メンバー = 35mmフィルムのコマ。両脇にパーフォレーション */
#members { position: relative; }
#members::before, #members::after {
  content: "";
  position: absolute;
  top: 50px;
  bottom: 50px;
  width: 11px;
  background: repeating-linear-gradient(to bottom,
    rgba(133, 200, 242, .2) 0 10px,
    transparent 10px 26px);
  background-position: 0 calc(var(--film, 0) * -1px); /* スクロール=フィルム送り */
  opacity: .5;
  pointer-events: none;
}
#members::before { left: clamp(6px, 1.2vw, 18px); }
#members::after { right: clamp(6px, 1.2vw, 18px); }
/* ================= 運営メンバー(センサーグリッド) ================= */
.member-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
  margin-top: 38px;
}
/* クリックできることを最初に伝える一行(琥珀=操作の色) */
.team-hint {
  margin-top: 14px;
  font-family: var(--pixel);
  font-size: 12px;
  letter-spacing: .12em;
  line-height: 1.7;
  color: var(--amber);
}
.team-label {
  font-family: var(--pixel);
  font-size: 13px;
  letter-spacing: .3em;
  line-height: 1;
  color: var(--dim);
  margin-top: 36px;
}
.team-label + .member-grid { margin-top: 14px; }
.member-advisor { --corner: rgba(246, 196, 83, .42); }
/* カード全面がリンク。行き先は個人ページ→X→Instagramの優先順で1つだけ */
.member-link {
  display: block;
  padding: 16px 18px;
  color: inherit;
  text-decoration: none;
}
.member-link:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: -3px;
  border-radius: 7px;
}
.member-role {
  font-family: var(--pixel);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--amber);
  border: 1px solid rgba(246, 196, 83, .45);
  border-radius: 4px;
  padding: 1px 7px;
  margin-left: 8px;
  vertical-align: 2px;
}
.member {
  position: relative;
  --c: var(--amber);
  --corner: rgba(133, 200, 242, .3);
  border: 1px solid rgba(133, 200, 242, .14);
  border-radius: 8px;
  background-color: rgba(22, 32, 58, .3);
  /* スライドマウント風の額装: 四隅の三角コーナー(エッジに光)だけで組む。
     内側のヘアラインは名前・所属の上下に横線として乗り、可読性を下げるため置かない */
  background-image:
    linear-gradient(135deg, transparent 0 11px, rgba(255, 255, 255, .16) 11px 12px, transparent 12.5px),
    linear-gradient(225deg, transparent 0 11px, rgba(255, 255, 255, .16) 11px 12px, transparent 12.5px),
    linear-gradient(45deg,  transparent 0 11px, rgba(255, 255, 255, .16) 11px 12px, transparent 12.5px),
    linear-gradient(315deg, transparent 0 11px, rgba(255, 255, 255, .16) 11px 12px, transparent 12.5px),
    linear-gradient(135deg, var(--corner) 0 11px, transparent 11.5px),
    linear-gradient(225deg, var(--corner) 0 11px, transparent 11.5px),
    linear-gradient(45deg,  var(--corner) 0 11px, transparent 11.5px),
    linear-gradient(315deg, var(--corner) 0 11px, transparent 11.5px);
  background-position:
    top left, top right, bottom left, bottom right,
    top left, top right, bottom left, bottom right;
  background-size:
    22px 22px, 22px 22px, 22px 22px, 22px 22px,
    22px 22px, 22px 22px, 22px 22px, 22px 22px;
  background-repeat: no-repeat;
  /* 紙の厚み: 上端に光、下端に影 */
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .05),
    inset 0 -1px 0 rgba(0, 0, 0, .35),
    0 1px 0 rgba(255, 255, 255, .03);
  opacity: 0;
  transition: transform .18s ease, opacity .45s ease, border-color .18s ease, background-color .18s ease;
}
.member.on { opacity: 1; }
/* 顧問は最後に置く。枠の色でメンバーと区別する(.member の border 短縮形より後に書く) */
.member.member-advisor { border-color: rgba(246, 196, 83, .4); }
/* カメラのAFフレーム: 指したカードにピントが合う(操作に対して常に同じ反応) */
.member::after {
  content: "";
  position: absolute;
  inset: 5px;
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(var(--c), var(--c)) top left / 14px 2px,
    linear-gradient(var(--c), var(--c)) top left / 2px 14px,
    linear-gradient(var(--c), var(--c)) top right / 14px 2px,
    linear-gradient(var(--c), var(--c)) top right / 2px 14px,
    linear-gradient(var(--c), var(--c)) bottom left / 14px 2px,
    linear-gradient(var(--c), var(--c)) bottom left / 2px 14px,
    linear-gradient(var(--c), var(--c)) bottom right / 14px 2px,
    linear-gradient(var(--c), var(--c)) bottom right / 2px 14px;
  background-repeat: no-repeat;
  transform: scale(1.10);
  transition: opacity .14s ease, transform .2s cubic-bezier(.2, .7, .3, 1.3);
}
@media (hover: hover) and (pointer: fine) {
  /* リンクのあるカードだけ、ホバーでわずかに持ち上がりピントが合う */
  .member:has(a.member-link:hover) {
    border-color: rgba(246, 196, 83, .45);
    background-color: rgba(22, 32, 58, .5);
    transform: translateY(-2px);
  }
  .member:has(a.member-link:hover)::after { opacity: 1; transform: scale(1); }
  .member:has(a.member-link:hover) .member-name::before {
    background: var(--c);
    box-shadow: 0 0 9px var(--c);
  }
  a.member-link:hover .member-name { color: var(--amber); }
}
.member-name {
  display: block;
  font-family: var(--mincho); /* 台紙に記された人の名 */
  font-weight: 600;
  font-feature-settings: "palt";
  letter-spacing: .05em;
  font-size: 17px;
  line-height: 1.5;
  color: var(--paper);
  transition: color .18s ease;
  /* 罫線は敷かない(名前・所属に下線が重なると可読性が落ちる)。
     名前と所属の区別は書体・字の大きさ・色と、この余白だけで付ける */
  margin-bottom: 9px;
}
/* AFポイント: 検出がその人に来た瞬間だけ点灯する測距点 */
.member-name::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(133, 200, 242, .28);
  margin-right: 9px;
  vertical-align: 3px;
  transition: background-color .3s ease, box-shadow .3s ease;
}
.member-affil {
  display: block;
  font-family: var(--pixel); /* カメラが記録したメタデータ */
  font-size: 13px;
  letter-spacing: .05em;
  line-height: 1.7; /* ドット文字は行間を広めに */
  color: var(--dim);
}
/* ================= フッター ================= */
.site-footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, rgba(133, 200, 242, .45), transparent) 1;
  padding: 76px clamp(24px, 5vw, 60px) 88px;
  text-align: center;
}
.footer-cta .btn { padding: 16px 36px; font-size: 16px; }
.footer-cta { margin-bottom: 46px; }
.footer-cta:has(+ .sponsor-cta) { margin-bottom: 16px; }
.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.footer-meta .footer-links { margin-top: 12px; gap: 26px; }
/* コミュニティアイコン: 描き手へのリスペクトを込めて大きく掲げる */
.footer-icon {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  object-fit: cover;
  margin-bottom: 8px;
  box-shadow:
    0 0 0 1px rgba(133, 200, 242, .3),
    0 8px 32px rgba(246, 196, 83, .18);
}
.footer-brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .1em;
  color: var(--paper);
}
.footer-full {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  line-height: 1.7;
  color: var(--dim);
}
.footer-links {
  display: flex;
  gap: 20px;
  font-size: 13.5px;
}
.footer-links a { color: var(--body-ink); }
@media (hover: hover) and (pointer: fine) {
  .footer-links a:hover { color: var(--amber); }
}

/* ================= レスポンシブ ================= */
@media (max-width: 760px) {
  .site-nav { display: none; } /* 誤タップでのページ内ジャンプを防ぐ */
  .brand-icon { width: 48px; height: 48px; border-radius: 12px; }
  .hero-aperture { opacity: .86; top: 42%; right: -12vw; width: 102vw; }
  .hero-aperture .ring-text { display: none; } /* 読めないサイズの刻印は消す */
  .hero-aperture .pupil-glow { opacity: calc(.32 + var(--ap, .5) * .5); }
  .vignette {
    background: radial-gradient(140% 100% at 50% 40%,
      transparent 48%,
      rgba(3, 6, 15, .42) 85%,
      rgba(3, 6, 15, .6) 100%);
  }
  /* 説明文が必ずファーストビューに収まるように。
     あわせて、右にはみ出すレンズの絵(102vw)をここで断つ。
     スマホではコンテナ幅=画面幅なので、切っても見た目は変わらない
     (PCではコンテナが画面より狭く、レンズは画面端まで抜けさせたいので切らない) */
  .hero { min-height: calc(100svh - 80px); padding-block: 28px 64px; overflow-x: clip; }
  .hero-title { font-size: clamp(54px, 18vw, 88px); }
  .hero-poem { font-size: 15px; line-height: 1.95; margin-top: 20px; padding-left: 14px; }
  /* 3行前後に折れるので、行間と余白を詰めてファーストビューに収める */
  .hero-note { line-height: 1.85; margin-top: 12px; }
  .hero-cta { margin-top: 24px; }
  /* CTAは全幅・中央揃えで積む */
  .hero-cta .btn { width: 100%; justify-content: center; }
  .btn .btn-label { align-items: center; text-align: center; }
  /* フィルム穴は細くトーンを落とす */
  #members::before, #members::after { opacity: .3; }
  .film::before, .film::after { opacity: .3; }
  /* コマは隣が覗く幅にして、スワイプできると分かるように */
  .sheet { margin-top: 22px; }
  .film { gap: 8px; padding: 22px 12px; }
  /* 省電力: ゴーストフレア停止・ビーム軽量化・backdrop-filter無効化 */
  .ghosts { display: none; }
  .beam { filter: blur(22px); }
  .beam-b { display: none; }
  .site-header.scrolled {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(12, 18, 32, .94);
  }
  /* スマホは三原色の収束を速く(4.4s→2.4s) */
  .hero-title .solid,
  .hero-title .ghost-r,
  .hero-title .ghost-b,
  .hero-title .ghost-g { animation-duration: 2.4s; }
  .hero-sub .ac:nth-of-type(1) { animation-delay: 3.1s, 4.6s; }
  .hero-sub .ac:nth-of-type(2) { animation-delay: 3.28s, 5.2s; }
  .hero-sub .ac:nth-of-type(3) { animation-delay: 3.46s, 5.7s; }
  .hero-sub .ac:nth-of-type(4) { animation-delay: 3.64s, 6.2s; }
  /* スマホの光芒: フィラメントをやめ、滑らかな包絡だけを深いブラーで */
  .beam-a {
    width: 54vw;
    background: linear-gradient(90deg,
      transparent,
      rgba(246, 196, 83, .15) 30%,
      rgba(255, 245, 218, .24) 50%,
      rgba(246, 196, 83, .13) 70%,
      transparent);
  }
  .beam-c {
    width: 42vw;
    background: linear-gradient(90deg,
      transparent,
      rgba(133, 200, 242, .13) 30%,
      rgba(228, 244, 255, .21) 50%,
      rgba(133, 200, 242, .12) 70%,
      transparent);
  }
  .glow { background: radial-gradient(closest-side, rgba(133, 200, 242, .16), rgba(133, 200, 242, 0) 60%); }
  /* CTAは全幅で積む */
  .sponsor-cta { margin-top: 12px; }
  .btn-sponsor { max-width: none; padding: 14px 16px; font-size: 13.5px; }
  .btn-sponsor .btn-line { font-size: 14.5px; line-height: 1.75; }

  /* ---- 省電力: スマホで効く重い処理を落とす ----
     ・章の合焦の blur(16px) は巨大レイヤのぼかし。フェードだけにする
     ・光芒は1本に。mix-blend-mode + blur の全画面レイヤが一番重い
     ・レンズの巨大SVGは合成レイヤに固定し、毎フレームの再描画を避ける */
  .ch { filter: none; transform: none; transition: opacity .7s ease; will-change: opacity; }
  .ch.in { filter: none; }
  .beam-c { display: none; }
  .beam { filter: blur(26px); }
  .hero-aperture { transform-style: flat; } /* 3層の実Z深度をやめて合成を1枚に */
  .grain { display: none; } /* 全画面のノイズ合成は割に合わない */
}

/* 低い画面(ノートPC・横持ちスマホ)でも説明文まで収める */
@media (max-height: 740px) {
  .hero { padding-block: 24px 56px; }
  .hero-title { font-size: clamp(44px, 11vh, 120px); }
  .hero-poem { line-height: 1.8; margin-top: 16px; }
  .hero-note { line-height: 1.75; margin-top: 12px; }
  .hero-cta { margin-top: 20px; }
  .hero-scroll { display: none; }
}

/* ================= 動きを減らす ================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #iris, #dust, .grain, .ghosts { display: none; }
  .beam { animation: none; }
  .ch { opacity: 1; filter: none; transform: none; transition: none; }
  .hero-title .solid, .hero-poem .line, .purpose-label, .hero-note, .hero-cta, .hero-scroll { animation: none; opacity: 1; transform: none; }
  .hero-title .ghost { display: none; }
  .hero-sub .ac { animation: none; }
  .hero-title, .eyebrow, .hero-sub, .hero-poem, .hero-aperture { transform: none; }
  .hero-aperture { transform: translateY(-50%); }
  .member, .member:hover, .member:has(a.member-link:hover) { transform: none; transition: none; opacity: 1; filter: none; }
  .btn, .btn::after, .btn .ap-icon, .member::after { transition: none; }
  .member-name { transition: none; }
  .btn-primary { animation: none; }
  .hero .sponsor-cta { animation: none; opacity: 1; }
  .btn .peek { transition: none; }
  .member::after { transform: none; }
  #activity.in .shot.exposed { animation: none; }
}

/* ================= マルチページ: ナビ現在地とハンバーガー ================= */
/* 現在地(aria-current)は琥珀の下線が常時点灯 */
.site-nav a[aria-current="page"] { color: var(--amber); }
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav-toggle { display: none; }
/* メニュー表示中の背面スクロール止め。
   body に overflow を掛けてはいけない: root 側で overflow を指定している今、
   body の overflow は viewport に伝播せず body 自身がスクロールコンテナになる。
   すると sticky ヘッダーの基準が viewport から外れ、メニューを開いた瞬間に
   ヘッダーごと(=絞りボタンごと)上下に飛ぶ。
   html 側で止める手もあるが、ページが非スクロールになるとスマホのURLバーが
   開いて画面全体がずれるので、これも採らない。
   全画面のオーバーレイ自身がタッチを飲み込めば、文書の状態は一切変わらない */
.site-nav.open {
  touch-action: none;
  overscroll-behavior: contain;
}
/* backdrop-filterはfixed子要素のcontaining blockになるため、メニュー中は外す */
body.menu-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; }

@media (max-width: 760px) {
  /* スマホ: 絞りボタンでメニューを開く(スマホ非表示ナビの上書き) */
  .nav-toggle {
    position: relative;
    z-index: 51; /* オーバーレイ(50)の上に残して閉じられるように */
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    background: rgba(22, 32, 58, .5);
    border: 1px solid var(--navy-line);
    border-radius: 12px;
    cursor: pointer;
  }
  .nav-toggle .ap-icon {
    width: 24px;
    height: 24px;
    stroke: var(--sky);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .5s cubic-bezier(.2, .7, .3, 1), stroke .3s ease;
  }
  .nav-toggle[aria-expanded="true"] .ap-icon { transform: rotate(90deg) scale(1.1); stroke: var(--amber); }
  /* メニュー: 全画面の夜紺。開閉はフェードのみ(低頻度・最小限) */
  .site-nav {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 50;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 24px clamp(24px, 8vw, 48px);
    background: rgba(8, 12, 24, .985); /* backdrop-filterは重いので不透明で代替 */
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility 0s linear .3s;
  }
  .site-nav.open { opacity: 1; visibility: visible; transition: opacity .3s ease; }
  .site-nav a {
    font-family: var(--mincho);
    font-size: 17px;
    font-weight: 600;
    font-feature-settings: "palt";
    letter-spacing: .08em;
    color: var(--paper);
    padding: 11px 4px;
    align-self: flex-start; /* 下線を文字幅に合わせる(全幅に伸ばさない) */
  }
  .site-nav a::after { height: 1.5px; bottom: 6px; }
  .site-nav a[aria-current="page"] { color: var(--amber); }
}

@media (prefers-reduced-motion: reduce) {
  .site-nav, .nav-toggle .ap-icon { transition: none; }
}

/* ================= ホーム: 最新アクティビティからの導線 ================= */
.act-more { margin-top: 30px; display: flex; }
@media (max-width: 760px) {
  .act-more .btn { width: 100%; justify-content: center; }
}
