@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Exo+2:wght@300;400;500;700&display=swap");
/**
 * =====================================================================================
 * TRPGシナリオシート テンプレート - 最適化スタイル v2.2
 * =====================================================================================
 * 
 * 作成日: 2025年
 * 最終更新: 2025年8月1日
 * バージョン: 2.2.0（構造最適化版）
 * 
 * クイックカスタマイズガイド:
 * 1. テーマカラー: --theme-accent-hue の値を変更（初期値: 250）
 * 2. ハンドアウト角丸: --handout-omote-border-radius を調整
 * 3. フォントファミリー: --theme-font-family を変更
 * 4. コンパイル: 変更後は 'npm run build-css' を実行
 * 
 * 主要機能:
 * - 8,000行以上をSCSSミックスインで最適化
 * - グラスモーフィズムデザインシステム
 * - レスポンシブモバイルファーストアプローチ
 * - ダーク/ライトテーマサポート
 * - 印刷最適化レイアウト
 * - クリップボードコピー機能
 * 
 * 利用可能なミックスイン:
 * @include flex-center;        // 完全中央配置
 * @include text-primary(0.8);  // テーマ対応テキストカラー
 * @include glass-effect(light); // グラスモーフィズム効果
 * @include common-transition(); // 統一トランジション
 * 
 * テーマカラー推奨値:
 * ミステリー: 250 | ホラー: 0 | ファンタジー: 280 | SF: 200
 * 自然: 120 | アドベンチャー: 45 | コメディ: 75
 * 
 * ファイル構成:
 * 1. CSSカスタムプロパティ（テーマカラー、間隔、タイポグラフィ）
 * 2. SCSS変数とミックスイン（再利用可能パターン）
 * 3. ベーススタイル（レイアウト、タイポグラフィ、フォーム）
 * 4. コンポーネントスタイル（カード、ボタン、モーダル）
 * 5. コンテンツスタイル（ハンドアウト、NPC、シーンテーブル）
 * 6. レスポンシブデザイン（モバイル、タブレット最適化）
 * 7. 印刷スタイル（A4最適化）
 */
:root {
  /**
   * メインテーマカラー設定
   * 
   * --theme-accent-hue の値を変更してテーマを変更:
   * 青系: 210-240 (現在: 250) | 紫系: 260-290 | 赤系: 0-30
   * オレンジ系: 30-60 | 黄系: 60-90 | 緑系: 90-150 | 青緑系: 150-210
   */
  --theme-accent-hue: 250;
  --theme-accent-saturation: 84%;
  --theme-accent-lightness: 65%;
  /**
   * セカンダリーカラー（自動生成 - 通常変更不要）
   * プライマリテーマから調和色を自動生成
   */
  --theme-secondary-hue: calc(var(--theme-accent-hue) + 30);
  --theme-secondary-saturation: calc(var(--theme-accent-saturation) - 14%);
  --theme-secondary-lightness: calc(var(--theme-accent-lightness) - 5%);
  /**
   * ハンドアウトレイアウト設定
   * 用途: ハンドアウトの外観カスタマイズ
   * 使用例: 表テキストの角丸設定（0 = スクエア、8px = 角丸）
   */
  --handout-omote-border-radius: 0;
  /**
   * ハンドアウトカラー設定
   * 用途: 表・裏テキストの色彩定義
   * 使用例: .omote（表）と.ura（裏）の背景色とテキスト色
   */
  --handout-omote-bg: #f8f4e6;
  --handout-omote-text: #2d2d2d;
  --handout-omote-hover: #f0e6d2;
  --handout-ura-bg: #2d2d2d;
  --handout-ura-text: #f0f0f0;
  --handout-ura-hover: #3d3d3d;
  /**
   * ハンドアウトヘッダー設定
   * 用途: ハンドアウト上部のヘッダー部分の色彩
   * 使用例: PC名、PL名などの情報表示エリア
   */
  --handout-header-bg: rgba(139, 119, 101, 0.08);
  --handout-header-label-color: rgba(0, 0, 0, 0.6);
  --handout-header-value-color: rgba(0, 0, 0, 0.85);
  /**
   * ハンドアウトフッター設定
   * 用途: ハンドアウト下部のフッター部分の色彩
   * 使用例: 注意事項、コピーライト情報の表示エリア
   */
  --handout-footer-bg: rgba(45, 45, 45, 0.95);
  --handout-footer-label-color: rgba(255, 255, 255, 0.7);
  --handout-footer-value-color: rgba(255, 255, 255, 1);
  --theme-background-image: url("../images/main.webp");
  --theme-background-opacity: 0.35;
  --theme-font-family: "Exo 2", "Noto Sans JP", sans-serif;
  --theme-accent-font: "Orbitron", "Exo 2", monospace;
  --theme-font-weight-normal: 400;
  --theme-font-weight-medium: 500;
  --theme-font-weight-bold: 700;
  --neon-glow: 0 0 15px hsla(var(--theme-accent-hsl), 0.4);
  --neon-glow-hover: 0 0 20px hsla(var(--theme-accent-hsl), 0.6);
  --neon-glow-strong: 0 0 30px hsla(var(--theme-accent-hsl), 0.8);
  --digital-grid-pattern:
    linear-gradient(hsla(var(--theme-accent-hsl), 0.08) 1px, transparent 1px),
    linear-gradient(90deg, hsla(var(--theme-accent-hsl), 0.08) 1px, transparent 1px);
  --digital-grid-size: 20px 20px;
  --hologram-shimmer: linear-gradient(
    45deg,
    transparent 30%,
    hsla(var(--theme-accent-hsl), 0.2) 50%,
    transparent 70%
  );
  --sf-bg-overlay: linear-gradient(
    135deg,
    hsla(var(--theme-accent-hsl), 0.03) 0%,
    hsla(var(--theme-secondary-hsl), 0.02) 50%,
    transparent 100%
  );
  --scan-line-animation: scanline-sweep 3s ease-in-out infinite;
  --scan-line-gradient: linear-gradient(
    90deg,
    transparent 0%,
    hsla(var(--theme-accent-hsl), 0.3) 2%,
    hsla(var(--theme-accent-hsl), 0.8) 50%,
    hsla(var(--theme-accent-hsl), 0.3) 98%,
    transparent 100%
  );
  --pulse-glow: 0 0 20px hsla(var(--theme-accent-hsl), 0.4);
  --pulse-glow-strong: 0 0 40px hsla(var(--theme-accent-hsl), 0.7);
  --laser-line: linear-gradient(
    to right,
    transparent 0%,
    hsla(var(--theme-accent-hsl), 0.1) 20%,
    hsla(var(--theme-accent-hsl), 0.6) 50%,
    hsla(var(--theme-accent-hsl), 0.1) 80%,
    transparent 100%
  );
  --data-flow-gradient: linear-gradient(
    90deg,
    hsla(var(--theme-accent-hsl), 0) 0%,
    hsla(var(--theme-accent-hsl), 0.3) 25%,
    hsla(var(--theme-accent-hsl), 0.6) 50%,
    hsla(var(--theme-accent-hsl), 0.3) 75%,
    hsla(var(--theme-accent-hsl), 0) 100%
  );
  --text-block-process-hue: 220;
  --text-block-process-saturation: 70%;
  --text-block-process-lightness: 55%;
  --text-block-warning-hue: 35;
  --text-block-warning-saturation: 85%;
  --text-block-warning-lightness: 60%;
  --text-block-character-hue: 95;
  --text-block-character-saturation: 65%;
  --text-block-character-lightness: 50%;
  --text-block-success-hue: 175;
  --text-block-success-saturation: 70%;
  --text-block-success-lightness: 55%;
  --text-block-failure-hue: 355;
  --text-block-failure-saturation: 85%;
  --text-block-failure-lightness: 50%;
  --text-block-purpose-hue: 210;
  --text-block-purpose-saturation: 75%;
  --text-block-purpose-lightness: 50%;
  --text-block-guideline-hue: 240;
  --text-block-guideline-saturation: 70%;
  --text-block-guideline-lightness: 55%;
  --text-block-check-hue: 25;
  --text-block-check-saturation: 80%;
  --text-block-check-lightness: 60%;
  --text-block-gminfo-hue: 280;
  --text-block-gminfo-saturation: 85%;
  --text-block-gminfo-lightness: 45%;
  --text-block-notice-hue: 15;
  --text-block-notice-saturation: 90%;
  --text-block-notice-lightness: 55%;
  --text-block-note-hue: 200;
  --text-block-note-saturation: 40%;
  --text-block-note-lightness: 60%;
  --text-block-gaiyo-hue: 180;
  --text-block-gaiyo-saturation: 60%;
  --text-block-gaiyo-lightness: 55%;
  --dark-lightness-boost: 15%;
  --light-lightness-reduction: 10%;
  --text-dark-lightness-boost: 25%;
  --text-light-lightness-reduction: 30%;
  --theme-accent-dark: hsl(var(--theme-accent-hue), var(--theme-accent-saturation), 80%);
  --theme-secondary-dark: hsl(var(--theme-secondary-hue), var(--theme-secondary-saturation), 75%);
  --theme-accent-light: hsl(var(--theme-accent-hue), var(--theme-accent-saturation), 55%);
  --theme-secondary-light: hsl(var(--theme-secondary-hue), var(--theme-secondary-saturation), 55%);
  --theme-accent: var(--theme-accent-dark);
  --theme-secondary: var(--theme-secondary-dark);
  --theme-accent-text: hsl(
    var(--theme-accent-hue),
    var(--theme-accent-saturation),
    calc(var(--theme-accent-lightness) + var(--text-dark-lightness-boost))
  );
  --theme-secondary-text: hsl(
    var(--theme-secondary-hue),
    var(--theme-secondary-saturation),
    calc(var(--theme-secondary-lightness) + var(--text-dark-lightness-boost))
  );
  --theme-accent-hsl: var(--theme-accent-hue), var(--theme-accent-saturation), 80%;
  --theme-secondary-hsl: var(--theme-secondary-hue), var(--theme-secondary-saturation), 75%;
  --theme-accent-text-hsl: var(--theme-accent-hue), var(--theme-accent-saturation), 90%;
  --theme-secondary-text-hsl: var(--theme-secondary-hue), var(--theme-secondary-saturation), 85%;
  --base-primary: 26, 31, 58;
  --base-secondary: 45, 53, 97;
  --base-surface: 35, 42, 78;
  --text-primary: 248, 250, 252;
  --text-secondary: 200, 210, 230;
  --text-muted: 156, 163, 175;
  --success: 34, 197, 94;
  --warning: 245, 158, 11;
  --danger: 239, 68, 68;
  --glass-blur-light: 8px;
  --glass-blur-medium: 16px;
  --glass-blur-strong: 24px;
  --glass-blur-dramatic: 32px;
  --glass-bg-alpha: 0.80;
  --glass-bg-alpha-readable: 0.85;
  --glass-bg-alpha-decorative: 0.65;
  --glass-border-alpha: 0.4;
  --dynamic-bg-gradient: radial-gradient(circle at 20% 50%, hsla(var(--theme-accent-hsl), 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, hsla(var(--theme-secondary-hsl), 0.15) 0%, transparent 50%),
    radial-gradient(
      circle at 40% 20%,
      hsla(calc(var(--theme-accent-hue) + 30), var(--theme-accent-saturation), var(--theme-accent-lightness), 0.1) 0%,
      transparent 50%
    );
}

.light-theme {
  --base-primary: 248, 250, 252;
  --base-secondary: 226, 232, 240;
  --base-surface: 241, 245, 249;
  --text-primary: 30, 41, 59;
  --text-secondary: 71, 85, 105;
  --text-muted: 100, 116, 139;
  --theme-background-opacity: 0.7;
  --theme-accent: var(--theme-accent-light);
  --theme-secondary: var(--theme-secondary-light);
  --theme-accent-text: hsl(
    var(--theme-accent-hue),
    var(--theme-accent-saturation),
    calc(var(--theme-accent-lightness) - var(--text-light-lightness-reduction))
  );
  --theme-secondary-text: hsl(
    var(--theme-secondary-hue),
    var(--theme-secondary-saturation),
    calc(var(--theme-secondary-lightness) - var(--text-light-lightness-reduction))
  );
  --theme-accent-hsl: var(--theme-accent-hue), var(--theme-accent-saturation), calc(var(--theme-accent-lightness) - var(--light-lightness-reduction));
  --theme-secondary-hsl: var(--theme-secondary-hue), var(--theme-secondary-saturation), calc(var(--theme-secondary-lightness) - var(--light-lightness-reduction));
  --theme-accent-text-hsl: var(--theme-accent-hue), var(--theme-accent-saturation), calc(var(--theme-accent-lightness) - var(--text-light-lightness-reduction));
  --theme-secondary-text-hsl: var(--theme-secondary-hue), var(--theme-secondary-saturation), calc(var(--theme-secondary-lightness) - var(--text-light-lightness-reduction));
}

.dark-theme {
  --base-primary: 15, 20, 35;
  --base-secondary: 25, 30, 45;
  --base-surface: 35, 40, 55;
  --text-primary: 248, 250, 252;
  --text-secondary: 200, 210, 230;
  --text-muted: 156, 163, 175;
  --theme-background-opacity: 0.35;
  --handout-omote-hover: #ffffff;
  --theme-accent: var(--theme-accent-dark);
  --theme-secondary: var(--theme-secondary-dark);
  --theme-accent-text: hsl(
    var(--theme-accent-hue),
    var(--theme-accent-saturation),
    calc(var(--theme-accent-lightness) + var(--text-dark-lightness-boost))
  );
  --theme-secondary-text: hsl(
    var(--theme-secondary-hue),
    var(--theme-secondary-saturation),
    calc(var(--theme-secondary-lightness) + var(--text-dark-lightness-boost))
  );
  --theme-accent-hsl: var(--theme-accent-hue), var(--theme-accent-saturation), calc(var(--theme-accent-lightness) + var(--dark-lightness-boost));
  --theme-secondary-hsl: var(--theme-secondary-hue), var(--theme-secondary-saturation), calc(var(--theme-secondary-lightness) + var(--dark-lightness-boost));
  --theme-accent-text-hsl: var(--theme-accent-hue), var(--theme-accent-saturation), calc(var(--theme-accent-lightness) + var(--text-dark-lightness-boost));
  --theme-secondary-text-hsl: var(--theme-secondary-hue), var(--theme-secondary-saturation), calc(var(--theme-secondary-lightness) + var(--text-dark-lightness-boost));
}
.dark-theme button:not(.theme-toggle-btn):hover .fas,
.dark-theme button:not(.theme-toggle-btn):hover .far,
.dark-theme button:not(.theme-toggle-btn):hover .fab {
  opacity: 1;
}
.dark-theme .copy-text:not(.omote):not(.ura):hover:not(.copy-success) {
  background: hsla(var(--theme-accent-hsl), 0.06);
  border-color: rgba(var(--text-primary), 0.18);
}
.dark-theme .copy-text:not(.omote):not(.ura).copy-success {
  background: rgba(var(--success), 0.15) !important;
  border-color: rgba(var(--success), 0.4) !important;
}
.dark-theme .serifu-line.copy-text.copy-success {
  background: rgba(var(--success), 0.15) !important;
  border-color: rgba(var(--success), 0.4) !important;
}
.dark-theme .byosya-text {
  background: hsl(var(--theme-accent-hue), calc(var(--theme-accent-saturation) * 0.15), calc(var(--theme-accent-lightness) - 20%));
}
.dark-theme .byosya-text:hover {
  background: hsl(var(--theme-accent-hue), calc(var(--theme-accent-saturation) * 0.18), calc(var(--theme-accent-lightness) - 17%));
}

body.theme-zero {
  --theme-accent-hue: 190;
  --theme-accent-saturation: 85%;
  --theme-accent-lightness: 60%;
  --theme-accent: hsl(var(--theme-accent-hue), var(--theme-accent-saturation), var(--theme-accent-lightness));
  --theme-secondary: hsl(calc(var(--theme-accent-hue) + 20), calc(var(--theme-accent-saturation) - 10%), calc(var(--theme-accent-lightness) - 5%));
  --scan-line-gradient: linear-gradient(
    90deg,
    transparent 0%,
    hsla(var(--theme-accent-hsl), 0.15) 2%,
    hsla(var(--theme-accent-hsl), 0.4) 50%,
    hsla(var(--theme-accent-hsl), 0.15) 98%,
    transparent 100%
  );
}
body.theme-zero::before {
  background-image: var(--digital-grid-pattern);
  background-size: var(--digital-grid-size);
  opacity: 0.3;
  animation: grid-flicker 4s ease-in-out infinite;
}

body.theme-zero-ln {
  --theme-accent-hue: 320;
  --theme-accent-saturation: 80%;
  --theme-accent-lightness: 65%;
  --theme-background-image: url("../images/lnmain2.webp");
  --theme-accent: hsl(var(--theme-accent-hue), var(--theme-accent-saturation), var(--theme-accent-lightness));
  --theme-secondary: hsl(calc(var(--theme-accent-hue) + 15), calc(var(--theme-accent-saturation) - 10%), calc(var(--theme-accent-lightness) - 5%));
  --scan-line-gradient: linear-gradient(
    90deg,
    transparent 0%,
    hsla(var(--theme-accent-hsl), 0.1) 2%,
    hsla(var(--theme-accent-hsl), 0.25) 50%,
    hsla(var(--theme-accent-hsl), 0.1) 98%,
    transparent 100%
  );
}
body.theme-zero-ln::before {
  background-image: var(--digital-grid-pattern);
  background-size: var(--digital-grid-size);
  opacity: 0.3;
  animation: grid-flicker 4s ease-in-out infinite;
}

body.theme-zero::after,
body.theme-zero-ln::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--sf-bg-overlay);
  pointer-events: none;
  z-index: -1;
}
body.theme-zero .site-title,
body.theme-zero-ln .site-title {
  font-family: var(--theme-accent-font);
  text-shadow: var(--neon-glow);
  position: relative;
}
body.theme-zero .site-title::after,
body.theme-zero-ln .site-title::after {
  content: "|";
  animation: cursor-blink 1s infinite;
  color: var(--theme-accent);
  opacity: 0.7;
}
body.theme-zero h2.section-title,
body.theme-zero-ln h2.section-title {
  font-family: var(--theme-accent-font);
  text-shadow: var(--neon-glow);
  position: relative;
}
body.theme-zero h2.section-title::before,
body.theme-zero-ln h2.section-title::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--laser-line);
  animation: laser-pulse 2s ease-in-out infinite alternate;
}
body.theme-zero .nav-link:hover::before,
body.theme-zero-ln .nav-link:hover::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--scan-line-gradient);
  animation: scan-sweep 0.6s ease-out;
  pointer-events: none;
  z-index: 1;
}
body.theme-zero .btn:not(.nav-toggle-btn):not(.theme-toggle-btn):not(.back-to-top):not(.sidebar-close):not(.hero-scroll-indicator):not(.show-sidebar-btn),
body.theme-zero button:not(.nav-toggle-btn):not(.theme-toggle-btn):not(.back-to-top):not(.sidebar-close):not(.hero-scroll-indicator):not(.show-sidebar-btn),
body.theme-zero-ln .btn:not(.nav-toggle-btn):not(.theme-toggle-btn):not(.back-to-top):not(.sidebar-close):not(.hero-scroll-indicator):not(.show-sidebar-btn),
body.theme-zero-ln button:not(.nav-toggle-btn):not(.theme-toggle-btn):not(.back-to-top):not(.sidebar-close):not(.hero-scroll-indicator):not(.show-sidebar-btn) {
  position: relative;
}
body.theme-zero .btn:not(.nav-toggle-btn):not(.theme-toggle-btn):not(.back-to-top):not(.sidebar-close):not(.hero-scroll-indicator):not(.show-sidebar-btn):hover,
body.theme-zero button:not(.nav-toggle-btn):not(.theme-toggle-btn):not(.back-to-top):not(.sidebar-close):not(.hero-scroll-indicator):not(.show-sidebar-btn):hover,
body.theme-zero-ln .btn:not(.nav-toggle-btn):not(.theme-toggle-btn):not(.back-to-top):not(.sidebar-close):not(.hero-scroll-indicator):not(.show-sidebar-btn):hover,
body.theme-zero-ln button:not(.nav-toggle-btn):not(.theme-toggle-btn):not(.back-to-top):not(.sidebar-close):not(.hero-scroll-indicator):not(.show-sidebar-btn):hover {
  box-shadow: var(--pulse-glow);
  transform: translateY(-1px);
}
body.theme-zero .btn:not(.nav-toggle-btn):not(.theme-toggle-btn):not(.back-to-top):not(.sidebar-close):not(.hero-scroll-indicator):not(.show-sidebar-btn):hover::after,
body.theme-zero button:not(.nav-toggle-btn):not(.theme-toggle-btn):not(.back-to-top):not(.sidebar-close):not(.hero-scroll-indicator):not(.show-sidebar-btn):hover::after,
body.theme-zero-ln .btn:not(.nav-toggle-btn):not(.theme-toggle-btn):not(.back-to-top):not(.sidebar-close):not(.hero-scroll-indicator):not(.show-sidebar-btn):hover::after,
body.theme-zero-ln button:not(.nav-toggle-btn):not(.theme-toggle-btn):not(.back-to-top):not(.sidebar-close):not(.hero-scroll-indicator):not(.show-sidebar-btn):hover::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent 0%, hsla(var(--theme-accent-hsl), 0.3) 48%, hsla(var(--theme-accent-hsl), 0.6) 50%, hsla(var(--theme-accent-hsl), 0.3) 52%, transparent 100%);
  background-size: 400% 100%;
  animation: shimmer 1.2s linear;
  pointer-events: none;
  z-index: 1;
  border-radius: inherit;
}
body.theme-zero .glass-card,
body.theme-zero-ln .glass-card {
  position: relative;
  overflow: hidden;
}
body.theme-zero .glass-card::before,
body.theme-zero-ln .glass-card::before {
  background: var(--sf-bg-overlay);
  opacity: 0.5;
}
body.theme-zero .glass-card::after,
body.theme-zero-ln .glass-card::after {
  background: linear-gradient(90deg, transparent 0%, hsla(var(--theme-accent-hsl), 0.6) 25%, hsla(var(--theme-accent-hsl), 0.8) 50%, hsla(var(--theme-accent-hsl), 0.6) 75%, transparent 100%);
}
body.theme-zero .glass-card:hover,
body.theme-zero-ln .glass-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), var(--pulse-glow);
  transform: translateY(-2px);
}
body.theme-zero .sidebar::after,
body.theme-zero-ln .sidebar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--scan-line-gradient);
  animation: var(--scan-line-animation);
  pointer-events: none;
  z-index: 1;
}
body.theme-zero input:not([type=checkbox]):not([type=radio]):focus,
body.theme-zero textarea:focus,
body.theme-zero select:focus,
body.theme-zero-ln input:not([type=checkbox]):not([type=radio]):focus,
body.theme-zero-ln textarea:focus,
body.theme-zero-ln select:focus {
  border-color: var(--theme-accent);
  box-shadow: 0 0 0 2px hsla(var(--theme-accent-hsl), 0.2), inset 0 0 10px hsla(var(--theme-accent-hsl), 0.05);
}

@keyframes cursor-blink {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0;
  }
}
@keyframes scan-sweep {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}
@keyframes scanline-sweep {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateX(100%);
    opacity: 0;
  }
}
@keyframes laser-pulse {
  0% {
    opacity: 0.3;
    transform: scaleX(0.8);
  }
  100% {
    opacity: 0.8;
    transform: scaleX(1.2);
  }
}
@keyframes data-pulse {
  0%, 100% {
    box-shadow: 0 0 10px hsla(var(--theme-accent-hsl), 0.3);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 25px hsla(var(--theme-accent-hsl), 0.6);
    transform: scale(1.02);
  }
}
@keyframes grid-flicker {
  0%, 100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.6;
  }
}
@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}
@keyframes pulse-expand {
  0% {
    width: 0;
    height: 0;
    opacity: 1;
  }
  100% {
    width: 120px;
    height: 120px;
    opacity: 0;
  }
}
/**
 * Flexboxセンタリング - 最頻出パターン（118回使用）
 * 用途: 要素を完全中央配置
 */
/**
 * Flexbox縦センタリング - 頻出パターン（89回使用）
 * 用途: 垂直方向のみ中央配置、横は自然配置
 */
/**
 * Flexbox横センタリング - 頻出パターン（67回使用）
 * 用途: 水平方向のみ中央配置、縦は自然配置
 */
/**
 * テキストプライマリカラー - 最頻出パターン（118回使用）
 * 用途: テーマに応じたプライマリテキストカラー適用
 */
/**
 * テーマボールドフォント - 頻出パターン（46回使用）
 * 用途: テーマに応じたボールドフォント適用
 */
/**
 * カード基本スタイル - 頻出パターン（34回使用）
 * 用途: グラスカード効果の基本スタイル
 */
/**
 * 共通トランジションMixin
 * 用途: 全体で統一されたトランジション効果を適用
 * 使用例: @include common-transition(); または @include common-transition(transform);
 * 適用箇所: ボタン、カード、モーダル、ナビゲーション要素など
 */
