:root {
  --bg-color: #050505;
  --text-color: #ffffff;
  --text-muted: #a0a0a0;

  /* Vibrant Accents */
  --accent-primary: #3b82f6;
  /* Bright Blue */
  --accent-secondary: #8b5cf6;
  /* Violet */
  --accent-gradient: linear-gradient(135deg, #60a5fa, #c084fc);
  --accent-glow: rgba(59, 130, 246, 0.5);

  --card-bg: rgba(20, 20, 30, 0.6);
  --border-color: rgba(255, 255, 255, 0.1);

  --font-heading: 'Noto Sans JP', sans-serif;
  --font-en: 'Inter', sans-serif;

  --transition-speed: 0.4s;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  /* Base64 Noise Texture + Ambient Gradients */
  background-image:
    url('images/background.jpg'),
    url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1MDAiIGhlaWdodD0iNTAwIj48ZmlsdGVyIGlkPSJnoiPjxmZVR1cmJ1bGVuY2UgdHlwZT0iZnJhY3RhbE5vaXNlIiBiYXNlRnJlcXVlbmN5PSIwLjY1IiBudW1PY3RhdmVzTMiMyIgc3RpdGNoVGlsZXM9InN0aXRjaCIvPjwvZmlsdGVyPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbHRlcj0idXJsKCNuKSIgb3BhY2l0eT0iMC4wNSIvPjwvc3ZnPg=='),
    radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.15), transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.15), transparent 40%);

  background-repeat: repeat, repeat, no-repeat, no-repeat;
  background-size: 500px auto, 200px 200px, 100% 100%, 100% 100%;
  background-blend-mode: overlay, normal, screen, screen;
  color: var(--text-color);
  font-family: var(--font-heading);
  font-weight: 300;
  line-height: 2;
  letter-spacing: 0.08em;
  overflow-x: hidden;
  background-attachment: fixed;
  /* Parallax feel for gradients */
}

h1,
h2,
h3,
h4 {
  font-weight: 500;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-speed);
}

/* Loading Animation */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #000;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.8s ease, visibility 0.8s;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-text {
  font-family: var(--font-en);
  margin-bottom: 20px;
  letter-spacing: 0.2em;
  animation: pulse 1.5s infinite alternate;
}

.loader-bar {
  width: 200px;
  height: 2px;
  /* Slightly thicker */
  background-color: #333;
  position: relative;
  overflow: hidden;
}

.bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent-gradient);
  /* Gradient fill */
  box-shadow: 0 0 10px var(--accent-primary);
  /* Glow */
  transform: translateX(-100%);
  animation: loaderFill 1.5s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

/* ... skipped ... */

.scroll-indicator .line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: var(--accent-secondary);
  /* Colored drop */
  box-shadow: 0 0 10px var(--accent-secondary);
  /* Glow */
  animation: scrollDrop 2.5s cubic-bezier(0.77, 0, 0.175, 1) infinite;
}

@keyframes loaderFill {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(0);
  }
}

@keyframes pulse {
  0% {
    opacity: 0.5;
  }

  100% {
    opacity: 1;
  }
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 40px 60px;
  z-index: 100;
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  mix-blend-mode: difference;
}

.header.scrolled {
  padding: 20px 60px;
  background: rgba(10, 10, 10, 0.85);
  /* Dark semi-transparent */
  backdrop-filter: blur(10px);
  mix-blend-mode: normal;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1600px;
  margin: 0 auto;
}

.logo {
  font-family: var(--font-en);
  font-size: 1.2rem;
  letter-spacing: 0.2em;
}

.nav ul {
  display: flex;
  list-style: none;
  gap: 50px;
}

.nav a {
  font-family: var(--font-en);
  font-size: 1.1rem;
  /* Increased */
  letter-spacing: 0.15em;
  position: relative;
  display: inline-block;
  overflow: hidden;
  font-weight: 500;
  line-height: 1.2;
}

/* ... skipped ... */

.section-title {
  font-family: var(--font-en);
  font-size: 1.2rem;
  /* Increased */
  letter-spacing: 0.4em;
  color: #aaaaaa;
  margin-bottom: 80px;
  text-align: center;
  position: relative;
}

