/* ============================================================
   D-Lab Landing Page — Chalkboard Design System
   Design: plans/design-system.md
   Architecture: plans/tech-architecture.md
   ============================================================ */

/* --- Custom Properties --- */
:root {
  /* Background */
  --bg-primary: #151515;
  --bg-secondary: #1a1a1a;
  --bg-elevated: #222222;
  --bg-blackboard: #0f0f0f;

  /* Blue palette */
  --blue-50: #e8f4fd;
  --blue-200: #88c6f1;
  --blue-400: #3a9de5;
  --blue-500: #2196F3;
  --blue-600: #1b7acc;
  --blue-glow: rgba(33, 150, 243, 0.3);
  --blue-chalk: rgba(33, 150, 243, 0.15);

  /* Chalk colors */
  --chalk-white: #f0ece4;
  --chalk-white-bright: #faf8f5;
  --chalk-white-dim: rgba(240, 236, 228, 0.7);
  --chalk-white-faint: rgba(240, 236, 228, 0.4);
  --chalk-yellow: #ffd54f;
  --chalk-green: #81c784;
  --chalk-pink: #f48fb1;
  --chalk-orange: #ffb74d;

  /* Fonts — design-agent統合版 (Yusei Magic + Rock Salt) */
  --font-heading: 'Yusei Magic', cursive;
  --font-body: 'Zen Maru Gothic', 'Hiragino Maru Gothic Pro', sans-serif;
  --font-display: 'Rock Salt', cursive;
  --font-number: 'Caveat', 'Yusei Magic', cursive;

  /* Letter spacing */
  --ls-heading: 0.08em;
  --ls-body: 0.04em;
  --ls-cta: 0.1em;
  --ls-display: 0.12em;

  /* Layout */
  --max-width: 1200px;
  --nav-height: 60px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  color: var(--chalk-white);
  font-family: var(--font-body);
  font-size: clamp(0.98rem, 1.8vw, 1.06rem);
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: var(--ls-body);
  overflow-x: hidden;
  background-color: var(--bg-primary);
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(255, 255, 255, 0.015) 0%, transparent 70%),
    radial-gradient(ellipse at 80% 30%, rgba(255, 255, 255, 0.01) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 50%, rgba(30, 30, 35, 1) 0%, rgba(21, 21, 21, 1) 100%);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* --- Skip Link (WCAG 2.4.1) --- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 10000;
  background: var(--blue-500);
  color: #fff;
  padding: 0.75em 1.5em;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 0 0 8px 0;
  text-decoration: none;
}

.skip-link:focus {
  position: fixed;
  left: 0;
  top: 0;
  width: auto;
  height: auto;
  outline: 3px solid var(--chalk-yellow);
  outline-offset: 2px;
}

/* --- Focus Indicators (WCAG 2.4.7) --- */
:focus-visible {
  outline: 2px solid var(--blue-400);
  outline-offset: 3px;
}

.navbar-link:focus-visible,
.btn-cta-primary:focus-visible,
.btn-cta-secondary:focus-visible,
.faq-question:focus-visible {
  outline: 2px solid var(--chalk-yellow);
  outline-offset: 3px;
  border-radius: 4px;
}

strong {
  font-weight: 700;
  color: var(--chalk-white-bright);
}

/* Screen-reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Grain Overlay --- */
.grain {
  position: fixed;
  inset: -50px;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.12;
  mix-blend-mode: overlay;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.15) 0.5px, transparent 0.7px),
    radial-gradient(circle at 70% 40%, rgba(255, 255, 255, 0.12) 0.5px, transparent 0.8px),
    radial-gradient(circle at 45% 80%, rgba(255, 255, 255, 0.08) 0.4px, transparent 0.7px);
  background-size: 3px 3px, 4px 4px, 5px 5px;
  will-change: transform;
  animation: dustDrift 22s linear infinite;
}
@media (max-width: 767px) {
  .grain { animation: none; opacity: 0.06; }
}

@keyframes dustDrift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-3.5%, -3.5%); }
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 60px 0;
  position: relative;
}

/* --- Chalk Text Utilities --- */
.chalk-text {
  color: var(--chalk-white);
  text-shadow:
    0 0 5px rgba(240, 236, 228, 0.15),
    0 0 15px rgba(240, 236, 228, 0.06);
}

.chalk-text-bold {
  color: var(--chalk-white-bright);
  text-shadow:
    0 0 7px rgba(250, 248, 245, 0.25),
    1px 1px 2px rgba(0, 0, 0, 0.8);
}

.chalk-text-blue {
  color: var(--blue-400);
  text-shadow:
    0 0 7px var(--blue-glow),
    0 0 20px rgba(33, 150, 243, 0.1);
}

.chalk-text-yellow {
  color: var(--chalk-yellow);
  text-shadow:
    0 0 7px rgba(255, 213, 79, 0.3),
    0 0 14px rgba(255, 213, 79, 0.15);
}

/* --- Section Divider --- */
.section-divider {
  position: relative;
  height: 60px;
  overflow: hidden;
}

.section-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(240, 236, 228, 0.1) 20%,
    rgba(240, 236, 228, 0.2) 50%,
    rgba(240, 236, 228, 0.1) 80%,
    transparent 100%
  );
  filter: url(#chalk-line);
}

.section-divider::after {
  content: '\2022  \2022  \2022';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(240, 236, 228, 0.2);
  font-size: 12px;
  letter-spacing: 6px;
}

.chalk-divider-sm {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--chalk-white-faint), transparent);
  margin: 24px auto;
  max-width: 200px;
}

/* --- Section Header --- */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-label {
  font-family: var(--font-display);
  font-size: clamp(0.75rem, 1.5vw, 0.875rem);
  color: var(--blue-400);
  text-transform: uppercase;
  letter-spacing: var(--ls-display);
  margin-bottom: 12px;
  text-shadow: 0 0 10px var(--blue-glow);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 4.3vw, 2.8rem);
  font-weight: 400;
  color: var(--chalk-white-bright);
  line-height: 1.3;
  letter-spacing: var(--ls-heading);
  margin-bottom: 16px;
  text-shadow:
    0 0 7px rgba(250, 248, 245, 0.2),
    1px 1px 2px rgba(0, 0, 0, 0.6);
}

