:root {
  --plum: #410837;
  --plum-dark: #310028;
  --pink: #ff0098;
  --cyan: #00e6ef;
  /* カード用ドロップシャドウ（不透明度100%＝透かさない） */
  --cyan-shadow: #00c6dc;
  /* サムネイルにマウスを乗せたときの写真の拡大率と時間。
     SCHEDULE・VIDEOS・Schedule ページの NEXT STREAM / ARCHIVE で共通（NEW PICTURES は拡大しない）。
     この拡大に限らず、すべての :hover の効果は PC（幅1231px以上）のマウス操作環境だけで有効にし、
     タブレット・スマートフォンでは動かさない（各 :hover ルールを同じメディアクエリで囲む） */
  --thumb-hover-scale: 1.1;
  --thumb-hover-duration: .35s;
  --paper: #f8ffff;
  --content-width: 1280px;
  /* 画面の左右端からコンテンツまでの余白（片側） */
  --gutter: 56px;

  /* フォントサイズC */
  --font-c: 20px;

  /* SNSアイコンの基準高さ。YouTubeだけ横長のため90%に縮める */
  --social-icon-h: 31px;

  /* ヘッダーの高さ。position: fixed のため body の padding-top と必ず同じ値にする */
  --header-h: 80px;

  /* ファーストビューのキャラクター：顔（髪の頂点〜あご）の高さ基準で拡大率を決める。
     顔の高さは画像の高さの 23.63%。高さで指定しておくと、画像の左右をトリミングしても
     この値は変わらない（幅は width: auto で縦横比から決まる）。
     画像ファイルは原寸のまま、表示サイズだけをここで変える。 */
  --hero-face-height: 520px;
  --hero-character-height: calc(var(--hero-face-height) / 0.2363);
}

* {
  box-sizing: border-box;
}

/* 背景はルート要素に置く。
   - overscroll-behavior-y: none でページ端を越えるスクロール（ラバーバンド）自体を止める
   - 背景を100px上へずらし、上端に地色が覗かないようにする
   - 背景色は背景画像の上端の平均色に合わせ、万一余白が出ても馴染むようにする */
html {
  scroll-behavior: smooth;
  /* 上下：ページ端を越えるスクロールを止める
     左右：ファーストビューのキャラクターが画面幅より広いため、はみ出しを切り落とす。
     iOS / iPadOS の Safari は body への overflow-x が効かないので、ルート要素側で指定する。
     overflow-x: clip は対応ブラウザだけが解釈し、非対応環境では直前の hidden が使われる。 */
  overscroll-behavior: none;
  overflow-x: hidden;
  overflow-x: clip;
  background-color: #eaf9fe;
  background-image: url("assets/images/background.jpg");
  /* --bg-y はパララックス用にJSが書き換える。JSが動かない場合は -100px のまま */
  background-position: center var(--bg-y, -100px);
  background-repeat: repeat-y;
  /* 100% だとスクロールバーの幅ぶん足りず、右端に背景色の帯が出る。
     100vw はスクロールバーを含んだ幅なので、さらに40px余らせて確実に覆う。 */
  background-size: max(calc(100vw + 40px), 1440px) auto;
}

body {
  margin: 0;
  /* ヘッダーを position: fixed にした分の高さを確保する */
  padding-top: var(--header-h);
  color: var(--plum);
  font-family: "hiragino-kaku-gothic-pron", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  font-weight: 300;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

/* ===== ヘッダー（ウィンドウ上端に固定） ===== */
/* position: fixed にすることで、ページ末端を越えてスクロールしても位置が動かない */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  color: #fff;
  /* 段階を細かく刻み、下へ向かってゆるやかに透明へ抜けるようにする */
  background: linear-gradient(180deg,
    rgba(90, 10, 73, .80) 0%,
    rgba(84, 9, 68, .80) 20%,
    rgba(76, 9, 63, .79) 38%,
    rgba(69, 8, 58, .76) 52%,
    rgba(65, 8, 55, .70) 63%,
    rgba(65, 8, 55, .58) 72%,
    rgba(65, 8, 55, .42) 81%,
    rgba(65, 8, 55, .26) 88%,
    rgba(65, 8, 55, .12) 94%,
    rgba(65, 8, 55, .04) 98%,
    rgba(65, 8, 55, 0) 100%);
}

.header-inner {
  width: min(var(--content-width), calc(100% - var(--gutter) * 2));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  width: 180px;
}

/* 現在開いているページのリンク。トップ以外のページで .is-current を付ける */
.desktop-nav .is-current,
.footer-nav .is-current,
.mobile-nav .is-current {
  color: var(--pink);
}

.desktop-nav .is-current {
  position: relative;
}

.desktop-nav .is-current::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 3px;
  background: var(--pink);
  transform: skewX(-28deg);
}

.desktop-nav,
.footer-nav {
  display: flex;
  align-items: center;
  gap: 46px;
  font-family: "lexend-deca", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .06em;
}

.desktop-nav a,
.footer-nav a,
.section-heading > a {
  transition: color .2s ease, transform .2s ease;
}

