:root {
  --color-bg: #ffffff;
  --color-bg-soft: #f7f9fb;
  --color-text: #111827;
  --color-text-muted: #4b5563;
  --color-border: #e5e7eb;
  --color-navy: #0f2742;
  --color-blue: #1e5b9a;
  --color-blue-soft: #eef5fb;
  --color-line-green: #507d70;
  --color-ink-soft: rgba(15, 39, 66, 0.08);
  --color-blue-wash: rgba(30, 91, 154, 0.08);
  --font-body: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  --font-display: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --container: 1120px;
  --header-height: 74px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0;
}

body.nav-open {
  overflow: hidden;
}

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

a:hover {
  color: var(--color-blue);
}

img,
svg {
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(30, 91, 154, 0.34);
  outline-offset: 3px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--color-navy);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

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

.brand-word {
  font-family: var(--font-display);
  font-size: 20px;
}

.brand-wordmark {
  display: block;
  width: clamp(142px, 12vw, 176px);
  height: auto;
  max-height: 34px;
  object-fit: contain;
  object-position: left center;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--color-text-muted);
  font-size: 13px;
  line-height: 1.4;
}

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

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--color-navy);
  border-bottom-color: var(--color-blue);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-bg);
  color: var(--color-navy);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 18px;
  height: 1px;
  background: currentColor;
  display: block;
  transition: transform 160ms ease, opacity 160ms ease;
}

.site-header.is-open .menu-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-header.is-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.is-open .menu-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: min(760px, calc(100vh - var(--header-height)));
  display: flex;
  align-items: center;
  padding: 92px 0 90px;
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.92) 44%, rgba(255, 255, 255, 0.48) 70%, rgba(255, 255, 255, 0.14) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0.9)),
    url("/assets/five-lines-institutional-hero.png") center right / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(229, 231, 235, 0.48) 1px, transparent 1px) 0 0 / 80px 80px,
    linear-gradient(180deg, rgba(229, 231, 235, 0.38) 1px, transparent 1px) 0 0 / 80px 80px,
    radial-gradient(circle at 72% 22%, rgba(30, 91, 154, 0.1), transparent 34%);
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  opacity: 0.68;
}

.hero::after {
  content: "";
  position: absolute;
  right: max(26px, calc((100vw - var(--container)) / 2));
  top: 82px;
  bottom: 72px;
  width: min(38vw, 430px);
  border: 1px solid rgba(255, 255, 255, 0.46);
  background:
    linear-gradient(90deg, transparent 0 16%, rgba(15, 39, 66, 0.18) 16% calc(16% + 1px), transparent calc(16% + 1px) 100%),
    linear-gradient(90deg, transparent 0 22%, rgba(15, 39, 66, 0.16) 22% calc(22% + 1px), transparent calc(22% + 1px) 100%),
    linear-gradient(90deg, transparent 0 28%, rgba(15, 39, 66, 0.14) 28% calc(28% + 1px), transparent calc(28% + 1px) 100%),
    linear-gradient(90deg, transparent 0 34%, rgba(15, 39, 66, 0.12) 34% calc(34% + 1px), transparent calc(34% + 1px) 100%);
  opacity: 0.7;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(260px, 0.28fr);
  align-items: center;
  gap: 56px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: var(--color-blue);
  font-size: 12px;
  line-height: 1.5;
}

.eyebrow::before {
  content: "";
  width: 44px;
  height: 1px;
  background: var(--color-blue);
}

.hero h1,
.page-hero h1 {
  margin: 0;
  color: var(--color-navy);
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.35;
}

.hero-line {
  display: block;
}