.section-subtitle {
  font-size: clamp(0.92rem, 1.6vw, 1rem);
  color: var(--chalk-white-dim);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.9;
  text-wrap: balance;
  word-break: auto-phrase;
}

.section-subtitle strong {
  white-space: nowrap;
}


/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: calc(var(--nav-height) + 16px);
  z-index: 1000;
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

.navbar.is-scrolled {
  background-color: rgba(21, 21, 21, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(240, 236, 228, 0.06);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  margin: 8px 0;
}

.navbar-brand {
  display: flex;
  align-items: center;
}

.navbar-logo {
  height: 86px;
  width: auto;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.navbar-link {
  font-size: 0.9rem;
  color: var(--chalk-white-dim);
  transition: color 0.3s ease;
}

.navbar-link:hover {
  color: var(--chalk-white-bright);
}

/* Navbar Dropdown */
.navbar-dropdown {
  position: relative;
}

.navbar-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.navbar-dropdown-arrow {
  transition: transform 0.3s ease;
}

.navbar-dropdown:hover .navbar-dropdown-arrow {
  transform: rotate(180deg);
}

.navbar-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 220px;
  background: var(--board-dark, #1a2332);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  z-index: 1000;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.navbar-dropdown:hover .navbar-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.navbar-dropdown-item {
  display: block;
  padding: 8px 12px;
  font-size: 0.85rem;
  color: var(--chalk-white-dim);
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}

.navbar-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--chalk-white-bright);
}

.navbar-dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 8px 0;
}

.navbar-dropdown-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  padding: 4px 12px;
  letter-spacing: 0.05em;
}

.navbar-dropdown-badges {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 8px 4px;
}

.navbar-app-badge img {
  height: 36px;
  width: auto;
  display: block;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.navbar-app-badge:hover img {
  opacity: 1;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
  color: var(--chalk-white-bright);
  font-family: var(--font-body);
  font-size: clamp(0.92rem, 1.6vw, 1rem);
  font-weight: 700;
  letter-spacing: var(--ls-cta);
  border: 2px solid rgba(33, 150, 243, 0.5);
  border-radius: 8px;
  cursor: pointer;
  text-shadow: 0 0 10px rgba(33, 150, 243, 0.3);
  box-shadow:
    0 4px 15px rgba(33, 150, 243, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 6px 25px rgba(33, 150, 243, 0.35),
    0 0 30px rgba(33, 150, 243, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-cta-primary:active {
  transform: translateY(0);
}

/* Placeholder CTA pending state */
.btn-cta-primary.is-pending,
.btn-cta-secondary.is-pending {
  pointer-events: none;
  opacity: 0.6;
}

.btn-cta-primary.is-pending::after,
.btn-cta-secondary.is-pending::after {
  content: ' — 準備中です…';
}

.btn-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 32px;
  background: transparent;
  color: var(--chalk-white);
  font-family: var(--font-body);
  font-size: clamp(0.92rem, 1.6vw, 1rem);
  font-weight: 500;
  letter-spacing: var(--ls-cta);
  border: 2px solid rgba(240, 236, 228, 0.3);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.btn-cta-secondary:hover {
  border-color: rgba(240, 236, 228, 0.6);
  background: rgba(240, 236, 228, 0.05);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 18px 48px;
  font-size: clamp(1rem, 1.8vw, 1.1rem);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + 16px) 0 60px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% 30%,
    var(--bg-secondary) 0%,
    var(--bg-primary) 40%,
    var(--bg-blackboard) 100%
  );
  z-index: -1;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--bg-primary), transparent);
  z-index: 3;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--nav-height) - 60px);
}

.hero-copy {
  padding: clamp(1rem, 3vw, 2rem) 0;
  max-width: 600px;
  position: relative;
  z-index: 2;
}

.hero-copy::before {
  display: none;
}

.sp-only { display: none; }

.eyebrow {
  font-family: var(--font-display);
  font-size: clamp(0.7rem, 1.4vw, 0.85rem);
  color: var(--blue-400);
  letter-spacing: var(--ls-display);
  text-transform: uppercase;
  margin-bottom: 16px;
  text-shadow: 0 0 12px var(--blue-glow);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 6.6vw, 4.5rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: var(--ls-heading);
  margin-bottom: 8px;
}

.chalk-line-text {
  display: block;
  color: var(--chalk-white-bright);
  text-shadow:
    0 0 10px rgba(250, 248, 245, 0.35),
    0 4px 8px rgba(0, 0, 0, 0.7);
}

