/* Reset & Variables */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #0a4dcc;
  --primary-glow: #1f67f0;
  --primary-hover: #07389c;
  --text-main: #111827;
  --text-light: #4b5563;
  --bg-gray: #f9fafb;
  --bg-dark: #0f172a;
  --text-gray-light: #94a3b8;
  --white: #ffffff;
  --border-color: #e2e8f0;
  --accent: #38bdf8;
  --green: #10b981;
  --transition-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text-main);
  line-height: 1.6;
  background-color: var(--white);
  overflow-x: hidden;
}

.bg-gray {
  background-color: var(--bg-gray);
}

.bg-dark {
  background-color: var(--bg-dark);
}

.text-white {
  color: var(--white) !important;
}

.text-gray-light {
  color: var(--text-gray-light) !important;
}

.logo-dot {
  color: var(--primary-color);
}

.bg-dark .logo-dot {
  color: var(--accent);
}

/* Common Layout */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.relative {
  position: relative;
}

.z-10 {
  z-index: 10;
}

.section {
  padding: 120px 0;
  position: relative;
}

.pt-10 {
  padding-top: 80px;
}

.pb-0 {
  padding-bottom: 0;
}

.mt-6 {
  margin-top: 32px;
}

.mt-12 {
  margin-top: 64px;
}

.mb-10 {
  margin-bottom: 40px;
}

.mb-20 {
  margin-bottom: 80px;
}

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

.section-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--primary-color);
  margin-bottom: 16px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.reveal-left .section-label {
  justify-content: flex-start;
}

.section-label::before,
.section-label::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background-color: currentColor;
}

.reveal-left .section-label::before {
  display: block;
}

.reveal-left .section-label::after {
  display: none;
}

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

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

.section-title {
  font-size: 38px;
  font-weight: 800;
  margin-bottom: 20px;
  color: #0f172a;
  letter-spacing: -0.5px;
  line-height: 1.3;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Sub-heading for content */
.sub-heading {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 16px;
  color: #0f172a;
  border-left: 4px solid var(--primary-color);
  padding-left: 16px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.4s var(--transition-smooth);
  cursor: pointer;
  font-size: 14px;
  position: relative;
  overflow: hidden;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 15px;
  border-radius: 10px;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
  border: 1px solid var(--primary-color);
}

.btn-glow::after,
.btn-glow-large::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 60%);
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.4s ease, transform 0.6s var(--transition-smooth);
}

.btn-glow:hover::after,
.btn-glow-large:hover::after {
  opacity: 1;
  transform: scale(1);
}

.btn-glow:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 0 20px rgba(10, 77, 204, 0.4);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border: 1px solid rgba(10, 77, 204, 0.3);
}

.btn-outline:hover {
  border-color: var(--primary-color);
  background-color: rgba(10, 77, 204, 0.05);
}

.btn-outline-white {
  background-color: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.btn-hover-slide {
  position: relative;
  z-index: 1;
}

.btn-hover-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--white);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--transition-smooth);
}

.btn-hover-slide:hover {
  color: var(--primary-color);
  border-color: var(--white);
}

.btn-hover-slide:hover::before {
  transform: scaleX(1);
}

.btn-arrow .arrow-icon {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.btn-arrow:hover .arrow-icon {
  transform: translateX(4px);
}

/* Header Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 100;
  height: 80px;
  transition: all 0.4s ease;
}

.navbar.scrolled {
  height: 70px;
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  font-family: 'Montserrat', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  text-decoration: none;
  letter-spacing: 0px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-item {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
  font-size: 13px;
  position: relative;
  padding: 8px 0;
}

.nav-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--transition-smooth);
}

.nav-item:hover .nav-line {
  transform: scaleX(1);
  transform-origin: left;
}

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

.nav-actions {
  display: flex;
  gap: 12px;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #000;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.parallax-zoom {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: slowZoom 20s linear infinite alternate;
}

@keyframes slowZoom {
  0% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1.15);
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(8, 15, 30, 0.9) 0%, rgba(8, 15, 30, 0.5) 50%, rgba(0, 40, 120, 0.6) 100%);
  mix-blend-mode: multiply;
}

.tech-grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.3;
  z-index: 1;
}

.tech-grid-overlay::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  color: var(--white);
  padding-top: 60px;
  /* Offset for navbar */
}

.hero-text-wrapper {
  max-width: 800px;
}

.badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 30px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}

.glow-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% {
    left: -100%;
  }

  20% {
    left: 100%;
  }

  100% {
    left: 100%;
  }
}

.hero-title {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
  letter-spacing: -1.5px;
}

.text-gradient {
  background: linear-gradient(90deg, #ffffff 0%, #a0c4ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-desc {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 650px;
  color: #e2e8f0;
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  gap: 16px;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.scroll-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.6);
}

.scroll-line {
  width: 2px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--white);
  animation: scrollDrop 2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

@keyframes scrollDrop {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  100% {
    transform: translateY(200%);
    opacity: 0;
  }
}

/* Glass Panel Reusable */
.glass-panel {
  background: var(--white);
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
  border-radius: 16px;
  transition: all 0.4s var(--transition-smooth);
}

.glass-panel:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(10, 77, 204, 0.08);
}

/* Card Grid for Locations */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.location-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.location-img-wrap {
  width: 100%;
  height: 200px;
  position: relative;
  overflow: hidden;
}

