/* ============================================================================
   main.css — 1〜6ページ目（序章＋5製品）のスタイル
   元ファイル 5_7__1.html のインラインCSSをそのまま分離したもの。
   ============================================================================ */
    /* =========================================================================
       デザインシステム＆製品別テーマ変数（外部CDN非依存）
       ========================================================================= */
    :root {
      --accent: #0d9488;
      --accent-dark: #0f766e;
      --accent-soft: #f0fdfa;
      --accent-mid: #ccfbf1;
      --accent-border: #99f6e4;
      --accent-rgb: 13, 148, 136;

      --bg-page: #f8fafc;
      --bg-card: #ffffff;
      --bg-subtle: #f1f5f9;
      --text-main: #1e293b;
      --text-sub: #475569;
      --text-muted: #94a3b8;
      --border-light: #e2e8f0;
      --border-mid: #cbd5e1;

      --radius-sm: 8px;
      --radius-md: 12px;
      --radius-lg: 18px;
      --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
      --shadow-md: 0 8px 24px -6px rgba(15, 23, 42, 0.1), 0 2px 6px rgba(15, 23, 42, 0.05);
      --shadow-lg: 0 20px 44px -12px rgba(15, 23, 42, 0.22);
    }

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

    html, body {
      margin: 0;
      padding: 0;
      width: 100vw;
      height: 100vh;
      overflow: hidden;
      font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", "Meiryo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      background-color: var(--bg-page);
      color: var(--text-main);
      line-height: 1.45;
      -webkit-font-smoothing: antialiased;
    }

    button {
      font-family: inherit;
      cursor: pointer;
    }

    /* =========================================================================
       スリムヘッダー（高さ48px・スライドプレゼン仕様）
       ========================================================================= */
    .site-header {
      position: relative;
      z-index: 40;
      height: 48px;
      background: rgba(255, 255, 255, 0.94);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--border-light);
      flex-shrink: 0;
    }

    .header-inner {
      max-width: 1520px;
      margin: 0 auto;
      padding: 0 16px;
      height: 48px;
      display: grid;
      grid-template-columns: 1fr auto 1fr;
      align-items: center;
      gap: 12px;
    }

    .header-left {
      display: flex;
      align-items: center;
      gap: 10px;
      min-width: 0;
    }

    .burger-btn {
      width: 34px;
      height: 34px;
      border-radius: 9px;
      border: 1px solid var(--border-light);
      background: #fff;
      color: var(--text-main);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
    }
    .burger-btn:hover {
      background: var(--accent-soft);
      border-color: var(--accent-border);
      color: var(--accent-dark);
    }

    .brand-title-wrap {
      min-width: 0;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .brand-title {
      margin: 0;
      font-size: 14px;
      font-weight: 800;
      color: var(--text-main);
      letter-spacing: -0.01em;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .slide-tag {
      font-size: 10px;
      font-weight: 700;
      padding: 2px 7px;
      border-radius: 999px;
      background: var(--bg-subtle);
      color: var(--text-sub);
      border: 1px solid var(--border-light);
      flex-shrink: 0;
    }

    /* 中央：現在カテゴリ＆スライドプログレスバー */
    .header-center {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 4px;
      min-width: 220px;
    }
    .header-slide-meta {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 11.5px;
      font-weight: 700;
      color: var(--text-main);
      white-space: nowrap;
    }
    .header-role-chip {
      font-size: 10px;
      font-weight: 800;
      padding: 1px 7px;
      border-radius: 999px;
      background: var(--accent-soft);
      color: var(--accent-dark);
      border: 1px solid var(--accent-border);
    }
    .header-progress-track {
      width: 220px;
      height: 4px;
      border-radius: 999px;
      background: #e2e8f0;
      overflow: hidden;
    }
    .header-progress-fill {
      height: 100%;
      width: 20%;
      background: var(--accent);
      border-radius: 999px;
      transition: width 0.28s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.25s ease;
    }

    .header-right {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 8px;
      flex-shrink: 0;
    }

    .compare-open-btn,
    .fs-toggle-btn {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      height: 32px;
      padding: 0 11px;
      border-radius: 9px;
      font-size: 11.5px;
      font-weight: 700;
      transition: background 0.16s ease, border-color 0.16s ease, transform 0.14s ease;
    }
    .compare-open-btn {
      border: 1px solid var(--accent-border);
      background: var(--accent-soft);
      color: var(--accent-dark);
    }
    .compare-open-btn:hover {
      background: var(--accent-mid);
    }
    .fs-toggle-btn {
      border: 1px solid var(--border-light);
      background: #ffffff;
      color: var(--text-sub);
    }
    .fs-toggle-btn:hover {
      background: var(--bg-subtle);
      color: var(--text-main);
    }
    .compare-btn-text-short { display: none; }
    .compare-btn-text-full { display: inline; }

    /* =========================================================================
       左右端の控えめな矢印ナビゲーション（ホバー時に浮かび上がる）
       ========================================================================= */
    .side-nav-btn {
      position: fixed;
      top: 50%;
      transform: translateY(-50%);
      z-index: 35;
      width: 34px;
      height: 60px;
      border-radius: 12px;
      border: 1px solid var(--border-light);
      background: rgba(255, 255, 255, 0.78);
      backdrop-filter: blur(6px);
      color: var(--text-sub);
      box-shadow: var(--shadow-sm);
      opacity: 0.34;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: opacity 0.2s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
    }
    .side-nav-btn:hover,
    .side-nav-btn:focus-visible {
      opacity: 1;
      background: var(--accent);
      border-color: var(--accent-dark);
      color: #ffffff;
      box-shadow: var(--shadow-md);
      transform: translateY(-50%) scale(1.06);
    }
    .side-nav-prev { left: 8px; }
    .side-nav-next { right: 8px; }

    .side-nav-tip {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      background: #0f172a;
      color: #ffffff;
      font-size: 11px;
      font-weight: 600;
      padding: 5px 9px;
      border-radius: 8px;
      white-space: nowrap;
      pointer-events: none;
      opacity: 0;
      transition: opacity 0.15s ease, transform 0.15s ease;
      box-shadow: var(--shadow-md);
    }
    .side-nav-prev .side-nav-tip {
      left: calc(100% + 8px);
      transform: translate(-4px, -50%);
    }
    .side-nav-next .side-nav-tip {
      right: calc(100% + 8px);
      transform: translate(4px, -50%);
    }
    .side-nav-btn:hover .side-nav-tip,
    .side-nav-btn:focus-visible .side-nav-tip {
      opacity: 1;
      transform: translate(0, -50%);
    }

    /* =========================================================================
       右下固定フローティングスライドナビゲーション
       ========================================================================= */
    .bottom-slide-nav {
      position: fixed;
      right: 20px;
      bottom: 14px;
      z-index: 50;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 5px 7px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.95);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border: 1px solid var(--border-mid);
      box-shadow: 0 10px 28px -6px rgba(15, 23, 42, 0.18), 0 2px 6px rgba(15, 23, 42, 0.06);
    }

    .slide-nav-btn {
      position: relative;
      display: inline-flex;
      align-items: center;
      gap: 5px;
      height: 32px;
      padding: 0 13px;
      border-radius: 999px;
      border: 1px solid var(--border-light);
      background: #ffffff;
      color: var(--text-main);
      font-size: 12px;
      font-weight: 700;
      transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.12s ease;
    }
    .slide-nav-btn:hover {
      background: var(--accent);
      border-color: var(--accent-dark);
      color: #ffffff;
    }
    .slide-nav-btn:active {
      transform: scale(0.97);
    }
    .slide-nav-btn.is-next {
      background: var(--accent);
      border-color: var(--accent-dark);
      color: #ffffff;
    }
    .slide-nav-btn.is-next:hover {
      background: var(--accent-dark);
    }

    /* 右下ナビのホバーツールチップ（上方向へ表示） */
    .bnav-tip {
      position: absolute;
      bottom: calc(100% + 9px);
      left: 50%;
      transform: translate(-50%, 4px);
      background: #0f172a;
      color: #ffffff;
      font-size: 11px;
      font-weight: 600;
      padding: 5px 10px;
      border-radius: 8px;
      white-space: nowrap;
      pointer-events: none;
      opacity: 0;
      box-shadow: var(--shadow-md);
      transition: opacity 0.15s ease, transform 0.15s ease;
    }
    .slide-nav-btn:hover .bnav-tip,
    .slide-nav-btn:focus-visible .bnav-tip {
      opacity: 1;
      transform: translate(-50%, 0);
    }

    .bnav-center {
      display: inline-flex;
      align-items: center;
      gap: 9px;
      padding: 0 10px;
    }
    .page-count {
      font-size: 12px;
      font-weight: 800;
      color: var(--text-main);
      font-variant-numeric: tabular-nums;
      min-width: 32px;
      text-align: center;
    }
    .page-dots {
      display: flex;
      align-items: center;
      gap: 5px;
    }
    .page-dot {
      width: 8px;
      height: 8px;
      border-radius: 999px;
      border: none;
      padding: 0;
      background: #cbd5e1;
      transition: width 0.22s ease, background-color 0.22s ease;
    }
    .page-dot:hover {
      background: #94a3b8;
    }
    .page-dot.is-active {
      width: 22px;
      background: var(--accent);
    }

    /* =========================================================================
       メインスライド領域（calc(100vh - 48px) / 縦スクロールなし）
       ========================================================================= */
    .main-wrap {
      max-width: 1500px;
      width: 100%;
      height: calc(100vh - 48px);
      margin: 0 auto;
      padding: 12px 48px 14px;
      overflow: hidden;
    }

    /* iframe等でFullscreen APIが制限される場合のワイド表示フォールバック */
    body.is-pseudo-fs .main-wrap {
      max-width: 100%;
      padding: 8px 14px 10px;
    }
    body.is-pseudo-fs .side-nav-btn {
      opacity: 0.18;
    }

    .content-grid {
      height: 100%;
      display: grid;
      grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
      gap: 14px;
      align-items: stretch;
    }

    .card {
      background: var(--bg-card);
      border: 1px solid var(--border-light);
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow-sm);
      overflow: hidden;
    }

    .left-card {
      display: flex;
      flex-direction: column;
      height: 100%;
      min-height: 0;
    }

    /* =========================================================================
       左パネル：2D図面＆メカニズム拡大図（高さフィット）
       ========================================================================= */
    .panel-toolbar {
      padding: 8px 12px;
      border-bottom: 1px solid var(--border-light);
      background: #f8fafc;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      flex-shrink: 0;
    }

    .view-tabs {
      display: inline-flex;
      background: #e2e8f0;
      padding: 3px;
      border-radius: 10px;
      gap: 3px;
    }

    .view-tab-btn {
      border: none;
      background: transparent;
      color: var(--text-sub);
      font-size: 11.5px;
      font-weight: 700;
      padding: 5px 11px;
      border-radius: 8px;
      transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
    }
    .view-tab-btn:hover {
      color: var(--text-main);
    }
    .view-tab-btn.is-active {
      background: #ffffff;
      color: var(--accent-dark);
      box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1);
    }

    .toolbar-hint {
      font-size: 10.5px;
      color: var(--text-sub);
      white-space: nowrap;
    }

    .diagram-body {
      flex: 1;
      min-height: 0;
      padding: 10px 12px;
      background: linear-gradient(180deg, #fafcff 0%, #ffffff 100%);
      display: flex;
      flex-direction: column;
      justify-content: center;
      overflow: hidden;
    }

    .svg-fit-wrap {
      flex: 1;
      min-height: 0;
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .svg-responsive {
      max-width: 100%;
      max-height: 100%;
      width: auto;
      height: auto;
      display: block;
      user-select: none;
    }

    /* SVG 作用層ゾーンのインタラクション */
    .zone-group {
      cursor: pointer;
      transition: opacity 0.24s ease, filter 0.24s ease;
    }
    .zone-muted {
      opacity: 0.56;
      filter: saturate(0.68);
    }
    .zone-group:hover {
      opacity: 0.94;
      filter: saturate(1.02);
    }
    .zone-focused {
      opacity: 1 !important;
      filter: saturate(1.08) brightness(1.02) !important;
    }

    @keyframes pulseBorder {
      0%, 100% { stroke-opacity: 0.96; filter: drop-shadow(0 0 4px rgba(var(--accent-rgb), 0.5)); }
      50% { stroke-opacity: 0.4; filter: drop-shadow(0 0 10px rgba(var(--accent-rgb), 0.8)); }
    }
    .target-pulse {
      animation: pulseBorder 2.2s ease-in-out infinite;
    }
    /* クローズアップ操作バー（コンパクト化） */
    .closeup-controls {
      margin-bottom: 8px;
      padding: 8px 11px;
      border-radius: var(--radius-md);
      background: #f8fafc;
      border: 1px solid var(--border-light);
      display: flex;
      flex-direction: column;
      gap: 7px;
      flex-shrink: 0;
    }

    .closeup-top-row {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 6px;
    }

    .ba-toggle-group {
      display: inline-flex;
      background: #e2e8f0;
      padding: 2px;
      border-radius: 9px;
      gap: 2px;
    }

    .ba-btn {
      border: none;
      background: transparent;
      color: var(--text-sub);
      font-size: 11px;
      font-weight: 700;
      padding: 4px 10px;
      border-radius: 7px;
      transition: background 0.16s ease, color 0.16s ease;
    }
    .ba-btn.is-before-active {
      background: #ffffff;
      color: #be123c;
      box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
    }
    .ba-btn.is-after-active {
      background: var(--accent);
      color: #ffffff;
      box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
    }

    .closeup-state-pill {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 4px 10px;
      border-radius: 999px;
      font-size: 11px;
      font-weight: 700;
    }
    .closeup-state-pill.is-before {
      background: #ffe4e6;
      color: #be123c;
    }
    .closeup-state-pill.is-after {
      background: var(--accent-mid);
      color: var(--accent-dark);
    }

    .slider-row {
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .slider-label {
      font-size: 11px;
      font-weight: 700;
      flex-shrink: 0;
    }
    .slider-label.before { color: #e11d48; }
    .slider-label.after { color: var(--accent-dark); }

    input[type="range"].mech-slider {
      -webkit-appearance: none;
      appearance: none;
      flex: 1;
      height: 8px;
      border-radius: 999px;
      background: linear-gradient(90deg, #fda4af 0%, #fde68a 48%, var(--accent) 100%);
      outline: none;
    }
    input[type="range"].mech-slider::-webkit-slider-thumb {
      -webkit-appearance: none;
      appearance: none;
      width: 22px;
      height: 22px;
      border-radius: 999px;
      background: #ffffff;
      border: 3px solid var(--accent);
      box-shadow: 0 2px 6px rgba(15, 23, 42, 0.22);
      cursor: pointer;
    }
    input[type="range"].mech-slider::-moz-range-thumb {
      width: 22px;
      height: 22px;
      border-radius: 999px;
      background: #ffffff;
      border: 3px solid var(--accent);
      box-shadow: 0 2px 6px rgba(15, 23, 42, 0.22);
      cursor: pointer;
    }

    .closeup-svg-frame {
      flex: 1;
      min-height: 0;
      border-radius: var(--radius-md);
      border: 1px solid var(--border-light);
      overflow: hidden;
      background: #ffffff;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .closeup-caption {
      margin-top: 8px;
      padding: 8px 11px;
      border-radius: 10px;
      font-size: 11.5px;
      line-height: 1.48;
      border: 1px solid var(--border-light);
      flex-shrink: 0;
    }
    .closeup-caption.is-before {
      background: #fff1f2;
      border-color: #fecdd3;
      color: #881337;
    }
    .closeup-caption.is-after {
      background: var(--accent-soft);
      border-color: var(--accent-border);
      color: var(--text-main);
    }

    /* 図下の作用層ステータスバー（コンパクト） */
    .layer-status-bar {
      padding: 9px 13px;
      border-top: 1px solid var(--accent-border);
      background: var(--accent-soft);
      display: flex;
      align-items: flex-start;
      gap: 10px;
      flex-shrink: 0;
      transition: background 0.2s ease, border-color 0.2s ease;
    }
    .layer-status-bar.is-outside {
      background: #f1f5f9;
      border-top-color: var(--border-light);
    }
    .status-icon {
      width: 24px;
      height: 24px;
      border-radius: 7px;
      background: var(--accent);
      color: #ffffff;
      font-size: 12px;
      font-weight: 800;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      margin-top: 1px;
    }
    .layer-status-bar.is-outside .status-icon {
      background: #94a3b8;
    }
    .status-head {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 6px;
    }
    .status-layer-name {
      font-size: 12px;
      font-weight: 700;
      color: var(--text-main);
    }
    .status-pill {
      font-size: 9.5px;
      font-weight: 700;
      padding: 1.5px 7px;
      border-radius: 999px;
      background: var(--accent);
      color: #ffffff;
    }
    .layer-status-bar.is-outside .status-pill {
      background: #64748b;
    }
    .status-desc {
      margin: 2px 0 0;
      font-size: 11.5px;
      color: var(--text-sub);
      line-height: 1.42;
    }

    /* =========================================================================
       右パネル：製品概要＆7軸効果ラベル（MacBook Air 1画面フィット＋右下ナビ余白）
       ========================================================================= */
    .right-col {
      display: flex;
      flex-direction: column;
      height: 100%;
      min-height: 0;
      gap: 10px;
      padding-bottom: 52px; /* 右下固定スライドナビとの重なりを完全防止 */
    }

    .product-hero-card {
      flex-shrink: 0;
    }

    .product-hero {
      padding: 11px 16px;
      background: linear-gradient(125deg, var(--accent-dark) 0%, var(--accent) 100%);
      color: #ffffff;
    }
    .hero-meta-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      margin-bottom: 2px;
    }
    .hero-brand {
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      opacity: 0.88;
    }
    .hero-role-badge {
      font-size: 10.5px;
      font-weight: 700;
      padding: 2px 9px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.22);
      border: 1px solid rgba(255, 255, 255, 0.34);
      color: #ffffff;
    }
    .hero-title {
      margin: 0;
      font-size: 19px;
      font-weight: 800;
      letter-spacing: -0.01em;
      line-height: 1.22;
    }
    .hero-sub {
      margin: 2px 0 0;
      font-size: 11.5px;
      opacity: 0.94;
    }

    .product-summary-body {
      padding: 9px 16px;
      font-size: 12px;
      color: var(--text-main);
      line-height: 1.52;
      background: #ffffff;
    }

    /* 7軸ラベルカード（全7軸をスクロール不要で一望） */
    .axes-card {
      flex: 1;
      min-height: 0;
      padding: 12px 16px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      overflow-y: auto; /* 極端に狭い画面のみのフェイルセーフ */
    }
    .axes-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      padding-bottom: 7px;
      border-bottom: 1px solid var(--border-light);
      margin-bottom: 6px;
      flex-shrink: 0;
    }
    .axes-header h3 {
      margin: 0;
      font-size: 12.5px;
      font-weight: 800;
      color: var(--text-main);
    }
    .axes-legend {
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 10px;
      font-weight: 700;
      flex-shrink: 0;
    }
    .legend-dot {
      display: inline-block;
      width: 8px;
      height: 8px;
      border-radius: 999px;
      margin-right: 4px;
      vertical-align: middle;
    }

    .axes-body {
      display: flex;
      flex-direction: column;
      gap: 6px;
      flex: 1;
      justify-content: space-evenly;
    }

    .axes-row-2col {
      display: grid;
      grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.35fr);
      gap: 12px;
      padding: 5px 0;
      border-bottom: 1px solid #f1f5f9;
    }

    .axis-block {
      padding: 5px 0;
      border-bottom: 1px solid #f1f5f9;
    }
    .axes-row-2col .axis-block,
    .axes-body > .axis-block:last-child {
      border-bottom: none;
      padding-bottom: 0;
    }

    .axis-title-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      margin-bottom: 5px;
    }
    .axis-title {
      margin: 0;
      display: inline-flex;
      align-items: center;
      gap: 5px;
      font-size: 11.5px;
      font-weight: 800;
      color: var(--text-main);
    }
    .axis-num {
      width: 17px;
      height: 17px;
      border-radius: 5px;
      background: #e2e8f0;
      color: #475569;
      font-size: 10px;
      font-weight: 800;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }
    .axis-num.linked {
      background: var(--accent-mid);
      color: var(--accent-dark);
    }
    .axis-sub-label {
      font-size: 10px;
      font-weight: 500;
      color: var(--text-muted);
    }
    .axis-badge-right {
      font-size: 10px;
      font-weight: 700;
      color: var(--accent-dark);
      white-space: nowrap;
    }

    .chips-wrap {
      display: flex;
      flex-wrap: wrap;
      gap: 4.5px;
    }

    .axis-chip {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 3.5px 8.5px;
      border-radius: 7px;
      border: 1px solid var(--border-light);
      background: #f8fafc;
      color: #94a3b8;
      font-size: 11px;
      font-weight: 600;
      line-height: 1.3;
      transition: transform 0.14s ease, background 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
    }
    .axis-chip:hover {
      transform: translateY(-1px);
      color: var(--text-sub);
      border-color: var(--border-mid);
    }
    .axis-chip.is-primary {
      background: var(--accent);
      border-color: var(--accent-dark);
      color: #ffffff;
      font-weight: 800;
      box-shadow: 0 2px 6px rgba(var(--accent-rgb), 0.28);
    }
    .axis-chip.is-secondary {
      background: var(--accent-soft);
      border-color: var(--accent);
      color: var(--accent-dark);
      font-weight: 700;
    }
    .axis-chip.is-active {
      background: var(--accent);
      border-color: var(--accent-dark);
      color: #ffffff;
      font-weight: 700;
    }
    .axis-chip.is-extra {
      background: var(--accent-mid);
      border-color: var(--accent-border);
      color: var(--accent-dark);
      font-weight: 700;
    }
    .axis-chip.is-safe {
      background: #ecfdf5;
      border-color: #34d399;
      color: #065f46;
      font-weight: 700;
    }
    .axis-chip.is-warn {
      background: #fffbeb;
      border-color: #f59e0b;
      color: #92400e;
      font-weight: 700;
    }
    .axis-chip.is-danger {
      background: #fff1f2;
      border-color: #f43f5e;
      color: #9f1239;
      font-weight: 700;
    }
    .axis-chip.is-linked-focus {
      box-shadow: 0 0 0 2.5px rgba(var(--accent-rgb), 0.36);
    }

    .chip-star-tag {
      font-size: 9.5px;
      font-weight: 800;
      padding: 0.5px 4px;
      border-radius: 4px;
      background: #fde047;
      color: #713f12;
      line-height: 1.25;
    }
    .chip-sub-tag {
      font-size: 9.5px;
      font-weight: 800;
      padding: 0.5px 4px;
      border-radius: 4px;
      background: var(--accent-mid);
      color: var(--accent-dark);
      line-height: 1.25;
    }

    .evidence-note {
      margin-top: 5px;
      display: flex;
      align-items: flex-start;
      gap: 4px;
      font-size: 10px;
      color: var(--text-sub);
      line-height: 1.35;
    }

    .chip-info-box {
      margin-top: 8px;
      padding: 7px 11px;
      height: 44px;
      border-radius: 10px;
      background: #f8fafc;
      border: 1px solid var(--border-light);
      display: flex;
      align-items: center;
      overflow: hidden;
      flex-shrink: 0;
    }
    .chip-info-inner {
      font-size: 11px;
      color: var(--text-sub);
      line-height: 1.38;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    .chip-info-inner strong {
      color: var(--accent-dark);
    }

    /* 序章スライド：肌の各層の役割詳細＆対応コスメ連動カード */
    .intro-layers-card {
      flex: 1;
      min-height: 0;
      padding: 12px 16px;
      display: flex;
      flex-direction: column;
      gap: 10px;
      overflow-y: auto;
    }

    /* 7層切替ピル */
    .intro-layer-tabs {
      display: flex;
      flex-wrap: wrap;
      gap: 5px;
      flex-shrink: 0;
    }
    .intro-tab-btn {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      padding: 4.5px 9.5px;
      border-radius: 8px;
      border: 1.5px solid var(--border-light);
      background: #f8fafc;
      color: var(--text-sub);
      font-size: 11px;
      font-weight: 700;
      transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.12s ease;
    }
    .intro-tab-btn:hover {
      border-color: var(--accent-border);
      background: #ffffff;
      color: var(--text-main);
    }
    .intro-tab-btn.is-active {
      background: var(--accent);
      border-color: var(--accent-dark);
      color: #ffffff;
      box-shadow: 0 2px 8px rgba(var(--accent-rgb), 0.25);
    }
    .intro-layer-swatch {
      width: 8px;
      height: 8px;
      border-radius: 999px;
      flex-shrink: 0;
      border: 1px solid rgba(15, 23, 42, 0.2);
    }
    .intro-tab-btn.is-active .intro-layer-swatch {
      border-color: rgba(255, 255, 255, 0.9);
    }

    /* 選択中の層：詳細解説ボックス（完全に切り替わる領域） */
    .intro-detail-box {
      flex: 1;
      min-height: 0;
      padding: 13px 15px;
      border-radius: 12px;
      background: var(--accent-soft);
      border: 1.5px solid var(--accent-border);
      display: flex;
      flex-direction: column;
      gap: 8px;
      overflow-y: auto;
    }
    .intro-detail-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      padding-bottom: 6px;
      border-bottom: 1px solid rgba(var(--accent-rgb), 0.16);
    }
    .intro-detail-title-wrap {
      display: flex;
      align-items: center;
      gap: 8px;
      min-width: 0;
    }
    .intro-detail-swatch {
      width: 12px;
      height: 12px;
      border-radius: 999px;
      flex-shrink: 0;
      border: 2px solid #ffffff;
      box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.15);
    }
    .intro-detail-title {
      margin: 0;
      font-size: 15px;
      font-weight: 800;
      color: var(--accent-dark);
    }
    .intro-detail-cat {
      font-size: 10px;
      font-weight: 800;
      padding: 2px 9px;
      border-radius: 999px;
      background: var(--accent);
      color: #ffffff;
      flex-shrink: 0;
    }
    .intro-detail-lead {
      margin: 0;
      font-size: 12.5px;
      font-weight: 600;
      color: var(--text-main);
      line-height: 1.55;
    }
    .intro-detail-list {
      margin: 0;
      padding: 0;
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 5px;
    }
    .intro-detail-list li {
      position: relative;
      padding-left: 16px;
      font-size: 11.8px;
      color: var(--text-sub);
      line-height: 1.48;
    }
    .intro-detail-list li::before {
      content: "▸";
      position: absolute;
      left: 0;
      top: 0;
      color: var(--accent);
      font-weight: 800;
    }
    .intro-detail-note {
      margin-top: auto;
      padding: 7px 10px;
      border-radius: 8px;
      background: rgba(255, 255, 255, 0.82);
      border: 1px solid rgba(var(--accent-rgb), 0.22);
      font-size: 11px;
      color: var(--text-sub);
      line-height: 1.42;
    }
    .intro-detail-note strong {
      color: var(--accent-dark);
    }

    /* 紹介対象コスメ一覧エリア（選択中の層に応じて自動アクティブ化） */
    .intro-products-section {
      flex-shrink: 0;
      padding-top: 9px;
      border-top: 1px solid var(--border-light);
      display: flex;
      flex-direction: column;
      gap: 6px;
    }
    .intro-products-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
    }
    .intro-products-title {
      margin: 0;
      font-size: 11.5px;
      font-weight: 800;
      color: var(--text-main);
    }
    .intro-products-count {
      font-size: 10.5px;
      font-weight: 700;
      color: var(--accent-dark);
    }
    .intro-products-grid {
      display: grid;
      grid-template-columns: repeat(5, minmax(0, 1fr));
      gap: 6px;
    }
    .intro-prod-chip {
      text-align: left;
      padding: 7px 8px;
      border-radius: 10px;
      border: 1.5px solid var(--border-light);
      background: #f8fafc;
      color: #94a3b8;
      display: flex;
      flex-direction: column;
      gap: 3px;
      opacity: 0.62;
      transition: transform 0.16s ease, opacity 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    }
    .intro-prod-chip:hover {
      opacity: 0.96;
      transform: translateY(-2px);
      border-color: var(--prod-accent);
    }
    .intro-prod-chip.is-active {
      opacity: 1;
      background: var(--prod-soft);
      border-color: var(--prod-accent);
      color: var(--text-main);
      box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08), 0 0 0 1.5px var(--prod-accent);
    }
    .intro-prod-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 4px;
    }
    .intro-prod-num {
      width: 17px;
      height: 17px;
      border-radius: 5px;
      background: #cbd5e1;
      color: #ffffff;
      font-size: 9.5px;
      font-weight: 800;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }
    .intro-prod-chip.is-active .intro-prod-num {
      background: var(--prod-accent);
    }
    .intro-prod-badge {
      font-size: 8.5px;
      font-weight: 800;
      padding: 1px 5px;
      border-radius: 999px;
      background: #e2e8f0;
      color: #64748b;
      white-space: nowrap;
    }
    .intro-prod-chip.is-active .intro-prod-badge {
      background: var(--prod-accent);
      color: #ffffff;
    }
    .intro-prod-name {
      font-size: 10.5px;
      font-weight: 800;
      line-height: 1.25;
      color: inherit;
      overflow: hidden;
      text-overflow: ellipsis;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
    }
    .intro-prod-chip.is-active .intro-prod-name {
      color: var(--prod-dark);
    }
    .intro-prod-role {
      font-size: 9.5px;
      font-weight: 600;
      color: #94a3b8;
    }
    .intro-prod-chip.is-active .intro-prod-role {
      color: var(--text-sub);
    }

    @media (max-width: 1200px) {
      .intro-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }
    }
    @media (max-width: 640px) {
      .intro-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }

    /* =========================================================================
       ドロワーメニュー（バーガーメニュー）
       ========================================================================= */
    .drawer-backdrop {
      position: fixed;
      inset: 0;
      z-index: 60;
      background: rgba(15, 23, 42, 0.48);
      backdrop-filter: blur(2px);
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.24s ease;
    }
    .drawer-backdrop.is-open {
      opacity: 1;
      pointer-events: auto;
    }

    .drawer-panel {
      position: fixed;
      top: 0;
      left: 0;
      bottom: 0;
      z-index: 65;
      width: min(370px, 88vw);
      background: #ffffff;
      box-shadow: var(--shadow-lg);
      transform: translateX(-100%);
      transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
      display: flex;
      flex-direction: column;
    }
    .drawer-panel.is-open {
      transform: translateX(0);
    }

    .drawer-head {
      padding: 18px 20px;
      border-bottom: 1px solid var(--border-light);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
    }
    .drawer-head h2 {
      margin: 0;
      font-size: 15px;
      font-weight: 800;
      color: var(--text-main);
    }
    .icon-close-btn {
      width: 34px;
      height: 34px;
      border-radius: 9px;
      border: 1px solid var(--border-light);
      background: #ffffff;
      color: var(--text-sub);
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }
    .icon-close-btn:hover {
      background: #f1f5f9;
      color: var(--text-main);
    }

    .drawer-list {
      flex: 1;
      overflow-y: auto;
      padding: 14px;
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .drawer-item {
      width: 100%;
      text-align: left;
      padding: 12px 13px;
      border-radius: 12px;
      border: 1.5px solid var(--border-light);
      background: #ffffff;
      display: flex;
      flex-direction: column;
      gap: 5px;
      transition: border-color 0.16s ease, background 0.16s ease, transform 0.14s ease;
    }
    .drawer-item:hover {
      border-color: var(--border-mid);
      background: #f8fafc;
      transform: translateX(2px);
    }
    .drawer-item.is-current {
      border-color: var(--item-accent);
      background: var(--item-soft);
    }
    .drawer-item-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
    }
    .drawer-item-name {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 13.5px;
      font-weight: 700;
      color: var(--text-main);
    }
    .drawer-num {
      width: 22px;
      height: 22px;
      border-radius: 7px;
      background: var(--item-accent);
      color: #ffffff;
      font-size: 11px;
      font-weight: 800;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }
    .drawer-role-pill {
      font-size: 10px;
      font-weight: 700;
      padding: 2px 8px;
      border-radius: 999px;
      background: #f1f5f9;
      color: var(--text-sub);
      border: 1px solid var(--border-light);
    }
    .drawer-item.is-current .drawer-role-pill {
      background: var(--item-accent);
      color: #ffffff;
      border-color: transparent;
    }
    .drawer-item-meta {
      font-size: 11.5px;
      color: var(--text-sub);
      padding-left: 30px;
    }

    .drawer-foot {
      padding: 14px;
      border-top: 1px solid var(--border-light);
      background: #f8fafc;
    }
    .drawer-compare-btn {
      width: 100%;
      padding: 11px 14px;
      border-radius: 12px;
      border: none;
      background: #0f172a;
      color: #ffffff;
      font-size: 13px;
      font-weight: 700;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      transition: background 0.16s ease;
    }
    .drawer-compare-btn:hover {
      background: #1e293b;
    }

    /* =========================================================================
       比較一覧モーダル・ツールチップ・ユーティリティ
       ========================================================================= */
    .hidden {
      display: none !important;
    }

    .modal-backdrop {
      position: fixed;
      inset: 0;
      z-index: 70;
      background: rgba(15, 23, 42, 0.56);
      backdrop-filter: blur(3px);
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 18px;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.22s ease;
    }
    .modal-backdrop.is-open {
      opacity: 1;
      pointer-events: auto;
    }
    .modal-dialog {
      width: min(1120px, 96vw);
      max-height: 88vh;
      background: #ffffff;
      border-radius: 18px;
      border: 1px solid var(--border-light);
      box-shadow: var(--shadow-lg);
      display: flex;
      flex-direction: column;
      overflow: hidden;
    }
    .modal-head {
      padding: 14px 20px;
      border-bottom: 1px solid var(--border-light);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      background: #f8fafc;
    }
    .modal-head h2 {
      margin: 0;
      font-size: 16px;
      font-weight: 800;
      color: var(--text-main);
    }
    .modal-head p {
      margin: 2px 0 0;
      font-size: 11.5px;
      color: var(--text-sub);
    }
    .modal-body {
      padding: 14px 18px 18px;
      overflow: auto;
    }

    .compare-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 12px;
    }
    .compare-table th {
      text-align: left;
      padding: 10px 10px;
      background: #f1f5f9;
      color: var(--text-sub);
      font-weight: 700;
      border-bottom: 1px solid var(--border-mid);
      white-space: nowrap;
    }
    .compare-table td {
      padding: 11px 10px;
      border-bottom: 1px solid var(--border-light);
      color: var(--text-main);
      vertical-align: top;
      line-height: 1.45;
    }
    .compare-table tbody tr {
      cursor: pointer;
      transition: background 0.15s ease;
    }
    .compare-table tbody tr:hover {
      background: #f8fafc;
    }
    .compare-table tbody tr.is-current-row {
      background: var(--accent-soft);
    }
    .tbl-prod-name {
      display: flex;
      align-items: center;
      gap: 8px;
      font-weight: 800;
      white-space: nowrap;
    }
    .tbl-color-bar {
      width: 4px;
      height: 22px;
      border-radius: 999px;
      flex-shrink: 0;
    }
    .tbl-pill {
      display: inline-block;
      padding: 2px 8px;
      border-radius: 999px;
      font-size: 11px;
      font-weight: 700;
      white-space: nowrap;
    }

    #smart-tooltip {
      position: fixed;
      z-index: 80;
      max-width: 280px;
      padding: 8px 11px;
      border-radius: 10px;
      background: rgba(15, 23, 42, 0.95);
      color: #ffffff;
      font-size: 11.5px;
      line-height: 1.45;
      box-shadow: var(--shadow-md);
      pointer-events: none;
      opacity: 0;
      transform: translateY(4px);
      transition: opacity 0.15s ease, transform 0.15s ease;
    }

    /* =========================================================================
       レスポンシブ調整（タブレット・モバイルのみ縦スクロール許可）
       ========================================================================= */
    @media (max-width: 1080px) {
      html, body {
        height: auto;
        overflow-y: auto;
        overflow-x: hidden;
      }
      .main-wrap {
        height: auto;
        padding: 14px 48px 76px;
        overflow: visible;
      }
      .content-grid {
        height: auto;
        grid-template-columns: 1fr;
      }
      .left-card, .right-col, .axes-card {
        height: auto;
        padding-bottom: 0;
      }
      .header-center {
        display: none;
      }
      .header-inner {
        grid-template-columns: 1fr auto;
      }
      .axes-row-2col {
        grid-template-columns: 1fr;
        gap: 8px;
      }
    }

    @media (max-width: 640px) {
      .main-wrap {
        padding: 12px 12px 76px;
      }
      .side-nav-btn {
        display: none;
      }
      .bottom-slide-nav {
        left: 12px;
        right: 12px;
        bottom: 10px;
        justify-content: space-between;
      }
      .bnav-tip { display: none; }
      .compare-btn-text-short { display: inline; }
      .compare-btn-text-full { display: none; }
      .fs-toggle-btn { display: none; }
      .slide-tag, .toolbar-hint { display: none; }
    }

    /* =========================================================================
       画面中央下部：リアクション動画再生ボタンバー＆オーバーレイ
       ========================================================================= */
    .center-reaction-bar {
      position: fixed;
      left: 14px;
      bottom: 14px;
      z-index: 50;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 5px 8px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.95);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border: 1px solid var(--border-mid);
      box-shadow: 0 10px 28px -6px rgba(15, 23, 42, 0.18), 0 2px 6px rgba(15, 23, 42, 0.06);
    }

    .reaction-btn {
      position: relative;
      display: inline-flex;
      align-items: center;
      gap: 5px;
      height: 32px;
      padding: 0 13px;
      border-radius: 999px;
      border: 1.5px solid transparent;
      font-size: 12px;
      font-weight: 800;
      transition: transform 0.14s ease, box-shadow 0.16s ease, filter 0.16s ease;
      white-space: nowrap;
    }
    .reaction-btn:hover {
      transform: translateY(-1px);
      box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
    }
    .reaction-btn:active {
      transform: scale(0.96);
    }
    .reaction-btn.is-kami {
      background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
      color: #ffffff;
      border-color: #166534;
    }
    .reaction-btn.is-kigakiku {
      background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
      color: #ffffff;
      border-color: #1e40af;
    }
    .reaction-btn.is-kigakikisugi {
      background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
      color: #ffffff;
      border-color: #9a3412;
    }
    .reaction-btn.is-doku {
      background: linear-gradient(135deg, #9333ea 0%, #7e22ce 100%);
      color: #ffffff;
      border-color: #6b21a8;
    }
    .reaction-btn.is-seito {
      background: linear-gradient(135deg, #db2777 0%, #be185d 100%);
      color: #ffffff;
      border-color: #9d174d;
    }
    .reaction-status-dot {
      width: 7px;
      height: 7px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.42);
      border: 1px solid rgba(255, 255, 255, 0.75);
      flex-shrink: 0;
    }
    .reaction-btn.has-video .reaction-status-dot {
      background: #fde047;
      box-shadow: 0 0 6px #fde047;
    }

    .reaction-setup-btn {
      width: 30px;
      height: 30px;
      border-radius: 999px;
      border: 1px solid var(--border-light);
      background: #f8fafc;
      color: var(--text-sub);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      transition: background 0.15s ease, color 0.15s ease;
    }
    .reaction-setup-btn:hover {
      background: var(--bg-subtle);
      color: var(--text-main);
    }

    /* 画面中央・動画再生オーバーレイ */
    .reaction-overlay {
      position: fixed;
      inset: 0;
      z-index: 90;
      display: flex;
      align-items: center;
      justify-content: center;
      pointer-events: none;
      opacity: 0;
      transition: opacity 0.18s ease;
    }
    .reaction-overlay.is-playing {
      opacity: 1;
      pointer-events: auto;
    }
    .reaction-overlay.is-dimmed {
      background: rgba(15, 23, 42, 0.42);
      backdrop-filter: blur(2px);
    }
    .reaction-stage {
      position: relative;
      max-width: 82vw;
      max-height: 78vh;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .reaction-video-el {
      max-width: 76vw;
      max-height: 74vh;
      border-radius: 16px;
      box-shadow: 0 24px 56px rgba(15, 23, 42, 0.45);
      background: #000000;
      display: block;
    }
    /* BB透過モード時は元videoを画面外極小サイズでデコード維持 */
    .reaction-video-el.is-chroma-source {
      position: fixed;
      left: -9999px;
      top: -9999px;
      width: 1px;
      height: 1px;
      opacity: 0.01;
      pointer-events: none;
      box-shadow: none;
      border-radius: 0;
    }
    .reaction-canvas-el {
      max-width: 82vw;
      max-height: 78vh;
      display: block;
      filter: drop-shadow(0 12px 24px rgba(15, 23, 42, 0.28));
    }
    .reaction-stop-hint {
      position: fixed;
      top: 18px;
      right: 22px;
      padding: 6px 12px;
      border-radius: 999px;
      background: rgba(15, 23, 42, 0.78);
      color: #ffffff;
      font-size: 11px;
      font-weight: 700;
      border: 1px solid rgba(255, 255, 255, 0.2);
      cursor: pointer;
    }

    /* 動画ファイル設定モーダル */
    .video-setup-list {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    .video-setup-row {
      padding: 12px 14px;
      border-radius: 12px;
      border: 1px solid var(--border-light);
      background: #f8fafc;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      flex-wrap: wrap;
    }
    .video-setup-info {
      display: flex;
      flex-direction: column;
      gap: 2px;
      min-width: 0;
    }
    .video-setup-name {
      font-size: 13px;
      font-weight: 800;
      color: var(--text-main);
    }
    .video-setup-status {
      font-size: 11px;
      color: var(--text-sub);
    }
    .video-setup-actions {
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .video-pick-btn {
      padding: 6px 12px;
      border-radius: 8px;
      border: 1px solid var(--accent-border);
      background: var(--accent-soft);
      color: var(--accent-dark);
      font-size: 11.5px;
      font-weight: 700;
    }
    .video-pick-btn:hover {
      background: var(--accent-mid);
    }
    .video-clear-btn {
      padding: 6px 10px;
      border-radius: 8px;
      border: 1px solid var(--border-light);
      background: #ffffff;
      color: var(--text-sub);
      font-size: 11px;
      font-weight: 600;
    }
    .chroma-slider-box {
      margin-top: 12px;
      padding: 10px 14px;
      border-radius: 12px;
      background: #eff6ff;
      border: 1px solid #bfdbfe;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      font-size: 11.5px;
      color: #1e3a8a;
    }
    .chroma-slider-box input[type="range"] {
      width: 140px;
    }

    @media (max-width: 820px) {
      .center-reaction-bar {
        bottom: 58px;
      }
    }
  

    /* ==================== タイトルページ / 間ページ ==================== */
    body.is-title .site-header, body.is-title .main-wrap, body.is-title .center-reaction-bar,
    body.is-inter .site-header, body.is-inter .main-wrap, body.is-inter .center-reaction-bar {
      display: none !important;
    }
    .slide-title, .slide-inter {
      min-height: calc(100vh - 110px);
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 48px 24px;
    }
    .slide-title[hidden], .slide-inter[hidden] { display: none; }
    .title-inner { text-align: center; max-width: 860px; }
    .title-kicker {
      font-size: 0.95rem; letter-spacing: 0.35em; font-weight: 700;
      color: var(--accent-dark, #0f766e); margin-bottom: 18px;
    }
    .title-main {
      font-size: clamp(2.6rem, 6.5vw, 4.6rem); line-height: 1.3; font-weight: 800; color: #0f172a;
    }
    .title-main span { color: var(--accent-dark, #0f766e); }
    .title-sub { margin-top: 26px; font-size: 1.05rem; line-height: 1.9; color: #475569; }
    .title-hint { margin-top: 40px; font-size: 0.85rem; color: #94a3b8; letter-spacing: 0.08em; }
    .inter-inner {
      display: flex; gap: 44px; align-items: center; max-width: 980px; width: 100%;
    }
    .inter-photo-wrap { flex: 0 0 auto; }
    .inter-photo {
      width: min(340px, 38vw); height: min(340px, 38vw); object-fit: cover;
      border-radius: 20px; box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
      border: 1px solid rgba(15, 23, 42, 0.08); background: #fff;
    }
    .inter-body { flex: 1 1 auto; min-width: 0; }
    .inter-kicker {
      display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.2em;
      color: var(--accent-dark, #0f766e); background: var(--accent-soft, #f0fdfa);
      border: 1px solid var(--accent-border, #99f6e4); border-radius: 999px; padding: 4px 14px;
    }
    .inter-name { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; color: #0f172a; margin-top: 16px; line-height: 1.3; }
    .inter-ingredient { margin-top: 8px; font-size: 1rem; font-weight: 600; color: var(--accent-dark, #0f766e); }
    .inter-text { margin-top: 18px; font-size: 1.02rem; line-height: 1.95; color: #334155; }
    .inter-next { margin-top: 26px; font-size: 0.85rem; color: #94a3b8; }
    @media (max-width: 760px) {
      .inter-inner { flex-direction: column; gap: 24px; text-align: center; }
      .inter-photo { width: min(260px, 62vw); height: min(260px, 62vw); }
    }

    /* ==================== 星徒モード（右下・ドラッグ移動） ==================== */
    .reaction-overlay.is-seito-mode {
      align-items: flex-end;
      justify-content: flex-end;
      padding: 0 30px 86px 0;
    }
    .reaction-overlay.is-seito-mode .reaction-stage { max-width: 44vw; max-height: 52vh; }
    .reaction-overlay.is-seito-mode .reaction-canvas-el {
      max-width: 44vw; max-height: 52vh; cursor: grab; touch-action: none;
    }
    .reaction-overlay.is-seito-mode .reaction-canvas-el:active { cursor: grabbing; }

    /* 星徒モード中は全面オーバーレイでクリックを奪わない（ニカ本体だけドラッグ用に受ける） */
    .reaction-overlay.is-seito-mode { pointer-events: none; }
    .reaction-overlay.is-seito-mode .reaction-canvas-el,
    .reaction-overlay.is-seito-mode .reaction-video-el { pointer-events: auto; }
    .reaction-overlay.is-seito-mode .reaction-stop-hint { pointer-events: none; }

    /* ==================== ラインナップ / スタック紹介ページ（表紙スタイルに統一） ==================== */
    body.is-lineup .site-header, body.is-lineup .main-wrap, body.is-lineup .center-reaction-bar,
    body.is-stacks .site-header, body.is-stacks .main-wrap, body.is-stacks .center-reaction-bar {
      display: none !important;
    }
    .slide-lineup, .slide-stacks {
      min-height: calc(100vh - 110px);
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 44px 24px 56px;
    }
    .slide-lineup[hidden], .slide-stacks[hidden] { display: none; }
    .lineup-inner, .stacks-inner { max-width: 1080px; width: 100%; }
    /* 表紙と同じ見出し作法：中央寄せ・字間広めのキッカー・太見出し＋アクセント色・グラデーションの飾り線 */
    .lineup-kicker, .stacks-kicker {
      text-align: center;
      font-size: 0.95rem; letter-spacing: 0.35em; font-weight: 700; color: var(--accent-dark);
    }
    .lineup-title, .stacks-title {
      text-align: center;
      font-size: clamp(2rem, 4.6vw, 3.3rem); font-weight: 800; color: #0f172a;
      line-height: 1.3; margin-top: 14px;
    }
    .lineup-title span, .stacks-title span { color: var(--accent-dark); }
    .lineup-title::after, .stacks-title::after {
      content: ''; display: block; width: 76px; height: 4px; border-radius: 2px;
      margin: 20px auto 0;
      background: linear-gradient(90deg, var(--accent-dark), var(--accent));
    }
    .lineup-grid {
      display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
      gap: 18px; margin-top: 34px;
    }
    .lineup-card {
      text-align: left; background: var(--bg-card); border: 1px solid var(--border-light);
      border-radius: var(--radius-lg); overflow: hidden; cursor: pointer; padding: 0;
      box-shadow: var(--shadow-sm);
      transition: transform 0.15s ease, box-shadow 0.15s ease;
    }
    .lineup-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
    .lineup-card img { width: 100%; height: 150px; object-fit: cover; display: block; background: var(--bg-subtle); }
    .lineup-card-body { padding: 14px 16px 16px; }
    .lineup-card-role {
      display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em;
      border-radius: 999px; padding: 2px 10px; margin-bottom: 7px;
    }
    .lineup-card-name { font-size: 1.02rem; font-weight: 800; color: var(--text-main); line-height: 1.4; }
    .lineup-card-ing { font-size: 0.78rem; font-weight: 600; margin-top: 3px; }
    .lineup-card-text { font-size: 0.8rem; line-height: 1.65; color: var(--text-sub); margin-top: 7px; }
    .lineup-note { margin-top: 22px; font-size: 0.82rem; color: var(--text-muted); text-align: center; }
    .stacks-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 34px; }
    @media (max-width: 820px) { .stacks-cols { grid-template-columns: 1fr; } }
    .stacks-col-title {
      font-size: 0.95rem; font-weight: 700; letter-spacing: 0.3em; margin-bottom: 14px;
    }
    .stacks-col-title.is-morning { color: var(--accent-dark); }
    .stacks-col-title.is-night { color: #1e40af; }
    .stack-card {
      background: var(--bg-card); border: 1px solid var(--border-light);
      border-radius: var(--radius-lg); overflow: hidden;
      margin-bottom: 14px; box-shadow: var(--shadow-sm);
    }
    /* ヒーローと同じグラデーション帯＋白文字 */
    .stack-card-head {
      padding: 10px 16px; color: #ffffff; font-size: 0.9rem; font-weight: 800; letter-spacing: 0.04em;
      background: linear-gradient(125deg, var(--accent-dark) 0%, var(--accent) 100%);
    }
    .is-night-col .stack-card-head {
      background: linear-gradient(125deg, #1e3a8a 0%, #2563eb 100%);
    }
    .stack-flow { display: flex; align-items: stretch; gap: 8px; flex-wrap: wrap; padding: 14px 16px 16px; }
    .stack-card > .stack-note { padding: 0 16px 14px; margin-top: -4px; }
    .stack-step {
      display: flex; flex-direction: column; justify-content: center;
      background: var(--accent-soft); border: 1px solid var(--accent-border);
      border-radius: var(--radius-md); padding: 8px 12px; line-height: 1.45;
    }
    .is-night-col .stack-step { background: #eff6ff; border-color: #bfdbfe; }
    .stack-step b { font-size: 0.88rem; color: var(--text-main); }
    .stack-step small { font-size: 0.72rem; color: var(--text-sub); }
    .stack-arrow { align-self: center; color: var(--text-muted); font-weight: 700; }
    .stack-note { font-size: 0.82rem; line-height: 1.8; color: var(--text-sub); }

    /* ==================== レイアウト変更：右ラベル廃止・全体図を中央寄せ ==================== */
    .content-grid {
      grid-template-columns: minmax(0, 1fr);
      justify-items: center;
    }
    .right-col {
      display: none !important;
    }
    .left-card {
      width: 100%;
      max-width: 1160px;
    }
    .diagram-body {
      position: relative;
    }

    /* ==================== 全体図まわりの吹き出しツールチップ ==================== */
    .overview-callouts {
      position: absolute;
      inset: 0;
      pointer-events: none;
      z-index: 5;
    }
    .overview-callout {
      position: absolute;
      width: 248px;
      transform: translateY(-50%);
      background: #ffffff;
      border: 2px solid var(--accent);
      border-radius: 6px;
      padding: 10px 13px 11px;
      box-shadow: 0 10px 24px -10px rgba(15, 23, 42, 0.28);
      pointer-events: auto;
    }
    .overview-callout.is-left { left: 12px; }
    .overview-callout.is-right { right: 12px; }
    #callout-lines {
      position: absolute;
      inset: 0;
      pointer-events: none;
    }
    .overview-callout-title {
      font-size: 0.82rem;
      font-weight: 800;
      letter-spacing: 0.06em;
      color: var(--accent-dark);
      margin-bottom: 3px;
    }
    .overview-callout-text {
      font-size: 0.86rem;
      line-height: 1.55;
      color: #334155;
    }
    @media (max-width: 1100px) {
      .overview-callout { width: 198px; }
      .overview-callout-text { font-size: 0.8rem; }
    }
    @media (max-width: 760px) {
      .overview-callouts {
        position: static;
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 8px 4px 2px;
      }
      .overview-callout {
        position: static;
        width: auto;
        transform: none;
      }
      #callout-lines { display: none; }
    }

    /* ==================== 製品ごとのユニークボタン＆モーダル ==================== */
    .unique-btn-bar {
      position: fixed;
      left: 50%;
      bottom: 14px;
      transform: translateX(-50%);
      z-index: 60;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 6px 8px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.95);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border: 1px solid var(--border-mid);
      box-shadow: 0 10px 28px -6px rgba(15, 23, 42, 0.18), 0 2px 6px rgba(15, 23, 42, 0.06);
    }
    .unique-btn-bar.hidden { display: none; }
    .unique-btn {
      border: none;
      cursor: pointer;
      border-radius: 999px;
      padding: 10px 20px;
      font-size: 0.92rem;
      font-weight: 800;
      letter-spacing: 0.03em;
      color: #ffffff;
      background: linear-gradient(125deg, var(--accent-dark), var(--accent));
      box-shadow: 0 6px 16px -6px rgba(13, 148, 136, 0.55);
      transition: transform 0.15s ease, box-shadow 0.15s ease;
      white-space: nowrap;
    }
    .unique-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 10px 22px -6px rgba(13, 148, 136, 0.6);
    }
    .unique-modal {
      position: fixed;
      inset: 0;
      z-index: 200;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .unique-modal.hidden { display: none; }
    .unique-modal-backdrop {
      position: absolute;
      inset: 0;
      background: rgba(15, 23, 42, 0.55);
    }
    .unique-modal-card {
      position: relative;
      background: #ffffff;
      border-radius: 18px;
      width: calc(100% - 40px);
      max-width: 700px;
      max-height: 86vh;
      overflow-y: auto;
      padding: 30px 34px 30px;
      box-shadow: 0 30px 70px -18px rgba(15, 23, 42, 0.45);
    }
    .unique-modal-close {
      position: absolute;
      top: 14px;
      right: 14px;
      width: 36px;
      height: 36px;
      border-radius: 999px;
      border: 1px solid var(--border-mid);
      background: #ffffff;
      font-size: 1rem;
      cursor: pointer;
      color: #475569;
    }
    .unique-modal-close:hover { background: var(--accent-soft); color: var(--accent-dark); }
    .unique-modal-title {
      font-size: 1.28rem;
      font-weight: 800;
      color: #0f172a;
      line-height: 1.45;
      margin: 0 34px 16px 0;
    }
    .unique-modal-img {
      display: block;
      width: 240px;
      max-width: 70%;
      margin: 0 auto 18px;
      border-radius: 12px;
      border: 1px solid var(--border-light);
    }
    .unique-modal-img.hidden { display: none; }
    .unique-modal-body h4 {
      font-size: 1rem;
      font-weight: 800;
      color: var(--accent-dark);
      margin: 18px 0 6px;
    }
    .unique-modal-body h4:first-child { margin-top: 0; }
    .unique-modal-body p {
      font-size: 0.94rem;
      line-height: 1.85;
      color: #334155;
      margin: 0 0 8px;
    }
    .unique-note {
      margin-top: 16px;
      background: var(--accent-soft);
      border-left: 4px solid var(--accent);
      border-radius: 8px;
      padding: 13px 16px;
      font-size: 0.92rem;
      line-height: 1.8;
      color: #134e4a;
    }
