@charset "UTF-8";

/* ==============================================================
   RESET & VARIABLES
   ============================================================== */
:root {
  --bg: #05070a;
  --text: #ffffff;
  --accent: #ff4d00;
  --font-main: 'Noto Sans JP', sans-serif;
  --noise-op: 0.04;
}

/* Language switching — 6 languages */
body.lang-ja :is(.lang-en,.lang-zh,.lang-ko,.lang-es,.lang-fr) { display: none !important; }
body.lang-en :is(.lang-ja,.lang-zh,.lang-ko,.lang-es,.lang-fr) { display: none !important; }
body.lang-zh :is(.lang-ja,.lang-en,.lang-ko,.lang-es,.lang-fr) { display: none !important; }
body.lang-ko :is(.lang-ja,.lang-en,.lang-zh,.lang-es,.lang-fr) { display: none !important; }
body.lang-es :is(.lang-ja,.lang-en,.lang-zh,.lang-ko,.lang-fr) { display: none !important; }
body.lang-fr :is(.lang-ja,.lang-en,.lang-zh,.lang-ko,.lang-es) { display: none !important; }

/* Lang switcher component */
.lang-switcher { display: flex; align-items: center; gap: 6px; font-size: 0.75rem; font-weight: 900; letter-spacing: 0.08em; flex-wrap: wrap; }
@media (min-width: 901px) {
  .nav, .navbar { padding-right: 180px !important; }
}
.lang-switcher span[data-lang] { cursor: pointer; opacity: 0.35; transition: opacity 0.2s, color 0.2s; white-space: nowrap; }
.lang-switcher span[data-lang]:hover { opacity: 0.8; }
.lang-switcher span[data-lang].active { opacity: 1; color: var(--accent); }
.lang-switcher .sep { opacity: 0.2; cursor: default; }

/* Legacy .lang-toggle-wrap */
.lang-toggle-wrap { display: flex; align-items: center; gap: 6px; margin-left: 2rem; font-size: 0.8rem; font-weight: 900; letter-spacing: 0.1em; }
.lang-toggle-wrap span { cursor: pointer; opacity: 0.4; transition: opacity 0.2s, color 0.2s; }
.lang-toggle-wrap span:hover { opacity: 1; }
.lang-toggle-wrap span.active { opacity: 1; color: var(--accent); }
.lang-toggle-wrap .sep { opacity: 0.2; cursor: default; }

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

html, body {
  width: 100%;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  background-attachment: fixed;
  overscroll-behavior: none;
  /* Hide default scrollbar */
  scrollbar-width: none;
}
body.no-scroll { overflow: hidden; height: 100vh; }
html::-webkit-scrollbar { display: none; }

/* Custom Selection */
::selection { background: var(--accent); color: var(--text); }

/* ==============================================================
   GLOBAL OVERLAYS (Grain, Cursor, Progress, Video)
   ============================================================== */
.global-video-bg {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  object-fit: cover; z-index: -2; opacity: 0.2; pointer-events: none;
  filter: grayscale(1) contrast(1.2); mix-blend-mode: screen;
}

/* Particle canvas must always be fixed/absolute, never static */
#particle-canvas {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  pointer-events: none; z-index: 0; opacity: 0.4;
}

/* Film Grain */
.film-grain {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none; z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: var(--noise-op);
  mix-blend-mode: overlay;
}

/* Scanlines */
.scanlines {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0) 50%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.1));
  background-size: 100% 4px;
  z-index: 9998; pointer-events: none; opacity: 0.5;
}

/* Custom Cursor */
body { cursor: none; }
.custom-cursor {
  position: fixed; top: 0; left: 0; 
  width: 12px; height: 12px;
  background: var(--accent); border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none; z-index: 9999999;
  transition: width 0.3s, height 0.3s, background-color 0.3s;
  mix-blend-mode: difference;
}
.custom-cursor.hover {
  width: 40px; height: 40px;
  background: transparent; border: 2px solid var(--accent);
}

