/* フラッピーバード風（モバイルファースト） */
.flappy-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.9);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.flappy-container {
  width: min(520px, 94vw);
  max-height: 90vh;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: 0 20px 40px rgba(2, 6, 23, 0.6);
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.flappy-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.flappy-title {
  font-size: 1.2rem;
  letter-spacing: 0.15em;
  color: #34d399;
}

.flappy-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(148, 163, 184, 0.1);
  color: #e2e8f0;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.2s;
}

.flappy-close:hover {
  background: rgba(148, 163, 184, 0.2);
}

.flappy-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.flappy-info {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.5rem;
  align-items: stretch;
}

.flappy-card {
  background: rgba(2, 6, 23, 0.4);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 0.75rem;
  padding: 0.4rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.flappy-card h3 {
  font-size: 0.7rem;
  color: #94a3b8;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0;
}

.flappy-card p {
  font-size: 1.15rem;
  font-weight: 700;
  color: #e2e8f0;
  margin: 0;
}

.flappy-leaderboard-btn {
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #34d399;
  background: rgba(2, 6, 23, 0.4);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.flappy-leaderboard-btn:hover {
  background: rgba(52, 211, 153, 0.15);
  border-color: rgba(52, 211, 153, 0.4);
}

.flappy-board {
  position: relative;
  background: rgba(2, 6, 23, 0.7);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 0.75rem;
  padding: 0.5rem;
  display: flex;
  justify-content: center;
}

#flappy-canvas {
  width: 100%;
  max-width: 320px;
  height: auto;
  background: #020617;
  border-radius: 0.5rem;
  touch-action: none;
}

.flappy-ready {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 6, 23, 0.5);
  border-radius: 0.75rem;
  pointer-events: none;
}

.flappy-ready.hidden {
  display: none;
}

.flappy-tap-hint {
  font-size: 1.1rem;
  font-weight: 600;
  color: #34d399;
  text-shadow: 0 0 20px rgba(52, 211, 153, 0.5);
  animation: flappyPulse 1.2s ease-in-out infinite;
}

@keyframes flappyPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

.flappy-leaderboard-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 6, 23, 0.85);
  border-radius: 0.75rem;
  z-index: 10;
}

.flappy-leaderboard-popup {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  max-width: 90%;
  max-height: 80%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.flappy-leaderboard-title {
  font-size: 0.75rem;
  color: #94a3b8;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 0.5rem 0;
}

.flappy-leaderboard-list {
  font-size: 0.85rem;
  color: #e2e8f0;
  margin: 0;
  padding-left: 1.25rem;
  list-style: decimal;
  max-height: 240px;
  overflow-y: auto;
}

.flappy-leaderboard-list li {
  margin-bottom: 0.2rem;
}

.flappy-leaderboard-list:has(.flappy-leaderboard-empty) {
  list-style: none;
  padding-left: 0;
}

.flappy-leaderboard-empty {
  color: #64748b;
  font-style: italic;
}

.flappy-leaderboard-close {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #0f172a;
  background: #34d399;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
}

.flappy-leaderboard-close:hover {
  background: #2dd4bf;
}

.flappy-game-over {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: rgba(2, 6, 23, 0.8);
  border-radius: 0.75rem;
  color: #e2e8f0;
}

.flappy-restart {
  padding: 0.6rem 1.2rem;
  border-radius: 0.5rem;
  border: none;
  background: #34d399;
  color: #0f172a;
  font-weight: 600;
  cursor: pointer;
}

@media (min-width: 768px) {
  .flappy-container {
    width: min(760px, 90vw);
    padding: 1.75rem;
  }

  .flappy-body {
    align-items: center;
  }

  #flappy-canvas {
    max-width: 420px;
  }
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #000000;
}



.min-h-screen {
  min-height: 100vh;
}

.bg-slate-950 {
  background-color: transparent;
}

.text-slate-200 {
  color: #e2e8f0;
}

.font-sans {
  font-family: inherit;
}

/* Selection */
::selection {
  background-color: #6366f1;
  color: white;
}

