/* ========================================
   株式会社アクテ - Corporate Website Styles
   Design inspired by uru-niwa.com & now-village.jp
   ======================================== */

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-primary: #0A1628;
  --color-primary-light: #132440;
  --color-accent: #193b8c;
  --color-accent-light: #60A5FA;
  --color-accent-dark: #1D4ED8;
  --color-white: #FFFFFF;
  --color-gray-50: #F8FAFC;
  --color-gray-100: #F1F5F9;
  --color-gray-200: #E2E8F0;
  --color-gray-300: #CBD5E1;
  --color-gray-400: #94A3B8;
  --color-gray-500: #64748B;
  --color-gray-600: #475569;
  --color-gray-700: #334155;
  --color-gray-800: #1E293B;
  --color-gray-900: #0F172A;
  --color-text: #1E293B;
  --color-text-light: #64748B;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F8FAFC;
  --font-en: 'Barlow', 'Inter', sans-serif;
  --font-ja: 'Noto Sans JP', sans-serif;
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --header-height: 80px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-ja);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.8;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-base);
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.pc-only {
  display: inline;
}

.sp-only {
  display: none;
}

/* ---- Loading Screen ---- */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-primary);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#loading-screen.loaded {
  opacity: 0;
  visibility: hidden;
}

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

.loading-logo {
  font-family: var(--font-en);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.3em;
  margin-right: -0.3em;
  /* offset the extra spacing on the last letter to precisely center */
  margin-bottom: 30px;
}

.loading-bar {
  width: 120px;
  height: 2px;
  background: rgba(255, 255, 255, 0.15);
  margin: 0 auto;
  border-radius: 2px;
  overflow: hidden;
}

.loading-bar-inner {
  width: 0;
  height: 100%;
  background: var(--color-accent-light);
  animation: loadingBar 1.5s ease-out forwards;
}

@keyframes loadingBar {
  0% {
    width: 0;
  }

  100% {
    width: 100%;
  }
}

/* ---- Header ---- */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 6000; /* mobile-menu(5500) より上に保つ */
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
  background: #ffffff;
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

/* メニューオープン時：ヘッダー背景をメニューカラーに合わせる */
#header.menu-open {
  background: var(--color-primary) !important;
  box-shadow: none !important;
}
#header.menu-open .logo-text {
  color: var(--color-white);
}

#header.scrolled {
  background: #ffffff;
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
}

.header-logo a {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-text {
  font-family: var(--font-ja);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.05em;
  transition: color var(--transition-base);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-gray-600);
  letter-spacing: 0.05em;
  position: relative;
  padding: 8px 0;
  transition: color var(--transition-base);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition-base);
}

.nav-link:hover::after {
  width: 100%;
}

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

.nav-link--cta {
  background: var(--color-accent);
  color: var(--color-white) !important;
  padding: 10px 28px;
  border-radius: 50px;
  font-weight: 600;
}

.nav-link--cta::after {
  display: none;
}

.nav-link--cta:hover {
  background: var(--color-accent-dark);
  transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 10px;
}

/* ハンバーガーの3本線（.hamburger-label / .hamburger-x は除外） */
.hamburger span:not(.hamburger-label):not(.hamburger-x) {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-primary);
  transition: var(--transition-base);
}

/* MENU / CLOSE ラベル */
.hamburger-label {
  display: block;
  font-size: 0.5rem;    /* 8px */
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  line-height: 1;
  margin-top: 1px;
  transition: color var(--transition-base);
  width: auto;
  height: auto;
  background: none;
}

/* ✕ アイコン（デフォルト非表示） */
.hamburger-x {
  display: none;
  font-size: 1.375rem;
  font-weight: 300;
  color: var(--color-primary);
  line-height: 1;
  background: none !important;
  width: auto !important;
  height: auto !important;
  transition: color var(--transition-base);
}

/* メニューオープン時：バーを非表示、✕ を表示 */
.hamburger.active span:nth-child(1),
.hamburger.active span:nth-child(2),
.hamburger.active span:nth-child(3) {
  display: none;
}

.hamburger.active .hamburger-x {
  display: block;
  color: var(--color-white);
}

.hamburger.active .hamburger-label {
  color: var(--color-white);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-primary);
  z-index: 5500;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;  /* 上から並べる */
  padding-top: var(--header-height);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-inner {
  width: 100%;
  padding: 40px 32px;
}