/**
 * レスポンシブパディングMixin
 * 用途: デバイスサイズに応じたパディング調整の統一
 * 使用例: @include responsive-padding($spacing-sm, $spacing-md, $spacing-lg);
 * 適用箇所: カード、セクション、コンテンツエリア全般
 */
/**
 * レスポンシブマージンMixin
 * 用途: デバイスサイズに応じたマージン調整の統一
 * 使用例: @include responsive-margin($spacing-sm, $spacing-md, $spacing-lg);
 * 適用箇所: セクション間、コンテンツブロック間の間隔調整
 */
/**
 * モバイル専用スタイルMixin
 * 用途: モバイル専用のスタイル適用を簡素化
 * 使用例: @include mobile { font-size: 14px; }
 * 適用箇所: モバイル固有のレイアウト調整全般
 */
/**
 * レスポンシブフォントサイズMixin
 * 用途: モバイルファーストでフォントサイズを定義
 * 使用例: @include responsive-font-size(1rem, 1.2rem, 1.4rem);
 */
/**
 * レスポンシブスペーシングMixin
 * 用途: padding/marginの統一的なレスポンシブ制御
 * 使用例: @include responsive-spacing(margin, 1rem, 1.5rem, 2rem);
 */
/**
 * テキストブロック基本レイアウトMixin
 * 用途: 全テキストブロック共通の基本レイアウト
 */
/**
 * テキストブロック色テーマMixin
 * 用途: 背景色とボーダーの色テーマ設定
 */
/**
 * テキストブロックラベルMixin
 * 用途: 左上の囲みラベル作成
 */
/**
 * テキストブロックアイコンMixin
 * 用途: 右上のFont Awesomeアイコン設定
 */
/**
 * テキストブロックホバー効果Mixin
 * 用途: 統一されたホバー効果
 */
/**
 * タブレット専用スタイルMixin
 * 用途: タブレット専用のスタイル適用を簡素化
 * 使用例: @include tablet { grid-template-columns: repeat(2, 1fr); }
 * 適用箇所: タブレット固有のレイアウト調整全般
 */
/**
 * デスクトップ専用スタイルMixin
 * 用途: デスクトップ専用のスタイル適用を簡素化
 * 使用例: @include desktop { grid-template-columns: repeat(4, 1fr); }
 * 適用箇所: デスクトップ固有のレイアウト調整全般
 */
/**
 * グラス効果の統一Mixin（拡張版）
 * 用途: 統一されたグラス効果の適用
 * 使用例: @include glass-effect(medium, true, true);
 * 適用箇所: カード、モーダル、サイドバー、セクション背景
 */
/**
 * 統合テキストブロックMixin（モジュラー版）
 * 用途: 分割されたミックスインを組み合わせて完全なテキストブロックを生成
 */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 17px;
  scroll-behavior: smooth;
}
@media (max-width: 679px) {
  html {
    font-size: 15px;
  }
}

body {
  font-family: var(--theme-font-family);
  font-weight: var(--theme-font-weight-normal);
  line-height: 1.6;
  color: rgba(var(--text-primary), 0.95);
  background: rgba(var(--base-primary), 1);
  overflow-x: hidden;
  min-height: 100vh;
  transition: all 0.3s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
@media (max-width: 530px) {
  body {
    overflow-x: hidden;
    max-width: 100vw;
  }
}

a {
  color: var(--theme-accent-text);
  text-decoration: none;
  transition: all 0.15s ease;
  cursor: pointer;
}
a:hover {
  color: hsla(var(--theme-accent-text-hsl), 0.7);
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  transition: all 0.15s ease;
}
button:focus {
  outline: 2px solid hsla(var(--theme-accent-hsl), 0.5);
  outline-offset: 2px;
}

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

/**
 * 基本見出しスタイル
 * 全サイト共通のベースデザイン。専用クラスが設定されている場合は上書きされる。
 * 階層構造: h1（ページタイトル）→ h2（大セクション）→ h3（中セクション）→ h4（小セクション）→ h5（詳細項目）
 */
h2 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: var(--theme-font-weight-bold);
  color: rgba(var(--text-primary), 0.95);
  margin-bottom: 1.5rem;
  padding: 0.75rem 0 0.75rem 0;
  position: relative;
  letter-spacing: 0.02em;
}
h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--theme-accent) 0%, hsla(var(--theme-accent-hsl), 0.4) 70%, hsla(var(--theme-accent-hsl), 0.1) 100%);
  border-radius: 2px;
  transition: all 0.3s ease;
}

h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: var(--theme-font-weight-bold);
  color: rgba(var(--text-primary), 0.95);
  margin-bottom: 1rem;
  padding: 0.5rem 0;
}

h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: var(--theme-font-weight-bold);
  color: rgba(var(--text-primary), 0.9);
  margin-bottom: 1rem;
  padding: 0.25rem 0;
  border-bottom: 1px solid rgba(var(--theme-accent-hsl), 0.2);
  position: relative;
}
h4::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--theme-accent) 0%, hsla(var(--theme-accent-hsl), 0.3) 100%);
  border-radius: 1px;
}

h5 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: var(--theme-font-weight-medium);
  color: rgba(var(--text-primary), 0.85);
  margin-bottom: 0.75rem;
  padding: 0rem 0 0.2rem 8px;
  position: relative;
}
h5::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--theme-accent) 0%, hsla(var(--theme-accent-hsl), 0.3) 100%);
  border-radius: 1px;
}

.background-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: var(--theme-background-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: var(--theme-background-opacity);
  z-index: -1;
  transition: opacity 0.5s ease;
}
.background-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--dynamic-bg-gradient);
  transition: background 0.5s ease;
}
.background-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(var(--base-primary), 0.8) 0%, rgba(var(--base-secondary), 0.7) 100%);
  transition: background 0.5s ease;
}

.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
}

.content-wrapper {
  display: flex;
  flex: 1;
  position: relative;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding-top: 60px;
  box-sizing: border-box;
}
.content-wrapper.initial-hidden {
  opacity: 0;
  visibility: hidden;
  transition: none;
}
@media (max-width: 679px) {
  .content-wrapper {
    flex-direction: column;
  }
}
.content-wrapper.sidebar-hidden .sidebar {
  width: 0;
  opacity: 0;
  overflow: hidden;
}
.content-wrapper.sidebar-hidden .main-content {
  margin-left: 0;
}
.content-wrapper.no-sidebar {
  display: block;
}
.content-wrapper.no-sidebar .main-content {
  margin-left: 0;
  max-width: 1000px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
}

.glass-card {
  background: rgba(var(--base-surface), var(--glass-bg-alpha));
  border: 1px solid rgba(var(--base-surface), var(--glass-border-alpha));
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(var(--text-primary), 0.06);
  border-radius: 16px;
  margin-bottom: 2.5rem;
  overflow: hidden;
  position: relative;
}
.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
  pointer-events: none;
  z-index: -1;
  transition: opacity 0.3s ease;
}
.glass-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, hsla(var(--theme-accent-hsl), 0.3) 25%, hsla(var(--theme-accent-hsl), 0.5) 50%, hsla(var(--theme-accent-hsl), 0.3) 75%, transparent 100%);
  z-index: 1;
}
.glass-card::after {
  height: 2px;
}
.dark-theme .glass-card, body:not(.light-theme) .glass-card {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), 0 4px 16px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(var(--text-primary), 0.1);
  border-color: hsla(var(--theme-accent-hsl), 0.25);
}
.dark-theme .glass-card::before, body:not(.light-theme) .glass-card::before {
  background: linear-gradient(135deg, rgba(var(--text-primary), 0.08) 0%, rgba(var(--text-primary), 0.04) 50%, rgba(var(--text-primary), 0.02) 100%);
}
.dark-theme .glass-card::after, body:not(.light-theme) .glass-card::after {
  background: linear-gradient(90deg, transparent 0%, hsla(var(--theme-accent-hsl), 0.6) 25%, hsla(var(--theme-accent-hsl), 0.8) 50%, hsla(var(--theme-accent-hsl), 0.6) 75%, transparent 100%);
}
.glass-card .section-content {
  position: relative;
  z-index: 2;
  padding: 1rem;
  margin: 0 0 1rem 0;
  line-height: 1.6;
  color: rgba(var(--text-secondary), 0.9);
  font-size: 0.95rem;
  transition: all 0.3s ease;
}
@media (min-width: 500px) and (max-width: 1000px) {
  .glass-card .section-content {
    padding: 1.5rem 1rem 1.5rem 1rem;
  }
}
@media (max-width: 679px) {
  .glass-card .section-content {
    padding: 1rem 0.5rem 1rem 0.5rem;
  }
}
.glass-card .section-content:last-child {
  margin-bottom: 0;
}
.glass-card .section-content p {
  line-height: 1.7;
}
.glass-card .section-content p:first-child {
  margin-top: 0;
}
.glass-card .section-content p:last-child {
  margin-bottom: 0;
}
.glass-card .section-content > p {
  padding: 0.5rem 1rem 1rem;
}
@media (max-width: 679px) {
  .glass-card .section-content > p {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}
.glass-card .section-content p + ul,
.glass-card .section-content p + ol {
  margin-top: 0.25rem;
}
.glass-card .section-content ul, .glass-card .section-content ol {
  margin-bottom: 1rem;
}
.glass-card .section-content ul:first-child, .glass-card .section-content ol:first-child {
  margin-top: 0;
}
.glass-card .section-content ul:last-child, .glass-card .section-content ol:last-child {
  margin-bottom: 0;
}
.glass-card {
  /**
   * セクションタイトル専用スタイル（h2基本スタイルを継承）
   * 用途: トレーラー、シナリオ概要、NPC紹介などの大セクション見出し
   * 特徴: 基本h2デザイン + カード内パディング + アクティブ状態
   */
}
.glass-card h2.section-title {
  padding: 1.5rem 1.5rem 0.5rem;
  margin: 0 0 1rem;
  transition: all 0.3s ease;
}
@media (min-width: 500px) and (max-width: 1000px) {
  .glass-card h2.section-title {
    padding: 1.5rem 1rem 1rem 1rem;
  }
}
.glass-card h2.section-title::after {
  left: 1.5rem;
  width: 60px;
  transition: all 0.3s ease;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: rgba(var(--base-surface), var(--glass-bg-alpha));
  border: 1px solid rgba(var(--base-surface), var(--glass-border-alpha));
  border-bottom: 1px solid rgba(255, 255, 255, var(--glass-border-alpha));
  z-index: 200;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(0);
  will-change: transform;
}
.site-header.initial-hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-100%);
  transition: none;
}
@media (max-width: 679px) {
  .site-header {
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
  pointer-events: none;
  z-index: -1;
}
.site-header .header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0.5rem 1rem;
  position: relative;
  z-index: 1;
}
@media (min-width: 680px) and (max-width: 767px) {
  .site-header .header-content {
    padding: 0.25rem 1rem;
    gap: 1rem;
    min-height: 55px;
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .site-header .header-content {
    padding: 0.5rem 1rem;
    gap: 1rem;
    min-height: 60px;
  }
}
.site-header .site-title {
  font-size: 1.5rem;
  font-weight: var(--theme-font-weight-bold);
  margin: 0;
  background: linear-gradient(135deg, rgba(var(--text-primary), 1) 0%, var(--theme-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s ease;
}

.main-nav {
  display: flex;
  gap: 1rem;
  align-items: center;
}
@media (max-width: 679px) {
  .main-nav {
    display: none;
  }
}
@media (min-width: 680px) and (max-width: 767px) {
  .main-nav {
    gap: 0.5rem;
  }
  .main-nav .nav-link {
    font-size: 0.9rem;
    padding: 0.25rem 0.5rem;
    white-space: nowrap;
    font-weight: 500;
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .main-nav {
    gap: 0.5rem;
  }
  .main-nav .nav-link {
    font-size: 0.9rem;
    padding: 0.25rem 1rem;
    white-space: nowrap;
    font-weight: 500;
  }
}
.main-nav .nav-link {
  position: relative;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  color: rgba(var(--text-secondary), 0.9);
  font-weight: 500;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}
.main-nav .nav-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, hsla(var(--theme-accent-hsl), 0.1) 0%, hsla(var(--theme-secondary-hsl), 0.08) 100%);
  transform: translateY(100%);
  transition: transform 0.3s;
}
.main-nav .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--theme-accent) 0%, var(--theme-secondary) 100%);
  border-radius: 1px;
  transform: translateX(-50%);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.main-nav .nav-link:hover {
  color: rgba(var(--text-primary), 1);
}
.main-nav .nav-link:hover:not(.dark-theme *) {
  transform: translateY(-1px);
}
.main-nav .nav-link:hover:not(.dark-theme *)::before {
  transform: translateY(0);
}
.main-nav .nav-link:hover:not(.dark-theme *)::after {
  width: 80%;
}
.dark-theme .main-nav .nav-link:hover {
  background: rgba(var(--text-primary), 0.12);
  transform: translateX(2px);
}
.dark-theme .main-nav .nav-link:hover::before {
  transform: translateY(0);
  opacity: 0.3;
}
.dark-theme .main-nav .nav-link:hover::after {
  width: 30%;
  opacity: 0.5;
}
.main-nav .nav-link.active {
  color: var(--theme-accent-text);
  background: linear-gradient(135deg, hsla(var(--theme-accent-hsl), 0.2) 0%, hsla(var(--theme-secondary-hsl), 0.15) 100%);
  border: 1px solid hsla(var(--theme-accent-hsl), 0.4);
  box-shadow: 0 4px 12px hsla(var(--theme-accent-hsl), 0.25);
}
.main-nav .nav-link.active::before {
  transform: translateY(0);
  background: linear-gradient(135deg, hsla(var(--theme-accent-hsl), 0.1) 0%, hsla(var(--theme-secondary-hsl), 0.08) 100%);
}
.main-nav .nav-link.active::after {
  width: 90%;
  height: 3px;
  background: linear-gradient(90deg, var(--theme-accent) 0%, var(--theme-secondary) 100%);
}

.mobile-nav {
  display: none;
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
@media (max-width: 679px) {
  .mobile-nav {
    display: block;
  }
}
.mobile-nav .mobile-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mobile-nav .mobile-nav-item {
  margin-bottom: 0.5rem;
}
.mobile-nav .mobile-nav-link {
  display: flex;
  align-items: center;
  padding: 1rem;
  color: rgba(var(--text-primary), 0.9);
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.3s;
  background: hsla(var(--theme-accent-hsl), 0.05);
}
.mobile-nav .mobile-nav-link:hover {
  background: hsla(var(--theme-accent-hsl), 0.1);
  color: rgba(var(--text-primary), 1);
}
.mobile-nav .mobile-nav-link i {
  margin-right: 1rem;
  font-size: 1.1rem;
  color: var(--theme-accent-text);
}

.side-nav {
  padding: 1rem 1rem calc(60px + 1rem) 1rem;
  position: relative;
  z-index: 2;
}
.side-nav .nav-list {
  list-style: none;
  list-style-type: none;
  padding: 0;
  margin: 0;
}
.side-nav .nav-item {
  margin-bottom: 0.5rem;
  position: relative;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.side-nav .nav-item:hover {
  background: rgba(var(--text-primary), 0.08);
  transform: translateX(2px);
}
.side-nav .nav-item .nav-link {
  display: block;
  padding: 0.5rem 1rem;
  color: rgba(var(--text-primary), 0.9);
  text-decoration: none;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.side-nav .nav-item .nav-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: hsla(var(--theme-secondary-hsl), 0.05);
  transform: translateX(-100%);
  transition: transform 0.3s;
}
.side-nav .nav-item .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--theme-accent) 0%, var(--theme-secondary) 100%);
  border-radius: 1px;
  transform: translateX(-50%);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.side-nav .nav-item .nav-link:hover {
  color: rgba(var(--text-primary), 1);
}
.side-nav .nav-item .nav-link:hover::before {
  transform: translateX(0);
}
.side-nav .nav-item .nav-link:hover::after {
  width: 80%;
}
.side-nav .nav-item .nav-link.active {
  color: var(--theme-accent-text);
  font-weight: var(--theme-font-weight-bold);
  background: linear-gradient(135deg, hsla(var(--theme-accent-hsl), 0.15) 0%, hsla(var(--theme-secondary-hsl), 0.1) 100%);
}
.side-nav .nav-item .nav-link.active::before {
  transform: translateX(0);
  background: hsla(var(--theme-secondary-hsl), 0.08);
}
.side-nav .nav-item .nav-link.active::after {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--theme-accent) 0%, var(--theme-secondary) 100%);
}
.side-nav .nav-item .sub-nav {
  list-style: none;
  list-style-type: none;
  padding: 0;
  padding-left: 1rem;
  margin: 0;
  margin-top: 0.25rem;
  max-height: none;
  overflow: visible;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.side-nav .nav-item .sub-nav::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, hsla(var(--theme-accent-hsl), 0.3) 0%, hsla(var(--theme-accent-hsl), 0.1) 100%);
  opacity: 1;
  transform: scaleY(1);
  transform-origin: top;
  transition: opacity 0.5s ease, transform 0.3s;
}
.side-nav .nav-item .sub-nav .sub-nav-item {
  margin-bottom: 0.25rem;
  position: relative;
}
.side-nav .nav-item .sub-nav .sub-nav-item .nav-link {
  font-size: 0.9rem;
  padding: 0.25rem 0.5rem;
  padding-left: 1rem;
  opacity: 0.9;
}
.side-nav .nav-item .sub-nav .sub-nav-item .nav-link.active {
  background: hsla(var(--theme-accent-hsl), 0.2);
  border-radius: 6px;
  color: var(--theme-accent-text);
  font-weight: var(--theme-font-weight-bold);
  background: linear-gradient(135deg, hsla(var(--theme-accent-hsl), 0.12) 0%, hsla(var(--theme-secondary-hsl), 0.08) 100%);
}
.side-nav .nav-item .sub-nav .sub-nav-item .nav-link.active::after {
  width: 100%;
  height: 2px;
}
.side-nav .nav-item .sub-nav .sub-nav-item .nav-link:hover::after {
  width: 100%;
}
.side-nav .nav-item.accordion-trigger, .side-nav .nav-item.scene-header {
  position: relative;
}
.side-nav .nav-item.accordion-trigger .nav-link, .side-nav .nav-item.scene-header .nav-link {
  padding-right: 50px;
  border-radius: 8px;
}
.side-nav .nav-item.accordion-trigger .nav-toggle-btn, .side-nav .nav-item.scene-header .nav-toggle-btn {
  position: absolute;
  right: 0.5rem;
  top: 8px;
  width: 28px;
  height: 28px;
  border: 1px solid hsla(var(--theme-accent-hsl), 0.2);
  background: hsla(var(--theme-accent-hsl), 0.05);
  color: hsla(var(--theme-text-hsl), 0.7);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 5;
}
.side-nav .nav-item.accordion-trigger .nav-toggle-btn:hover, .side-nav .nav-item.scene-header .nav-toggle-btn:hover {
  background: hsla(var(--theme-accent-hsl), 0.15);
  border-color: hsla(var(--theme-accent-hsl), 0.4);
  color: hsla(var(--theme-accent-hsl), 1);
  transform: scale(1.05);
}
.side-nav .nav-item.accordion-trigger .nav-toggle-btn:active, .side-nav .nav-item.scene-header .nav-toggle-btn:active {
  transform: scale(0.95);
}
.side-nav .nav-item.accordion-trigger .nav-toggle-btn.active, .side-nav .nav-item.accordion-trigger .nav-toggle-btn.rotated, .side-nav .nav-item.scene-header .nav-toggle-btn.active, .side-nav .nav-item.scene-header .nav-toggle-btn.rotated {
  transform: rotate(180deg);
  background: hsla(var(--theme-accent-hsl), 0.1);
  border-color: hsla(var(--theme-accent-hsl), 0.3);
}
.side-nav .nav-item.accordion-trigger .nav-toggle-btn.active:hover, .side-nav .nav-item.accordion-trigger .nav-toggle-btn.rotated:hover, .side-nav .nav-item.scene-header .nav-toggle-btn.active:hover, .side-nav .nav-item.scene-header .nav-toggle-btn.rotated:hover {
  transform: rotate(180deg) scale(1.05);
}
.side-nav .nav-item.accordion-trigger .nav-toggle-btn i, .side-nav .nav-item.scene-header .nav-toggle-btn i {
  font-size: 12px;
  transition: inherit;
}

.nav-toggle {
  width: 44px;
  height: 44px;
  font-size: 1rem;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  background: rgba(var(--base-surface), var(--glass-bg-alpha));
  border: 1px solid rgba(var(--base-surface), var(--glass-border-alpha));
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.12);
}
.nav-toggle::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, hsla(var(--theme-accent-hsl), 0.2) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}
.nav-toggle:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 0, 0, 0.16);
  border-color: rgba(255, 255, 255, calc(var(--glass-border-alpha) + 0.1));
}
.nav-toggle:hover::before {
  opacity: 1;
}
.nav-toggle {
  display: none;
  color: rgba(var(--text-primary), 0.8);
}
@media (max-width: 679px) {
  .nav-toggle {
    display: flex;
    order: 1;
  }
}
.nav-toggle.active {
  background: hsla(var(--theme-accent-hsl), 0.3);
  border-color: hsla(var(--theme-accent-hsl), 0.5);
  transform: rotate(90deg);
}
.nav-toggle.active .hamburger {
  background: transparent;
}
.nav-toggle.active .hamburger::before {
  transform: rotate(45deg) translate(6px, 6px);
  top: -9px;
}
.nav-toggle.active .hamburger::after {
  transform: rotate(-45deg) translate(6px, -6px);
  bottom: -8px;
}

.hamburger {
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  position: relative;
  transition: all 0.3s ease;
}
.hamburger::before, .hamburger::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: all 0.3s ease;
}
.hamburger::before {
  top: -6px;
  left: 0;
}
.hamburger::after {
  bottom: -6px;
  left: 0;
}

.theme-toggle-btn {
  width: 44px;
  height: 44px;
  font-size: 1rem;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  background: rgba(var(--base-surface), var(--glass-bg-alpha));
  border: 1px solid rgba(var(--base-surface), var(--glass-border-alpha));
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.12);
}
.theme-toggle-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, hsla(var(--theme-accent-hsl), 0.2) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}
.theme-toggle-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 0, 0, 0.16);
  border-color: rgba(255, 255, 255, calc(var(--glass-border-alpha) + 0.1));
}
.theme-toggle-btn:hover::before {
  opacity: 1;
}
.theme-toggle-btn {
  color: rgba(var(--text-secondary), 0.8);
  border: 1px solid rgba(var(--text-secondary), 0.2);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: visible;
  margin-right: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.theme-toggle-btn:hover::after {
  opacity: 1;
  transform: translateY(0px);
}
.theme-toggle-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  transform: translateY(5px);
  background: rgba(var(--base-primary), 0.95);
  color: rgba(var(--text-primary), 1);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  z-index: 1001;
  box-shadow: var(--shadow-elevated);
  transition: all 0.15s ease;
  border: 1px solid rgba(var(--text-primary), 0.1);
}
.theme-toggle-btn i {
  font-size: 16px;
  transition: all 0.3s ease;
  position: absolute;
}
.theme-toggle-btn .light-icon {
  color: #ff8c00;
  opacity: 1;
  transform: rotate(0deg);
}
.theme-toggle-btn .dark-icon {
  color: #4a90e2;
  opacity: 0;
  transform: rotate(180deg);
}
.theme-toggle-btn:not(.dark-active):hover .light-icon {
  color: #ffa500;
}
.theme-toggle-btn.dark-active .light-icon {
  opacity: 0;
  transform: rotate(-180deg);
}
.theme-toggle-btn.dark-active .dark-icon {
  opacity: 1;
  transform: rotate(0deg);
}
.theme-toggle-btn.dark-active:hover .dark-icon {
  color: #5ba0f2;
}

@keyframes heroFadeInUp {
  0% {
    opacity: 0;
    filter: blur(6px);
    transform: translateY(25px);
  }
  70% {
    opacity: 0.9;
    filter: blur(2px);
    transform: translateY(5px);
  }
  100% {
    opacity: 1;
    filter: blur(0px);
    transform: translateY(0);
  }
}
@keyframes heroBackgroundFocus {
  from {
    opacity: 0;
    filter: blur(12px) brightness(0.85);
    transform: scale(1.05);
  }
  to {
    opacity: 1;
    filter: blur(0px) brightness(1);
    transform: scale(1);
  }
}
@keyframes heroLogoFocusZoom {
  from {
    opacity: 0;
    filter: blur(8px);
    transform: scale(1.1) translateY(12px);
  }
  to {
    opacity: 1;
    filter: blur(0px);
    transform: scale(1) translateY(0);
  }
}
@keyframes scrollBounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-8px);
  }
  60% {
    transform: translateY(-4px);
  }
}
@keyframes scrollMove {
  0% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateX(-50%) translateY(20px);
    opacity: 0.2;
  }
  100% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}
