:root {
  --background: #fdfcf9;
  --surface: #f3f3ef;
  --surface-strong: #e8e8e2;
  --text: #161a38;
  --muted: #5c6170;
  --border: #d6d5cf;
  --accent: #161a38;
  --accent-dark: #10142d;
  --steel: #4d6c8a;
  --gold: #c39e4b;
  --red: #ab392d;
  --sand: #e1d3b4;
  --teal: #4d6c8a;
  --max: 1280px;
  --header-height: 74px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(22, 26, 56, 0.025) 1px, transparent 1px),
    var(--background);
  background-size: 96px 96px;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "YuGothic", "Meiryo", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  transform: translateY(-160%);
  background: var(--accent);
  color: white;
  padding: 10px 14px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px clamp(22px, 4.4vw, 64px);
  border-bottom: 1px solid rgba(22, 26, 56, 0.14);
  background: rgba(253, 252, 249, 0.96);
  backdrop-filter: blur(14px);
}

.brand {
  flex: 0 0 auto;
}

.brand img {
  width: clamp(184px, 17vw, 216px);
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(14px, 1.55vw, 24px);
  color: var(--text);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--accent);
  transition: transform 180ms ease;
}

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

.site-nav .nav-contact {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 17px;
  background: var(--accent);
  border-left: 2px solid var(--gold);
  color: white;
}

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

.menu-button {
  display: none;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  background: white;
  color: var(--text);
  min-height: 44px;
  padding: 0 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--accent);
}

.menu-button b {
  font-size: 12px;
}

.mobile-only-break {
  display: none;
}

.section {
  padding: clamp(72px, 9vw, 128px) clamp(22px, 4.5vw, 72px);
}

.section-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.hero {
  min-height: calc(100svh - var(--header-height) - 44px);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr);
  align-items: center;
  gap: clamp(44px, 7vw, 96px);
  padding-top: clamp(64px, 8vw, 104px);
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(90deg, rgba(253, 252, 249, 0.98) 0 54%, rgba(77, 108, 138, 0.08) 54% 100%),
    linear-gradient(135deg, transparent 0 72%, rgba(195, 158, 75, 0.1) 72% 100%);
}

.hero-copy {
  max-width: 690px;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--steel);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 28px;
  font-size: clamp(40px, 3.6vw, 52px);
  font-weight: 520;
  line-height: 1.25;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(30px, 3.1vw, 48px);
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 18px;
  line-height: 1.45;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 680px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 19px;
  line-height: 2;
  overflow-wrap: anywhere;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.rule-link {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 34px;
  padding: 0 22px;
  border: 1px solid var(--accent);
  background: rgba(255, 253, 249, 0.74);
  color: var(--text);
  font-weight: 700;
  transition: background 180ms ease, color 180ms ease;
}

.rule-link::after {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.rule-link:hover {
  background: var(--accent);
  color: white;
}

.rule-link.secondary {
  border-color: var(--border);
  color: var(--steel);
}

.hero-mark {
  position: relative;
  min-height: 520px;
  overflow: visible;
}

.hero-mark img {
  position: absolute;
  width: min(430px, 35vw);
  max-width: none;
  right: clamp(0px, 2vw, 28px);
  top: 50%;
  transform: translateY(-50%);
  filter: drop-shadow(0 22px 34px rgba(22, 26, 56, 0.1));
}

.role-band,
.process-section,
.materials-section {
  background: linear-gradient(180deg, var(--surface), #fffdf9);
  border-bottom: 1px solid var(--border);
}

.role-band {
  padding: clamp(72px, 8vw, 112px) clamp(22px, 4.5vw, 72px);
}

.role-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(44px, 7vw, 92px);
  align-items: start;
}

.section-heading {
  max-width: 520px;
}

.section-heading.wide {
  max-width: 850px;
}

.section-heading p,
.split-intro > p,
.contact-layout p {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.role-columns {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-left: 1px solid var(--border);
}

.role-item {
  min-width: 0;
  padding: 20px 24px 10px;
  border-right: 1px solid var(--border);
  text-align: center;
}

.role-item p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
}

.line-icon {
  width: 56px;
  height: 52px;
  margin: 0 auto 18px;
  display: grid;
  align-content: center;
  gap: 7px;
}

.line-icon span {
  display: block;
  height: 4px;
  background: var(--accent);
}

.role-item:nth-child(2) .line-icon span { background: var(--gold); }
.role-item:nth-child(3) .line-icon span { background: var(--steel); }
.role-item:nth-child(4) .line-icon span { background: var(--red); }

.line-icon span:nth-child(1) { width: 44px; }
.line-icon span:nth-child(2) { width: 32px; }
.line-icon span:nth-child(3) { width: 48px; }

.line-icon.people span:nth-child(1) { width: 24px; margin-left: 12px; }
.line-icon.people span:nth-child(2) { width: 48px; }
.line-icon.people span:nth-child(3) { width: 34px; margin-left: 8px; }

.line-icon.globe span:nth-child(1) { width: 48px; }
.line-icon.globe span:nth-child(2) { width: 24px; margin-left: 16px; }
.line-icon.globe span:nth-child(3) { width: 48px; }

.line-icon.shield span:nth-child(1) { width: 38px; margin-left: 7px; }
.line-icon.shield span:nth-child(2) { width: 50px; }
.line-icon.shield span:nth-child(3) { width: 26px; margin-left: 14px; }

.line-icon.node span:nth-child(1) { width: 20px; margin-left: 18px; }
.line-icon.node span:nth-child(2) { width: 44px; margin-left: 4px; }
.line-icon.node span:nth-child(3) { width: 32px; margin-left: 12px; }

.split-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.65fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 36px;
}

