/* ---------------------------------
   1. CSS Reset & Variables
---------------------------------- */
:root {
  /* Light Theme Colors (for solid sections) */
  --bg-dark: #FFFFFF;
  --bg-card: rgba(255, 255, 255, 0.95);
  --text-primary: #0F172A;     /* Dark Slate */
  --text-secondary: #475569;   /* Slate Gray */
  --accent-blue: #0A4D9A;      /* Strong Trustworthy Blue (Logo Accent) */
  --border-light: rgba(0, 0, 0, 0.08);

  /* Typography */
  --font-en: 'Inter', sans-serif;
  --font-jp: 'Noto Sans JP', sans-serif;
  --font-heading: var(--font-jp);

  /* Spacing & Sizes */
  --nav-height: 80px;
  --container-width: 1200px;
  
  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-en);
  background-color: transparent; /* Allows fixed bg to show through */
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
}

p {
  font-family: var(--font-jp);
  font-weight: 400;
}

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

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 5%;
}

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

/* ---------------------------------
   1.5 Fixed Background
---------------------------------- */
.fixed-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -100;
  overflow: hidden;
  background: linear-gradient(-45deg, #F8FAFC, #E0F2FE, #F1F5F9, #FDFDFD);
  background-size: 400% 400%;
  animation: bgGradientFade 15s ease infinite;
}

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

.bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.bg-overlay {
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: none;
}

/* ---------------------------------
   2. Buttons
---------------------------------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: #00B4D8;
  color: #FFFFFF;
  border: 2px solid #00B4D8;
}

.btn-primary:hover {
  background: #3DCBEE; /* Lighter blue instead of pink */
  color: #FFFFFF;
  border-color: #3DCBEE;
}

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

.btn-secondary:hover {
  background: var(--text-primary);
  color: #FFFFFF;
}

.btn-outline {
  border: 2px solid #00B4D8;
  padding: 10px 20px;
  font-size: 0.9rem;
  color: #00B4D8;
}

.btn-outline:hover {
  background: #00B4D8;
  color: #FFFFFF;
}

.badge {
  display: inline-block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--bg-dark);
  background: var(--accent-blue);
  padding: 8px 16px;
  border-radius: 50px;
  margin-bottom: 24px;
}

.badge-dark {
  background: rgba(10, 77, 154, 0.1);
  color: var(--accent-blue);
}

/* ---------------------------------
   3. Navigation
---------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  z-index: 1000;
  transition: var(--transition-smooth);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 32px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links a:not(.btn) {
  font-size: 0.95rem;
  font-weight: 600;
  position: relative;
  transition: color 0.3s;
  color: #FFFFFF;
}

.nav-links a:not(.btn):hover {
  color: var(--accent-blue);
}

.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-blue);
  transition: width 0.3s ease;
}

.nav-links a:not(.btn):hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: #FFFFFF;
  transition: 0.3s;
}

/* ---------------------------------
   4. Hero Section
---------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--nav-height);
  background: transparent; /* Uses fixed video bg */
}

.hero .hero-title,
.hero .hero-subtitle {
  color: #FFFFFF;
}

.hero .badge {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
}

.hero .btn-secondary {
  color: #FFFFFF;
  border-color: #FFFFFF;
}

.hero .btn-secondary:hover {
  background: #FFFFFF;
  color: #0F172A;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.hero-title {
  font-size: clamp(2.2rem, 3.5vw, 3.8rem);
  margin-bottom: 24px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 40px;
  max-width: 700px;
  margin-inline: auto;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* ---------------------------------
   5. Services Section
---------------------------------- */
.services {
  background-color: #FFFFFF;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.services-banner {
  margin-bottom: 50px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.services-img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  display: block;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  padding: 40px 30px;
  border-radius: 20px;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-blue);
  box-shadow: 0 15px 40px rgba(10, 77, 154, 0.1);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: rgba(10, 77, 154, 0.08);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
  margin-bottom: 24px;
}