.chalk-line-accent {
  color: var(--blue-400);
  text-shadow:
    0 0 8px var(--blue-glow),
    2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-title-wrap {
  margin-bottom: 28px;
}

.hero-underline {
  width: clamp(200px, 50vw, 380px);
  height: 14px;
  margin-top: 6px;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.hero-underline.is-drawn {
  opacity: 1;
}

.chalk-draw-path {
  stroke: var(--blue-500);
  filter: url(#chalk-line);
  stroke-dasharray: var(--path-length, 1200);
  stroke-dashoffset: var(--path-length, 1200);
  transition: stroke-dashoffset 1.8s ease-out;
}

.chalk-draw-path.is-drawing {
  stroke-dashoffset: 0;
}

.hero-lead {
  font-size: clamp(0.95rem, 1.7vw, 1.06rem);
  color: #fff;
  line-height: 1.9;
  margin-bottom: 32px;
  text-wrap: pretty;
  word-break: auto-phrase;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero Figure — full-cover background */
.hero-figure {
  position: absolute;
  inset: 0;
  width: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.hero-figure::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to right,
      rgba(15, 15, 15, 0.88) 0%,
      rgba(15, 15, 15, 0.65) 35%,
      rgba(15, 15, 15, 0.3) 65%,
      rgba(15, 15, 15, 0.15) 100%
    ),
    linear-gradient(to bottom,
      rgba(15, 15, 15, 0.3) 0%,
      transparent 30%,
      transparent 70%,
      rgba(15, 15, 15, 0.4) 100%
    );
  pointer-events: none;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
}


/* Chalk Dust Particles */
.chalk-dust-container {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.chalk-dust {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--chalk-white);
  border-radius: 50%;
  opacity: 0;
  will-change: transform, opacity;
  animation: dust-float 2.5s ease-out forwards;
}

@keyframes dust-float {
  0% {
    opacity: 0.7;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(
      calc(var(--dust-x, 0) * 1px),
      calc(var(--dust-y, 0) * 1px)
    ) scale(0.2);
  }
}

/* Chalk Appear Animation */
.chalk-appear {
  opacity: 0;
  filter: blur(6px);
  transform: translateY(8px);
  animation: chalk-write 0.8s ease-out forwards;
  animation-delay: var(--appear-delay, 0s);
}

@keyframes chalk-write {
  0% {
    opacity: 0;
    filter: blur(6px);
    transform: translateY(8px);
  }
  40% {
    opacity: 0.6;
    filter: blur(2px);
  }
  100% {
    opacity: 1;
    filter: blur(0px);
    transform: translateY(0);
  }
}

/* Image Placeholder */
.img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  min-height: 100px;
}

.img-placeholder img {
  display: none;
}

.img-placeholder::after {
  content: '';
  width: 48px;
  height: 48px;
  border: 2px dashed var(--chalk-white-faint);
  border-radius: 12px;
}

/* ============================================================
   HERO SCROLL SNAP SYSTEM
   ============================================================ */

/* === ヒーロー専用スクロールコンテナ === */
.hero-scroll-container {
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  position: relative;
  z-index: 1;
  /* スクロールバーを非表示（ドットがナビ代替） */
  scrollbar-width: none;           /* Firefox */
}
.hero-scroll-container::-webkit-scrollbar {
  display: none;                    /* Chrome/Safari */
}

/* アンカー補強: ヒーロー外セクションにヘッダー分のマージン */
[id]:not(.hero-panel):not(.hero-scroll-container) {
  scroll-margin-top: var(--nav-height);
}

/* === 背景レイヤー === */
.hero-bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  transition: visibility 0.4s ease;
}

/* === プログレスドット（独立 fixed レイヤー） === */
.hero-progress {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 16px;
  pointer-events: auto;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.hero-progress-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  padding: 0;
  border: none;
  background: rgba(240, 236, 228, 0.25);
  position: relative;
  cursor: pointer;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* 44px タップ領域（WCAG準拠） */
.hero-progress-dot::before {
  content: '';
  position: absolute;
  inset: -18px;
}

.hero-progress-dot:focus-visible {
  outline: 2px solid var(--chalk-yellow);
  outline-offset: 3px;
}

.hero-progress-dot--active {
  background: var(--blue-500);
  box-shadow: 0 0 8px var(--blue-glow);
}

/* === ヒーローパネル === */
.hero-panel {
  position: relative;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  scroll-snap-align: start;
  scroll-snap-stop: always;        /* パネル飛ばし防止 */
  z-index: 1;
  overflow: hidden;
}

.hero-panel__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: calc(var(--nav-height) + 16px);
}

.hero-panel__inner--center {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--nav-height) - 16px);
  min-height: calc(100dvh - var(--nav-height) - 16px);
}

/* パネル 0: split レイアウト（フィギュア付き） — chalk-appear が制御 */
.hero-panel--first .hero-copy {
  opacity: 1;
  transform: none;
  transition: none;
}

/* パネル 1-3: 背景が透けるように半透明オーバーレイ */
.hero-panel:not(.hero-panel--first)::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 15, 0.55);
  z-index: 0;
}

/* フェードイン（JS が .is-active 付与時） */
.hero-panel .hero-copy {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.hero-panel.is-active .hero-copy {
  opacity: 1;
  transform: translateY(0);
}

/* パネル0は chalk-appear で制御するので is-active フェードイン不要 */
.hero-panel--first .hero-copy {
  opacity: 1;
  transform: none;
  transition: none;
}

/* 最終パネル: 下部グラデーション（次セクションへの遷移） */
.hero-panel--last::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--bg-primary), transparent);
  z-index: 3;
  pointer-events: none;
}

/* センチネル（非ゼロ高さで IO 確実発火） */
.hero-sentinel { height: 1px; }

/* センター配置バリアント */
.hero-copy--center {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

/* スライドeyebrow */
.hero-slide-eyebrow {
  font-family: var(--font-display);
  font-size: clamp(0.75rem, 1.5vw, 0.875rem);
  color: var(--blue-400);
  text-transform: uppercase;
  letter-spacing: var(--ls-display);
  margin-bottom: 16px;
  text-shadow: 0 0 10px var(--blue-glow);
}

/* スライド1: 大数字タイポグラフィ */
.hero-slide-number {
  font-family: var(--font-number);
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 700;
  color: var(--chalk-white-bright);
  line-height: 1;
  margin-bottom: 8px;
  text-shadow:
    0 0 10px rgba(250, 248, 245, 0.35),
    0 0 30px rgba(250, 248, 245, 0.12);
}

.hero-slide-plus {
  color: var(--blue-400);
  text-shadow: 0 0 8px var(--blue-glow);
}

.hero-slide-label {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 3vw, 2rem);
  color: var(--chalk-white);
  letter-spacing: var(--ls-heading);
  margin-bottom: 16px;
}

.hero-slide-sub {
  font-size: clamp(0.95rem, 1.7vw, 1.06rem);
  color: var(--chalk-white);
  line-height: 1.9;
  font-weight: 700;
}

.hero-slide-sub + .hero-actions {
  margin-top: 28px;
}

.hero-copy--center .hero-actions {
  justify-content: center;
}

