:root {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-alt: #eef2f6;
  --text: #101828;
  --text-soft: #475467;
  --text-muted: #98a2b3;
  --line: #d0d5dd;
  --line-strong: #98a2b3;
  --navy: #0f274f;
  --navy-soft: #2f4875;
  --accent: #2e90fa;
  --container: 1120px;
  --transition: 180ms ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", "Noto Sans JP", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #fbfcfd 0%, var(--bg) 100%);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(245, 247, 250, 0.78);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  z-index: 24;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: 18px;
  top: -52px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--navy);
  color: #ffffff;
}

.skip-link:focus-visible {
  top: 18px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid transparent;
  transition:
    background var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.site-header.is-scrolled {
  background: rgba(251, 252, 253, 0.94);
  border-color: rgba(16, 24, 40, 0.08);
  box-shadow: 0 8px 18px rgba(16, 24, 40, 0.04);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 80px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 10px;
  height: 10px;
  background: linear-gradient(135deg, var(--accent), var(--navy));
}

.brand-text {
  display: grid;
  gap: 2px;
}

.brand-text strong {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-text span {
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  padding: 10px 12px;
  color: var(--text-soft);
  font-size: 0.95rem;
  transition:
    color var(--transition),
    opacity var(--transition);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--navy);
  outline: none;
}

.site-nav .nav-cta {
  padding: 10px 16px;
  background: var(--navy);
  color: #ffffff;
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta:focus-visible {
  color: #ffffff;
  background: #173566;
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 8px;
  margin-right: -8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: var(--navy);
}

.hero {
  padding: 92px 0 72px;
  background:
    linear-gradient(180deg, rgba(46, 144, 250, 0.05), transparent 42%),
    linear-gradient(180deg, #fbfcfd 0%, #f5f7fa 100%);
  border-bottom: 1px solid rgba(16, 24, 40, 0.08);
}

.hero-inner {
  display: grid;
  gap: 34px;
}

.js-enabled .reveal {
  opacity: 1;
  transform: none;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--navy-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero .eyebrow {
  letter-spacing: 0.08em;
}

.hero-copy h1,
.section-copy h2,
.contact-copy h2 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.07em;
  font-weight: 700;
  max-width: none;
  text-wrap: balance;
  white-space: normal;
}

.hero-copy h1 {
  font-size: clamp(2.5rem, 3.35vw, 3.18rem);
}

.hero-lead,
.section-copy p,
.contact-copy p {
  margin: 22px 0 0;
  max-width: 60ch;
  font-size: 1.04rem;
  color: var(--text-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--navy);
  font-weight: 600;
  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition);
}

.button-primary {
  background: var(--navy);
  color: #ffffff;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #173566;
  border-color: #173566;
  outline: none;
}

.button-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--line-strong);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--navy);
  background: rgba(255, 255, 255, 0.7);
  outline: none;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(16, 24, 40, 0.1);
  border-bottom: 1px solid rgba(16, 24, 40, 0.1);
}

.hero-facts > div {
  padding: 24px 0;
}

.hero-facts > div + div {
  border-left: 1px solid rgba(16, 24, 40, 0.1);
  padding-left: 18px;
}

.hero-facts span {
  display: block;
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-facts strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
}

.section {
  padding: 108px 0;
  border-bottom: 1px solid rgba(16, 24, 40, 0.08);
}

.section-alt {
  background: #ffffff;
}