/* Header */
.header {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 50;
  background-color: transparent;
  backdrop-filter: none;
  border-bottom: none;
  transition: all 0.3s;
}

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

.logo {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: -0.05em;
  color: white;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  top: 5px;
}

.header-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .header-nav {
    display: flex;
  }
}

.nav-menu {
  display: none;
  gap: 2rem;
}

@media (min-width: 768px) {
  .nav-menu {
    display: flex;
  }
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-link:hover {
  color: #818cf8;
}

.contact-btn {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  background-color: #f1f5f9;
  color: #0f172a;
  border-radius: 0.375rem;
  transition: all 0.2s;
}

.contact-btn:hover {
  background-color: white;
}

/* Hamburger Menu Button */
.hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 2rem;
  height: 2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 51;
}

.hamburger-btn:focus {
  outline: none;
}

.hamburger-line {
  width: 2rem;
  height: 0.25rem;
  background-color: white;
  border-radius: 10px;
  transition: all 0.3s linear;
  position: relative;
  transform-origin: 1px;
}

.hamburger-btn.active .hamburger-line:first-child {
  transform: rotate(45deg);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: translateX(20px);
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg);
}

@media (min-width: 768px) {
  .hamburger-btn {
    display: none;
  }
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 4rem;
  left: 0;
  width: 100%;
  height: calc(100vh - 4rem);
  background-color: rgba(2, 6, 23, 0.98);
  backdrop-filter: blur(12px);
  z-index: 49;
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
}

.mobile-menu.active {
  display: block;
  transform: translateX(0);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem;
  gap: 1.5rem;
}

.mobile-nav-link {
  font-size: 1.125rem;
  font-weight: 500;
  color: #cbd5e1;
  text-decoration: none;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(30, 41, 59, 0.5);
  transition: color 0.2s;
}

.mobile-nav-link:hover {
  color: #818cf8;
}

.mobile-contact-btn {
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  background-color: #4f46e5;
  color: white;
  border-radius: 0.375rem;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s;
}

.mobile-contact-btn:hover {
  background-color: #4338ca;
}

@media (min-width: 768px) {
  .mobile-menu {
    display: none !important;
  }
}

/* Hero Section */
.hero-section {
  position: relative;
  padding-top: 8rem;
  padding-bottom: 5rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero-section {
    padding-top: 12rem;
    padding-bottom: 8rem;
  }
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  background-image: url('../img/matrix01.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: none;
}

.hero-radial-gradient {
  position: absolute;
  inset: 0;
  background: none;
}

.matrix-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Particles */
.particles-container {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background-color: rgba(129, 140, 248, 0.3);
  border-radius: 50%;
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 10;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  transform-origin: center top;
  transition: transform 0.2s ease-out, opacity 0.2s ease-out;
}

.hero-text {
  max-width: 48rem;
  opacity: 1;
  transform: translateY(0);
  transition: all 1s;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(15, 23, 42, 0.5);
  border: 1px solid #1e293b;
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(4px);
}

.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: #22c55e;
  animation: pulse 2s infinite;
}

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

.status-text {
  font-size: 0.75rem;
  font-family: monospace;
  color: #94a3b8;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  color: white;
  letter-spacing: -0.05em;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 4.5rem;
  }
}