@media (min-width: 1231px) and (hover: hover) {
  .desktop-nav a:hover,
  .footer-nav a:hover,
  .section-heading > a:hover {
    color: var(--pink);
    transform: translateY(-1px);
  }
}

.mobile-nav {
  display: none;
}

/* キャラクターやMODELSの画像は画面幅より広く配置するため、main の中で横だけ切り落とす。
   ルート要素の overflow-x: clip はスクロールを止めるが、はみ出し自体は残るため、
   モバイル表示ではレイアウトビューポートが広がり、position: fixed のヘッダーまで広くなってしまう。
   縦方向は脚がSCHEDULE側へ伸びるため visible のままにする。 */
main {
  overflow-x: clip;
  overflow-y: visible;
}

/* ヘッダーが固定のため、アンカー移動時に見出しが隠れないようにする */
main[id],
section[id] {
  scroll-margin-top: calc(var(--header-h) + 20px);
}

/* ===== ファーストビュー ===== */
/* キャラクター画像が画面幅より広いため、横方向だけ切り落とす。
   縦方向はSCHEDULE側へ脚を見せる必要があるので visible のままにする。 */
.opening {
  position: relative;
  min-height: 1560px;
}

.hero {
  position: relative;
  width: min(var(--content-width), calc(100% - var(--gutter) * 2));
  height: 620px;
  margin: 0 auto;
}

.hero h1 {
  position: absolute;
  z-index: 5;
  top: 365px;
  left: 0;
  margin: 0;
  line-height: 0;
}

/* ドロップシャドウはSVGに含まれないため、CSSで図形の形に沿って付ける */
/* 幅が狭くなるとキャラクターの顔が左へ寄ってくるため、タイトルを縮めて重なりを避ける。
   顔の中心は画面幅の56%、顔の横幅は約400px（＝中心から左へ200px）。
   左の余白56pxと20pxの間隔を確保するため、上限は 56vw − 276px。 */
.hero h1 img {
  width: clamp(220px, calc(56vw - 276px), 440px);
  max-width: 100%;
  filter: drop-shadow(5px 5px 0 rgba(255, 0, 152, .16));
}

/* TRANCKEY のアウトライン文字：キャラクターの背面・中央揃え */
.hero-outline {
  position: absolute;
  z-index: 1;
  top: 150px;
  left: 50%;
  color: transparent;
  -webkit-text-stroke: 2px var(--pink);
  font-family: "impact", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 230px;
  font-weight: 400;
  letter-spacing: .03em;
  line-height: 1;
  text-align: center;
  opacity: .45;
  transform: translateX(-50%) rotate(6deg);
  white-space: nowrap;
  pointer-events: none;
}

.hero-character {
  position: absolute;
  z-index: 2;
  top: -51px;
  left: 56%;
  display: block;
  /* 画像内で顔の中心は左から59.79%の位置（top-character.avif は 1716x2560）。
     左右をトリミングし直したときは、この値を測り直す。
     --char-y はパララックス用にJSが書き換える（PC時のみ） */
  transform: translate3d(-59.79%, var(--char-y, 0px), 0);
  will-change: transform;
  pointer-events: none;
}

.hero-character img {
  height: var(--hero-character-height);
  width: auto;
  max-width: none;
  display: block;
}