.mobile-nav ul {
  text-align: left;
}

.mobile-nav li {
  margin-bottom: 28px;
}

.mobile-nav-link {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-white);
  letter-spacing: 0.05em;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition-smooth);
}

.mobile-menu.active .mobile-nav-link {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.active li:nth-child(1) .mobile-nav-link {
  transition-delay: 0.1s;
}

.mobile-menu.active li:nth-child(2) .mobile-nav-link {
  transition-delay: 0.2s;
}

.mobile-menu.active li:nth-child(3) .mobile-nav-link {
  transition-delay: 0.3s;
}

.mobile-menu.active li:nth-child(4) .mobile-nav-link {
  transition-delay: 0.4s;
}

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

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ja);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 16px 36px;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition-base);
  letter-spacing: 0.05em;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

.btn-primary:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(25, 59, 140, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  background: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 18px 48px;
  font-size: 1rem;
}

/* ---- Hero Section ---- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  background: #080f1e;
  padding-top: var(--header-height);
  overflow: hidden;
  z-index: 1;
}

.hero-section::before,
.hero-section::after {
  display: none;
}

.hero-inner {
  display: flex;
  width: 100%;
  margin: 0;
  position: relative;
  z-index: 2;
}

/* Content Column — overlaid on full-width image */
.hero-content-area {
  flex: 0 0 58%;
  max-width: 58%;
  display: flex;
  align-items: center;
  padding-left: max(40px, calc((100vw - 1400px) / 2 + 60px));
  padding-right: 4vw;
  position: relative;
  z-index: 10;
}

.hero-text-wrap {
  width: 100%;
  max-width: none;
  margin: 0;
}

/* Background Image Column — stretched full-width absolutely */
.hero-image-area {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  flex: none;
  z-index: 0;
}

.hero-swiper {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

/* Dark overlay on the full-width background image */
.hero-swiper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(5, 12, 30, 0.82) 0%,
    rgba(5, 12, 30, 0.65) 50%,
    rgba(5, 12, 30, 0.45) 100%
  );
  z-index: 1;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-label {
  font-family: var(--font-en);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-accent-light);
  letter-spacing: 0.3em;
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(30px);
}

.hero-title {
  font-size: clamp(20px, 3.2vw, 46px);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.4;
  letter-spacing: 0.05em;
  margin-bottom: 30px;
  opacity: 0;
  transform: translateY(30px);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.hero-title-line {
  display: block;
  white-space: nowrap;
}

.hero-title-accent {
  color: var(--color-accent-light);
}

.hero-description {
  font-size: 1.05rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  line-height: 2;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(30px);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.hero-cta {
  display: flex;
  gap: 16px;
  opacity: 0;
  transform: translateY(30px);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  right: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 2;
}

.scroll-text {
  font-family: var(--font-en);
  font-size: 0.6875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.2em;
  writing-mode: vertical-rl;
}

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

.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-accent-light);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% {
    top: -100%;
  }

  50% {
    top: 0;
  }

  100% {
    top: 100%;
  }
}

/* Animate Items */
.animate-item.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-item:nth-child(1) {
  transition-delay: 0.2s;
}

.animate-item:nth-child(2) {
  transition-delay: 0.4s;
}

.animate-item:nth-child(3) {
  transition-delay: 0.6s;
}

.animate-item:nth-child(4) {
  transition-delay: 0.8s;
}

/* =========================================
   6. Sections
========================================= */
.section {
  padding: 100px 0;
}

@media (max-width: 768px) {
  .section {
    padding: 80px 0;
  }
}

.btn-wrapper {
  text-align: center;
  margin-top: 40px;
}

/* ---- Section Base ---- */
.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-label {
  font-family: var(--font-en);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 16px;
}

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

.section-subtitle {
  display: block;
  font-family: var(--font-en);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.4;
  color: var(--color-primary);
  letter-spacing: 0.02em;
}

.section-title--light {
  color: var(--color-white);
}

.section-subtitle {
  font-size: 1rem;
  color: var(--color-text-light);
  margin-top: 16px;
  line-height: 1.8;
}

/* ---- About Section ---- */
.about-section {
  padding: 140px 0;
  background: var(--color-bg);
  position: relative;
  overflow: hidden;
}

