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

:root {
  --primary: #0a0a0a;
  --accent: #2563eb;
  --accent-light: #3b82f6;
  --accent-glow: rgba(37, 99, 235, 0.12);
  --bg: #fafafa;
  --bg-dark: #0a0a0a;
  --text: #1a1a1a;
  --text-light: #6b7280;
  --text-on-dark: #d1d5db;
  --border: #e5e7eb;
  --font-en: 'Outfit', sans-serif;
  --font-jp: 'Noto Sans JP', sans-serif;

  /* Type scale */
  --text-xs: 0.75rem;
  --text-sm: 0.8125rem;
  --text-base: 0.875rem;
  --text-md: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.5rem;

  /* Easing */
  --ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-jp);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ============ HEADER ============ */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.5s var(--ease-out), backdrop-filter 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}

header.scrolled {
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

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

.logo-img {
  height: 56px;
  width: auto;
  filter: invert(1);
  transition: filter 0.4s var(--ease-out);
}

header.scrolled .logo-img {
  filter: invert(1);
}

nav {
  display: flex;
  gap: 36px;
  align-items: center;
}

nav a {
  font-family: var(--font-en);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.4s var(--ease-out);
  position: relative;
}

header.scrolled nav a {
  color: rgba(255,255,255,0.7);
}

header.scrolled nav a:hover {
  color: #fff;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.4s var(--ease-out);
}

nav a:hover { color: #fff; }
nav a:hover::after { width: 100%; }

.nav-contact {
  padding: 10px 24px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 100px;
  font-size: var(--text-sm) !important;
  transition: all 0.4s var(--ease-out) !important;
}

.nav-contact:hover {
  background: #fff;
  color: var(--primary) !important;
  border-color: #fff;
}

header.scrolled .nav-contact {
  border-color: rgba(255,255,255,0.4);
}

header.scrolled .nav-contact:hover {
  background: #fff;
  color: var(--primary) !important;
  border-color: #fff;
}

.nav-contact::after { display: none !important; }

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

.hamburger span {
  width: 24px;
  height: 2px;
  background: #fff;
  transition: transform 0.4s var(--ease-out), opacity 0.3s;
  transform-origin: center;
}

header.scrolled .hamburger span {
  background: #fff;
}

.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);
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease-out);
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.mobile-nav a {
  font-family: var(--font-en);
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary);
  text-decoration: none;
  transition: color 0.4s var(--ease-out);
}

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

/* ============ HERO ============ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--bg-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

#hero-network {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-gradient-1 {
  position: absolute;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,0.15) 0%, transparent 70%);
  top: -200px;
  right: -200px;
  animation: float-1 15s ease-in-out infinite;
}

.hero-gradient-2 {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.1) 0%, transparent 70%);
  bottom: -100px;
  left: -100px;
  animation: float-2 18s ease-in-out infinite;
}

@keyframes float-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-40px, 30px) scale(1.05); }
}

@keyframes float-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -40px) scale(1.08); }
}

.hero-content {
  text-align: center;
  z-index: 1;
  padding: 0 24px;
  max-width: 900px;
}

.hero-label {
  font-family: var(--font-en);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 32px;
  opacity: 0;
  animation: fade-up 0.8s ease forwards 0.3s;
}

.hero-title {
  font-family: var(--font-jp);
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: #fff;
  margin-bottom: 24px;
  opacity: 0;
  animation: fade-up 0.8s ease forwards 0.5s;
}

.hero-title-accent {
  background: linear-gradient(135deg, var(--accent), #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: var(--text-md);
  font-weight: 300;
  line-height: 2;
  color: var(--text-on-dark);
  max-width: 540px;
  margin: 0 auto 40px;
  opacity: 0;
  animation: fade-up 0.8s ease forwards 0.7s;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  margin-bottom: 56px;
  opacity: 0;
  animation: fade-up 0.8s ease forwards 0.9s;
}

.hero-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 40px;
  background: linear-gradient(135deg, var(--accent), #4f46e5);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-jp);
  font-size: var(--text-md);
  font-weight: 500;
  border-radius: 100px;
  transition: all 0.5s var(--ease-out);
  box-shadow: 0 4px 16px rgba(37,99,235,0.2);
}

.hero-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(37,99,235,0.35);
  filter: brightness(1.1);
}

.hero-btn-primary svg {
  transition: transform 0.4s var(--ease-out);
}

.hero-btn-primary:hover svg {
  transform: translateX(5px);
}

.hero-btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 18px 40px;
  background: transparent;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-jp);
  font-size: var(--text-md);
  font-weight: 500;
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 100px;
  transition: all 0.5s var(--ease-out);
}

.hero-btn-secondary:hover {
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.1);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.hero-scroll {
  opacity: 0;
  animation: fade-up 0.8s ease forwards 1.1s;
}

.hero-scroll span {
  font-family: var(--font-en);
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.3; transform: scaleY(0.6); }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============ SECTION COMMON ============ */
section {
  padding: 120px 48px;
}

