/*
 * キャラクター紹介サイトのテンプレート
 *
 * 色は site.json の theme.colors（昼）と theme.night（夜）から app.js が :root の変数に入れる
 * 夜のセクション（worlds で night）に入ると body に is-night が付き、色が夜に切り替わる
 * 世界観の型は body のクラスで切り替える：style-pop / style-dreamy / style-cool / style-cyber
 *
 * 重なり順：WebGL の背景 #world（0）→ 中身 #app（1）→ ヘッダー（100）→ 動画の再生（500）→ 読み込み画面（1000）
 */

:root {
  --primary: #F2ADB5;
  --deep: #D38D9D;
  --accent: #8FB8E8;
  --text: #6B4A5A;
  --bg: #FFF8FA;
  --n-primary: #8E7CC3;
  --n-deep: #F2ADB5;
  --n-accent: #5B6FD6;
  --n-text: #F3ECF8;
  --n-bg: #16142E;
  --card: rgba(255, 255, 255, 0.62);
  --line: rgba(255, 255, 255, 0.85);
  --shadow: 0 18px 50px rgba(150, 90, 110, 0.16);
  --radius: 28px;
  --font-ja: "M PLUS Rounded 1c", sans-serif;
  --font-en: "Quicksand", "M PLUS Rounded 1c", sans-serif;
  --font-display: "Quicksand", "M PLUS Rounded 1c", sans-serif;
  --font-copy: "M PLUS Rounded 1c", sans-serif;
  --emoji: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

/* 夜：文字と面の色を夜のものに */
body.is-night {
  --primary: var(--n-primary);
  --deep: var(--n-deep);
  --accent: var(--n-accent);
  --text: var(--n-text);
  --card: rgba(36, 30, 70, 0.5);
  --line: rgba(255, 255, 255, 0.16);
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ja);
  font-weight: 500;
  line-height: 1.9;
  letter-spacing: 0.04em;
  overflow-x: hidden;
  transition: color 0.8s;
}

body.is-loading {
  overflow: hidden;
}

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

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

ul {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

/* ============================================
   WebGL・読み込み画面・デモの印・動画の再生
   ============================================ */

#world {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
}

#app {
  position: relative;
  z-index: 1;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  background: var(--bg);
  transition: opacity 0.9s, visibility 0.9s;
}

.loader.is-done {
  opacity: 0;
  visibility: hidden;
}

.loader-icon {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: var(--shadow);
  object-fit: cover;
  animation: loader-float 2s ease-in-out infinite;
}

.loader-count {
  color: var(--deep);
  font-family: var(--font-en);
  font-size: 15px;
  letter-spacing: 0.3em;
}

@keyframes loader-float {
  50% { transform: translateY(-10px); }
}

.demo-badge {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 200;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(40, 20, 30, 0.72);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.08em;
  pointer-events: none;
}

.player {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(10, 6, 20, 0.82);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
}

.player.is-open {
  opacity: 1;
  visibility: visible;
}

.player-frame {
  width: min(1100px, 100%);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 20px;
  background: #000;
}

.player-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.player-close {
  position: absolute;
  top: 20px;
  right: 24px;
  color: #fff;
  font-family: var(--font-en);
  letter-spacing: 0.2em;
}

/* ============================================
   部品
   ============================================ */

.container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.sec {
  position: relative;
  padding: 150px 0;
}

/* 大きな英字の見出し＋日本語のラベル */
.ttl {
  margin-bottom: 60px;
}

.ttl-en {
  display: block;
  color: var(--deep);
  font-family: var(--font-display);
  font-size: clamp(60px, 10vw, 150px);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: 0.01em;
  transition: color 0.8s;
}

.ttl-en .ch,
.split .ch {
  display: inline-block;
}

.ttl-ja {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.ttl-ja::before {
  content: "";
  width: 30px;
  height: 2px;
  background: var(--primary);
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background-color 0.8s, border-color 0.8s;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  border-radius: 999px;
  background: var(--deep);
  color: #fff;
  font-family: var(--font-en);
  font-weight: 700;
  letter-spacing: 0.1em;
  box-shadow: 0 10px 30px color-mix(in srgb, var(--deep) 35%, transparent);
  transition: transform 0.3s, background-color 0.8s;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.72);
  color: var(--deep);
  box-shadow: none;
}