@keyframes scrollPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}
@keyframes scrollMoveDesktop {
  0% {
    transform: translateX(-50%) translateY(0);
    opacity: 0.3;
    box-shadow: 0 0 3px rgba(255, 255, 255, 0.3);
  }
  50% {
    transform: translateX(-50%) translateY(150%);
    opacity: 1;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
  }
  100% {
    transform: translateX(-50%) translateY(0);
    opacity: 0.3;
    box-shadow: 0 0 3px rgba(255, 255, 255, 0.3);
  }
}
@keyframes heroOverlayFade {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
.hero-section {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: opacity 0.3s ease-out;
}
@media (max-width: 679px) {
  .hero-section {
    height: 100vh;
    min-height: 500px;
  }
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.hero-background .hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  animation: heroBackgroundFocus 0.8s ease-out forwards;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  animation: heroOverlayFade 1s ease-out;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.1) 30%, rgba(0, 0, 0, 0.1) 70%, rgba(0, 0, 0, 0.5) 100%);
}
.hero-overlay::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, hsla(var(--theme-accent-hsl), 0.15) 0%, transparent 50%, hsla(var(--theme-secondary-hsl), 0.1) 100%);
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  text-align: center;
  color: #ffffff;
  padding: 0 1.5rem;
}
@media (max-width: 679px) {
  .hero-content {
    padding: 0 1rem;
  }
}

.hero-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}
@media (max-width: 679px) {
  .hero-container {
    gap: 1.5rem;
  }
}

.hero-logo-container {
  opacity: 0;
  animation: heroLogoFocusZoom 0.8s ease-out 0.5s forwards;
}
.hero-logo-container .hero-logo {
  max-width: 700px;
  max-height: 350px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.5));
}
@media (min-width: 769px) and (max-width: 1023px) {
  .hero-logo-container .hero-logo {
    max-width: 550px;
    max-height: 275px;
  }
}
@media (max-width: 1023px) {
  .hero-logo-container .hero-logo {
    max-width: 480px;
    max-height: 240px;
  }
}
@media (max-width: 679px) {
  .hero-logo-container .hero-logo {
    max-width: 350px;
    max-height: 175px;
  }
}

.hero-catchphrase-container {
  opacity: 0;
  animation: heroFadeInUp 0.6s ease-out 1.4s forwards;
}
.hero-catchphrase-container .hero-catchphrase {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: var(--theme-font-weight-bold);
  margin-bottom: 1rem;
  color: #ffffff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8), 0 2px 8px rgba(0, 0, 0, 0.6);
  letter-spacing: 0.05em;
  line-height: 1.4;
}
@media (max-width: 679px) {
  .hero-catchphrase-container .hero-catchphrase {
    margin-bottom: 0.5rem;
  }
}
.hero-catchphrase-container .hero-subcatch {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: var(--theme-font-weight-normal);
  opacity: 0.9;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.hero-scroll-indicator {
  opacity: 0;
  animation: heroFadeInUp 0.5s ease-out 2.2s forwards;
  position: relative;
  margin-top: 40px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-scroll-indicator:hover {
  transform: translateY(-3px);
}
.hero-scroll-indicator:hover .scroll-icon {
  border-color: rgb(255, 255, 255);
  background: rgba(255, 255, 255, 0.1);
  animation: scrollBounce 0.6s ease-in-out infinite alternate;
}
.hero-scroll-indicator:hover .scroll-text {
  opacity: 1;
  transform: translateY(-2px);
}
.hero-scroll-indicator .scroll-icon {
  width: 32px;
  height: 55px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  position: relative;
  margin: 0 auto 8px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: scrollPulse 3s infinite 3s;
}
.hero-scroll-indicator .scroll-icon::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 6px;
  height: 10px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 3px;
  transform: translateX(-50%);
  animation: scrollMove 1.5s infinite 2.8s;
  transition: all 0.3s ease;
}
@media (max-width: 679px) {
  .hero-scroll-indicator .scroll-icon {
    width: 28px;
    height: 48px;
  }
  .hero-scroll-indicator .scroll-icon::before {
    width: 5px;
    height: 8px;
    top: 6px;
  }
}
.hero-scroll-indicator .scroll-text {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 300;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  opacity: 0;
}
@media (max-width: 679px) {
  .hero-scroll-indicator .scroll-text {
    font-size: 0.75rem;
  }
}
@media (max-width: 679px) {
  .hero-scroll-indicator {
    margin-top: 30px;
  }
}

.hero-section + .content-wrapper {
  margin-top: 40vh;
  position: relative;
  z-index: 4;
}
@media (max-width: 679px) {
  .hero-section + .content-wrapper {
    margin-top: 35vh;
  }
}

.hero-section + .content-block {
  margin-top: 0;
  position: relative;
  z-index: 4;
}

@media (prefers-reduced-motion: reduce) {
  .hero-logo-container,
  .hero-catchphrase-container,
  .hero-scroll-indicator {
    animation: none !important;
    opacity: 1 !important;
  }
  .hero-bg-image {
    animation: none !important;
  }
  .hero-logo {
    transition: none !important;
  }
  .hero-logo:hover {
    transform: none !important;
  }
  .scroll-icon {
    animation: none !important;
  }
  .scroll-icon::before {
    animation: none !important;
  }
}
.sidebar {
  width: 320px;
  position: fixed;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  transition: opacity 0.3s ease;
  z-index: 30;
  background: rgba(var(--base-surface), var(--glass-bg-alpha));
  border: 1px solid rgba(var(--base-surface), var(--glass-border-alpha));
  border-right: 1px solid rgba(255, 255, 255, var(--glass-border-alpha));
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: all 0.3s ease;
}
.sidebar.initial-hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateX(-100%);
  transition: none;
}
.sidebar .side-nav.nav-initial-hidden {
  opacity: 0;
  transform: translateY(20px);
  transition: none;
}
.sidebar .side-nav.nav-initial-hidden .nav-item {
  opacity: 0;
  transform: translateX(-20px);
  transition: none;
}
.sidebar .side-nav.nav-animate-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.sidebar .side-nav.nav-animate-in .nav-item {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}
.sidebar .side-nav.nav-animate-in .nav-item:nth-child(1) {
  transition-delay: 0s;
}
.sidebar .side-nav.nav-animate-in .nav-item:nth-child(2) {
  transition-delay: 0.1s;
}
.sidebar .side-nav.nav-animate-in .nav-item:nth-child(3) {
  transition-delay: 0.2s;
}
.sidebar .side-nav.nav-animate-in .nav-item:nth-child(4) {
  transition-delay: 0.3s;
}
.sidebar .side-nav.nav-animate-in .nav-item:nth-child(5) {
  transition-delay: 0.4s;
}
.sidebar .side-nav.nav-animate-in .nav-item:nth-child(6) {
  transition-delay: 0.5s;
}
.sidebar .side-nav.nav-animate-in .nav-item:nth-child(7) {
  transition-delay: 0.6s;
}
.sidebar .side-nav.nav-animate-in .nav-item:nth-child(8) {
  transition-delay: 0.7s;
}
.sidebar .side-nav.nav-animate-in .nav-item:nth-child(9) {
  transition-delay: 0.8s;
}
.sidebar .side-nav.nav-animate-in .nav-item:nth-child(10) {
  transition-delay: 0.9s;
}
.sidebar {
  transition-property: transform, opacity, width;
  transition-duration: 0.3s;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
@media (min-width: 768px) and (max-width: 1023px) {
  .sidebar {
    width: 200px;
    min-width: 200px;
    max-width: 200px;
  }
}
@media (min-width: 1024px) {
  .sidebar {
    width: max(320px, min(20vw, 350px));
    max-width: 350px;
    min-width: 320px;
  }
}
.sidebar {
  background: rgba(var(--base-primary), 0.8);
}
.sidebar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, hsla(var(--theme-accent-hsl), 0.7) 25%, var(--theme-accent) 50%, hsla(var(--theme-accent-hsl), 0.7) 75%, transparent 100%);
  z-index: 1;
}
.sidebar .sidebar-header {
  display: flex;
  justify-content: flex-end;
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, calc(var(--glass-border-alpha) * 0.5));
  position: relative;
  z-index: 2;
}
.sidebar .sidebar-header .sidebar-close {
  width: 32px;
  height: 32px;
  font-size: 0.8rem;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  background: rgba(var(--base-surface), var(--glass-bg-alpha));
  border: 1px solid rgba(var(--base-surface), var(--glass-border-alpha));
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.12);
}
.sidebar .sidebar-header .sidebar-close::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, hsla(var(--theme-accent-hsl), 0.2) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}
.sidebar .sidebar-header .sidebar-close:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 0, 0, 0.16);
  border-color: rgba(255, 255, 255, calc(var(--glass-border-alpha) + 0.1));
}
.sidebar .sidebar-header .sidebar-close:hover::before {
  opacity: 1;
}
.sidebar .sidebar-header .sidebar-close {
  color: rgba(var(--text-secondary), 0.8);
}
.sidebar .sidebar-header .sidebar-close:hover {
  color: rgba(var(--text-primary), 1);
  background: hsla(var(--theme-accent-hsl), 0.2);
  border-color: hsla(var(--theme-accent-hsl), 0.3);
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 4px rgba(0, 0, 0, 0.08);
}
@media (max-width: 679px) {
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 85%;
    max-width: 80vw;
    height: 100vh;
    transform: translateX(-100%);
    opacity: 0;
    border-right: none;
    background: rgba(var(--base-primary), 0.95);
    border: 1px solid rgba(255, 255, 255, calc(var(--glass-border-alpha) * 0.3));
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  }
  .sidebar.active {
    transform: translateX(0);
    opacity: 1;
  }
}

.main-content {
  flex: 1;
  max-width: 1120px;
  margin: 0 auto 0 320px;
  padding: 1rem;
  transition: all 0.3s ease;
  position: relative;
  box-sizing: border-box;
}
.main-content.initial-hidden {
  opacity: 0;
  visibility: hidden;
  transition: none;
}
@media (min-width: 680px) and (max-width: 767px) {
  .main-content {
    margin-left: 220px;
    max-width: calc(100vw - 220px - 0.5rem);
    padding: 0.5rem 0.25rem 0.5rem 0.5rem;
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .main-content {
    margin-left: 200px;
    max-width: calc(100vw - 210px - 0.25rem);
    padding: 0.5rem 0.25rem 0.5rem 0.5rem;
  }
}
@media (min-width: 1024px) {
  .main-content {
    margin-left: max(320px, min(20vw, 350px));
    max-width: calc(1440px - max(320px, min(20vw, 350px)));
    padding: 2.5rem;
  }
}
@media (max-width: 679px) {
  .main-content {
    margin: 0 auto;
    max-width: 100vw;
    width: 100%;
    padding: 0.25rem;
    box-sizing: border-box;
    overflow-x: hidden;
  }
}
.main-content ul, .main-content ol {
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
  position: relative;
}
.main-content ul:first-child, .main-content ol:first-child {
  margin-top: 0;
}
.main-content ul.scenario-flow-list, .main-content ol.scenario-flow-list {
  margin: 0.3rem 0 1rem 0 !important;
}
.main-content ul li, .main-content ol li {
  position: relative;
  margin: 0.5rem 0;
  padding: 0.5rem 1rem 0.5rem 2.5rem;
  color: rgba(var(--text-primary), 0.9);
  line-height: 1.7;
  border-radius: 12px;
  background: hsla(var(--theme-accent-hsl), 0.03);
  border-left: 3px solid hsla(var(--theme-accent-hsl), 0.3);
  transition: all 0.3s ease;
}
.main-content ul li:hover, .main-content ol li:hover {
  background: hsla(var(--theme-accent-hsl), 0.06);
  border-left-color: hsla(var(--theme-accent-hsl), 0.5);
  transform: translateX(2px);
}
.main-content ul:not(.nav):not(.menu):not(.breadcrumb) li::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: hsla(var(--theme-accent-hsl), 0.7);
  border-radius: 50%;
  box-shadow: 0 0 0 2px hsla(var(--theme-accent-hsl), 0.2);
  z-index: 1;
}
.main-content ul:not(.nav):not(.menu):not(.breadcrumb) ul {
  margin: 0.5rem 0;
  padding-left: 1rem;
}
.main-content ul:not(.nav):not(.menu):not(.breadcrumb) ul li {
  background: hsla(var(--theme-accent-hsl), 0.02);
  border-left-color: hsla(var(--theme-accent-hsl), 0.2);
}
.main-content ul:not(.nav):not(.menu):not(.breadcrumb) ul li::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  background: hsla(var(--theme-accent-hsl), 0.5);
  border-radius: 50%;
  box-shadow: 0 0 0 1px hsla(var(--theme-accent-hsl), 0.1);
  z-index: 1;
}
.main-content ul:not(.nav):not(.menu):not(.breadcrumb) ul li ul li::before {
  width: 3px;
  height: 3px;
  background: hsla(var(--theme-accent-hsl), 0.4);
  box-shadow: none;
}
.main-content ol:not(.nav):not(.menu):not(.breadcrumb) {
  counter-reset: custom-counter;
}
.main-content ol:not(.nav):not(.menu):not(.breadcrumb) li {
  counter-increment: custom-counter;
}
.main-content ol:not(.nav):not(.menu):not(.breadcrumb) li::before {
  content: counter(custom-counter);
  position: absolute;
  left: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, hsla(var(--theme-accent-hsl), 0.8), hsla(var(--theme-accent-hsl), 0.6));
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px hsla(var(--theme-accent-hsl), 0.2);
  z-index: 1;
}
.main-content ol:not(.nav):not(.menu):not(.breadcrumb) li:hover::before {
  background: linear-gradient(135deg, hsla(var(--theme-accent-hsl), 1), hsla(var(--theme-accent-hsl), 0.8));
  box-shadow: 0 3px 8px hsla(var(--theme-accent-hsl), 0.3);
}
.main-content ol:not(.nav):not(.menu):not(.breadcrumb) ol {
  counter-reset: custom-counter-alpha;
}
.main-content ol:not(.nav):not(.menu):not(.breadcrumb) ol li {
  counter-increment: custom-counter-alpha;
}
.main-content ol:not(.nav):not(.menu):not(.breadcrumb) ol li::before {
  content: counter(custom-counter-alpha, lower-alpha);
  position: absolute;
  left: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background: hsla(var(--theme-accent-hsl), 0.6);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.main-content ol:not(.nav):not(.menu):not(.breadcrumb) ol li ol {
  counter-reset: custom-counter-roman;
}
.main-content ol:not(.nav):not(.menu):not(.breadcrumb) ol li ol li {
  counter-increment: custom-counter-roman;
}
.main-content ol:not(.nav):not(.menu):not(.breadcrumb) ol li ol li::before {
  content: counter(custom-counter-roman, lower-roman);
  position: absolute;
  left: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background: hsla(var(--theme-accent-hsl), 0.4);
  color: white;
  font-size: 0.65rem;
  font-weight: 600;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.main-content.full-width {
  width: 100%;
}
@media (max-width: 530px) {
  .main-content * {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .main-content img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
  }
  .main-content table {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
  }
}
.main-content .image-section.float-left + *,
.main-content .image-section.float-right + * {
  overflow: hidden;
}
@media (max-width: 679px) {
  .main-content .image-section.float-left ~ *,
  .main-content .image-section.float-right ~ * {
    clear: both;
  }
}
.main-content::after {
  content: "";
  display: table;
  clear: both;
}

/**
 * サブタイトル専用スタイル（h3基本スタイルを上書き）
 * 用途: NPCサンプル、各種サブセクションタイトル
 * 特徴: 左側アクセントライン付き
 */
h3.sub-title {
  margin: 0;
  padding-bottom: 6px;
  margin-bottom: 16px;
  font-weight: var(--theme-font-weight-bold);
  font-size: 1.2rem;
  color: rgba(var(--text-primary), 0.95);
  position: relative;
  padding-left: 16px;
  padding-top: 0;
  padding-bottom: 6px;
}
h3.sub-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--theme-accent);
  border-radius: 0 2px 2px 0;
}
.npc-profile h3.sub-title {
  padding-left: 0;
}
.npc-profile h3.sub-title::before {
  display: none;
}

.show-sidebar-btn {
  position: fixed;
  top: 80px;
  left: 8px;
  color: rgba(var(--text-secondary), 0.8);
  border: 1px solid rgba(var(--text-secondary), 0.2);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.show-sidebar-btn:hover {
  color: rgba(var(--text-primary), 1);
  background: hsla(var(--theme-accent-hsl), 0.2);
  border-color: hsla(var(--theme-accent-hsl), 0.3);
  transform: translateY(-2px) scale(1.05);
}
.show-sidebar-btn i {
  font-size: 16px;
}

.sub-section {
  position: relative;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 6px;
  border: 1px solid rgba(var(--text-primary), 0.08);
  background: rgba(var(--text-primary), 0.01);
}
.content-block#handout_block .sub-section, .content-block#etc_handout_block .sub-section {
  border-color: rgba(var(--text-primary), 0.08);
  background: rgba(var(--text-primary), 0.01);
}
.content-block#npc_introduction_block .sub-section {
  border-left: 3px solid rgba(var(--theme-accent-hsl), 0.25);
  border-color: rgba(var(--text-primary), 0.1);
  background: rgba(var(--text-primary), 0.015);
}
.sub-section p {
  margin-bottom: 1rem;
}
.sub-section p:last-child {
  margin-bottom: 0;
}
.sub-section p + ul, .sub-section p + ol {
  margin-top: 0.25rem;
}
.sub-section ul, .sub-section ol {
  margin-bottom: 1rem;
}
.sub-section ul:first-child, .sub-section ol:first-child {
  margin-top: 0;
}
.sub-section ul:last-child, .sub-section ol:last-child {
  margin-bottom: 0;
}
.sub-section section {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}
.sub-section section:first-of-type {
  margin-top: 1rem;
}
.sub-section section:last-of-type {
  margin-bottom: 0.5rem;
}
.sub-section section section {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}
.sub-section section section:first-of-type {
  margin-top: 0.5rem;
}
.sub-section section section:last-of-type {
  margin-bottom: 0;
}
@media (max-width: 679px) {
  .sub-section {
    padding: 0.5rem;
  }
}

.content-block {
  margin-bottom: 4rem;
  opacity: 1;
  transform: translateY(0);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
@media (min-width: 680px) and (max-width: 767px) {
  .content-block {
    margin-right: calc(-1 * 0.25rem);
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .content-block {
    margin-right: calc(-1 * 0.5rem);
  }
}
.content-block.full-width {
  margin-left: -1.5rem;
  margin-right: -1.5rem;
}
@media (min-width: 1024px) {
  .content-block.full-width {
    margin-left: -2.5rem;
    margin-right: -2.5rem;
  }
}

body.index-page .content-block {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
body.index-page .content-block.fade-in {
  opacity: 1;
  transform: translateY(0);
}
body.index-page .content-block .glass-card {
  will-change: auto;
}

#scenario_summary_block .glass-card,
#scenario_regulation_block .glass-card,
#scenario_features_block .glass-card,
#scenario_beginning_block .glass-card {
  border: 1px solid rgba(var(--text-primary), 0.08);
  box-shadow: 0 0 0 1px rgba(var(--text-primary), 0.02) inset, 0 1px 2px rgba(0, 0, 0, 0.04);
}

.copy-text {
  position: relative;
  cursor: pointer;
  display: block;
  padding: 8px 12px;
  margin: 4px 0;
  border-radius: 6px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}
.copy-text:hover {
  background: rgba(var(--theme-accent), 0.04);
  border-color: rgba(var(--text-primary), 0.15);
  transform: translateY(-1px);
}
.copy-text.copy-success {
  background: rgba(var(--success), 0.1);
  border-color: rgba(var(--success), 0.3);
  animation: copyPulse 0.6s ease-out;
}

@media (max-width: 679px) {
  .copy-text {
    padding-left: 0;
    padding-right: 0;
  }
}
.handout-content .copy-text.omote {
  background: var(--handout-omote-bg);
  color: var(--handout-omote-text);
}
.handout-content .copy-text.omote:hover {
  background: var(--handout-omote-hover);
}
.handout-content .copy-text.ura {
  background: var(--handout-ura-bg);
  color: var(--handout-ura-text);
}
.handout-content .copy-text.ura:hover {
  background: var(--handout-ura-hover);
}

.scene-table .copy-text {
  margin: 0;
  padding: 8px;
  border-radius: 4px;
}

.serifu-group {
  margin: 20px 0;
  padding: 16px 18px;
}
.serifu-group + .serifu-group {
  margin-top: 12px;
}
.serifu-group {
  background: linear-gradient(135deg, rgba(108, 117, 125, 0.05) 0%, rgba(134, 142, 150, 0.08) 100%);
  border-left: 2px solid rgba(108, 117, 125, 0.4);
  border-radius: 2px 10px 10px 2px;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 4px rgba(0, 0, 0, 0.08);
}
.serifu-group .serifu-line {
  margin: 6px 0;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(108, 117, 125, 0.15);
  position: relative;
  z-index: 1;
  color: rgba(var(--text-primary), 0.85);
}
.serifu-group .serifu-line:last-child {
  border-bottom: none;
}
.serifu-group .serifu-line.copy-text {
  margin: 3px 0;
  padding: 12px 0px;
  border-radius: 4px;
  border: 1px solid transparent;
}
.serifu-group .serifu-line.copy-text:hover:not(.copy-success) {
  background: rgba(var(--theme-accent), 0.04);
  border-color: rgba(var(--text-primary), 0.15);
  transform: none;
}
.serifu-group .serifu-line.copy-text.copy-success {
  background: rgba(var(--success), 0.1) !important;
  border-color: rgba(var(--success), 0.3) !important;
  animation: copyPulse 0.6s ease-out;
}

@media (max-width: 679px) {
  .serifu-group {
    padding: 6px 8px;
  }
  .serifu-group .serifu-line {
    padding: 7px 8px;
  }
  .serifu-group .serifu-line.copy-text {
    padding: 10px 0;
  }
  .character-serifu-group {
    padding: 12px 0 12px 8px;
  }
}
@keyframes copyPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.01);
  }
  100% {
    transform: scale(1);
  }
}
.copy-tooltip {
  position: fixed;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.12);
}
.copy-tooltip.show {
  opacity: 1;
}
.copy-tooltip.success {
  background: rgba(var(--success), 0.95);
}
.dark-theme .copy-tooltip {
  background: rgba(255, 255, 255, 0.95);
  color: rgba(0, 0, 0, 0.9);
}
.dark-theme .copy-tooltip.success {
  background: rgba(var(--success), 1);
  color: white;
}

.gaiyo-text {
  position: relative;
  padding: 1rem;
  padding-top: 32px;
  margin-bottom: 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  background: hsla(var(--theme-accent-hsl), 0.08);
  border-left: 4px solid hsl(var(--theme-accent-hue), var(--theme-accent-saturation), var(--theme-accent-lightness));
}
@media (max-width: 679px) {
  .gaiyo-text {
    border-left-width: 2px;
  }
}
.gaiyo-text::before {
  content: "概要";
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  font-size: 0.65rem;
  font-weight: var(--theme-font-weight-medium);
  color: rgba(var(--text-primary), 0.8);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-family: inherit;
  z-index: 2;
  background: hsla(var(--theme-accent-hsl), 0.12);
  border: 1px solid hsla(var(--theme-accent-hsl), 0.2);
  border-radius: 3px;
  padding: 2px 6px;
  line-height: 1;
}
.gaiyo-text::after {
  content: "\f05a";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  top: 0px;
  right: 5px;
  color: hsl(var(--theme-accent-hue), var(--theme-accent-saturation), calc(var(--theme-accent-lightness) - 10%));
  opacity: 0.3;
  font-size: 1rem;
  transition: all 0.3s ease;
}
.gaiyo-text:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 4px rgba(0, 0, 0, 0.08);
}
.gaiyo-text:hover::after {
  opacity: 0.9;
  transform: scale(1.05);
}
.gaiyo-text {
  color: rgba(var(--text-primary), 0.95);
  transition: all 0.3s ease;
}