/* スライドタイトル */
.hero-slide-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  font-weight: 400;
  color: var(--chalk-white-bright);
  line-height: 1.3;
  letter-spacing: var(--ls-heading);
  margin-bottom: 20px;
  text-shadow:
    0 0 7px rgba(250, 248, 245, 0.2),
    1px 1px 2px rgba(0, 0, 0, 0.6);
}

/* === サムネイルモザイク（パネル1背景） === */
.hero-panel[data-hero-panel="1"] {
  overflow: hidden;
}

.thumbnail-mosaic {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  pointer-events: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 3px;
  filter: brightness(0.6) saturate(0.4);
}

.thumbnail-item {
  opacity: 0;
  transform: translateY(30px) scale(0.9);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  transition-delay: var(--delay);
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.thumbnail-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-panel[data-hero-panel="1"].is-active .thumbnail-item {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* パネル1: テキスト可読性オーバーレイ（中央を自然に濃く） */
.hero-panel[data-hero-panel="1"]::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 70% 60% at 50% 50%,
    rgba(15, 15, 15, 0.8) 0%,
    rgba(15, 15, 15, 0.55) 40%,
    rgba(15, 15, 15, 0.25) 100%
  );
  z-index: 2;
  pointer-events: none;
}

/* パネル1: hero-panel__inner をオーバーレイの上に配置 */
.hero-panel[data-hero-panel="1"] .hero-panel__inner {
  z-index: 3;
}

/* === スプリットレイアウト（パネル2-3） === */
.hero-panel__inner--split {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(40px, 6vw, 80px);
  padding-bottom: calc(var(--nav-height) + 16px);
  min-height: calc(100vh - (var(--nav-height) + 16px) * 2);
  min-height: calc(100dvh - (var(--nav-height) + 16px) * 2);
  align-self: stretch;
}

.hero-screenshot-container {
  flex: 0 0 auto;
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease-out 0.2s, transform 0.8s ease-out 0.2s;
}

.hero-panel.is-active .hero-screenshot-container {
  opacity: 1;
  transform: translateX(0);
}

.hero-screenshot--phone {
  width: clamp(240px, 25vw, 320px);
  border-radius: 24px;
  overflow: hidden;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(0, 0, 0, 0.2);
}

.hero-screenshot--phone img {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  display: block;
}

.hero-panel__inner--split .hero-copy--center {
  flex: 1;
  max-width: 500px;
}

/* ============================================================
   SOCIAL PROOF
   ============================================================ */
.social-proof {
  padding: 40px 0;
  background: rgba(16, 20, 29, 0.6);
  border-top: 1px solid rgba(240, 236, 228, 0.05);
  border-bottom: 1px solid rgba(240, 236, 228, 0.05);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}

.proof-card {
  padding: 20px 16px;
}

.proof-number {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--chalk-white-bright);
  letter-spacing: var(--ls-heading);
  word-break: keep-all;
  overflow-wrap: break-word;
  text-shadow:
    0 0 6px rgba(250, 248, 245, 0.2),
    0 0 12px rgba(250, 248, 245, 0.08);
}

.proof-plus {
  color: var(--blue-400);
  text-shadow: 0 0 8px var(--blue-glow);
}

.proof-label {
  font-size: 0.85rem;
  color: var(--chalk-white-dim);
  margin-top: 4px;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.chalk-note {
  background: rgba(26, 26, 26, 0.7);
  border: 1px solid rgba(240, 236, 228, 0.08);
  border-radius: 16px;
  padding: 28px 24px;
  position: relative;
}

.chalk-note::before {
  content: '';
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--blue-500), transparent);
  opacity: 0.4;
  filter: url(#chalk-line);
}

.chalk-note h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--chalk-white-bright);
  margin-bottom: 12px;
  letter-spacing: var(--ls-heading);
}

.chalk-note p {
  font-size: 0.92rem;
  color: var(--chalk-white-dim);
  line-height: 1.8;
}

.chalk-note p strong {
  color: var(--chalk-white-bright);
  font-weight: 700;
}

/* Chalk Bold Yellow */
.chalk-bold {
  font-weight: 700;
}

.chalk-yellow {
  color: var(--chalk-yellow);
  text-shadow:
    0 0 7px rgba(255, 213, 79, 0.3),
    0 0 14px rgba(255, 213, 79, 0.15);
}

/* Comparison Section */
.comparison-section {
  margin-top: 48px;
  text-align: center;
}

.comparison-title {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  color: var(--chalk-white-bright);
  margin-bottom: 8px;
  letter-spacing: var(--ls-heading);
  text-shadow:
    0 0 7px rgba(250, 248, 245, 0.2),
    0 0 14px rgba(250, 248, 245, 0.08);
}

.comparison-subtitle {
  font-size: 0.95rem;
  color: var(--chalk-white-dim);
  margin-bottom: 32px;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 700px;
  margin: 0 auto;
}

.comparison-card {
  background: rgba(26, 26, 26, 0.7);
  border: 1px solid rgba(240, 236, 228, 0.08);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
}

.comparison-card--highlight {
  border-color: rgba(33, 150, 243, 0.4);
  box-shadow: 0 0 30px rgba(33, 150, 243, 0.1);
}

.comparison-card__img {
  display: block;
  width: 100%;
  max-width: 240px;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 12px;
  margin: 0 auto 16px;
}

.comparison-card-label {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--chalk-white-dim);
  margin-bottom: 16px;
  letter-spacing: var(--ls-heading);
}

.comparison-value {
  font-family: var(--font-number);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 16px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  text-shadow:
    0 0 10px rgba(255, 213, 79, 0.4),
    0 0 25px rgba(255, 213, 79, 0.15);
}

.comparison-approx {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  opacity: 0.65;
}

.comparison-number {
  font-size: clamp(2.6rem, 7vw, 3.8rem);
  white-space: nowrap;
}

.comparison-unit {
  font-size: 1rem;
  color: var(--chalk-white-dim);
}

.comparison-details {
  list-style: none;
  padding: 0;
}