.emoji {
  font-family: var(--emoji);
}

/* 本人の言葉が流れるテロップ */
.ticker {
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding: 14px 0;
  background: var(--deep);
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
  transform: rotate(-2deg);
  margin: 0 -40px;
  transition: background-color 0.8s;
}

.ticker-track {
  display: inline-flex;
  animation: ticker 40s linear infinite;
}

.ticker-track span {
  padding-right: 2.6em;
}

@keyframes ticker {
  to { transform: translateX(-50%); }
}

/* ============================================
   ヘッダー
   ============================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 28px;
  transition: background-color 0.4s, padding 0.4s;
}

.site-header.is-scrolled {
  padding-top: 10px;
  padding-bottom: 10px;
  background: color-mix(in srgb, var(--card) 70%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-logo {
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-en);
  font-weight: 700;
  letter-spacing: 0.12em;
}

.site-logo img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid #fff;
  object-fit: cover;
}

.gnav ul {
  display: flex;
  gap: 22px;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.gnav a {
  position: relative;
}

.gnav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--deep);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s;
}

.gnav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

@media (max-width: 1000px) {
  .gnav {
    display: none;
  }
}

/* ============================================
   HERO：画面に貼りついたまま、スクロールで絵がモチーフになって飛んでいく
   ============================================ */

.hero {
  position: relative;
  height: 260vh;
}

.hero-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

/* 名前の英字を、キャラクターの左上と右下に大きく置く */
.hero-word {
  position: absolute;
  color: var(--deep);
  font-family: var(--font-display);
  font-size: clamp(64px, 12.5vw, 210px);
  font-weight: 500;
  line-height: 0.85;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.hero-word--1 {
  top: 15vh;
  left: 4vw;
}

.hero-word--2 {
  right: 4vw;
  bottom: 9vh;
  -webkit-text-stroke: 1.5px var(--deep);
  color: transparent;
}

.hero-side {
  position: absolute;
  left: 5vw;
  bottom: 12vh;
  width: min(360px, 34vw);
}

.hero-greeting {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--deep);
  font-size: 13px;
  font-weight: 700;
}

.hero-name {
  font-size: clamp(28px, 2.8vw, 42px);
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.3;
}

.hero-name small {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.25em;
  opacity: 0.8;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

/* 縦書きのキャッチ */
.hero-catch {
  position: absolute;
  top: 18vh;
  right: 6vw;
  writing-mode: vertical-rl;
  font-family: var(--font-copy);
  font-size: clamp(18px, 1.8vw, 26px);
  font-weight: 700;
  letter-spacing: 0.4em;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.9);
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.4em;
  color: var(--deep);
}