.hero-lead {
  max-width: 480px;
  margin: 18px 0 0;
  color: var(--color-text-muted);
  font-size: 14px;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid var(--color-navy);
  border-radius: 4px;
  background: var(--color-bg);
  color: var(--color-navy);
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

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

.button-primary:hover {
  border-color: var(--color-blue);
  background: var(--color-blue);
  color: #fff;
}

.button-secondary {
  background: transparent;
}

.button-secondary:hover {
  background: rgba(30, 91, 154, 0.06);
}

.hero-visual-caption {
  justify-self: end;
  width: min(100%, 230px);
  min-height: 360px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  opacity: 0.42;
  pointer-events: none;
}

.hero-visual-caption span {
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--color-navy), transparent);
}

.domain-strip {
  border-bottom: 1px solid var(--color-border);
  background:
    linear-gradient(90deg, rgba(247, 249, 251, 0.94), #fff),
    linear-gradient(90deg, rgba(15, 39, 66, 0.05) 1px, transparent 1px) 0 0 / 56px 56px;
}

.domain-strip-inner {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  min-height: 88px;
  align-items: stretch;
}

.domain-strip-label {
  display: flex;
  align-items: center;
  border-right: 1px solid var(--color-border);
  color: var(--color-blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.domain-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.domain-list li {
  display: grid;
  gap: 8px;
  align-content: center;
  min-width: 0;
  padding: 18px 22px;
  border-right: 1px solid var(--color-border);
  color: var(--color-navy);
  font-weight: 700;
}

.domain-list li:last-child {
  border-right: 0;
}

.domain-list span {
  color: var(--color-blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 400;
}

.section {
  padding: 96px 0;
  border-bottom: 1px solid var(--color-border);
}

.section-soft {
  background:
    linear-gradient(90deg, rgba(247, 249, 251, 0.98), rgba(255, 255, 255, 0.86)),
    linear-gradient(90deg, rgba(15, 39, 66, 0.04) 1px, transparent 1px) 0 0 / 72px 72px;
}

.section-header {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  margin-bottom: 48px;
}

.section-kicker {
  margin: 0 0 14px;
  color: var(--color-blue);
  font-size: 12px;
  line-height: 1.5;
}

.section-title {
  margin: 0;
  color: var(--color-navy);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.42;
}

.section-lead {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 14px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--color-border);
  border-left: 1px solid var(--color-border);
}

.service-card,
.principle-card,
.role-card,
.detail-card {
  min-width: 0;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 248px;
  padding: 30px;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background:
    linear-gradient(90deg, rgba(30, 91, 154, 0.04) 1px, transparent 1px) 0 0 / 44px 44px;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.service-card:hover {
  border-bottom-color: rgba(30, 91, 154, 0.34);
  background:
    linear-gradient(180deg, rgba(238, 245, 251, 0.2), rgba(238, 245, 251, 0.04)),
    linear-gradient(90deg, rgba(30, 91, 154, 0.06) 1px, transparent 1px) 0 0 / 44px 44px;
}

.service-card::after {
  content: "";
  position: absolute;
  top: 30px;
  right: 30px;
  width: 54px;
  height: 54px;
  border-top: 1px solid rgba(30, 91, 154, 0.28);
  border-right: 1px solid rgba(30, 91, 154, 0.28);
}

.item-number {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--color-blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.service-card h3,
.principle-card h3,
.role-card h3,
.detail-card h2,
.detail-card h3 {
  margin: 0;
  color: var(--color-navy);
  font-size: 17px;
  line-height: 1.55;
}

.service-card p,
.principle-card p,
.role-card p,
.detail-card p {
  margin: 18px 0 0;
  color: var(--color-text-muted);
}

.service-tag {
  display: inline-flex;
  width: fit-content;
  margin-top: auto;
  padding-top: 22px;
  color: var(--color-blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  line-height: 1.4;
}

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

.editorial-copy {
  color: var(--color-text-muted);
}

.editorial-copy p {
  margin: 0 0 20px;
}

.editorial-copy p:last-child {
  margin-bottom: 0;
}

.institution-panel {
  border-top: 1px solid var(--color-border);
}

.panel-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--color-border);
}

.about-panel {
  margin-top: 34px;
}

.panel-row dt {
  color: var(--color-blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.panel-row dd {
  margin: 0;
  color: var(--color-navy);
  font-weight: 700;
}

.reimei-band {
  position: relative;
  min-height: 360px;
  padding: 54px;
  border: 1px solid var(--color-border);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.72) 62%, rgba(238, 245, 251, 0.64)),
    url("/assets/five-lines-institutional-hero.png") center right / auto 124% no-repeat;
  overflow: hidden;
}

.reimei-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(30, 91, 154, 0.08) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(180deg, rgba(30, 91, 154, 0.055) 1px, transparent 1px) 0 0 / 56px 56px;
  opacity: 0.66;
}

.reimei-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.7) 52%, rgba(255, 255, 255, 0.16));
}