.section-dark {
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.section-dark .section-eyebrow {
  color: rgba(255, 255, 255, 0.62);
}

.section-dark .section-copy h2,
.section-dark .service-card h3,
.section-dark .flow-card h3 {
  color: #ffffff;
}

.section-dark .section-copy p,
.section-dark .service-card p,
.section-dark .flow-card p,
.section-dark .service-index,
.section-dark .flow-card span {
  color: rgba(255, 255, 255, 0.68);
}

.section-dark .service-grid,
.section-dark .flow-grid {
  border-top-color: rgba(255, 255, 255, 0.16);
  border-bottom-color: rgba(255, 255, 255, 0.16);
}

.section-dark .service-card + .service-card,
.section-dark .flow-card + .flow-card {
  border-left-color: rgba(255, 255, 255, 0.16);
}

.section-copy {
  margin-bottom: 38px;
}

.section-eyebrow,
.contact-eyebrow {
  color: var(--navy);
}

.section-copy h2,
.contact-copy h2 {
  font-size: clamp(1.75rem, 2.5vw, 2.45rem);
}

.service-grid,
.scope-grid,
.flow-grid {
  display: grid;
  gap: 0;
}

.service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-card {
  padding: 34px 26px 42px 0;
}

.service-card + .service-card {
  padding-left: 26px;
  border-left: 1px solid var(--line);
}

.service-index,
.flow-card span {
  display: inline-block;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.service-card h3,
.scope-panel h3,
.flow-card h3 {
  margin: 16px 0 10px;
  font-size: 1.16rem;
  letter-spacing: -0.02em;
}

.service-card p,
.scope-panel li,
.flow-card p {
  margin: 0;
  color: var(--text-soft);
}

.scope-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 52px;
  align-items: start;
}

.scope-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.scope-panel {
  padding: 34px 0 40px;
}

.scope-panel + .scope-panel {
  padding-left: 26px;
  border-left: 1px solid var(--line);
}

.scope-label {
  margin: 0 0 14px;
  color: var(--navy-soft);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.scope-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.scope-panel li + li {
  margin-top: 10px;
}

.flow-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.flow-card {
  padding: 34px 0 40px;
}

.flow-card + .flow-card {
  padding-left: 22px;
  border-left: 1px solid var(--line);
}

.contact-section {
  padding-top: 108px;
  padding-bottom: 108px;
  background: #ffffff;
  border-bottom: 0;
}

.contact-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding-top: 24px;
  border-top: 2px solid var(--navy);
}

.contact-shell .button {
  justify-self: start;
}

.site-footer {
  padding: 0 0 28px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

:focus-visible {
  outline: 3px solid rgba(46, 144, 250, 0.3);
  outline-offset: 2px;
}

@media (min-width: 1121px) {
  .hero-copy h1 {
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .js-enabled .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 920px) {
  .service-grid,
  .scope-grid,
  .flow-grid,
  .scope-layout,
  .contact-shell {
    grid-template-columns: 1fr;
  }

  .service-card + .service-card,
  .scope-panel + .scope-panel,
  .flow-card + .flow-card {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 26px;
  }

  .section-dark .service-card + .service-card,
  .section-dark .flow-card + .flow-card {
    border-top-color: rgba(255, 255, 255, 0.16);
  }

  .hero-facts {
    grid-template-columns: 1fr;
  }

  .hero-copy h1,
  .section-copy h2,
  .contact-copy h2 {
    white-space: normal;
  }

  .hero-facts > div + div {
    border-left: 0;
    border-top: 1px solid rgba(16, 24, 40, 0.1);
    padding-left: 0;
  }
}

@media (max-width: 1120px) {
  .scope-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .contact-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  body.nav-open {
    overflow: hidden;
  }

  body.nav-open::before {
    inset: 72px 0 0;
    opacity: 1;
  }

  body.nav-open .site-header {
    background: rgba(251, 252, 253, 0.98);
    border-color: rgba(16, 24, 40, 0.08);
    box-shadow: 0 10px 24px rgba(16, 24, 40, 0.06);
  }

  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: fixed;
    inset: 80px 20px auto;
    display: grid;
    gap: 8px;
    padding: 14px;
    background: #fbfcfd;
    border: 1px solid rgba(16, 24, 40, 0.08);
    box-shadow: 0 18px 40px rgba(16, 24, 40, 0.08);
    transform: translateY(-18px);
    opacity: 0;
    pointer-events: none;
    z-index: 31;
    transition:
      transform var(--transition),
      opacity var(--transition);
  }

  body.nav-open .site-nav {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .site-nav a {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .header-inner {
    min-height: 72px;
  }

  .hero {
    padding-top: 56px;
    padding-bottom: 48px;
  }

  .hero-copy h1 {
    font-size: clamp(2.4rem, 12vw, 4rem);
  }

  .section,
  .contact-section {
    padding-top: 84px;
    padding-bottom: 84px;
  }

  .hero-actions,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .button {
    width: 100%;
  }

  .contact-shell {
    justify-items: stretch;
  }
}