.setumei-text {
  position: relative;
  padding-left: 0.5rem;
  margin-bottom: 1rem;
  color: rgba(var(--text-primary), 0.9);
  transition: all 0.3s ease;
}
@media (max-width: 679px) {
  .setumei-text {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}
.setumei-text p {
  margin-bottom: 1rem;
}
.setumei-text p:last-child {
  margin-bottom: 0;
}

.shori-text {
  position: relative;
  padding: 1rem;
  padding-top: 32px;
  margin-bottom: 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}
.shori-text:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 4px rgba(0, 0, 0, 0.08);
}
.shori-text:hover::after {
  opacity: 0.9;
  transform: scale(1.05);
}
.shori-text {
  background: hsla(var(--text-block-process-hue), var(--text-block-process-saturation), var(--text-block-process-lightness), 0.08);
  border-left: 4px solid hsl(var(--text-block-process-hue), var(--text-block-process-saturation), var(--text-block-process-lightness));
}
@media (max-width: 679px) {
  .shori-text {
    border-left-width: 2px;
  }
}
.shori-text::before {
  content: "処理";
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  font-size: 0.65rem;
  font-weight: var(--theme-font-weight-medium);
  color: rgba(var(--text-primary), 0.8);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-family: inherit;
  z-index: 2;
  display: inline-block;
  width: auto;
  max-width: fit-content;
  min-width: auto;
  background: hsla(var(--text-block-process-hue), var(--text-block-process-saturation), var(--text-block-process-lightness), 0.12);
  border: 1px solid hsla(var(--text-block-process-hue), var(--text-block-process-saturation), var(--text-block-process-lightness), 0.2);
  border-radius: 3px;
  padding: 2px 6px;
  line-height: 1;
  white-space: nowrap;
  box-sizing: border-box;
  overflow: visible;
}
.shori-text::after {
  content: "\f085";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  top: 0px;
  right: 5px;
  color: hsl(var(--text-block-process-hue), var(--text-block-process-saturation), calc(var(--text-block-process-lightness) - 10%));
  opacity: 0.3;
  font-size: 1rem;
  transition: all 0.3s ease;
}
.shori-text {
  color: rgba(var(--text-primary), 0.9);
}
.shori-text strong {
  color: rgba(var(--text-primary), 1);
  font-weight: var(--theme-font-weight-bold);
}
.shori-text:hover::after {
  opacity: 0.9;
  transform: scale(1.05);
}
@media (max-width: 679px) {
  .shori-text {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

.chuui-text {
  position: relative;
  padding: 1rem;
  padding-top: 32px;
  margin-bottom: 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}
.chuui-text:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 4px rgba(0, 0, 0, 0.08);
}
.chuui-text:hover::after {
  opacity: 0.9;
  transform: scale(1.05);
}
.chuui-text {
  color: rgba(var(--text-primary), 0.95);
  font-weight: var(--theme-font-weight-medium);
}

.purpose-text {
  position: relative;
  padding: 1rem;
  padding-top: 32px;
  margin-bottom: 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}
.purpose-text:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 4px rgba(0, 0, 0, 0.08);
}
.purpose-text:hover::after {
  opacity: 0.9;
  transform: scale(1.05);
}
.purpose-text {
  background: hsla(var(--text-block-purpose-hue), var(--text-block-purpose-saturation), var(--text-block-purpose-lightness), 0.08);
  border-left: 4px solid hsl(var(--text-block-purpose-hue), var(--text-block-purpose-saturation), var(--text-block-purpose-lightness));
}
@media (max-width: 679px) {
  .purpose-text {
    border-left-width: 2px;
  }
}
.purpose-text::before {
  content: "目的";
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  font-size: 0.65rem;
  font-weight: var(--theme-font-weight-medium);
  color: rgba(var(--text-primary), 0.8);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-family: inherit;
  z-index: 2;
  display: inline-block;
  width: auto;
  max-width: fit-content;
  min-width: auto;
  background: hsla(var(--text-block-purpose-hue), var(--text-block-purpose-saturation), var(--text-block-purpose-lightness), 0.12);
  border: 1px solid hsla(var(--text-block-purpose-hue), var(--text-block-purpose-saturation), var(--text-block-purpose-lightness), 0.2);
  border-radius: 3px;
  padding: 2px 6px;
  line-height: 1;
  white-space: nowrap;
  box-sizing: border-box;
  overflow: visible;
}
.purpose-text::after {
  content: "\f0b1";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  top: 0px;
  right: 5px;
  color: hsl(var(--text-block-purpose-hue), var(--text-block-purpose-saturation), calc(var(--text-block-purpose-lightness) - 10%));
  opacity: 0.3;
  font-size: 1rem;
  transition: all 0.3s ease;
}
.purpose-text {
  color: rgba(var(--text-primary), 0.9);
}

.guideline-text {
  position: relative;
  padding: 1rem;
  padding-top: 32px;
  margin-bottom: 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}
.guideline-text:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 4px rgba(0, 0, 0, 0.08);
}
.guideline-text:hover::after {
  opacity: 0.9;
  transform: scale(1.05);
}
.guideline-text {
  background: hsla(var(--text-block-guideline-hue), var(--text-block-guideline-saturation), var(--text-block-guideline-lightness), 0.08);
  border-left: 4px solid hsl(var(--text-block-guideline-hue), var(--text-block-guideline-saturation), var(--text-block-guideline-lightness));
}
@media (max-width: 679px) {
  .guideline-text {
    border-left-width: 2px;
  }
}
.guideline-text::before {
  content: "指針";
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  font-size: 0.65rem;
  font-weight: var(--theme-font-weight-medium);
  color: rgba(var(--text-primary), 0.8);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-family: inherit;
  z-index: 2;
  display: inline-block;
  width: auto;
  max-width: fit-content;
  min-width: auto;
  background: hsla(var(--text-block-guideline-hue), var(--text-block-guideline-saturation), var(--text-block-guideline-lightness), 0.12);
  border: 1px solid hsla(var(--text-block-guideline-hue), var(--text-block-guideline-saturation), var(--text-block-guideline-lightness), 0.2);
  border-radius: 3px;
  padding: 2px 6px;
  line-height: 1;
  white-space: nowrap;
  box-sizing: border-box;
  overflow: visible;
}
.guideline-text::after {
  content: "\f14e";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  top: 0px;
  right: 5px;
  color: hsl(var(--text-block-guideline-hue), var(--text-block-guideline-saturation), calc(var(--text-block-guideline-lightness) - 10%));
  opacity: 0.3;
  font-size: 1rem;
  transition: all 0.3s ease;
}
.guideline-text {
  color: rgba(var(--text-primary), 0.9);
}

.check-text {
  position: relative;
  padding: 1rem;
  padding-top: 32px;
  margin-bottom: 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}
.check-text:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 4px rgba(0, 0, 0, 0.08);
}
.check-text:hover::after {
  opacity: 0.9;
  transform: scale(1.05);
}
.check-text {
  background: hsla(var(--text-block-check-hue), var(--text-block-check-saturation), var(--text-block-check-lightness), 0.1);
  border-left: 4px solid hsl(var(--text-block-check-hue), var(--text-block-check-saturation), var(--text-block-check-lightness));
}
@media (max-width: 679px) {
  .check-text {
    border-left-width: 2px;
  }
}
.check-text::before {
  content: "判定";
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  font-size: 0.65rem;
  font-weight: var(--theme-font-weight-medium);
  color: rgba(var(--text-primary), 0.8);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-family: inherit;
  z-index: 2;
  display: inline-block;
  width: auto;
  max-width: fit-content;
  min-width: auto;
  background: hsla(var(--text-block-check-hue), var(--text-block-check-saturation), var(--text-block-check-lightness), 0.12);
  border: 1px solid hsla(var(--text-block-check-hue), var(--text-block-check-saturation), var(--text-block-check-lightness), 0.2);
  border-radius: 3px;
  padding: 2px 6px;
  line-height: 1;
  white-space: nowrap;
  box-sizing: border-box;
  overflow: visible;
}
.check-text::after {
  content: "\f522";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  top: 0px;
  right: 5px;
  color: hsl(var(--text-block-check-hue), var(--text-block-check-saturation), calc(var(--text-block-check-lightness) - 10%));
  opacity: 0.3;
  font-size: 1rem;
  transition: all 0.3s ease;
}
.check-text {
  color: rgba(var(--text-primary), 0.9);
}

.gminfo-text {
  position: relative;
  padding: 1rem;
  padding-top: 32px;
  margin-bottom: 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}
.gminfo-text:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 4px rgba(0, 0, 0, 0.08);
}
.gminfo-text:hover::after {
  opacity: 0.9;
  transform: scale(1.05);
}
.gminfo-text {
  background: hsla(var(--text-block-gminfo-hue), var(--text-block-gminfo-saturation), var(--text-block-gminfo-lightness), 0.08);
  border-left: 4px solid hsl(var(--text-block-gminfo-hue), var(--text-block-gminfo-saturation), var(--text-block-gminfo-lightness));
}
@media (max-width: 679px) {
  .gminfo-text {
    border-left-width: 2px;
  }
}
.gminfo-text::before {
  content: "GM情報";
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  font-size: 0.65rem;
  font-weight: var(--theme-font-weight-medium);
  color: rgba(var(--text-primary), 0.8);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-family: inherit;
  z-index: 2;
  display: inline-block;
  width: auto;
  max-width: fit-content;
  min-width: auto;
  background: hsla(var(--text-block-gminfo-hue), var(--text-block-gminfo-saturation), var(--text-block-gminfo-lightness), 0.12);
  border: 1px solid hsla(var(--text-block-gminfo-hue), var(--text-block-gminfo-saturation), var(--text-block-gminfo-lightness), 0.2);
  border-radius: 3px;
  padding: 2px 6px;
  line-height: 1;
  white-space: nowrap;
  box-sizing: border-box;
  overflow: visible;
}
.gminfo-text::after {
  content: "\f21b";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  top: 0px;
  right: 5px;
  color: hsl(var(--text-block-gminfo-hue), var(--text-block-gminfo-saturation), calc(var(--text-block-gminfo-lightness) - 10%));
  opacity: 0.3;
  font-size: 1rem;
  transition: all 0.3s ease;
}
.gminfo-text {
  color: rgba(var(--text-primary), 0.9);
}

.notice-text {
  position: relative;
  padding: 1rem;
  padding-top: 32px;
  margin-bottom: 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}
.notice-text:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 4px rgba(0, 0, 0, 0.08);
}
.notice-text:hover::after {
  opacity: 0.9;
  transform: scale(1.05);
}
.notice-text {
  background: hsla(var(--text-block-notice-hue), var(--text-block-notice-saturation), var(--text-block-notice-lightness), 0.1);
  border-left: 4px solid hsl(var(--text-block-notice-hue), var(--text-block-notice-saturation), var(--text-block-notice-lightness));
}
@media (max-width: 679px) {
  .notice-text {
    border-left-width: 2px;
  }
}
.notice-text::before {
  content: "注意";
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  font-size: 0.65rem;
  font-weight: var(--theme-font-weight-medium);
  color: rgba(var(--text-primary), 0.8);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-family: inherit;
  z-index: 2;
  display: inline-block;
  width: auto;
  max-width: fit-content;
  min-width: auto;
  background: hsla(var(--text-block-notice-hue), var(--text-block-notice-saturation), var(--text-block-notice-lightness), 0.12);
  border: 1px solid hsla(var(--text-block-notice-hue), var(--text-block-notice-saturation), var(--text-block-notice-lightness), 0.2);
  border-radius: 3px;
  padding: 2px 6px;
  line-height: 1;
  white-space: nowrap;
  box-sizing: border-box;
  overflow: visible;
}
.notice-text::after {
  content: "\f071";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  top: 0px;
  right: 5px;
  color: hsl(var(--text-block-notice-hue), var(--text-block-notice-saturation), calc(var(--text-block-notice-lightness) - 10%));
  opacity: 0.3;
  font-size: 1rem;
  transition: all 0.3s ease;
}
.notice-text {
  color: rgba(var(--text-primary), 0.9);
}

.note-text {
  position: relative;
  padding: 1rem;
  padding-top: 32px;
  margin-bottom: 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}
.note-text:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 4px rgba(0, 0, 0, 0.08);
}
.note-text:hover::after {
  opacity: 0.9;
  transform: scale(1.05);
}
.note-text {
  background: hsla(var(--text-block-note-hue), var(--text-block-note-saturation), var(--text-block-note-lightness), 0.08);
  border-left: 4px solid hsl(var(--text-block-note-hue), var(--text-block-note-saturation), var(--text-block-note-lightness));
}
@media (max-width: 679px) {
  .note-text {
    border-left-width: 2px;
  }
}
.note-text::before {
  content: "備考";
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  font-size: 0.65rem;
  font-weight: var(--theme-font-weight-medium);
  color: rgba(var(--text-primary), 0.8);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-family: inherit;
  z-index: 2;
  display: inline-block;
  width: auto;
  max-width: fit-content;
  min-width: auto;
  background: hsla(var(--text-block-note-hue), var(--text-block-note-saturation), var(--text-block-note-lightness), 0.12);
  border: 1px solid hsla(var(--text-block-note-hue), var(--text-block-note-saturation), var(--text-block-note-lightness), 0.2);
  border-radius: 3px;
  padding: 2px 6px;
  line-height: 1;
  white-space: nowrap;
  box-sizing: border-box;
  overflow: visible;
}
.note-text::after {
  content: "\f249";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  top: 0px;
  right: 5px;
  color: hsl(var(--text-block-note-hue), var(--text-block-note-saturation), calc(var(--text-block-note-lightness) - 10%));
  opacity: 0.3;
  font-size: 1rem;
  transition: all 0.3s ease;
}
.note-text {
  color: rgba(var(--text-primary), 0.9);
}

.byosya-text {
  position: relative;
  padding: 1rem;
  padding-top: 32px;
  margin-bottom: 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}
.byosya-text:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 4px rgba(0, 0, 0, 0.08);
}
.byosya-text:hover::after {
  opacity: 0.9;
  transform: scale(1.05);
}
.byosya-text {
  background: hsla(var(--text-block-gaiyo-hue), var(--text-block-gaiyo-saturation), var(--text-block-gaiyo-lightness), 0.08);
  border-left: 4px solid hsl(var(--text-block-gaiyo-hue), var(--text-block-gaiyo-saturation), var(--text-block-gaiyo-lightness));
}
@media (max-width: 679px) {
  .byosya-text {
    border-left-width: 2px;
  }
}
.byosya-text::before {
  content: "描写";
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  font-size: 0.65rem;
  font-weight: var(--theme-font-weight-medium);
  color: rgba(var(--text-primary), 0.8);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-family: inherit;
  z-index: 2;
  display: inline-block;
  width: auto;
  max-width: fit-content;
  min-width: auto;
  background: hsla(var(--text-block-gaiyo-hue), var(--text-block-gaiyo-saturation), var(--text-block-gaiyo-lightness), 0.12);
  border: 1px solid hsla(var(--text-block-gaiyo-hue), var(--text-block-gaiyo-saturation), var(--text-block-gaiyo-lightness), 0.2);
  border-radius: 3px;
  padding: 2px 6px;
  line-height: 1;
  white-space: nowrap;
  box-sizing: border-box;
  overflow: visible;
}
.byosya-text::after {
  content: "\f518";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  top: 0px;
  right: 5px;
  color: hsl(var(--text-block-gaiyo-hue), var(--text-block-gaiyo-saturation), calc(var(--text-block-gaiyo-lightness) - 10%));
  opacity: 0.3;
  font-size: 1rem;
  transition: all 0.3s ease;
}
.byosya-text {
  color: rgba(var(--text-primary), 0.9);
}

.topic-section {
  margin: 2.5rem 0.5rem;
  padding: 1.5rem;
  border-radius: 12px;
  position: relative;
}
.light-theme .topic-section {
  background: #f5f5f5;
  border: 1px solid #d1d5db;
}
.dark-theme .topic-section {
  background: hsl(var(--theme-accent-hue), calc(var(--theme-accent-saturation) * 0.15), 20%);
  border: 1px solid hsl(var(--theme-accent-hue), calc(var(--theme-accent-saturation) * 0.2), 25%);
}
.topic-section {
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.light-theme .topic-section:hover {
  background: #eeeeee;
  border-color: #c1c5c9;
}
.dark-theme .topic-section:hover {
  background: hsl(var(--theme-accent-hue), calc(var(--theme-accent-saturation) * 0.2), 28%);
  border-color: hsl(var(--theme-accent-hue), calc(var(--theme-accent-saturation) * 0.25), 35%);
}
@media (max-width: 679px) {
  .topic-section {
    margin: 2.5rem 0.25rem;
    padding: 1rem;
  }
}

.topic-wrapper {
  position: relative;
}

.topic-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 767px) {
  .topic-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
}

.topic-label {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background: #4a4a4a;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: var(--theme-font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/**
 * TOPICタイトル専用スタイル（h4基本スタイルを上書き）
 * 用途: TOPICセクションの見出し
 * 特徴: テーマカラー文字 + 控えめ下線
 */
h4.topic-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: var(--theme-font-weight-bold);
  color: var(--theme-accent-text) !important;
  line-height: 1.3;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(var(--theme-accent-hsl), 0.2);
  padding-bottom: 0.25rem;
  letter-spacing: 0.025em;
}
h4.topic-title::after {
  display: none;
}

.topic-content {
  line-height: 1.6;
  font-size: 0.95rem;
  color: #e5e7eb !important;
}
.light-theme .topic-content {
  color: #374151 !important;
}
.topic-content p {
  margin: 0.5rem 0;
  color: inherit !important;
}
.topic-content p:first-child {
  margin-top: 0;
}
.topic-content p:last-child {
  margin-bottom: 0;
}
.topic-content .topic-subtitle + p {
  margin-top: 0;
}

.topic-subtitle {
  margin: 1.5rem 0 0.25rem 0;
  font-size: 0.95rem;
  font-weight: var(--theme-font-weight-bold);
  color: var(--theme-accent-text) !important;
  line-height: 1.4;
  letter-spacing: 0.025em;
}

.topic-list {
  margin: 1rem 0;
  padding-left: 1.5rem;
  list-style: none;
}
.topic-list li {
  margin: 0.25rem 0;
  position: relative;
}
.topic-list li::before {
  content: "•";
  position: absolute;
  left: -18px;
  top: 0;
  font-weight: bold;
  font-size: 1.2em;
  color: #d1d5db;
}
.light-theme .topic-list li::before {
  color: #6b7280;
}

.topic-note {
  font-size: 0.95rem;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 0 6px 6px 0;
  border-left: 3px solid var(--theme-accent-text);
  color: rgba(var(--text-secondary), 0.9);
  background: hsla(var(--theme-accent-hsl), 0.05);
}

.bg-blue {
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: var(--theme-font-weight-medium);
  background: rgba(74, 144, 226, 0.15);
  color: #2c5aa0;
}

.bg-orange {
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: var(--theme-font-weight-medium);
  background: rgba(243, 156, 18, 0.15);
  color: #d68910;
}

.bg-red {
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: var(--theme-font-weight-bold);
  background: rgba(231, 76, 60, 0.15);
  color: #c0392b;
}

.bg-yellow {
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: var(--theme-font-weight-medium);
  background: rgba(247, 183, 49, 0.2);
  color: #b7950b;
}

.under-solid {
  border-bottom: 2px solid #e74c3c;
  font-weight: var(--theme-font-weight-bold);
}

.under-dotted {
  color: #27ae60;
  font-weight: var(--theme-font-weight-medium);
  border-bottom: 1px dotted #27ae60;
}

.mono {
  background: rgba(93, 173, 226, 0.15);
  color: #2980b9;
  padding: 1px 4px;
  border-radius: 3px;
  font-family: "Courier New", monospace;
  font-weight: var(--theme-font-weight-bold);
}

.mono-purple {
  background: rgba(155, 89, 182, 0.15);
  color: #8e44ad;
  padding: 1px 4px;
  border-radius: 3px;
  font-family: "Courier New", monospace;
  font-weight: var(--theme-font-weight-medium);
}

.theme-bg {
  background: hsla(var(--theme-accent-hsl), 0.15);
  color: var(--theme-accent-text);
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: var(--theme-font-weight-medium);
}

.theme-bg-strong {
  background: hsla(var(--theme-accent-hsl), 0.25);
  color: var(--theme-accent-text);
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: var(--theme-font-weight-bold);
}

.theme-text {
  color: var(--theme-accent-text);
  font-weight: var(--theme-font-weight-medium);
}

.theme-text-bold {
  color: var(--theme-accent-text);
  font-weight: var(--theme-font-weight-bold);
}

.theme-text-italic {
  color: var(--theme-accent-text);
  font-weight: var(--theme-font-weight-medium);
}

.theme-under-thick {
  color: var(--theme-accent-text);
  border-bottom: 2px solid var(--theme-accent-text);
  font-weight: var(--theme-font-weight-bold);
}

.theme-under-dotted {
  color: var(--theme-accent-text);
  border-bottom: 1px dotted var(--theme-accent-text);
  font-weight: var(--theme-font-weight-medium);
}

.theme-secondary-bg {
  background: hsla(var(--theme-secondary-hsl), 0.15);
  color: var(--theme-secondary-text);
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: var(--theme-font-weight-medium);
}

.theme-secondary-text {
  color: var(--theme-secondary-text);
  font-weight: var(--theme-font-weight-medium);
}

.theme-secondary-under {
  color: var(--theme-secondary-text);
  border-bottom: 1px solid var(--theme-secondary-text);
  font-weight: var(--theme-font-weight-medium);
}

.theme-mono {
  background: hsla(var(--theme-accent-hsl), 0.15);
  color: var(--theme-accent-text);
  padding: 1px 4px;
  border-radius: 3px;
  font-family: "Courier New", monospace;
  font-weight: var(--theme-font-weight-bold);
}

.data-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
.data-grid[data-items="1"] {
  grid-template-columns: 1fr;
}
.data-grid[data-items="2"] {
  grid-template-columns: repeat(2, 1fr);
}
.data-grid[data-items="3"] {
  grid-template-columns: repeat(3, 1fr);
}
.data-grid[data-items="4"] {
  grid-template-columns: repeat(4, 1fr);
}
.data-grid[data-items="5"] {
  grid-template-columns: repeat(5, 1fr);
}
.data-grid[data-items="6"] {
  grid-template-columns: repeat(3, 1fr);
}
.data-grid[data-items="7"], .data-grid[data-items="8"], .data-grid[data-items="9"] {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1023px) {
  .data-grid[data-items="4"], .data-grid[data-items="5"], .data-grid[data-items="7"], .data-grid[data-items="8"], .data-grid[data-items="9"] {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 679px) {
  .data-grid {
    gap: 0.5rem;
  }
  .data-grid[data-items="1"] {
    grid-template-columns: 1fr;
  }
  .data-grid:not([data-items="1"]) {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 530px) {
  .data-grid {
    grid-template-columns: 1fr !important;
    gap: 0.5rem;
  }
}

.data-item-large, .data-item {
  border-radius: 12px;
  background: rgba(var(--base-surface), var(--glass-bg-alpha));
  border: 1px solid rgba(var(--base-surface), var(--glass-border-alpha));
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 4px rgba(0, 0, 0, 0.08);
  background: hsla(var(--theme-accent-hsl), 0.03);
  position: relative;
}
.light-theme .data-item-large, .light-theme .data-item {
  background: hsla(var(--theme-accent-hsl), 0.04);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.12);
}

.data-item {
  min-width: 140px;
  padding: 1rem;
}
@media (max-width: 600px) {
  .data-item {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }
}

.data-item-large {
  width: 100%;
  max-width: 100%;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  min-height: 120px;
  box-sizing: border-box;
}
@media (max-width: 679px) {
  .data-item-large {
    padding: 1rem;
    min-height: 100px;
  }
}
@media (max-width: 530px) {
  .data-item-large {
    padding: 0.5rem;
    margin-left: 0;
    margin-right: 0;
  }
}

.data-label {
  position: absolute;
  top: 0.25rem;
  left: 0.25rem;
  font-size: 0.7rem;
  font-weight: var(--theme-font-weight-medium);
  color: rgba(var(--text-secondary), 0.6);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.data-value {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 60px;
  font-size: 0.95rem;
  font-weight: var(--theme-font-weight-bold);
  color: rgba(var(--text-primary), 1);
  line-height: 1.2;
  text-align: center;
}

.info-content-large {
  padding-top: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(var(--text-secondary), 0.9);
}
.info-content-large p {
  margin-bottom: 1rem;
}
.info-content-large p:last-child {
  margin-bottom: 0;
}
.info-content-large ul, .info-content-large ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}
.info-content-large ul li, .info-content-large ol li {
  margin-bottom: 0.25rem;
  line-height: 1.5;
}
.info-content-large strong {
  color: rgba(var(--text-primary), 1);
  font-weight: var(--theme-font-weight-bold);
}

.scenario-meta {
  margin-top: 1.5rem;
  padding: 1rem;
  background: rgba(var(--base-surface), 0.05);
  border: 1px solid rgba(var(--base-surface), var(--glass-border-alpha));
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, calc(var(--glass-border-alpha) * 0.3));
}
.scenario-meta .difficulty-info {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(var(--text-secondary), 0.8);
}
.scenario-meta .difficulty-info strong {
  color: rgba(var(--text-primary), 0.9);
  font-weight: var(--theme-font-weight-bold);
}
.scenario-meta .keywords {
  margin-bottom: 0;
  font-size: 0.9rem;
  color: rgba(var(--text-secondary), 0.8);
}
.scenario-meta .keywords strong {
  color: rgba(var(--text-primary), 0.9);
  font-weight: var(--theme-font-weight-bold);
}