.gradient-text {
  background: linear-gradient(to right, #818cf8, #22d3ee, #818cf8);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient 3s ease infinite;
}

@keyframes gradient {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.hero-description {
  font-size: 1.125rem;
  color: #cbd5e1;
  margin-bottom: 2rem;
  max-width: 36rem;
  line-height: 1.75;
}

.hero-code {
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace;
  font-size: 1rem;
  color: #e2e8f0;
  background-color: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
  max-width: 36rem;
  overflow-x: auto;
  backdrop-filter: blur(4px);
  counter-reset: step-counter;
  transition: all 0.3s ease;
  cursor: pointer;
}

.hero-code:hover {
  background-color: rgba(15, 23, 42, 0.85);
  border-color: rgba(99, 102, 241, 0.6);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
  transform: translateY(-2px);
}

.hero-code:hover .keyword {
  color: #d9a9ff;
}

.hero-code:hover .variable {
  color: #9bbaff;
}

.hero-code:hover .class-name {
  color: #ffd789;
}

.hero-code .code-line {
  display: block;
  counter-increment: step-counter;
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 3rem;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace;
  font-size: 1rem;
  color: #e2e8f0;
  line-height: 1.6;
  white-space: pre;
}

.hero-code .code-line:last-child {
  margin-bottom: 0;
}

.hero-code .code-line::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  color: rgba(148, 163, 184, 0.6);
  font-size: 0.875rem;
  font-weight: 500;
  min-width: 2rem;
  text-align: right;
  padding-right: 1rem;
  user-select: none;
}

/* モバイル向けのコードブロックスタイル */
@media (max-width: 767px) {
  .hero-code {
    font-size: 0.875rem;
    padding: 1rem;
    margin-left: 1rem;
    margin-right: 1rem;
    max-width: calc(100% - 2rem);
  }

  .hero-code .code-line {
    font-size: 0.875rem;
    padding-left: 2.5rem;
  }

  .hero-code .code-line::before {
    min-width: 1.5rem;
    padding-right: 0.75rem;
    font-size: 0.75rem;
  }
}

/* JavaScript Syntax Highlighting */
.hero-code .keyword {
  color: #c792ea;
  font-weight: 500;
}

.hero-code .variable {
  color: #82aaff;
}

.hero-code .class-name {
  color: #ffcb6b;
}

.hero-code .operator {
  color: #89ddff;
}

.hero-code .punctuation {
  color: #c792ea;
}

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

.btn-primary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background-color: #4f46e5;
  color: white;
  font-weight: 500;
  border-radius: 0.375rem;
  transition: all 0.2s;
}

.btn-primary:hover {
  background-color: #4338ca;
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
  padding: 0.75rem 1.5rem;
  border: 1px solid #475569;
  color: #cbd5e1;
  font-weight: 500;
  border-radius: 0.375rem;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background-color: rgba(30, 41, 59, 0.5);
  border-color: rgba(129, 140, 248, 0.5);
  transform: scale(1.05);
}

.icon-arrow {
  display: inline-block;
  vertical-align: middle;
}

/* Services Section */
.services-section {
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
  transform: translateY(0);
}

.services-bg-animation {
  position: absolute;
  inset: 0;
  opacity: 0.05;
}

.bg-pulse {
  position: absolute;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  filter: blur(96px);
  animation: pulse 4s infinite;
}

.bg-pulse-1 {
  top: 0;
  left: 0;
  background-color: #6366f1;
}

.bg-pulse-2 {
  bottom: 0;
  right: 0;
  background-color: #06b6d4;
  animation-delay: 1s;
}

.services-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 10;
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: white;
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 1s;
  opacity: 1;
  transform: translateY(0);
}

.section-title.hidden {
  opacity: 0;
  transform: translateY(2.5rem);
}

.icon-terminal,
.icon-cpu {
  width: 1.5rem;
  height: 1.5rem;
  color: #6366f1;
}

.services-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.service-card {
  padding: 2rem;
  border-radius: 1rem;
  background-color: #020617;
  border: 1px solid #1e293b;
  transition: all 0.3s;
  opacity: 1;
  transform: translateY(0);
}

.service-card.hidden {
  opacity: 0;
  transform: translateY(2.5rem);
}

.service-card:hover {
  border-color: rgba(129, 140, 248, 0.5);
  transform: scale(1.05);
  box-shadow: 0 20px 25px rgba(99, 102, 241, 0.2);
}

.service-icon {
  width: 2.5rem;
  height: 2.5rem;
  color: #818cf8;
  margin-bottom: 1rem;
  transition: all 0.3s;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(12deg);
}

.service-icon-cyan {
  color: #22d3ee;
}

.service-icon-purple {
  color: #a78bfa;
}

