/* =====================================================================
   layout.css : ヘッダー・ハンバーガー・ヒーロー・フッター・グリッド
   ===================================================================== */

/* ---------- ヘッダー ---------- */
/* 背景は動画（assets/header/、js/main.js が <video class="header-video"> を差し込む）。
   動画を読み込まない場合（視差効果を減らす設定・データセーバー・読み込み前）は、
   同じ映像の静止画（header-poster.jpg）が背景として表示される。
   動画は暗めで光の筋が走る映像のため、文字は明るい金色〜白にしている */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--c-primary-deep) url("../assets/header/header-poster.jpg") center / cover no-repeat;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -3px 5px rgba(0, 0, 0, 0.5),
    0 8px 20px rgba(0, 0, 0, 0.55);
  border-bottom: 1px solid rgba(var(--c-primary-deep-rgb), 0.9);
}

.header-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

/* 動画の上のメニュー文字が、明るい光の筋と重なっても読めるようにする薄い暗幕 */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.5));
  pointer-events: none;
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  /* ゴールドとシルバーが溶け合う一本線。トーンマナー
     （ゴールド×シルバー×ブラック）をヘッダー下線にも反映 */
  background: var(--metal-divider);
  opacity: 0.7;
}

.header-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo {
  width: 34px;
  height: 34px;
  flex: none;
  filter: drop-shadow(0 0 8px rgba(var(--c-primary-rgb), 0.7)) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.8));
}