.split-intro.no-side-copy {
  grid-template-columns: minmax(0, 0.95fr);
}

.field-grid,
.principle-grid,
.business-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.field-grid article,
.principle-grid article,
.business-grid article {
  min-width: 0;
  padding: 28px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 253, 249, 0.86);
}

.field-grid span,
.business-grid span {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--steel);
  font-weight: 800;
  font-size: 13px;
}

.field-grid article:nth-child(2n) span,
.business-grid article:nth-child(2n) span { color: var(--gold); }

.field-grid article:nth-child(3n) span,
.business-grid article:nth-child(3n) span { color: var(--red); }

.field-grid p,
.principle-grid p,
.business-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.business-section {
  background:
    linear-gradient(180deg, #fffdf9, var(--surface)),
    linear-gradient(90deg, transparent 0 50%, rgba(171, 57, 45, 0.06) 50% 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.business-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.capability-tree {
  display: grid;
  grid-template-columns: minmax(260px, 0.58fr) minmax(0, 1.42fr);
  gap: clamp(36px, 5vw, 72px);
  margin-top: 54px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.tree-root {
  min-width: 0;
}

.tree-root p:last-child {
  color: var(--muted);
}

.tree-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  background: rgba(255, 253, 249, 0.88);
}

.tree-columns > div {
  min-width: 0;
  padding: 24px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.tree-columns h4 {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 15px;
  line-height: 1.6;
}

.tree-columns ul {
  margin: 0;
  padding-left: 1.1em;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
}

.tree-columns li + li {
  margin-top: 8px;
}

.process {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  padding: 42px 0 0;
  margin: 0;
  counter-reset: process;
}

.process li {
  position: relative;
  min-width: 0;
  padding: 0 24px 24px 0;
}

.process li::before {
  content: "";
  display: block;
  height: 12px;
  margin: 0 22px 28px 0;
  background: var(--accent);
}

.process li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 5px;
  right: 16px;
  width: 28px;
  height: 1px;
  background: var(--gold);
}

.process-number {
  color: var(--steel);
  font-size: 22px;
  font-weight: 800;
}

.process p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 0;
}

.reimei-section {
  background:
    linear-gradient(135deg, rgba(171, 57, 45, 0.14), transparent 32%),
    linear-gradient(225deg, rgba(195, 158, 75, 0.16), transparent 38%),
    var(--accent-dark);
  color: white;
}

.reimei-section .eyebrow,
.reimei-section .section-heading p {
  color: #e8dfce;
}

.reimei-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(44px, 7vw, 96px);
  align-items: center;
}

.reimei-map {
  position: relative;
  min-height: 520px;
  border: 1px solid rgba(225, 211, 180, 0.34);
  background:
    linear-gradient(rgba(225, 211, 180, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(225, 211, 180, 0.11) 1px, transparent 1px);
  background-size: 78px 78px;
}

.orbit {
  position: absolute;
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px solid rgba(225, 211, 180, 0.36);
  background: rgba(255, 253, 249, 0.08);
  color: white;
}

.orbit.center {
  left: 50%;
  top: 50%;
  width: 210px;
  min-height: 150px;
  transform: translate(-50%, -50%);
  padding: 22px;
}

.orbit.center strong {
  display: block;
  font-size: 20px;
}

.orbit.center span {
  color: #e8dfce;
  font-size: 12px;
}

.orbit.item {
  min-width: 150px;
  min-height: 54px;
  padding: 10px 14px;
  font-weight: 700;
  font-size: 14px;
}

.item-a { left: 8%; top: 13%; }
.item-b { right: 8%; top: 15%; }
.item-c { left: 7%; bottom: 16%; }
.item-d { right: 6%; bottom: 15%; }
.item-e { left: 50%; bottom: 6%; transform: translateX(-50%); }

.principle-list {
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.principle-list li {
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.principle-list.compact li {
  color: #fffaf0;
}

.materials-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.68fr) minmax(0, 1.32fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.materials-table {
  border-top: 1px solid var(--border);
}

.materials-table div {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}

.materials-table span {
  font-weight: 800;
  color: var(--accent);
}

.materials-table p {
  margin: 0;
  color: var(--muted);
}

.principles-section {
  background: #fffdf9;
}

.principle-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.contact-section {
  background:
    linear-gradient(90deg, rgba(195, 158, 75, 0.18) 0 12px, transparent 12px),
    var(--surface);
  border-top: 1px solid var(--border);
}

.contact-layout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}

.contact-layout > div {
  max-width: 720px;
}

.contact-button {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 30px;
  background: var(--accent);
  border-left: 5px solid var(--red);
  color: white;
  font-weight: 800;
  white-space: nowrap;
}

.company-section {
  background: #fffdf9;
  border-top: 1px solid var(--border);
}

.company-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.65fr) minmax(0, 1.35fr);
  gap: clamp(40px, 6vw, 84px);
  align-items: start;
}

.company-list {
  margin: 0;
  border-top: 1px solid var(--border);
}

.company-list div {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 22px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.company-list dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.company-list dd {
  margin: 0;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.map-panel {
  min-width: 0;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 18px 18px 0 rgba(195, 158, 75, 0.12);
}

.map-panel iframe {
  display: block;
  width: 100%;
  min-height: 420px;
  border: 0;
}

.site-footer {
  padding: 40px clamp(22px, 4.5vw, 72px);
  border-top: 1px solid var(--border);
  background: #fffdf9;
  color: var(--muted);
}

.footer-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner img {
  width: 270px;
  opacity: 0.96;
}

.footer-inner p {
  margin: 0;
  font-size: 13px;
}

@media (max-width: 1160px) {
  .site-nav {
    gap: 18px;
    font-size: 13px;
  }

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

  .field-grid,
  .principle-grid,
  .business-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .capability-tree,
  .tree-columns {
    grid-template-columns: 1fr;
  }

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

  .process li::after {
    display: none;
  }
}

@media (max-width: 880px) {
  :root {
    --header-height: 82px;
  }

  .site-header {
    padding: 18px 22px;
    gap: 16px;
  }

  .menu-button {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    flex: 0 0 48px;
    margin-left: auto;
    z-index: 2;
    width: 48px;
    padding: 0;
    gap: 4px;
    border-color: var(--accent);
    background: var(--accent);
  }

  .menu-button b {
    display: none;
  }

  .menu-button span {
    background: white;
  }

  .site-nav {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-height);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 22px 26px;
    background: white;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 24px 40px rgba(12, 34, 55, 0.1);
  }

  .site-nav.is-open {
    display: flex;
  }

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

  .site-nav .nav-contact {
    margin-top: 14px;
    justify-content: center;
    border-bottom: 0;
  }

  .hero,
  .role-layout,
  .split-intro,
  .reimei-layout,
  .materials-layout,
  .company-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-mark {
    min-height: 400px;
  }

  .hero-mark img {
    width: min(400px, 80vw);
    right: 0;
  }

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

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

  .menu-button {
    flex-basis: 44px;
    width: 44px;
  }

  .brand img {
    width: min(212px, 62vw);
  }

  h1 {
    font-size: 33px;
  }

  h2 {
    font-size: 25px;
  }

  .mobile-only-break {
    display: block;
  }

  .hero-lead {
    font-size: 16px;
    line-height: 1.9;
    word-break: break-all;
  }

  .hero-lead,
  .hero-copy,
  .hero-actions,
  .section-heading,
  .split-intro,
  .role-item,
  .field-grid article,
  .business-grid article,
  .principle-grid article,
  .materials-table,
  .capability-tree,
  .tree-root,
  .tree-columns,
  .tree-columns > div,
  .contact-layout > div,
  .company-info,
  .company-list,
  .map-panel {
    width: 100%;
    max-width: 276px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .rule-link {
    width: 100%;
    justify-content: space-between;
  }

  .hero-mark {
    min-height: 300px;
    width: 100%;
    max-width: 276px;
    overflow: hidden;
  }

  .hero-mark img {
    width: 276px;
    right: 0;
  }

  .section-heading p,
  .split-intro > p,
  .field-grid p,
  .business-grid p,
  .role-item p,
  .materials-table p,
  .tree-columns,
  .tree-columns p,
  .tree-columns li,
  .contact-layout p {
    word-break: break-all;
  }

  .role-columns,
  .field-grid,
  .business-grid,
  .principle-grid,
  .process {
    grid-template-columns: 1fr;
  }

  .role-columns {
    border-top: 1px solid var(--border);
  }

  .role-item {
    text-align: left;
    border-bottom: 1px solid var(--border);
  }

  .line-icon {
    margin-left: 0;
  }

  .materials-table div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .company-list div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .map-panel iframe {
    min-height: 320px;
  }

  .reimei-map {
    min-height: 620px;
  }

  .orbit.center {
    width: 190px;
  }

  .orbit.item {
    min-width: 132px;
    font-size: 12px;
  }

  .item-a { left: 5%; top: 8%; }
  .item-b { right: 5%; top: 20%; }
  .item-c { left: 5%; bottom: 24%; }
  .item-d { right: 5%; bottom: 12%; }
  .item-e { bottom: 3%; }
}

/* 2026-07-16 compact institutional refinement */
.site-header::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  z-index: 1;
  width: var(--scroll-progress, 0%);
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--steel));
  pointer-events: none;
}