/* ===== メッセージ ===== */
/* 白地と2本の斜めのピンク線は message-back.png に含まれる（2560x1000・背景透過） */
.intro {
  position: absolute;
  z-index: 4;
  top: 600px;
  left: 0;
  width: 100%;
  height: 900px;
  background-image: url("assets/images/message-back.png");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.intro-inner {
  position: relative;
  z-index: 2;
  width: min(var(--content-width), calc(100% - var(--gutter) * 2));
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 500px;
  gap: 56px;
  align-items: center;
  /* 背景 message-back.png の白帯の中心は、900px換算で上から約438pxの位置にある。
     align-items: center は「高さ − padding」の中央に置くため、
     900 − 24 = 876 の中央 ＝ 438 になるよう下側の余白を24pxにする。 */
  padding-bottom: 24px;
}

/* 左のメッセージと右のタイムラインの中心を揃えるため、上の余白は入れない */
.intro-copy {
  padding: 0;
}

/* ===== 汎用のテキストスタイル =====
   特定のセクションに紐づけず、どのページでも使えるようにしている。
   .text-lead ＝ リード見出し、.text-body ＝ 本文。 */

/* リード見出し。源ノ角ゴシック（キットにあるのは Heavy = 900 のみ） */
.text-lead {
  margin: 0 0 28px;
  font-family: "source-han-sans-japanese", "hiragino-kaku-gothic-pron", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  font-size: 57px;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: .04em;
}

/* 本文。サイズはフォントサイズC（--font-c）に揃える */
.text-body {
  margin: 0;
  max-width: 800px;
  font-size: var(--font-c);
  font-weight: 600;
  line-height: 2;
  letter-spacing: .03em;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.intro-copy .social-links {
  margin-top: 28px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  transition: transform .2s ease;
}

@media (min-width: 1231px) and (hover: hover) {
  .social-links a:hover {
    transform: translateY(-3px);
  }
}

/* 高さを揃えて幅は自動。YouTube だけ横長で大きく見えるため90%に縮める */
.social-links img {
  width: auto;
  height: var(--social-icon-h);
  object-fit: contain;
}

.social-links .icon-youtube {
  height: calc(var(--social-icon-h) * .9);
}

/* 紹介のループ動画。枠・角丸はサムネイルと同じ基準（.stream-card などと同じ値） */
.intro-movie {
  display: block;
  width: 100%;
  height: 610px;
  object-fit: cover;
  background: var(--pink);
  border: 8px solid var(--pink);
  border-radius: 22px;
}

/* ===== 共通セクション ===== */
.content-section {
  position: relative;
  z-index: 10;
  width: min(var(--content-width), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 42px;
}

.section-heading h2 {
  margin: 0;
  color: var(--plum);
  font-family: "impact", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(66px, 6vw, 104px);
  font-weight: 400;
  line-height: .9;
  letter-spacing: .01em;
  text-shadow: 4px 4px 0 rgba(255, 0, 152, .12);
}

.section-heading > a {
  font-family: "lexend-deca", "Helvetica Neue", Arial, sans-serif;
  font-size: 27px;
  font-weight: 700;
  letter-spacing: .04em;
}

.section-heading-single {
  justify-content: flex-start;
}

/* 見出し行の右端に置く補足（Schedule ページ ARCHIVE の「20 STREAMS」、Pictures ページの「2026.09.16 Update」）。
   数字・日付を <strong>（DIN 2014・30px）、単位・語を小さい lexend-deca で添える */
.result-count {
  margin: 0 0 2px;
  align-self: flex-end;
  color: var(--pink);
  font-family: "lexend-deca", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: .1em;
  white-space: nowrap;
}

.result-count strong {
  margin-right: 5px;
  font-family: "din-2014", "Arial Narrow", Arial, sans-serif;
  font-size: 30px;
  font-weight: 700;
}

/* 背景と重なっても読めるようにする白い縁取り。
   文字を全方向（15度きざみで24方向）へずらした影の重ね合わせで作る。
   -webkit-text-stroke と違い角が尖らず、丸い（ラウンド結合の）縁になる。
   --outline-r が縁の太さ（片側）で、線幅としては倍の値にあたる。色は --outline-color で管理する。 */
/* .text-outline はどのページでもクラスを付けるだけで同じ縁取りになる汎用クラス
   （Schedule ページの説明文・ARCHIVE の文字などで使用） */
.section-heading > a,
.video-card figcaption,
.error-lead,
.error-sub,
.text-outline {
  --outline-r: 5px;
  --outline-color: #f6fcfc;
  text-shadow:
    calc(var(--outline-r) * 1.000) calc(var(--outline-r) * 0.000) 0 var(--outline-color),
    calc(var(--outline-r) * 0.966) calc(var(--outline-r) * 0.259) 0 var(--outline-color),
    calc(var(--outline-r) * 0.866) calc(var(--outline-r) * 0.500) 0 var(--outline-color),
    calc(var(--outline-r) * 0.707) calc(var(--outline-r) * 0.707) 0 var(--outline-color),
    calc(var(--outline-r) * 0.500) calc(var(--outline-r) * 0.866) 0 var(--outline-color),
    calc(var(--outline-r) * 0.259) calc(var(--outline-r) * 0.966) 0 var(--outline-color),
    calc(var(--outline-r) * 0.000) calc(var(--outline-r) * 1.000) 0 var(--outline-color),
    calc(var(--outline-r) * -0.259) calc(var(--outline-r) * 0.966) 0 var(--outline-color),
    calc(var(--outline-r) * -0.500) calc(var(--outline-r) * 0.866) 0 var(--outline-color),
    calc(var(--outline-r) * -0.707) calc(var(--outline-r) * 0.707) 0 var(--outline-color),
    calc(var(--outline-r) * -0.866) calc(var(--outline-r) * 0.500) 0 var(--outline-color),
    calc(var(--outline-r) * -0.966) calc(var(--outline-r) * 0.259) 0 var(--outline-color),
    calc(var(--outline-r) * -1.000) calc(var(--outline-r) * 0.000) 0 var(--outline-color),
    calc(var(--outline-r) * -0.966) calc(var(--outline-r) * -0.259) 0 var(--outline-color),
    calc(var(--outline-r) * -0.866) calc(var(--outline-r) * -0.500) 0 var(--outline-color),
    calc(var(--outline-r) * -0.707) calc(var(--outline-r) * -0.707) 0 var(--outline-color),
    calc(var(--outline-r) * -0.500) calc(var(--outline-r) * -0.866) 0 var(--outline-color),
    calc(var(--outline-r) * -0.259) calc(var(--outline-r) * -0.966) 0 var(--outline-color),
    calc(var(--outline-r) * -0.000) calc(var(--outline-r) * -1.000) 0 var(--outline-color),
    calc(var(--outline-r) * 0.259) calc(var(--outline-r) * -0.966) 0 var(--outline-color),
    calc(var(--outline-r) * 0.500) calc(var(--outline-r) * -0.866) 0 var(--outline-color),
    calc(var(--outline-r) * 0.707) calc(var(--outline-r) * -0.707) 0 var(--outline-color),
    calc(var(--outline-r) * 0.866) calc(var(--outline-r) * -0.500) 0 var(--outline-color),
    calc(var(--outline-r) * 0.966) calc(var(--outline-r) * -0.259) 0 var(--outline-color);
}

/* ===== SCHEDULE ===== */
/* .intro の下端（message-back.png の下面）から 260px 空ける。
   260px は SCHEDULE から NEW PICTURES までの余白（padding-bottom）と同じ値。 */
.schedule-section {
  margin-top: 200px;
  padding-bottom: 260px;
}

.schedule-grid {
  display: grid;
  /* auto-fit：入るだけ列を作り、余った列は畳んでカードを広げる。
     件数が増減しても列数が自動で変わる。min(100%, …) は狭い幅でのはみ出し防止。 */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 54px;
}

/* ===== 配信カード（トップページ SCHEDULE と Schedule ページ UPCOMING で共用） =====
   HTML は assets/js/stream-card.js の renderStreamCard() が生成する。
   構成：サムネイル（リンク）→ 日付・曜日・時刻 → タイトル → タグ → 「配信ページを見る」 */
.stream-card {
  min-width: 0;
  /* 日時の文字サイズをカード幅に追従させるため、コンテナクエリの基準にする */
  container-type: inline-size;
  /* 同じ行のカードは高さが揃う（grid の stretch）。本文を縦の flex にして、
     タイトルの行数が違ってもタグと「配信ページを見る」がカード下端で揃うようにする */
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: rgba(255, 255, 255, .95);
  border: 8px solid var(--pink);
  border-radius: 22px;
  box-shadow: 7px 8px 0 var(--cyan-shadow);
}

.stream-card > a {
  display: block;
  overflow: hidden;
  /* 枠と画像の間の隙間を枠と同じ色で埋める（.video-thumb-link と同じ対策） */
  background: var(--pink);
}

.stream-card > a img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform var(--thumb-hover-duration) ease;
}

@media (min-width: 1231px) and (hover: hover) {
  .stream-card > a:hover img {
    transform: scale(var(--thumb-hover-scale));
  }
}

.stream-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 30px 32px 32px;
}

/* タグ以降を下端へ寄せる */
.stream-card-body .stream-tags {
  margin-top: auto;
  padding-top: 15px;
}

/* 日付・曜日・時刻。左から同じ間隔（.12em）で並べ、時刻は右寄せしない。
   文字サイズは .stream-time にまとめ、曜日は倍率（.62em）で指定する。
   上限は 42px。カードが狭いときは折り返さず、幅に合わせて縮める：
   「12.25 WED 23:59」のように最も幅を取る文言に必要な幅は文字サイズの約6.6倍、
   本文の左右余白は 32px×2 なので、(カード内幅 − 64px) ÷ 6.6 を文字サイズにする */
.stream-time {
  display: flex;
  align-items: baseline;
  gap: .12em;
  color: var(--pink);
  font-family: "din-2014", "Arial Narrow", Arial, sans-serif;
  font-size: min(42px, calc((100cqi - 64px) / 6.6));
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.stream-time span {
  font-size: .62em;
  font-weight: 600;
}

.stream-time b {
  font-size: 1em;
}

.stream-card-body h3 {
  min-height: 68px;
  margin: 22px 0 12px;
  color: var(--plum);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.45;
}

/* タグ。種別ごとのクラスは stream-card.js が付与する
   - 配信プラットフォーム：YouTube は #ff0033、Twitch は #9146ff、それ以外は #6fc13e の背景に白文字
   - ゲーム名            ：不透明のグレー地 rgb(230 230 230) に紫文字
   - 配信内容            ：紫地に白文字
   - 参加メンバー        ：水色地に紫文字
   - コラボ              ：オレンジ地に紫文字 */
.stream-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 15px 0 0;
  padding: 0;
  list-style: none;
}

.stream-tags li {
  padding: 5px 9px 4px;
  color: var(--plum);
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: "lexend-deca", "Helvetica Neue", Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
}

.stream-tags .tag-platform {
  color: #fff;
  background: #6fc13e;
  border-color: #6fc13e;
}

.stream-tags .tag-platform.is-youtube {
  color: #fff;
  background: #ff0033;
  border-color: #ff0033;
}

.stream-tags .tag-platform.is-twitch {
  color: #fff;
  background: #9146ff;
  border-color: #9146ff;
}

.stream-tags .tag-game {
  background: rgb(230 230 230);
  border-color: rgb(230 230 230);
}

.stream-tags .tag-type {
  color: #fff;
  background: var(--plum);
  border-color: var(--plum);
}

.stream-tags .tag-member {
  color: var(--plum);
  background: var(--cyan);
  border-color: var(--cyan);
}

.stream-tags .tag-collab {
  color: var(--plum);
  background: #ffb95a;
  border-color: #ffb95a;
}

/* カード下部の「配信ページを見る」 */
.card-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  margin-top: 22px;
  color: #fff;
  background: var(--pink);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease;
}

