:root {
  --color-bg-dark: #000000;
  --color-bg-deep: #0a0a0a;
  --color-surface: rgba(0, 255, 255, 0.03);
  --color-panel: rgba(0, 255, 255, 0.05);
  --color-text: #ffffff;
  --color-muted: #64748b;
  --color-accent-cyan: #00ffff;
  --color-accent-neon: #ff0080;
  --color-accent-electric: #8b5cf6;
  --color-border: rgba(0, 255, 255, 0.2);
  --gradient-accent: linear-gradient(135deg, #00ffff 0%, #8b5cf6 50%, #ff0080 100%);
  --gradient-cyber: linear-gradient(45deg, transparent, rgba(0, 255, 255, 0.1), transparent);
  --shadow-neon: 0 0 20px rgba(0, 255, 255, 0.5);
  --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.3);
  --max-width: 1200px;
  --header-height: 80px;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'JetBrains Mono', 'SF Mono', 'Monaco', monospace;
  background: var(--color-bg-dark);
  color: var(--color-text);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: grid-move 20s linear infinite;
  pointer-events: none;
  z-index: -2;
}

@keyframes grid-move {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

main {
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--color-accent-cyan);
}

img {
  max-width: 100%;
  display: block;
}

header {
  backdrop-filter: blur(20px);
  background: rgba(0, 0, 0, 0.9);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 60;
  box-shadow: var(--shadow-neon);
}

.container {
  width: min(100% - 56px, var(--max-width));
  margin: 0 auto;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.navbar nav {
  position: relative;
}

.logo {
  font-weight: 900;
  letter-spacing: 0.2em;
  font-size: 1.5rem;
  color: var(--color-accent-cyan);
  text-shadow: 0 0 10px var(--color-accent-cyan);
  transition: all 0.3s ease;
}

.logo:hover {
  color: var(--color-text);
  text-shadow:
    0 0 20px var(--color-accent-cyan),
    0 0 40px var(--color-accent-cyan);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.95rem;
}

.nav-links a {
  opacity: 0.86;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
  opacity: 1;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(12, 18, 35, 0.7);
  color: var(--color-text);
  font-weight: 600;
}

.btn-cyber {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  background: transparent;
  border: 2px solid var(--color-accent-cyan);
  color: var(--color-accent-cyan);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-family: monospace;
  font-weight: bold;
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
}

.btn-cyber::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-cyber);
  transition: left 0.3s ease;
}

.btn-cyber:hover {
  color: #000;
  box-shadow:
    0 0 20px var(--color-accent-cyan),
    inset 0 0 20px rgba(0, 255, 255, 0.1);
}

.btn-cyber:hover::before {
  left: 0;
}

.btn-cyber span {
  position: relative;
  z-index: 1;
}

.cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(12, 18, 35, 0.6);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* フルスクリーン動画背景 */
.hero-video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.background-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}

.background-video.loaded {
  opacity: 1;
}

.video-fallback-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.fluid-canvas-bg {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(0, 255, 255, 0.1), rgba(139, 92, 246, 0.05) 60%, transparent 80%);
}

/* 動画オーバーレイ（暗くする） */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3));
  z-index: 2;
}

/* オーバーレイコンテンツ */
.hero-content-overlay {
  position: relative;
  z-index: 3;
  width: 100%;
  text-align: center;
  padding: 120px 0;
}

.hero-content-center {
  max-width: 800px;
  margin: 0 auto;
}

.terminal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: rgba(0, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  margin-bottom: 40px;
  font-family: monospace;
  font-size: 14px;
}

.terminal-title {
  color: var(--color-accent-cyan);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.status-indicator {
  color: #00ff00;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.cyber-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-family: monospace;
  line-height: 1.3;
  margin: 0 0 30px;
  text-transform: uppercase;
  letter-spacing: 3px;
}

.company-highlight {
  font-size: 1.2em;
  color: var(--color-accent-cyan);
  text-shadow:
    0 0 10px var(--color-accent-cyan),
    0 0 20px var(--color-accent-cyan),
    0 0 30px var(--color-accent-cyan);
  font-weight: 900;
  letter-spacing: 4px;
  display: block;
  margin-bottom: 10px;
  animation: company-pulse 3s ease-in-out infinite alternate;
}

@keyframes company-pulse {
  0% {
    text-shadow:
      0 0 10px var(--color-accent-cyan),
      0 0 20px var(--color-accent-cyan),
      0 0 30px var(--color-accent-cyan);
  }
  100% {
    text-shadow:
      0 0 15px var(--color-accent-cyan),
      0 0 30px var(--color-accent-cyan),
      0 0 45px var(--color-accent-cyan);
  }
}

.neon-text {
  color: var(--color-accent-cyan);
  text-shadow:
    0 0 5px var(--color-accent-cyan),
    0 0 10px var(--color-accent-cyan),
    0 0 15px var(--color-accent-cyan);
  animation: neon-flicker 2s infinite alternate;
}

@keyframes neon-flicker {
  0%, 100% {
    text-shadow:
      0 0 5px var(--color-accent-cyan),
      0 0 10px var(--color-accent-cyan),
      0 0 15px var(--color-accent-cyan);
  }
  50% {
    text-shadow:
      0 0 2px var(--color-accent-cyan),
      0 0 5px var(--color-accent-cyan),
      0 0 8px var(--color-accent-cyan);
  }
}

.hero-description {
  font-size: 1.1rem;
  color: var(--color-muted);
  font-family: monospace;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.22);
  color: var(--color-accent-cyan);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin-bottom: 28px;
}