.reimei-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.reimei-axis {
  position: absolute;
  right: 44px;
  top: 44px;
  bottom: 44px;
  z-index: 2;
  display: flex;
  gap: 13px;
  align-items: stretch;
  pointer-events: none;
}

.reimei-axis span {
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(15, 39, 66, 0.42), transparent);
}

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

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

.principle-card,
.role-card {
  position: relative;
  padding: 26px;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: transparent;
}

.principle-card {
  min-height: 210px;
}

.principle-card::after {
  content: "";
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 20px;
  height: 1px;
  background: linear-gradient(90deg, rgba(80, 125, 112, 0.36), transparent);
}

.principle-card::before,
.role-card::before {
  content: "";
  display: block;
  width: 36px;
  height: 2px;
  margin-bottom: 18px;
  background: var(--color-line-green);
}

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

.company-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  padding: 24px 0;
  border-bottom: 1px solid var(--color-border);
}

.company-row dt {
  color: var(--color-text-muted);
}

.company-row dd {
  margin: 0;
  color: var(--color-navy);
  font-weight: 700;
}

.contact-cta {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 36px;
  align-items: center;
  padding: 44px;
  border: 1px solid var(--color-border);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(238, 245, 251, 0.78)),
    linear-gradient(90deg, rgba(15, 39, 66, 0.04) 1px, transparent 1px) 0 0 / 48px 48px;
  overflow: hidden;
}

.cta-lines {
  position: absolute;
  right: 22px;
  top: 0;
  bottom: 0;
  display: flex;
  gap: 11px;
  opacity: 0.25;
}

.cta-lines span {
  width: 1px;
  background: var(--color-navy);
}

.contact-cta h2 {
  margin: 0;
  color: var(--color-navy);
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.45;
}

.contact-cta p {
  margin: 14px 0 0;
  color: var(--color-text-muted);
}

.page-hero {
  position: relative;
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--color-border);
  background:
    linear-gradient(90deg, rgba(247, 249, 251, 0.98), rgba(255, 255, 255, 0.8)),
    linear-gradient(90deg, rgba(229, 231, 235, 0.72) 1px, transparent 1px) 0 0 / 80px 80px;
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  top: -38px;
  right: max(24px, calc((100vw - var(--container)) / 2));
  width: min(42vw, 520px);
  height: calc(100% + 76px);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.04)),
    url("/assets/five-lines-institutional-hero.png") center / cover no-repeat;
  opacity: 0.42;
  clip-path: polygon(18% 0, 100% 0, 82% 100%, 0 100%);
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero .eyebrow {
  margin-bottom: 18px;
}

.page-lead {
  max-width: 560px;
  margin: 18px 0 0;
  color: var(--color-text-muted);
  font-size: 14px;
}

.detail-list {
  display: grid;
  gap: 18px;
}

.detail-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 28px;
  padding: 30px 0;
  border-bottom: 1px solid var(--color-border);
}

.detail-card:first-child {
  border-top: 1px solid var(--color-border);
}

.detail-card ul {
  margin: 20px 0 0;
  padding-left: 1.2em;
  color: var(--color-text-muted);
}