.service-icon-emerald {
  color: #34d399;
}

.service-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.75rem;
}

.service-description {
  color: #94a3b8;
  margin-bottom: 1rem;
  line-height: 1.75;
}

.service-list {
  font-size: 0.875rem;
  color: #64748b;
  list-style: none;
  font-family: monospace;
}

.service-list li {
  margin-bottom: 0.25rem;
  transition: color 0.2s;
}

.service-list li::before {
  content: '• ';
  margin-right: 0.25rem;
}

.service-list li:hover {
  color: #818cf8;
}

.service-list-cyan li:hover {
  color: #22d3ee;
}

.service-list-purple li:hover {
  color: #a78bfa;
}

.service-list-emerald li:hover {
  color: #34d399;
}

/* Products Section */
.products-section {
  padding: 5rem 0;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  position: relative;
}

.products-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.product-card {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid rgba(99, 102, 241, 0.2);
  padding: 2rem;
  transition: all 0.3s;
  opacity: 1;
  transform: translateX(0);
}

.product-card.hidden {
  opacity: 0;
}

.product-card-indigo {
  background: rgba(2, 6, 23, 0.7);
}

.product-card-indigo.hidden {
  transform: translateX(-2.5rem);
}

.product-card-cyan {
  background: rgba(2, 6, 23, 0.7);
}

.product-card-cyan.hidden {
  transform: translateX(2.5rem);
}

.product-card:hover {
  border-color: rgba(99, 102, 241, 0.5);
  transform: scale(1.05);
  box-shadow: 0 20px 25px rgba(99, 102, 241, 0.2);
}

.product-icon-bg {
  position: absolute;
  top: 0;
  right: 0;
  padding: 1rem;
  opacity: 0.1;
  animation: pulse 2s infinite;
}

.product-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 10;
}

.product-description {
  color: #c7d2fe;
  margin-bottom: 1rem;
  position: relative;
  z-index: 10;
}

.product-description-cyan {
  color: #a5f3fc;
}

.product-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  background-color: rgba(99, 102, 241, 0.2);
  color: #c7d2fe;
  border-radius: 0.25rem;
  position: relative;
  z-index: 10;
  display: inline-block;
}

.product-badge-cyan {
  background-color: rgba(6, 182, 212, 0.2);
  color: #a5f3fc;
}

/* Contact Section */
.contact-section {
  padding: 5rem 0;
  background-color: #0f172a;
  position: relative;
  overflow: hidden;
}

.company-section {
  padding: 5rem 0;
  background-color: #000000;
  position: relative;
}

@media (min-width: 768px) {
  .company-section {
    padding: 6rem 0;
  }
}

.contact-bg-animation {
  position: absolute;
  inset: 0;
  opacity: 0.05;
}

.contact-bg-animation::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24rem;
  height: 24rem;
  background-color: #6366f1;
  border-radius: 50%;
  filter: blur(96px);
  transform: translate(-50%, -50%);
  animation: pulse 4s infinite;
}

.contact-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 10;
}

.contact-header {
  text-align: center;
  margin-bottom: 3rem;
  transition: all 1s;
  opacity: 1;
  transform: translateY(0);
}

.contact-header.hidden {
  opacity: 0;
  transform: translateY(2.5rem);
}

.contact-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background-color: rgba(99, 102, 241, 0.2);
  margin-bottom: 1.5rem;
}

.contact-icon {
  width: 2rem;
  height: 2rem;
  color: #818cf8;
}

.contact-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .contact-title {
    font-size: 2.25rem;
  }
}

.contact-subtitle {
  color: #94a3b8;
  max-width: 42rem;
  margin: 0 auto;
}

.contact-form-wrapper {
  max-width: 42rem;
  margin: 0 auto;
  transition: all 1s;
  opacity: 1;
  transform: translateY(0);
}

.contact-form-wrapper.hidden {
  opacity: 0;
  transform: translateY(2.5rem);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #cbd5e1;
  margin-bottom: 0.5rem;
}