.hero-visual {
  position: relative;
  height: 420px;
  display: grid;
  place-items: center;
}

.fluid-canvas {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(59, 130, 246, 0.3), rgba(34, 211, 238, 0.1) 60%, transparent 80%);
  border: 1px solid rgba(148, 163, 184, 0.15);
  backdrop-filter: blur(2px);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fluid-canvas:hover {
  transform: scale(1.02);
  box-shadow: 0 30px 80px rgba(37, 99, 235, 0.4);
}

.fluid-canvas::after {
  content: '';
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.35), rgba(34, 211, 238, 0.05));
  filter: blur(8px);
  pointer-events: none;
}

.glass-panel {
  position: relative;
  width: 320px;
  border-radius: 26px;
  background: rgba(10, 16, 32, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.18);
  padding: 28px;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-soft);
}

.glass-panel h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.glass-panel p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.94rem;
  line-height: 1.7;
}

.micro-stats {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.micro-stat {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
}

.micro-stat strong {
  font-size: 1.2rem;
  color: #fff;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}

.hero-footnote {
  display: flex;
  gap: 18px;
  margin-top: 36px;
  flex-wrap: wrap;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.hero-footnote span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.section {
  padding: 92px 0;
  position: relative;
}

.section--contrast {
  background: rgba(6, 10, 22, 0.76);
  border-top: 1px solid rgba(148, 163, 184, 0.06);
  border-bottom: 1px solid rgba(148, 163, 184, 0.06);
}

.section-header {
  max-width: 720px;
  margin: 0 auto 52px;
  text-align: center;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: var(--color-accent-cyan);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 18px;
}

.section-description {
  color: var(--color-muted);
  line-height: 1.8;
}

.capsule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.capsule-card {
  position: relative;
  padding: 28px;
  border-radius: 26px;
  background: rgba(12, 16, 32, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.16);
  overflow: hidden;
  transition: transform 0.25s ease, border 0.25s ease;
}

.capsule-card::before {
  content: '';
  position: absolute;
  inset: -60% -10% 60% 60%;
  background: linear-gradient(130deg, rgba(59, 130, 246, 0.35), rgba(34, 211, 238, 0));
  opacity: 0.6;
  transform: rotate(8deg);
}

.capsule-card:hover {
  transform: translateY(-8px);
  border-color: rgba(59, 130, 246, 0.4);
}

.capsule-card h3 {
  margin: 0 0 14px;
}

.capsule-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.grid {
  display: grid;
  gap: 26px;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.card {
  position: relative;
  padding: 28px;
  border-radius: 26px;
  background: rgba(10, 14, 30, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.16);
  overflow: hidden;
  transition: transform 0.25s ease, border 0.25s ease;
}

.card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), transparent 70%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.card:hover {
  transform: translateY(-8px);
  border-color: rgba(59, 130, 246, 0.35);
}

.card:hover::after {
  opacity: 0.4;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 14px;
}

.card p {
  color: var(--color-muted);
  margin: 0;
  line-height: 1.7;
}

.card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--color-muted);
  line-height: 1.7;
}

.card li {
  margin-bottom: 8px;
}

.metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  margin-top: 28px;
}

.metric {
  padding: 20px 26px;
  border-radius: 22px;
  background: rgba(9, 13, 24, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.18);
  text-align: center;
}

.metric strong {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.logo-wall {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
  color: var(--color-muted);
  opacity: 0.7;
}


.diagonal-stack {
  display: grid;
  gap: 24px;
}

.diagonal-item {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  align-items: center;
  padding: 32px;
  border-radius: 32px;
  background: rgba(12, 16, 32, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.16);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-soft);
}