.npc-profile.fade-in .image-container {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.npc-profile {
  opacity: 1;
}
.npc-profile .image-container {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
@media (prefers-reduced-motion: reduce) {
  .npc-profile .image-container {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
.npc-profile .npc-portrait {
  width: 100%;
  height: auto;
  aspect-ratio: 1/2;
  object-fit: cover;
  object-position: center top;
  border-radius: 16px;
  background: transparent;
  border: 1px solid rgba(var(--theme-accent-hsl), 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 440px;
}
@media (max-width: 1023px) {
  .npc-profile .npc-portrait {
    max-height: 360px;
    aspect-ratio: 1/2;
  }
}
@media (max-width: 679px) {
  .npc-profile .npc-portrait {
    max-height: 280px;
    aspect-ratio: 1/2;
  }
}
.npc-profile .npc-portrait.portrait {
  aspect-ratio: 1/2;
  object-position: center top;
}
.npc-profile .npc-portrait:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--theme-accent-hsl), 0.4);
}
.npc-profile .npc-overview {
  margin-top: 0.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(var(--text-secondary), 0.8);
  font-style: normal;
  padding: 0.25rem 0.5rem;
  background: rgba(var(--theme-accent-hsl), 0.05);
  border-radius: 6px;
  border: 1px solid rgba(var(--theme-accent-hsl), 0.2);
}
.npc-profile.split-layout .sub-title {
  font-size: 1.4rem;
  font-weight: var(--theme-font-weight-bold);
  color: rgba(var(--text-primary), 1);
  margin-bottom: 1.5rem;
  padding: 1rem 0;
  text-align: center;
  position: relative;
}
.npc-profile.split-layout .sub-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--theme-accent) 50%, transparent 100%);
  border-radius: 2px;
}
.npc-profile.split-layout .npc-upper-section {
  display: flex;
  gap: 2.5rem;
  margin: 0 auto 2.5rem auto;
  width: 100%;
  align-items: flex-start;
}
@media (max-width: 1023px) {
  .npc-profile.split-layout .npc-upper-section {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    width: 100%;
  }
}
@media (max-width: 679px) {
  .npc-profile.split-layout .npc-upper-section {
    width: 100%;
  }
}
.npc-profile.split-layout .npc-image-area {
  flex-shrink: 0;
  width: 250px;
}
@media (max-width: 1023px) {
  .npc-profile.split-layout .npc-image-area {
    width: 300px;
  }
}
@media (max-width: 679px) {
  .npc-profile.split-layout .npc-image-area {
    width: 100%;
    max-width: 250px;
  }
}
.npc-profile.split-layout .npc-image-area .image-container {
  position: relative;
  margin-bottom: 1rem;
}
.npc-profile.split-layout .npc-image-area .image-container .npc-portrait {
  width: 100%;
  border-radius: 12px;
  display: block;
}
.npc-profile.split-layout .npc-image-area .image-container .character-quote-overlay {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 1rem 0.5rem;
  border-radius: 6px;
  font-size: 0.85rem;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  max-width: 120px;
  text-align: center;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.9);
  color: rgba(0, 0, 0, 0.95);
}
.light-theme .npc-profile.split-layout .npc-image-area .image-container .character-quote-overlay {
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.9);
  color: rgba(255, 255, 255, 0.95);
}
.npc-profile.split-layout .npc-image-area .image-container .character-quote-overlay:nth-of-type(1):nth-last-of-type(2) {
  top: 1rem;
  right: auto;
  left: 1rem;
}
.npc-profile.split-layout .npc-image-area .image-container .character-quote-overlay:nth-of-type(2):nth-last-of-type(1) {
  top: auto;
  bottom: 1rem;
  right: 1rem;
  left: auto;
}
.npc-profile.split-layout .npc-image-area .image-container .character-quote-overlay:nth-of-type(1):nth-last-of-type(3) {
  top: 1rem;
  right: 1rem;
  left: auto;
  bottom: auto;
  transform: none;
}
.npc-profile.split-layout .npc-image-area .image-container .character-quote-overlay:nth-of-type(2):nth-last-of-type(2) {
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  transform: translate(-50%, -50%);
  max-width: none;
  width: auto;
  height: auto;
  min-height: auto;
  writing-mode: horizontal-tb;
  text-orientation: initial;
  overflow: visible;
}
.npc-profile.split-layout .npc-image-area .image-container .character-quote-overlay:nth-of-type(3):nth-last-of-type(1) {
  top: auto;
  bottom: 1rem;
  right: auto;
  left: 1rem;
  transform: none;
}
.npc-profile.split-layout .npc-image-area .npc-overview {
  text-align: center;
  font-weight: var(--theme-font-weight-bold);
  color: var(--theme-accent-text);
  padding: 0.5rem;
  background: rgba(var(--base-surface), 0.05);
  border: 1px solid rgba(var(--base-surface), var(--glass-border-alpha));
  border-radius: 6px;
  font-size: 0.9rem;
}
.npc-profile.split-layout .npc-info-area {
  flex: 1;
  width: 100%;
}
.npc-profile.split-layout .npc-info-area .npc-overview {
  text-align: center;
  font-weight: var(--theme-font-weight-medium);
  color: rgba(var(--text-secondary), 0.8);
  padding: 0.25rem 0.5rem;
  background: rgba(var(--text-primary), 0.03);
  border-radius: 6px;
  font-size: 0.9rem;
  font-style: normal;
  margin-bottom: 1rem;
  line-height: 1.3;
}
.light-theme .npc-profile.split-layout .npc-info-area .npc-overview {
  background: rgba(0, 0, 0, 0.03);
  color: rgba(0, 0, 0, 0.6);
}
.npc-profile.split-layout .npc-info-area .character-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 679px) {
  .npc-profile.split-layout .npc-info-area .character-stats {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}
.npc-profile.split-layout .npc-lower-section .character-section {
  margin-bottom: 2.5rem;
}
.npc-profile.split-layout .npc-lower-section .character-section:last-child {
  margin-bottom: 0;
}
.npc-profile.split-layout .npc-lower-section .character-section {
  /**
   * NPC詳細セクション用h4.section-title（h4基本スタイルを上書き）
   * 用途: キャラクター背景、シナリオでの役割など
   * 特徴: 基本h4スタイル + 左詰めの下線
   */
}
.npc-profile.split-layout .npc-lower-section .character-section h4.section-title {
  font-size: 1rem;
  font-weight: var(--theme-font-weight-bold);
  color: rgba(var(--text-primary), 0.9);
  margin-bottom: 1rem;
  padding: 0.25rem 0;
  border-bottom: 1px solid rgba(var(--theme-accent-hsl), 0.2);
}
.npc-profile.split-layout .npc-lower-section .character-section h4.section-title::after {
  left: 0;
}
.npc-profile.split-layout .npc-lower-section .character-section .section-text {
  line-height: 1.6;
  color: rgba(var(--text-primary), 1);
  font-size: 0.95rem;
}
.npc-profile.split-layout .npc-lower-section .character-section .section-text p {
  margin-bottom: 1rem;
}
.npc-profile.split-layout .npc-lower-section .character-section .section-text p:last-child {
  margin-bottom: 0;
}
.npc-profile.compact-layout .sub-title {
  font-size: 1.4rem;
  font-weight: var(--theme-font-weight-bold);
  color: rgba(var(--text-primary), 1);
  margin-bottom: 1.5rem;
  padding: 1rem 0 6px 0;
  text-align: center;
  position: relative;
}
.npc-profile.compact-layout .sub-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--theme-accent) 50%, transparent 100%);
  border-radius: 2px;
}
.npc-profile.compact-layout .npc-compact-container {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}
@media (max-width: 1023px) {
  .npc-profile.compact-layout .npc-compact-container {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }
}
.npc-profile.compact-layout .npc-image-section {
  flex-shrink: 0;
  width: 250px;
}
@media (max-width: 1023px) {
  .npc-profile.compact-layout .npc-image-section {
    width: 300px;
  }
}
@media (max-width: 679px) {
  .npc-profile.compact-layout .npc-image-section {
    width: 100%;
    max-width: 250px;
  }
}
.npc-profile.compact-layout .npc-image-section .image-container {
  position: relative;
  margin-bottom: 1rem;
}
.npc-profile.compact-layout .npc-image-section .image-container .npc-portrait {
  width: 100%;
  border-radius: 12px;
  display: block;
}
.npc-profile.compact-layout .npc-image-section .image-container .character-quote-overlay {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 1rem 0.5rem;
  border-radius: 6px;
  font-size: 0.85rem;
  writing-mode: vertical-rl;
  text-orientation: upright;
  max-width: 120px;
  text-align: center;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.9);
  color: rgba(0, 0, 0, 0.95);
}
.light-theme .npc-profile.compact-layout .npc-image-section .image-container .character-quote-overlay {
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.9);
  color: rgba(255, 255, 255, 0.95);
}
.npc-profile.compact-layout .npc-image-section .image-container .character-quote-overlay:nth-of-type(1):nth-last-of-type(2) {
  top: 1rem;
  right: auto;
  left: 1rem;
}
.npc-profile.compact-layout .npc-image-section .image-container .character-quote-overlay:nth-of-type(2):nth-last-of-type(1) {
  top: auto;
  bottom: 1rem;
  right: 1rem;
  left: auto;
}
.npc-profile.compact-layout .npc-image-section .image-container .character-quote-overlay:nth-of-type(1):nth-last-of-type(3) {
  top: 1rem;
  right: 1rem;
  left: auto;
  bottom: auto;
  transform: none;
}
.npc-profile.compact-layout .npc-image-section .image-container .character-quote-overlay:nth-of-type(2):nth-last-of-type(2) {
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  transform: translate(-50%, -50%);
}
.npc-profile.compact-layout .npc-image-section .image-container .character-quote-overlay:nth-of-type(3):nth-last-of-type(1) {
  top: auto;
  bottom: 1rem;
  right: auto;
  left: 1rem;
  transform: none;
}
.npc-profile.compact-layout .npc-image-section .npc-overview {
  text-align: center;
  font-weight: var(--theme-font-weight-bold);
  color: var(--theme-accent-text);
  padding: 0.5rem;
  background: rgba(var(--base-surface), 0.05);
  border: 1px solid rgba(var(--base-surface), var(--glass-border-alpha));
  border-radius: 6px;
  font-size: 0.9rem;
}
.npc-profile.compact-layout .npc-content-section {
  flex: 1;
}
.npc-profile.compact-layout .npc-content-section .character-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 1023px) {
  .npc-profile.compact-layout .npc-content-section .character-stats {
    gap: 0.5rem;
  }
}
@media (max-width: 679px) {
  .npc-profile.compact-layout .npc-content-section .character-stats {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}
.npc-profile.compact-layout .npc-content-section .character-stats .stat-box {
  background: rgba(var(--base-surface), var(--glass-bg-alpha));
  border: 1px solid rgba(var(--base-surface), var(--glass-border-alpha));
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 4px rgba(0, 0, 0, 0.08);
  background: hsla(var(--theme-accent-hsl), 0.03);
  border-radius: 6px;
  padding: 1rem;
  text-align: center;
  font-size: 0.85rem;
}
.light-theme .npc-profile.compact-layout .npc-content-section .character-stats .stat-box {
  background: hsla(var(--theme-accent-hsl), 0.04);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.12);
}
.npc-profile.compact-layout .npc-content-section .character-stats .stat-box .stat-value {
  display: block;
  font-size: 1.4rem;
  font-weight: var(--theme-font-weight-bold);
  color: rgba(var(--text-primary), 1);
  margin-bottom: 0.25rem;
  line-height: 1.2;
}
.npc-profile.compact-layout .npc-content-section .character-stats .stat-box .stat-label {
  display: block;
  font-size: 0.75rem;
  font-weight: var(--theme-font-weight-medium);
  color: rgba(var(--text-secondary), 0.7);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.npc-profile.compact-layout .npc-content-section .character-description {
  line-height: 1.6;
  color: rgba(var(--text-primary), 1);
  font-size: 0.95rem;
}
.npc-profile.compact-layout .npc-content-section .character-description p {
  margin-bottom: 1rem;
}
.npc-profile.compact-layout .npc-content-section .character-description p:last-child {
  margin-bottom: 0;
}
.npc-profile.compact-layout .npc-content-section .character-description .description-section {
  margin-bottom: 1.5rem;
}
.npc-profile.compact-layout .npc-content-section .character-description .description-section:last-child {
  margin-bottom: 0;
}
.npc-profile.compact-layout .npc-content-section .character-description .description-section .description-title {
  font-size: 1rem;
  font-weight: var(--theme-font-weight-bold);
  color: rgba(var(--text-primary), 0.9);
  margin-bottom: 1rem;
  padding: 0.25rem 0;
  border-bottom: 1px solid rgba(var(--theme-accent-hsl), 0.2);
}
.npc-profile.compact-layout .npc-content-section .character-description .description-section .description-text {
  line-height: 1.6;
  color: rgba(var(--text-primary), 1);
  font-size: 1rem;
}
.npc-profile.compact-layout .npc-content-section .character-description .description-section .description-text p {
  margin-bottom: 1rem;
}
.npc-profile.compact-layout .npc-content-section .character-description .description-section .description-text p:last-child {
  margin-bottom: 0;
}

.enemy-data-block {
  margin: 2.5rem 0;
  padding: 0;
  border-radius: 16px;
  background: rgba(var(--base-surface), var(--glass-bg-alpha));
  border: 1px solid rgba(var(--base-surface), var(--glass-border-alpha));
  border: 1px solid rgba(255, 255, 255, calc(var(--glass-border-alpha) * 0.4));
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.12);
}
.enemy-data-block::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--theme-accent) 0%, var(--theme-secondary) 100%);
  z-index: 1;
}
.enemy-data-block .enemy-header {
  padding: 1.5rem;
  background: linear-gradient(135deg, hsla(var(--theme-accent-hsl), 0.1) 0%, hsla(var(--theme-secondary-hsl), 0.08) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, calc(var(--glass-border-alpha) * 0.6));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.enemy-data-block .enemy-header .enemy-name {
  font-size: 1.4rem;
  font-weight: var(--theme-font-weight-bold);
  color: rgba(var(--text-primary), 0.95);
  margin: 0;
  flex: 1;
  position: static;
  padding-left: 0;
}
.enemy-data-block .enemy-header .enemy-name::before {
  display: none !important;
}
.enemy-data-block .enemy-header .character-sheet-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 1rem;
  background: var(--theme-accent);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  transition: all 0.3s;
  white-space: nowrap;
  cursor: pointer;
}
.enemy-data-block .enemy-header .character-sheet-link:hover {
  background: hsl(var(--theme-accent-hue), var(--theme-accent-saturation), calc(var(--theme-accent-lightness) - 5%));
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.12);
}
.enemy-data-block .enemy-header .character-sheet-link:active {
  transform: translateY(0);
}
.enemy-data-block .enemy-header .character-sheet-link:focus {
  outline: 2px solid rgba(var(--theme-accent), 0.5);
  outline-offset: 2px;
}
.enemy-data-block .enemy-header .character-sheet-link i {
  font-size: 0.9rem;
  transition: transform 0.3s;
}
.enemy-data-block .enemy-header .character-sheet-link:hover i {
  transform: translateX(2px);
}
.enemy-data-block .enemy-header .enemy-type {
  font-size: 0.95rem;
  color: rgba(var(--text-secondary), 0.8);
  font-weight: 500;
  margin: 0;
}
.enemy-data-block .enemy-stats-grid,
.enemy-data-block .enemy-notes {
  margin: 1.5rem;
  width: calc(100% - 3rem);
  box-sizing: border-box;
}
.enemy-data-block .enemy-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  padding: 0;
}
.enemy-data-block .enemy-stats-grid .enemy-stat-box {
  text-align: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}
.enemy-data-block .enemy-stats-grid .enemy-stat-box .stat-label {
  position: absolute;
  top: 0.25rem;
  left: 0.25rem;
  font-size: 0.7rem;
  font-weight: var(--theme-font-weight-medium);
  color: rgba(var(--text-secondary), 0.6);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 0;
}
.enemy-data-block .enemy-stats-grid .enemy-stat-box .stat-number {
  font-size: 1.4rem;
  font-weight: var(--theme-font-weight-bold);
  color: rgba(var(--text-primary), 0.95);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  margin-top: 0.5rem;
}
.enemy-data-block .enemy-notes {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}
.enemy-data-block .enemy-notes .notes-title {
  position: absolute;
  top: 0.25rem;
  left: 0.25rem;
  font-size: 0.7rem;
  font-weight: var(--theme-font-weight-medium);
  color: rgba(var(--text-secondary), 0.6);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 0;
}
.enemy-data-block .enemy-notes p {
  font-size: 0.9rem;
  font-weight: var(--theme-font-weight-normal);
  color: rgba(var(--text-secondary), 0.85);
  line-height: 1.6;
  margin: 0;
  margin-top: 1rem;
  padding-top: 0.25rem;
}
.enemy-data-block .enemy-instructions {
  padding: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, calc(var(--glass-border-alpha) * 0.4));
}
.enemy-data-block .enemy-instructions .instructions-title {
  font-size: 1rem;
  font-weight: var(--theme-font-weight-bold);
  color: var(--theme-accent);
  margin: 0 0 0.5rem 0;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.enemy-data-block .enemy-instructions h6 {
  font-size: 0.95rem;
  font-weight: var(--theme-font-weight-bold);
  color: rgba(var(--text-primary), 0.9);
  margin: 1rem 0 0.5rem 0;
  padding: 0.25rem 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  border-left: 3px solid hsla(var(--theme-accent-hsl), 0.6);
}
.enemy-data-block .enemy-instructions h6:first-of-type {
  margin-top: 0;
}
.enemy-data-block .enemy-instructions p {
  font-size: 0.9rem;
  color: rgba(var(--text-secondary), 0.8);
  line-height: 1.6;
  margin: 0.5rem 0;
  padding-left: 0.5rem;
}
.enemy-data-block .enemy-instructions p:last-child {
  margin-bottom: 0;
}
@media (max-width: 679px) {
  .enemy-data-block .enemy-stats-grid,
  .enemy-data-block .enemy-notes {
    margin: 1rem;
    width: calc(100% - 2rem);
  }
  .enemy-data-block .enemy-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  .enemy-data-block .enemy-stats-grid .enemy-stat-box {
    padding: 0.5rem;
  }
  .enemy-data-block .enemy-stats-grid .enemy-stat-box .stat-number {
    font-size: 1.2rem;
  }
  .enemy-data-block .enemy-header {
    padding: 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  .enemy-data-block .enemy-header .enemy-name {
    font-size: 1.2rem;
    text-align: center;
    padding-left: 0;
  }
  .enemy-data-block .enemy-header .enemy-name::before {
    display: none;
  }
  .enemy-data-block .enemy-header .character-sheet-link {
    text-align: center;
    justify-content: center;
  }
  .enemy-data-block .enemy-notes {
    padding: 0.5rem;
  }
  .enemy-data-block .enemy-instructions {
    padding: 1rem;
  }
}

.dark-theme .enemy-data-block .enemy-stats-grid .enemy-stat-box {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}
.dark-theme .enemy-data-block .enemy-notes {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}
.dark-theme .enemy-data-block .enemy-instructions {
  border-top-color: rgba(255, 255, 255, 0.1);
}
.dark-theme .enemy-data-block .enemy-instructions h6 {
  background: rgba(255, 255, 255, 0.08);
}

.light-theme .enemy-data-block .enemy-stats-grid .enemy-stat-box {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
}
.light-theme .enemy-data-block .enemy-notes {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
}
.light-theme .enemy-data-block .enemy-instructions {
  border-top-color: rgba(0, 0, 0, 0.08);
}
.light-theme .enemy-data-block .enemy-instructions h6 {
  background: rgba(0, 0, 0, 0.03);
}

.scene-table-section {
  margin: 2.5rem 0;
  padding: 1.5rem;
  border-radius: 16px;
  background: rgba(var(--base-surface), var(--glass-bg-alpha));
  border: 1px solid rgba(var(--base-surface), var(--glass-border-alpha));
  border: 1px solid rgba(255, 255, 255, calc(var(--glass-border-alpha) * 0.4));
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.12);
  position: relative;
  max-width: 100%;
  overflow-x: hidden;
}
@media (max-width: 679px) {
  .scene-table-section {
    margin: 1rem 0.5rem;
    padding: 1rem 0.5rem;
  }
}
.scene-table-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent 0%, hsla(var(--theme-accent-hsl), 0.6) 20%, var(--theme-accent) 50%, hsla(var(--theme-accent-hsl), 0.6) 80%, transparent 100%);
  border-radius: 16px 16px 0 0;
}

.scene-table-title {
  margin: 0 0 1.5rem 0;
  font-size: 1.4rem;
  font-weight: var(--theme-font-weight-bold);
  color: rgba(var(--text-primary), 1);
  text-align: center;
  position: relative;
  padding: 1rem 0;
}
.scene-table-title::before {
  content: "\f0ce";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-right: 0.5rem;
  color: var(--theme-accent-text);
  font-size: 1.2rem;
}
.scene-table-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--theme-accent) 50%, transparent 100%);
  border-radius: 1px;
}
@media (max-width: 679px) {
  .scene-table-title {
    font-size: 1.2rem;
  }
  .scene-table-title::after {
    width: 80%;
  }
}

.scene-table {
  margin-top: 0;
  max-width: 100%;
  overflow: visible;
}

.scene-row {
  display: flex;
  align-items: center;
  margin-top: 1.5rem;
  padding: 0.5rem;
  border-radius: 12px;
  background: rgba(var(--base-surface), 0.05);
  border: 1px solid rgba(var(--base-surface), var(--glass-border-alpha));
  border: 1px solid rgba(255, 255, 255, calc(var(--glass-border-alpha) * 0.2));
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  max-width: 100%;
}
.scene-row:not(:last-child)::after {
  content: "";
  position: absolute;
  bottom: calc(-1.5rem / 2);
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, hsla(var(--theme-accent-hsl), 0.25) 20%, hsla(var(--theme-accent-hsl), 0.5) 50%, hsla(var(--theme-accent-hsl), 0.25) 80%, transparent 100%);
  z-index: 1;
}
.scene-row:last-child {
  margin-bottom: 0;
}
@media (max-width: 679px) {
  .scene-row {
    margin-bottom: 0.5rem;
  }
  .scene-row:not(:last-child)::after {
    width: 85%;
  }
}

.scene-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--theme-accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--theme-font-weight-bold);
  font-size: 1.1rem;
  margin-right: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 4px rgba(0, 0, 0, 0.08);
}
@media (max-width: 679px) {
  .scene-number {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
    margin-right: 0.5rem;
  }
}

.scene-text {
  flex: 1;
  min-width: 0;
  line-height: 1.6;
  color: rgba(var(--text-primary), 0.9);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 6px;
  transition: all 0.15s ease;
  position: relative;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}
.scene-text.copied {
  background: hsla(var(--theme-accent-hsl), 0.2);
  animation: copySuccess 0.6s ease-out;
}

.section-image-portrait-flex {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin: 1.5rem 0;
}
.section-image-portrait-flex .image-container {
  flex-shrink: 0;
  width: 200px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.12);
}
.section-image-portrait-flex .image-container img, .section-image-portrait-flex .image-container video {
  width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 679px) {
  .section-image-portrait-flex {
    flex-direction: column;
  }
  .section-image-portrait-flex .image-container {
    width: 150px;
    margin: 0 auto;
  }
}

@keyframes copySuccess {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 hsla(var(--theme-accent-hsl), 0.5);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 8px transparent;
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 transparent;
  }
}
.handout-header {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0;
  padding: 0 1.5rem;
  background: linear-gradient(145deg, #f0eadc 0%, #f3ede1 100%);
  border-radius: 0;
  box-shadow: 0 1px 3px rgba(139, 119, 101, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.handout-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(139, 119, 101, 0.1) 20%, rgba(139, 119, 101, 0.15) 50%, rgba(139, 119, 101, 0.1) 80%, transparent 100%);
}
.handout-header .handout-header-item {
  flex: 1 1 auto;
  min-width: 150px;
}
.handout-header:has(.handout-header-item:only-child) .handout-header-item {
  flex: 1 1 100%;
}
@media (max-width: 768px) {
  .handout-header {
    flex-direction: row;
    gap: 0;
    padding: 0 1rem;
  }
  .handout-header .handout-header-item {
    flex: 1 1 auto;
    min-width: auto;
  }
}

.handout-content {
  margin-top: 0;
  position: relative;
  overflow: visible;
}

.character-background-img {
  position: absolute;
  top: 0;
  right: 0;
  width: auto;
  height: 125%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.06;
  pointer-events: none;
  z-index: 1;
  clip-path: inset(0 0 20% 0);
}

.handout-footer {
  margin-top: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  border-radius: 0;
  transition: all 0.3s ease;
  background-color: var(--handout-footer-bg);
  border-top: 1px solid rgba(255, 255, 255, 0.02);
  box-shadow: inset 0 -1px 2px rgba(0, 0, 0, 0.1), 0 -1px 3px rgba(0, 0, 0, 0.1);
}
.handout-footer .handout-footer-label {
  flex-shrink: 0;
  padding: 0.25rem 0.5rem;
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--handout-footer-label-color);
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 3px;
}
.handout-footer .handout-footer-value {
  flex: 1;
  font-weight: 600;
  color: var(--handout-footer-value-color);
  font-size: 0.9rem;
}
@media (max-width: 768px) {
  .handout-footer {
    padding: 0.5rem;
  }
  .handout-footer .handout-footer-label {
    font-size: 0.75rem;
    padding: 0.25rem;
  }
  .handout-footer .handout-footer-value {
    font-size: 0.85rem;
  }
}

.handout-header-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  border-radius: 0;
  transition: all 0.3s ease;
  background: transparent;
  border: none;
  flex: 0 1 auto;
  min-width: 150px;
}
@media (max-width: 768px) {
  .handout-header-item {
    padding: 0.5rem;
    gap: 0.25rem;
    flex: 1 1 100%;
    min-width: auto;
  }
}

.handout-header-label {
  flex-shrink: 0;
  padding: 0.25rem 0.5rem;
  background-color: var(--handout-header-bg);
  color: var(--handout-header-label-color);
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 3px;
  margin: 0;
  white-space: nowrap;
}
@media (max-width: 679px) {
  .handout-header-label {
    font-size: 0.75rem;
    padding: 2px 6px;
  }
}