.service-title {
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.service-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ---------------------------------
   6. About Section
---------------------------------- */
.about {
  background: transparent; /* Shows fixed background through */
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

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

.about .section-title,
.about .about-text p,
.about .stat-number {
  color: #FFFFFF;
}

.about .about-text p {
  opacity: 0.9;
  font-size: 1.05rem;
  margin-bottom: 20px;
}

.about .badge-dark {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
}

.about-visual {
  position: relative;
}

.glass-panel {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  padding: 50px;
  backdrop-filter: blur(15px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
  position: relative;
  z-index: 1;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  font-family: var(--font-en);
  margin-bottom: 8px;
}

.stat-label {
  color: #93C5FD; /* Light blue accent against dark background */
  font-weight: 600;
  letter-spacing: 1px;
}

.divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin: 30px 0;
}

/* ---------------------------------
   7. Engagement Model
---------------------------------- */
.engagement {
  background-color: #F8FAFC; /* Solid layer covering the bg */
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

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

.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.model-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: var(--transition-smooth);
}

.model-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.model-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 20px;
}

.model-header h3 {
  font-size: 1.5rem;
  font-family: var(--font-en);
}

.tag {
  background: rgba(10, 77, 154, 0.1);
  color: var(--accent-blue);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
}

.model-card p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.features-list {
  list-style: none;
}

.features-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 500;
}

.features-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-blue);
  font-weight: bold;
}

.pricing-note {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 20px;
}

/* ---------------------------------
   8. Contact Section
---------------------------------- */
.contact {
  background: transparent; /* Shows fixed background again */
}

.contact-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  padding: 60px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  backdrop-filter: blur(15px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.contact-box h2,
.contact-box p {
  color: #FFFFFF;
}

.contact-box h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.contact-box p {
  opacity: 0.9;
  margin-bottom: 40px;
}

.contact-form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.turnstile-wrapper {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.contact-form-status {
  margin: -6px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
}

.contact-form-status:empty {
  display: none;
}

.form-group:has(textarea) {
  margin-bottom: 4px;
}

.contact-form-status.is-error {
  color: #fecaca;
}

.contact-form-status.is-success {
  color: #bbf7d0;
}

.submit-btn.is-loading {
  cursor: wait;
  opacity: 0.7;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: #FFFFFF;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #FFFFFF;
  background: rgba(255, 255, 255, 0.15);
}

.submit-btn {
  background: #00B4D8;
  color: #FFFFFF;
  border: none;
  width: 100%;
  padding: 16px;
  font-size: 1.1rem;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.submit-btn:hover {
  background: #3DCBEE;
  color: #FFFFFF;
}

/* ---------------------------------
   9. Footer
---------------------------------- */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 60px 0 30px;
  background-color: #0F172A; /* Solid footer */
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.footer-brand p {
  color: #94A3B8;
  font-size: 0.9rem;
  margin-top: 10px;
}

.footer-links {
  display: flex;
  gap: 30px;
}

.footer-links a {
  color: #94A3B8;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  text-align: center;
  color: #64748B;
  font-size: 0.8rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 30px;
}

/* ---------------------------------
   10. Animations & Responsive
---------------------------------- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 991px) {
  .about-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 250px;
    background: #0F172A;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid rgba(255,255,255,0.1);
    transition: 0.4s ease;
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
  }

  .nav-links.active {
    right: 0;
  }

  .hamburger {
    display: flex;
  }

  .hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .hero-actions {
    flex-direction: column;
    gap: 16px;
  }

  .contact-box {
    padding: 40px 20px;
  }
  
  .footer-container {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }
}

/* ---------------------------------
   11. Language Toggle
---------------------------------- */
body.lang-ja-active .lang-en { display: none !important; }
body.lang-en-active .lang-ja { display: none !important; }

.lang-toggle-btn {
  background: transparent;
  color: #00B4D8;
  border: 1px solid #00B4D8;
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  margin-left: 20px;
}

.lang-toggle-btn:hover {
  background: #00B4D8;
  color: #FFFFFF;
}