.brand-name {
  /* ロゴ画像を使わないときの文字ロゴ（太い明朝体） */
  font-family: var(--font-gothic);
  font-weight: 900;
  font-size: 1.55rem;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  /* 暗い動画の上で映える、明るい金色＋輪郭の濃い影 */
  color: var(--c-glow);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 0 14px rgba(var(--c-primary-rgb), 0.6);
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: rgba(255, 240, 205, 0.88);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  transition: color 0.2s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 2px;
  background: var(--gold-sheen);
  box-shadow: 0 0 10px rgba(var(--c-primary-rgb), 0.9);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: #fff;
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.site-nav .nav-kick {
  color: var(--c-primary-bright);
  margin-left: 8px;
  background: rgba(10, 8, 4, 0.62);
  box-shadow: inset 0 0 0 1px rgba(var(--c-primary-bright-rgb), 0.75);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.site-nav .nav-kick::after {
  display: none;
}

.nav-toggle {
  display: none;
  position: relative;
  width: 48px;
  height: 48px;
  margin-right: -8px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle .bar,
.nav-toggle .bar::before,
.nav-toggle .bar::after {
  position: absolute;
  left: 12px;
  width: 24px;
  height: 2px;
  background: var(--c-glow);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}

.nav-toggle .bar {
  top: 23px;
}

.nav-toggle .bar::before,
.nav-toggle .bar::after {
  content: "";
  left: 0;
}

.nav-toggle .bar::before {
  top: -8px;
}

.nav-toggle .bar::after {
  top: 8px;
}

.nav-toggle[aria-expanded="true"] .bar {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .bar::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .bar::after {
  top: 0;
  transform: rotate(-45deg);
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    background: rgba(5, 5, 7, 0.96);
    border-bottom: 1px solid rgba(var(--c-primary-rgb), 0.35);
    transition: max-height 0.3s ease, visibility 0s linear 0.3s;
  }

  .site-nav.is-open {
    max-height: 420px;
    visibility: visible;
    transition: max-height 0.3s ease;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 20px;
  }

  .site-nav a {
    min-height: 52px;
    padding: 0 8px;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .site-nav a::after {
    display: none;
  }

  .site-nav .nav-kick {
    margin: 14px 0 0;
    justify-content: center;
    border-bottom: 0;
  }
}

@media (max-width: 420px) {
  .brand-name {
    font-size: 1.3rem;
    letter-spacing: 0.02em;
  }
}

/* ---------- ヒーロー ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(540px, 94vh, 980px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 72px 0 104px;
  border-bottom: 1px solid rgba(var(--c-primary-rgb), 0.25);
}

.hero-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -4;
  max-width: none;
}

.hero-svg .stop-red {
  stop-color: var(--c-primary);
}

.hero-svg .stop-bright {
  stop-color: var(--c-primary-bright);
}

.hero-svg .stop-glow {
  stop-color: var(--c-glow);
}

.hero-svg .shard {
  fill: url(#shardGrad);
  stroke: var(--c-primary);
  stroke-width: 1.4;
  stroke-opacity: 0.85;
}

.hero-svg .shard-dim {
  fill: #12070a;
  stroke: var(--c-primary);
  stroke-width: 1;
  stroke-opacity: 0.55;
}

.hero-svg .beam {
  stroke: url(#beamGrad);
  stroke-linecap: round;
  fill: none;
}

.hero-glow {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(ellipse 34% 44% at 50% 50%, rgba(var(--c-glow-rgb), 0.28), transparent 72%),
    radial-gradient(ellipse 60% 60% at 50% 52%, rgba(var(--c-primary-rgb), 0.28), transparent 70%),
    radial-gradient(ellipse 100% 100% at 50% 50%, transparent 40%, rgba(0, 0, 0, 0.78) 100%);
}

.hero-floor {
  position: absolute;
  left: -40%;
  right: -40%;
  bottom: -2px;
  height: 46%;
  z-index: -3;
  transform: perspective(520px) rotateX(64deg);
  transform-origin: 50% 100%;
  background-image:
    linear-gradient(rgba(var(--c-primary-rgb), 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--c-primary-rgb), 0.38) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 92%);
  mask-image: linear-gradient(to top, #000 10%, transparent 92%);
  animation: floor-run 5s linear infinite;
}

@keyframes floor-run {
  to {
    background-position: 0 64px, 0 0;
  }
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  animation: rise 0.9s ease both;
}

/* 文字の後ろを少し暗くして、ビームと重なっても読みやすくする */
.hero-inner::before {
  content: "";
  position: absolute;
  inset: -36px -12%;
  z-index: -1;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.3) 48%, transparent 74%);
  pointer-events: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- ヒーロー最上部：スマートフォンのまわりにメンバー写真を
   円環状に並べて、ゆっくり回転させる演出 ----------
   参考画像（スマホの周りに写真カードが円を描くように浮かぶビジュアル）
   を元に、色味だけサイトのダークゴールドのトンマナに合わせている。

   これを主役にするため、ヒーローの他の要素（ロゴ・タイトル・
   タグライン・説明文・統計・タグ・ボタン）はここでは表示しない */
.hero-inner > *:not(.hero-orbit) {
  display: none;
}

.hero-orbit {
  --orbit-radius: clamp(190px, 36vw, 340px);
  --orbit-card-w: clamp(92px, 17vw, 168px);
  --orbit-card-h: calc(var(--orbit-card-w) * 1.3333); /* 金の枠（3:4）に合わせる */
  --phone-w: clamp(150px, 25vw, 270px);
  --phone-h: clamp(320px, 52vw, 560px);
  position: relative;
  width: min(1000px, 94vw);
  height: clamp(420px, 58vw, 700px);
}

/* ---- 背景動画（cube）と、8 秒後のスマホ・カード表示 ----
   .is-waiting の間は、スマホと周りのカードを隠しておく。
   JS（js/hero-video.js）が背景動画の 8 秒地点で .is-waiting を外すと、ふわっと現れる。
   JS が動かない場合に備え、CSS だけでも 14 秒後に自動で表示する（保険） */
.hero-orbit {
  transition: opacity 1s ease, transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-orbit.is-waiting {
  opacity: 0;
  transform: scale(0.94);
  pointer-events: none;
  animation: hero-orbit-failsafe 0.1s linear 14s forwards;
}

@keyframes hero-orbit-failsafe {
  to {
    opacity: 1;
    transform: none;
  }
}

/* 読み込み中の「LOADING」バー（js/hero-video.js が .is-on を付け外しする） */
.hero-loading {
  position: absolute;
  left: 50%;
  top: calc(min(100%, 100vh) - 150px);
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.hero-loading.is-on {
  opacity: 1;
}

.hero-loading-text {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.5em;
  padding-left: 0.5em;
  color: #f6e3a8;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.9), 0 1px 3px rgba(0, 0, 0, 0.9);
}

.hero-loading-bar {
  position: relative;
  width: min(240px, 60vw);
  height: 4px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.28);
}

.hero-loading-bar i {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgb(var(--c-primary-rgb)), transparent);
  animation: hero-loading-slide 1.1s ease-in-out infinite;
}

@keyframes hero-loading-slide {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(250%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-loading-bar i {
    animation: none;
    width: 100%;
  }
}

/* 背景動画が出ているあいだは、そのうしろの写真背景と火の粉（Canvas）は見えないので、描かない（重さ対策） */
.hero.has-bgvideo .hero-bgstack,
.hero.has-bgvideo .hero-canvas {
  display: none;
}

.hero-bgvideo {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #050505;
  pointer-events: none;
}

/* 動画が出ているときは、立方体のロゴが見えるよう、暗幕を少し薄くする */
.hero.has-bgvideo .hero-scrim {
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.45) 100%);
}

@media (prefers-reduced-motion: reduce) {
  .hero-orbit.is-waiting {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* ---- 周りのカードの輪 ----
   以前は CSS の 3D（preserve-3d）で回していたが、ブラウザやパソコンの状態によっては 3D がうまく働かず、
   カードが 1 枚しか見えないことがあった。そのため、3D は使わず、js/status.js（mountHeroCards）が
   1 枚ずつの位置・大きさ・前後を計算して動かす方式（平面のまま 3D のように見せる）に変更した。
   ここでは、カードの大きさと置き場所の土台だけを決める */
.hero-orbit-ring {
  position: absolute;
  inset: 0;
}

.hero-orbit-cards {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-orbit-card {
  /* 配信中のメンバー 1 人ぶんのカード（金の枠＋ON AIR）。位置・大きさ・前後（z-index）は JS が毎コマ決める */
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--orbit-card-w);
  height: var(--orbit-card-h);
  margin: calc(var(--orbit-card-h) / -2) 0 0 calc(var(--orbit-card-w) / -2);
  aspect-ratio: auto;
  will-change: transform;
  /* バッジの文字は、カードの大きさに合わせて小さくする */
  font-size: calc(var(--orbit-card-w) / 15);
}

.hero-orbit-card .hero-orbit-card-face {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
  /* 輪が回っても、カードの正面が常に画面のほうを向くように、輪の回転と逆向きに回す
     （裏返って文字が鏡文字になるのを防ぐ） */
  /* 以前は filter: drop-shadow を 2 つ重ねていたが、回りながら毎コマ計算されて重いため、
     あらかじめ描いておく光のにじみ（下の ::before）に置き換えた */
}

.hero-orbit-card .hero-orbit-card-face::before {
  content: "";
  position: absolute;
  inset: -14% -18%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(var(--air-rgb, 255, 42, 61), 0.38), rgba(0, 0, 0, 0.45) 62%, transparent 100%);
  pointer-events: none;
}

.hero-orbit-card .hero-orbit-card-face .air-wrap {
  left: 50%;
  top: 10.5%;
}

.hero-orbit-card .hero-orbit-card-face .air-wrap .badge {
  font-size: 1em;
  padding: 0.3em 0.9em 0.3em 0.7em;
  letter-spacing: 0.12em;
}

.hero-orbit-phone {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--phone-w);
  height: var(--phone-h);
  margin: calc(var(--phone-h) / -2) 0 0 calc(var(--phone-w) / -2);
  padding: clamp(7px, 1.2vw, 10px);
  background: linear-gradient(160deg, #241705, #050505 65%);
  border-radius: clamp(18px, 3vw, 28px);
  /* ゴールドの外枠 + シルバーの内側のごく細いハイライトで、
     金属フレーム（クロムのふち）のような重厚感を出す */
  box-shadow:
    0 0 0 2px rgba(var(--c-primary-rgb), 0.65),
    inset 0 0 0 1px rgba(var(--c-silver-rgb), 0.4),
    0 24px 50px rgba(0, 0, 0, 0.7),
    inset 0 0 18px rgba(0, 0, 0, 0.6);
  /* カードの輪（.hero-orbit-ring）の中に置き、円の中心（Z=0）に立たせる。
     親のrotateX(-24deg)を打ち消して常に正面向きのまま見せつつ、
     同じ3D空間に属することで、手前のカードは前に・奥のカードは
     後ろに自然に重なる（＝スマホがカードの輪の中に収まって見える） */
  z-index: 5; /* カードの前後：手前のカード（z-index 10）はスマホより前、奥のカード（z-index 1）はスマホのうしろ */
  animation: hero-orbit-float 5s ease-in-out infinite;
}

.hero-orbit-phone-notch {
  position: absolute;
  top: clamp(8px, 1.6vw, 12px);
  left: 50%;
  width: 34%;
  height: 5px;
  margin-left: -17%;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.7);
}

.hero-orbit-phone-screen {
  position: relative;
  height: 100%;
  border-radius: clamp(12px, 2.2vw, 20px);
  background: var(--gold-sheen);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
}

.hero-orbit-phone-logo {
  width: clamp(30px, 6vw, 46px);
  height: auto;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
}

.hero-orbit-phone-name {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 0.14em;
  font-size: clamp(0.62rem, 1.6vw, 0.95rem);
  color: #1c1204;
  text-transform: uppercase;
}

/* ---------- スマホ画面：最初に流す縦動画（js/status.js の mountHeroPhone） ---------- */
.hero-orbit-phone-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #050505;
}

/* 配信画面（テスト用のサンプル映像）は、画面いっぱいに広げる */
.hero-orbit-phone-live .sample-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  background: #050505;
}