.handout-header-value {
  font-size: 0.95rem;
  font-weight: bold;
  color: var(--handout-header-value-color);
  margin: 0;
}
@media (max-width: 679px) {
  .handout-header-value {
    font-size: 0.9rem;
  }
}

.handout-content .omote {
  border-radius: 0;
  padding: 1.5rem;
  line-height: 1.7;
  font-size: 0.95rem;
  box-shadow: inset 0 1px 2px rgba(139, 119, 101, 0.06), 0 1px 3px rgba(139, 119, 101, 0.05);
  position: relative;
}
.handout-content .omote::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(139, 119, 101, 0.08) 20%, rgba(139, 119, 101, 0.12) 50%, rgba(139, 119, 101, 0.08) 80%, transparent 100%);
}
@media (max-width: 768px) {
  .handout-content .omote {
    padding: 1rem;
    font-size: 0.9rem;
  }
}

.handout .handout-wrapper {
  margin: 0 0 1.5rem 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.handout .handout-wrapper:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 0, 0, 0.16);
}
.handout .handout-wrapper .omote {
  background-color: var(--handout-omote-bg);
  color: var(--handout-omote-text);
  padding: 1.5rem;
  z-index: 2;
  margin: 0;
  border: none;
  border-radius: var(--handout-omote-border-radius);
  transition: all 0.3s ease;
}
.handout .handout-wrapper .omote::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent, transparent 50px, rgba(0, 0, 0, 0.01) 50px, rgba(0, 0, 0, 0.01) 51px), repeating-linear-gradient(0deg, transparent, transparent 50px, rgba(0, 0, 0, 0.01) 50px, rgba(0, 0, 0, 0.01) 51px);
  pointer-events: none;
  z-index: -1;
}
@media (max-width: 679px) {
  .handout .handout-wrapper .omote {
    padding: 1rem;
  }
}
.handout .handout-wrapper .ura {
  background-color: var(--handout-ura-bg);
  color: var(--handout-ura-text);
  padding: 1.5rem;
  position: relative;
  z-index: 1;
  margin: 0;
  border: none;
  border-radius: 0;
  transition: all 0.3s ease;
  margin-bottom: -2px;
  padding-bottom: calc(1.5rem + 2px);
}
.handout .handout-wrapper .ura::before {
  content: "SECRET";
  position: absolute;
  top: 15px;
  right: 15px;
  transform: rotate(-30deg);
  font-size: 6rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.04);
  letter-spacing: 0.2em;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.3s ease;
  line-height: 1;
}
@media (max-width: 679px) {
  .handout .handout-wrapper .ura {
    padding: 1rem;
    padding-bottom: calc(1rem + 2px);
  }
  .handout .handout-wrapper .ura::before {
    font-size: 4rem;
    top: 10px;
    right: 10px;
  }
}

@keyframes tooltipFadeIn {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(5px);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}
@keyframes tooltipDelayedShow {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(5px);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}
@keyframes handoutCopySuccess {
  0% {
    box-shadow: 0 0 0 0 hsla(var(--theme-accent-hsl), 0.5);
  }
  50% {
    box-shadow: 0 0 0 12px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}
@keyframes handoutBtnCopySuccess {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3) rotate(15deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}
.sub-section .scene-body,
.scenario-scene .scene-body {
  max-height: none !important;
  overflow: visible !important;
  opacity: 1 !important;
  display: block !important;
}
.sub-section .toggle-btn,
.scenario-scene .toggle-btn {
  display: none !important;
}
.sub-section .sub-title,
.sub-section .scene-title,
.scenario-scene .sub-title,
.scenario-scene .scene-title {
  cursor: default !important;
}
.sub-section .sub-title.scene-header,
.sub-section .scene-title.scene-header,
.scenario-scene .sub-title.scene-header,
.scenario-scene .scene-title.scene-header {
  cursor: default !important;
}
.sub-section .sub-title.scene-header:hover,
.sub-section .scene-title.scene-header:hover,
.scenario-scene .sub-title.scene-header:hover,
.scenario-scene .scene-title.scene-header:hover {
  background: transparent !important;
}

@media (min-width: 680px) {
  .scene-body {
    max-height: none !important;
    overflow: visible !important;
    opacity: 1 !important;
    display: block !important;
  }
  .toggle-btn {
    display: none !important;
  }
  .scene-header {
    cursor: default !important;
  }
}
.content-block > .glass-card > .section-content {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.sub-section .scene-body,
.scenario-scene .scene-body {
  transition: none !important;
}

.scene-container:not(.content-block) .scene-body {
  max-height: none !important;
  overflow: visible !important;
  opacity: 1 !important;
}
.scene-container:not(.content-block) .toggle-btn {
  display: none !important;
}
.scene-container:not(.content-block) .scene-header {
  cursor: default !important;
}

.scenario-scene {
  background: rgba(var(--base-surface), 0.05);
  border: 1px solid rgba(var(--base-surface), var(--glass-border-alpha));
  border-radius: 16px;
  margin: 0 0 2.5rem 0;
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
}
.dark-theme .scenario-scene, body:not(.light-theme) .scenario-scene {
  background: rgba(var(--base-surface), var(--glass-bg-alpha));
  border: 1px solid rgba(var(--base-surface), var(--glass-border-alpha));
  background: rgba(var(--base-secondary), 0.55) !important;
  border-color: hsla(var(--theme-accent-hsl), 0.25) !important;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2), 0 3px 12px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(var(--text-primary), 0.08), 0 0 0 1px hsla(var(--theme-secondary-hsl), 0.15) !important;
  position: relative;
}
.dark-theme .scenario-scene::before, body:not(.light-theme) .scenario-scene::before {
  box-shadow: inset 0 0 1px rgba(var(--text-primary), 0.1);
}
.scenario-scene {
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.1);
}
.light-theme .scenario-scene {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.16);
}
.scenario-scene {
  transform: translateY(-1px);
}
.scenario-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}
.dark-theme .scenario-scene::before, body:not(.light-theme) .scenario-scene::before {
  background: linear-gradient(135deg, rgba(var(--base-secondary), 0.4) 0%, rgba(var(--base-surface), 0.5) 50%, rgba(var(--base-secondary), 0.3) 100%);
}
.light-theme .scenario-scene::before {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
  opacity: 0.2;
}
.scenario-scene::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 1;
}
.dark-theme .scenario-scene::after, body:not(.light-theme) .scenario-scene::after {
  background: linear-gradient(90deg, transparent 0%, hsla(var(--theme-accent-hsl), 0.5) 30%, hsla(var(--theme-accent-hsl), 0.7) 50%, hsla(var(--theme-accent-hsl), 0.5) 70%, transparent 100%);
  opacity: 0.7;
}
.light-theme .scenario-scene::after {
  background: linear-gradient(90deg, transparent 0%, hsla(var(--theme-accent-hsl), 0.3) 30%, hsla(var(--theme-accent-hsl), 0.5) 50%, hsla(var(--theme-accent-hsl), 0.3) 70%, transparent 100%);
  opacity: 0.5;
}
.scenario-scene {
  /**
   * シーンタイトル専用スタイル（h4基本スタイルを上書き）
   * 用途: 導入シーン、メインシーン、クライマックスシーンなどの見出し
   * 特徴: ガラス効果 + グラデーション下線 + テーマ別配色
   */
}
.scenario-scene h4.scene-title {
  margin: 0;
  padding: 1.5rem 1.5rem 0.5rem;
  position: relative;
  z-index: 2;
  font-weight: var(--theme-font-weight-bold);
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  border-bottom: 1px solid transparent;
}
.scenario-scene h4.scene-title::after {
  display: none;
}
.dark-theme .scenario-scene h4.scene-title, body:not(.light-theme) .scenario-scene h4.scene-title {
  background: rgba(var(--base-surface), 0.15);
  color: rgba(var(--text-primary), 0.95);
  border-bottom-color: hsla(var(--theme-accent-hsl), 0.3);
  background: rgba(var(--base-surface), 0.05);
}
.scenario-scene h4.scene-title::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 1.5rem;
  width: 50px;
  height: 2px;
  z-index: 1;
}
.dark-theme .scenario-scene h4.scene-title::before, body:not(.light-theme) .scenario-scene h4.scene-title::before {
  background: linear-gradient(90deg, var(--theme-accent) 0%, hsla(var(--theme-accent-hsl), 0.5) 100%);
  opacity: 0.7;
}
.light-theme .scenario-scene h4.scene-title::before {
  background: linear-gradient(90deg, var(--theme-accent) 0%, hsla(var(--theme-accent-hsl), 0.2) 100%);
  opacity: 0.6;
}
@media (max-width: 679px) {
  .scenario-scene h4.scene-title {
    cursor: pointer;
    padding-right: 50px;
  }
  .dark-theme .scenario-scene h4.scene-title:hover, body:not(.light-theme) .scenario-scene h4.scene-title:hover {
    background: rgba(var(--base-surface), 0.7);
  }
  .light-theme .scenario-scene h4.scene-title:hover {
    background: rgba(var(--text-primary), 0.06);
  }
}
.scenario-scene .scene-body {
  padding: 1.5rem;
  position: relative;
  z-index: 2;
}
.dark-theme .scenario-scene .scene-body, body:not(.light-theme) .scenario-scene .scene-body {
  background: rgba(var(--base-secondary), 0.45);
  color: rgba(var(--text-primary), 0.9);
}
.light-theme .scenario-scene .scene-body {
  background: transparent;
  color: rgba(var(--text-primary), 0.85);
}
@media (min-width: 680px) {
  .scenario-scene .scene-body {
    max-height: none !important;
    overflow: visible !important;
    opacity: 1 !important;
  }
}
.dark-theme .scenario-scene[id*=op]::after, body:not(.light-theme) .scenario-scene[id*=op]::after {
  background: linear-gradient(90deg, transparent 0%, hsla(210, 70%, 65%, 0.6) 30%, hsla(210, 70%, 70%, 0.7) 50%, hsla(210, 70%, 65%, 0.6) 70%, transparent 100%);
}
.light-theme .scenario-scene[id*=op]::after {
  background: linear-gradient(90deg, transparent 0%, hsla(220, 60%, 65%, 0.4) 30%, hsla(220, 60%, 65%, 0.5) 50%, hsla(220, 60%, 65%, 0.4) 70%, transparent 100%);
}
.dark-theme .scenario-scene[id*=main]::after, body:not(.light-theme) .scenario-scene[id*=main]::after {
  background: linear-gradient(90deg, transparent 0%, hsla(var(--theme-accent-hsl), 0.5) 30%, hsla(var(--theme-accent-hsl), 0.7) 50%, hsla(var(--theme-accent-hsl), 0.5) 70%, transparent 100%);
}
.dark-theme .scenario-scene[id*=climax]::after, body:not(.light-theme) .scenario-scene[id*=climax]::after {
  background: linear-gradient(90deg, transparent 0%, hsla(0, 75%, 65%, 0.6) 30%, hsla(0, 75%, 70%, 0.7) 50%, hsla(0, 75%, 65%, 0.6) 70%, transparent 100%);
}
.light-theme .scenario-scene[id*=climax]::after {
  background: linear-gradient(90deg, transparent 0%, hsla(0, 70%, 65%, 0.4) 30%, hsla(0, 70%, 65%, 0.5) 50%, hsla(0, 70%, 65%, 0.4) 70%, transparent 100%);
}
.dark-theme .scenario-scene[id*=ed]::after, body:not(.light-theme) .scenario-scene[id*=ed]::after {
  background: linear-gradient(90deg, transparent 0%, hsla(280, 65%, 65%, 0.6) 30%, hsla(280, 65%, 70%, 0.7) 50%, hsla(280, 65%, 65%, 0.6) 70%, transparent 100%);
}
.light-theme .scenario-scene[id*=ed]::after {
  background: linear-gradient(90deg, transparent 0%, hsla(280, 60%, 65%, 0.4) 30%, hsla(280, 60%, 65%, 0.5) 50%, hsla(280, 60%, 65%, 0.4) 70%, transparent 100%);
}

.scenario-scene {
  opacity: 1;
  transform: translateY(-2px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.scenario-scene.scene-loading {
  opacity: 0;
  transform: translateY(20px);
}
.scenario-scene.scene-loaded {
  opacity: 1;
  transform: translateY(-2px);
}

.scene-container .scenario-scene + .scenario-scene {
  margin-top: 4rem;
}

@media (max-width: 679px) {
  .scenario-scene {
    margin: 0.5rem 0;
    border-radius: 12px;
  }
  .scenario-scene .scene-title {
    font-size: 1.1rem;
    padding: 1rem;
  }
  .scenario-scene .scene-title::before {
    left: 0.5rem;
    width: 40px;
  }
  .scenario-scene .scene-body {
    padding: 0.5rem;
  }
}
@media (min-width: 680px) and (max-width: 1023px) {
  .scenario-scene {
    margin: 2.5rem 0;
  }
  .scenario-scene .scene-title {
    font-size: 1.15rem;
  }
}
@media (min-width: 1024px) {
  .scenario-scene {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.12);
  }
  .light-theme .scenario-scene {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15), 0 3px 8px rgba(0, 0, 0, 0.18);
  }
  .scenario-scene::before {
    opacity: 0.6;
  }
  .dark-theme .scenario-scene::before, body:not(.light-theme) .scenario-scene::before {
    opacity: 0.7;
  }
  .light-theme .scenario-scene::before {
    opacity: 0.3;
  }
}
.backstage-page .background-image::after {
  background: linear-gradient(135deg, rgba(var(--base-primary), 0.85), rgba(var(--base-secondary), 0.75));
}

.discussion-section {
  margin-bottom: 4rem;
}
.discussion-section .sub-title {
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid hsla(var(--theme-accent-hsl), 0.3);
  font-size: 1.4rem;
  color: rgba(var(--text-primary), 0.95);
  position: relative;
}
.discussion-section .sub-title::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--theme-accent) 0%, var(--theme-secondary) 100%);
  border-radius: 2px;
}

.chat-container {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding: 1rem;
}

.chat-message.popup-style {
  display: flex;
  gap: 1.5rem;
  background: rgba(var(--base-surface), var(--glass-bg-alpha));
  border: 1px solid rgba(var(--base-surface), var(--glass-border-alpha));
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.12);
  position: relative;
  overflow: hidden;
}
.chat-message.popup-style::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  pointer-events: none;
  z-index: -1;
}
.chat-message.popup-style .avatar {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, var(--glass-border-alpha));
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.12);
}
.chat-message.popup-style .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.chat-message.popup-style .message-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.chat-message.popup-style .message-content .speaker-name {
  font-weight: var(--theme-font-weight-bold);
  color: var(--theme-accent-text);
  font-size: 1.2rem;
  text-shadow: 0 0 8px hsla(var(--theme-accent-hsl), 0.3);
  position: relative;
  padding-bottom: 0.25rem;
}
.chat-message.popup-style .message-content .speaker-name::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, var(--theme-accent) 0%, transparent 100%);
}
.chat-message.popup-style .message-content .message-text {
  color: rgba(var(--text-primary), 0.9);
  line-height: 1.7;
}
.chat-message.popup-style .message-content .message-text p {
  margin-bottom: 0.5rem;
}
.chat-message.popup-style .message-content .message-text p:last-child {
  margin-bottom: 0;
}
.chat-message.popup-style:nth-child(4n+1) {
  border-left: 4px solid var(--theme-accent);
}
.chat-message.popup-style:nth-child(4n+2) {
  border-left: 4px solid hsl(calc(var(--theme-accent-hue) + 60), var(--theme-accent-saturation), var(--theme-accent-lightness));
}
.chat-message.popup-style:nth-child(4n+3) {
  border-left: 4px solid hsl(calc(var(--theme-accent-hue) + 120), var(--theme-accent-saturation), var(--theme-accent-lightness));
}
.chat-message.popup-style:nth-child(4n+4) {
  border-left: 4px solid hsl(calc(var(--theme-accent-hue) + 180), var(--theme-accent-saturation), var(--theme-accent-lightness));
}

.participant-profiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2.5rem;
}
.participant-profiles .profile {
  display: flex;
  gap: 1.5rem;
  background: rgba(var(--base-surface), var(--glass-bg-alpha));
  border: 1px solid rgba(var(--base-surface), var(--glass-border-alpha));
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.12);
  position: relative;
  overflow: hidden;
}
.participant-profiles .profile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  pointer-events: none;
  z-index: -1;
}
.participant-profiles .profile .avatar {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, var(--glass-border-alpha));
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.12);
}
.participant-profiles .profile .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.participant-profiles .profile .profile-content {
  flex-grow: 1;
}
.participant-profiles .profile .profile-content .profile-name {
  color: var(--theme-accent-text);
  font-size: 1.3rem;
  margin-bottom: 1rem;
  font-weight: var(--theme-font-weight-bold);
  text-shadow: 0 0 8px hsla(var(--theme-accent-hsl), 0.3);
  padding-bottom: 0.25rem;
  border-bottom: 2px solid hsla(var(--theme-accent-hsl), 0.3);
}
.participant-profiles .profile .profile-content .profile-desc {
  color: rgba(var(--text-primary), 0.9);
  font-size: 0.95rem;
  line-height: 1.6;
}

.materials-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2.5rem;
}
.materials-list .material-item {
  background: rgba(var(--base-surface), var(--glass-bg-alpha));
  border: 1px solid rgba(var(--base-surface), var(--glass-border-alpha));
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.12);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.materials-list .material-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  pointer-events: none;
  z-index: -1;
}
.materials-list .material-item .material-title {
  color: rgba(var(--text-primary), 0.95);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  font-weight: var(--theme-font-weight-bold);
  border-bottom: 2px solid hsla(var(--theme-accent-hsl), 0.3);
  padding-bottom: 0.5rem;
}
.materials-list .material-item .material-desc {
  color: rgba(var(--text-primary), 0.85);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
  line-height: 1.6;
}
.materials-list .material-item .material-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--theme-accent-text);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.15s ease;
  padding: 0.5rem 1rem;
  background: hsla(var(--theme-accent-hsl), 0.1);
  border-radius: 12px;
  border: 1px solid hsla(var(--theme-accent-hsl), 0.2);
}
.materials-list .material-item .material-link:hover {
  color: rgba(var(--text-primary), 1);
  background: hsla(var(--theme-accent-hsl), 0.2);
  border-color: hsla(var(--theme-accent-hsl), 0.3);
  transform: translateY(-1px);
  text-decoration: none;
}
.materials-list .material-item .material-link i {
  font-size: 1rem;
  transition: transform 0.15s ease;
}
.materials-list .material-item .material-link:hover i {
  transform: scale(1.1);
}

.site-footer {
  padding: 2.5rem 0;
  background: rgba(var(--base-surface), var(--glass-bg-alpha));
  border: 1px solid rgba(var(--base-surface), var(--glass-border-alpha));
  border-top: 1px solid rgba(255, 255, 255, var(--glass-border-alpha));
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.12);
  position: relative;
  overflow: hidden;
  z-index: 10;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.06) 100%);
  pointer-events: none;
  z-index: -1;
}
.site-footer .footer-content {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}
.site-footer .footer-main {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  gap: 2.5rem;
}
@media (max-width: 767px) {
  .site-footer .footer-main {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
}
.site-footer .footer-social {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}
.site-footer .footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: rgba(var(--text-secondary), 0.8);
  background: rgba(var(--base-surface), var(--glass-bg-alpha));
  border: 1px solid rgba(var(--base-surface), var(--glass-border-alpha));
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 4px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}
.site-footer .footer-social-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: hsla(var(--theme-accent-hsl), 0.2);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}
.site-footer .footer-social-link i {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}
.site-footer .footer-social-link:hover {
  color: rgba(var(--text-primary), 1);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.12);
}
.site-footer .footer-social-link:hover::before {
  opacity: 1;
}
.site-footer .footer-social-link:hover i {
  transform: scale(1.1);
}
.site-footer .footer-social-link.home:hover {
  color: hsl(120, 100%, 60%);
}
.site-footer .footer-social-link.twitter:hover {
  color: hsl(203, 89%, 53%);
}
.site-footer .footer-social-link.booth:hover {
  color: hsl(351, 100%, 65%);
}
.site-footer .footer-navigation {
  flex-shrink: 0;
}
@media (max-width: 767px) {
  .site-footer .footer-navigation {
    width: 100%;
    max-width: 600px;
  }
}
.site-footer .footer-nav {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
}
@media (max-width: 767px) {
  .site-footer .footer-nav {
    justify-content: center;
  }
}
@media (max-width: 679px) {
  .site-footer .footer-nav {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
}
.site-footer .footer-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  color: rgba(var(--text-secondary), 0.9);
  font-size: 0.9rem;
  background: rgba(var(--base-surface), 0.05);
  border: 1px solid rgba(var(--base-surface), var(--glass-border-alpha));
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 4px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}
.site-footer .footer-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: hsla(var(--theme-accent-hsl), 0.15);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}
.site-footer .footer-link i {
  font-size: 1rem;
  transition: transform 0.3s ease;
}
.site-footer .footer-link span {
  font-weight: 500;
}
@media (max-width: 679px) {
  .site-footer .footer-link span {
    font-size: 0.85rem;
  }
}
.site-footer .footer-link:hover {
  color: rgba(var(--text-primary), 1);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.12);
}
.site-footer .footer-link:hover::before {
  opacity: 1;
}
.site-footer .footer-link:hover i {
  transform: scale(1.1);
}
.site-footer .footer-link.active {
  color: rgba(var(--text-primary), 1);
  font-weight: var(--theme-font-weight-bold);
  background: hsla(var(--theme-accent-hsl), 0.2);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.12);
  border-color: hsla(var(--theme-accent-hsl), 0.4);
}
.site-footer .footer-link.active::before {
  opacity: 1;
}
.site-footer .footer-copyright {
  text-align: center;
  color: rgba(var(--text-secondary), 0.6);
  font-size: 0.8rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(var(--text-secondary), 0.2);
  width: 100%;
  transition: color 0.3s ease;
}
.site-footer .footer-copyright p {
  margin: 0;
  line-height: 1.4;
}
.site-footer .footer-copyright p:not(:last-child) {
  margin-bottom: 0.25rem;
}
.site-footer .footer-copyright .scenario-copyright {
  font-weight: 500;
}
.site-footer .footer-copyright .template-credit {
  font-size: 0.75rem;
  opacity: 0.8;
}
.site-footer .footer-copyright .template-link {
  color: rgba(var(--text-secondary), 0.8);
  text-decoration: none;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 3px;
  border: 1px solid rgba(var(--text-secondary), 0.2);
  display: inline-block;
  transition: all 0.3s ease;
}
.site-footer .footer-copyright .template-link:hover {
  color: hsla(var(--theme-accent-hsl), 0.9);
  border-color: hsla(var(--theme-accent-hsl), 0.4);
  background-color: hsla(var(--theme-accent-hsl), 0.08);
  transform: translateY(-1px);
}

.booth-link-container {
  margin: 1.5rem 0;
  display: flex;
  justify-content: center;
}
.booth-link-container .booth-link {
  display: block;
  text-decoration: none;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: all 0.3s ease;
  max-width: 400px;
  width: 100%;
}
.booth-link-container .booth-link:hover {
  transform: translateY(-3px);
}
.booth-link-container .booth-link-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: hsla(351, 30%, 85%, 0.3);
  color: rgba(var(--text-primary), 0.9);
  position: relative;
  overflow: hidden;
}
.booth-link-container .booth-link-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}
.booth-link:hover .booth-link-container .booth-link-content::before {
  left: 100%;
}
.booth-link-container .booth-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  transition: all 0.3s ease;
}
.booth-link-container .booth-icon .booth-icon-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.booth-link-container .booth-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.booth-link-container .booth-text .booth-title {
  font-weight: var(--theme-font-weight-bold);
  font-size: 1.1rem;
  color: rgba(var(--text-primary), 0.95);
}
.booth-link-container .booth-text .booth-subtitle {
  font-size: 0.9rem;
  color: rgba(var(--text-secondary), 0.9);
  font-weight: 500;
}
.booth-link-container .booth-arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition: all 0.3s ease;
}
.booth-link-container .booth-arrow i {
  font-size: 1rem;
  color: rgba(var(--text-primary), 0.8);
  transition: transform 0.3s ease;
}
.booth-link-container .booth-link:hover .booth-icon {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}
.booth-link-container .booth-link:hover .booth-arrow {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}
.booth-link-container .booth-link:hover .booth-arrow i {
  transform: translateX(2px);
}
@media (max-width: 679px) {
  .booth-link-container .booth-link-content {
    padding: 1rem;
    gap: 0.5rem;
  }
  .booth-link-container .booth-link-content .booth-icon {
    width: 40px;
    height: 40px;
  }
  .booth-link-container .booth-link-content .booth-icon .booth-icon-img {
    width: 24px;
    height: 24px;
  }
  .booth-link-container .booth-link-content .booth-text .booth-title {
    font-size: 1rem;
  }
  .booth-link-container .booth-link-content .booth-text .booth-subtitle {
    font-size: 0.85rem;
  }
  .booth-link-container .booth-link-content .booth-arrow {
    width: 32px;
    height: 32px;
  }
  .booth-link-container .booth-link-content .booth-arrow i {
    font-size: 0.9rem;
  }
}