.location-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.location-card:hover .location-img {
  transform: scale(1.05);
}

.location-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(4px);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.location-badge.green {
  background: rgba(16, 185, 129, 0.9);
}

.location-badge.blue {
  background: rgba(10, 77, 204, 0.9);
}

.location-content {
  padding: 32px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.location-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 12px;
  color: #0f172a;
}

.location-desc {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 24px;
  flex: 1;
}

.location-specs {
  list-style: none;
  font-size: 13px;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}

.location-specs li {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--text-main);
  font-weight: 500;
}

.location-specs li span {
  color: var(--text-light);
  font-weight: 400;
}

/* Services Row List Section */
.service-section {
  overflow: hidden;
}

.bg-abstract {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.bg-abstract img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
  filter: grayscale(80%) sepia(20%) hue-rotate(180deg);
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.service-row {
  display: flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 40px;
  transition: all 0.4s ease;
}

.service-row:hover {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateX(8px);
}

.service-icon {
  font-size: 48px;
  margin-right: 40px;
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-info {
  flex: 1;
  padding-right: 40px;
}

.service-name {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--white);
}

.service-text {
  font-size: 15px;
  color: var(--text-gray-light);
  line-height: 1.7;
}

.service-tags {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
  width: 160px;
}

.tag {
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent);
  border: 1px solid rgba(56, 189, 248, 0.2);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

/* Split Layout for Operations */
.split-layout {
  display: flex;
  align-items: center;
  gap: 80px;
}

.split-layout.reverse {
  flex-direction: row-reverse;
}

.split-text {
  flex: 1;
}

.split-text p {
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.8;
}

.split-image {
  flex: 1;
  position: relative;
}

.img-container {
  width: 100%;
  aspect-ratio: 4/4;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.concept-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dark-glass {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.floating-badge {
  position: absolute;
  background: var(--white);
  color: #0f172a;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  animation: float 6s ease-in-out infinite;
  z-index: 20;
}

.dark-glass .floating-badge {
  background: var(--primary-color);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.bottom-left {
  bottom: 40px;
  left: -20px;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0px);
  }
}

/* Articles Grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.article-card {
  text-decoration: none;
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(10, 77, 204, 0.08);
  border-color: rgba(10, 77, 204, 0.2);
}

.article-img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.article-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.article-card:hover .article-img {
  transform: scale(1.05);
}

.article-category {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--white);
  z-index: 2;
}

.article-category.case {
  background-color: var(--primary-color);
}

.article-category.column {
  background-color: var(--text-main);
}

.article-content {
  padding: 32px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-meta {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 12px;
  font-family: 'Montserrat', sans-serif;
}

.article-meta span {
  color: var(--text-gray-light);
  font-family: 'Noto Sans JP', sans-serif;
}

.article-title {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.5;
  margin-bottom: 16px;
  transition: color 0.3s ease;
}

.article-card:hover .article-title {
  color: var(--primary-color);
}

.article-excerpt {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 24px;
}

.article-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-color);
  display: flex;
  align-items: center;
}

.article-link .arrow {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.article-card:hover .arrow {
  transform: translateX(4px);
}

/* CTA Section */
.cta-section {
  background-color: var(--bg-dark);
  color: var(--white);
  text-align: center;
  padding: 120px 24px;
  position: relative;
  overflow: hidden;
}

.cta-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at center, rgba(56, 189, 248, 0.1) 0%, transparent 70%);
}

.cta-title {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.cta-desc {
  font-size: 18px;
  margin-bottom: 48px;
  color: var(--text-gray-light);
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 24px;
}

/* Footer */
.footer {
  background-color: #020617;
  color: #94a3b8;
  padding: 80px 0 32px;
  font-size: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 40px;
}

.footer-logo {
  font-family: 'Montserrat', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
}

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

.hover-underline-anim {
  color: #cbd5e1;
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
}

.hover-underline-anim::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 1px;
  bottom: 0;
  left: 0;
  background-color: var(--accent);
  transform-origin: bottom right;
  transition: transform 0.3s ease-out;
}

.hover-underline-anim:hover {
  color: var(--white);
}

.hover-underline-anim:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.copyright {
  text-align: center;
  font-family: 'Montserrat', sans-serif;
}

/* Scroll Animations */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.is-visible {
  opacity: 1 !important;
  transform: translate(0) scale(1) !important;
}

.stagger-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Initial Load Animations (Hero) */
.split-line {
  display: block;
  animation: slideUpFade 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateY(20px);
}

.split-line:nth-child(2) {
  animation-delay: 0.15s;
}

.fade-in-delay {
  opacity: 0;
  animation: fadeIn 1s ease forwards 0.4s;
}

.fade-in-delay-long {
  opacity: 0;
  animation: fadeIn 1s ease forwards 1.2s;
}

@keyframes slideUpFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }

  .card-grid,
  .articles-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .service-row {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
  }

  .service-icon {
    margin: 0 auto 24px;
  }

  .service-info {
    padding-right: 0;
    margin-bottom: 24px;
  }

  .service-tags {
    width: 100%;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }

  .split-layout,
  .split-layout.reverse {
    flex-direction: column;
    gap: 60px;
  }

  .hero-title {
    font-size: 40px;
  }

  .section-title {
    font-size: 32px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 32px;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}