/* サイバーパンク風ランディングページ用CSS */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700;900&family=Share+Tech+Mono&display=swap');

:root {
  /* カラーパレット */
  --deep-black: #0A0A0A;
  --midnight-blue: #001F3F;
  --dark-purple: #2A0A2A;
  --electric-blue: #00FFFF;
  --cyber-pink: #FF00FF;
  --neon-green: #39FF14;
  --bright-yellow: #FFFF00;
  --silver-gray: #808080;
  --white: #FFFFFF;
  
  /* グラデーション */
  --neon-gradient: linear-gradient(45deg, var(--electric-blue), var(--cyber-pink), var(--neon-green));
  --dark-gradient: linear-gradient(135deg, var(--deep-black), var(--midnight-blue), var(--dark-purple));
  
  /* その他の変数 */
  --transition-speed: 0.3s;
  --border-radius: 4px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Share Tech Mono', monospace;
  background: var(--deep-black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ローディング画面 */
#loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--dark-gradient);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  transition: opacity 1s ease-out, visibility 1s ease-out;
}

#loading.hidden {
  opacity: 0;
  visibility: hidden;
}

.scanline {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--electric-blue);
  box-shadow: 0 0 10px var(--electric-blue);
  animation: scan 2s linear infinite;
}

@keyframes scan {
  0% { top: 0; }
  100% { top: 100%; }
}

.loading-text {
  text-align: center;
}

.glitch-text {
  font-family: 'Orbitron', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--electric-blue);
  position: relative;
  text-shadow: 2px 2px 0 var(--cyber-pink);
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch-text::before {
  color: var(--cyber-pink);
  animation: glitch-1 0.3s infinite;
}

.glitch-text::after {
  color: var(--neon-green);
  animation: glitch-2 0.3s infinite;
}

@keyframes glitch-1 {
  0% { transform: translate(-2px, -2px); }
  20% { transform: translate(2px, 2px); }
  40% { transform: translate(-2px, 2px); }
  60% { transform: translate(2px, -2px); }
  80% { transform: translate(-2px, -2px); }
  100% { transform: translate(2px, 2px); }
}

@keyframes glitch-2 {
  0% { transform: translate(2px, 2px); }
  20% { transform: translate(-2px, -2px); }
  40% { transform: translate(2px, -2px); }
  60% { transform: translate(-2px, 2px); }
  80% { transform: translate(2px, 2px); }
  100% { transform: translate(-2px, -2px); }
}

.progress-bar {
  width: 300px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  margin-top: 20px;
  border-radius: 2px;
  overflow: hidden;
}

.progress {
  width: 0%;
  height: 100%;
  background: var(--neon-gradient);
  animation: progress 3s ease-in-out infinite;
}

@keyframes progress {
  0% { width: 0%; }
  50% { width: 100%; }
  100% { width: 0%; }
}

/* メインコンテンツ */
#main-content {
  opacity: 0;
  transition: opacity 1s ease-in;
}

#main-content.visible {
  opacity: 1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ヒーローセクション */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--dark-gradient);
}

#background-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.background-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(0, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: grid-move 20s linear infinite;
  z-index: 2;
}

@keyframes grid-move {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

.hero-content {
  text-align: center;
  z-index: 3;
  position: relative;
}

.main-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 1rem;
  background: var(--neon-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--silver-gray);
}

/* CTAボタン */
.cta-button {
  background: transparent;
  border: 2px solid var(--electric-blue);
  color: var(--electric-blue);
  padding: 15px 30px;
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-speed) ease;
  border-radius: var(--border-radius);
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.cta-button:hover {
  box-shadow: 0 0 20px var(--electric-blue);
  transform: translateY(-2px);
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button.large {
  padding: 20px 40px;
  font-size: 1.2rem;
}

.glitch-button {
  position: relative;
}

.glitch-button:hover .button-text::before {
  animation: glitch-1 0.3s infinite;
}

.glitch-button:hover .button-text::after {
  animation: glitch-2 0.3s infinite;
}

.button-text {
  position: relative;
  z-index: 1;
}

.button-text::before,
.button-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* パーティクル */
.floating-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  animation: float 10s linear infinite;
  will-change: transform, opacity;
}

@keyframes float {
  0% {
    transform: translateY(100vh) translateX(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(-100px) translateX(100px) rotate(360deg);
    opacity: 0;
  }
}

/* 三角形パーティクルのための追加スタイル */
.particle:not([style*="borderBottom"]) {
  border-radius: 50%;
}

/* セクション共通スタイル */
.section-dark {
  background: var(--midnight-blue);
  padding: 80px 0;
  position: relative;
}

.section-light {
  background: var(--dark-purple);
  padding: 80px 0;
  position: relative;
}

.section-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--electric-blue);
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.section-text {
  text-align: center;
  font-size: 1.1rem;
  color: var(--silver-gray);
  max-width: 800px;
  margin: 0 auto 3rem;
  line-height: 1.8;
}