.detail-card li + li {
  margin-top: 8px;
}

.empty-state {
  padding: 48px;
  border: 1px solid var(--color-border);
  background: transparent;
}

.empty-state h2 {
  margin: 0;
  color: var(--color-navy);
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.45;
}

.empty-state p {
  margin: 18px 0 0;
  color: var(--color-text-muted);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.contact-note {
  padding: 28px;
  border: 1px solid var(--color-border);
  background: transparent;
}

.contact-note h2 {
  margin: 0;
  color: var(--color-navy);
  font-family: var(--font-display);
  font-size: 21px;
}

.contact-note p {
  margin: 16px 0 0;
  color: var(--color-text-muted);
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: 30px;
  border: 1px solid var(--color-border);
  background: transparent;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  color: var(--color-navy);
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-bg-soft);
  color: var(--color-text);
  padding: 12px 14px;
}

.field input:disabled,
.field select:disabled,
.field textarea:disabled {
  color: var(--color-text-muted);
  cursor: not-allowed;
  opacity: 1;
}

.helper-text,
.form-status {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 13px;
  line-height: 1.6;
}

.form-status {
  min-height: 24px;
  padding-top: 2px;
  color: var(--color-navy);
  font-weight: 700;
}

.site-footer {
  background: var(--color-navy);
  color: #fff;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 56px;
  padding: 54px 0;
}

.footer-brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
}

.footer-copy {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.74);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  justify-content: flex-end;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
}

.footer-nav a:hover {
  color: #fff;
}

.copyright {
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
}

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

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(180px, 0.25fr);
    gap: 42px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 28px;
  }

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

@media (min-width: 1101px) {
  .hero-line {
    white-space: nowrap;
  }
}

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

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    padding: 12px 18px 24px;
    border-bottom: 1px solid var(--color-border);
    background: #fff;
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
    transition: transform 180ms ease, opacity 180ms ease, visibility 180ms ease;
  }

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

  .site-nav a {
    min-height: 46px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--color-border);
    font-size: 15px;
  }

  .hero {
    min-height: auto;
    padding: 64px 0 56px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.9)),
      url("/assets/five-lines-institutional-hero.png") center top / cover no-repeat;
  }

  .hero::after {
    display: none;
  }

  .hero-grid,
  .split-grid,
  .section-header,
  .contact-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 44px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 26px;
  }

  .hero-visual-caption {
    display: none;
  }

  .domain-strip-inner {
    grid-template-columns: 1fr;
  }

  .domain-strip-label {
    min-height: 48px;
    border-right: 0;
    border-bottom: 1px solid var(--color-border);
  }

  .domain-list {
    grid-template-columns: repeat(5, minmax(96px, 1fr));
    overflow-x: auto;
  }

  .domain-list li {
    min-height: 74px;
    padding: 16px 18px;
  }

  .page-hero::after {
    opacity: 0.22;
    right: -120px;
    width: 420px;
  }

  .section {
    padding: 64px 0;
  }

  .section-header {
    gap: 18px;
    margin-bottom: 34px;
  }

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

  .role-grid,
  .principles-grid {
    grid-template-columns: 1fr;
  }

  .contact-cta {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .footer-nav {
    justify-content: flex-start;
  }
}

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

  .brand-word {
    font-size: 18px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 24px;
  }

  .hero-lead,
  .page-lead {
    font-size: 14px;
  }

  .hero-actions,
  .section-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .section {
    padding: 56px 0;
  }

  .section-title {
    font-size: 21px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-card,
  .principle-card,
  .role-card,
  .reimei-band,
  .empty-state,
  .contact-note,
  .contact-form,
  .contact-cta {
    padding: 22px;
  }

  .domain-strip-label {
    font-size: 11px;
  }

  .domain-list {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .domain-list li {
    min-height: 58px;
    border-right: 0;
    border-bottom: 1px solid var(--color-border);
  }

  .domain-list li:last-child {
    border-bottom: 0;
  }

  .page-hero::after {
    display: none;
  }

  .company-row,
  .panel-row,
  .detail-card {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .contact-cta h2 {
    font-size: 22px;
  }
}

/* White institutional rebuild: the current Five Lines home page direction. */
.painted-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}

body.white-story-page {
  --scene-bg: #ffffff;
  --scene-accent: #1e5b9a;
  --scene-accent-rgb: 30 91 154;
  --scene-wash: 0.18;
  --scene-wash-soft: 0.08;
  --scene-line-alpha: 0.16;
  --cursor-x: 78vw;
  --cursor-y: 22vh;
  --bg-rail-x: 0px;
  --bg-rail-y: 0px;
  --bg-depth: 0;
  --white-story-text: #111827;
  --white-story-muted: #4b5563;
  --white-story-border: #e5e7eb;
  --white-story-surface: #f7f9fb;
  position: relative;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(247, 249, 251, 0.84)),
    radial-gradient(ellipse at 82% 18%, rgb(var(--scene-accent-rgb) / var(--scene-wash-soft)), transparent 36vw),
    linear-gradient(118deg, transparent 12%, rgb(var(--scene-accent-rgb) / var(--scene-wash-soft)) 50%, transparent 72%),
    var(--scene-bg);
  color: var(--white-story-text);
}