.hero-mark::before,
.hero-mark::after {
  content: "";
  position: absolute;
  z-index: 0;
  background: rgba(22, 26, 56, 0.1);
}

.hero-mark::before {
  left: 50%;
  top: 7%;
  bottom: 7%;
  width: 1px;
}

.hero-mark::after {
  left: 7%;
  right: 7%;
  top: 50%;
  height: 1px;
}

.hero-mark img {
  z-index: 1;
}

.field-grid article,
.business-grid article,
.principle-grid article,
.role-item,
.tree-columns > div {
  transition: background-color 220ms ease, border-color 220ms ease, transform 220ms ease;
}

.field-grid article:hover,
.business-grid article:hover,
.principle-grid article:hover,
.tree-columns > div:hover {
  background: #fff;
  border-color: rgba(22, 26, 56, 0.28);
}

html.js .reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 560ms ease, transform 560ms cubic-bezier(0.22, 1, 0.36, 1);
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

html.js .hero-mark.reveal {
  transition-delay: 100ms;
}

/* Variant B: Policy Ledger */
html[data-design="ledger"] {
  --background: #fafaf7;
  --surface: #f0f1ef;
  --surface-strong: #e6e7e3;
  --muted: #555b66;
  --border: #c9cbc6;
  --header-height: 68px;
}

