:root {
  --bg: #f4f6f3;
  --paper: #ffffff;
  --ink: #191a1d;
  --muted: #626970;
  --line: #d9ded8;
  --green: #2d6b57;
  --red: #b6423a;
  --silver: #dfe4e1;
  --shadow: 0 18px 44px rgba(25, 26, 29, 0.09);
  --shadow-lift: 0 28px 74px rgba(25, 26, 29, 0.1);
  --dark-bg: #050505;
  --dark-panel: #0b0b0c;
  --dark-panel-soft: rgba(255, 255, 255, 0.025);
  --dark-line: rgba(255, 255, 255, 0.14);
  --dark-line-soft: rgba(255, 255, 255, 0.08);
  --dark-text: rgba(255, 255, 255, 0.76);
  --dark-muted: rgba(255, 255, 255, 0.58);
  --dark-card-shadow: 0 34px 90px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  --container: 1120px;
  --space: clamp(104px, 12vw, 168px);
  --header-height: 76px;
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  max-width: 100%;
}

body {
  margin: 0;
  background: #f7f8f6;
  background-size: 48px 48px;
  color: var(--ink);
  font-family: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", system-ui, sans-serif;
  line-break: strict;
  line-height: 1.85;
  overflow-wrap: break-word;
  text-wrap: pretty;
  word-break: auto-phrase;
}

@supports not (word-break: auto-phrase) {
  body {
    word-break: normal;
  }
}

body.is-nav-open {
  overflow: hidden;
}

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

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

button {
  font: inherit;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: center;
  min-height: var(--header-height);
  padding: 0 clamp(20px, 4vw, 54px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  border-color: rgba(25, 26, 29, 0.12);
  background: rgba(247, 248, 246, 0.92);
  color: var(--ink);
  backdrop-filter: blur(18px);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid currentColor;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  line-height: 0;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.brand-name {
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.brand-note {
  color: currentColor;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  opacity: 0.72;
  text-transform: uppercase;
}

.site-nav {
  justify-self: end;
  display: flex;
  gap: clamp(14px, 2vw, 28px);
  align-items: center;
  font-size: 0.92rem;
  font-weight: 700;
}

.site-nav a {
  position: relative;
  padding-block: 6px;
  white-space: nowrap;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.2s ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
}

.eyebrow,
.section-kicker,
.service-number,
.metric span,
.timeline time {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section {
  padding-block: var(--space);
}

.section-kicker {
  margin-bottom: 16px;
  color: var(--green);
}

.hero h1,
.section h2 {
  margin: 0;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0;
  overflow-wrap: normal;
  text-wrap: balance;
  word-break: keep-all;
}

.section h2 {
  font-size: clamp(2rem, 4vw, 4.4rem);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(48px, 6vw, 78px);
}

.text-keep {
  white-space: nowrap;
}

.text-unit {
  white-space: nowrap;
}

.hero-actions,
.contact-links,
.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  white-space: nowrap;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

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

.button-secondary {
  border-color: currentColor;
  background: rgba(255, 255, 255, 0.36);
  color: currentColor;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 34px clamp(20px, 4vw, 54px);
  border-top: 1px solid var(--line);
  background: #ffffff;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

.site-footer p:first-child {
  color: var(--ink);
  font-weight: 800;
}

@media (max-width: 920px) {
  :root {
    --header-height: 70px;
    --space: clamp(86px, 12vw, 124px);
  }

  .site-header {
    grid-template-columns: 1fr auto;
    gap: 18px;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid currentColor;
    border-radius: 8px;
    background: transparent;
    color: inherit;
  }

  .nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 3px 0;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .site-header.is-open .nav-toggle span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .site-header.is-open .nav-toggle span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }

  .site-nav {
    position: fixed;
    inset: var(--header-height) 0 auto;
    display: grid;
    gap: 0;
    width: 100%;
    max-height: calc(100svh - var(--header-height));
    padding: 8px 20px 24px;
    border-bottom: 1px solid var(--line);
    background: rgba(244, 246, 243, 0.98);
    color: var(--ink);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a::after {
    display: none;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 64px;
    --space: clamp(58px, 15vw, 82px);
  }

  body {
    line-height: 1.78;
    word-break: normal;
  }

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

  .site-header {
    gap: 12px;
    padding-inline: 16px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 7px;
  }

  .brand-name {
    font-size: 1rem;
  }

  .brand-note {
    display: block;
    max-width: calc(100vw - 132px);
    overflow: hidden;
    font-size: 0.58rem;
    letter-spacing: 0.04em;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-toggle {
    width: 42px;
    height: 42px;
  }

  .site-nav {
    padding: 4px 16px 18px;
  }

  .site-nav a {
    padding: 14px 0;
  }

  .eyebrow,
  .section-kicker,
  .service-number,
  .metric span,
  .timeline time {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
  }

  .section-kicker {
    margin-bottom: 12px;
  }

  .section h2 {
    font-size: clamp(1.58rem, 7vw, 2.2rem);
    line-height: 1.24;
    overflow-wrap: break-word;
    text-wrap: balance;
    word-break: normal;
  }

  p,
  li,
  .body-copy,
  .profile-copy,
  .service-row,
  .timeline {
    overflow-wrap: break-word;
    word-break: normal;
  }

  .section-head {
    margin-bottom: 32px;
  }

  .hero-actions,
  .contact-links,
  .profile-actions {
    gap: 10px;
    align-items: stretch;
    margin-top: 24px;
  }

  .button {
    width: 100%;
    min-height: 46px;
    padding: 10px 16px;
    line-height: 1.35;
    text-align: center;
    white-space: normal;
  }

  .site-footer {
    display: grid;
    gap: 8px;
    padding: 28px 16px;
    font-size: 0.86rem;
  }
}

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

  .site-header {
    padding-inline: 12px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand-name {
    font-size: 0.9rem;
  }

  .brand-note {
    max-width: calc(100vw - 118px);
    font-size: 0.54rem;
  }

  .button {
    padding-inline: 14px;
  }
}