body.white-story-page .painted-bg {
  z-index: 0;
  opacity: 0.76;
  mix-blend-mode: multiply;
}

body.white-story-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(15, 39, 66, 0.064) 1px, transparent 1px) var(--bg-rail-x) 0 / 8.333vw 8.333vw,
    linear-gradient(180deg, rgba(15, 39, 66, 0.042) 1px, transparent 1px) 0 var(--bg-rail-y) / 8.333vw 8.333vw,
    linear-gradient(90deg, transparent 0 calc(50% - 23vw), rgb(var(--scene-accent-rgb) / var(--scene-line-alpha)) calc(50% - 23vw) calc(50% - 23vw + 1px), transparent calc(50% - 23vw + 1px) 100%),
    linear-gradient(90deg, transparent 0 calc(50% - 11vw), rgb(var(--scene-accent-rgb) / var(--scene-line-alpha)) calc(50% - 11vw) calc(50% - 11vw + 1px), transparent calc(50% - 11vw + 1px) 100%),
    linear-gradient(90deg, transparent 0 50%, rgb(var(--scene-accent-rgb) / var(--scene-line-alpha)) 50% calc(50% + 1px), transparent calc(50% + 1px) 100%),
    linear-gradient(90deg, transparent 0 calc(50% + 11vw), rgb(var(--scene-accent-rgb) / var(--scene-line-alpha)) calc(50% + 11vw) calc(50% + 11vw + 1px), transparent calc(50% + 11vw + 1px) 100%),
    linear-gradient(90deg, transparent 0 calc(50% + 23vw), rgb(var(--scene-accent-rgb) / var(--scene-line-alpha)) calc(50% + 23vw) calc(50% + 23vw + 1px), transparent calc(50% + 23vw + 1px) 100%),
    radial-gradient(circle at var(--cursor-x) var(--cursor-y), rgb(var(--scene-accent-rgb) / var(--scene-wash)), transparent 30vw),
    radial-gradient(circle at 78% 18%, rgb(var(--scene-accent-rgb) / var(--scene-wash-soft)), transparent 32vw);
  transition: background-position 900ms ease, opacity 900ms ease;
}

body.white-story-page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(15, 39, 66, 0.08), transparent 18%, transparent 74%, rgba(15, 39, 66, 0.1)),
    linear-gradient(112deg, transparent 0%, rgb(var(--scene-accent-rgb) / var(--scene-wash-soft)) 44%, transparent 68%),
    radial-gradient(ellipse at 82% 52%, rgb(var(--scene-accent-rgb) / var(--scene-wash-soft)), transparent 34vw),
    radial-gradient(ellipse at 16% 78%, rgba(200, 162, 91, 0.12), transparent 28vw);
  mix-blend-mode: multiply;
  opacity: calc(0.68 + (var(--bg-depth) * 0.18));
  transition: opacity 500ms ease;
}

