:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #5f6b7a;
  --line: #d9e1ea;
  --paper: #f7f4ed;
  --surface: #ffffff;
  --blue: #115e9f;
  --blue-dark: #0b3154;
  --green: #16846f;
  --gold: #b98531;
  --red: #a6423a;
  --shadow: 0 24px 70px rgba(17, 24, 39, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Noto Sans JP", system-ui, -apple-system, sans-serif;
  letter-spacing: 0;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 56px);
  color: #fff;
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.site-header.scrolled,
.site-header.open {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 32px rgba(17, 24, 39, 0.08);
  backdrop-filter: blur(16px);
}

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

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 8px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.2;
}

.brand strong {
  font-size: 15px;
}

.brand small {
  margin-top: 2px;
  font-size: 11px;
  opacity: 0.72;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 600;
}

.site-nav a {
  opacity: 0.86;
}

.site-nav a:hover {
  opacity: 1;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.language-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-width: 92px;
  padding: 3px;
  border: 1px solid currentColor;
  border-radius: 8px;
}

.language-switch button {
  min-height: 30px;
  border: 0;
  border-radius: 6px;
  color: inherit;
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.language-switch button.active {
  color: var(--blue-dark);
  background: #fff;
}

.site-header.scrolled .language-switch button.active,
.site-header.open .language-switch button.active {
  color: #fff;
  background: var(--blue-dark);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: 8px;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
  color: #fff;
  background: #09111d;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

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

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(7, 18, 32, 0.91) 0%, rgba(7, 18, 32, 0.7) 42%, rgba(7, 18, 32, 0.28) 100%),
    linear-gradient(180deg, rgba(7, 18, 32, 0.5) 0%, rgba(7, 18, 32, 0.1) 60%, rgba(7, 18, 32, 0.78) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 40px));
  padding: 174px 0 190px;
  margin-left: clamp(20px, 6vw, 86px);
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(42px, 6.4vw, 86px);
  line-height: 1.03;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 660px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.9;
}

.hero-actions,
.header-actions,
.button {
  flex-wrap: wrap;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 8px;
  font-weight: 800;
}

.button.primary {
  color: #fff;
  background: var(--green);
}

.button.primary:hover {
  background: #116d5d;
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #fff;
}

.button.light {
  color: var(--blue-dark);
  background: #fff;
}

.hero-panel {
  position: absolute;
  right: clamp(20px, 5vw, 68px);
  bottom: 34px;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  width: min(600px, calc(100% - 40px));
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  background: rgba(9, 17, 29, 0.62);
  backdrop-filter: blur(18px);
}

.hero-panel div {
  padding: 20px;
}

.hero-panel div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-panel span {
  display: block;
  font-size: 25px;
  font-weight: 800;
}

.hero-panel p {
  margin: 7px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.5;
}

.section {
  padding: 104px clamp(20px, 6vw, 86px);
}

.intro {
  background: var(--surface);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.92fr) minmax(280px, 1fr);
  gap: clamp(28px, 7vw, 100px);
  align-items: start;
}

.intro h2,
.section-heading h2,
.quality h2,
.contact h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.15;
  letter-spacing: 0;
}

.intro p,
.quality-copy p,
.contact p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 2;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 34px;
}

.section-heading h2 {
  max-width: 760px;
}

.section-heading.compact {
  display: block;
  max-width: 760px;
}

.services {
  background: #eef3f6;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  min-height: 270px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.05);
}

.icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.service-card:nth-child(2) .icon {
  background: var(--green);
}

.service-card:nth-child(3) .icon {
  background: var(--gold);
}

.service-card:nth-child(4) .icon {
  background: var(--red);
}

.service-card h3,
.timeline-item h3 {
  margin: 28px 0 10px;
  font-size: 21px;
}

.service-card p,
.timeline-item p,
.quality-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.process {
  background: var(--surface);
}

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

.timeline-item {
  min-height: 230px;
  padding: 30px 28px;
  border-right: 1px solid var(--line);
}

.timeline-item:last-child {
  border-right: 0;
}

.timeline-item span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--blue);
  font-weight: 800;
}

.quality {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1fr);
  gap: clamp(34px, 8vw, 120px);
  padding: 104px clamp(20px, 6vw, 86px);
  color: #fff;
  background: var(--blue-dark);
}

.quality .section-kicker {
  color: #8fd4c8;
}

.quality-copy p {
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.75);
}

.quality-list {
  display: grid;
  gap: 16px;
}

.quality-list div {
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.quality-list strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.quality-list p {
  color: rgba(255, 255, 255, 0.72);
}

.industries {
  background: var(--surface);
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pill-list span {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 18px;
  background: #fbfcfd;
  color: var(--blue-dark);
  font-weight: 700;
}

.contact {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
  align-items: center;
  padding: 86px clamp(20px, 6vw, 86px);
  color: #fff;
  background: var(--green);
}

.contact .section-kicker {
  color: rgba(255, 255, 255, 0.7);
}

.contact p {
  max-width: 780px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.8);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(20px, 6vw, 86px);
  color: #fff;
  background: #08111c;
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer span,
.site-footer p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

@media (max-width: 980px) {
  .site-nav {
    position: absolute;
    top: 77px;
    left: 20px;
    right: 20px;
    display: none;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: #fff;
    box-shadow: var(--shadow);
  }

  .site-header.open .site-nav {
    display: grid;
  }

  .menu-toggle {
    display: block;
  }

  .hero-content {
    padding-top: 138px;
    padding-bottom: 32px;
  }

  .hero-panel,
  .intro-grid,
  .quality,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin: 0 20px 34px;
  }

  .card-grid,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline-item:nth-child(2) {
    border-right: 0;
  }

  .timeline-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 14px 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand strong {
    font-size: 13px;
  }

  .brand small {
    display: none;
  }

  .language-switch {
    min-width: 78px;
  }

  .hero {
    min-height: 820px;
  }

  .hero-content {
    width: calc(100% - 32px);
    padding-top: 124px;
    padding-bottom: 28px;
    margin-left: 16px;
  }

  .hero h1 {
    font-size: 39px;
  }

  .hero-panel {
    grid-template-columns: 1fr;
    bottom: 22px;
  }

  .hero-panel div + div {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    border-left: 0;
  }

  .section,
  .quality,
  .contact {
    padding: 72px 20px;
  }

  .section-heading {
    display: block;
  }

  .card-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .service-card,
  .timeline-item {
    min-height: auto;
  }

  .timeline-item,
  .timeline-item:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .timeline-item:last-child {
    border-bottom: 0;
  }

  .site-footer {
    display: block;
  }
}