.scenario-formats {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(var(--text-secondary), 0.2);
}
.scenario-formats .formats-title {
  font-size: 1.1rem;
  font-weight: var(--theme-font-weight-bold);
  color: rgba(var(--text-primary), 0.9);
  margin-bottom: 1rem;
  text-align: center;
}
.scenario-formats .format-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
@media (max-width: 679px) {
  .scenario-formats .format-buttons {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}
.scenario-formats .format-button {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 12px;
  text-decoration: none;
  color: rgba(var(--text-primary), 0.85);
  background: rgba(var(--base-surface), 0.05);
  border: 1px solid rgba(var(--base-surface), var(--glass-border-alpha));
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 4px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.scenario-formats .format-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: hsla(var(--theme-accent-hsl), 0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}
.scenario-formats .format-button .format-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(var(--base-surface), var(--glass-bg-alpha));
  border: 1px solid rgba(var(--base-surface), var(--glass-border-alpha));
  transition: all 0.3s ease;
}
.scenario-formats .format-button .format-icon i {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}
.scenario-formats .format-button .format-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.scenario-formats .format-button .format-text .format-name {
  font-weight: var(--theme-font-weight-bold);
  font-size: 0.95rem;
  color: rgba(var(--text-primary), 0.9);
}
.scenario-formats .format-button .format-text .format-desc {
  font-size: 0.8rem;
  color: rgba(var(--text-secondary), 0.8);
}
.scenario-formats .format-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.12);
}
.scenario-formats .format-button:hover::before {
  opacity: 1;
}
.scenario-formats .format-button:hover .format-icon {
  background: hsla(var(--theme-accent-hsl), 0.15);
}
.scenario-formats .format-button:hover .format-icon i {
  transform: scale(1.1);
}
.scenario-formats .format-button:hover .format-text .format-name {
  color: rgba(var(--text-primary), 1);
}
.scenario-formats .format-button:hover .format-text .format-desc {
  color: rgba(var(--text-secondary), 0.9);
}
.scenario-formats .format-button.html:hover .format-icon {
  background-color: hsla(14, 100%, 50%, 0.1);
  border-color: hsla(14, 100%, 50%, 0.3);
}
.scenario-formats .format-button.html:hover .format-icon i {
  color: hsl(14, 100%, 50%);
}
.scenario-formats .format-button.uijin:hover .format-icon {
  background-color: hsla(220, 100%, 50%, 0.1);
  border-color: hsla(220, 100%, 50%, 0.3);
}
.scenario-formats .format-button.uijin:hover .format-icon i {
  color: hsl(220, 100%, 50%);
}
.scenario-formats .format-button.shuxei:hover .format-icon {
  background-color: hsla(150, 100%, 40%, 0.1);
  border-color: hsla(150, 100%, 40%, 0.3);
}
.scenario-formats .format-button.shuxei:hover .format-icon i {
  color: hsl(150, 100%, 40%);
}

.back-to-top {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  background: rgba(var(--base-surface), var(--glass-bg-alpha));
  border: 1px solid rgba(var(--base-surface), var(--glass-border-alpha));
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.12);
  position: fixed !important;
  bottom: 2rem !important;
  right: 2rem !important;
  color: var(--theme-accent-text);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.8);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 9999 !important;
  font-size: 1.2rem;
  left: auto !important;
  top: auto !important;
}
.back-to-top.visible {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) scale(1) !important;
}
.back-to-top:hover {
  transform: translateY(-8px) scale(1.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 0, 0, 0.16);
  border-color: hsla(var(--theme-accent-hsl), 0.3);
  color: rgba(var(--text-primary), 1);
}
.back-to-top:hover::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, hsla(var(--theme-accent-hsl), 0.4) 0%, hsla(var(--theme-accent-hsl), 0.2) 50%, transparent 70%);
  animation: pulse-expand 0.8s ease-out;
  pointer-events: none;
  z-index: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.back-to-top:active {
  transform: translateY(-8px) scale(0.95);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  width: 90%;
  max-width: 500px;
  background: rgba(var(--base-surface), 0.12);
  border: 1px solid rgba(var(--base-surface), var(--glass-border-alpha));
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 64px rgba(0, 0, 0, 0.16), 0 8px 32px rgba(0, 0, 0, 0.24);
  transform: scale(0.9);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}
.modal-content::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.06) 100%);
  pointer-events: none;
  z-index: -1;
}
.active .modal-content {
  transform: scale(1);
}

.modal-header {
  padding: 1.5rem;
  background: hsla(var(--theme-accent-hsl), 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, var(--glass-border-alpha));
  color: rgba(var(--text-primary), 1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}
.modal-header .modal-title {
  margin: 0;
  font-size: 1.3rem;
  font-weight: var(--theme-font-weight-bold);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.modal-header .modal-title i {
  color: #ffd700;
  font-size: 1.4rem;
}
.modal-header .modal-close {
  width: 32px;
  height: 32px;
  font-size: 0.8rem;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  background: rgba(var(--base-surface), var(--glass-bg-alpha));
  border: 1px solid rgba(var(--base-surface), var(--glass-border-alpha));
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.12);
}
.modal-header .modal-close::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, hsla(var(--theme-accent-hsl), 0.2) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}
.modal-header .modal-close:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 0, 0, 0.16);
  border-color: rgba(255, 255, 255, calc(var(--glass-border-alpha) + 0.1));
}
.modal-header .modal-close:hover::before {
  opacity: 1;
}
.modal-header .modal-close {
  color: rgba(var(--text-primary), 0.8);
  font-size: 1.2rem;
}
.modal-header .modal-close:hover {
  background: hsla(var(--theme-accent-hsl), 0.2);
  border-color: hsla(var(--theme-accent-hsl), 0.3);
  color: rgba(var(--text-primary), 1);
  transform: rotate(90deg);
}

.modal-body {
  padding: 2.5rem;
  color: rgba(var(--text-primary), 0.9);
}
.modal-body p {
  margin-bottom: 1rem;
  line-height: 1.6;
}
.modal-body p:last-child {
  margin-bottom: 0;
}

.modal-footer {
  padding: 1.5rem;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, calc(var(--glass-border-alpha) * 0.5));
}

.modal-btn {
  padding: 0.5rem 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, var(--glass-border-alpha));
  font-family: var(--theme-font-family);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  background: rgba(var(--base-surface), 0.05);
  border: 1px solid rgba(var(--base-surface), var(--glass-border-alpha));
}
.modal-btn.modal-cancel {
  color: rgba(var(--text-primary), 0.8);
}
.modal-btn.modal-cancel:hover {
  background: rgba(var(--text-secondary), 0.2);
  color: rgba(var(--text-primary), 1);
  transform: translateY(-1px);
}
.modal-btn.modal-confirm {
  background: hsla(var(--theme-accent-hsl), 0.3);
  border-color: hsla(var(--theme-accent-hsl), 0.5);
  color: rgba(var(--text-primary), 1);
}
.modal-btn.modal-confirm:hover {
  background: hsla(var(--theme-accent-hsl), 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.12);
}
.modal-btn.modal-confirm:active {
  transform: translateY(0);
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, calc(var(--glass-bg-alpha) * 0.6));
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: hsla(var(--theme-accent-hsl), 0.5);
  border-radius: 10px;
  transition: background 0.15s ease;
}
::-webkit-scrollbar-thumb:hover {
  background: hsla(var(--theme-accent-hsl), 0.7);
}

* {
  scrollbar-width: thin;
  scrollbar-color: hsla(var(--theme-accent-hsl), 0.5) rgba(255, 255, 255, calc(var(--glass-bg-alpha) * 0.6));
}

.sidebar::-webkit-scrollbar {
  width: 6px;
}
.sidebar::-webkit-scrollbar-thumb {
  background: hsla(var(--theme-accent-hsl), 0.3);
}
.sidebar::-webkit-scrollbar-thumb:hover {
  background: hsla(var(--theme-accent-hsl), 0.5);
}
.sidebar {
  scrollbar-color: hsla(var(--theme-accent-hsl), 0.3) transparent;
}

@media (max-width: 679px) {
  ::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
  }
  * {
    scrollbar-width: none;
  }
}
#copy-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(var(--base-primary), 0.95);
  color: rgba(var(--text-primary), 1);
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  z-index: 9999;
  opacity: 0;
  transform: translateX(100%) scale(0.8);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  pointer-events: none;
  box-shadow: var(--shadow-elevated);
  border: 1px solid rgba(var(--text-primary), 0.1);
  max-width: 300px;
}
#copy-toast.show {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}
.light-theme #copy-toast {
  background: rgba(255, 255, 255, 0.95);
  color: rgba(var(--text-primary), 0.9);
  border-color: rgba(var(--text-primary), 0.15);
}

@media (max-width: 679px) {
  .site-header .header-content {
    padding: 0.5rem;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: 60px;
    width: 100%;
    box-sizing: border-box;
    gap: 0.5rem;
  }
  .site-header .site-title {
    font-size: 1.3rem;
    text-align: center;
    flex: 1;
    order: 2;
    margin: 0 0.5rem;
  }
  .site-header .nav-toggle {
    flex-shrink: 0;
    order: 1;
  }
  .site-header .theme-toggle-btn {
    flex-shrink: 0;
    order: 3;
    margin-left: auto;
    margin-right: 0;
  }
  .content-wrapper {
    padding-top: 60px;
    overflow: hidden;
  }
  .sidebar {
    top: 0;
    height: 100vh;
  }
  .content-block {
    margin-bottom: 2.5rem;
  }
  .glass-card {
    margin-bottom: 1.5rem;
    border-radius: 12px;
  }
  .glass-card .section-title {
    font-size: 1.2rem;
    padding: 1rem;
  }
  .sub-section .sub-title {
    font-size: 1.1rem;
  }
  .chat-message.popup-style {
    padding: 1rem;
    gap: 1rem;
  }
  .chat-message.popup-style .avatar {
    width: 40px;
    height: 40px;
  }
  .chat-message.popup-style .message-content .speaker-name {
    font-size: 1.1rem;
  }
  .participant-profiles {
    grid-template-columns: 1fr;
  }
  .materials-list {
    grid-template-columns: 1fr;
  }
  .modal-footer {
    flex-direction: column;
  }
  .modal-footer .modal-btn {
    width: 100%;
    padding: 1rem 0;
    text-align: center;
  }
}
@media (min-width: 680px) and (max-width: 1023px) {
  .sidebar {
    width: 220px;
  }
}
@media (min-width: 1024px) {
  .content-wrapper.sidebar-hidden .sidebar {
    transform: translateX(-320px);
    width: 0;
  }
  .content-wrapper.sidebar-hidden .main-content {
    margin: 0 auto;
    max-width: 1440px;
  }
}
.image-section {
  margin: 1.5rem 0;
}
.image-section .image-container {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: transform opacity ease;
}
.image-section .image-container:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 0, 0, 0.16);
}
.image-section .image-container .responsive-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}
.image-section .image-container .responsive-image:hover {
  transform: scale(1.02);
}
.image-section .image-container .image-caption {
  position: relative;
  padding: 1rem;
  background: linear-gradient(145deg, rgba(var(--base-primary), 0.95) 0%, rgba(var(--base-primary), 0.98) 100%);
  border-top: 1px solid rgba(var(--text-primary), 0.1);
}
.image-section .image-container .image-caption .caption-text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
  color: rgba(var(--text-secondary), 0.9);
  text-align: center;
}
.light-theme .image-section .image-container .image-caption .caption-text {
  color: rgba(0, 0, 0, 0.7);
}
.image-section.horizontal .image-container {
  width: 100%;
  max-width: 100%;
}
.image-section.horizontal .image-container .responsive-image {
  aspect-ratio: 5/2;
  object-fit: cover;
}
@media (max-width: 679px) {
  .image-section.horizontal .image-container .responsive-image {
    aspect-ratio: 16/9;
  }
}
.image-section.square {
  display: flex;
  justify-content: center;
}
.image-section.square .image-container {
  width: 100%;
  max-width: 400px;
}
.image-section.square .image-container .responsive-image {
  aspect-ratio: 1/1;
  object-fit: cover;
}
.image-section.square.float-left, .image-section.square.float-right {
  display: block;
  clear: none;
}
.image-section.square.float-left .image-container, .image-section.square.float-right .image-container {
  max-width: 250px;
}
@media (max-width: 679px) {
  .image-section.square.float-left .image-container, .image-section.square.float-right .image-container {
    max-width: 200px;
  }
}
@media (max-width: 679px) {
  .image-section.square .image-container {
    max-width: 300px;
  }
}
.image-section.vertical {
  display: flex;
  justify-content: center;
}
.image-section.vertical .image-container {
  width: 100%;
  max-width: 350px;
}
.image-section.vertical .image-container .responsive-image {
  aspect-ratio: 3/4;
  object-fit: cover;
}
.image-section.vertical.float-left, .image-section.vertical.float-right {
  display: block;
  clear: none;
}
.image-section.vertical.float-left .image-container, .image-section.vertical.float-right .image-container {
  max-width: 200px;
}
@media (max-width: 679px) {
  .image-section.vertical.float-left .image-container, .image-section.vertical.float-right .image-container {
    max-width: 180px;
  }
}
@media (max-width: 679px) {
  .image-section.vertical .image-container {
    max-width: 280px;
  }
}
.image-section.float-left {
  float: left;
  margin: 0 1.5rem 1rem 0;
}
@media (max-width: 679px) {
  .image-section.float-left {
    float: none;
    display: flex;
    justify-content: center;
    margin: 1rem 0;
  }
}
.image-section.float-right {
  float: right;
  margin: 0 0 1rem 1.5rem;
}
@media (max-width: 679px) {
  .image-section.float-right {
    float: none;
    display: flex;
    justify-content: center;
    margin: 1rem 0;
  }
}
.image-section.character-portrait {
  display: flex;
  justify-content: center;
}
.image-section.character-portrait .image-container {
  width: 100%;
  max-width: 250px;
}
.image-section.character-portrait .image-container .responsive-image {
  aspect-ratio: 2/3;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.topic-content .image-section.character-portrait .image-container {
  max-width: 200px;
}
@media (max-width: 679px) {
  .topic-content .image-section.character-portrait .image-container {
    max-width: 150px;
  }
}
@media (max-width: 679px) {
  .image-section.character-portrait .image-container {
    max-width: 200px;
  }
}

.scene-content::after,
.content-block::after,
.section-content::after {
  content: "";
  display: table;
  clear: both;
}

.image-section.placeholder .image-container {
  background: rgba(var(--text-primary), 0.05);
  border: 2px dashed rgba(var(--text-primary), 0.2);
  box-shadow: none;
}
.image-section.placeholder .image-container:hover {
  transform: none;
  box-shadow: none;
}
.image-section.placeholder .image-container .image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}
.image-section.placeholder .image-container .image-placeholder .placeholder-text {
  color: rgba(var(--text-secondary), 0.6);
  text-align: center;
  margin: 0;
  padding: 1rem;
}

@media print {
  @page {
    margin: 15mm;
    size: A4 portrait;
  }
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    color-adjust: exact !important;
  }
  *,
  *::before,
  *::after {
    filter: none !important;
  }
  .site-header,
  .sidebar,
  .back-to-top,
  .site-footer .footer-navigation,
  .site-footer .footer-copyright, .nav-toggle,
  .nav-toggle-btn,
  .toggle-btn,
  .sidebar-close, .modal-overlay, .hamburger,
  .theme-toggle-btn,
  .character-sheet-link,
  .sheet-link-btn,
  a[href*=character] {
    display: none !important;
  }
  body {
    font-family: var(--theme-font-family) !important;
    font-size: 11pt !important;
    line-height: 1.7 !important;
    color: #333333 !important;
    background: #ffffff !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .background-image {
    display: block !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0.08 !important;
    z-index: -1 !important;
  }
  .background-image::before, .background-image::after {
    display: none !important;
  }
  .main-content {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .content-block {
    margin: 0 8pt 20pt 8pt !important;
    padding: 0 !important;
    page-break-inside: avoid !important;
  }
  .glass-card {
    background: #ffffff !important;
    border: 1pt solid #d0d0d0 !important;
    border-radius: 8pt !important;
    padding: 16pt !important;
    margin-bottom: 20pt !important;
    page-break-inside: avoid !important;
    position: relative !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
  }
  .glass-card::before {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 3pt !important;
    background: linear-gradient(90deg, hsl(var(--theme-accent-hsl)) 0%, hsl(var(--theme-secondary-hsl)) 100%) !important;
    border-radius: 8pt 8pt 0 0 !important;
    z-index: 1 !important;
  }
  .glass-card::after {
    display: none !important;
  }
  .glass-card .section-content {
    position: relative !important;
    z-index: 2 !important;
  }
  .section-title {
    font-size: 18pt !important;
    font-weight: bold !important;
    margin-bottom: 12pt !important;
    padding: 12pt 0 8pt 0 !important;
    page-break-after: avoid !important;
    color: hsl(var(--theme-accent-hsl)) !important;
    position: relative !important;
  }
  .section-title::after {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 60pt !important;
    height: 2pt !important;
    background: hsl(var(--theme-accent-hsl)) !important;
    opacity: 0.7 !important;
  }
  .sub-title {
    font-size: 14pt !important;
    font-weight: bold !important;
    margin: 16pt 0 8pt 0 !important;
    page-break-after: avoid !important;
    color: #333333 !important;
    padding-left: 16pt !important;
  }
  #top_visual_area {
    page-break-after: always !important;
    text-align: center !important;
    padding: 40pt 0 !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.75) 100%), rgba(var(--base-surface), 0.9) !important;
    border: 1pt solid rgba(var(--text-secondary), 0.3) !important;
    border-radius: 8pt !important;
    margin-bottom: 20pt !important;
  }
  #top_visual_area .title-logo {
    max-width: 200pt !important;
    margin: 0 auto 20pt !important;
  }
  #top_visual_area .catchphrase {
    font-size: 14pt !important;
    color: rgba(var(--text-secondary), 1) !important;
  }
  .gaiyo-text {
    background: rgba(255, 255, 255, 0.85) !important;
    padding: 10pt 12pt !important;
    margin-bottom: 10pt !important;
    color: rgba(var(--text-primary), 1) !important;
    border-radius: 4pt !important;
    position: relative !important;
    border: 1pt solid rgba(var(--text-secondary), 0.2) !important;
  }
  .gaiyo-text::before {
    display: none !important;
  }
  .setumei-text {
    padding-left: 16pt !important;
    margin-bottom: 10pt !important;
    color: rgba(var(--text-secondary), 1) !important;
  }
  .byosya-text {
    background: rgba(255, 255, 255, 0.8) !important;
    border: 1pt solid rgba(var(--text-secondary), 0.3) !important;
    border-left: 4pt solid hsl(var(--theme-accent-hue), var(--theme-accent-saturation), var(--theme-accent-lightness)) !important;
    border-radius: 4pt !important;
    padding: 12pt !important;
    margin: 12pt 0 !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1) !important;
  }
  .image-section {
    margin: 0.5cm 0 !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }
  .image-section .image-container {
    box-shadow: none !important;
    border: 1pt solid #ddd !important;
    border-radius: 4pt !important;
    overflow: visible !important;
  }
  .image-section .image-container .responsive-image {
    max-height: 8cm !important;
    object-fit: contain !important;
    border-radius: 4pt !important;
  }
  .image-section .image-container .image-caption {
    background: #f8f8f8 !important;
    border-top: 1pt solid #ddd !important;
    padding: 8pt !important;
  }
  .image-section .image-container .image-caption .caption-text {
    color: #666 !important;
    font-size: 9pt !important;
    margin: 0 !important;
  }
  .image-section.horizontal .image-container .responsive-image {
    max-height: 5cm !important;
  }
  .image-section.square .image-container .responsive-image {
    max-height: 5cm !important;
  }
  .image-section.vertical .image-container .responsive-image {
    max-height: 8cm !important;
  }
  .image-section.placeholder .image-container {
    background: #f0f0f0 !important;
    border: 2pt dashed #ccc !important;
  }
  .image-section.placeholder .image-container .image-placeholder .placeholder-text {
    color: #999 !important;
    font-size: 10pt !important;
  }
  .shori-text::after {
    content: "⚙" !important;
    font-family: Arial, sans-serif !important;
    font-weight: normal !important;
  }
  .purpose-text::after {
    content: "💼" !important;
    font-family: Arial, sans-serif !important;
    font-weight: normal !important;
  }
  .guideline-text::after {
    content: "📋" !important;
    font-family: Arial, sans-serif !important;
    font-weight: normal !important;
  }
  .check-text::after {
    content: "🎲" !important;
    font-family: Arial, sans-serif !important;
    font-weight: normal !important;
  }
  .gminfo-text::after {
    content: "👁" !important;
    font-family: Arial, sans-serif !important;
    font-weight: normal !important;
  }
  .notice-text::after {
    content: "⚠" !important;
    font-family: Arial, sans-serif !important;
    font-weight: normal !important;
  }
  .note-text::after {
    content: "📝" !important;
    font-family: Arial, sans-serif !important;
    font-weight: normal !important;
  }
  .handout-wrapper {
    border: none !important;
    border-radius: 0 !important;
    margin-bottom: 16pt !important;
    page-break-inside: avoid !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15) !important;
    overflow: hidden !important;
  }
  .handout-wrapper .omote {
    background: linear-gradient(135deg, rgba(248, 244, 230, 0.95) 0%, rgba(253, 252, 251, 0.9) 100%) !important;
    color: rgba(var(--text-primary), 1) !important;
    padding: 12pt 16pt !important;
    border-bottom: 1pt solid rgba(var(--text-secondary), 0.3) !important;
    position: relative !important;
  }
  .handout-wrapper .ura {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.95) 0%, rgba(52, 73, 94, 0.9) 100%) !important;
    color: rgb(255, 255, 255) !important;
    padding: 12pt 16pt !important;
    position: relative !important;
  }
  .handout-wrapper .ura::before {
    content: "SECRET" !important;
    position: absolute !important;
    top: 50% !important;
    right: 16pt !important;
    transform: translateY(-50%) rotate(-15deg) !important;
    font-size: 24pt !important;
    font-weight: bold !important;
    color: rgba(255, 255, 255, 0.05) !important;
    letter-spacing: 3pt !important;
  }
  .scenario-scene {
    background: rgba(255, 255, 255, 0.85) !important;
    border: 1pt solid rgba(var(--text-secondary), 0.3) !important;
    border-radius: 0 !important;
    margin: 12pt 0 !important;
    page-break-inside: avoid !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12) !important;
    position: relative !important;
    overflow: hidden !important;
  }
  .scenario-scene .scene-title {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(var(--base-surface), 0.85) 100%) !important;
    border-bottom: 1pt solid rgba(var(--text-secondary), 0.3) !important;
    padding: 10pt 16pt !important;
    font-size: 13pt !important;
    font-weight: var(--theme-font-weight-bold) !important;
    color: rgba(var(--text-primary), 1) !important;
    position: relative !important;
  }
  .scenario-scene .scene-title::before {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 4pt !important;
    background: hsl(var(--theme-accent-hue), var(--theme-accent-saturation), var(--theme-accent-lightness)) !important;
  }
  .scenario-scene .scene-body {
    padding: 12pt 16pt !important;
    background: rgba(255, 255, 255, 0.8) !important;
  }
  .scenario-scene[id*=op] .scene-title::before {
    background: hsl(210, 70%, 65%) !important;
  }
  .scenario-scene[id*=main] .scene-title::before {
    background: hsl(var(--theme-accent-hue), var(--theme-accent-saturation), var(--theme-accent-lightness)) !important;
  }
  .scenario-scene[id*=climax] .scene-title::before {
    background: hsl(0, 75%, 65%) !important;
  }
  .scenario-scene[id*=ed] .scene-title::before {
    background: hsl(280, 65%, 65%) !important;
  }
  .chat-message.popup-style {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1pt solid rgba(var(--text-secondary), 0.3) !important;
    border-radius: 8pt !important;
    padding: 12pt !important;
    margin-bottom: 12pt !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1) !important;
    page-break-inside: avoid !important;
  }
  .chat-message.popup-style .avatar {
    width: 40pt !important;
    height: 40pt !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    border: 2pt solid rgba(var(--text-secondary), 0.3) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
  }
  .chat-message.popup-style .avatar img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
  .chat-message.popup-style .speaker-name {
    font-size: 12pt !important;
    font-weight: var(--theme-font-weight-bold) !important;
    color: hsl(var(--theme-accent-hue), var(--theme-accent-saturation), calc(var(--theme-accent-lightness) - 20%)) !important;
    margin-bottom: 4pt !important;
  }
  .chat-message.popup-style .message-text {
    font-size: 10pt !important;
    line-height: 1.6 !important;
    color: rgba(var(--text-primary), 1) !important;
  }
  .chat-message.popup-style:nth-child(4n+1) {
    border-left: 4pt solid hsl(var(--theme-accent-hue), var(--theme-accent-saturation), var(--theme-accent-lightness)) !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%) !important;
  }
  .chat-message.popup-style:nth-child(4n+2) {
    border-left: 4pt solid hsl(calc(var(--theme-accent-hue) + 60), var(--theme-accent-saturation), var(--theme-accent-lightness)) !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%) !important;
  }
  .chat-message.popup-style:nth-child(4n+3) {
    border-left: 4pt solid hsl(calc(var(--theme-accent-hue) + 120), var(--theme-accent-saturation), var(--theme-accent-lightness)) !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%) !important;
  }
  .chat-message.popup-style:nth-child(4n+4) {
    border-left: 4pt solid hsl(calc(var(--theme-accent-hue) + 180), var(--theme-accent-saturation), var(--theme-accent-lightness)) !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%) !important;
  }
  .site-footer {
    margin-top: 30pt !important;
    padding-top: 10pt !important;
    border-top: 1pt solid rgba(var(--text-secondary), 0.3) !important;
    text-align: center !important;
    font-size: 8pt !important;
    color: rgba(var(--text-secondary), 1) !important;
  }
  .site-footer::before {
    content: "© 2025 シナリオシート - PDF版" !important;
    display: block !important;
  }
  @page {
    @bottom-right {
      content: counter(page) " / " counter(pages);
      font-size: 9pt;
      color: rgba(var(--text-secondary), 1);
    }
  }
  .scene-body,
  .scene-container,
  .sub-nav,
  .section-content {
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
    opacity: 1 !important;
    display: block !important;
    visibility: visible !important;
  }
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    page-break-after: avoid !important;
    page-break-inside: avoid !important;
  }
  p {
    orphans: 3 !important;
    widows: 3 !important;
  }
  .npc-profile .image-container {
    opacity: 1 !important;
    transform: translateY(0) !important;
  }
  .fade-in-element,
  .scroll-animate {
    opacity: 1 !important;
    transform: translateY(0) !important;
  }
  .handout-container::before, .handout-container::after {
    opacity: 0.02 !important;
  }
  .glass-card::before,
  .glass-card::after {
    opacity: 0.03 !important;
  }
  .section-title::after,
  .sub-title::after {
    opacity: 0.03 !important;
  }
  a {
    color: hsl(var(--theme-accent-hue), var(--theme-accent-saturation), calc(var(--theme-accent-lightness) - 20%)) !important;
    text-decoration: underline !important;
  }
  * {
    color-adjust: exact !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  .enemy-data-block {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    margin: 8pt 0 !important;
    padding: 0 !important;
    max-width: none !important;
  }
  .enemy-header {
    background: transparent !important;
    border: none !important;
    margin-bottom: 8pt !important;
  }
  .enemy-name {
    color: inherit !important;
    font-size: 16pt !important;
  }
  .character-sheet-link {
    display: none !important;
  }
  .enemy-stats-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8pt !important;
    margin-bottom: 12pt !important;
  }
  .enemy-stat-box {
    background: transparent !important;
    border: 1pt solid #ccc !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 4pt !important;
    position: relative !important;
    min-height: 24pt !important;
  }
  .stat-number {
    color: inherit !important;
    font-size: 14pt !important;
    font-weight: bold !important;
    text-align: center !important;
    margin-top: 12pt !important;
  }
  .stat-label {
    color: inherit !important;
    font-size: 6pt !important;
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
    position: absolute !important;
    top: 2pt !important;
    left: 2pt !important;
    opacity: 0.7 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3pt !important;
  }
  .enemy-notes,
  .enemy-instructions {
    background: transparent !important;
    border: none !important;
    margin-bottom: 8pt !important;
  }
  .notes-title,
  .instructions-title {
    color: inherit !important;
    border: none !important;
    border-bottom: none !important;
    font-size: 10pt !important;
    font-weight: bold !important;
    margin-bottom: 4pt !important;
  }
  .enemy-instructions h6 {
    background: transparent !important;
    color: inherit !important;
    border: none !important;
    border-left: none !important;
    font-size: 9pt !important;
    font-weight: bold !important;
    margin: 4pt 0 2pt 0 !important;
  }
  .shori-text {
    color: inherit !important;
    font-size: 10pt !important;
  }
}
/**
 * エネミーデータセクションの設計思想：
 * NPCプロファイルセクションとの視覚的統一性を実現するため、
 * 共通のdata-itemシステムを使用して一貫したデザインを提供
 */
