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

:root {
  --navy: #1a2350;
  --navy-deep: #0e1530;
  --navy-mid: #1e2d6a;
  --blue: #3a5bd9;
  --blue-light: #5b7cf7;
  --blue-bright: #6e8efb;
  --blue-glow: rgba(91, 124, 247, 0.3);
  --white: #ffffff;
  --off-white: #f5f6fa;
  --gray-100: #eef0f6;
  --gray-300: #c8cdd8;
  --gray-500: #7a8299;
  --gray-700: #4a5068;
  --gray-900: #1a1d2e;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.8;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ===== Loading Screen ===== */
.loader {
  position: fixed;
  inset: 0;
  background: var(--navy-deep);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-logo-img {
  height: 40px;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.loader-bar {
  width: 120px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.loader-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--blue-light);
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* ===== Custom Cursor ===== */
.cursor {
  width: 8px;
  height: 8px;
  background: var(--white);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  mix-blend-mode: difference;
}

.cursor-follower {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(58, 91, 217, 0.5);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9997;
  transition: width 0.3s ease, height 0.3s ease, opacity 0.3s ease, margin 0.3s ease, background 0.3s ease;
  opacity: 0.5;
  margin-left: -14px;
  margin-top: -14px;
}

.cursor-follower.hovering {
  width: 56px;
  height: 56px;
  margin-left: -24px;
  margin-top: -24px;
  opacity: 0.15;
  background: var(--blue);
}

@media (max-width: 768px) {
  .cursor, .cursor-follower { display: none; }
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  border-bottom-color: rgba(26, 35, 80, 0.08);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-img {
  height: 32px;
  width: auto;
}

.nav {
  display: flex;
  gap: 40px;
}

.nav-link {
  text-decoration: none;
  color: var(--gray-700);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--blue);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

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

.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--gray-900);
  transition: 0.3s ease;
  transform-origin: center;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 40px 80px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 40%, var(--navy-mid) 100%);
  color: var(--white);
}

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

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
}

.hero-orb-1 {
  width: 500px;
  height: 500px;
  background: var(--blue);
  top: -10%;
  right: -5%;
  animation: orbFloat1 12s ease-in-out infinite;
}

.hero-orb-2 {
  width: 350px;
  height: 350px;
  background: var(--blue-bright);
  bottom: -5%;
  left: 10%;
  animation: orbFloat2 10s ease-in-out infinite;
}

.hero-orb-3 {
  width: 200px;
  height: 200px;
  background: #8b5cf6;
  top: 40%;
  left: 50%;
  animation: orbFloat3 8s ease-in-out infinite;
}

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

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

@keyframes orbFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-20px, -30px) scale(1.15); }
}

.hero-inner {
  max-width: 1000px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.25em;
  color: var(--blue-bright);
  margin-bottom: 28px;
  text-transform: uppercase;
  opacity: 0;
}

.hero-title {
  font-size: clamp(40px, 7vw, 84px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
}

.hero-line {
  display: block;
  opacity: 0;
  transform: translateY(60px);
}

.hero-sub {
  font-size: clamp(14px, 2vw, 18px);
  color: rgba(255, 255, 255, 0.6);
  font-weight: 300;
  letter-spacing: 0.08em;
  opacity: 0;
}

.hero-scroll {
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
}

.scroll-text {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

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

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.3; transform: scaleY(0.5); }
}

/* ===== Marquee ===== */
.marquee-section {
  background: var(--navy);
  padding: 20px 0;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marquee 20s linear infinite;
}

.marquee-track span {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.15);
  padding-right: 20px;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== Sections ===== */
.section {
  padding: 160px 40px;
  position: relative;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 80px;
}

.section-num {
  font-size: 13px;
  font-weight: 400;
  color: var(--blue);
  letter-spacing: 0.05em;
}

.section-label {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
  line-height: 1;
}

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

.section-header-light .section-num {
  color: var(--blue-bright);
}