@media (min-width: 1231px) and (hover: hover) {
  .card-link:hover {
    transform: translateY(-3px);
    background: var(--plum);
  }
}

/* 一覧に表示するものが無いときの案内枠（JS無効時の案内にも使う）。Schedule・Playlists で共用 */
.list-empty {
  margin: 0;
  padding: 44px 32px;
  background: rgba(255, 255, 255, .95);
  border: 4px dashed rgba(255, 0, 152, .55);
  border-radius: 18px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .06em;
  text-align: center;
}

/* ===== PICTURES ===== */
.pictures-section {
  padding-bottom: 270px;
}

.pictures-grid {
  display: grid;
  /* 280px：幅1024pxでも3列を保てる下限。PCで4件以上になると自動で4列になる */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 26px;
}

/* ===== 下線つきの小さなリンク（共通部品） =====
   ARCHIVE の「配信を見る >」、Playlists の「YouTubeで再生 >」。
   下線は text-decoration ではなく ::after の線で描く。text-decoration の下線には白縁取りの text-shadow も
   複製され、iPad の Safari では影ごとに skip-ink（文字と重なる部分の切り欠き）が入ってギザギザに見えるため。
   ::after は position: absolute で文字と影より手前に描かれるので、白い影に覆われない。 */
.text-link {
  position: relative;
  display: inline-block;
  margin-top: 16px;
  padding-bottom: 4px;
  color: var(--pink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: color .2s ease, transform .2s ease;
}

.text-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: currentColor;
}