.comparison-details li {
  font-size: 0.9rem;
  color: var(--chalk-white-dim);
  padding: 6px 0;
  border-top: 1px solid rgba(240, 236, 228, 0.06);
}

/* AI Promo Card */
.ai-promo-card {
  margin-top: 40px;
  background: rgba(33, 150, 243, 0.08);
  border: 1px solid rgba(33, 150, 243, 0.25);
  border-radius: 16px;
  padding: 36px 32px;
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.ai-promo-label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--blue-400);
  text-transform: uppercase;
  letter-spacing: var(--ls-display);
  margin-bottom: 8px;
  text-shadow: 0 0 10px var(--blue-glow);
}

.ai-promo-title {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  color: var(--chalk-white-bright);
  margin-bottom: 12px;
  letter-spacing: var(--ls-heading);
}

.ai-promo-text {
  font-size: 0.93rem;
  color: var(--chalk-white-dim);
  margin-bottom: 20px;
  line-height: 1.8;
  text-wrap: balance;
  word-break: auto-phrase;
}

/* ============================================================
   AI FEATURES
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.card-feature {
  background: rgba(26, 26, 26, 0.8);
  border: 1px solid rgba(240, 236, 228, 0.08);
  border-radius: 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.card-feature:not(.card-feature--overlay) {
  padding: 32px 24px;
}

.card-feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--blue-500), transparent);
  opacity: 0.4;
  filter: url(#chalk-line);
  z-index: 2;
}

.card-feature:hover {
  transform: translateY(-6px);
  border-color: rgba(240, 236, 228, 0.15);
  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.4),
    0 0 1px rgba(240, 236, 228, 0.1);
}

/* Overlay variant for full-bleed images */
.card-feature--overlay {
  min-height: 250px;
  display: flex;
  align-items: flex-end;
}

.card-feature__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.card-feature__overlay {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 24px 20px 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
  text-align: left;
}

/* Last two cards center on desktop */
.card-feature:nth-child(4),
.card-feature:nth-child(5) {
  grid-column: span 1;
}

.features-grid::after {
  content: '';
  grid-column: span 1;
}

.card-feature h3 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--chalk-white-bright);
  margin-bottom: 10px;
  letter-spacing: var(--ls-heading);
}

.card-feature p {
  font-size: 0.9rem;
  color: var(--chalk-white-dim);
  line-height: 1.7;
}