/* ===== Navy Section ===== */
.section-navy {
  background: linear-gradient(170deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: var(--white);
}

/* ===== Blue Section ===== */
.section-blue {
  background: linear-gradient(170deg, var(--blue) 0%, var(--navy-mid) 100%);
  color: var(--white);
}

/* ===== Service ===== */
.service-hero-block {
  margin-bottom: 48px;
}

.service-name {
  font-size: clamp(56px, 10vw, 120px);
  font-weight: 800;
  color: var(--navy);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
  opacity: 0;
}

.service-tagline {
  font-size: 16px;
  color: var(--blue);
  font-weight: 600;
  letter-spacing: 0.08em;
  padding-left: 4px;
  opacity: 0;
}

.service-desc {
  font-size: 15px;
  line-height: 2.2;
  color: var(--gray-700);
  margin-bottom: 72px;
  max-width: 640px;
  opacity: 0;
}

.service-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.feature-card {
  padding: 40px 32px;
  border-left: 1px solid var(--gray-100);
  position: relative;
  overflow: hidden;
  transition: background 0.4s ease;
  opacity: 0;
  transform: translateY(40px);
}

.feature-card:first-child {
  border-left: none;
}

.feature-card:hover {
  background: var(--off-white);
}

.feature-card:hover .feature-accent {
  transform: scaleX(1);
}

.feature-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue-bright));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-num {
  display: block;
  font-size: 48px;
  font-weight: 800;
  color: var(--navy);
  opacity: 0.06;
  margin-bottom: 24px;
  line-height: 1;
}

.feature-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--gray-900);
}

.feature-tagline-sm {
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.feature-text {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.9;
}

/* ===== About ===== */
.about-message {
  margin-bottom: 80px;
}

.about-lead {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 600;
  line-height: 1.9;
  color: var(--white);
  margin-bottom: 28px;
  opacity: 0;
}

.text-glow {
  color: var(--blue-bright);
  text-shadow: 0 0 40px var(--blue-glow);
}

.about-text {
  font-size: 15px;
  line-height: 2.2;
  color: rgba(255, 255, 255, 0.5);
  max-width: 560px;
  opacity: 0;
}

.about-info {
  opacity: 0;
}

.info-table {
  width: 100%;
  max-width: 600px;
  border-collapse: collapse;
}

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

.info-table th,
.info-table td {
  padding: 20px 0;
  text-align: left;
  font-size: 14px;
  vertical-align: top;
}

.info-table th {
  font-weight: 400;
  color: rgba(255, 255, 255, 0.4);
  width: 120px;
  white-space: nowrap;
}

.info-table td {
  color: rgba(255, 255, 255, 0.85);
}

/* ===== Contact ===== */
.contact-inner {
  max-width: 640px;
}

.contact-lead {
  font-size: 16px;
  line-height: 2;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 48px;
  opacity: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  opacity: 0;
}

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

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.required {
  color: #fbbf24;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  font-family: inherit;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  transition: border-color 0.3s ease, background 0.3s ease;
  outline: none;
  border-radius: 8px;
}

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

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

.form-group textarea {
  resize: vertical;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 40px;
  background: var(--white);
  color: var(--navy);
  border: none;
  border-radius: 60px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, gap 0.3s ease;
  align-self: flex-start;
  margin-top: 8px;
}

.btn-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  gap: 18px;
}

.btn-icon {
  display: flex;
  transition: transform 0.3s ease;
}

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

/* ===== Footer ===== */
.footer {
  background: var(--navy-deep);
  padding: 60px 40px;
  color: var(--white);
}

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

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

.footer-logo .logo-img {
  height: 28px;
  filter: brightness(0) invert(1);
  opacity: 0.6;
}

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

.footer-links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--blue-bright);
}

.copyright {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 0.08em;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .header-inner {
    padding: 0 24px;
    height: 64px;
  }

  .hamburger { display: flex; }

  .nav {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--navy-deep);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 36px;
    z-index: 100;
  }

  .nav.open { display: flex; }

  .nav.open .nav-link {
    color: var(--white);
    font-size: 20px;
  }

  .hero {
    padding: 100px 24px 60px;
    min-height: 90vh;
  }

  .hero-scroll { display: none; }

  .section { padding: 100px 24px; }

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

  .section-label { font-size: 36px; }

  .service-features {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .feature-card {
    border-left: none;
    border-bottom: 1px solid var(--gray-100);
    padding: 32px 0;
  }

  .about-lead { font-size: 22px; }

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

  .footer-top {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }
}