.section-label {
  font-family: var(--font-en);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title-en {
  font-family: var(--font-en);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 12px;
}

.section-title-jp {
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--text-light);
  margin-bottom: 48px;
}

/* ============ MISSION ============ */
.mission {
  background: var(--bg-dark);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: 140px 48px;
}

.mission-bg-text {
  position: absolute;
  font-family: var(--font-en);
  font-size: clamp(8rem, 20vw, 18rem);
  font-weight: 800;
  color: rgba(255,255,255,0.02);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.mission-inner {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.mission .section-label {
  color: var(--accent-light);
}

.mission .section-title-en {
  color: #fff;
}

.mission .section-title-jp {
  color: var(--text-on-dark);
}

.mission-statement {
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  font-weight: 600;
  line-height: 1.8;
  letter-spacing: 0.06em;
  margin-bottom: 40px;
}

.mission-statement .highlight {
  color: var(--accent-light);
}

.mission-desc {
  font-size: var(--text-base);
  font-weight: 300;
  line-height: 2.2;
  color: var(--text-on-dark);
  max-width: 700px;
}

/* ============ SERVICES ============ */
.services {
  background: #1e293b;
  color: #fff;
}

.services .section-label {
  color: var(--accent-light);
}

.services .section-title-en {
  color: #fff;
}

.services .section-title-jp {
  color: var(--text-on-dark);
}

.services-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 44px 36px;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), border-color 0.5s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), #8b5cf6);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  border-color: rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.08);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.service-icon svg {
  width: 26px;
  height: 26px;
  stroke-width: 1.5;
}

.service-icon-ai {
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
}

.service-icon-sw {
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
}

.service-icon-dx {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.service-card h3 {
  font-family: var(--font-en);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
  color: #fff;
}

.service-card .service-jp {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
}

.service-card p {
  font-size: var(--text-base);
  line-height: 1.9;
  color: var(--text-on-dark);
  font-weight: 300;
}

/* ============ ABOUT ============ */
.about {
  background: linear-gradient(180deg, #0a0a0a 0%, #111827 100%);
  color: #fff;
}

.about-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-visual {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(37,99,235,0.05) 100%);
  border: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-network {
  width: 80%;
  height: 80%;
}

.net-lines line {
  stroke-dasharray: 4 4;
  animation: line-dash 8s linear infinite;
}

@keyframes line-dash {
  to { stroke-dashoffset: -40; }
}

.about-text h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  line-height: 1.7;
  margin-bottom: 28px;
  letter-spacing: 0.03em;
  color: #fff;
}

.about-text p {
  font-size: var(--text-md);
  line-height: 2.2;
  color: var(--text-on-dark);
  font-weight: 300;
  margin-bottom: 20px;
}

.about .section-label {
  color: var(--accent-light);
}

.about .section-title-en {
  color: #fff;
}

.about .section-title-jp {
  color: var(--text-on-dark);
}

.about-values {
  display: flex;
  gap: 20px;
  margin-top: 36px;
}

.value-item {
  flex: 1;
  padding: 24px;
  border-left: 3px solid var(--accent);
}

.value-item .val-num {
  font-family: var(--font-en);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-light);
  margin-bottom: 10px;
}

