/* ===========================
   CSS VARIABLES
=========================== */
:root {
  --bg-main: #050d1a;
  --bg-sub: #07111f;
  --bg-card: #0c1a2e;
  --bg-card-hover: #0f2042;
  --accent: #1a6fff;
  --accent-cyan: #00d4ff;
  --accent-glow: rgba(26, 111, 255, 0.25);
  --text-primary: #e8edf5;
  --text-secondary: #7a8fa6;
  --text-muted: #3d5068;
  --border: rgba(255, 255, 255, 0.07);
  --border-accent: rgba(26, 111, 255, 0.3);
  --grid-line: rgba(26, 111, 255, 0.07);
  --font-jp: 'Noto Sans JP', sans-serif;
  --font-en: 'Space Grotesk', sans-serif;
  --radius: 8px;
  --radius-lg: 12px;
  --transition: 0.3s ease;
  --container-max: 1100px;
  --container-narrow: 760px;
  --section-pad: clamp(72px, 10vw, 130px);
}

/* ===========================
   RESET & BASE
=========================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-jp);
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ===========================
   LAYOUT
=========================== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}

.container-narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: var(--section-pad) 0;
  position: relative;
}

.bg-sub {
  background-color: var(--bg-sub);
}

.pc-br {
  display: inline;
}

.sp-br {
  display: none;
}

/* ===========================
   HEADER
=========================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background-color 0.5s ease, border-color 0.5s ease, backdrop-filter 0.5s ease;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background-color: rgba(5, 13, 26, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 60px);
  height: 72px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
}

/* ロゴ画像: images/logo.png に横長PNGを置いてください (推奨: 透過背景、高さ44px相当) */
.logo-img {
  display: block;
  height: 44px;
  width: auto;
  transition: opacity var(--transition);
}

.logo:hover .logo-img {
  opacity: 0.8;
}

/* Nav */
.nav-list {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
  position: relative;
  transition: color var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-cyan) !important;
  padding: 7px 18px;
  border: 1px solid var(--border-accent);
  border-radius: var(--radius);
  letter-spacing: 0.08em;
  transition: background-color var(--transition), box-shadow var(--transition);
}

.nav-cta::after {
  display: none;
}