/* App Store Badges (in section header) */
.app-store-badges {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.app-store-badges a {
  display: inline-block;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.app-store-badges a:hover {
  opacity: 0.75;
  transform: translateY(-2px);
}

.app-store-badges img {
  height: 40px;
  width: auto;
}

/* ============================================================
   APP SCREENSHOTS CAROUSEL
   ============================================================ */
.carousel-wrapper {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.carousel-viewport {
  overflow: hidden;
  touch-action: pan-y;
}

.carousel-viewport:focus-visible {
  outline: 2px solid var(--blue-400);
  outline-offset: 4px;
  border-radius: 8px;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-track.no-transition {
  transition: none;
}

.carousel-slide {
  flex: 0 0 33.333%;
  padding: 0 12px;
  display: flex;
}

.carousel-slide-btn {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: rgba(26, 26, 26, 0.8);
  border: 2px solid rgba(240, 236, 228, 0.1);
  border-radius: 16px;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.carousel-slide-btn:hover {
  transform: translateY(-4px);
  border-color: rgba(33, 150, 243, 0.4);
  box-shadow: 0 8px 30px rgba(33, 150, 243, 0.15), 0 0 20px rgba(33, 150, 243, 0.08);
}

.carousel-slide-btn:focus-visible {
  outline: 2px solid var(--chalk-yellow);
  outline-offset: 3px;
  border-radius: 16px;
}

.carousel-slide-btn img {
  width: 100%;
  border-radius: 14px 14px 0 0;
  display: block;
}

.carousel-caption {
  padding: 12px 16px;
  font-size: 0.85rem;
  color: var(--chalk-white-dim);
  text-align: center;
  line-height: 1.5;
  font-family: var(--font-body);
  flex-grow: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

/* Navigation Buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(240, 236, 228, 0.15);
  background: rgba(21, 21, 21, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--chalk-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  z-index: 2;
}

.carousel-btn:hover {
  background: rgba(33, 150, 243, 0.2);
  border-color: rgba(33, 150, 243, 0.4);
  box-shadow: 0 0 15px rgba(33, 150, 243, 0.2);
}

.carousel-btn:focus-visible {
  outline: 2px solid var(--chalk-yellow);
  outline-offset: 3px;
}

.carousel-btn--prev {
  left: -22px;
}

.carousel-btn--next {
  right: -22px;
}

/* Dots Indicator */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(240, 236, 228, 0.25);
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.carousel-dot:hover {
  background: rgba(240, 236, 228, 0.5);
}

.carousel-dot:focus-visible {
  outline: 2px solid var(--chalk-yellow);
  outline-offset: 3px;
}

.carousel-dot.is-active {
  background: var(--blue-500);
  box-shadow: 0 0 8px var(--blue-glow);
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
  position: relative;
  z-index: 1;
  text-align: center;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox.is-open .lightbox-content {
  transform: scale(1);
}

.lightbox-img {
  max-height: 80vh;
  max-width: 85vw;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  object-fit: contain;
  margin: 0 auto;
}

.lightbox-caption {
  margin-top: 16px;
  font-size: 0.95rem;
  color: var(--chalk-white-dim);
  font-family: var(--font-body);
}

.lightbox-close {
  position: absolute;
  top: -48px;
  right: -8px;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(240, 236, 228, 0.1);
  color: var(--chalk-white);
  font-size: 1.5rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.lightbox-close:hover {
  background: rgba(240, 236, 228, 0.25);
}

.lightbox-close:focus-visible {
  outline: 2px solid var(--chalk-yellow);
  outline-offset: 3px;
}

/* ============================================================
   PRICING
   ============================================================ */
.pricing-card {
  max-width: 520px;
  margin: 0 auto;
  background: rgba(26, 26, 26, 0.9);
  border: 2px solid rgba(33, 150, 243, 0.3);
  border-radius: 24px;
  padding: 48px 40px;
  text-align: center;
  position: relative;
  box-shadow:
    0 0 40px rgba(33, 150, 243, 0.08),
    0 20px 60px rgba(0, 0, 0, 0.3);
}

.pricing-plan {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--chalk-white-bright);
  margin-bottom: 20px;
  letter-spacing: var(--ls-heading);
}

.pricing-amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-bottom: 8px;
}

.pricing-currency {
  font-family: var(--font-number);
  font-size: 1.6rem;
  color: var(--chalk-white-dim);
}

.pricing-value {
  font-family: var(--font-number);
  font-size: clamp(2.8rem, 7vw, 4rem);
  font-weight: 700;
  color: var(--chalk-white-bright);
  text-shadow:
    0 0 8px rgba(250, 248, 245, 0.3),
    0 0 20px rgba(250, 248, 245, 0.1);
  line-height: 1;
}

.pricing-period {
  font-family: var(--font-number);
  font-size: 1.2rem;
  color: var(--chalk-white-dim);
}

/* Struck-through price */
.pricing-amount--struck {
  position: relative;
  opacity: 0.5;
}

.pricing-amount--struck::after {
  content: '';
  position: absolute;
  top: 50%;
  left: -5%;
  right: -5%;
  height: 3px;
  background: var(--chalk-pink);
  transform: rotate(-5deg);
  filter: url(#chalk-line);
  border-radius: 2px;
}

.pricing-highlight {
  margin-bottom: 24px;
}

.pricing-discount {
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.pricing-annual-value {
  font-family: var(--font-number);
  font-weight: 700;
  line-height: 1;
  text-shadow:
    0 0 10px rgba(255, 213, 79, 0.4),
    0 0 25px rgba(255, 213, 79, 0.15);
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}

.pricing-approx {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  opacity: 0.65;
}

.pricing-annual-number {
  font-size: clamp(3.2rem, 9vw, 5.2rem);
  white-space: nowrap;
}

.pricing-annual-period {
  font-size: 1rem;
  color: var(--chalk-white-dim);
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 32px;
}

.pricing-features li {
  padding: 10px 0;
  font-size: 0.93rem;
  color: var(--chalk-white-dim);
  border-bottom: 1px solid rgba(240, 236, 228, 0.06);
  padding-left: 24px;
  position: relative;
}

.pricing-features li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--chalk-green);
  font-weight: 700;
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-note {
  margin-top: 16px;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.78rem;
  color: var(--chalk-white-dim);
  opacity: 0.6;
  text-align: left;
  padding-left: 1.5em;
  text-indent: -1.5em;
}

/* ============================================================
   SUB-CHANNELS
   ============================================================ */
.subchannels-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.subchannel-card {
  background: rgba(26, 26, 26, 0.7);
  border: 1px solid rgba(240, 236, 228, 0.08);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
}

.subchannel-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 16px;
  border: 2px solid rgba(240, 236, 228, 0.1);
}

.subchannel-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.subchannel-card h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--chalk-white-bright);
  margin-bottom: 10px;
  letter-spacing: var(--ls-heading);
}

.subchannel-card p {
  font-size: 0.88rem;
  color: var(--chalk-white-dim);
  line-height: 1.8;
  text-align: left;
}

.subchannel-card p strong {
  color: var(--chalk-white-bright);
  font-weight: 600;
}

/* ============================================================
   TRIAL VIDEOS
   ============================================================ */
.trial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.trial-item {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(240, 236, 228, 0.08);
  background: var(--bg-secondary);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.trial-item:hover,
.trial-item:focus-visible {
  transform: scale(1.05);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.trial-item:focus-visible {
  outline: 2px solid var(--chalk-yellow);
  outline-offset: 3px;
}

.trial-item img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.trial-title {
  display: block;
  padding: 12px 14px;
  font-size: 0.88rem;
  color: var(--chalk-white-dim);
  font-family: var(--font-body);
  line-height: 1.5;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(240, 236, 228, 0.08);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  background: none;
  border: none;
  color: var(--chalk-white);
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.6vw, 1.02rem);
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: color 0.3s ease;
}

.faq-question:hover {
  color: var(--chalk-white-bright);
}

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  position: relative;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--chalk-white-dim);
  border-radius: 2px;
  transition: transform 0.3s ease;
}

.faq-icon::before {
  width: 14px;
  height: 2px;
  transform: translate(-50%, -50%);
}

.faq-icon::after {
  width: 2px;
  height: 14px;
  transform: translate(-50%, -50%);
}

.faq-question[aria-expanded="true"] .faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
}

.faq-answer.is-open {
  opacity: 1;
  padding-bottom: 20px;
}

.faq-answer p {
  font-size: 0.93rem;
  color: var(--chalk-white-dim);
  line-height: 1.8;
}

.faq-answer p + p {
  margin-top: 8px;
}

.faq-answer a {
  color: var(--blue-400);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.3s ease;
}

.faq-answer a:hover {
  color: var(--blue-200);
}

/* ============================================================
   FINAL CTA
   ============================================================ */
/* ============================================================
   FINAL CTA (HERO-STYLE)
   ============================================================ */
.final-cta {
  position: relative;
  overflow: hidden;
}

.final-cta--hero {
  height: 100vh;
  height: 100dvh;
  padding: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

/* 全画面背景画像 */
.final-cta-bg-image {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.final-cta-bg-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

/* テキスト可読性のグラデーション */
.final-cta-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 40%,
    rgba(15, 15, 15, 0.3) 60%,
    rgba(15, 15, 15, 0.85) 85%,
    rgba(15, 15, 15, 0.95) 100%
  );
}

/* コンテンツ */
.final-cta-content {
  position: relative;
  z-index: 3;
  width: 100%;
  text-align: center;
  padding-bottom: clamp(60px, 8vh, 100px);
}

.final-cta-text {
  margin-bottom: 36px;
}

.final-cta-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5.5vw, 3.8rem);
  color: var(--chalk-white-bright);
  line-height: 1.25;
  letter-spacing: var(--ls-heading);
  margin-bottom: 20px;
  text-shadow:
    0 0 15px rgba(250, 248, 245, 0.4),
    2px 2px 12px rgba(0, 0, 0, 0.95);
}