.enemy-data-block.loading {
  opacity: 0.7;
  pointer-events: none;
}
.enemy-data-block.loading .stat-number {
  animation: pulseLoading 1.5s ease-in-out infinite;
}
.enemy-data-block.loading::after {
  content: "読み込み中...";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.95rem;
  z-index: 10;
}

@keyframes pulseLoading {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.95);
  }
}
.stat-number:empty::after {
  content: "?";
  opacity: 0.5;
  color: #999;
}

.stat-number.invalid {
  color: #dc2626 !important;
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-2px);
  }
  75% {
    transform: translateX(2px);
  }
}
.enemy-data-block.error {
  border-color: #dc2626;
  background: rgba(220, 38, 38, 0.05);
}
.enemy-data-block.error::before {
  content: "⚠ データ読み込みエラー";
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #dc2626;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.8rem;
  z-index: 5;
}

.character-sheet-link.connection-error {
  background: #6b7280 !important;
}
.character-sheet-link.connection-error::after {
  content: " (接続エラー)";
  font-size: 0.8rem;
  opacity: 0.8;
}
.character-sheet-link.connection-error:hover {
  background: #4b5563 !important;
}

@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;
  }
  .background-image::before {
    animation: none !important;
  }
}
.pc-setting {
  margin: 1.5rem 0;
  padding: 1rem;
  background: hsla(var(--theme-accent-hsl), 0.03);
  border-radius: 12px;
  border-left: 4px solid hsla(var(--theme-accent-hsl), 0.3);
  transition: all 0.3s ease;
}

.gm-note {
  margin: 1rem 0;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  background: linear-gradient(135deg, hsla(45, 60%, 92%, 0.35), hsla(45, 60%, 88%, 0.45));
  border: 1px solid hsla(45, 50%, 70%, 0.3);
  border-left: 2px solid hsla(45, 70%, 55%, 0.55);
  border-radius: 6px;
  font-style: italic;
  font-size: 0.95em;
  color: hsla(45, 30%, 25%, 0.85);
  position: relative;
  box-shadow: 0 1px 2px hsla(45, 40%, 30%, 0.06);
  transition: all 0.3s ease;
}
.gm-note::before {
  content: "⚙";
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1em;
  font-style: normal;
  color: hsla(45, 70%, 45%, 0.65);
  line-height: 1;
}
.gm-note:hover {
  background: linear-gradient(135deg, hsla(45, 60%, 90%, 0.4), hsla(45, 60%, 86%, 0.5));
  border-left-color: hsla(45, 70%, 50%, 0.7);
  box-shadow: 0 2px 4px hsla(45, 40%, 30%, 0.1);
}
@media (prefers-color-scheme: dark) {
  .gm-note {
    background: linear-gradient(135deg, hsla(45, 35%, 22%, 0.4), hsla(45, 30%, 18%, 0.45));
    border-color: hsla(45, 40%, 40%, 0.25);
    border-left-color: hsla(45, 60%, 50%, 0.45);
    color: hsla(45, 50%, 85%, 0.85);
  }
  .gm-note::before {
    color: hsla(45, 60%, 65%, 0.65);
  }
  .gm-note:hover {
    background: linear-gradient(135deg, hsla(45, 35%, 24%, 0.5), hsla(45, 30%, 20%, 0.55));
    border-left-color: hsla(45, 60%, 55%, 0.6);
  }
}

.conditional-scene {
  margin: 1rem 0;
  padding: 0.75rem 0.875rem;
  background: hsla(var(--theme-accent-hue), 50%, 95%, 0.2);
  border: 1px solid hsla(var(--theme-accent-hue), 40%, 70%, 0.15);
  border-left: 2px solid hsla(var(--theme-accent-hue), 60%, 55%, 0.5);
  border-radius: 6px;
  transition: all 0.3s ease;
}
.conditional-scene .condition-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.9em;
  color: hsla(var(--theme-accent-hue), 70%, 40%, 0.9);
  letter-spacing: 0.01em;
}
.conditional-scene:hover {
  background: hsla(var(--theme-accent-hue), 50%, 93%, 0.25);
  border-left-color: hsla(var(--theme-accent-hue), 60%, 50%, 0.65);
}
.conditional-scene .copy-text,
.conditional-scene .serifu-line {
  margin-top: 0.4rem;
}
.conditional-scene .copy-text:first-of-type,
.conditional-scene .serifu-line:first-of-type {
  margin-top: 0;
}
.conditional-scene .serifu-group {
  margin-top: 0.5rem;
}
.conditional-scene .serifu-group:first-child {
  margin-top: 0;
}
@media (prefers-color-scheme: dark) {
  .conditional-scene {
    background: hsla(var(--theme-accent-hue), 30%, 18%, 0.25);
    border-color: hsla(var(--theme-accent-hue), 40%, 45%, 0.2);
    border-left-color: hsla(var(--theme-accent-hue), 55%, 50%, 0.45);
  }
  .conditional-scene .condition-label {
    color: hsla(var(--theme-accent-hue), 60%, 70%, 0.9);
  }
  .conditional-scene:hover {
    background: hsla(var(--theme-accent-hue), 30%, 20%, 0.3);
    border-left-color: hsla(var(--theme-accent-hue), 55%, 55%, 0.6);
  }
}

@media print {
  .gm-note {
    border: 1px solid #999;
    background: #f9f9f9;
    box-shadow: none;
    page-break-inside: avoid;
  }
  .gm-note::before {
    color: #666;
  }
  .conditional-scene {
    border: 1px solid #666;
    border-left-width: 2px;
    background: #fafafa;
    box-shadow: none;
    page-break-inside: avoid;
  }
}
.distribution-section {
  margin: 2rem 0;
}

.distribution-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (max-width: 768px) {
  .distribution-grid {
    grid-template-columns: 1fr;
  }
}

.distribution-item {
  border: 1px solid rgba(var(--text-primary), 0.12);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(var(--text-primary), 0.02);
  transition: all 0.3s ease;
}
.distribution-item:hover {
  border-color: rgba(var(--text-primary), 0.18);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.distribution-item:first-child {
  --booth-pink: 358, 97%, 65%;
  background: linear-gradient(135deg, hsla(var(--booth-pink), 0.03) 0%, hsla(var(--booth-pink), 0.01) 100%);
  border-color: hsla(var(--booth-pink), 0.25);
}
.distribution-item:first-child:hover {
  border-color: hsla(var(--booth-pink), 0.35);
  box-shadow: 0 2px 12px hsla(var(--booth-pink), 0.15);
}
.distribution-item:first-child .distribution-item-header {
  background: hsla(var(--booth-pink), 0.05);
  border-bottom-color: hsla(var(--booth-pink), 0.15);
}
.distribution-item:first-child .distribution-link {
  background: hsla(var(--booth-pink), 0.08);
  border-color: hsla(var(--booth-pink), 0.25);
  color: hsl(var(--booth-pink));
}
.distribution-item:first-child .distribution-link:hover {
  background: hsla(var(--booth-pink), 0.12);
  border-color: hsla(var(--booth-pink), 0.35);
  color: hsl(358, 97%, 55%);
}

.dark-theme .distribution-item:first-child,
body:not(.light-theme) .distribution-item:first-child {
  background: linear-gradient(135deg, hsla(var(--booth-pink), 0.06) 0%, hsla(var(--booth-pink), 0.03) 100%);
  border-color: hsla(var(--booth-pink), 0.3);
}
.dark-theme .distribution-item:first-child:hover,
body:not(.light-theme) .distribution-item:first-child:hover {
  border-color: hsla(var(--booth-pink), 0.4);
  box-shadow: 0 2px 12px hsla(var(--booth-pink), 0.2);
}
.dark-theme .distribution-item:first-child .distribution-item-header,
body:not(.light-theme) .distribution-item:first-child .distribution-item-header {
  background: hsla(var(--booth-pink), 0.08);
  border-bottom-color: hsla(var(--booth-pink), 0.2);
}
.dark-theme .distribution-item:first-child .distribution-link,
body:not(.light-theme) .distribution-item:first-child .distribution-link {
  background: hsla(var(--booth-pink), 0.1);
  border-color: hsla(var(--booth-pink), 0.3);
  color: hsl(358, 90%, 70%);
}
.dark-theme .distribution-item:first-child .distribution-link:hover,
body:not(.light-theme) .distribution-item:first-child .distribution-link:hover {
  background: hsla(var(--booth-pink), 0.15);
  border-color: hsla(var(--booth-pink), 0.4);
  color: hsl(358, 90%, 75%);
}

.distribution-item-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: rgba(var(--text-primary), 0.03);
  border-bottom: 1px solid rgba(var(--text-primary), 0.08);
}

.distribution-booth-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}

.distribution-uijin-icon {
  width: 24px;
  height: 24px;
  font-size: 20px;
  flex-shrink: 0;
  color: #4CAF50;
  display: flex;
  align-items: center;
  justify-content: center;
}

.distribution-item-title {
  font-size: 1.05rem;
  font-weight: var(--theme-font-weight-medium);
  color: rgba(var(--text-primary), 0.9);
  margin: 0;
  padding: 0;
  border: none;
}
.distribution-item-title::after {
  display: none;
}

.distribution-item-body {
  padding: 1.25rem;
}

.distribution-item-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(var(--text-secondary), 0.85);
  margin-bottom: 1rem;
}
.distribution-item-desc small {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.85em;
  color: rgba(var(--text-secondary), 0.7);
}

.distribution-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.6rem 1.25rem;
  background: rgba(var(--text-primary), 0.05);
  border: 1px solid rgba(var(--text-primary), 0.12);
  border-radius: 6px;
  color: rgba(var(--text-primary), 0.9);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: var(--theme-font-weight-medium);
  transition: all 0.3s ease;
}
.distribution-link:hover {
  background: rgba(var(--text-primary), 0.08);
  border-color: rgba(var(--text-primary), 0.2);
  transform: translateY(-1px);
}
.distribution-link:hover i {
  transform: translateX(2px);
}
.distribution-link i {
  font-size: 0.85em;
  transition: transform 0.3s ease;
}

.distribution-sublinks {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.distribution-sublink {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(var(--text-primary), 0.03);
  border: 1px solid rgba(var(--text-primary), 0.1);
  border-radius: 6px;
  color: rgba(var(--text-primary), 0.85);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}
.distribution-sublink i:first-child {
  flex-shrink: 0;
  font-size: 1rem;
  color: rgba(var(--text-primary), 0.6);
}
.distribution-sublink span {
  flex: 1;
}
.distribution-sublink i:last-child {
  flex-shrink: 0;
  font-size: 0.8em;
  color: rgba(var(--text-primary), 0.5);
  transition: transform 0.3s ease;
}
.distribution-sublink:hover {
  background: rgba(var(--text-primary), 0.06);
  border-color: rgba(var(--text-primary), 0.16);
}
.distribution-sublink:hover i:last-child {
  transform: translateX(2px);
}

.dark-theme .distribution-item,
body:not(.light-theme) .distribution-item {
  background: rgba(var(--text-primary), 0.03);
  border-color: rgba(var(--text-primary), 0.15);
}
.dark-theme .distribution-item:hover,
body:not(.light-theme) .distribution-item:hover {
  border-color: rgba(var(--text-primary), 0.22);
}
.dark-theme .distribution-item-header,
body:not(.light-theme) .distribution-item-header {
  background: rgba(var(--text-primary), 0.05);
  border-bottom-color: rgba(var(--text-primary), 0.1);
}
.dark-theme .distribution-link,
body:not(.light-theme) .distribution-link {
  background: rgba(var(--text-primary), 0.06);
  border-color: rgba(var(--text-primary), 0.15);
}
.dark-theme .distribution-link:hover,
body:not(.light-theme) .distribution-link:hover {
  background: rgba(var(--text-primary), 0.1);
  border-color: rgba(var(--text-primary), 0.25);
}
.dark-theme .distribution-sublink,
body:not(.light-theme) .distribution-sublink {
  background: rgba(var(--text-primary), 0.04);
  border-color: rgba(var(--text-primary), 0.12);
}
.dark-theme .distribution-sublink:hover,
body:not(.light-theme) .distribution-sublink:hover {
  background: rgba(var(--text-primary), 0.08);
  border-color: rgba(var(--text-primary), 0.2);
}

.author-social-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(var(--text-primary), 0.1);
}

.author-social-title {
  font-size: 1rem;
  font-weight: var(--theme-font-weight-bold);
  color: rgba(var(--text-primary), 0.9);
  margin-bottom: 1rem;
  padding: 0 1rem;
}

.author-social-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0 1rem;
}

.author-social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: rgba(var(--base-surface), 0.6);
  border: 1px solid rgba(var(--text-primary), 0.15);
  border-radius: 10px;
  color: rgba(var(--text-primary), 0.9);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.95rem;
  font-weight: var(--theme-font-weight-medium);
  position: relative;
  overflow: hidden;
}
.author-social-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, hsla(var(--theme-accent-hsl), 0.1) 0%, hsla(var(--theme-secondary-hsl), 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.author-social-link:hover {
  transform: translateY(-2px);
  border-color: hsla(var(--theme-accent-hsl), 0.4);
  box-shadow: 0 4px 12px hsla(var(--theme-accent-hsl), 0.2);
  color: var(--theme-accent-text);
}
.author-social-link:hover::before {
  opacity: 1;
}
.author-social-link:hover i {
  transform: scale(1.1);
}
.author-social-link i {
  font-size: 1.1rem;
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}
.author-social-link span {
  position: relative;
  z-index: 1;
}
.author-social-link.twitter:hover {
  border-color: #1DA1F2;
}
.author-social-link.twitter:hover i {
  color: #1DA1F2;
}
.author-social-link.bluesky:hover {
  border-color: #0085ff;
}
.author-social-link.bluesky:hover i {
  color: #0085ff;
}

@media (max-width: 679px) {
  .author-social-links {
    flex-direction: column;
  }
  .author-social-link {
    justify-content: center;
  }
  .distribution-title,
  .author-social-title {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  .sub-distribution-label {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}
.dark-theme .booth-link.main,
body:not(.light-theme) .booth-link.main {
  background: linear-gradient(135deg, hsla(var(--theme-accent-hsl), 0.08) 0%, hsla(var(--theme-secondary-hsl), 0.05) 100%);
  border-color: hsla(var(--theme-accent-hsl), 0.25);
}
.dark-theme .booth-link.main:hover,
body:not(.light-theme) .booth-link.main:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px hsla(var(--theme-accent-hsl), 0.3);
}
.dark-theme .sub-card,
body:not(.light-theme) .sub-card {
  background: rgba(var(--base-surface), 0.8);
  border-color: rgba(var(--text-primary), 0.15);
}
.dark-theme .author-social-link,
body:not(.light-theme) .author-social-link {
  background: rgba(var(--base-surface), 0.8);
  border-color: rgba(var(--text-primary), 0.2);
}

.distribution-description {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(var(--text-secondary), 0.85);
  background: rgba(var(--text-primary), 0.02);
  border-radius: 8px;
  border-left: 2px solid hsla(var(--theme-accent-hsl), 0.15);
}
.distribution-description small {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.85em;
  color: rgba(var(--text-secondary), 0.7);
}

.main-distribution-card .distribution-description {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(var(--text-primary), 0.03);
  border-left-color: hsla(var(--theme-accent-hsl), 0.2);
}

.dark-theme .distribution-description,
body:not(.light-theme) .distribution-description {
  background: rgba(var(--text-primary), 0.04);
}
.dark-theme .main-distribution-card .distribution-description,
body:not(.light-theme) .main-distribution-card .distribution-description {
  background: rgba(var(--text-primary), 0.05);
}

/* ==========================================================================
   ネタバレ警告システム（ぜろゆめLN index専用）
   ========================================================================== */
.spoiler-warning-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 1rem;
}
.spoiler-warning-overlay.show {
  opacity: 1;
}

.spoiler-warning-modal {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 12px;
  max-width: 560px;
  width: 100%;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}
.spoiler-warning-overlay.show .spoiler-warning-modal {
  transform: scale(1);
}

.spoiler-warning-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.spoiler-warning-header i {
  font-size: 1.5rem;
  color: #f59e0b;
}
.spoiler-warning-header h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.9);
  position: static;
}
.spoiler-warning-header h2::after {
  display: none;
}

.spoiler-warning-content {
  padding: 1.5rem 2rem;
  line-height: 1.7;
}

.warning-main {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.85);
  margin: 0 0 1rem 0;
}
.warning-main strong {
  color: rgba(0, 0, 0, 0.95);
  font-weight: 600;
}

.warning-detail {
  font-size: 0.9rem;
  color: rgba(0, 0, 0, 0.7);
  margin: 0 0 1.25rem 0;
  padding: 0.875rem 1rem;
  background: rgba(0, 0, 0, 0.03);
  border-left: 2px solid rgba(0, 0, 0, 0.15);
  border-radius: 4px;
}
.warning-detail strong {
  color: rgba(0, 0, 0, 0.85);
}

.warning-links {
  display: flex;
  justify-content: center;
  margin: 1.25rem 0 0 0;
}
.warning-links .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: hsla(var(--theme-accent-hsl), 1);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}
.warning-links .btn-primary:hover {
  background: hsla(var(--theme-accent-hue), 84%, 58%, 1);
  transform: translateY(-1px);
}
.warning-links .btn-primary i {
  font-size: 1em;
}

.spoiler-warning-footer {
  padding: 1rem 2rem 1.5rem;
  display: flex;
  justify-content: center;
}

.btn-accept {
  padding: 0.75rem 2rem;
  background: rgba(0, 0, 0, 0.85);
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-accept:hover {
  background: rgba(0, 0, 0, 0.95);
  transform: translateY(-1px);
}
.btn-accept:active {
  transform: translateY(0);
}

.spoiler-boundary-section {
  margin-top: 2.5rem;
  margin-bottom: 250px;
  margin-left: auto;
  margin-right: auto;
  padding: 1.5rem;
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 8px;
  text-align: center;
}

.spoiler-boundary-content {
  max-width: 600px;
  margin: 0 auto;
}

.spoiler-boundary-icon {
  margin: 0 auto 1rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 158, 11, 0.1);
  border-radius: 50%;
}
.spoiler-boundary-icon i {
  font-size: 1.5rem;
  color: #f59e0b;
}

.spoiler-boundary-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.9);
  margin: 0 0 0.75rem 0;
  position: static;
}
.spoiler-boundary-title::after {
  display: none;
}

.spoiler-boundary-text {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.75);
  margin: 0;
}
.spoiler-boundary-text strong {
  color: rgba(0, 0, 0, 0.9);
  font-weight: 600;
}

/* ダークモード対応 */
.dark-theme .spoiler-warning-modal,
body:not(.light-theme) .spoiler-warning-modal {
  background: rgba(30, 30, 35, 0.98);
}
.dark-theme .spoiler-warning-header,
body:not(.light-theme) .spoiler-warning-header {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}
.dark-theme .spoiler-warning-header h2,
body:not(.light-theme) .spoiler-warning-header h2 {
  color: rgba(255, 255, 255, 0.95);
}
.dark-theme .warning-main,
body:not(.light-theme) .warning-main {
  color: rgba(255, 255, 255, 0.9);
}
.dark-theme .warning-main strong,
body:not(.light-theme) .warning-main strong {
  color: rgba(255, 255, 255, 0.95);
}
.dark-theme .warning-detail,
body:not(.light-theme) .warning-detail {
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.04);
  border-left-color: rgba(255, 255, 255, 0.15);
}
.dark-theme .warning-detail strong,
body:not(.light-theme) .warning-detail strong {
  color: rgba(255, 255, 255, 0.9);
}
.dark-theme .spoiler-boundary-section,
body:not(.light-theme) .spoiler-boundary-section {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.3);
}
.dark-theme .spoiler-boundary-icon,
body:not(.light-theme) .spoiler-boundary-icon {
  background: rgba(245, 158, 11, 0.15);
}
.dark-theme .spoiler-boundary-title,
body:not(.light-theme) .spoiler-boundary-title {
  color: rgba(255, 255, 255, 0.95);
}
.dark-theme .spoiler-boundary-text,
body:not(.light-theme) .spoiler-boundary-text {
  color: rgba(255, 255, 255, 0.8);
}
.dark-theme .spoiler-boundary-text strong,
body:not(.light-theme) .spoiler-boundary-text strong {
  color: rgba(255, 255, 255, 0.95);
}

/* モバイル対応 */
@media (max-width: 679px) {
  .spoiler-warning-modal {
    max-width: calc(100% - 2rem);
  }
  .spoiler-warning-header {
    padding: 1.25rem 1.5rem;
  }
  .spoiler-warning-header h2 {
    font-size: 1.125rem;
  }
  .spoiler-warning-content {
    padding: 1.25rem 1.5rem;
  }
  .warning-main {
    font-size: 0.95rem;
  }
  .warning-detail {
    font-size: 0.85rem;
    padding: 0.75rem 0.875rem;
  }
  .spoiler-warning-footer {
    padding: 0.875rem 1.5rem 1.25rem;
  }
  .btn-accept {
    width: 100%;
    padding: 0.875rem;
  }
  .spoiler-boundary-section {
    margin-top: 2rem;
    margin-bottom: 150px;
    margin-left: auto;
    margin-right: auto;
    padding: 1.25rem;
  }
  .spoiler-boundary-icon {
    width: 40px;
    height: 40px;
  }
  .spoiler-boundary-icon i {
    font-size: 1.25rem;
  }
  .spoiler-boundary-title {
    font-size: 1rem;
  }
  .spoiler-boundary-text {
    font-size: 0.85rem;
  }
}