.about-section::before {
  content: 'ABOUT';
  position: absolute;
  top: 80px;
  right: -20px;
  font-family: var(--font-en);
  font-size: 10rem;
  font-weight: 800;
  color: rgba(25, 59, 140, 0.04);
  letter-spacing: 0.05em;
  pointer-events: none;
}

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

.about-text {
  font-size: 1rem;
  line-height: 2;
  color: var(--color-gray-600);
}

.about-lead {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 20px;
  line-height: 1.8;
}

.about-numbers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.number-item {
  text-align: center;
  padding: 30px 15px;
  background: var(--color-gray-50);
  border-radius: 16px;
  border: 1px solid var(--color-gray-100);
}

.number-value {
  font-family: var(--font-en);
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
  display: inline;
}

.number-suffix {
  font-family: var(--font-en);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-accent);
}

.number-label {
  display: block;
  font-size: 0.8125rem;
  color: var(--color-gray-500);
  margin-top: 8px;
  font-weight: 500;
}

/* ---- Client Logos Section ---- */
.client-logos-section {
  margin-top: -40px;
  padding: 0 0 60px;
  background: transparent;
  overflow: hidden;
}

@media (max-width: 768px) {
  .client-logos-section {
    margin-top: 0;
    padding: 20px 0 60px;
  }
}

.client-logos-track {
  display: flex;
  width: max-content;
  animation: scrollLogos 30s linear infinite;
}

.client-logo {
  flex-shrink: 0;
  width: 220px;
  height: 80px;
  margin: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-200);
  border-radius: 8px;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-gray-400);
  letter-spacing: 0.05em;
  transition: var(--transition-base);
}

.client-logo:hover {
  background: var(--color-white);
  color: var(--color-accent);
  border-color: var(--color-accent-light);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

@keyframes scrollLogos {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ---- Services Section ---- */
.services-section {
  padding: 140px 0;
  background: var(--color-bg-alt);
  position: relative;
}

.services-section::before {
  content: 'SERVICES';
  position: absolute;
  top: 80px;
  left: 0;
  font-family: var(--font-en);
  font-size: 10rem;
  font-weight: 800;
  color: rgba(25, 59, 140, 0.04);
  letter-spacing: 0.05em;
  pointer-events: none;
}

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

.service-card {
  background: var(--color-white);
  border-radius: 20px;
  overflow: hidden;
  transition: var(--transition-smooth);
  border: 1px solid var(--color-gray-100);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.service-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .service-card-img img {
  transform: scale(1.08);
}

.service-card-number {
  position: absolute;
  top: 16px;
  left: 16px;
  font-family: var(--font-en);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-white);
  background: rgba(25, 59, 140, 0.85);
  padding: 6px 16px;
  border-radius: 50px;
  letter-spacing: 0.1em;
}

.service-card-body {
  padding: 30px;
}

.service-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 14px;
}

.service-card-text {
  font-size: 0.9375rem;
  color: var(--color-gray-500);
  line-height: 1.8;
  margin-bottom: 20px;
}

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

.service-card-list li {
  font-size: 0.875rem;
  color: var(--color-gray-600);
  padding-left: 20px;
  position: relative;
}

.service-card-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  opacity: 0.6;
}

/* ---- Process Section ---- */
.process-section {
  padding: 140px 0;
  background: var(--color-primary);
  position: relative;
  overflow: hidden;
}

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

.process-section .section-title {
  color: var(--color-white);
}

.process-section .section-subtitle {
  color: rgba(255, 255, 255, 0.6);
}

.process-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 24px;
  left: calc(12.5% + 12px);
  right: calc(12.5% + 12px);
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
}

.process-step {
  text-align: center;
  position: relative;
}

.process-step-number {
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-accent-light);
  letter-spacing: 0.15em;
  margin-bottom: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--color-accent);
  background: var(--color-primary);
  position: relative;
  z-index: 1;
  font-size: 0.625rem;
}

.process-step-content h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 12px;
}

.process-step-content p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.8;
}

/* ---- Cases Section ---- */
.cases-section {
  padding: 140px 0;
  background: var(--color-bg);
  position: relative;
  overflow: hidden;
}

.cases-section::before {
  content: 'CASE';
  position: absolute;
  top: 80px;
  right: -20px;
  font-family: var(--font-en);
  font-size: 10rem;
  font-weight: 800;
  color: rgba(25, 59, 140, 0.04);
  letter-spacing: 0.05em;
  pointer-events: none;
}

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