/* Progress Bar Bottom */
.progress-bar-wrap {
  position: fixed; bottom: 0; left: 0; width: 100%; height: 3px;
  background: rgba(255, 255, 255, 0.1); z-index: 9900;
}
.progress-bar {
  height: 100%; width: 0%; background: var(--accent);
}

/* Chapter Indicator */
.chapter-indicator {
  position: fixed; top: 30px; right: 40px;
  display: flex; align-items: center; gap: 12px;
  font-weight: 900; font-size: 14px; letter-spacing: 0.1em;
  z-index: 9900;
}
.chapter-dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; }

/* Quick Access */
.quick-access-btn {
  position: fixed; bottom: 30px; left: 40px;
  font-weight: 900; font-size: 12px; letter-spacing: 0.1em;
  color: #fff; text-decoration: none; z-index: 9900;
  padding: 8px 0; border-bottom: 2px solid transparent;
  transition: border-bottom-color 0.3s; cursor: none;
}
.quick-access-btn:hover { border-bottom-color: var(--accent); }

/* ==============================================================
   SCENE 0 "RITUAL"
   ============================================================== */
.ritual-screen {
  display: none !important; /* Hide ritual screen entirely */
}
.ritual-text {
  font-size: 11px; font-weight: 900; letter-spacing: 0.25em;
  position: relative; z-index: 4; opacity: 0.5;
  margin-bottom: 0;
}
.ritual-num { color: var(--accent); }

/* Ritual canvas — full opacity, used for both coord-flood and particle phases */
#ritual-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 1; z-index: 1; pointer-events: none;
}

/* Evacuation sign image — hidden by default, JS activates in Phase 2 */
.ritual-img {
  position: absolute;
  width: 340px; max-width: 80vw;
  top: 50%; left: 50%;
  z-index: 2;
  object-fit: contain;
  transform: translate(-50%, -52%);
  opacity: 0;
  transform-origin: center center;
  pointer-events: none;
}
@keyframes ritualBreathe {
  0%   { opacity: 0;    filter: brightness(0.1) blur(8px);  transform: translate(-50%,-52%) scale(0.88); }
  12%  { opacity: 0.35; filter: brightness(0.7) blur(2px);  transform: translate(-50%,-52%) scale(0.96); }
  24%  { opacity: 0.08; filter: brightness(0.2) blur(5px);  transform: translate(-50%,-52%) scale(0.92); }
  38%  { opacity: 0.55; filter: brightness(1.0) blur(1px);  transform: translate(-50%,-52%) scale(1.00); }
  50%  { opacity: 0.18; filter: brightness(0.3) blur(4px);  transform: translate(-50%,-52%) scale(0.94); }
  63%  { opacity: 0.70; filter: brightness(1.2) blur(0px);  transform: translate(-50%,-52%) scale(1.02); }
  74%  { opacity: 0.30; filter: brightness(0.5) blur(2px);  transform: translate(-50%,-52%) scale(0.97); }
  85%  { opacity: 0.85; filter: brightness(1.4) blur(0px);  transform: translate(-50%,-52%) scale(1.04); }
  93%  { opacity: 0.45; filter: brightness(0.8) blur(1px);  transform: translate(-50%,-52%) scale(1.01); }
  100% { opacity: 0.90; filter: brightness(1.5) blur(0px);  transform: translate(-50%,-52%) scale(1.05); }
}

.skip-btn {
  position: absolute; bottom: 40px; right: 40px;
  font-size: 10px; letter-spacing: 0.2em; font-weight: 900; color: rgba(255,255,255,0.3);
  cursor: none; z-index: 2000005; transition: color 0.3s;
}
.skip-btn:hover { color: var(--accent); }

.ritual-progress {
  position: absolute; bottom: 0; left: 0; height: 2px;
  background: var(--accent); width: 0%; z-index: 5;
}


/* ==============================================================
   HORIZONTAL SCROLL LAYOUT
   ============================================================== */
.scroll-container {
  display: flex; flex-wrap: nowrap;
  width: max-content; /* Let GSAP translate it horizontally */
  height: 100vh;
}