html[data-design="ledger"] body {
  background:
    linear-gradient(90deg, transparent 0 calc(8.333% - 1px), rgba(22, 26, 56, 0.035) calc(8.333% - 1px) 8.333%),
    var(--background);
  background-size: calc(100% / 6) 100%, auto;
}

html[data-design="ledger"] .site-header {
  padding: 8px clamp(22px, 3.2vw, 52px);
  border-bottom-color: var(--text);
  background: rgba(250, 250, 247, 0.97);
  backdrop-filter: blur(10px);
}

html[data-design="ledger"] .brand img {
  width: clamp(164px, 15vw, 194px);
}

html[data-design="ledger"] .site-nav {
  gap: clamp(12px, 1.4vw, 22px);
  font-size: 11px;
  font-weight: 700;
}

html[data-design="ledger"] .site-nav a {
  padding: 6px 0;
}

html[data-design="ledger"] .site-nav .nav-contact {
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid var(--text);
  background: transparent;
  color: var(--text);
}

html[data-design="ledger"] .site-nav .nav-contact:hover,
html[data-design="ledger"] .site-nav .nav-contact:focus-visible {
  background: var(--text);
  color: #fff;
}

html[data-design="ledger"] .section,
html[data-design="ledger"] .role-band {
  position: relative;
  padding: clamp(88px, 9vw, 132px) clamp(32px, 6.5vw, 104px);
}