.case-card {
  background: var(--color-white);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--color-gray-100);
  transition: var(--transition-smooth);
}

.case-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.case-card-img {
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.case-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.case-card:hover .case-card-img img {
  transform: scale(1.06);
}

.case-card-body {
  padding: 28px;
}

.case-card-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-accent);
  background: rgba(25, 59, 140, 0.08);
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 14px;
}

.case-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
  line-height: 1.5;
}

.case-card-text {
  font-size: 0.875rem;
  color: var(--color-gray-500);
  line-height: 1.8;
  margin-bottom: 20px;
}

.case-card-results {
  display: flex;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--color-gray-100);
}

.case-result {
  display: flex;
  flex-direction: column;
}

.case-result-value {
  font-family: var(--font-en);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
}

.case-result-label {
  font-size: 0.75rem;
  color: var(--color-gray-500);
  margin-top: 6px;
}

/* ---- Company Section ---- */
.company-section {
  padding: 140px 0;
  background: var(--color-bg-alt);
  position: relative;
}

.company-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.company-image {
  border-radius: 20px;
  overflow: hidden;
}

.company-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.company-info .section-label {
  text-align: left;
}

.company-info .section-title {
  text-align: left;
  margin-bottom: 40px;
}

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

.company-table tr {
  border-bottom: 1px solid var(--color-gray-200);
}

.company-table th,
.company-table td {
  padding: 18px 0;
  font-size: 0.9375rem;
  vertical-align: top;
  text-align: left;
}

.company-table th {
  width: 120px;
  font-weight: 600;
  color: var(--color-primary);
  white-space: nowrap;
  padding-right: 24px;
}

.company-table td {
  color: var(--color-gray-600);
  line-height: 1.8;
}

.company-table td a {
  color: var(--color-accent);
}

.company-table td a:hover {
  text-decoration: underline;
}

/* ---- Contact Section ---- */
.contact-section {
  position: relative;
  padding: 140px 0;
  overflow: hidden;
}

.contact-bg {
  position: absolute;
  inset: 0;
}

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

.contact-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 22, 40, 0.92) 0%, rgba(10, 22, 40, 0.85) 100%);
}

.contact-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: flex-start;
}

.contact-text .section-title {
  margin-bottom: 20px;
}

.contact-description {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 2;
}

.contact-form-wrap {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  margin-bottom: 0;
}

.form-group--full {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 8px;
}

.required {
  font-size: 0.6875rem;
  color: #F87171;
  margin-left: 4px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  color: var(--color-white);
  font-family: var(--font-ja);
  font-size: 0.9375rem;
  transition: var(--transition-base);
  outline: none;
}

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

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

.form-submit {
  text-align: center;
  margin-top: 24px;
}

.form-submit .btn {
  width: 100%;
  justify-content: center;
}

/* ---- Footer ---- */
.footer {
  background: var(--color-gray-900);
  padding: 80px 0 40px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 16px;
}

.footer-tagline {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.8;
}

.footer-nav ul {
  display: flex;
  gap: 36px;
}

.footer-nav a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
  transition: color var(--transition-base);
}

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

.footer-bottom {
  padding-top: 30px;
  text-align: center;
}

.copyright {
  font-family: var(--font-en);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.05em;
}

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

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animations for grid children */
.services-grid .animate-on-scroll:nth-child(2) {
  transition-delay: 0.15s;
}

.services-grid .animate-on-scroll:nth-child(3) {
  transition-delay: 0.3s;
}

.cases-grid .animate-on-scroll:nth-child(2) {
  transition-delay: 0.15s;
}

.cases-grid .animate-on-scroll:nth-child(3) {
  transition-delay: 0.3s;
}

.process-timeline .animate-on-scroll:nth-child(2) {
  transition-delay: 0.1s;
}

.process-timeline .animate-on-scroll:nth-child(3) {
  transition-delay: 0.2s;
}

