:root {
  --bg: #ffffff;
  --bg-soft: #fafafa;
  --text: #1a1a1a;
  --muted: #666666;
  --line: #e5e5e5;
  --dark: #111111;
  --dark-muted: #b8b8b8;
  --max: 1180px;
  --side: clamp(24px, 5vw, 72px);
  --serif: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", "Times New Roman", serif;
  --sans: "Yu Gothic", "Hiragino Kaku Gothic ProN", "Noto Sans JP", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 2;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

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

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 78px;
  padding: 0 var(--side);
  background: rgba(255, 255, 255, 0.84);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: border-color 220ms ease, background 220ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  border-color: var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #1f1f1f;
  font-family: var(--serif);
  font-size: 12px;
  line-height: 1;
}

.brand-name {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.2;
}

.site-nav {
  display: flex;
  gap: clamp(22px, 3vw, 42px);
  color: #2c2c2c;
  font-family: var(--serif);
  font-size: 14px;
}

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

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

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

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  color: var(--text);
  background: transparent;
  border: 0;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 24px;
  height: 1px;
  margin: 7px auto;
  background: currentColor;
  transition: transform 220ms ease, opacity 220ms ease;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(30deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  transform: translateY(-4px) rotate(-30deg);
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  padding: 160px var(--side) 110px;
  overflow: hidden;
  place-items: center start;
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.82) 38%, rgba(255, 255, 255, 0.28) 76%, rgba(255, 255, 255, 0.12) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.2) 34%, rgba(250, 250, 250, 0.78) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(100%, var(--max));
  margin: 0 auto;
}

.hero .reveal {
  opacity: 1;
  transform: none;
}

.hero-kicker {
  margin: 0 0 34px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(14px, 1.2vw, 17px);
}

.hero h1 {
  max-width: 1120px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(42px, 6.2vw, 84px);
  font-weight: 400;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.hero h1 span {
  display: inline;
}

.hero-lead {
  margin: clamp(32px, 5vw, 58px) 0 0;
  color: #424242;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 2.2;
}

.hero-asset {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  opacity: 0.82;
}

.scroll-cue {
  position: absolute;
  right: var(--side);
  bottom: 42px;
  width: 1px;
  height: 72px;
  background: #d9d9d9;
}

.scroll-cue span {
  display: block;
  width: 1px;
  height: 18px;
  background: #1a1a1a;
  animation: scrollCue 2.4s ease-in-out infinite;
}

.section {
  padding: clamp(110px, 14vw, 180px) var(--side);
  background: var(--bg);
}

.section-muted {
  position: relative;
  background: var(--bg-soft);
}

.section-muted::before {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(42vw, 560px);
  height: min(42vw, 560px);
  pointer-events: none;
  content: "";
  background: url("assets/organization-nodes.jpg") center / cover no-repeat;
  opacity: 0.08;
  mix-blend-mode: multiply;
}

.section-dark {
  color: #ffffff;
  background: var(--dark);
}

.section-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(210px, 0.82fr) minmax(0, 1.55fr);
  gap: clamp(56px, 9vw, 132px);
  width: min(100%, var(--max));
  margin: 0 auto;
}

.section-heading {
  position: sticky;
  top: 120px;
  align-self: start;
}

.section-label {
  margin: 0 0 18px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 15px;
}

.section-dark .section-label {
  color: var(--dark-muted);
}

.section-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 400;
  line-height: 1.55;
}

.section-content {
  display: grid;
  gap: clamp(44px, 5.5vw, 76px);
  min-width: 0;
}

.section-visual {
  width: min(100%, 720px);
  margin: 0;
  overflow: hidden;
  background: #f6f6f6;
  border: 1px solid #eeeeee;
}

.section-visual-large {
  width: min(100%, 820px);
}

.section-visual-soft {
  opacity: 0.86;
}

.section-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.section-body {
  max-width: 720px;
  color: #2c2c2c;
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 2.35;
}

.section-body p {
  margin: 0;
}

.section-body p + p {
  margin-top: 2.3em;
}

.company-table dl {
  margin: 0;
}

.company-table div {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 28px;
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
}

.company-table div:first-child {
  border-top: 1px solid var(--line);
}

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

.company-table dd {
  min-width: 0;
  margin: 0;
  color: #2c2c2c;
}

.contact-panel {
  max-width: 720px;
}

.contact-lead {
  margin: 0;
  color: #e7e7e7;
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 2.25;
}

.contact-lead + .contact-lead {
  margin-top: 1.6em;
}

.contact-form {
  display: grid;
  gap: 28px;
  margin-top: 64px;
}

.contact-form label {
  display: grid;
  gap: 10px;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.contact-form span {
  color: #d7d7d7;
  font-size: 13px;
}

.contact-form em {
  margin-left: 8px;
  color: #a8a8a8;
  font-style: normal;
  font-size: 11px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 8px 0 12px;
  color: #ffffff;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #555555;
  border-radius: 0;
  outline: 0;
  transition: border-color 180ms ease;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form select {
  color-scheme: dark;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: #ffffff;
}

.contact-form button {
  width: min(100%, 260px);
  min-height: 56px;
  margin-top: 18px;
  color: #111111;
  cursor: pointer;
  background: #ffffff;
  border: 1px solid #ffffff;
  transition: color 180ms ease, background 180ms ease;
}

.contact-form button:hover,
.contact-form button:focus-visible {
  color: #ffffff;
  background: transparent;
}

.form-status {
  min-height: 1.8em;
  margin: 0;
  color: #d7d7d7;
  font-size: 13px;
  line-height: 1.8;
}

.form-note {
  margin: 0;
  color: #999999;
  font-size: 12px;
  line-height: 1.8;
}

.form-note a {
  border-bottom: 1px solid #777777;
}

.site-footer {
  display: grid;
  gap: 10px;
  padding: 72px var(--side);
  color: #666666;
  background: #f7f7f7;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

.footer-tagline {
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 36px);
  line-height: 1.5;
}

.copyright,
.site-footer a {
  font-size: 12px;
}

.site-footer a {
  width: fit-content;
  border-bottom: 1px solid #bcbcbc;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 760ms ease, transform 760ms ease;
}

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

@keyframes scrollCue {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  30%,
  70% {
    opacity: 1;
  }
  100% {
    transform: translateY(54px);
    opacity: 0;
  }
}

@media (max-width: 820px) {
  .site-header {
    min-height: 68px;
  }

  .brand {
    gap: 12px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    font-size: 11px;
  }

  .brand-name {
    max-width: 180px;
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 68px;
    right: 0;
    left: 0;
    display: grid;
    gap: 0;
    padding: 22px var(--side) 34px;
    visibility: hidden;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease;
  }

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

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

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

  .hero {
    min-height: 92svh;
    padding-top: 132px;
    padding-bottom: 90px;
  }

  .hero-asset {
    object-position: 64% center;
    opacity: 0.66;
  }

  .scroll-cue {
    right: var(--side);
    bottom: 30px;
    height: 54px;
  }

  .section-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .section-heading {
    position: static;
  }

  .section-body,
  .contact-lead {
    line-height: 2.15;
  }

  .company-table div {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 22px 0;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 14px;
  }

  .hero h1 {
    font-size: clamp(40px, 11vw, 48px);
    line-height: 1.45;
  }

  .hero h1 span {
    display: block;
  }

  .hero-lead br,
  .section-body br,
  .contact-lead br {
    display: none;
  }

  .section {
    padding-top: 96px;
    padding-bottom: 96px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