.final-cta-sub {
  font-size: clamp(1rem, 1.8vw, 1.1rem);
  color: var(--chalk-white-dim);
  margin-bottom: 0;
  text-shadow:
    1px 1px 8px rgba(0, 0, 0, 0.9),
    0 0 10px rgba(0, 0, 0, 0.8);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 48px 0 0;
  border-top: 1px solid rgba(240, 236, 228, 0.08);
}

.footer-upper {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(240, 236, 228, 0.06);
}

.footer-brand-block {
  min-width: 100px;
}

.footer-logo {
  height: 86px;
  width: auto;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  justify-content: center;
}

.footer-link {
  font-size: 0.82rem;
  color: var(--chalk-white-faint);
  transition: color 0.3s ease;
  white-space: nowrap;
}

.footer-link:hover {
  color: var(--chalk-white);
}

.footer-app {
  text-align: right;
}

.footer-app-text {
  font-size: 0.72rem;
  color: var(--chalk-white-faint);
  line-height: 1.6;
  margin-bottom: 10px;
}

.footer-app-badges {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.footer-badge {
  display: inline-block;
  transition: opacity 0.3s ease;
}

.footer-badge:hover {
  opacity: 0.75;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 24px 0;
}

.footer-social-link {
  color: var(--chalk-white-faint);
  transition: color 0.3s ease;
}

.footer-social-link:hover {
  color: var(--chalk-white);
}

.footer-bottom {
  text-align: center;
  padding-bottom: 24px;
}

.footer-copyright {
  font-size: 0.75rem;
  color: rgba(240, 236, 228, 0.3);
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.scroll-fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: transform, opacity;
}

.scroll-fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

.scroll-slide-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-slide-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.scroll-slide-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-slide-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.scroll-scale-in {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
  will-change: transform, opacity;
}

.scroll-scale-in.is-visible {
  opacity: 1;
  transform: scale(1);
  will-change: auto;
}

.scroll-stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-stagger.is-visible > *:nth-child(1) { transition-delay: 0s; }
.scroll-stagger.is-visible > *:nth-child(2) { transition-delay: 0.12s; }
.scroll-stagger.is-visible > *:nth-child(3) { transition-delay: 0.24s; }
.scroll-stagger.is-visible > *:nth-child(4) { transition-delay: 0.36s; }
.scroll-stagger.is-visible > *:nth-child(5) { transition-delay: 0.48s; }

.scroll-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Responsive line break — desktop only */
.br-lg { display: block; }

/* Tablet */
@media (max-width: 1023px) {
  .br-lg { display: none; }
  .container { padding: 0 32px; }
  .section { padding: 60px 0; }

  .hero {
    flex-direction: column;
  }
  .hero-content {
    min-height: auto;
    padding-top: 40px;
    padding-bottom: 0;
  }
  .hero-copy {
    max-width: 100%;
    text-align: center;
  }
  .hero-copy::before {
    display: none;
  }
  .hero-lead { margin-left: auto; margin-right: auto; text-wrap: balance; }
  .hero-actions { justify-content: center; }
  .hero-underline { margin-left: auto; margin-right: auto; }
  .hero-content {
    min-height: calc(100vh - var(--nav-height) - 60px);
    padding-bottom: 40px;
  }
  .hero-figure {
    position: absolute;
    inset: 0;
    width: 100%;
    max-height: none;
  }
  .hero-photo {
    object-position: 60% center;
    max-height: none;
  }
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trial-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .carousel-slide {
    flex: 0 0 50%;
  }

  .carousel-btn--prev { left: 4px; }
  .carousel-btn--next { right: 4px; }

  /* サムネイルモザイク: タブレット 4列 */
  .thumbnail-mosaic {
    grid-template-columns: repeat(4, 1fr);
  }
  .thumbnail-item:nth-child(n+33) { display: none; }

  /* Final CTA: タブレット */
  .final-cta-content { padding-bottom: clamp(50px, 7vh, 80px); }
  .final-cta-bg-image img { object-position: center 15%; }

  /* スプリットレイアウト: タブレット縦積み */
  .hero-panel__inner--split {
    flex-direction: column;
    gap: 32px;
    padding-top: calc(var(--nav-height) + 16px);
    padding-bottom: calc(var(--nav-height) + 16px);
  }
  .hero-screenshot--phone {
    width: clamp(200px, 40vw, 280px);
  }
  .hero-screenshot--phone img {
    max-height: 50vh;
  }
  .hero-panel__inner--split .hero-copy--center {
    flex: 0 0 auto;
    max-width: 100%;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .sp-only { display: inline; }
  :root {
    --nav-height: 52px;
  }
  .container { padding: 0 20px; }
  .section { padding: 48px 0; }

  .navbar-link { display: none; }
  .navbar-dropdown { display: none; }
  .navbar-links { gap: 0; }

  .hero {
    padding-top: calc(var(--nav-height) + 32px);
    padding-bottom: 40px;
    align-items: center;
  }
  .hero-content {
    display: flex;
    align-items: center;
    min-height: calc(100vh - var(--nav-height) - 72px);
  }
  .hero-copy {
    display: block;
    max-width: 100%;
    text-align: center;
    position: relative;
    z-index: 2;
  }
  .eyebrow,
  .hero-title-wrap,
  .hero-lead,
  .hero-actions {
    padding-left: 20px;
    padding-right: 20px;
    text-align: center;
    width: 100%;
  }
  .hero-figure {
    position: absolute;
    inset: 0;
    width: 100%;
    max-height: none;
    margin: 0;
  }
  .hero-figure::after {
    background:
      linear-gradient(to right,
        rgba(15, 15, 15, 0.8) 0%,
        rgba(15, 15, 15, 0.5) 40%,
        rgba(15, 15, 15, 0.1) 70%,
        rgba(15, 15, 15, 0.05) 100%
      ),
      linear-gradient(to bottom,
        rgba(15, 15, 15, 0.3) 0%,
        rgba(15, 15, 15, 0.05) 30%,
        rgba(15, 15, 15, 0.15) 60%,
        rgba(15, 15, 15, 0.7) 100%
      );
  }
  .hero-photo {
    max-height: none;
    object-position: center 30%;
  }
  .hero-slide-number { font-size: clamp(3rem, 10vw, 6rem); }
  .hero-copy--center { padding: 0 20px; }
  .hero-progress { right: 12px; }

  /* サムネイルモザイク: モバイル 3列 */
  .thumbnail-mosaic {
    grid-template-columns: repeat(3, 1fr);
  }
  .thumbnail-item:nth-child(n+25) { display: none; }

  /* Final CTA: モバイル */
  .final-cta-content { padding-bottom: clamp(40px, 6vh, 60px); }
  .final-cta-text { margin-bottom: 28px; }
  .final-cta-bg-image img { object-position: center 10%; }
  .final-cta-title br { display: none; }

  /* パネル0: モバイルでコンテンツを左寄せ・下寄せにしてDaiGoの顔を見せる */
  .hero-panel--first {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: stretch;
  }
  .hero-panel--first .hero-panel__inner {
    padding-top: 0;
    padding-bottom: clamp(20px, 4vh, 40px);
  }
  .hero-panel--first .hero-copy {
    text-align: left;
    max-width: 100%;
  }
  .hero-panel--first .eyebrow {
    text-align: left;
    padding-left: 0;
    padding-right: 0;
  }
  .hero-panel--first .hero-title-wrap {
    text-align: left;
    padding-left: 0;
    padding-right: 0;
  }
  .hero-panel--first .hero-title {
    font-size: clamp(2.6rem, 8vw, 4rem);
  }
  .hero-panel--first .hero-title .chalk-line-accent {
    word-break: keep-all;
    white-space: nowrap;
  }
  .hero-panel--first .hero-lead {
    text-align: left;
    padding-left: 0;
    padding-right: 0;
  }
  .hero-panel--first .hero-actions {
    text-align: left;
    padding-left: 0;
    padding-right: 0;
  }

  /* スプリットレイアウト: モバイル縦積み */
  .hero-panel__inner--split {
    flex-direction: column;
    gap: 24px;
    padding-top: calc(var(--nav-height) + 16px);
    padding-bottom: calc(var(--nav-height) + 16px);
  }
  .hero-screenshot--phone {
    width: clamp(120px, 30vw, 180px);
  }
  .hero-screenshot--phone img {
    max-height: 40vh;
  }
  .hero-panel__inner--split .hero-copy--center {
    flex: 0 0 auto;
    max-width: 100%;
    padding: 0 20px;
  }

  .proof-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .comparison-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .subchannels-grid {
    grid-template-columns: 1fr;
  }

  .trial-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card {
    padding: 36px 24px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn-cta-primary,
  .hero-actions .btn-cta-secondary {
    width: 100%;
    max-width: 320px;
  }

  .footer-upper {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }

  .footer {
    padding-top: 32px;
  }

  .footer-brand-block {
    display: flex;
    justify-content: center;
  }

  .footer-nav {
    display: grid;
    grid-template-columns: auto auto;
    gap: 12px 32px;
    justify-content: center;
  }

  .footer-app {
    text-align: center;
  }

  .footer-app-badges {
    justify-content: center;
  }

  .final-cta:not(.final-cta--hero) {
    padding: 60px 0;
  }

  .carousel-slide {
    flex: 0 0 75%;
  }

  .carousel-btn {
    display: none;
  }
}

/* Small Mobile */
@media (max-width: 540px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .hero-image-wrap {
    width: min(280px, 85vw);
  }

  .carousel-slide {
    flex: 0 0 85%;
  }

  .proof-number {
    font-size: 1.3rem;
  }
}

/* Wide Desktop */
@media (min-width: 1440px) {
  .container { padding: 0 60px; }
  .section { padding: 100px 0; }
  .hero-copy { max-width: 600px; }
  .hero-figure { width: 100%; }
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .chalk-appear {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }

  .chalk-draw-path {
    stroke-dashoffset: 0 !important;
  }

  .scroll-fade-in,
  .scroll-slide-left,
  .scroll-slide-right,
  .scroll-scale-in {
    opacity: 1 !important;
    transform: none !important;
  }

  .scroll-stagger > * {
    opacity: 1 !important;
    transform: none !important;
  }

  .grain {
    animation: none !important;
  }

  .carousel-track {
    transition: none !important;
  }

  .lightbox,
  .lightbox-content {
    transition: none !important;
  }

  /* Hero Scroll Snap — reduced motion */
  .hero-scroll-container {
    height: auto !important;
    overflow: visible !important;
    scroll-snap-type: none !important;
    scroll-behavior: auto !important;
  }
  .hero-bg-layer { display: none !important; }
  .hero-panel {
    height: auto !important;
    min-height: 100vh;
    scroll-snap-align: none !important;
    scroll-snap-stop: normal !important;
    background: var(--bg-primary);
  }
  .hero-panel--first {
    background: var(--bg-blackboard);
  }
  .hero-panel .hero-copy {
    opacity: 1 !important;
    transform: none !important;
  }
  .hero-progress { display: none !important; }

  /* サムネイルモザイク・スクリーンショット: reduced-motion即時表示 */
  .thumbnail-item,
  .hero-screenshot-container {
    transition-delay: 0s !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* --- Content Visibility: skip rendering of off-screen sections --- */
.subchannels,
.trial-videos,
.faq,
.final-cta {
  content-visibility: auto;
  contain-intrinsic-size: auto 600px;
}