/* Nav Hover Effect */
.nav a::before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: var(--accent-primary);
  /* Blue hover */
  transform: translateY(100%);
  transition: transform 0.3s;
  text-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}

.nav a span {
  display: block;
  transition: transform 0.3s;
}

.nav a:hover span {
  transform: translateY(-100%);
}

.nav a:hover::before {
  transform: translateY(0);
}

.mobile-menu-toggle {
  display: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
}

.mobile-menu-toggle span {
  position: absolute;
  width: 100%;
  height: 1px;
  background-color: #fff;
  transition: 0.3s;
}

.mobile-menu-toggle span:first-child {
  top: 0;
}

.mobile-menu-toggle span:last-child {
  bottom: 0;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.hero-bg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  /* For parallax */
  z-index: -1;
  transform: translateY(0);
}

.hero-bg {
  width: 100%;
  height: 100%;
  /* Image with gradient fallback */
  background-color: #0a0a0a;
  background-image: url('images/hero.jpg'),
    radial-gradient(circle at 20% 50%, rgba(30, 30, 40, 0.4), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(40, 40, 50, 0.3), transparent 50%),
    linear-gradient(135deg, #050505 0%, #1a1a1a 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Darker overlay for better text contrast against sharp images */
  background: radial-gradient(circle, rgba(0, 0, 0, 0.4) 40%, rgba(0, 0, 0, 0.9) 100%);
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  /* Blur the image slightly for text readability */
}

/* Hero Section Layout - Balanced & Sophisticated */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  width: 100%;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* 1. English Motto (Upper Layer) */
.hero-en-motto {
  font-family: var(--font-en);
  font-size: 2.5rem;
  /* Large enough to stand out */
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.1em;
  margin-bottom: 30px;

  /* Vibrant Gradient */
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;

  text-shadow: 0 0 30px rgba(59, 130, 246, 0.4);
  /* Soft glow */
}

.hero-en-motto .accent {
  color: #fff;
  /* White accent for contrast */
  font-family: serif;
  /* Stylistic contrast */
  font-style: italic;
}

/* 2. Separator (Vertical Rhythm) */
.hero-separator {
  width: 2px;
  height: 60px;
  background: linear-gradient(to bottom, var(--accent-primary), transparent);
  margin-bottom: 30px;
}

/* 3. Japanese Title (Main Focus) */
.hero-jp-title {
  font-size: 4.5rem;
  line-height: 1.4;
  margin-bottom: 40px;
  font-weight: 700;
  color: #fff;

  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
}

/* 4. Description (Lower Layer) */
.hero-desc {
  font-size: 1.2rem;
  font-weight: 400;
  color: #cccccc;
  letter-spacing: 0.15em;
  line-height: 2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.scroll-indicator {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  opacity: 0;
}

.scroll-indicator span {
  font-family: var(--font-en);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--text-muted);
}

.scroll-indicator .line {
  width: 1px;
  height: 80px;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.scroll-indicator .line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: #fff;
  animation: scrollDrop 2.5s cubic-bezier(0.77, 0, 0.175, 1) infinite;
}

@keyframes scrollDrop {
  0% {
    transform: translateY(-100%);
  }

  100% {
    transform: translateY(250%);
  }
}

/* Sections Common */
.section {
  position: relative;
  padding: 180px 0;
}

.section-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-en);
  font-size: 20vw;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.02);
  z-index: -1;
  white-space: nowrap;
  pointer-events: none;
}

.section-bg-text.right {
  left: auto;
  right: -10vw;
  transform: translateY(-50%);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.container.narrow {
  max-width: 900px;
}

.section-title {
  font-family: var(--font-en);
  font-size: 1rem;
  letter-spacing: 0.4em;
  color: var(--text-muted);
  margin-bottom: 80px;
  text-align: center;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background-color: var(--border-color);
}

.section-title.left {
  text-align: left;
}

.section-title.left::after {
  left: 0;
  transform: none;
}

/* About Section */
.about-content {
  text-align: center;
}

.lead-text p {
  font-size: 2.8rem;
  /* Increased */
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 60px;
}

.lead-text .highlight {
  /* Vibrant Gradient */
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
}

.body-text p {
  font-size: 1.15rem;
  /* Increased */
  color: #cccccc;
  /* Lighter */
  margin-bottom: 30px;
}

/* Business Section */
.business-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  /* For border effect */
  background: linear-gradient(90deg, transparent, transparent);
  /* Reset default */
}

