/* ============================================================
   ソリューションズ (Solutions) 横断統括ガイド v1 スタイルシート
   Design Aesthetic: Cyber Glassmorphism & Modern Dynamic UI
   ============================================================ */

:root {
  /* カラーパレット */
  --bg-dark: #090d16;
  --bg-card: rgba(17, 24, 39, 0.75);
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --border-glass: rgba(255, 255, 255, 0.12);
  --border-glow: rgba(99, 102, 241, 0.4);

  --accent-cyan: #06b6d4;
  --accent-teal: #34d399;
  --accent-indigo: #6366f1;
  --accent-purple: #a855f7;
  --accent-pink: #ec4899;
  --accent-amber: #f59e0b;

  --text-main: #f3f4f6;
  --text-sub: #9ca3af;
  --text-muted: #6b7280;

  --gradient-solutions: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
  --gradient-cyan-teal: linear-gradient(135deg, #06b6d4 0%, #34d399 100%);
  --gradient-amber-pink: linear-gradient(135deg, #f59e0b 0%, #ec4899 100%);

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 25px rgba(99, 102, 241, 0.25);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── リセット & 基本設定 ── */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(99, 102, 241, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 85% 60%, rgba(168, 85, 247, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── ナビゲーション ── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(9, 13, 22, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  transition: var(--transition-normal);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 0.95rem;
  color: #ffffff;
  white-space: nowrap;
  text-decoration: none !important;
  cursor: default;
}

.logo-badge-parent {
  font-size: 0.75rem;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 6px;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: #ffffff;
  letter-spacing: 0.02em;
}

.logo-text-parent {
  background: linear-gradient(135deg, #ffffff 0%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.02em;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
}

.nav-brand-badge {
  background: var(--gradient-solutions);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-link {
  color: var(--text-sub);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: #fff;
  text-shadow: 0 0 10px rgba(99, 102, 241, 0.6);
}

.nav-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  transition: var(--transition-fast);
}

.nav-back-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

.nav-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #34d399;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  transition: var(--transition-fast);
}

.nav-switch-btn:hover {
  background: rgba(52, 211, 153, 0.25);
  border-color: #34d399;
  box-shadow: 0 0 15px rgba(52, 211, 153, 0.3);
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: var(--transition-fast);
}

/* ── 共通レイアウトコンテナ ── */
section {
  padding: 5rem 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-badge {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  border-radius: 30px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.gradient-text {
  background: var(--gradient-solutions);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  color: var(--text-sub);
  font-size: 1.05rem;
  max-width: 720px;
  margin: 0 auto;
}

/* ── ① ヒーローセクション ── */
#hero {
  padding-top: 8rem;
  padding-bottom: 5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1.2rem;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-sub);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-md);
  background: var(--gradient-solutions);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
  transition: var(--transition-fast);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.6);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: var(--transition-fast);
  cursor: pointer;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* ヒーロービジュアルカード */
.hero-visual-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

.hero-visual-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 1rem;
  margin-bottom: 1.2rem;
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.window-dots span:nth-child(1) { background-color: #ef4444; }
.window-dots span:nth-child(2) { background-color: #f59e0b; }
.window-dots span:nth-child(3) { background-color: #10b981; }

.hero-meta-badge {
  font-size: 0.8rem;
  font-weight: 700;
  color: #a5b4fc;
}

.hero-tree-preview {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tree-node {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  transition: var(--transition-fast);
}

.tree-node:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--accent-indigo);
  transform: translateX(4px);
}

.tree-node-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
}

.node-tag {
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-weight: 700;
}

.tag-meta { background: rgba(168, 85, 247, 0.2); color: #c084fc; }
.tag-req { background: rgba(6, 182, 212, 0.2); color: #67e8f9; }
.tag-main { background: rgba(52, 211, 153, 0.2); color: #6ee7b7; }
.tag-out { background: rgba(245, 158, 11, 0.2); color: #fcd34d; }
.tag-inst { background: rgba(99, 102, 241, 0.2); color: #a5b4fc; }
.tag-script { background: rgba(6, 182, 212, 0.2); color: #67e8f9; }
.tag-work { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.tag-feed { background: rgba(236, 72, 153, 0.2); color: #f472b6; }
.tag-docs { background: rgba(148, 163, 184, 0.2); color: #cbd5e1; }
.tag-brain { background: rgba(236, 72, 153, 0.2); color: #f472b6; }

/* ── ② 物理階層 vs 概念役割カード ── */
.concept-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.concept-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition-normal);
  position: relative;
}

.concept-card:hover {
  border-color: var(--accent-indigo);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

.card-icon-wrapper {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
}

.icon-physical { background: rgba(6, 182, 212, 0.15); color: #06b6d4; }
.icon-logical { background: rgba(168, 85, 247, 0.15); color: #a855f7; }

.concept-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
}

.concept-card p {
  color: var(--text-sub);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.diagram-box {
  background: rgba(0, 0, 0, 0.35);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  border: 1px dashed var(--border-glass);
}

.folder-level {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.8rem;
  margin-bottom: 0.5rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.85rem;
  font-family: monospace;
}

.folder-level.highlight-meta {
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #e9d5ff;
}

/* ── ③ インタラクティブ・横断ワークフローシミュレーター ── */
.simulator-container {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow-lg);
}

.sim-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border-glass);
  flex-wrap: wrap;
  gap: 1rem;
}

.sim-tabs {
  display: flex;
  gap: 0.5rem;
}

.sim-tab-btn {
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-sub);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.sim-tab-btn.active {
  background: var(--gradient-solutions);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.sim-action-btns {
  display: flex;
  gap: 0.6rem;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.16);
}

.sim-steps-tracker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
  position: relative;
}

.step-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  text-align: center;
  position: relative;
  transition: var(--transition-normal);
  cursor: pointer;
}

.step-card.active {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--accent-indigo);
  box-shadow: 0 0 18px rgba(99, 102, 241, 0.3);
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  margin: 0 auto 0.6rem;
  color: var(--text-sub);
}

.step-card.active .step-number {
  background: var(--gradient-solutions);
  color: #fff;
}

.step-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
}

.sim-stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem;
  align-items: stretch;
}

.sim-visual-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 280px;
  position: relative;
}

.proj-nodes-row {
  display: flex;
  justify-content: space-around;
  margin-bottom: 2rem;
}

.proj-icon-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  transition: var(--transition-normal);
  font-size: 0.82rem;
  font-weight: 700;
}

.proj-icon-badge.pulse {
  animation: pulseGlow 1.5s infinite alternate;
  border-color: var(--accent-indigo);
}

@keyframes pulseGlow {
  from { box-shadow: 0 0 5px rgba(99, 102, 241, 0.4); transform: scale(1); }
  to { box-shadow: 0 0 20px rgba(99, 102, 241, 0.8); transform: scale(1.06); }
}

.data-flow-arrow {
  text-align: center;
  font-size: 1.4rem;
  color: var(--accent-cyan);
  margin: 0.5rem 0;
  animation: bounceDown 1s infinite alternate;
}

@keyframes bounceDown {
  from { transform: translateY(-3px); }
  to { transform: translateY(3px); }
}

.sim-terminal-log {
  background: #050810;
  border: 1px solid #1e293b;
  border-radius: var(--radius-md);
  padding: 1.2rem;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 0.88rem;
  color: #38bdf8;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow-y: auto;
  max-height: 280px;
}

.log-line {
  line-height: 1.4;
  opacity: 0;
  animation: fadeInLine 0.3s forwards;
}

.log-line.success { color: #4ade80; }
.log-line.info { color: #a855f7; }
.log-line.highlight { color: #facc15; font-weight: 700; }

@keyframes fadeInLine {
  to { opacity: 1; }
}

/* ── ④ AI感情・ガス抜き分析 ── */
.sentiment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.sentiment-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.sentiment-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.metric-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
}

.metric-value {
  font-size: 1.6rem;
  font-weight: 900;
  margin-top: 0.3rem;
  background: var(--gradient-amber-pink);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: var(--transition-fast);
}

.metric-label {
  font-size: 0.78rem;
  color: var(--text-sub);
  font-weight: 600;
}

.preset-btn {
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: var(--text-sub);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

.preset-btn.active, .preset-btn:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: var(--accent-indigo);
  color: #fff;
}

.letter-demo-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  position: relative;
}

.letter-quote {
  font-style: italic;
  color: #e2e8f0;
  font-size: 0.95rem;
  line-height: 1.7;
  border-left: 3px solid var(--accent-pink);
  padding-left: 1rem;
  margin-bottom: 1.2rem;
  transition: opacity 0.3s;
}

.insight-badge {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  background: rgba(52, 211, 153, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #34d399;
  font-size: 0.78rem;
  font-weight: 700;
}

/* ── ⑤ 構造ツリー & Mermaid ── */
.mindmap-box {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.diag-tab-btn {
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-sub);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.diag-tab-btn.active {
  background: var(--gradient-solutions);
  color: #fff;
  border-color: transparent;
}

.diagram-panel {
  display: none;
}

.diagram-panel.active {
  display: block;
}

.mermaid-wrapper {
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  overflow-x: auto;
}

/* ── ⑥ ファイルサンプル・コードビューア ── */
.code-viewer-container {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.code-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid var(--border-glass);
  overflow-x: auto;
}

.code-tab {
  padding: 0.9rem 1.5rem;
  background: transparent;
  border: none;
  color: var(--text-sub);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-fast);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.code-tab.active {
  color: #fff;
  border-bottom-color: var(--accent-indigo);
  background: rgba(255, 255, 255, 0.04);
}

.code-content-panel {
  display: none;
  padding: 1.5rem;
  background: #090d16;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #e2e8f0;
  overflow-x: auto;
}

.code-content-panel.active {
  display: block;
}

.code-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.copy-code-btn {
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  font-size: 0.78rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.copy-code-btn:hover {
  background: rgba(99, 102, 241, 0.3);
  border-color: var(--accent-indigo);
}

.code-content-panel pre {
  margin: 0;
}

/* モーダルウィンドウ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-fast);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #0f172a;
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  max-width: 600px;
  width: 90%;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  position: relative;
  transform: scale(0.9);
  transition: var(--transition-fast);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: transparent;
  border: none;
  color: var(--text-sub);
  font-size: 1.4rem;
  cursor: pointer;
}

.modal-close-btn:hover { color: #fff; }

/* フローティングトップへ戻るボタン */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-solutions);
  border: none;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-fast);
  z-index: 999;
}

#back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

#back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.7);
}

/* ── フッター ── */
footer {
  background: #050810;
  border-top: 1px solid var(--border-glass);
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.8rem;
  margin-bottom: 1.5rem;
  list-style: none;
}

.footer-links a {
  color: var(--text-sub);
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-indigo);
}

/* ── レスポンシブ調整 ── */
@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; }
  .concept-cards-grid, .sim-stage, .sentiment-grid { grid-template-columns: 1fr; }
  .sim-steps-tracker { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    background: #090d16;
    flex-direction: column;
    padding: 2rem;
    border-bottom: 1px solid var(--border-glass);
    display: none;
  }
  .nav-menu.mobile-open { display: flex; }
  .hamburger { display: flex; }
  .sim-steps-tracker { grid-template-columns: 1fr; }
  .sentiment-metrics { grid-template-columns: 1fr; }
  .overview-tags-grid { grid-template-columns: 1fr !important; }
}