.required {
  color: #f87171;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: #020617;
  border: 1px solid #1e293b;
  border-radius: 0.5rem;
  color: white;
  font-size: 1rem;
  transition: all 0.2s;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #64748b;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

.form-input.error:focus,
.form-select.error:focus,
.form-textarea.error:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.3);
}

.form-textarea {
  resize: none;
}

.form-footer {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-submit {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  background-color: #4f46e5;
  color: white;
  font-weight: 500;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

@media (min-width: 768px) {
  .btn-submit {
    flex: none;
  }
}

.btn-submit:hover {
  background-color: #4338ca;
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.5);
}

.icon-send {
  width: 1rem;
  height: 1rem;
}

.form-note {
  font-size: 0.75rem;
  color: #64748b;
}

.error-message {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #ef4444;
  line-height: 1.4;
}

.form-success-message {
  padding: 1rem;
  margin-bottom: 1.5rem;
  background-color: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 0.5rem;
  color: #22c55e;
  font-size: 0.875rem;
  line-height: 1.6;
  animation: slideIn 0.3s ease-out;
}

.form-error-message {
  padding: 1rem;
  margin-bottom: 1.5rem;
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 0.5rem;
  color: #ef4444;
  font-size: 0.875rem;
  line-height: 1.6;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-submit:disabled:hover {
  background-color: #4f46e5;
  transform: none;
  box-shadow: none;
}

/* Footer */
.footer {
  background-color: #000000;
  padding: 3rem 0;
  transition: all 1s;
  opacity: 1;
  transform: translateY(0);
}


@media (min-width: 768px) {
  .footer {
    padding: 3.5rem 0;
  }
}

.footer.hidden {
  opacity: 0;
  transform: translateY(2.5rem);
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-header {
  text-align: center;
  margin-bottom: 4rem;
  transition: all 1s;
  opacity: 1;
  transform: translateY(0);
}

.footer-header.hidden {
  opacity: 0;
  transform: translateY(2.5rem);
}

.footer-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .footer-title {
    font-size: 3rem;
  }
}

.footer-subtitle {
  color: #94a3b8;
  font-size: 1.125rem;
}

.footer-content {
  max-width: 64rem;
  margin: 0 auto;
  margin-bottom: 4rem;
}

.company-info {
  transition: all 1s;
  opacity: 1;
  transform: translateY(0);
}

.company-info.hidden {
  opacity: 0;
  transform: translateY(2.5rem);
}

.company-name {
  font-size: 1.875rem;
  font-weight: 700;
  color: white;
  margin-bottom: 2rem;
  text-align: center;
}

@media (min-width: 768px) {
  .company-name {
    font-size: 2.25rem;
  }
}

.company-description {
  color: #cbd5e1;
  font-size: 1.125rem;
  margin-bottom: 2.5rem;
  line-height: 1.75;
  text-align: center;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .company-description {
    font-size: 1.25rem;
  }
}

.company-code-block {
  margin-top: 3rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  overflow-x: auto;
}

.company-code-block pre {
  background-color: #1e1e1e;
  border: 1px solid #3e3e3e;
  border-radius: 0.375rem;
  padding: 1.5rem;
  margin: 0;
  overflow-x: auto;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace;
  font-size: 0.875rem;
  line-height: 1.6;
}

.company-code-block code {
  display: block;
  color: #d4d4d4;
  font-family: inherit;
  font-size: inherit;
}

.company-code-block .code-keyword {
  color: #569cd6;
}

.company-code-block .code-type {
  color: #4ec9b0;
}

.company-code-block .code-property {
  color: #9cdcfe;
}

.company-code-block .code-string {
  color: #ce9178;
}

@media (min-width: 768px) {
  .company-code-block pre {
    font-size: 1rem;
    padding: 2rem;
  }
}

.footer-bottom {
  margin-top: 4rem;
  padding-top: 2rem;
  text-align: center;
}

.copyright {
  color: #64748b;
  font-size: 0.875rem;
}

/* Float animation for particles */
@keyframes float {
  0%, 100% {
    transform: translateY(0) translateX(0);
    opacity: 0.3;
  }
  25% {
    transform: translateY(-20px) translateX(10px);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-40px) translateX(-10px);
    opacity: 0.3;
  }
  75% {
    transform: translateY(-20px) translateX(5px);
    opacity: 0.6;
  }
}

/* ============================================
   ギミック用スタイル
   ============================================ */

/* コンソールコマンドパレット */
.command-palette {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.command-palette.active {
  display: flex;
  opacity: 1;
}

.command-palette-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
}

.command-palette-container {
  position: relative;
  width: 90%;
  max-width: 600px;
  background: #0f172a;
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 0.75rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  z-index: 1;
}

.command-palette-results {
  display: none !important;
}

.command-palette-header {
  display: flex;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid rgba(99, 102, 241, 0.2);
  gap: 0.75rem;
}

.command-palette-icon {
  color: #6366f1;
  font-family: monospace;
  font-size: 1.25rem;
}

.command-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #e2e8f0;
  font-size: 1rem;
  font-family: monospace;
  outline: none;
}