@media (min-width: 1231px) and (hover: hover) {
  .text-link:hover {
    color: var(--plum);
    transform: translateX(3px);
  }
}

/* ===== 下層ページの枠（Schedule / Pictures / Playlists 共通） =====
   .page：main。.page-hero：ページタイトル。.page-content：本文の幅 */
.page {
  min-height: 100vh;
  padding: 90px 0 180px;
}

.page-hero,
.page-content {
  width: min(var(--content-width), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.page-hero {
  position: relative;
  padding: 72px 0 92px;
  text-align: center;
}

.page-hero h1 {
  margin: 0;
  color: var(--plum);
  font-family: "impact", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(86px, 10vw, 154px);
  font-weight: 400;
  line-height: .9;
  letter-spacing: .015em;
  text-shadow: 7px 7px 0 rgba(255, 0, 152, .16);
}

.page-content {
  padding-top: 70px;
}

/* Pictures ページの一覧はページ末尾の余白だけ足す */
.page .pictures-grid {
  padding-bottom: 54px;
}

/* ===== 丸いバッジ（共通部品） =====
   Schedule ページ ARCHIVE の月バッジ（SEPTEMBER など）と、NEW PICTURES のサイズボタンで同じ見た目。
   <a> に付けたときだけホバーで色が変わる */
.badge-pill {
  display: inline-block;
  padding: 7px 18px;
  color: #fff;
  background: var(--pink);
  border: 4px solid #fff;
  border-radius: 999px;
  box-shadow: 4px 5px 0 var(--cyan-shadow);
  font-family: "lexend-deca", "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .08em;
  text-align: center;
  white-space: nowrap;
}

a.badge-pill {
  transition: background .2s ease, transform .2s ease;
}

@media (min-width: 1231px) and (hover: hover) {
  a.badge-pill:hover {
    background: var(--plum);
    transform: translateY(-2px);
  }
}

/* サムネイルは写真（JPG・正方形）だけを画像にし、次は CSS で描く。
   - ピンクの枠・角丸・影（.picture-frame）：VIDEOS・SCHEDULE と同じ値（8px / 22px、SP は 5px / 15px）
   - 左上の「Wall paper PC / SP」：白文字にピンクの縁取り（.text-outline を色替えで流用）
   - サイズのボタン（.picture-sizes）：サムネイルの下に .badge-pill を並べ、これだけをリンクにする。
     サムネイル全体はリンクにせず、マウスを乗せても拡大しない */
.picture-card {
  min-width: 0;
  margin: 0;
}

/* ラベルの位置・大きさ（cqi）の基準にするため、枠をコンテナにする */
.picture-frame {
  position: relative;
  container-type: inline-size;
  overflow: hidden;
  /* 角丸で切り抜く際の隙間を枠と同じ色で埋める */
  background: var(--pink);
  border: 8px solid var(--pink);
  border-radius: 22px;
  box-shadow: 7px 8px 0 var(--cyan-shadow);
}

.picture-thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* 「Wall paper PC / SP」。位置・大きさは元のサムネイル画像（800px）の比率から決める。
   トップページの NEW PICTURES と Pictures ページの両方で使う。
   親（.picture-frame）を container-type: inline-size にしておくこと。
   .text-outline との二重クラスにして、SP 用の .text-outline { --outline-r: 3px } より優先させる */
.picture-label.text-outline {
  --outline-r: .22em;
  --outline-color: var(--pink);
  position: absolute;
  top: 6cqi;
  left: 8cqi;
  color: #fff;
  font-family: "lexend-deca", "Helvetica Neue", Arial, sans-serif;
  font-size: min(29px, 6.9cqi);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .01em;
}

/* サイズのボタン。サムネイルの下に中央揃えで並べる（影のぶん少し余白を取る） */
.picture-sizes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
}

/* 月バッジの1.5倍の大きさ（文字・余白・白枠・影をすべて1.5倍） */
.picture-sizes .badge-pill {
  padding: 10.5px 27px;
  border-width: 6px;
  box-shadow: 6px 7.5px 0 var(--cyan-shadow);
  font-size: 19.5px;
}

/* ===== VIDEOS ===== */
.videos-section {
  padding-bottom: 250px;
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 44px;
}

.video-card {
  min-width: 0;
  margin: 0;
}

/* リンク（ボタン）の範囲はサムネイルだけ。タイトルは含めない。
   サムネイルは「写真（JPG）」と「YouTube Link のドット帯（SVG）」の2枚重ね。
   - ピンクの枠・角丸・影：SCHEDULE の配信カード（.stream-card）と同じ値で CSS で描く。
     画像に含めると縮小時に枠の太さまで細くなるが、CSS の border なら画面幅に関わらず一定
   - ドット帯：ベクター（SVG）なので色が圧縮で変わらず、枠の --pink と同じ #ff0098 で一致する。
     JPG は枠の内側に収め、SVG だけを枠の下まで広げて重ねる */
.video-thumb-link {
  --video-border-width: 8px;
  --video-border-radius: 22px;
  position: relative;
  display: block;
  overflow: hidden;
  padding: var(--video-border-width);
  background: var(--pink);
  border-radius: var(--video-border-radius);
  box-shadow: 7px 8px 0 var(--cyan-shadow);
}

/* SVG の上から枠を描く。JPG は親の padding により枠の内側に収まる。 */
.video-thumb-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  box-sizing: border-box;
  border: var(--video-border-width) solid var(--pink);
  border-radius: inherit;
  pointer-events: none;
}