body.white-story-page .story-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 80;
  height: 3px;
  background: rgba(15, 39, 66, 0.06);
  pointer-events: none;
}

body.white-story-page .story-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #1e5b9a, #507d70, #c8a25b);
  transform: scaleX(0);
  transform-origin: left center;
}

body.white-story-page .site-header,
body.white-story-page main,
body.white-story-page .site-footer {
  position: relative;
  z-index: 2;
}

body.white-story-page .site-header {
  background: rgba(255, 255, 255, 0.86);
  border-bottom-color: rgba(15, 39, 66, 0.12);
  backdrop-filter: blur(20px) saturate(120%);
}

body.white-story-page .brand,
body.white-story-page .site-nav a {
  color: var(--color-navy);
}

body.white-story-page .brand-mark {
  border: 1px solid rgba(15, 39, 66, 0.12);
}

body.white-story-page .brand-mark rect {
  fill: #ffffff;
}

body.white-story-page .brand-mark path {
  stroke: #0f2742;
}

body.white-story-page .site-nav a:hover,
body.white-story-page .site-nav a[aria-current="page"] {
  color: #1e5b9a;
  border-bottom-color: #1e5b9a;
}

body.white-story-page .menu-toggle {
  border-color: rgba(15, 39, 66, 0.16);
  background: rgba(255, 255, 255, 0.72);
  color: var(--color-navy);
}

.white-hero {
  position: relative;
  min-height: min(820px, calc(100svh - var(--header-height) - 54px));
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--white-story-border);
}

.white-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(112deg, transparent 16%, rgb(var(--scene-accent-rgb) / var(--scene-wash-soft)) 52%, transparent 76%),
    linear-gradient(90deg, transparent 0 calc(50% - 20vw), rgb(var(--scene-accent-rgb) / var(--scene-line-alpha)) calc(50% - 20vw) calc(50% - 20vw + 1px), transparent calc(50% - 20vw + 1px) 100%),
    linear-gradient(90deg, transparent 0 calc(50% - 10vw), rgb(var(--scene-accent-rgb) / var(--scene-line-alpha)) calc(50% - 10vw) calc(50% - 10vw + 1px), transparent calc(50% - 10vw + 1px) 100%),
    linear-gradient(90deg, transparent 0 50%, rgb(var(--scene-accent-rgb) / var(--scene-line-alpha)) 50% calc(50% + 1px), transparent calc(50% + 1px) 100%),
    linear-gradient(90deg, transparent 0 calc(50% + 10vw), rgb(var(--scene-accent-rgb) / var(--scene-line-alpha)) calc(50% + 10vw) calc(50% + 10vw + 1px), transparent calc(50% + 10vw + 1px) 100%),
    linear-gradient(90deg, transparent 0 calc(50% + 20vw), rgb(var(--scene-accent-rgb) / var(--scene-line-alpha)) calc(50% + 20vw) calc(50% + 20vw + 1px), transparent calc(50% + 20vw + 1px) 100%),
    radial-gradient(circle at var(--cursor-x) var(--cursor-y), rgb(var(--scene-accent-rgb) / var(--scene-wash)), transparent 30vw);
  mix-blend-mode: multiply;
  opacity: 0.88;
}

.white-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  opacity: 0.9;
}

.white-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.94) 39%, rgba(255, 255, 255, 0.66) 72%, rgba(255, 255, 255, 0.3)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.94));
}

.white-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.82) contrast(1.03);
}

.white-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: clamp(36px, 7vw, 92px);
  align-items: end;
  padding-top: clamp(82px, 9vw, 132px);
  padding-bottom: clamp(64px, 7vw, 104px);
}