.scene {
  position: relative; width: 100vw; height: 100vh;
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  padding: 0 5vw;
}
.scene-wide { width: 150vw; }
.scene-auto { width: auto; min-width: 100vw; }

/* ==============================================================
   SCENE 1: HERO
   ============================================================== */
.hero-video-bg {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: -2; opacity: 0.8;
  filter: grayscale(0.5); pointer-events: none;
}
.hero-video-overlay {
  position: absolute; top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(5, 7, 10, 0.7); /* 少し明るさを下げる（暗くする） */
  z-index: -1; pointer-events: none;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 10vw); font-weight: 900; line-height: 1.1;
  letter-spacing: -0.05em;
  mix-blend-mode: difference; z-index: 10;
  position: relative;
  word-break: normal; overflow-wrap: normal;
  max-width: 100vw; text-align: center;
  padding: 0 4vw;
  box-sizing: border-box;
  margin: 0 auto;
}
.hero-title .dot { color: var(--accent); }

.glitch-word { display: inline-block; white-space: nowrap; }

/* Language-specific scaling - Definitive reduction for safety */
.hero-title .lang-es, .hero-title .lang-fr { font-size: 6vw; }
.hero-title .lang-ko { font-size: 7.5vw; }
.hero-title .lang-en { font-size: 8.5vw; }
.hero-title .lang-ja, .hero-title .lang-zh { font-size: 10vw; }

.hero-title .lang-ja, .hero-title .lang-en, .hero-title .lang-zh, .hero-title .lang-ko, .hero-title .lang-es, .hero-title .lang-fr {
  display: block;
}

.hero-lang-switcher {
  position: absolute; top: 120px; left: 6vw; z-index: 100;
  display: flex; gap: 15px; font-weight: 900; font-size: 0.8rem; letter-spacing: 0.15em;
  opacity: 0.6; transition: opacity 0.3s;
}
.hero-lang-switcher:hover { opacity: 1; }
.hero-lang-switcher span { cursor: pointer; transition: color 0.2s; }
.hero-lang-switcher span.active { color: var(--accent); }

/* Glitch text spans */
.glitch-char { display: inline-block; opacity: 0; transform: translateY(50px) skewY(10deg); filter: blur(10px); }

/* ==============================================================
   SCENE 2: 89,000 PULSE
   ============================================================== */
.huge-num-wrap { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: flex-start; }
.huge-number {
  font-size: 30vw; font-weight: 900; line-height: 1; letter-spacing: -0.08em;
  color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,0.1);
  transform-origin: left center; z-index: 1;
}

/* ==============================================================
   SCENE 3: MANIFESTO
   ============================================================== */
.manifesto-bg {
  position: absolute; right: -20%; top: 50%; transform: translateY(-50%);
  width: 80vw; height: 90vh; object-fit: cover; opacity: 0.4;
  filter: grayscale(100%) contrast(1.2); mix-blend-mode: screen;
  z-index: 0; pointer-events: none;
}

.manifesto-text-wrap {
  position: relative; z-index: 2; display: flex; flex-direction: column; gap: 40px;
  width: 60vw; margin-left: 10vw;
}
.manifesto-p {
  font-size: 2.5vw; font-weight: 900; line-height: 1.4; color: #fff;
  mix-blend-mode: difference; text-shadow: 0 4px 20px rgba(0,0,0,0.8);
}
.border-line { position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--accent); transform: scaleY(0); transform-origin: top; }

/* ==============================================================
   SCENE 4: PORTAL GRID
   ============================================================== */