/* 拡大する JPG を枠の内側で切り抜き、外周へのはみ出しを防ぐ。 */
.video-thumb-window {
  display: block;
  overflow: hidden;
  border-radius: calc(var(--video-border-radius) - var(--video-border-width));
}

.video-thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform var(--thumb-hover-duration) ease;
}

@media (min-width: 1231px) and (hover: hover) {
  .video-thumb-link:hover .video-thumb {
    transform: scale(var(--thumb-hover-scale));
  }
}

.video-band {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* 動画タイトル：フォントサイズC。背景と重なっても読めるよう白い縁を付ける */
.video-card figcaption {
  margin: 24px 4px 0;
  color: var(--pink);
  font-size: var(--font-c);
  font-weight: 600;
  line-height: 1.45;
}

/* ===== MODELS ===== */
.models-section {
  min-height: 1500px;
}

.model-link {
  position: absolute;
  top: 130px;
  left: 50%;
  width: min(720px, 62vw);
  transform: translateX(-50%);
}

.model-link img {
  width: 100%;
  max-height: 1370px;
  object-fit: contain;
}

/* ===== 404ページ =====
   ページの枠とタイトルは共通の .page / .page-hero。本文は左に文章、右にキャラクター */
.error-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
  align-items: center;
  gap: 40px;
}

.error-lead {
  margin: 0 0 20px;
  color: var(--plum);
  font-family: "hiragino-kaku-gothic-pron", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 600;
}

.error-sub {
  margin: 0;
  color: var(--plum);
  font-family: "lexend-deca", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(18px, 1.9vw, 26px);
  font-weight: 700;
}

.error-character {
  width: 100%;
  height: auto;
  justify-self: center;
}

/* ===== フッター ===== */
.site-footer {
  position: relative;
  z-index: 30;
  min-height: 220px;
  padding: 34px 28px 20px;
  color: #fff;
  background: var(--plum);
}

