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

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

body {
  background: #0b0b1e;
  color: #e0e0ff;
  font-family: 'Open Sans', sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
}

/* === グリッド背景（アニメーション） === */
.grid {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(to right, rgba(0,255,255,0.05) 1px, transparent 1px),
              linear-gradient(to bottom, rgba(0,255,255,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: gridMove 25s linear infinite;
  z-index: -2;
}

@keyframes gridMove {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(-40px, -40px); }
}

/* === ヘッダー（Hero） === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0,255,255,0.12) 0%, transparent 70%);
  animation: pulse 6s ease-in-out infinite;
  z-index: -1;
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%      { opacity: 0.7; transform: scale(1.05); }
}

.hero h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(2.5rem, 8vw, 5rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #00ffff, #ff00ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 20px rgba(0,255,255,0.5);
  animation: neonGlow 2s ease-in-out infinite alternate;
}

@keyframes neonGlow {
  from { text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff, 0 0 30px #00ffff; }
  to   { text-shadow: 0 0 20px #ff00ff, 0 0 30px #ff00ff, 0 0 40px #ff00ff; }
}

/* === 機能セクション（常に縦1列） === */
.features {
  max-width: 960px;
  margin: 4rem auto;
  padding: 0 1.5rem;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr; /* 常に1列 */
}

/* === カード共通 === */
.feature-card {
  background: rgba(20, 20, 50, 0.6);
  border: 1px solid rgba(0,255,255,0.3);
  border-radius: 12px;
  padding: 2rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0,255,255,0.15), transparent);
  transition: 0.7s;
}

.feature-card:hover::before {
  left: 100%;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: #00ffff;
  box-shadow: 0 12px 40px rgba(0,255,255,0.2);
}

.feature-card h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #00ffff;
  text-shadow: 0 0 10px rgba(0,255,255,0.4);
}

/* === コードブロック === */
.feature-card pre {
  background: rgba(0,0,0,0.4);
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.4;
  border: 1px solid rgba(0,255,255,0.2);
  margin: 1rem 0;
}

.feature-card code {
  color: #a0f0ff;
  font-family: 'Courier New', monospace;
}

/* === できることリスト（文字被り完全解消） === */
.capabilities {
  list-style: none;
  padding-left: 0;
  margin: 1.5rem 0;
}

.capabilities li {
  position: relative;
  padding: 1rem 0 1rem 3rem;
  min-height: 3.5rem;
  line-height: 1.5;
  border-bottom: 1px dashed rgba(0,255,255,0.2);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.capabilities li:hover {
  color: #00ffff;
  padding-left: 3.3rem;
}

.capabilities li:last-child {
  border-bottom: none;
}

.icon {
  position: absolute;
  left: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-weight: bold;
  color: #ff00ff;
  font-size: 1.2rem;
}

/* ヒントボックス */
.tip {
  margin-top: 1.5rem;
  padding: 1rem;
  background: rgba(255,0,255,0.1);
  border-left: 4px solid #ff00ff;
  border-radius: 0 8px 8px 0;
  font-size: 0.9rem;
  color: #e0e0ff;
}

.tip code {
  background: rgba(0,0,0,0.3);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
}

/* === CTA === */
.cta {
  text-align: center;
  padding: 4rem 1.5rem;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2), transparent);
}

.cta h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: #ff00ff;
}

.cta p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.btn {
  background: transparent;
  border: 2px solid #00ffff;
  color: #00ffff;
  padding: 0.8rem 2rem;
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0,255,255,0.3), transparent);
  transition: 0.6s;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  background: rgba(0,255,255,0.1);
  color: #fff;
  box-shadow: 0 0 20px rgba(0,255,255,0.5);
}

/* === フッター === */
footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  border-top: 1px solid rgba(0,255,255,0.2);
}