.tech-grid-scene {
  display: flex; gap: 4vw; padding-left: 10vw; align-items: stretch;
  height: 70vh;
}
.tech-card {
  width: 30vw; border: 1px solid rgba(255,255,255,0.2); 
  display: flex; flex-direction: column; padding: 2rem;
  background: rgba(5,7,10,0.6); backdrop-filter: blur(5px);
  transition: border-color 0.3s;
}
.tech-card:hover { border-color: var(--accent); }
.tech-card h3 { font-size: 3vw; font-weight: 900; margin-bottom: 1rem; color: var(--accent); }
.tech-card p { font-size: 1.2vw; line-height: 1.6; color: #ccc; }

.tech-thumb {
  width: 100%; aspect-ratio: 16/9; background: #222; margin-top: auto;
  position: relative; overflow: hidden; filter: grayscale(100%) contrast(1.5) sepia(100%) hue-rotate(-50deg);
  transition: filter 0.5s;
}
.tech-card:hover .tech-thumb { filter: grayscale(0) contrast(1); }

/* MathJax Noise Overlay */
.math-noise {
  position: absolute; inset: 0; font-family: monospace; font-size: 10px; color: rgba(255,255,255,0.05);
  word-break: break-all; overflow: hidden; pointer-events: none; z-index: 0;
}

/* ==============================================================
   PROFILE
   ============================================================== */
.profile-wrap { display: flex; align-items: center; gap: 5vw; width: 80vw; }
.profile-img-wrap {
  width: 30vw; height: 35vw; border: 1px solid rgba(255,77,0,0.5); position: relative; overflow: hidden;
}
.profile-img {
  width: 100%; height: 100%; object-fit: cover; filter: grayscale(1);
}
/* CSS glitch on hover */
.profile-img-wrap:hover .profile-img { animation: rgb-shift 0.3s infinite alternate; }
@keyframes rgb-shift { 0% { filter: drop-shadow(5px 0 0 red) drop-shadow(-5px 0 0 cyan); } 100% { filter: drop-shadow(-5px 0 0 red) drop-shadow(5px 0 0 cyan); } }

.tech-stream {
  display: flex; flex-direction: column; font-family: monospace;
  font-size: 1.5vw; line-height: 2; color: #888;
}
.tech-stream span { opacity: 0; transform: translateX(20px); }

/* ==============================================================
   FINAL GATE
   ============================================================== */
.gate-scene { position: relative; width: 100vw; background: var(--accent); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.gate-btn {
  font-size: 8vw; font-weight: 900; color: var(--bg);
  text-decoration: none; cursor: none; position: relative; z-index: 10;
  transition: letter-spacing 0.3s, transform 0.3s;
  animation: gate-btn-pulse 2s ease-in-out infinite;
}
.gate-btn:hover { letter-spacing: 0.05em; transform: scale(1.05); }

@keyframes gate-btn-pulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(255,77,0,0)); }
  50% { transform: scale(1.03); filter: drop-shadow(0 0 20px rgba(5,7,10,0.4)); }
}

#video-promo {
  background: #000;
}
.video-container {
  width: 80vw;
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 50px rgba(0,0,0,0.8);
}

