:root {
  --ink: #111714;
  --ink-soft: #4a5751;
  --ink-muted: #6b766f;
  --paper: #f3f4ef;
  --paper-strong: #fbfbf7;
  --paper-cool: #edf1ef;
  --line: #d2d8d2;
  --line-dark: #31413b;
  --green: #155f52;
  --green-deep: #0d3f37;
  --bluegray: #526b75;
  --copper: #a96531;
  --oxide: #7a3e35;
  --night: #0b1311;
  --night-soft: #111d1a;
  --shadow: 0 18px 34px rgba(11, 19, 17, 0.1);
  --radius: 8px;
  --header-height: 76px;
}

* {
  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.7;
}

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(1160px, calc(100% - 44px));
  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(22px, calc((100vw - 1160px) / 2));
  border-bottom: 1px solid rgba(210, 216, 210, 0.86);
  background: rgba(243, 244, 239, 0.94);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid #244d45;
  border-radius: var(--radius);
  background: var(--night);
  color: #f4efe2;
  font-size: 12px;
  font-weight: 800;
}

.brand-text {
  display: grid;
  gap: 1px;
  line-height: 1.15;
}

.brand-text span:first-child {
  font-weight: 780;
}

.brand-text span:last-child {
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 600;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
}

.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(100svh - var(--header-height));
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--night);
}

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

.hero-image {
  object-fit: cover;
  object-position: center;
  filter: saturate(0.72) contrast(1.04);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(8, 14, 13, 0.93) 0%, rgba(8, 14, 13, 0.72) 44%, rgba(8, 14, 13, 0.46) 100%),
    linear-gradient(0deg, rgba(8, 14, 13, 0.7) 0%, rgba(8, 14, 13, 0.08) 48%, rgba(8, 14, 13, 0.48) 100%);
}

.hero-grid {
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, #000 0%, transparent 84%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 92px 0 58px;
}

.eyebrow {
  margin-bottom: 14px;
  color: #d7b069;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

.hero-subtitle {
  margin-bottom: 8px;
  color: rgba(248, 246, 238, 0.74);
  font-size: 18px;
  font-weight: 700;
}

.hero h1 {
  max-width: 860px;
  margin-bottom: 22px;
  color: #fffaf0;
  font-size: 86px;
  line-height: 0.96;
  font-weight: 780;
}

.hero-copy {
  max-width: 740px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 20px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 58px;
}

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

.button.primary {
  border-color: #c99355;
  background: #c88743;
  color: #160f08;
}

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

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

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

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

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

.hero-ledger div {
  min-height: 102px;
  padding: 18px 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(9, 16, 14, 0.52);
}

.hero-ledger div:last-child {
  border-right: 0;
}

.hero-ledger dt {
  margin-bottom: 8px;
  color: #d7b069;
  font-size: 12px;
  font-weight: 800;
}

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

.section {
  padding: 98px 0;
}

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

.programs {
  background: var(--paper-cool);
}

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

.protocol {
  background: #f5f2e9;
}

.collaboration {
  background: var(--paper-cool);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 88px;
  align-items: start;
}

.section-copy h2,
.section-heading h2,
.nervroid h2,
.contact h2 {
  margin-bottom: 0;
  font-size: 48px;
  line-height: 1.14;
}

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

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

.lab-note {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 34px;
  margin-top: 64px;
  padding: 26px 0 0;
  border-top: 1px solid var(--line);
}

.lab-note span {
  color: var(--green-deep);
  font-size: 13px;
  font-weight: 800;
}

.lab-note p {
  max-width: 820px;
  margin-bottom: 0;
  color: var(--ink);
  font-size: 18px;
}

.section-heading {
  max-width: 800px;
  margin-bottom: 42px;
}

.program-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.program-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.program-index {
  color: var(--bluegray);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 15px;
  font-weight: 800;
}

.program-label {
  margin-bottom: 6px;
  color: var(--copper);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.program-item h3,
.protocol-grid h3 {
  margin-bottom: 8px;
  font-size: 24px;
  line-height: 1.3;
}

.program-item p,
.protocol-grid p,
.contact-panel li {
  margin-bottom: 0;
  font-size: 15px;
}

.nervroid-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 78px;
  align-items: start;
}

.system-map {
  display: grid;
  gap: 12px;
  padding-top: 6px;
}

.system-map div {
  position: relative;
  min-height: 118px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: var(--radius);
  background: #f4f7f4;
  box-shadow: var(--shadow);
}

.system-map span {
  display: block;
  margin-bottom: 18px;
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.system-map strong {
  display: block;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.35;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 78px;
  align-items: start;
}

.profile-panel {
  display: grid;
  gap: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f4f7f4;
  box-shadow: var(--shadow);
}

.profile-panel p {
  margin-bottom: 0;
  font-size: 16px;
}

.profile-list {
  display: grid;
  margin: 0;
  border-top: 1px solid var(--line);
}

.profile-list div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.profile-list dt {
  color: var(--bluegray);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-list dd {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
}

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

.protocol-grid article {
  min-height: 230px;
  padding: 24px;
  border: 1px solid #d7d0c2;
  border-radius: var(--radius);
  background: #fbfaf6;
}

.protocol-grid span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-bottom: 36px;
  padding: 0 10px;
  border: 1px solid rgba(82, 107, 117, 0.28);
  border-radius: 999px;
  color: var(--bluegray);
  font-size: 12px;
  font-weight: 800;
}

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

.collaboration-grid article {
  min-height: 260px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-strong);
  box-shadow: var(--shadow);
}

.collaboration-grid span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-bottom: 42px;
  padding: 0 10px;
  border: 1px solid rgba(21, 95, 82, 0.28);
  border-radius: 999px;
  color: var(--green-deep);
  font-size: 12px;
  font-weight: 800;
}

.collaboration-grid h3 {
  margin-bottom: 10px;
  font-size: 24px;
  line-height: 1.32;
}

.collaboration-grid p {
  margin-bottom: 0;
  font-size: 15px;
}

.contact {
  padding: 96px 0;
  background: var(--night);
  color: #fff;
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: 86px;
  align-items: start;
}

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

.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.055);
}

.contact-panel ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: rgba(255, 255, 255, 0.8);
}

.site-footer {
  padding: 28px 0;
  background: #080d0c;
  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: 940px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-height) 16px auto 16px;
    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: 76px 0 44px;
  }

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

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

  .hero-ledger div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .hero-ledger div:last-child {
    border-bottom: 0;
  }

  .split,
  .nervroid-layout,
  .about-layout,
  .contact-inner {
    gap: 38px;
  }
}

@media (max-width: 620px) {
  :root {
    --header-height: 66px;
  }

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

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

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

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

  .hero-inner {
    padding: 54px 0 32px;
  }

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

  .hero-subtitle {
    font-size: 15px;
  }

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

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

  .hero-ledger {
    display: none;
  }

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

  .hero-ledger div {
    min-height: auto;
    padding: 15px;
  }

  .section {
    padding: 70px 0;
  }

  .section-copy h2,
  .section-heading h2,
  .nervroid h2,
  .contact h2 {
    font-size: 34px;
  }

  .lab-note,
  .program-item,
  .profile-list div {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .program-item {
    padding: 24px 0;
  }

  .program-item h3,
  .protocol-grid h3,
  .collaboration-grid h3 {
    font-size: 21px;
  }

  .system-map div,
  .protocol-grid article,
  .profile-panel,
  .collaboration-grid article,
  .contact-panel {
    padding: 20px;
  }

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