/* Creating distinct borders with gap approach */
.business-grid {
  position: relative;
}

.card-number {
  font-family: var(--font-en);
  font-size: 4rem;
  font-weight: 700;
  /* Outline Text Style */
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.2);
  margin-bottom: 30px;
  transition: all 0.4s;
}

.business-card:hover .card-number {
  -webkit-text-stroke: 0px;
  color: #fff;
  text-shadow: 0 0 20px var(--accent-primary);
  transform: scale(1.1) translateY(-10px);
}

.business-card {
  background-color: transparent;
  border-left: 1px solid var(--border-color);
  padding: 60px 40px;
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
}

.business-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0%;
  background: var(--accent-gradient);
  transition: height 0.4s ease;
}

.business-card:hover::before {
  height: 100%;
}

.business-card:hover {
  background-color: var(--card-bg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Old card-number styles removed as they are now merged above */

.business-card h3 {
  font-family: var(--font-en);
  font-size: 1.6rem;
  /* Increased */
  letter-spacing: 0.05em;
  margin-bottom: 15px;
}

.business-card h4 {
  font-size: 1.1rem;
  /* Increased */
  color: #aaaaaa;
  margin-bottom: 30px;
}

.business-card p {
  font-size: 1.05rem;
  /* Increased */
  color: #cccccc;
  line-height: 1.9;
}

/* Company Section */
.company-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-top: 1px solid var(--border-color);
  padding-top: 80px;
}

.company-header {
  width: 30%;
}

.company-info {
  width: 60%;
}

.info-row {
  display: flex;
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.info-row:last-child {
  border-bottom: none;
}

.info-row dt {
  width: 200px;
  color: #aaaaaa;
  font-family: var(--font-en);
  font-size: 1.1rem;
  /* Increased */
}

.info-row dd {
  flex: 1;
  font-size: 1.2rem;
  /* Increased */
}

/* Footer */
.footer {
  padding: 80px 0;
  border-top: 1px solid var(--border-color);
  background-color: #050505;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-family: var(--font-en);
  font-size: 1.5rem;
  font-weight: 700;
}

.copyright {
  font-size: 0.8rem;
  color: #555;
  font-family: var(--font-en);
}

/* Animation Utilities */
.fade-in {
  opacity: 0;
  transition: opacity 1s ease;
}

.fade-in.visible {
  opacity: 1;
}

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s cubic-bezier(0.2, 1, 0.3, 1);
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 {
  transition-delay: 0.1s;
}

.delay-200 {
  transition-delay: 0.2s;
}

.delay-300 {
  transition-delay: 0.3s;
}

.delay-400 {
  transition-delay: 0.4s;
}

.delay-600 {
  transition-delay: 0.6s;
}

/* Responsive */
@media (max-width: 900px) {
  .business-grid {
    grid-template-columns: 1fr;
  }

  .business-card {
    border-left: none;
    border-bottom: 1px solid var(--border-color);
    padding: 40px 0;
  }

  .company-wrapper {
    flex-direction: column;
  }

  .company-header {
    width: 100%;
    margin-bottom: 40px;
  }

  .company-info {
    width: 100%;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .lead-text p {
    font-size: 1.6rem;
  }

  .header {
    padding: 20px 30px;
  }

  .mobile-menu-toggle {
    display: block;
    z-index: 101;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: #000;
    padding-top: 120px;
    transition: 0.4s cubic-bezier(0.77, 0, 0.175, 1);
  }

  .nav.active {
    right: 0;
  }

  .nav ul {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .nav a {
    font-size: 1.2rem;
  }

  .info-row {
    flex-direction: column;
    gap: 10px;
  }
}