.process-timeline .animate-on-scroll:nth-child(4) {
  transition-delay: 0.3s;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 1024px) {
  .container {
    padding: 0 30px;
  }

  .header-inner {
    padding: 0 24px;
  }

  .nav-list {
    gap: 20px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .services-grid,
  .cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .process-timeline::before {
    display: none;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .about-numbers {
    grid-template-columns: repeat(3, 1fr);
  }

  .company-layout {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .about-section::before,
  .services-section::before,
  .cases-section::before,
  .blog-section::before,
  .news-section::before {
    font-size: 7rem;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .container {
    padding: 0 20px;
  }

  .pc-only {
    display: none;
  }

  .sp-only {
    display: inline;
  }

  .header-inner {
    padding: 0 20px;
  }

  .header-nav {
    display: none;
  }

  .hamburger {
    display: flex;
    margin-right: 0;
  }

  .hero-section {
    flex-direction: column;   /* hero-inner と SCROLL を縦積みにする */
    height: 100vh;            /* fallback */
    height: 100svh;           /* ブラウザUI込みのちょうどの画面高さ */
    min-height: 0;
    padding-top: 0;
  }

  .hero-section::before,
  .hero-section::after {
    display: none;
  }

  .hero-inner {
    flex: 1;                  /* SCROLL の分を除いた残り全高を取る */
    min-height: 0;
    flex-direction: column;
    justify-content: flex-end; /* コンテンツを下寄せ → SCROLL に近接 */
    position: relative;
    padding-top: var(--header-height);
    padding-bottom: 28px;     /* SCROLL との間の余白 */
  }

  .hero-image-area {
    height: 100vh;            /* fallback: 背景画像を hero-section 全体にカバー */
    height: 100svh;
  }

  .hero-content-area {
    width: 100%;
    max-width: 100%;
    flex: 0 0 auto;           /* コンテンツ高さのみ確保 */
    padding: 0 24px;
    z-index: 10;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .hero-text-wrap {
    max-width: 100%;
    position: relative;
    z-index: 11;
  }

  .hero-label {
    font-size: 0.75rem;
    color: var(--color-accent-light);
    margin-bottom: 14px;
  }

  .hero-title {
    color: var(--color-white);
    font-size: clamp(1.75rem, 7.5vw, 2.75rem);
    margin-bottom: 18px;
  }

  .hero-title-accent {
    color: var(--color-accent-light);
  }

  .hero-description {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.85;
    margin-bottom: 28px;
  }

  .hero-cta {
    flex-direction: column;
    gap: 12px;
  }

  .hero-cta .btn {
    justify-content: center;
    padding: 14px 32px;
  }

  .hero-scroll-indicator {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    transform: none;
    align-self: center;
    margin-bottom: 20px;
    z-index: 10;
  }

  .section-title {
    font-size: 1.625rem;
  }

  .section-header {
    margin-bottom: 50px;
  }

  .about-section,
  .services-section,
  .cases-section,
  .company-section,
  .contact-section {
    padding: 80px 0;
  }

  .process-section {
    padding: 80px 0;
  }

  .about-section::before,
  .services-section::before,
  .cases-section::before,
  .blog-section::before,
  .news-section::before {
    font-size: 4.5rem;
    top: 40px;
  }

  .about-numbers {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .number-value {
    font-size: 2rem;
  }

  .number-item {
    padding: 20px 10px;
  }

  .services-grid,
  .cases-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .process-timeline {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .process-step {
    text-align: left;
    display: flex;
    gap: 20px;
    align-items: flex-start;
  }

  .process-step-number {
    flex-shrink: 0;
    margin-bottom: 0;
  }

  .company-layout {
    gap: 40px;
  }

  .company-table th {
    width: 90px;
    font-size: 0.875rem;
    padding-right: 16px;
  }

  .company-table td {
    font-size: 0.875rem;
  }

  .contact-form-wrap {
    padding: 28px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-top {
    flex-direction: column;
    gap: 40px;
  }

  .footer-nav ul {
    flex-direction: column;
    gap: 16px;
  }

  .logo-text {
    font-size: 1.0625rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.5rem;
  }

  .number-value {
    font-size: 1.625rem;
  }

  .number-suffix {
    font-size: 1rem;
  }

  .number-label {
    font-size: 0.6875rem;
  }

  .btn {
    padding: 14px 28px;
    font-size: 0.875rem;
  }

  .btn-lg {
    padding: 16px 36px;
  }
}

/* ---- Blog Section ---- */
.blog-section {
  padding: 140px 0;
  background: var(--color-bg-alt);
  position: relative;
}

.blog-section::before {
  content: 'BLOG';
  position: absolute;
  top: 80px;
  left: 0;
  font-family: var(--font-en);
  font-size: 10rem;
  font-weight: 800;
  color: rgba(25, 59, 140, 0.04);
  letter-spacing: 0.05em;
  pointer-events: none;
}

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

.blog-card {
  background: var(--color-white);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--color-gray-100);
  transition: var(--transition-smooth);
  display: block;
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.blog-card-img {
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-card:hover .blog-card-img img {
  transform: scale(1.06);
}

.blog-card-body {
  padding: 28px;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.blog-date {
  font-family: var(--font-en);
  font-size: 0.8125rem;
  color: var(--color-gray-500);
}

.blog-category {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--color-accent);
  background: rgba(25, 59, 140, 0.08);
  padding: 4px 10px;
  border-radius: 50px;
}

.blog-card-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.5;
  transition: color var(--transition-base);
}

.blog-card:hover .blog-card-title {
  color: var(--color-accent);
}

/* ---- News Section ---- */
.news-section {
  padding: 140px 0 120px;
  background: var(--color-bg);
  position: relative;
  overflow: hidden;
}

.news-section::before {
  content: 'NEWS';
  position: absolute;
  top: 80px;
  right: -20px;
  font-family: var(--font-en);
  font-size: 10rem;
  font-weight: 800;
  color: rgba(25, 59, 140, 0.04);
  letter-spacing: 0.05em;
  pointer-events: none;
}

.news-list {
  max-width: 900px;
  margin: 0 auto;
  border-top: 1px solid var(--color-gray-200);
}

.news-item {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--color-gray-200);
  transition: var(--transition-base);
}

.news-item:hover {
  background: var(--color-gray-50);
  padding-left: 16px;
  padding-right: 16px;
  margin-left: -16px;
  margin-right: -16px;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 200px;
  flex-shrink: 0;
}

.news-date {
  font-family: var(--font-en);
  font-size: 0.9375rem;
  color: var(--color-gray-600);
}

.news-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-white);
  background: var(--color-gray-800);
  padding: 4px 12px;
  border-radius: 50px;
}

.news-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .blog-section::before,
  .news-section::before {
    font-size: 7rem;
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .blog-section::before,
  .news-section::before {
    font-size: 4.5rem;
    top: 40px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .news-item {
    flex-direction: column;
    gap: 12px;
  }
}

/* ---- Subpage Layouts ---- */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 120px;
}

.service-detail:last-child {
  margin-bottom: 0;
}

.service-detail:nth-child(even) {
  direction: rtl;
}

.service-detail:nth-child(even)>* {
  direction: ltr;
}

.service-detail-img {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.service-detail-img img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-detail:hover .service-detail-img img {
  transform: scale(1.03);
}

.service-detail-content h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 24px;
  line-height: 1.4;
}

.service-detail-content p {
  color: var(--color-gray-600);
  line-height: 2;
  margin-bottom: 30px;
}

.case-detail-card {
  display: flex;
  gap: 50px;
  background: var(--color-white);
  border-radius: 24px;
  border: 1px solid var(--color-gray-100);
  padding: 50px;
  margin-bottom: 40px;
  transition: var(--transition-smooth);
}

.case-detail-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
}

.case-detail-img {
  width: 45%;
  flex-shrink: 0;
  border-radius: 16px;
  overflow: hidden;
}

.case-detail-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16/10;
}

.case-detail-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.case-detail-content .case-card-title {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.company-message {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 100px;
}

.company-message h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 40px;
}

.company-message p {
  color: var(--color-gray-600);
  line-height: 2.2;
  font-size: 1.0625rem;
  text-align: left;
}

.company-access {
  margin-top: 100px;
}

.map-responsive {
  overflow: hidden;
  padding-bottom: 45%;
  position: relative;
  height: 0;
  border-radius: 20px;
}

.map-responsive iframe {
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  position: absolute;
  border: 0;
}

@media (max-width: 1024px) {
  .service-detail {
    gap: 40px;
  }

  .case-detail-card {
    flex-direction: column;
    padding: 30px;
    gap: 30px;
  }

  .case-detail-img {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .service-detail {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 80px;
  }

  .service-detail:nth-child(even) {
    direction: ltr;
  }

  .service-detail-content h3 {
    font-size: 1.5rem;
  }

  .case-detail-card {
    padding: 24px;
    border-radius: 16px;
  }

  .company-message h2 {
    font-size: 1.5rem;
  }

  .company-message p {
    font-size: 0.9375rem;
    text-align: left;
  }

  .map-responsive {
    padding-bottom: 75%;
  }
}