.diagonal-item:nth-child(odd) {
  transform: translateY(-14px);
}

.diagonal-item:nth-child(even) {
  transform: translateY(14px);
}

.diagonal-item h3 {
  margin-top: 0;
  margin-bottom: 12px;
}

.diagonal-item p {
  color: var(--color-muted);
  margin: 0;
  line-height: 1.75;
}

.bullet-list {
  margin: 0;
  padding-left: 20px;
  color: var(--color-muted);
  line-height: 1.7;
}

.impact-mosaic {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.impact-tile {
  position: relative;
  padding: 24px;
  border-radius: 24px;
  background: rgba(9, 14, 26, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.14);
  overflow: hidden;
}

.impact-tile strong {
  font-size: 1.4rem;
  display: block;
  margin-bottom: 10px;
}

.impact-tile span {
  color: var(--color-muted);
  font-size: 0.92rem;
}

.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #fff 20%, #fff 80%, transparent);
  margin-top: 56px;
}

.marquee-track {
  display: flex;
  gap: 48px;
  animation: marquee 16s linear infinite;
  color: var(--color-muted);
  font-size: 0.92rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.storyboard {
  display: grid;
  gap: 32px;
}

.story-card {
  position: relative;
  padding: 32px;
  border-radius: 28px;
  background: rgba(10, 14, 30, 0.8);
  border: 1px solid rgba(59, 130, 246, 0.18);
  overflow: hidden;
}

.story-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), transparent 70%);
  opacity: 0.3;
}

.story-card h3 {
  margin-top: 0;
  margin-bottom: 12px;
}

.story-card p {
  color: var(--color-muted);
  margin: 0 0 16px;
}

.story-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
}

.story-tag {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(12, 18, 35, 0.65);
}

.blog-card {
  padding: 30px;
  border-radius: 26px;
  background: rgba(9, 13, 24, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.18);
  display: flex;
  flex-direction: column;
  gap: 14px;
  line-height: 1.7;
}

.blog-card h3 {
  margin: 0;
}

.blog-meta {
  font-size: 0.85rem;
  color: var(--color-muted);
  letter-spacing: 0.04em;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.badge-tag {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(12, 16, 32, 0.65);
  font-size: 0.82rem;
}


.testimonials {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.testimonial-card {
  padding: 28px;
  border-radius: 26px;
  background: rgba(9, 13, 24, 0.76);
  border: 1px solid rgba(148, 163, 184, 0.18);
  line-height: 1.8;
}

.testimonial-card strong {
  display: block;
  margin-top: 18px;
  color: #fff;
  letter-spacing: 0.04em;
}

.section-cta {
  position: relative;
  border-radius: 32px;
  padding: 72px 40px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.28), rgba(6, 182, 212, 0.22));
  border: 1px solid rgba(148, 163, 184, 0.16);
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.section-cta h2 {
  margin-top: 0;
  font-size: 2.2rem;
  margin-bottom: 18px;
}

.section-cta p {
  color: var(--color-muted);
  margin-bottom: 30px;
}

footer {
  margin-top: 110px;
  padding: 60px 0 40px;
  background: rgba(3, 5, 12, 0.92);
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  color: var(--color-muted);
}

.footer-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.footer-meta {
  font-size: 0.88rem;
  line-height: 1.7;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.9rem;
}

.footer-nav strong {
  color: var(--color-accent-cyan);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
  opacity: 0.9;
}

.badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.16);
  color: var(--color-accent-green);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(9, 13, 24, 0.8);
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.table-row {
  display: grid;
  align-items: stretch;
}

.table-cell {
  padding: 20px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  color: var(--color-muted);
  font-size: 0.95rem;
}

.table-row:last-child .table-cell {
  border-bottom: none;
}

.table-row .table-cell:first-child {
  color: #fff;
  font-weight: 600;
}

.quote {
  margin: 24px 0;
  padding: 22px 26px;
  border-left: 3px solid var(--color-accent-cyan);
  background: rgba(12, 18, 35, 0.72);
  color: var(--color-muted);
  border-radius: 0 18px 18px 0;
}

.form {
  display: grid;
  gap: 26px;
  max-width: 720px;
  margin: 0 auto;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form label {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.form input,
.form select,
.form textarea {
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(12, 16, 32, 0.7);
  color: var(--color-text);
  font-family: inherit;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 2px solid rgba(59, 130, 246, 0.5);
}

.form small {
  color: var(--color-muted);
}

.video-placeholder {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.25), rgba(16, 185, 129, 0.18));
  height: 320px;
}