/* Responsive adjustments */
@media (max-width: 900px) {
  /* Stack scroll-container vertically on mobile devices */
  .scroll-container {
    display: block !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .scene, .scene-wide, .scene-auto, #overview, #findings, #gate {
    width: 100% !important;
    height: auto !important;
    min-height: 100svh !important;
    flex-shrink: 1 !important;
    padding: 80px 20px !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
  }
  
  /* Hide custom cursor on touch/mobile devices */
  body {
    cursor: auto !important;
  }
  .custom-cursor {
    display: none !important;
  }
  
  /* Vertical stack overrides */
  .ov-inner {
    flex-direction: column !important;
    height: auto !important;
  }
  .ov-left {
    flex: 1 1 auto !important;
    width: 100% !important;
    padding: 40px 0 !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(255,77,0,.18) !important;
  }
  .ov-right {
    flex: 1 1 auto !important;
    width: 100% !important;
    padding: 40px 0 !important;
  }
  
  .findings-inner {
    flex-direction: column !important;
    height: auto !important;
    gap: 30px !important;
    padding: 40px 0 !important;
  }
  .findings-left, .findings-right {
    flex: 1 1 auto !important;
    width: 100% !important;
    height: auto !important;
  }

  .hero-title { font-size: 8vw; line-height: 1.2; max-width: 100vw; padding: 0 4vw; }
  .hero-title .lang-es, .hero-title .lang-fr { font-size: 5vw; }
  .hero-title .lang-ko { font-size: 6vw; }
  .huge-number { font-size: 25vw; }
  .manifesto-text-wrap { width: 100%; margin-left: 0; }
  .manifesto-p { font-size: 1.35rem; line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere; }
  .tech-grid-scene { flex-direction: column; height: auto; padding-left: 0; gap: 40px; }
  .tech-card { width: 100%; padding: 1.5rem; }
  .tech-card h3 { font-size: 10vw; }
  .tech-card p { font-size: 4.5vw; }
  .profile-wrap { flex-direction: column; text-align: center; }
  .profile-img-wrap { width: 90%; height: 110vw; margin: 0 auto; }
  .tech-stream { font-size: 5vw; margin-top: 2rem; }
  
  /* Hide desktop nav, show mobile hamburger */
  .desktop-nav, .nav, .navbar { display: none !important; }
  .hamburger { display: flex !important; top: 20px; right: 20px; }
  .h-text { font-size: 0.8rem; }
  .h-lines { width: 40px; }
  
  /* Adjust ritual screen image for vertical/square mobile view */
  .ritual-img { width: 80vw; max-width: 320px; transform: translate(-50%, -60%); }
  
  /* Sub-page content adjustments */
  .content { padding: 90px 20px 60px; }
  .page-header .title { font-size: 14vw; line-height: 1.1; }
  .page-header .eyebrow { font-size: 0.8rem; }
  .chapter { font-size: 10vw; }
  .manifesto-body p { font-size: 1.1rem; }
  .pic-manifesto-right { float: none; width: 100%; margin: 20px 0; }
  
  .profile-grid { flex-direction: column; gap: 40px; }
  .profile-aside { width: 100%; text-align: center; }
  .profile-name { font-size: 15vw; }
  .tech-grid-blocks { grid-template-columns: 1fr; }
  
  .timeline-year { font-size: 15vw; }
  .timeline-item { flex-direction: column; gap: 15px; }
  .timeline-date { width: auto; font-size: 1.5rem; }
  
  .footer { padding: 40px 20px; }
  
  .hero-lang-switcher { top: 90px; left: 50%; transform: translateX(-50%); font-size: 0.7rem; gap: 10px; opacity: 1; width: 100%; justify-content: center;}
}

/* ==============================================================
   OVERLAY NAV (HAMBURGER)
   ============================================================== */