.hero-scroll::after {
  content: "";
  display: block;
  width: 1px;
  height: 46px;
  margin: 8px auto 0;
  background: var(--deep);
  animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* 飛び立ったあとに出てくる一言 */
.hero-after {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-copy);
  font-size: clamp(22px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: 0.3em;
  opacity: 0;
  pointer-events: none;
}

/* WebGL が使えないとき・動きを減らす設定のときの絵 */
.hero-fallback {
  position: absolute;
  right: 10vw;
  bottom: 0;
  height: 92vh;
  width: auto;
  display: none;
}

.no-webgl .hero-fallback {
  display: block;
}

@media (max-width: 900px) {
  .hero-word--1 {
    top: 11vh;
  }

  .hero-word--2 {
    bottom: 38vh;
  }

  .hero-side {
    left: 24px;
    right: 24px;
    bottom: 8vh;
    width: auto;
  }

  .hero-catch {
    top: 22vh;
    right: 16px;
    font-size: 16px;
  }
}

/* ============================================
   POINTS：画面に貼りついたまま、横に流れるパネル
   ============================================ */

.points {
  position: relative;
}

.points-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.points-head {
  position: absolute;
  top: 12vh;
  left: max(24px, calc((100% - 1180px) / 2));
}

.points-head .ttl {
  margin-bottom: 0;
}

.points-track {
  display: flex;
  gap: 6vw;
  padding: 18vh 10vw 0;
  will-change: transform;
}

.point {
  flex: 0 0 min(980px, 78vw);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.point-no {
  display: block;
  color: transparent;
  font-family: var(--font-display);
  font-size: clamp(90px, 12vw, 190px);
  line-height: 0.8;
  -webkit-text-stroke: 1.5px var(--deep);
}

.point-en {
  display: block;
  margin-top: 10px;
  color: var(--deep);
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.35em;
}

.point-title {
  margin: 6px 0 16px;
  font-family: var(--font-copy);
  font-size: clamp(26px, 2.8vw, 40px);
  font-weight: 700;
  line-height: 1.4;
}

.point-text {
  max-width: 34em;
}

.point-img {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px 999px 30px 30px;
  box-shadow: 0 30px 80px rgba(150, 90, 110, 0.22);
}

.point-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
}

.points-bar {
  position: absolute;
  left: 10vw;
  right: 10vw;
  bottom: 8vh;
  height: 2px;
  background: color-mix(in srgb, var(--deep) 20%, transparent);
}

.points-bar span {
  display: block;
  height: 100%;
  background: var(--deep);
  transform-origin: left;
  transform: scaleX(0);
}

@media (max-width: 900px) {
  .points-stage {
    position: static;
    height: auto;
    padding: 120px 0 40px;
  }

  .points-head {
    position: static;
    padding: 0 24px 40px;
  }

  .points-track {
    flex-direction: column;
    padding: 0 24px;
    gap: 70px;
  }

  .point {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .point-img {
    max-width: 320px;
  }

  .points-bar {
    display: none;
  }
}

/* ============================================
   PROFILE：絵を切り替えられるキャラクター紹介
   ============================================ */

.profile-sec {
  overflow: hidden;
}

/* 背景に流れる大きな英字 */
.profile-marquee {
  position: absolute;
  top: 46%;
  left: 0;
  z-index: -1;
  color: transparent;
  font-family: var(--font-display);
  font-size: clamp(120px, 20vw, 300px);
  line-height: 1;
  white-space: nowrap;
  -webkit-text-stroke: 1px color-mix(in srgb, var(--deep) 30%, transparent);
  animation: ticker 60s linear infinite;
}

.profile {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 60px;
  align-items: center;
}

.profile-visual {
  position: relative;
  aspect-ratio: 4 / 5;
}

/* 絵の後ろの丸と、回る文字の輪 */
.profile-halo {
  position: absolute;
  inset: 8% 4% 4%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #fff 0%, color-mix(in srgb, var(--primary) 45%, #fff) 60%, transparent 72%);
}

.profile-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: spin 40s linear infinite;
}

.profile-ring text {
  fill: var(--deep);
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.4em;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.profile-art {
  position: absolute;
  inset: 4% 6% 0;
  display: grid;
  place-items: end center;
}

.profile-art img {
  max-height: 100%;
  width: auto;
  transition: opacity 0.45s, transform 0.6s;
}

/* 切り抜きでない絵は、角の丸い枠に入れる */
.profile-art img.is-framed {
  height: 82%;
  margin-bottom: 8%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 15%;
  border: 8px solid #fff;
  border-radius: 999px 999px 30px 30px;
  box-shadow: var(--shadow);
}

.profile-art img.is-fading {
  opacity: 0;
  transform: translateY(20px) scale(0.97);
}

.profile-sticker {
  position: absolute;
  font-size: 46px;
  filter: drop-shadow(0 8px 14px rgba(120, 60, 90, 0.2));
  animation: loader-float 5s ease-in-out infinite;
}

.profile-thumbs {
  position: absolute;
  left: -10px;
  top: 50%;
  display: grid;
  gap: 12px;
  transform: translateY(-50%);
}

.profile-thumb {
  width: 64px;
  height: 64px;
  overflow: hidden;
  border: 4px solid #fff;
  border-radius: 50%;
  box-shadow: var(--shadow);
  transition: transform 0.3s, border-color 0.3s;
}

.profile-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 12%;
}

.profile-thumb:hover {
  transform: scale(1.08);
}

.profile-thumb.is-active {
  border-color: var(--deep);
}

.profile-card {
  padding: 46px 44px 40px;
}

.profile-greeting {
  display: inline-block;
  padding: 3px 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 30%, #fff);
  color: var(--deep);
  font-size: 12px;
  font-weight: 800;
}

.profile-name {
  margin-top: 10px;
  color: var(--deep);
  font-size: 42px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.08em;
}

.profile-name small {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.3em;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.stat {
  padding: 14px 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.stat strong {
  display: block;
  color: var(--deep);
  font-family: var(--font-en);
  font-size: 30px;
  line-height: 1.1;
}

.stat small {
  font-size: 11px;
  font-weight: 700;
}

.profile-intro {
  margin-bottom: 22px;
  white-space: pre-line;
}

.profile-data {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 22px;
  padding: 18px 0;
  border-top: 1px dashed var(--primary);
  border-bottom: 1px dashed var(--primary);
  font-size: 14px;
}

.profile-data dt {
  color: var(--deep);
  font-weight: 700;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.chip {
  padding: 6px 16px;
  border-radius: 999px;
  background: #fff;
  color: var(--deep);
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 900px) {
  .profile {
    grid-template-columns: 1fr;
  }

  .profile-visual {
    max-width: 440px;
    width: 100%;
    margin: 0 auto;
  }

  .profile-card {
    padding: 32px 22px;
  }
}

/* ============================================
   MOVIE：動画が画面いっぱいに広がる
   ============================================ */

.movie-sec {
  position: relative;
  height: 220vh;
}

.movie-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.movie-feature {
  position: relative;
  width: 100%;
  height: 100%;
  clip-path: inset(22vh 18vw round 32px);
  will-change: clip-path;
}

.movie-feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.15);
}

.movie-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(30, 10, 25, 0.65));
}