.footer-inner {
  width: min(var(--content-width), 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 62px;
}

.footer-logo {
  width: 240px;
}

.site-footer small {
  display: block;
  margin-top: 24px;
  text-align: center;
  font-family: "lexend-deca", "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  font-weight: 400;
}

/* 丸Cは本文サイズのままだと小さく見えるため、少し大きく表示する */
.copyright-mark {
  font-size: 1.25em;
  line-height: 1;
  vertical-align: -.05em;
}

/* ===== タブレット（幅901px〜1230px） =====
   この幅では右の列が固定500pxのままだとメッセージ側が狭くなりすぎ、
   見出しが折り返してレイアウトが崩れる。
   固定幅の列を比率に変え、見出しを流動的な文字サイズにし、
   本文の強制改行を解除して自然に折り返させる。 */
/* NEW PICTURES：3列に必要な幅は 280px×3 + 26px×2 = 892px（コンテンツ幅）。
   左右の余白 56px×2 を足した 1004px 未満では2列になり、3件目だけが2行目に落ちて
   中途半端になるため、その幅では3件目を隠して1行2件にする（トップページのみ。Pictures ページは全件表示） */
@media (min-width: 901px) and (max-width: 1003px) {
  .pictures-section .picture-card:nth-child(n + 3) {
    display: none;
  }
}

@media (min-width: 901px) and (max-width: 1230px) {
  /* 右の列を固定幅から比率へ。メッセージ側の幅を確保する */
  .intro-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, .72fr);
    gap: 40px;
  }

  /* 右の枠は縦横比を保って縮める */
  .intro-movie {
    height: auto;
    aspect-ratio: 500 / 610;
  }

  /* 見出しは列幅に合わせて縮める */
  .text-lead {
    font-size: clamp(34px, 4.7vw, 57px);
  }

  /* 本文の強制改行は列に収まらないため解除し、自然な折り返しに任せる */
  .desktop-only {
    display: none;
  }
}