html[data-design="ledger"] main > section:not(.hero)::before {
  position: absolute;
  left: clamp(18px, 2.4vw, 38px);
  top: clamp(92px, 9vw, 132px);
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  writing-mode: vertical-rl;
}

html[data-design="ledger"] #role::before { content: "02 / ROLE"; }
html[data-design="ledger"] #fields::before { content: "03 / FIELDS"; }
html[data-design="ledger"] #business::before { content: "04 / DOMAINS"; }
html[data-design="ledger"] #reimei::before { content: "05 / OPERATIONS"; }
html[data-design="ledger"] #principles::before { content: "06 / PRINCIPLES"; }
html[data-design="ledger"] #contact::before { content: "07 / CONTACT"; color: #d9d5c8; }
html[data-design="ledger"] #company::before { content: "08 / COMPANY"; }

html[data-design="ledger"] h1,
html[data-design="ledger"] h2 {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", serif;
  font-weight: 600;
}

html[data-design="ledger"] h1 {
  max-width: 680px;
  margin-bottom: 30px;
  font-size: clamp(44px, 4.2vw, 62px);
  line-height: 1.32;
}

html[data-design="ledger"] h2 {
  font-size: clamp(32px, 3.5vw, 50px);
  line-height: 1.45;
}

html[data-design="ledger"] .eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--red);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
}

html[data-design="ledger"] .eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: currentColor;
}

html[data-design="ledger"] .hero {
  min-height: calc(100svh - var(--header-height) - 36px);
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.72fr);
  gap: clamp(56px, 8vw, 132px);
  padding: clamp(68px, 8vw, 112px) clamp(32px, 6.5vw, 104px);
  background: linear-gradient(90deg, rgba(250, 250, 247, 0.98) 0 62%, rgba(230, 231, 227, 0.72) 62% 100%);
  border-bottom: 1px solid var(--text);
}

html[data-design="ledger"] .hero::before {
  content: "01 / STATEMENT";
  position: absolute;
  left: clamp(18px, 2.4vw, 38px);
  top: clamp(68px, 8vw, 112px);
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
  writing-mode: vertical-rl;
}

html[data-design="ledger"] .hero-copy {
  max-width: 760px;
}

html[data-design="ledger"] .hero-lead {
  max-width: 720px;
  color: #454a54;
  font-size: 17px;
  line-height: 2.05;
}

html[data-design="ledger"] .rule-link {
  min-height: 44px;
  padding: 0 18px;
  border-color: var(--text);
  background: transparent;
  font-size: 13px;
}

html[data-design="ledger"] .rule-link::after {
  width: 18px;
}

html[data-design="ledger"] .hero-mark {
  min-height: 500px;
  border: 1px solid var(--text);
  background:
    linear-gradient(rgba(22, 26, 56, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 26, 56, 0.07) 1px, transparent 1px),
    #f4f4f0;
  background-size: 64px 64px;
}

html[data-design="ledger"] .hero-mark::before,
html[data-design="ledger"] .hero-mark::after {
  background: rgba(22, 26, 56, 0.24);
}