.movie-feature-copy {
  position: absolute;
  left: 6vw;
  bottom: 8vh;
  z-index: 1;
  max-width: 760px;
  color: #fff;
}

.movie-feature-copy .ttl-en {
  color: #fff;
}

.movie-feature-title {
  margin-top: 14px;
  font-size: clamp(15px, 1.4vw, 19px);
  font-weight: 700;
}

.play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--deep);
  font-size: 26px;
  transform: translate(-50%, -50%);
  transition: transform 0.3s;
}

.play::before {
  content: "";
  position: absolute;
  inset: -14px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  animation: ripple 2.4s ease-out infinite;
}

.play:hover {
  transform: translate(-50%, -50%) scale(1.06);
}

@keyframes ripple {
  from { transform: scale(0.85); opacity: 1; }
  to { transform: scale(1.5); opacity: 0; }
}

/* 最新の動画の列 */
.rail-wrap {
  padding: 90px 0 40px;
}

.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(380px, 78vw);
  gap: 24px;
  overflow-x: auto;
  padding: 10px max(24px, calc((100% - 1180px) / 2)) 24px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.rail::-webkit-scrollbar {
  display: none;
}

.rail > * {
  scroll-snap-align: start;
}

.movie-card-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 4px solid #fff;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.movie-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}

.movie-card:hover .movie-card-thumb img {
  transform: scale(1.06);
}

.movie-card-date {
  margin-top: 12px;
  color: var(--deep);
  font-family: var(--font-en);
  font-size: 12px;
}

.movie-card-title {
  overflow: hidden;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.rail-more {
  margin-top: 20px;
  text-align: center;
}

/* ============================================
   GALLERY：大きな見出しは止まったまま、絵がスクロールで切り替わる
   ============================================ */

.gallery-sec {
  position: relative;
}

.gallery-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.gallery-ttl {
  position: absolute;
  top: 11vh;
  left: max(24px, calc((100% - 1180px) / 2));
}

.gallery-frame {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(40vw, 520px);
  aspect-ratio: 3 / 4;
  transform: translate(-50%, -44%);
}

.gallery-img {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 40px 90px rgba(150, 90, 110, 0.25);
  clip-path: inset(100% 0 0 0 round 24px);
}

.gallery-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
}

.gallery-caption {
  position: absolute;
  bottom: 14vh;
  left: max(24px, calc((100% - 1180px) / 2));
  max-width: 280px;
}

.gallery-caption-title {
  color: var(--deep);
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1.1;
}

.gallery-caption-text {
  margin-top: 10px;
  font-size: 14px;
}