/* 動画が終わって配信中のメンバーに切り替わるとき、ふわっと現れる */
.hero-orbit-phone-live.is-fade {
  animation: hero-phone-fade 0.6s ease both;
}

@keyframes hero-phone-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ---------- スマホ画面：LIVE中のメンバーを表示する状態 ----------
   誰かが配信中のとき、ロゴの代わりにそのメンバーの写真を
   画面いっぱいに表示する（.card-media の見た目を流用） */
.hero-orbit-phone-live.card-media {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
}

.hero-orbit-phone-live.card-media::before {
  /* バッジ・名前・視聴者数の文字を読みやすくするための、画面上部の暗がり */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0) 42%);
  pointer-events: none;
}

.hero-orbit-phone-live .badge {
  left: 8%;
  top: 8%;
  transform: scale(0.86);
  transform-origin: top left;
}

.hero-orbit-phone-live-info {
  /* スマホ画面の下側は、手前に重なる装飾カードで隠れてしまうため、
     LIVEバッジのすぐ下（画面上部の隠れない位置）に表示する */
  position: absolute;
  left: 8%;
  right: 8%;
  top: 21%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-orbit-phone-live-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(0.72rem, 1.7vw, 0.98rem);
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-orbit-phone-live-viewers {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--font-num);
  font-weight: 700;
  font-size: clamp(0.62rem, 1.4vw, 0.82rem);
  color: rgba(var(--c-silver-bright-rgb), 0.92);
}