.white-hero-copy h1 {
  max-width: 600px;
  margin: 0;
  color: var(--color-navy);
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 600;
  line-height: 1.18;
}

.hero-wordmark {
  display: block;
  width: min(320px, 78vw);
  height: auto;
  margin: 0 0 22px;
  mix-blend-mode: multiply;
}

.white-hero-copy h1 span {
  display: block;
}

.white-hero-copy .hero-lead {
  max-width: 460px;
  margin: 18px 0 0;
  color: #394657;
  font-size: clamp(13px, 0.95vw, 14px);
  line-height: 1.8;
}

.line-index {
  border-top: 1px solid rgba(15, 39, 66, 0.18);
  border-bottom: 1px solid rgba(15, 39, 66, 0.18);
  background: transparent;
  backdrop-filter: none;
}

.line-index p {
  margin: 0;
  padding: 18px 0;
  color: var(--color-navy);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
}

.line-index ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.line-index li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  padding: 15px 0;
  border-top: 1px solid rgba(15, 39, 66, 0.12);
  color: #334155;
}

.line-index span,
.chapter-index,
.line-briefs span,
.service-ledger span {
  color: var(--scene-accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.chapter-index {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
}

.chapter-index::before {
  content: "";
  width: 58px;
  height: 1px;
  background: currentColor;
}

.white-chapter {
  position: relative;
  min-height: min(920px, 100svh);
  display: grid;
  align-items: center;
  padding: 104px 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.74)),
    linear-gradient(122deg, transparent 8%, rgb(var(--scene-accent-rgb) / var(--scene-wash-soft)) 52%, transparent 74%),
    var(--scene-bg);
  border-bottom: 1px solid rgba(15, 39, 66, 0.1);
  overflow: hidden;
}

.white-chapter::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgb(var(--scene-accent-rgb) / 0.075) 1px, transparent 1px) var(--bg-rail-x) 0 / 96px 96px,
    linear-gradient(180deg, rgba(15, 39, 66, 0.035) 1px, transparent 1px) 0 var(--bg-rail-y) / 96px 96px;
  z-index: 0;
}

.white-chapter::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(118deg, transparent 10%, rgb(var(--scene-accent-rgb) / var(--scene-wash-soft)) 48%, transparent 74%),
    radial-gradient(circle at var(--cursor-x) var(--cursor-y), rgb(var(--scene-accent-rgb) / var(--scene-wash)), transparent 34vw),
    radial-gradient(ellipse at 82% 54%, rgb(var(--scene-accent-rgb) / var(--scene-wash-soft)), transparent 38vw);
  mix-blend-mode: multiply;
  opacity: calc(0.52 + (var(--bg-depth) * 0.28));
}

.white-chapter-compact {
  min-height: auto;
}

.white-chapter-grid,
.white-split {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(360px, 1fr);
  gap: clamp(42px, 7vw, 86px);
  align-items: center;
}

.white-chapter-grid-reversed {
  grid-template-columns: minmax(360px, 1fr) minmax(0, 0.86fr);
}

.story-copy h2,
.story-heading h2 {
  margin: 0;
  color: var(--color-navy);
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 600;
  line-height: 1.18;
}

.story-copy p:not(.chapter-index),
.story-heading p {
  margin: 18px 0 0;
  color: #3f4c5e;
  font-size: 14px;
  line-height: 1.8;
}

.story-media,
.white-company-panel figure {
  position: relative;
  margin: 0;
  aspect-ratio: 1.08;
  overflow: hidden;
  border: 1px solid rgba(15, 39, 66, 0.14);
  background: transparent;
  box-shadow: 0 28px 90px rgba(15, 39, 66, 0.1);
}

.story-media::after,
.white-company-panel figure::after {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  pointer-events: none;
}

.story-media img,
.white-company-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.9) contrast(1.04);
}

