  /* ============================================================
     Libterrace YouTube Slide
     HP（corporatesite/styles/tokens.css + top.css）からトンマナ移植
     ============================================================ */
  :root {
    /* === HP の tokens.css を取り込み === */
    --lt-blue-900: #0B1B40;
    --lt-blue-800: #16306E;
    --lt-blue-700: #4D8DFF;
    --lt-blue-600: #3D72E0;
    --lt-blue-500: #4D8DFF;
    --lt-blue-400: #74A6FF;
    --lt-blue-300: #9DC0FF;
    --lt-blue-200: #C2D7FF;
    --lt-blue-100: #DEE9FF;
    --lt-blue-50:  #EFF4FF;

    --lt-yellow-700: #D4C300;
    --lt-yellow-500: #FBE91D;
    --lt-yellow-300: #FEF488;
    --lt-yellow-100: #FFFCDD;

    --lt-sky-500: #6FB7E0;
    --lt-sky-300: #BFE0F2;
    --lt-aqua-300: #B7E4DA;

    --lt-accent-primary: #4D8DFF;
    --lt-accent-yellow:  #FBE91D;
    --lt-accent-soft:    #FEF8B8;

    --lt-navy:      #0F172A;
    --lt-charcoal:  #334155;
    --lt-gray:      #64748B;
    --lt-gray-light:#94A3B8;
    --lt-light-gray:#CBD5E1;
    --lt-border:    #E2E8F0;
    --lt-surface:   #F1F5F9;
    --lt-surface-2: #F8FAFC;
    --lt-white:     #FFFFFF;

    --lt-gradient-primary: linear-gradient(135deg, #3D72E0 0%, #74A6FF 100%);
    --lt-gradient-btn:     linear-gradient(180deg, #6FA0FF 0%, #4D8DFF 50%, #2E6FE6 100%);
    --lt-gradient-yellow:  linear-gradient(135deg, #FBE91D 0%, #FDF055 100%);
    --lt-gradient-sky:     linear-gradient(180deg, #EFF4FF 0%, #DEE9FF 100%);
    --lt-gradient-bg:      linear-gradient(180deg, #F8FBFF 0%, #EAF2FF 100%);
    --lt-gradient-hero:    linear-gradient(135deg, #74A6FF 0%, #9DC0FF 35%, #FDF055 100%);
    --lt-gradient-brand:   linear-gradient(135deg, #4D8DFF 0%, #74A6FF 50%, #FBE91D 100%);

    --lt-shadow-sm:   0 2px 6px rgba(15,23,42,0.06);
    --lt-shadow-md:   0 8px 20px rgba(15,23,42,0.08);
    --lt-shadow-lg:   0 16px 40px rgba(15,23,42,0.10);
    --lt-shadow-blue: 0 8px 20px rgba(77,141,255,0.28);

    --lt-radius-md: 10px;
    --lt-radius-lg: 14px;
    --lt-radius-xl: 20px;
    --lt-radius-2xl: 28px;
    --lt-radius-full: 999px;

    --lt-font-jp: 'Inter', 'Noto Sans JP', system-ui, sans-serif;
    --lt-font-en: 'Inter', system-ui, sans-serif;

    --safe: 88px;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }
  html, body { width: 100%; height: 100%; overflow: hidden; background: #0a0d12; }
  body {
    font-family: var(--lt-font-jp);
    color: var(--lt-navy);
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* ============== 1920×1080 固定ステージ ============== */
  /* スライドは常に 1920×1080。ビューポートが小さい場合は JS が
     transform: scale で全体を縮小して中央に収める（slide.js の fitStage）。 */
  .stage {
    position: relative;
    width: 1920px;
    height: 1080px;
    flex-shrink: 0;
    background: var(--lt-gradient-bg);
    overflow: hidden;
    transform-origin: center center;
  }

  /* ============== スライド共通 ============== */
  .slide {
    position: absolute;
    inset: 0;
    padding: var(--safe);
    display: none;
    flex-direction: column;
    justify-content: center;
    background: var(--lt-gradient-bg);
  }
  .slide.active { display: flex; }

  /* HP の section-num（● + 数字） */
  .lt-section-num {
    font-family: var(--lt-font-en);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--lt-accent-primary);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-transform: uppercase;
  }
  .lt-section-num::before {
    content: "";
    width: 10px; height: 10px;
    border-radius: 50%;
    background: currentColor;
  }

  /* HP の section-en（小さめ Inter 英語） */
  .lt-section-en {
    font-family: var(--lt-font-en);
    font-size: 24px;
    font-weight: 500;
    color: var(--lt-gray);
    margin-top: 12px;
    letter-spacing: 0.02em;
  }

  /* HP の hero-eyebrow（横線 + 英語） */
  .lt-eyebrow {
    font-family: var(--lt-font-en);
    font-size: 20px;
    font-weight: 500;
    color: var(--lt-accent-primary);
    text-transform: uppercase;
    margin-bottom: 32px;
    display: inline-flex;
    align-items: center;
    gap: 16px;
    letter-spacing: 0.02em;
  }
  .lt-eyebrow::before {
    content: "";
    width: 48px; height: 1px;
    background: var(--lt-accent-primary);
  }

  /* ===== タイトル（HP の hero-solo を踏襲）===== */
  .slide.title {
    background:
      radial-gradient(ellipse at 80% 20%, rgba(251,233,29,0.18) 0%, transparent 50%),
      radial-gradient(ellipse at 10% 90%, rgba(77,141,255,0.18) 0%, transparent 55%),
      var(--lt-gradient-bg);
    align-items: flex-start;
    justify-content: center;
  }
  .slide.title h1 {
    font-size: 112px;
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: 0.01em;
    color: var(--lt-navy);
    margin: 0 0 36px;
    max-width: 1500px;
  }
  .slide.title h1 .accent { color: var(--lt-accent-primary); }
  .slide.title .sub {
    font-family: var(--lt-font-jp);
    font-size: 28px;
    line-height: 2.0;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--lt-charcoal);
    max-width: 1200px;
  }

  /* ===== セクション仕切り（HP のブランドグラデ + 白文字）===== */
  .slide.section {
    background: var(--lt-gradient-brand);
    color: #fff;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
  }
  .slide.section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
      radial-gradient(circle at 90% 90%, rgba(255,255,255,0.15) 0%, transparent 40%),
      radial-gradient(circle at 10% 10%, rgba(251,233,29,0.2) 0%, transparent 40%);
    pointer-events: none;
  }
  .slide.section .lt-section-num { color: #fff; opacity: 0.9; }
  .slide.section h1 {
    font-size: 124px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.01em;
    margin-top: 24px;
    text-shadow: 0 2px 24px rgba(15,23,42,0.18);
    position: relative;
  }
  .slide.section .desc {
    margin-top: 32px;
    font-size: 30px;
    line-height: 1.9;
    opacity: 0.92;
    max-width: 1400px;
    position: relative;
  }

  /* ===== 本文（HP の lt-section / lt-section-title）===== */
  .slide.content { padding-top: calc(var(--safe) + 24px); }
  .slide.content .lt-section-num { margin-bottom: 16px; }
  .slide.content h1 {
    font-size: 72px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.01em;
    color: var(--lt-navy);
    margin-bottom: 12px;
  }
  .slide.content h1 .accent { color: var(--lt-accent-primary); }
  .slide.content .lt-section-en { margin-bottom: 48px; }
  .slide.content h2 {
    font-size: 44px; font-weight: 700;
    margin: 24px 0 16px; color: var(--lt-navy);
  }
  .slide.content p {
    font-size: 30px; line-height: 1.9; font-weight: 500;
    color: var(--lt-charcoal); margin-bottom: 18px;
  }
  .slide.content ul, .slide.content ol { padding-left: 0; list-style: none; }
  .slide.content li {
    font-size: 30px; line-height: 1.8; font-weight: 500;
    color: var(--lt-charcoal); margin-bottom: 22px;
    padding-left: 44px; position: relative;
  }
  .slide.content ol { counter-reset: ol; }
  .slide.content ol li { counter-increment: ol; }
  .slide.content ol li::before {
    content: counter(ol, decimal-leading-zero);
    position: absolute; left: 0; top: 4px;
    font-family: var(--lt-font-en);
    font-size: 22px; font-weight: 700;
    color: var(--lt-accent-primary);
    letter-spacing: 0.04em;
  }
  .slide.content ul li::before {
    content: ""; position: absolute; left: 8px; top: 22px;
    width: 14px; height: 14px;
    background: var(--lt-accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(77,141,255,0.18);
  }
  .slide.content strong { color: var(--lt-accent-primary); font-weight: 700; }

  /* ===== ヒーロー（1メッセージ用 / HP の slogan-marquee 雰囲気）===== */
  .slide.hero {
    align-items: center; justify-content: center; text-align: center;
    background:
      radial-gradient(ellipse at 50% 50%, rgba(255,255,255,0.6) 0%, transparent 60%),
      var(--lt-gradient-sky);
  }
  .slide.hero h1 {
    font-size: 152px;
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: 0.01em;
    color: var(--lt-navy);
  }
  .slide.hero h1 .accent { color: var(--lt-accent-primary); }
  .slide.hero .sub {
    margin-top: 32px;
    font-size: 32px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--lt-charcoal);
  }

  /* ===== カード（HP の lt-card 系を簡略移植）===== */
  .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 32px; }
  .card {
    background: var(--lt-white);
    border: 1px solid var(--lt-border);
    border-radius: var(--lt-radius-xl);
    padding: 40px 44px;
    box-shadow: var(--lt-shadow-sm);
  }
  .card h3 {
    font-size: 30px; font-weight: 700; color: var(--lt-navy);
    margin-bottom: 16px; letter-spacing: 0.02em;
  }
  .card .card-en {
    font-family: var(--lt-font-en);
    font-size: 14px; font-weight: 500;
    color: var(--lt-gray); letter-spacing: 0.04em;
    text-transform: uppercase; margin-bottom: 8px;
  }
  .card p, .card li { font-size: 24px; line-height: 1.7; color: var(--lt-charcoal); }

  /* ===== ピル型 CTA（HP の lt-btn-primary）===== */
  .lt-pill {
    display: inline-flex; align-items: center; gap: 14px;
    padding: 22px 40px;
    font-family: var(--lt-font-jp);
    font-size: 24px; font-weight: 600;
    letter-spacing: 0.04em;
    background: var(--lt-gradient-btn);
    color: #fff;
    border-radius: var(--lt-radius-full);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.35),
      inset 0 -1px 0 rgba(0,0,0,0.08),
      var(--lt-shadow-blue);
  }
  .lt-pill .lt-arrow {
    display: inline-block; width: 28px; height: 1px;
    background: currentColor; position: relative;
  }
  .lt-pill .lt-arrow::after {
    content: ""; position: absolute; right: 0; top: -4px;
    width: 10px; height: 10px;
    border-top: 1px solid currentColor;
    border-right: 1px solid currentColor;
    transform: rotate(45deg);
  }

  /* ===== 引用（HP のステートメントトーン）===== */
  blockquote {
    font-family: var(--lt-font-jp);
    font-size: 52px;
    font-weight: 600;
    line-height: 1.6;
    letter-spacing: 0.04em;
    color: var(--lt-navy);
    border-left: 6px solid var(--lt-accent-primary);
    padding: 16px 0 16px 44px;
    margin: 32px 0;
  }
  blockquote .q-slim { font-weight: 300; }
  blockquote cite {
    display: block; margin-top: 24px;
    font-family: var(--lt-font-en);
    font-size: 20px; font-weight: 500;
    color: var(--lt-gray); letter-spacing: 0.04em;
    font-style: normal; text-transform: uppercase;
  }

  /* ===== 画像フルブリード ===== */
  .image-slide { padding: 0; background: var(--lt-navy); }
  .image-slide img {
    width: 100%; height: 100%; object-fit: cover; display: block;
  }
  .image-slide .caption {
    position: absolute; left: var(--safe); bottom: var(--safe);
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    color: var(--lt-navy);
    padding: 18px 28px;
    font-size: 24px; font-weight: 600;
    border-radius: var(--lt-radius-full);
    box-shadow: var(--lt-shadow-md);
  }

  /* ===== クローム（ロゴ・カウンター・進捗）===== */
  .chrome { position: absolute; pointer-events: none; z-index: 50; }
  .chrome.brand {
    bottom: 28px; left: 40px;
    height: 32px;
    display: flex; align-items: center;
  }
  .chrome.brand img {
    height: 100%; width: auto; display: block;
    filter: drop-shadow(0 1px 2px rgba(15,23,42,0.08));
  }
  .slide.section ~ .chrome.brand img,
  body.invert-chrome .chrome.brand img {
    filter: brightness(0) invert(1) drop-shadow(0 1px 2px rgba(0,0,0,0.18));
  }
  .chrome.counter {
    bottom: 32px; right: 40px;
    font-family: var(--lt-font-en);
    font-size: 16px; font-weight: 500;
    color: var(--lt-gray); letter-spacing: 0.04em;
  }
  .chrome.progress {
    top: 0; left: 0; height: 3px;
    background: var(--lt-gradient-btn);
    transition: width .3s;
  }
  /* セクション仕切り上はクロームを白に反転 */
  .slide.section ~ .chrome.counter { color: rgba(255,255,255,0.85); }
  body.hide-chrome .chrome { display: none; }
  /* 表紙ではフッターロゴ・カウンター非表示（タイトル左上のロックアップで完結するため） */
  body.is-title .chrome.brand,
  body.is-title .chrome.counter { display: none; }

  /* ===== タイトルスライドのロゴロックアップ（横ロゴ）===== */
  .title-lockup {
    height: 96px;
    margin-bottom: 56px;
  }
  .title-lockup img { height: 100%; width: auto; display: block; }

  /* ===== エンディングの縦ロゴ ===== */
  .end-logo {
    height: 220px; width: auto;
    margin: 0 auto 40px;
    display: block;
    animation: hero-float 6s ease-in-out infinite;
  }
  @keyframes hero-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
  }

  /* ===== グリッド（位置調整用）===== */
  body.show-grid .stage::before {
    content: ""; position: absolute; inset: 0;
    background-image:
      linear-gradient(to right, rgba(255,0,80,0.14) 1px, transparent 1px),
      linear-gradient(to bottom, rgba(255,0,80,0.14) 1px, transparent 1px);
    background-size: 96px 96px;
    pointer-events: none; z-index: 9999;
  }
  body.show-grid .stage::after {
    content: ""; position: absolute;
    top: var(--safe); left: var(--safe);
    right: var(--safe); bottom: var(--safe);
    border: 2px dashed rgba(255,0,80,0.45);
    pointer-events: none; z-index: 9999;
  }

  /* ===== ナビゲーション ===== */
  .nav { position: fixed; bottom: 24px; right: 24px; display: flex; gap: 10px; z-index: 100; }
  .nav button {
    width: 48px; height: 48px; border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.6);
    background: rgba(0,0,0,0.45);
    color: #fff; font-size: 18px; cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  .nav button:hover { background: var(--lt-accent-primary); border-color: var(--lt-accent-primary); }
  body:fullscreen .nav, body.hide-chrome .nav { display: none; }

  /* ===== HP の hero-blur-in 風アニメ（active 切替時に発火）===== */
  @keyframes lt-blur-in {
    0%   { opacity: 0; filter: blur(14px); transform: translateY(20px); }
    60%  { opacity: 1; }
    100% { opacity: 1; filter: blur(0); transform: translateY(0); }
  }
  .slide.active > * { animation: lt-blur-in 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .slide.active > *:nth-child(1) { animation-delay: 0.05s; }
  .slide.active > *:nth-child(2) { animation-delay: 0.20s; }
  .slide.active > *:nth-child(3) { animation-delay: 0.35s; }
  .slide.active > *:nth-child(4) { animation-delay: 0.50s; }
  @media (prefers-reduced-motion: reduce) {
    .slide.active > * { animation: none; }
  }

  /* ===== EPISODE バッジ（タイトルスライド左上）===== */
  .ep-badge {
    display: inline-block;
    font-family: var(--lt-font-en);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--lt-accent-primary);
    padding: 8px 18px;
    border: 2px solid var(--lt-accent-primary);
    border-radius: var(--lt-radius-full);
    margin-bottom: 32px;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  /* ===== TOPへ戻るリンク（録画時は h で非表示）===== */
  .back-to-top {
    position: fixed;
    top: 18px; left: 18px;
    z-index: 200;
    font-family: var(--lt-font-en);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--lt-navy);
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 8px 16px;
    border: 1px solid var(--lt-border);
    border-radius: var(--lt-radius-full);
    text-decoration: none;
    box-shadow: var(--lt-shadow-sm);
    transition: all .25s;
  }
  .back-to-top:hover {
    background: var(--lt-accent-primary);
    color: #fff;
    border-color: var(--lt-accent-primary);
  }
  body:fullscreen .back-to-top, body.hide-chrome .back-to-top { display: none; }