.hamburger {
  position: fixed; top: 40px; right: 40px; cursor: pointer; z-index: 1000000;
  display: flex; align-items: center; gap: 15px; transition: transform 0.3s;
  background: rgba(0,0,0,0.5); padding: 10px 15px; border-radius: 4px; backdrop-filter: blur(5px);
}
.hamburger:hover { transform: scale(1.05); }
.h-lines {
  width: 50px; height: 14px; display: flex; flex-direction: column; justify-content: space-between;
  pointer-events: none;
}
.h-lines span { height: 2px; width: 100%; background: #fff; transition: 0.3s; pointer-events: none; }
.h-text { color: #fff; font-size: 1rem; font-weight: 900; letter-spacing: 0.2em; font-family: 'Inter', sans-serif; pointer-events: none; }

.hamburger.open .h-lines span:nth-child(1) { transform: translateY(6px) rotate(45deg); background: var(--accent); }
.hamburger.open .h-lines span:nth-child(2) { transform: translateY(-6px) rotate(-45deg); background: var(--accent); }
.hamburger.open .h-text { color: var(--accent); opacity: 0; /* Hide text when open */ }

.overlay-nav {
  position: fixed; inset: 0; background: rgba(5,7,10,1); backdrop-filter: blur(10px);
  z-index: 999999; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.5s;
}
.overlay-nav.active { opacity: 1; pointer-events: auto; }
.overlay-nav-inner { display: flex; gap: 8vw; text-align: left; }
.overlay-nav ul { list-style: none; text-align: left; }
.overlay-nav .menu-col h3 { font-size: 0.9rem; color: #555; margin-bottom: 1.5rem; letter-spacing: 0.2em; border-bottom: 1px solid #333; padding-bottom: 10px; }
.overlay-nav li { margin: 1.2rem 0; overflow: hidden; }
.overlay-nav a {
  font-size: 2.2vw; font-weight: 900; color: #fff; text-decoration: none; cursor: none;
  transition: color 0.3s, padding-left 0.3s;
}
.overlay-nav a:hover { color: var(--accent); padding-left: 10px; }
@media(max-width: 900px){ 
  .overlay-nav-inner { flex-direction: column; gap: 3vw; margin-top: 2rem;}
  .overlay-nav a { font-size: 6vw; } 
  .overlay-nav .menu-col h3 { margin-bottom: 1rem; margin-top: 1.5rem;}
}

/* ==============================================================
   TIMELINE SECTION
   ============================================================== */
.timeline-wrap {
  display: flex; gap: 10vw; padding: 0 10vw; height: 100vh;
  align-items: center; position: relative;
}
.tl-line-track {
  position: absolute; left: 0; right: 0; top: 50%; height: 2px;
  background: rgba(255,255,255,0.1); z-index: 1; transform: translateY(-50%);
}
.tl-line-fill {
  height: 100%; width: 0%; background: var(--accent);
}
.tl-item {
  position: relative; width: 40vw; height: 60vh;
  display: flex; flex-direction: column; justify-content: center;
  z-index: 2; padding: 2rem; border-left: 2px solid var(--accent);
  background: rgba(5,7,10,0.4); backdrop-filter: blur(10px);
}
.tl-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0.15; filter: grayscale(1) contrast(1.5);
  z-index: -1; pointer-events: none; mix-blend-mode: screen;
}
.tl-content h4 { font-size: 5vw; font-weight: 900; color: var(--accent); margin-bottom: 1rem; }
.tl-content p { font-size: 1.5vw; line-height: 1.6; color: #fff; text-shadow: 0 4px 10px rgba(0,0,0,0.8); }

/* ==============================================================
   SLIDE-IN PANEL (READ MORE)
   ============================================================== */
.slide-panel {
  position: fixed; top: 0; right: -55vw; width: 50vw; height: 100%;
  background: rgba(10, 12, 18, 0.98); border-left: 1px solid rgba(255,255,255,0.1);
  box-shadow: -20px 0 50px rgba(0,0,0,0.9); z-index: 10001;
  padding: 4rem 3rem; overflow-y: auto; color: #ccc;
  transition: right 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}
.slide-panel.open { right: 0; }
.slide-panel::-webkit-scrollbar { width: 5px; }
.slide-panel::-webkit-scrollbar-thumb { background: var(--accent); }

.panel-close {
  position: absolute; top: 2rem; left: 3rem; right: auto; font-size: 3rem; font-weight: 900;
  color: #fff; cursor: none; transition: color 0.3s; line-height: 0.5; z-index: 100000;
}
.panel-close:hover { color: var(--accent); }

.panel-content h2 { font-size: 3vw; color: #fff; margin-bottom: 1.5rem; letter-spacing: 0.05em; border-bottom: 2px solid var(--accent); padding-bottom: 1rem; }
.panel-content h3 { font-size: 1.5vw; color: var(--accent); margin: 2rem 0 1rem; }
.panel-content p { font-size: 1.1vw; line-height: 1.8; margin-bottom: 1.5rem; }

.btn-readmore {
  display: inline-block; margin-top: 1.5rem; padding: 10px 20px;
  background: transparent; color: #fff; border: 1px solid var(--accent);
  font-weight: 900; letter-spacing: 0.1em; cursor: none;
  font-size: 0.8vw; transition: all 0.3s;
}
.btn-readmore:hover { background: var(--accent); color: #000; }

.sim-canvas {
  width: 100%; height: 250px; background: #000; border: 1px solid rgba(255,255,255,0.2);
  margin: 2rem 0; border-radius: 4px;
}

/* ==============================================================
   VERTICAL SUB-PAGES (MANIFESTO, NEWS, PROFILE) OVERRIDES
   ============================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; height: 60px;
  background: var(--bg); display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px; border-bottom: 2px solid var(--accent); z-index: 9000;
}
.nav-brand { font-size: 1.2rem; font-weight: 900; color: #fff; text-decoration: none; letter-spacing: 0.1em; }
.nav-links { display: flex; gap: 2rem; list-style: none; margin: 0; }
.nav-links a { color: rgba(255,255,255,0.5); text-decoration: none; font-weight: 900; font-size: 0.8rem; letter-spacing: 0.1em; transition: color 0.3s; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }

.content {
  padding: 120px 40px 80px; max-width: 1000px; margin: 0 auto; color: #fff;
}
.page-header { margin-bottom: 40px; }
.page-header .eyebrow { color: var(--accent); font-weight: 900; letter-spacing: 0.2em; font-size: 0.9rem; margin-bottom: 10px; }
.page-header .title { font-size: 5rem; font-weight: 900; color: #fff; letter-spacing: -0.05em; line-height: 1; }
.rule { border: 0; height: 2px; background: var(--accent); margin-bottom: 40px; }

/* Manifesto specifics */
.chapter { font-size: 2.5rem; font-weight: 900; color: var(--accent); margin: 60px 0 20px; line-height: 1.2; }
.manifesto-body p { font-size: 1.2rem; line-height: 1.8; margin-bottom: 1.5rem; color: #ccc; }
.manifesto-body strong { color: #fff; border-bottom: 2px solid var(--accent); }
.pic-manifesto-right { float: right; width: 400px; max-width: 100%; border: none; margin: 0 0 20px 40px; }
.pic-manifesto-wide-wrap { margin: 60px 0; text-align: center; }
.pic-manifesto-wide-img { width: 100%; border: none; }
.pic-manifesto-wide-caption { color: var(--accent); font-weight: 900; display: block; margin-top: 10px; letter-spacing: 0.1em; }

/* News Timeline */
.timeline { position: relative; margin-top: 60px; }
.timeline-year { font-size: 4rem; font-weight: 900; color: rgba(255,77,0,0.2); border-bottom: 2px solid rgba(255,77,0,0.2); margin: 40px 0; }
.timeline-item { display: flex; gap: 40px; margin-bottom: 40px; position: relative; }
.timeline-date { width: 80px; font-weight: 900; color: var(--accent); font-size: 1.2rem; flex-shrink: 0; }
.timeline-content { flex-grow: 1; background: rgba(255,255,255,0.02); padding: 20px; border-left: 2px solid var(--accent); }
.timeline-tag { display: inline-block; padding: 2px 8px; background: var(--accent); color: #000; font-weight: 900; font-size: 0.7rem; margin-bottom: 10px; }
.timeline-content h3 { font-size: 1.5rem; font-weight: 900; margin-bottom: 10px; color: #fff; }
.timeline-content p { color: #aaa; line-height: 1.6; }

/* Profile Layout */
.profile-grid { display: flex; gap: 60px; }
.profile-aside { width: 300px; flex-shrink: 0; }
.profile-name { font-size: 4rem; font-weight: 900; line-height: 1; color: var(--accent); margin-bottom: 20px; }
.profile-role { font-size: 1.2rem; color: #fff; margin-bottom: 40px; font-weight: 900; }
.profile-links a { display: block; color: rgba(255,255,255,0.5); text-decoration: none; font-weight: 900; margin-bottom: 10px; transition: color 0.3s; }
.profile-links a:hover { color: var(--accent); }
.profile-main h2 { font-size: 2.5rem; color: var(--accent); margin: 60px 0 20px; font-weight: 900; }
.profile-main p { font-size: 1.1rem; line-height: 1.8; color: #ccc; margin-bottom: 20px; }
.tech-grid-blocks { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tech-item { background: rgba(255,255,255,0.05); padding: 20px; font-weight: 900; color: #fff; border-left: 4px solid var(--accent); }

.footer { text-align: center; padding: 40px; margin-top: 80px; border-top: 1px solid rgba(255,255,255,0.1); }
.footer-copy { color: rgba(255,255,255,0.5); font-size: 0.8rem; }
.footer-link { display: block; color: var(--accent); margin-top: 10px; text-decoration: none; font-weight: 900; }


/* ==============================================================
   GHOST CURSOR ANIMATION (FOR CLICK INDUCEMENT)
   ============================================================== */
.ghost-cursor {
  position: absolute; width: 20px; height: 20px;
  background: rgba(255, 255, 255, 0.9); border-radius: 50%;
  pointer-events: none; z-index: 100;
  box-shadow: 0 0 10px rgba(255,77,0,0.5), 0 0 20px rgba(255,77,0,0.3);
  transform: translate(-50%, -50%); opacity: 0;
  display: flex; align-items: center; justify-content: center;
}
.ghost-cursor::after {
  content: ''; width: 40px; height: 40px; border: 2px solid var(--accent);
  border-radius: 50%; position: absolute; opacity: 0;
}

@keyframes ghost-click {
  0% { transform: scale(1); opacity: 0; }
  10% { transform: scale(1); opacity: 1; }
  30% { transform: scale(0.8); }
  45% { transform: scale(1.1); }
  50% { transform: scale(1); }
  60% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes ghost-ripple {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(2.5); opacity: 0; }
}

#timeline {
  padding-right: 0;
}

/* ==============================================================
   スマートフォン追加対応 (max-width 768px)
   ============================================================== */
@media (max-width: 768px) {

  /* スライドパネル → 全幅に */
  .slide-panel {
    width: 100vw !important;
    right: -100vw !important;
    padding: 3rem 1.5rem !important;
  }
  .slide-panel.open { right: 0 !important; }
  .panel-close { left: 1.5rem !important; font-size: 2rem !important; cursor: pointer !important; }
  .panel-content h2 { font-size: 1.6rem !important; }
  .panel-content h3 { font-size: 1.1rem !important; }
  .panel-content p  { font-size: 0.95rem !important; }
  .btn-readmore { font-size: 0.8rem !important; cursor: pointer !important; }

  /* サブページコンテンツ余白 */
  .content { padding: 80px 20px 60px !important; }

  /* Manifesto */
  .chapter { font-size: 1.6rem !important; }
  .manifesto-body p { font-size: 1rem !important; }
  .pic-manifesto-right { float: none !important; width: 100% !important; margin: 20px 0 !important; }

  /* News Timeline */
  .timeline-year { font-size: 2rem !important; }
  .timeline-item { flex-direction: column !important; gap: 10px !important; }
  .timeline-date { width: auto !important; }
  .timeline-content h3 { font-size: 1.2rem !important; }

  /* Profile */
  .profile-grid { flex-direction: column !important; gap: 30px !important; }
  .profile-aside { width: 100% !important; text-align: center !important; }
  .profile-name { font-size: 2.5rem !important; }
  .profile-main h2 { font-size: 1.8rem !important; margin: 40px 0 15px !important; }
  .tech-grid-blocks { grid-template-columns: 1fr !important; }

  /* Footer */
  .footer { padding: 30px 20px !important; }

  /* ページヘッダー */
  .page-header .title { font-size: 3rem !important; }
  .page-header .eyebrow { font-size: 0.75rem !important; }

  /* hero lang switcher */
  .hero-lang-switcher {
    top: 80px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    font-size: 0.65rem !important;
    gap: 6px !important;
    opacity: 1 !important;
    width: 100% !important;
    justify-content: center !important;
  }
}

/* body.is-mobile 専用 — タッチデバイスの細かい調整 */
body.is-mobile .panel-close { cursor: pointer !important; }
body.is-mobile .btn-readmore { cursor: pointer !important; }
body.is-mobile .overlay-nav a { cursor: pointer !important; }
body.is-mobile .sim-canvas { touch-action: none; }