@keyframes hero-orbit-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-orbit-phone {
    animation: none;
  }
}

.hero-logo {
  width: clamp(64px, 11vw, 104px);
  height: auto;
  filter: drop-shadow(0 0 18px rgba(var(--c-primary-rgb), 0.95));
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.9rem, 7.4vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 0 26px rgba(var(--c-primary-rgb), 0.85), 0 0 70px rgba(var(--c-primary-rgb), 0.55);
  max-width: 14em;
  text-wrap: balance;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(0.78rem, 2.4vw, 1.05rem);
  letter-spacing: 0.34em;
  color: var(--c-glow);
  text-transform: uppercase;
}

.hero-desc {
  max-width: 34em;
  color: #d9d9e2;
  font-size: clamp(0.95rem, 2.6vw, 1.05rem);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.9);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 8px;
}

@media (max-width: 640px) {
  .hero {
    padding: 56px 0 80px;
    min-height: 560px;
  }
  .hero-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
}

/* ---------- サブページの見出し ---------- */
.page-head {
  position: relative;
  padding: 88px 0 40px;
  overflow: hidden;
  border-bottom: 1px solid rgba(var(--c-primary-rgb), 0.2);
  background: linear-gradient(180deg, rgba(var(--c-primary-rgb), 0.1), transparent);
}