/* データビジュアライゼーション */
.data-visualization {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
}

.data-point {
  text-align: center;
  position: relative;
}

.data-value {
  font-family: 'Orbitron', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  background: var(--neon-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}

.data-label {
  font-size: 1rem;
  color: var(--silver-gray);
}

/* フィーチャーカード */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.feature-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 255, 255, 0.2);
  padding: 30px;
  border-radius: var(--border-radius);
  transition: all var(--transition-speed) ease;
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 255, 255, 0.2);
  border-color: var(--electric-blue);
}

.feature-icon {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 20px;
  color: var(--electric-blue);
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.feature-card h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--cyber-pink);
}

.feature-card p {
  color: var(--silver-gray);
  line-height: 1.6;
}

/* 技術ダイアグラム */
.tech-diagram {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.circuit-board {
  position: relative;
  width: 600px;
  height: 400px;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(0, 255, 255, 0.3);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.node {
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--electric-blue);
  border-radius: 50%;
  left: var(--x);
  top: var(--y);
  box-shadow: 0 0 10px var(--electric-blue);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.data-flow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(0, 255, 255, 0.1) 2px, transparent 2px),
    radial-gradient(circle at 60% 20%, rgba(255, 0, 255, 0.1) 2px, transparent 2px),
    radial-gradient(circle at 80% 60%, rgba(57, 255, 20, 0.1) 2px, transparent 2px),
    radial-gradient(circle at 40% 70%, rgba(255, 255, 0, 0.1) 2px, transparent 2px);
  animation: flow 10s linear infinite;
}

@keyframes flow {
  0% { transform: translate(0, 0); }
  100% { transform: translate(100px, 100px); }
}

/* タイムライン */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 40px auto 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--electric-blue);
  left: 50%;
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  width: 100%;
}

.timeline-item:nth-child(odd) {
  padding-right: calc(50% + 30px);
  text-align: right;
}

.timeline-item:nth-child(even) {
  padding-left: calc(50% + 30px);
}

.timeline-date {
  font-family: 'Orbitron', sans-serif;
  color: var(--neon-green);
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.timeline-content {
  background: rgba(0, 0, 0, 0.3);
  padding: 20px;
  border-radius: var(--border-radius);
  border: 1px solid rgba(0, 255, 255, 0.2);
}

.timeline-content h4 {
  color: var(--cyber-pink);
  margin-bottom: 10px;
  font-family: 'Orbitron', sans-serif;
}

/* CTAセクション */
.cta-section {
  background: var(--dark-gradient);
  padding: 100px 0;
  text-align: center;
  position: relative;
}

.cta-description {
  font-size: 1.2rem;
  color: var(--silver-gray);
  max-width: 600px;
  margin: 0 auto 30px;
  line-height: 1.8;
}

.countdown {
  margin-top: 30px;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.2rem;
  color: var(--neon-green);
}

.countdown-timer {
  font-weight: 700;
  text-shadow: 0 0 10px rgba(57, 255, 20, 0.5);
}

/* フッター */
footer {
  background: #000;
  padding: 40px 0;
  border-top: 1px solid rgba(0, 255, 255, 0.2);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.9rem;
  color: var(--silver-gray);
}

.footer-links {
  display: flex;
  gap: 30px;
}

.footer-link {
  color: var(--electric-blue);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all var(--transition-speed) ease;
  position: relative;
}

.footer-link:hover {
  color: var(--cyber-pink);
  text-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
}

.footer-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--cyber-pink);
  transition: width var(--transition-speed) ease;
}

.footer-link:hover::after {
  width: 100%;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .main-title {
    font-size: 2.5rem;
  }
  
  .subtitle {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .data-visualization {
    flex-direction: column;
    gap: 20px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .timeline::before {
    left: 30px;
  }
  
  .timeline-item {
    padding-right: 0 !important;
    padding-left: 70px !important;
    text-align: left !important;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-links {
    justify-content: center;
  }
  
  .circuit-board {
    width: 100%;
    height: 300px;
  }
}

@media (max-width: 480px) {
  .main-title {
    font-size: 2rem;
  }
  
  .container {
    padding: 0 15px;
  }
  
  .section-dark,
  .section-light,
  .cta-section {
    padding: 60px 0;
  }
}