html[data-design="ledger"] .hero-mark img {
  width: min(360px, 30vw);
  right: 50%;
  transform: translate(50%, -50%);
  filter: none;
  animation: ledger-settle 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes ledger-settle {
  from { opacity: 0; transform: translate(50%, -47%) scale(0.96) rotate(1.2deg); }
  to { opacity: 1; transform: translate(50%, -50%) scale(1) rotate(0); }
}

html[data-design="ledger"] .role-band,
html[data-design="ledger"] .business-section,
html[data-design="ledger"] .principles-section,
html[data-design="ledger"] .company-section {
  background: transparent;
  border-bottom: 1px solid var(--text);
}

html[data-design="ledger"] .role-layout {
  grid-template-columns: minmax(280px, 0.68fr) minmax(0, 1.32fr);
}

html[data-design="ledger"] .role-columns {
  border-top: 1px solid var(--text);
  border-left: 0;
}

html[data-design="ledger"] .role-item {
  padding: 24px 20px 18px;
  border-right-color: var(--border);
  text-align: left;
}

html[data-design="ledger"] .role-item:first-child {
  border-left: 1px solid var(--border);
}

html[data-design="ledger"] .line-icon {
  margin: 0 0 28px;
}

html[data-design="ledger"] .split-intro {
  position: relative;
  align-items: start;
  padding-bottom: 34px;
  margin-bottom: 0;
}

html[data-design="ledger"] .split-intro::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-design="ledger"] .split-intro.reveal.is-visible::after,
html[data-design="ledger"] .section-inner.reveal.is-visible .split-intro::after {
  transform: scaleX(1);
}

html[data-design="ledger"] .field-grid,
html[data-design="ledger"] .business-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 0;
}

html[data-design="ledger"] .field-grid article,
html[data-design="ledger"] .business-grid article {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  column-gap: 22px;
  align-content: start;
  padding: 28px 28px 28px 0;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
}

html[data-design="ledger"] .field-grid article:nth-child(odd),
html[data-design="ledger"] .business-grid article:nth-child(odd) {
  border-right: 1px solid var(--border);
}

html[data-design="ledger"] .field-grid article:nth-child(even),
html[data-design="ledger"] .business-grid article:nth-child(even) {
  padding-left: 28px;
}

html[data-design="ledger"] .field-grid span,
html[data-design="ledger"] .business-grid span {
  grid-row: 1 / span 2;
  margin: 0;
  color: var(--red);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 28px;
  font-weight: 500;
}

html[data-design="ledger"] .field-grid h3,
html[data-design="ledger"] .business-grid h3 {
  margin-bottom: 8px;
  font-size: 17px;
}

html[data-design="ledger"] .field-grid p,
html[data-design="ledger"] .business-grid p {
  grid-column: 2;
  margin: 0;
}

html[data-design="ledger"] .capability-tree {
  grid-template-columns: minmax(280px, 0.55fr) minmax(0, 1.45fr);
  border-top-color: var(--text);
}

html[data-design="ledger"] .tree-columns {
  background: transparent;
  border-top-color: var(--text);
  border-left: 0;
}

html[data-design="ledger"] .tree-columns > div:first-child {
  border-left: 1px solid var(--border);
}

html[data-design="ledger"] .reimei-section {
  background: #eceeea;
  color: var(--text);
  border-bottom: 1px solid var(--text);
}

html[data-design="ledger"] .reimei-section .eyebrow {
  color: var(--red);
}

html[data-design="ledger"] .reimei-section .section-heading p,
html[data-design="ledger"] .principle-list.compact li {
  color: var(--muted);
}

html[data-design="ledger"] .principle-list li {
  border-top-color: var(--border);
}

html[data-design="ledger"] .reimei-map {
  min-height: 500px;
  border-color: var(--text);
  background:
    linear-gradient(rgba(22, 26, 56, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 26, 56, 0.08) 1px, transparent 1px),
    #f7f7f3;
  background-size: 64px 64px;
}

html[data-design="ledger"] .orbit {
  border-color: var(--text);
  background: #f7f7f3;
  color: var(--text);
}

html[data-design="ledger"] .orbit.center {
  background: var(--text);
  color: #fff;
}

html[data-design="ledger"] .orbit.center span {
  color: #d9d5c8;
}

html[data-design="ledger"] .principle-grid {
  border-top-color: var(--text);
  border-left: 0;
}

html[data-design="ledger"] .principle-grid article {
  background: transparent;
}

html[data-design="ledger"] .principle-grid article:first-child {
  border-left: 1px solid var(--border);
}