.page-head::before {
  content: "";
  position: absolute;
  right: -6%;
  top: 0;
  width: 46%;
  height: 100%;
  background: linear-gradient(115deg, transparent 45%, rgba(var(--c-primary-rgb), 0.16) 46%, rgba(var(--c-primary-rgb), 0.04) 70%, transparent 71%);
  pointer-events: none;
}

.page-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 7vw, 3.4rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-shadow: 0 0 24px rgba(var(--c-primary-rgb), 0.6);
}

.page-lead {
  margin-top: 8px;
  color: var(--c-muted);
}

.back-link {
  padding-top: 28px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}

.back-link a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--c-muted);
}

.back-link a:hover {
  color: #fff;
}

/* ---------- グリッド ---------- */
.grid-live {
  /* 金の枠つきカード（MEMBERS ページと同じ形）を並べる */
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

.grid-members {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

.grid-offline {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

@media (max-width: 640px) {
  .grid-members {
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-offline {
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-live {
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 小さいスマホでは、オフラインのカードは 1 列（名前が切れないように） */
@media (max-width: 480px) {
  .grid-offline {
    grid-template-columns: 1fr;
  }
}

/* ---------- フッター ---------- */
.site-footer {
  position: relative;
  margin-top: 120px;
  padding: 44px 0 36px;
  background:
    linear-gradient(180deg, transparent, rgba(var(--c-primary-rgb), 0.07)),
    linear-gradient(180deg, transparent, rgba(var(--c-silver-rgb), 0.04));
  color: var(--c-muted);
  font-size: 0.88rem;
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  /* ヘッダー下線と対になる、ゴールド×シルバーの一本線 */
  background: var(--metal-divider);
  opacity: 0.7;
}

.footer-inner {
  display: grid;
  gap: 28px;
  grid-template-columns: 1.3fr 1fr;
  align-items: start;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-text);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  justify-content: flex-end;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-family: var(--font-display);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  color: var(--c-muted);
}

.footer-links a:hover {
  color: #fff;
}

.footer-note {
  grid-column: 1 / -1;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  line-height: 1.8;
}

@media (max-width: 720px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .footer-links {
    justify-content: flex-start;
  }
}

.noscript-note {
  margin: 24px auto;
  padding: 16px;
  max-width: 640px;
  border: 1px solid rgba(var(--c-primary-rgb), 0.5);
  color: var(--c-muted);
  text-align: center;
}

/* ヘッダー・フッターの横長ロゴ（config.js の team.wordmark）。
   画像の縦横比（約3.1:1）を保ったまま、ヘッダーの高さ64pxに収まる大きさにする */
.brand-wordmark {
  display: block;
  height: 46px;
  width: auto;
  max-width: 100%;
  /* 金色のロゴが、動画の明るい光の筋と重なっても輪郭が埋もれないよう、濃い影で縁取る */
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.95)) drop-shadow(0 2px 5px rgba(0, 0, 0, 0.9));
}

.footer-brand .brand-wordmark {
  height: 56px;
}

@media (max-width: 420px) {
  .brand-wordmark {
    height: 38px;
  }
}