.gallery-count {
  position: absolute;
  right: max(24px, calc((100% - 1180px) / 2));
  bottom: 14vh;
  color: var(--deep);
  font-family: var(--font-display);
  font-size: 54px;
  line-height: 1;
}

.gallery-count small {
  font-size: 20px;
}

@media (max-width: 900px) {
  .gallery-frame {
    width: 72vw;
  }

  .gallery-caption {
    bottom: 6vh;
  }

  .gallery-count {
    top: 12vh;
    bottom: auto;
    font-size: 36px;
  }
}

/* ============================================
   TOPICS：大きな絵と色の面を重ねたコラージュ
   ============================================ */

.topics {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(80px, auto);
}

.topics-img {
  grid-column: 1 / 7;
  grid-row: 1 / 7;
  overflow: hidden;
  border-radius: var(--radius);
}

.topics-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 15%;
}

.topics-block {
  position: relative;
  z-index: 1;
  padding: 34px 38px;
  border-radius: var(--radius);
  background: var(--deep);
  color: #fff;
  box-shadow: var(--shadow);
}

.topics-block--a {
  grid-column: 6 / 13;
  grid-row: 2 / 5;
}

.topics-block--b {
  grid-column: 4 / 11;
  grid-row: 6 / 8;
  margin-top: -40px;
  background: color-mix(in srgb, var(--accent) 80%, #fff);
}

.topics-block h3 {
  margin-bottom: 12px;
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 0.3em;
  opacity: 0.85;
}

.topic {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 4px 16px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.topic-date {
  font-family: var(--font-en);
  font-size: 13px;
}

.topic-cat {
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 0.15em;
}

.topic-title {
  font-weight: 700;
}

.topic:hover .topic-title {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .topics {
    display: block;
  }

  .topics-img {
    aspect-ratio: 4 / 3;
  }

  .topics-block {
    margin: -40px 12px 0;
  }

  .topic {
    grid-template-columns: auto 1fr;
  }

  .topic-title {
    grid-column: 1 / -1;
  }
}

/* ============================================
   STATEMENT：夜に入る一言（スクロールで1文字ずつ灯る）
   ============================================ */

.statement {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 160px 24px;
  text-align: center;
}

.statement-text {
  font-family: var(--font-copy);
  font-size: clamp(30px, 5vw, 68px);
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 0.2em;
  white-space: pre-line;
}

.statement-text .ch {
  opacity: 0.12;
}

.statement-moon {
  display: block;
  margin-bottom: 30px;
  font-size: 44px;
}

/* ============================================
   SUPPORT・HASHTAG・CONTACT・フッター
   ============================================ */

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 28px;
  transition: transform 0.3s, background-color 0.8s;
}

.link-card:hover {
  transform: translateY(-4px);
}

.link-card .emoji {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #fff;
  font-size: 26px;
}

.link-card strong {
  display: block;
  font-size: 18px;
}

.link-card small {
  font-size: 12px;
  opacity: 0.8;
}

.contact {
  padding: 70px 40px;
  text-align: center;
}

.contact p {
  margin-bottom: 26px;
  font-size: 18px;
  font-weight: 700;
}

.site-footer {
  position: relative;
  z-index: 1;
  padding: 80px 0 100px;
  text-align: center;
  font-size: 12px;
}

.footer-name {
  margin-bottom: 18px;
  color: var(--deep);
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 110px);
  line-height: 1;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 18px;
  font-family: var(--font-en);
  font-weight: 700;
  letter-spacing: 0.12em;
}

/* ============================================
   世界観の型
   ============================================ */

/* dreamy：細い斜体の英字、明朝のコピー、グラデーションの文字 */
.style-dreamy {
  --font-display: "Cormorant Garamond", "Shippori Mincho", serif;
  --font-copy: "Shippori Mincho", serif;
}

.style-dreamy .ttl-en,
.style-dreamy .hero-word,
.style-dreamy .footer-name,
.style-dreamy .gallery-caption-title {
  font-style: italic;
}