html[data-design="ledger"] .contact-section {
  background: var(--text);
  color: #fff;
  border-top: 0;
  border-bottom: 1px solid #fff;
}

html[data-design="ledger"] .contact-section .eyebrow,
html[data-design="ledger"] .contact-layout p {
  color: #d9d5c8;
}

html[data-design="ledger"] .contact-button {
  border: 1px solid #fff;
  background: transparent;
  color: #fff;
}

html[data-design="ledger"] .contact-button:hover,
html[data-design="ledger"] .contact-button:focus-visible {
  background: #fff;
  color: var(--text);
}

html[data-design="ledger"] .map-panel {
  border-color: var(--text);
  box-shadow: none;
}

html[data-design="ledger"] .site-footer {
  padding-top: 30px;
  padding-bottom: 30px;
  background: var(--text);
  color: #d9d5c8;
  border-top: 0;
}

html[data-design="ledger"] .footer-inner img {
  width: 190px;
  padding: 6px;
  background: #fafaf7;
}

@media (max-width: 1160px) {
  .site-nav {
    gap: 14px;
    font-size: 12px;
  }

  html[data-design="ledger"] .site-nav {
    font-size: 11px;
  }
}

@media (max-width: 880px) {
  :root,
  html[data-design="ledger"] {
    --header-height: 68px;
  }

  .site-header,
  html[data-design="ledger"] .site-header {
    padding: 10px 18px;
  }

  .brand img,
  html[data-design="ledger"] .brand img {
    width: 176px;
  }

  .menu-button {
    flex-basis: 42px;
    width: 42px;
    min-height: 42px;
  }

  .site-nav {
    top: var(--header-height);
  }

  html[data-design="ledger"] .site-nav .nav-contact {
    min-height: 44px;
    background: var(--text);
    color: #fff;
  }

  .hero {
    padding-top: 64px;
  }

  .hero-mark {
    min-height: 360px;
  }

  .hero-mark img {
    width: min(340px, 72vw);
  }

  html[data-design="ledger"] .section,
  html[data-design="ledger"] .role-band {
    padding: 80px 24px;
  }

  html[data-design="ledger"] main > section:not(.hero)::before,
  html[data-design="ledger"] .hero::before {
    display: none;
  }

  html[data-design="ledger"] .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 72px 24px 48px;
    background: linear-gradient(180deg, #fafaf7 0 66%, #e6e7e3 66% 100%);
  }

  html[data-design="ledger"] .role-layout {
    grid-template-columns: 1fr;
  }

  html[data-design="ledger"] .hero-mark {
    min-height: 390px;
  }

  html[data-design="ledger"] .hero-mark img {
    width: min(300px, 64vw);
  }

  html[data-design="ledger"] .capability-tree {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .brand img,
  html[data-design="ledger"] .brand img {
    width: min(158px, 58vw);
  }

  .hero-lead,
  .hero-copy,
  .hero-actions,
  .section-heading,
  .split-intro,
  .role-item,
  .field-grid article,
  .business-grid article,
  .principle-grid article,
  .materials-table,
  .capability-tree,
  .tree-root,
  .tree-columns,
  .tree-columns > div,
  .contact-layout > div,
  .company-info,
  .company-list,
  .map-panel {
    max-width: none;
  }

  .hero-mark {
    max-width: none;
  }

  html[data-design="ledger"] h1 {
    font-size: 34px;
  }

  html[data-design="ledger"] h2 {
    font-size: 27px;
  }

  html[data-design="ledger"] .hero-lead {
    font-size: 15px;
  }

  html[data-design="ledger"] .field-grid,
  html[data-design="ledger"] .business-grid {
    grid-template-columns: 1fr;
  }

  html[data-design="ledger"] .field-grid article,
  html[data-design="ledger"] .business-grid article,
  html[data-design="ledger"] .field-grid article:nth-child(even),
  html[data-design="ledger"] .business-grid article:nth-child(even) {
    padding: 24px 0;
    border-right: 0;
  }

  html[data-design="ledger"] .field-grid article:nth-child(odd),
  html[data-design="ledger"] .business-grid article:nth-child(odd) {
    border-right: 0;
  }

  html[data-design="ledger"] .reimei-map {
    min-height: 600px;
  }

  html[data-design="ledger"] .footer-inner img {
    width: 172px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