/* ===== SP ===== */
@media (max-width: 900px) {
  :root {
    --social-icon-h: 23px;
    --header-h: 74px;
    /* コンテンツの最大幅。PCのカード（SCHEDULE 613px / VIDEOS 618px）を
       超えないようにするための上限 */
    --sp-max: 620px;
    /* ファーストビューの寸法。VIRTUAL CREATOR の位置計算に使う */
    --sp-hero-h: 500px;
    --sp-intro-top: 445px;
  }

  body {
    background-size: auto 2500px;
  }

  .header-inner {
    width: min(var(--sp-max), calc(100% - 40px));
  }

  .header-logo {
    width: 110px;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    position: relative;
    display: block;
  }

  .mobile-nav summary {
    width: 42px;
    height: 42px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    list-style: none;
  }

  .mobile-nav summary::-webkit-details-marker {
    display: none;
  }

  .mobile-nav summary span {
    width: 24px;
    height: 3px;
    margin-left: auto;
    border-radius: 4px;
    background: #fff;
  }

  .mobile-nav nav {
    position: absolute;
    top: 42px;
    right: -15px;
    width: 190px;
    display: grid;
    padding: 18px 24px;
    background: rgba(65, 8, 55, .96);
    box-shadow: 0 12px 20px rgba(49, 0, 40, .2);
  }

  .mobile-nav nav a {
    padding: 11px 0;
    font-family: "lexend-deca", "Helvetica Neue", Arial, sans-serif;
    font-weight: 700;
    letter-spacing: .05em;
  }

  /* 帯の高さがメッセージの分量で変わるため、高さは内容に任せる。
     帯の下に絶対配置する紹介動画（余白40px＋高さ500px）ぶんだけ下に余白を確保する。 */
  .opening {
    min-height: 0;
    /* 絶対配置した紹介動画ぶんの高さ（幅 × 1.22）＋SCHEDULEまでの余白（他セクション間と同じ約160px） */
    padding-bottom: calc(min(122vw, 635px) + 155px);
  }

  .hero {
    width: min(var(--sp-max), calc(100% - 40px));
    height: var(--sp-hero-h);
  }

  /* 下端をメッセージ帯のすぐ上に置く */
  .hero h1 {
    top: auto;
    bottom: calc(var(--sp-hero-h) - var(--sp-intro-top) + 16px);
    left: 0;
  }

  .hero h1 img {
    width: min(300px, 62%);
  }

  .hero-outline {
    display: none;
  }

  /* SP用にトリミングした画像（1050x2560）を画面幅いっぱいに表示する */
  .hero-character {
    top: -62px;
    left: 0;
    width: 100%;
    transform: none;
  }

  .hero-character img {
    width: 100%;
    height: auto;
  }

  /* 帯の高さはメッセージ〜SNSアイコンの分量で決める（紹介動画は含めない）。
     上下に同じ余白を取ることで、帯の中心とメッセージの中心が一致する。
     幅を100%まで潰すと斜線の角度が急になりすぎるため、縦横比を保って中央を切り出す。 */
  .intro {
    position: relative;
    top: auto;
    /* .hero（高さ --sp-hero-h）の下端から重ねて、帯の上端を --sp-intro-top に合わせる */
    margin-top: calc(var(--sp-intro-top) - var(--sp-hero-h));
    height: auto;
    padding: 110px 0;
    background-size: auto 100%;
  }

  .intro-inner {
    position: static;
    width: min(var(--sp-max), calc(100% - 40px));
    height: auto;
    display: block;
    padding: 0;
  }

  .intro-copy {
    width: 100%;
    padding: 0;
  }

  .text-lead {
    margin-bottom: 18px;
    font-size: 36px;
    line-height: 1.45;
  }

  .text-body {
    max-width: 100%;
    line-height: 1.8;
  }

  .desktop-only {
    display: none;
  }

  .intro-copy .social-links {
    margin-top: 17px;
  }

  .social-links {
    gap: 15px;
  }

  .social-links a {
    height: 32px;
  }

  /* 帯の中心の計算に含めないよう絶対配置する。
     message-back.png の白地は画像の高さの86.3%で終わるため、その位置に合わせる。
     帯の高さが変わっても斜線との間隔が保たれる。 */
  /* 動画の比率（1000 : 1220）を保ったまま画面の左右端まで広げる。
     切り取りが起きないので、左上のロゴも欠けない。幅520pxを上限にして縦に伸びすぎるのを防ぐ。
     枠の太さは box-sizing: border-box のぶん幅に含まれる */
  .intro-movie {
    position: absolute;
    top: 86.3%;
    left: 50%;
    width: min(100vw, 520px);
    border-width: 5px;
    border-radius: 15px;
    height: auto;
    aspect-ratio: 1000 / 1220;
    margin-top: 66px;
    transform: translateX(-50%);
  }

  /* 幅900px付近でカードが大きくなりすぎるため上限を設ける。
     620pxはPCのカード幅（SCHEDULE 613px / VIDEOS 618px）に合わせた値。 */
  .content-section {
    width: min(var(--sp-max), calc(100% - 40px));
  }

  .section-heading {
    display: block;
    margin-bottom: 26px;
  }

  .section-heading h2 {
    font-size: clamp(49px, 13vw, 72px);
  }

  .section-heading > a {
    display: block;
    width: max-content;
    margin-top: 10px;
    font-size: 19px;
  }

  .result-count {
    font-size: 11px;
  }

  .result-count strong {
    display: block;
    margin: 0;
    font-size: 25px;
  }

  .page {
    padding: 40px 0 120px;
  }

  .page-hero,
  .page-content {
    width: min(var(--sp-max), calc(100% - 40px));
  }

  .page-hero {
    padding: 52px 0 65px;
  }

  .page-hero h1 {
    font-size: clamp(68px, 19vw, 108px);
  }

  .page-content {
    padding-top: 45px;
  }

  .page .pictures-grid {
    padding-bottom: 0;
  }

  .schedule-section {
    margin-top: 0;
    padding-bottom: 150px;
  }

  .schedule-grid,
  .videos-grid {
    gap: 32px;
  }

  .stream-card {
    border-width: 5px;
    border-radius: 15px;
    box-shadow: 5px 6px 0 var(--cyan-shadow);
  }

  .stream-card-body {
    padding: 26px 22px 25px;
  }

  .stream-time {
    font-size: min(42px, calc((100cqi - 44px) / 6.6));
  }

  .stream-card-body h3 {
    min-height: 0;
  }

  .pictures-section {
    padding-bottom: 160px;
  }

  .pictures-grid {
    grid-template-columns: minmax(0, 300px);
    justify-content: center;
    gap: 34px;
  }

  .picture-frame {
    border-width: 5px;
    border-radius: 15px;
    box-shadow: 5px 6px 0 var(--cyan-shadow);
  }

  .picture-sizes {
    margin-top: 22px;
  }

  .videos-section {
    padding-bottom: 160px;
  }

  .video-thumb-link {
    --video-border-width: 5px;
    --video-border-radius: 15px;
    box-shadow: 5px 6px 0 var(--cyan-shadow);
  }

  .section-heading > a,
  .video-card figcaption,
  .error-lead,
  .error-sub,
  .text-outline {
    --outline-r: 3px;
  }

  .video-card figcaption {
    margin-top: 14px;
  }

  /* 画像の高さ（幅590px × 縦横比1.852 ＝ 最大1080px）と上端96pxの合計。
     これより小さいとフッターが画像に重なる。 */
  .models-section {
    min-height: 1176px;
  }

  .model-link {
    top: 96px;
    width: min(590px, 145vw);
  }

  .model-link img {
    max-height: 1080px;
  }

  /* 404ページ：縦並びにして文字を中央寄せ、キャラクターを下へ置く */
  .error-section {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 24px;
    text-align: center;
  }

  .error-lead {
    margin-bottom: 14px;
  }

  .error-character {
    width: min(560px, 100%);
  }

  .site-footer {
    min-height: 0;
    padding: 24px 20px 20px;
  }

  .footer-inner {
    width: min(var(--sp-max), 100%);
    align-items: flex-start;
    gap: 20px;
  }

  .footer-brand {
    display: block;
  }

  .footer-logo {
    width: 150px;
  }

  .footer-brand .social-links {
    margin-top: 20px;
    justify-content: center;
  }

  .footer-nav {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 18px 24px;
    padding-top: 10px;
    font-size: 10px;
  }

  .site-footer small {
    margin-top: 28px;
    font-size: 10px;
  }
}

@media (max-width: 420px) {

  /* 画像の幅が142vwになるため、高さも画面幅に追従させる（142vw × 1.852 ≒ 263vw、上限1080px） */
  .models-section {
    min-height: calc(96px + min(263vw, 1080px));
  }

  .model-link {
    width: 142vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