.style-dreamy .ttl-en .ch {
  padding-right: 0.04em;
  background: linear-gradient(160deg, var(--deep) 20%, var(--accent) 60%, var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* pop：太い丸文字、白いフチ、傾いた枠 */
.style-pop {
  --font-display: "Fredoka", "Mochiy Pop One", sans-serif;
  --font-copy: "Mochiy Pop One", sans-serif;
  --card: #fff;
  --line: var(--primary);
  --radius: 26px;
}

.style-pop .card {
  border-width: 3px;
  backdrop-filter: none;
}

.style-pop .ttl-en,
.style-pop .hero-word--1 {
  -webkit-text-stroke: 3px #fff;
  paint-order: stroke fill;
  text-shadow: 6px 6px 0 var(--primary);
}

.style-pop .point-img,
.style-pop .gallery-img {
  transform: rotate(-2deg);
}

/* cool：色数を絞り、四角い枠と巨大な英字 */
.style-cool {
  --font-display: "Inter Tight", sans-serif;
  --font-copy: "Zen Kaku Gothic New", sans-serif;
  --radius: 0;
  --card: rgba(255, 255, 255, 0.82);
  --shadow: none;
}

.style-cool .ttl-en,
.style-cool .hero-word {
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.style-cool .btn,
.style-cool .point-img,
.style-cool .gallery-img,
.style-cool .movie-card-thumb {
  border-radius: 0;
}

/* cyber：黒地と、昔の OS のウィンドウ風の枠 */
.style-cyber {
  --font-display: "DotGothic16", monospace;
  --font-copy: "DotGothic16", sans-serif;
  --bg: #0E0B14;
  --text: #EDE6F5;
  --card: rgba(20, 16, 30, 0.75);
  --line: rgba(255, 255, 255, 0.25);
  --radius: 6px;
}

.style-cyber .card {
  position: relative;
  padding-top: 44px;
}

.style-cyber .card::before {
  content: "● ● ●   window.exe";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 6px 14px;
  border-bottom: 1px solid var(--line);
  font-family: "DotGothic16", monospace;
  font-size: 11px;
  opacity: 0.8;
}

/* ============================================
   動きを減らす設定のとき
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .hero,
  .movie-sec {
    height: auto;
  }

  .hero-stage,
  .movie-stage,
  .points-stage,
  .gallery-stage {
    position: relative;
    height: auto;
    min-height: 100vh;
  }

  .movie-feature {
    clip-path: none;
    height: 70vh;
  }

  .gallery-img {
    clip-path: none;
  }
}

/* ============================================
   MUSIC：大きな1曲と、曲のリスト
   ============================================ */

.music {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: start;
}

.music-feature-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 6px solid #fff;
  border-radius: var(--radius);
  box-shadow: 0 30px 70px rgba(120, 30, 60, 0.25);
}

.music-feature-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s;
}

.music-feature:hover .music-feature-thumb img {
  transform: scale(1.05);
}

.music-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  padding-left: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--deep);
  font-size: 22px;
  transform: translate(-50%, -50%);
}

.music-kind {
  margin-top: 18px;
  color: var(--deep);
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.35em;
}

.music-title {
  font-family: var(--font-copy);
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.4;
}

.music-credit {
  font-size: 13px;
  opacity: 0.8;
}

.tracks {
  counter-reset: none;
}

.track {
  display: grid;
  grid-template-columns: auto 120px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--deep) 25%, transparent);
  transition: padding 0.3s, background-color 0.3s;
}

.track:hover {
  padding-left: 10px;
}

.track-no {
  color: var(--deep);
  font-family: var(--font-display);
  font-size: 28px;
}

.track-thumb {
  width: 120px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
}

.track-text strong {
  display: block;
  font-size: 15px;
  line-height: 1.5;
}

.track-text small {
  font-size: 12px;
  opacity: 0.75;
}