.command-input::placeholder {
  color: #64748b;
}

.command-palette-close {
  color: #64748b;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  background: rgba(100, 116, 139, 0.1);
  border-radius: 0.25rem;
}

.command-palette-results {
  max-height: 400px;
  overflow-y: auto;
  padding: 0.5rem;
}

.command-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.2s;
}

.command-item:hover {
  background: rgba(99, 102, 241, 0.1);
}

.command-name {
  font-family: monospace;
  color: #6366f1;
  font-weight: 500;
}

.command-desc {
  color: #94a3b8;
  font-size: 0.875rem;
}

.command-help,
.command-error {
  padding: 1rem;
  color: #e2e8f0;
  line-height: 1.6;
}

.command-help code {
  background: rgba(99, 102, 241, 0.2);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  color: #818cf8;
  font-family: monospace;
}

.command-error {
  color: #ef4444;
}

/* ロゴパーティクル */
.logo-particle {
  position: fixed;
  width: 4px;
  height: 4px;
  background: #6366f1;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  box-shadow: 0 0 15px currentColor, 0 0 30px currentColor;
  transition: opacity 0.1s ease-out;
  will-change: transform, opacity;
}

/* Easter Egg */
.easter-egg {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(99, 102, 241, 0.95);
  color: white;
  padding: 2rem 3rem;
  border-radius: 1rem;
  font-size: 1.5rem;
  font-weight: bold;
  z-index: 10001;
  animation: easterEggPop 0.5s ease-out;
  box-shadow: 0 20px 60px rgba(99, 102, 241, 0.5);
  text-align: center;
}

.instance-egg {
  background: rgba(34, 197, 94, 0.95);
  box-shadow: 0 20px 60px rgba(34, 197, 94, 0.5);
}

@keyframes easterEggPop {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

.easter-particle {
  position: fixed;
  font-size: 2rem;
  pointer-events: none;
  z-index: 10000;
  animation: easterParticleFloat 2s ease-out forwards;
}

@keyframes easterParticleFloat {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(-200px) rotate(360deg);
    opacity: 0;
  }
}

/* コードブロック実行アニメーション */
.code-success {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  margin-top: 1rem;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 0.5rem;
  animation: codeSuccessSlide 0.3s ease-out;
}

@keyframes codeSuccessSlide {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.code-success-icon {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #22c55e;
  color: white;
  border-radius: 50%;
  font-weight: bold;
  font-size: 1.25rem;
}

.code-success-text {
  flex: 1;
}

.code-success-title {
  font-weight: 600;
  color: #22c55e;
  margin-bottom: 0.25rem;
}

.code-success-desc {
  font-size: 0.875rem;
  color: #94a3b8;
}

/* 3Dパララックス用のスタイル */
.hero-content {
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out;
}

.service-card,
.product-card {
  transform-style: preserve-3d;
  transition: transform 0.3s ease-out;
}

