:root {
  --primary-color: #0044ff; /* Deep electric blue */
  --secondary-color: #00b3ff; /* Vibrant cyan */
  --accent-color: #ff007f; /* High impact pink/red for 100% reward */
  --bg-color: #f4f9ff; /* Light, crisp background */
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(0, 68, 255, 0.1);
  --text-main: #111827; /* Darker, stronger text */
  --text-muted: #4b5563;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.6;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Responsive line breaks */
@media (max-width: 768px) {
  .pc-br {
    display: none;
  }
}

/* Typography */
h1, h2, h3 {
  line-height: 1.3;
  margin-top: 0;
  color: #000;
}

.highlight {
  color: var(--primary-color);
  text-shadow: 0 0 20px rgba(0, 68, 255, 0.3);
}

.highlight-text {
  color: var(--primary-color);
}

.text-center {
  text-align: center;
}

/* Badge */
.badge {
  display: inline-block;
  background: linear-gradient(135deg, #ff007f, #ff6b00);
  color: white;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: bold;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(255, 0, 127, 0.3);
  letter-spacing: 1px;
}

/* Layout */
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

.section {
  padding: 100px 0;
  position: relative;
  z-index: 10;
}

.section-title {
  font-size: 2.8rem;
  font-weight: 900;
  margin-bottom: 50px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glassmorphism Utilities */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* Buttons */
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: bold;
  border-radius: 50px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #fff;
  box-shadow: 0 4px 15px rgba(43, 119, 175, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(43, 119, 175, 0.6);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background: rgba(43, 119, 175, 0.1);
  border-color: var(--primary-color);
}

.btn-line {
  background: #06C755;
  color: #fff;
}
.btn-line:hover {
  background: #05a546;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(6, 199, 85, 0.4);
}

.btn-small {
  padding: 8px 20px;
  font-size: 0.9rem;
}

.btn-large {
  padding: 15px 35px;
  font-size: 1.1rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 15px 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.logo {
  font-size: 1.5rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 2px;
  color: var(--primary-color);
}

.logo-img {
  height: 70px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 1.4rem;
  letter-spacing: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-left: 8px;
}

.nav a {
  color: var(--text-main);
  text-decoration: none;
  margin-left: 20px;
  font-size: 0.95rem;
  transition: color 0.3s;
  white-space: nowrap;
}

.nav a:hover {
  color: var(--primary-color);
}

.nav a.btn-line {
  color: #ffffff;
}

.nav a.btn-line:hover {
  color: #ffffff;
}

/* Header Responsive */
@media (max-width: 768px) {
  .header {
    padding: 8px 0; /* Reduce header height on mobile */
  }
  .header-container {
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
  }
  .logo {
    display: flex;
    align-items: center;
  }
  .logo-img {
    height: 50px; /* Make logo smaller to fit header */
  }
  .nav {
    display: flex;
    width: auto;
    padding: 0;
  }
  .nav a:not(.btn-line) {
    display: none; /* Hide other menu items */
  }
  .nav a.btn-line {
    margin: 0;
    padding: 8px 14px;
    font-size: 0.85rem;
  }
  .logo-text {
    font-size: 1.1rem;
    letter-spacing: 1px;
    margin-left: 5px;
  }
} /* <--- THIS WAS MISSING! */

/* Base utility for responsive breaks */
.sp-br {
  display: none; /* Hide mobile line breaks on PC by default */
}
.pc-br {
  display: inline; /* Show PC line breaks on PC by default */
}

@media (max-width: 768px) {
  /* ... existing media query rules ... */
  .section-title {
    font-size: 1.65rem; /* Set to a medium size that still fits on one line */
    white-space: nowrap; /* Prevent mid-word breaks */
  }
  .hero {
    height: auto;
    min-height: auto;
    padding-top: 120px;
    padding-bottom: 60px;
  }
  .section {
    padding: 60px 0;
  }
  .pc-br {
    display: none; /* Hide PC line breaks on mobile */
  }
  .sp-br {
    display: block; /* Show mobile line breaks */
  }
}

/* Prevent mid-word breaks in Japanese */
.phrase {
  display: inline-block;
}

/* Hero Section */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 10;
  padding-top: 80px;
  padding-bottom: 80px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

/* Concept Section */
.concept-section {
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.5));
}

.concept-text {
  font-size: 1.2rem;
  line-height: 1.8;
}

/* Requirements Section */
.req-box {
  background: #ffffff;
  padding: 25px;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.req-title {
  color: var(--primary-color);
  font-size: 1.3rem;
  margin-bottom: 15px;
  text-align: center;
}

/* Features Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-card {
  padding: 30px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(43, 119, 175, 0.15);
  border-color: rgba(43, 119, 175, 0.3);
}

.feature-icon {
  margin-bottom: 20px;
  text-align: center;
}

.feature-icon-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  filter: drop-shadow(0 10px 15px rgba(43, 119, 175, 0.2));
  transition: transform 0.3s;
}

.feature-card:hover .feature-icon-img {
  transform: scale(1.1);
}

.feature-title {
  font-size: 1.4rem;
  margin-bottom: 15px;
  text-align: center;
}

.feature-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* AI Hybrid Section */
.ai-hybrid-section {
  background: linear-gradient(135deg, rgba(0, 68, 255, 0.03), rgba(0, 179, 255, 0.03));
}

.hybrid-grid {
  display: flex;
  flex-direction: column;
  gap: 60px;
  margin-top: 40px;
}

.hybrid-block {
  display: flex;
  align-items: center;
  gap: 40px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.05);
}

.hybrid-block.reverse {
  flex-direction: row-reverse;
}

.hybrid-text {
  flex: 1;
}

.hybrid-text h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  line-height: 1.4;
}

.hybrid-text p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.hybrid-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

@keyframes gentleFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-15px); }
}