@media (max-width: 900px) {
  .music {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   EVENT：ライブの告知とカウントダウン
   ============================================ */

.event {
  position: relative;
  min-height: 110vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  overflow: hidden;
}

.event-img {
  position: relative;
  height: 110vh;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, #000 60%, transparent);
  mask-image: linear-gradient(90deg, #000 60%, transparent);
}

.event-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
}

.event-body {
  position: relative;
  z-index: 1;
  padding: 80px max(24px, calc((100vw - 1180px) / 2)) 80px 40px;
}

.event-label {
  color: var(--deep);
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.4em;
}

.event-title {
  margin: 10px 0 16px;
  font-family: var(--font-copy);
  font-size: clamp(34px, 4.2vw, 62px);
  line-height: 1.3;
}

.event-date {
  color: var(--deep);
  font-family: var(--font-display);
  font-size: clamp(48px, 6.5vw, 96px);
  line-height: 1;
}

.countdown {
  display: flex;
  gap: 14px;
  margin: 30px 0;
}

.countdown div {
  min-width: 92px;
  padding: 14px 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  text-align: center;
  backdrop-filter: blur(10px);
}

.countdown strong {
  display: block;
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.countdown small {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.25em;
}

.event-note {
  margin-bottom: 26px;
  white-space: pre-line;
}

@media (max-width: 900px) {
  .event {
    grid-template-columns: 1fr;
  }

  .event-img {
    height: 60vh;
    -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent);
    mask-image: linear-gradient(180deg, #000 60%, transparent);
  }

  .event-body {
    padding: 0 24px 80px;
  }

  .countdown div {
    min-width: 0;
    flex: 1;
  }
}

/* 動画の上の大きな見出しは1行に収める */
.movie-feature-copy .ttl-en {
  font-size: clamp(48px, 7vw, 110px);
  white-space: nowrap;
}

/* ============================================
   ぷちきら素材屋のサンプルサイト用（2026-10-23 追加）
   「架空の VTuber のサンプルです」の案内と、制作のご依頼への導線
   ============================================ */

.sp { display: none; }

.hero-sample {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.6;
  opacity: 0.85;
}

.sample-sec { padding-top: 90px; padding-bottom: 40px; }

.sample-card {
  max-width: 880px;
  margin: 0 auto;
  padding: 44px 40px;
  text-align: center;
}

.sample-label {
  display: inline-block;
  padding: 4px 16px;
  border-radius: 999px;
  background: var(--deep);
  color: #fff;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.sample-title {
  margin: 18px 0 14px;
  font-size: clamp(20px, 2.6vw, 28px);
  line-height: 1.6;
}

.sample-title strong { color: var(--deep); }
.sample-title small { display: inline-block; font-size: 0.7em; margin-left: 4px; }

.sample-text {
  max-width: 640px;
  margin: 0 auto;
  font-size: 14px;
  line-height: 1.9;
}

.sample-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}

.sample-btns .btn { font-family: inherit; letter-spacing: 0.04em; }

.player-sample {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  height: 100%;
  padding: 24px;
  background: linear-gradient(135deg, #FFE3EF, #E9E0FF);
  color: #8A5A7A;
  text-align: center;
  line-height: 1.7;
}

.demo-badge {
  pointer-events: auto;
  max-width: calc(100vw - 32px);
}

.demo-badge a { color: #fff; text-decoration: underline; }

@media (max-width: 900px) {
  .sp { display: inline; }
  .sample-sec { padding-top: 60px; }
  .sample-card { padding: 32px 20px; }
  .sample-btns .btn { width: 100%; justify-content: center; padding: 14px 18px; font-size: 14px; }
  .hero-sample { font-size: 11px; }
}

/* 夜のセクションでもボタンの文字が読めるように */
body.is-night .btn { background: #E0609F; }
body.is-night .btn--ghost { background: rgba(255, 255, 255, 0.12); color: #fff; border: 1px solid rgba(255, 255, 255, 0.55); }

@media (max-width: 900px) {
  .hero-sample { display: inline-block; padding: 4px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.8); }
  .sample-title { font-size: 18px; word-break: keep-all; overflow-wrap: anywhere; }
  .profile-name { font-size: clamp(28px, 9vw, 40px); }
}

/* 斜めのテロップなどで横にはみ出して、スマホで画面が縮んで見えるのを防ぐ（sticky を壊さない clip で） */
html, body { overflow-x: clip; }

/* サンプルの動画の案内は、動画の枠（16:9）に収まらないので高さを自由に */
.player-frame:has(.player-sample) { aspect-ratio: auto; width: min(560px, 100%); }

@media (max-width: 900px) {
  .pc-only { display: none; }
  .demo-badge { left: 10px; bottom: 10px; padding: 5px 12px; font-size: 10px; letter-spacing: 0.04em; }
}