.value-item h4 {
  font-family: var(--font-en);
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
  letter-spacing: -0.01em;
}

.value-item p {
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--text-on-dark);
  margin-bottom: 0;
}

/* ============ COMPANY INFO ============ */
.company {
  background: #1e293b;
  color: #fff;
  padding: 100px 48px;
}

.company .section-label {
  color: var(--accent-light);
}

.company .section-title-en {
  color: #fff;
}

.company .section-title-jp {
  color: var(--text-on-dark);
}

.company-inner {
  max-width: 800px;
  margin: 0 auto;
}

.company-table {
  width: 100%;
  border-collapse: collapse;
}

.company-table tr {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.company-table th {
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  text-align: left;
  padding: 24px 0;
  width: 180px;
  vertical-align: top;
}

.company-table td {
  font-size: var(--text-base);
  line-height: 1.8;
  padding: 24px 0;
  color: #e2e8f0;
}

/* ============ CONTACT ============ */
.contact {
  background: var(--bg-dark);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 140px 48px;
}

.contact-inner {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.contact .section-title-en {
  color: #fff;
}

.contact .section-title-jp {
  color: var(--text-on-dark);
}

.contact-desc {
  font-size: var(--text-base);
  line-height: 2;
  color: var(--text-on-dark);
  font-weight: 300;
  margin-bottom: 40px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 16px 20px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  color: #fff;
  font-family: var(--font-jp);
  font-size: var(--text-base);
  transition: border-color 0.4s var(--ease-out), background 0.4s var(--ease-out);
  outline: none;
}

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

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.4)' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}

.form-group select option {
  background: #1e293b;
  color: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: rgba(255,255,255,0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form .contact-btn {
  align-self: center;
  border: none;
  cursor: pointer;
  margin-top: 8px;
}

.contact-form-note {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.35);
  margin-top: 16px;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 20px 56px;
  background: linear-gradient(135deg, var(--accent), #4f46e5);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-jp);
  font-size: var(--text-md);
  font-weight: 500;
  letter-spacing: 0.05em;
  border-radius: 100px;
  transition: all 0.5s var(--ease-out);
  box-shadow: 0 4px 20px rgba(37,99,235,0.25);
}

.contact-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(37,99,235,0.4);
  filter: brightness(1.1);
}

.contact-btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.4s var(--ease-out);
}

.contact-btn:hover svg {
  transform: translateX(5px);
}

.contact-bg-network {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ============ FOOTER ============ */
footer {
  background: var(--bg-dark);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 56px 48px 40px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

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

.footer-logo-img {
  height: 44px;
  width: auto;
  filter: invert(1);
}

.footer-tagline {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.4);
  font-weight: 300;
}

.footer-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a {
  font-family: var(--font-en);
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.4s var(--ease-out);
}

.footer-nav a:hover {
  color: rgba(255,255,255,0.85);
}

.footer-copy {
  font-family: var(--font-en);
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.05em;
}

/* ============ SCROLL ANIMATIONS ============ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  section { padding: 100px 32px; }
  .mission { padding: 120px 32px; }
  .contact { padding: 120px 32px; }
  .company { padding: 80px 32px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  header { padding: 16px 24px; }
  section { padding: 80px 24px; }
  .mission { padding: 100px 24px; }
  .contact { padding: 100px 24px; }
  .company { padding: 64px 24px; }

  nav { display: none; }
  .hamburger { display: flex; }

  .hero-title { font-size: clamp(1.8rem, 7vw, 2.8rem); }
  .hero-cta { flex-direction: column; gap: 12px; }
  .hero-btn-primary,
  .hero-btn-secondary { width: 100%; max-width: 280px; justify-content: center; }

  .services-grid { grid-template-columns: 1fr; }
  .about-values { flex-direction: column; }

  .company-table th {
    display: block;
    width: 100%;
    padding-bottom: 4px;
  }
  .company-table td {
    display: block;
    padding-top: 0;
    padding-bottom: 24px;
  }

  footer { padding: 40px 24px 32px; }

  .footer-nav { gap: 20px; }
}
