:root {
  --ink: #18211d;
  --ink-soft: #3f4b44;
  --paper: #f7f6f1;
  --paper-strong: #ffffff;
  --line: #d8d7cf;
  --green: #2c7565;
  --green-deep: #16493f;
  --amber: #c2782b;
  --coral: #b65f4c;
  --night: #101615;
  --shadow: 0 18px 42px rgba(24, 33, 29, 0.14);
  --radius: 8px;
  --header-height: 72px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    "Inter", "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN",
    system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.65;
}

body.nav-open {
  overflow: hidden;
}

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

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

p,
h1,
h2,
h3 {
  margin-top: 0;
}

p {
  color: var(--ink-soft);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  padding: 0 max(20px, calc((100vw - 1120px) / 2));
  background: rgba(247, 246, 241, 0.92);
  border-bottom: 1px solid rgba(216, 215, 207, 0.78);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  background: var(--green-deep);
  color: #fff;
  font-size: 16px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--ink-soft);
  font-size: 14px;
}

.site-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--green-deep);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-strong);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: calc(86svh - var(--header-height));
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--night);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
}

.hero-shade {
  background: rgba(9, 15, 14, 0.56);
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: clamp(72px, 10vh, 112px) 0 clamp(56px, 8vh, 86px);
}

.eyebrow {
  margin-bottom: 12px;
  color: #f0d8a0;
  font-size: 13px;
  font-weight: 700;
}

.eyebrow.dark {
  color: var(--coral);
}

.hero h1 {
  max-width: 760px;
  margin-bottom: 18px;
  color: #fff;
  font-size: clamp(52px, 10vw, 118px);
  line-height: 0.95;
  font-weight: 760;
}

.hero-copy {
  max-width: 680px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2.2vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: clamp(32px, 7vh, 64px);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 700;
  white-space: nowrap;
}

.button.primary {
  background: var(--amber);
  color: #18130b;
}

.button.primary:hover,
.button.primary:focus-visible {
  background: #d88a38;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.34);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  background: rgba(255, 255, 255, 0.16);
}

.button.light {
  width: fit-content;
  color: #17130c;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 920px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.22);
}

.hero-facts div {
  min-height: 92px;
  padding: 16px;
  background: rgba(12, 18, 17, 0.62);
}

.hero-facts dt {
  margin-bottom: 6px;
  color: #f2d99e;
  font-size: 12px;
  font-weight: 700;
}

.hero-facts dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
}

.section {
  padding: clamp(70px, 10vw, 112px) 0;
}

.intro {
  background: var(--paper-strong);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 8vw, 96px);
  align-items: start;
}

.section-copy h2,
.section-heading h2,
.nervroid h2,
.contact h2 {
  margin-bottom: 0;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.08;
}

.section-body p {
  max-width: 680px;
  font-size: 17px;
}

.section-body p:last-child {
  margin-bottom: 0;
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 54px;
}

.signal-grid article,
.process-steps article {
  min-height: 210px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfaf6;
}

.signal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 28px;
  margin-bottom: 28px;
  border-radius: 999px;
  background: #e7efe9;
  color: var(--green-deep);
  font-size: 12px;
  font-weight: 800;
}

.signal-grid h3,
.work-item h3,
.principles h3,
.process-steps h3 {
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.25;
}

.signal-grid p,
.work-item p,
.principles li,
.process-steps p {
  margin-bottom: 0;
  font-size: 15px;
}

.muted {
  background: #eceee8;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 44px;
}

.work-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.work-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 18px;
  min-height: 172px;
  padding: 24px;
  border: 1px solid #d4d8d0;
  border-radius: var(--radius);
  background: var(--paper-strong);
  box-shadow: var(--shadow);
}

.work-index {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--green);
  color: #fff;
  font-weight: 800;
}

.nervroid {
  background: var(--paper-strong);
}

.nervroid-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: clamp(30px, 7vw, 86px);
  align-items: start;
}

.nervroid p {
  max-width: 720px;
  font-size: 17px;
}

.principles {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f1f5f0;
}

.principles ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding-left: 20px;
}

.process {
  background: #f3f0e7;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.process-steps span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 34px;
  border: 1px solid rgba(44, 117, 101, 0.35);
  border-radius: var(--radius);
  color: var(--green-deep);
  font-weight: 800;
}

.contact {
  padding: clamp(72px, 10vw, 108px) 0;
  background: var(--night);
  color: #fff;
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 440px);
  gap: clamp(28px, 8vw, 96px);
  align-items: center;
}

.contact p {
  color: rgba(255, 255, 255, 0.78);
}

.contact-panel {
  display: grid;
  gap: 20px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.site-footer {
  padding: 28px 0;
  background: #0c1110;
  color: rgba(255, 255, 255, 0.72);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 14px;
}

.footer-inner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.footer-inner a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-height) 14px auto 14px;
    display: grid;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper-strong);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
  }

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

  .site-nav a {
    padding: 0 10px;
    border-bottom: 1px solid #ecebe5;
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding-top: 72px;
  }

  .hero-facts,
  .signal-grid,
  .work-list,
  .process-steps {
    grid-template-columns: 1fr;
  }

  .hero-facts div {
    min-height: 72px;
  }

  .split,
  .nervroid-layout,
  .contact-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  :root {
    --header-height: 64px;
  }

  .shell {
    width: min(100% - 28px, 1120px);
  }

  .site-header {
    min-height: var(--header-height);
    padding-inline: 14px;
  }

  .brand {
    max-width: calc(100vw - 84px);
  }

  .brand span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero-copy {
    font-size: 16px;
  }

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

  .hero-actions {
    display: grid;
    margin-bottom: 0;
  }

  .hero-facts {
    display: none;
  }

  .button {
    width: 100%;
    white-space: normal;
    text-align: center;
  }

  .section-copy h2,
  .section-heading h2,
  .nervroid h2,
  .contact h2 {
    font-size: clamp(30px, 10vw, 42px);
  }

  .work-item {
    grid-template-columns: 1fr;
  }

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