.nav-cta:hover {
  background-color: rgba(26, 111, 255, 0.12);
  box-shadow: 0 0 24px rgba(26, 111, 255, 0.2);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.bar {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle.open .bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle.open .bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open .bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ===========================
   HERO
=========================== */
.hero {
  position: relative;
  height: 100svh;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}

.hero-content {
  max-width: 820px;
}

.hero-label {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 28px;
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.hero-line-1 {
  font-size: clamp(26px, 4vw, 48px);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  line-height: 1.35;
}

.hero-line-2 {
  font-size: clamp(18px, 2.8vw, 24px);
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.hero-sub {
  font-size: clamp(16px, 2.5vw, 24px);
  font-weight: 500;
  color: rgba(232, 237, 245, 0.85);
  /* Slightly lower than text-primary (#e8edf5) but higher than text-secondary (#7a8fa6) */
  line-height: 1.8;
  margin-bottom: 40px;
}

/* Hero animation */
.animate-hero {
  opacity: 0;
  transform: translateY(28px);
  animation: heroFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: var(--delay, 0ms);
}

@keyframes heroFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: clamp(20px, 5vw, 60px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  z-index: 1;
}

.scroll-text {
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

.scroll-bar {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollDrop 2s ease-in-out infinite;
}

@keyframes scrollDrop {

  0%,
  100% {
    opacity: 0.3;
    transform: scaleY(0.5) translateY(-10px);
  }

  50% {
    opacity: 1;
    transform: scaleY(1) translateY(0);
  }
}

/* ===========================
   BUTTON
=========================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-jp);
  font-size: 14px;
  font-weight: 500;
  padding: 14px 28px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 20px rgba(26, 111, 255, 0.35);
}

.btn-primary:hover {
  background: #2a7fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(26, 111, 255, 0.5);
}

.btn-icon {
  transition: transform var(--transition);
}

.btn-primary:hover .btn-icon {
  transform: translateX(4px);
}

/* ===========================
   SECTION HEADER
=========================== */
.section-header {
  text-align: center;
  margin-bottom: clamp(48px, 6vw, 80px);
}

.section-tag {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(22px, 3.2vw, 36px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.03em;
  margin-bottom: 20px;
}

.section-lead {
  font-size: clamp(13px, 1.4vw, 15px);
  color: var(--text-secondary);
  line-height: 2;
  max-width: 640px;
  margin: 0 auto;
}

/* ===========================
   CARDS GRID
=========================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* Issue Cards */
.issue-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 36px);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.issue-card:hover {
  border-color: rgba(26, 111, 255, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(26, 111, 255, 0.15);
}

/* Service Cards */
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 36px);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-cyan));
  opacity: 0;
  transition: opacity var(--transition);
}

.service-card:hover {
  border-color: rgba(26, 111, 255, 0.35);
  transform: translateY(-4px);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(26, 111, 255, 0.15);
}

/* Card internals */
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: rgba(26, 111, 255, 0.1);
  border: 1px solid rgba(26, 111, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  margin-bottom: 20px;
  transition: background var(--transition), box-shadow var(--transition);
}

.issue-card:hover .card-icon,
.service-card:hover .card-icon {
  background: rgba(26, 111, 255, 0.18);
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.2);
}

.card-title {
  font-size: clamp(15px, 1.6vw, 17px);
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.card-body {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.9;
}

/* ===========================
   APPROACH
=========================== */
.approach-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  display: flex;
  gap: clamp(24px, 4vw, 56px);
  align-items: flex-start;
  padding: clamp(36px, 4vw, 56px) 0;
  position: relative;
}

.step::after {
  content: '';
  position: absolute;
  top: calc(clamp(36px, 4vw, 56px) + clamp(60px, 7vw, 88px));
  left: calc(clamp(60px, 7vw, 88px) / 2);
  width: 1px;
  height: calc(100% - clamp(60px, 7vw, 88px));
  background: var(--border-accent);
}

.step:last-child::after {
  display: none;
}

.step-num {
  flex-shrink: 0;
  width: clamp(60px, 7vw, 88px);
  height: clamp(60px, 7vw, 88px);
  border: 1px solid var(--border-accent);
  background: var(--bg-sub);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.step-num span {
  font-family: var(--font-en);
  font-size: clamp(18px, 2.4vw, 28px);
  font-weight: 300;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.step-title {
  font-size: clamp(17px, 1.8vw, 22px);
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.03em;
}

.step-body {
  font-size: clamp(13px, 1.3vw, 15px);
  color: var(--text-secondary);
  line-height: 2;
}

/* ===========================
   COMPANY TABLE
=========================== */
.table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.company-table {
  width: 100%;
  border-collapse: collapse;
}

.company-table tr {
  border-bottom: 1px solid var(--border);
}

.company-table tr:last-child {
  border-bottom: none;
}

.company-table th {
  width: 160px;
  padding: clamp(14px, 2vw, 20px) clamp(16px, 2.5vw, 28px);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-align: left;
  background: rgba(255, 255, 255, 0.02);
  letter-spacing: 0.06em;
  vertical-align: top;
  white-space: nowrap;
}

.company-table td {
  padding: clamp(14px, 2vw, 20px) clamp(16px, 2.5vw, 28px);
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.8;
}

/* ===========================
   CONTACT
=========================== */
.contact-email-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  position: relative;
}

.btn-contact {
  font-size: clamp(15px, 2vw, 18px);
  padding: 16px 36px;
  border-radius: var(--radius-lg);
  gap: 12px;
}

.btn-contact .btn-icon {
  width: 18px;
  height: 18px;
}

.copy-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
  cursor: pointer;
  padding: 10px 16px;
  font-size: 13px;
  font-family: var(--font-jp);
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.copy-btn:hover {
  color: var(--text-primary);
  border-color: var(--accent);
  background: rgba(26, 111, 255, 0.08);
}

.copy-toast {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 20px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.copy-toast.show {
  opacity: 1;
}

/* ===========================
   FOOTER
=========================== */
.site-footer {
  background: var(--bg-sub);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.footer-logo {
  gap: 16px;
}

.footer-logo .logo-img {
  height: 48px;
}

.footer-nav ul {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  transition: color var(--transition);
}

.footer-nav a:hover {
  color: var(--text-primary);
}

.footer-copy {
  font-family: var(--font-en);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

/* ===========================
   SCROLL ANIMATIONS
=========================== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   RESPONSIVE - TABLET (≤ 900px)
=========================== */
@media (max-width: 900px) {
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .nav-toggle {
    display: flex;
  }

  .global-nav {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 13, 26, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    z-index: 999;
  }

  .global-nav.open {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .nav-list li {
    border-bottom: 1px solid var(--border);
  }

  .nav-link {
    display: block;
    padding: 20px 40px;
    font-size: 16px;
    color: var(--text-primary) !important;
  }

  .nav-link::after {
    display: none;
  }

  .nav-cta {
    border: none;
    border-radius: 0;
    padding: 20px 40px;
    color: var(--accent-cyan) !important;
  }

  .pc-br {
    display: none;
  }

  .step {
    flex-direction: column;
    gap: 16px;
  }

  .step::after {
    display: none;
  }

  .company-table th {
    width: 120px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 24px;
  }
}

/* ===========================
   RESPONSIVE - MOBILE (≤ 480px)
=========================== */
@media (max-width: 480px) {
  .hero-line-1 {
    font-size: clamp(24px, 6vw, 32px);
  }

  .hero-line-2 {
    font-size: clamp(15px, 4vw, 18px);
  }

  .hero-sub {
    font-size: 16px;
  }

  .sp-br {
    display: block;
  }

  .logo-jp {
    display: none;
  }

  .contact-email-wrap {
    flex-direction: column;
  }

  .btn-contact {
    width: 100%;
    justify-content: center;
  }

  .company-table th {
    font-size: 11px;
    white-space: normal;
  }

  .footer-nav ul {
    gap: 16px;
  }
}