.hybrid-image img {
  animation: gentleFloat 4s ease-in-out infinite alternate;
}

.rounded-screenshot {
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border: 8px solid #fff;
  object-fit: cover;
  max-height: 320px; /* 500px -> 320px */
  max-width: 85%;
  width: auto;
}

@media (max-width: 768px) {
  .hybrid-block, .hybrid-block.reverse {
    flex-direction: column-reverse;
    padding: 30px 20px;
    gap: 30px;
  }
  .hybrid-text h3 {
    font-size: 1.4rem;
    text-align: center;
  }
  .rounded-screenshot {
    max-height: 250px; /* 400px -> 250px */
  }
}

/* Flow Section */
.flow-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.flow-step {
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  border-left: 5px solid var(--primary-color);
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  position: relative;
}

.step-number {
  position: absolute;
  top: -15px;
  left: 20px;
  background: var(--primary-color);
  color: white;
  font-weight: 900;
  font-size: 1.2rem;
  padding: 5px 15px;
  border-radius: 20px;
}

.step-title {
  font-size: 1.3rem;
  margin-top: 10px;
  margin-bottom: 10px;
}

.step-desc {
  color: var(--text-muted);
  margin: 0;
}

/* FAQ Section */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.faq-item {
  background: #ffffff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

h2 {
  font-size: clamp(1.4rem, 6vw, 2rem);
  margin-bottom: 30px;
}

.faq-q {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.faq-a {
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* Contact Section */
.contact-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Footer */
.footer {
  background: #ffffff;
  padding: 50px 0 20px;
  border-top: 1px solid rgba(0,0,0,0.05);
  position: relative;
  z-index: 10;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 30px;
}

.company-info p {
  color: var(--text-muted);
  margin: 5px 0;
  font-size: 0.9rem;
}

.copyright {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  border-top: 1px solid rgba(0,0,0,0.05);
  padding-top: 20px;
}

/* Pixel Background Animation */
.pixel-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.pixel-particle {
  position: absolute;
  background: rgba(43, 119, 175, 0.15);
  box-shadow: 0 0 15px rgba(43, 119, 175, 0.1);
  bottom: -50px;
  animation: floatUp linear infinite;
  transform: rotate(45deg);
}

@keyframes floatUp {
  0% {
    transform: translateY(0) rotate(45deg) scale(0.8);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-110vh) rotate(225deg) scale(1.2);
    opacity: 0;
  }
}

/* Scroll Reveal Classes */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* Responsive */
@media (max-width: 768px) {
  .hero-title { font-size: 2.1rem; }
  .hero-subtitle { font-size: 1rem; }
}