.line-briefs,
.principle-ledger {
  position: relative;
  z-index: 2;
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(15, 39, 66, 0.14);
  border-left: 1px solid rgba(15, 39, 66, 0.14);
  background: transparent;
  backdrop-filter: none;
}

.line-briefs article,
.principle-ledger article {
  min-height: 148px;
  padding: 24px;
  border-right: 1px solid rgba(15, 39, 66, 0.14);
  border-bottom: 1px solid rgba(15, 39, 66, 0.14);
}

.line-briefs h3,
.principle-ledger h3,
.service-ledger strong,
.white-company-panel dd {
  margin: 18px 0 0;
  color: var(--color-navy);
  font-size: 17px;
  line-height: 1.5;
}

.line-briefs p,
.principle-ledger p,
.service-ledger p,
.white-company-panel dt {
  margin: 14px 0 0;
  color: var(--white-story-muted);
}

.service-ledger {
  border-top: 1px solid rgba(15, 39, 66, 0.14);
  background: transparent;
  backdrop-filter: none;
}

.service-ledger div {
  display: grid;
  grid-template-columns: 150px minmax(0, 0.7fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid rgba(15, 39, 66, 0.14);
}

.service-ledger strong,
.service-ledger p {
  margin: 0;
}

.story-heading {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin-bottom: 54px;
}

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

.principle-ledger span {
  display: block;
  width: 44px;
  height: 2px;
  margin-bottom: 22px;
  background: var(--scene-accent);
}

.white-company-panel {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 26px;
}

.white-company-panel figure {
  aspect-ratio: 16 / 10;
}

.white-company-panel dl {
  margin: 0;
  border-top: 1px solid rgba(15, 39, 66, 0.14);
  background: transparent;
  backdrop-filter: none;
}

.white-company-panel dl div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(15, 39, 66, 0.14);
}

.white-company-panel dt,
.white-company-panel dd {
  margin-top: 0;
}

body.white-story-page .site-footer {
  background: #0f2742;
  border-top-color: rgba(15, 39, 66, 0.14);
}

body.white-story-page .site-footer,
body.white-story-page .site-footer a,
body.white-story-page .footer-copy,
body.white-story-page .copyright {
  color: rgba(255, 255, 255, 0.78);
}

body.white-story-page .footer-brand {
  color: #ffffff;
}

@media (max-width: 1100px) {
  .white-hero-grid,
  .white-chapter-grid,
  .white-chapter-grid-reversed,
  .white-split {
    grid-template-columns: 1fr;
  }

  .line-index {
    max-width: 620px;
  }

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

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

  body.white-story-page::after {
    opacity: 0.36;
  }
}

@media (max-width: 860px) {
  body.white-story-page .site-nav {
    background: rgba(255, 255, 255, 0.98);
    border-bottom-color: rgba(15, 39, 66, 0.14);
  }

  body.white-story-page .site-nav a {
    border-bottom-color: rgba(15, 39, 66, 0.1);
  }

  .white-hero {
    min-height: auto;
  }

  .white-hero-grid {
    padding-top: 72px;
    padding-bottom: 58px;
  }

  .white-chapter {
    min-height: auto;
    padding: 76px 0;
  }

  .line-briefs,
  .principle-ledger {
    grid-template-columns: 1fr;
  }

  .service-ledger div {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (max-width: 560px) {
  .white-hero-grid {
    padding-top: 56px;
    padding-bottom: 46px;
  }

  .white-hero-copy h1 {
    font-size: clamp(26px, 8vw, 32px);
  }

  .white-hero-copy .hero-lead,
  .story-copy p:not(.chapter-index),
  .story-heading p {
    font-size: 14px;
  }

  .story-media,
  .white-company-panel figure {
    aspect-ratio: 1 / 1;
  }

  .line-briefs article,
  .principle-ledger article {
    min-height: auto;
    padding: 24px;
  }

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