.video-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,%3Csvg width="400" height="400" viewBox="0 0 400 400" fill="none" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath opacity="0.04" d="M0 40H400" stroke="white"/%3E%3Cpath opacity="0.04" d="M40 0V400" stroke="white"/%3E%3C/svg%3E');
  mix-blend-mode: screen;
  opacity: 0.35;
}

.policy-section {
  margin-bottom: 48px;
  background: rgba(10, 14, 28, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 26px;
  padding: 28px;
}

.policy-section h2 {
  margin-top: 0;
}

.policy-section p {
  color: var(--color-muted);
  line-height: 1.8;
}

.timeline {
  display: grid;
  gap: 24px;
}

.timeline-item {
  padding: 24px;
  border-radius: 22px;
  background: rgba(9, 13, 24, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.timeline-item strong {
  display: block;
  margin-bottom: 12px;
}

.badge-outline {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: var(--color-accent-cyan);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.2);
  color: var(--color-accent-cyan);
  font-size: 0.85rem;
  margin-bottom: 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 900px) {
  .hero {
    padding: 120px 0 90px;
  }

  .diagonal-item {
    transform: none !important;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: calc(var(--header-height) - 6px);
    right: 0;
    left: -40px;
    padding: 26px;
    background: rgba(5, 7, 15, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 24px;
    flex-direction: column;
    gap: 18px;
    z-index: 80;
  }

  /* タッチターゲット最適化 */
  .btn-cyber {
    min-height: 44px;
    padding: 14px 24px;
  }

  .nav-links a {
    min-height: 44px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
  }

  .nav-links a:hover {
    background: rgba(0, 255, 255, 0.1);
    border-color: rgba(0, 255, 255, 0.3);
    color: var(--color-accent-cyan);
  }

  .nav-toggle {
    min-height: 44px;
    min-width: 44px;
    padding: 12px;
    font-size: 16px;
    border: 1px solid var(--color-accent-cyan);
    border-radius: 8px;
    background: rgba(0, 255, 255, 0.1);
    color: var(--color-accent-cyan);
    transition: all 0.3s ease;
  }

  .nav-toggle:hover {
    background: rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
  }

  /* ナビゲーション展開時のオーバーレイ */
  .nav-links[data-open]::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
    backdrop-filter: blur(4px);
  }

  /* フォントサイズ調整 */
  .section-cta h2 {
    font-size: 1.8rem;
  }

  .glass-panel h3,
  .capsule-card h3,
  .card h3,
  .diagonal-item h3,
  .story-card h3,
  .blog-card h3 {
    font-size: 1.2rem;
  }

  body {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  p {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .nav-links[data-open] {
    display: flex;
  }
}

/* 小さなモバイル端末用 */
@media (max-width: 480px) {
  :root {
    font-size: 14px;
  }

  .container {
    width: min(100% - 24px, var(--max-width));
  }

  .section-cta h2 {
    font-size: 1.5rem;
  }

  .glass-panel h3,
  .capsule-card h3,
  .card h3 {
    font-size: 1.1rem;
  }

  body,
  p {
    font-size: 0.85rem;
  }

  /* カードレイアウト最適化 */
  .capsule-grid,
  .grid-3,
  .grid-2,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .diagonal-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* カード内要素の調整 */
  .card,
  .glass-panel,
  .capsule-card {
    padding: 16px;
  }

  /* フッターの調整 */
  .footer-grid {
    text-align: center;
  }

  .nav-links a {
    display: block;
    text-align: center;
    padding: 6px 0;
  }

  .nav-links .cta-primary {
    width: 100%;
    justify-content: center;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero {
    padding: 110px 0 80px;
  }

  .section {
    padding: 70px 0;
  }

  .hero-visual {
    height: 360px;
  }

  .glass-panel {
    width: 90%;
  }
}

/* Additional animations for enhanced UX */
@keyframes fluidGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.4);
  }
  50% {
    box-shadow: 0 0 40px rgba(34, 211, 238, 0.6), 0 0 60px rgba(16, 185, 129, 0.3);
  }
}

.cta-primary:hover {
  animation: fluidGlow 2s ease-in-out infinite;
}

/* Intersection animation for cards */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.capsule-card,
.story-card,
.testimonial-card {
  opacity: 0;
  animation: slideInUp 0.6s ease-out forwards;
}

.capsule-card:nth-child(1) { animation-delay: 0.1s; }
.capsule-card:nth-child(2) { animation-delay: 0.2s; }
.capsule-card:nth-child(3) { animation-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .capsule-card,
  .story-card,
  .testimonial-card {
    opacity: 1;
    animation: none;
  }
}
