:root {
  --bg: #fbfaf5;
  --paper: #fffefb;
  --ink: #16202a;
  --muted: #596775;
  --soft: #788899;
  --line: #d9e0df;
  --line-strong: #aebbb9;
  --blue: #1d6d97;
  --blue-deep: #0f4f73;
  --green: #8fa872;
  --green-soft: #eef4e8;
  --cyan-soft: #e9f6f6;
  --yellow: #f5efb6;
  --container: min(960px, calc(100vw - 64px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(22, 32, 42, 0.035) 1px, transparent 1px) 0 0 / 88px 88px,
    var(--bg);
  font-family: "BIZ UDPGothic", "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 15px;
  letter-spacing: 0;
}

body.menu-open {
  overflow: hidden;
}

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

img,
svg {
  display: block;
}

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

.page-shell {
  min-height: 100vh;
  overflow: clip;
}

.section-inner,
.header-inner,
.footer-inner {
  width: var(--container);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(174, 187, 185, 0.65);
  background: rgba(251, 250, 245, 0.94);
  backdrop-filter: blur(12px);
  transition: box-shadow 180ms ease;
}

.site-header.is-scrolled {
  box-shadow: 0 10px 28px rgba(16, 32, 42, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 1.32rem;
  font-weight: 900;
  line-height: 1;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.3;
}

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

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

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 5px;
  width: 0;
  height: 2px;
  background: var(--blue);
  transition: width 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  width: 100%;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px !important;
  border: 1px solid var(--blue);
  color: var(--blue-deep);
}

.nav-cta::after {
  display: none;
}

.menu-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--paper);
  cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
  position: absolute;
  left: 12px;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
  transition: transform 180ms ease, opacity 180ms ease, top 180ms ease;
}

.menu-toggle span:nth-child(1) { top: 14px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 28px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

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

.ledger-section {
  border-bottom: 1px solid var(--line);
}

.hero {
  display: block;
  min-height: 0;
  background: var(--paper);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(820px, calc(100vw - 64px));
  margin: 0 auto;
  padding: 72px 0 56px;
}

.eyebrow,
.section-kicker {
  margin: 0;
  color: var(--blue);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 760px;
  margin: 20px 0 0;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  font-weight: 900;
  line-height: 1.22;
}

.hero-lead {
  max-width: 760px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 700;
  line-height: 2;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border: 1px solid var(--blue);
  border-radius: 3px;
  font-weight: 900;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

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

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

.button-primary:hover {
  background: var(--blue-deep);
}

.button-secondary,
.button-small {
  color: var(--blue-deep);
  background: transparent;
}

.button-small {
  min-height: 38px;
  margin-top: 12px;
  padding: 0 16px;
  font-size: 0.84rem;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  max-width: 820px;
  margin: 42px 0 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.hero-facts div {
  min-width: 0;
  padding: 16px 14px;
  border-right: 1px solid var(--line);
}

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

.hero-facts dt {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 900;
}

.hero-facts dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.5;
}

.notice-strip {
  border-bottom: 1px solid var(--line);
  background: #f6f9f7;
}

.notice-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 58px;
  font-size: 0.88rem;
}

.notice-inner span {
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  font-weight: 900;
}

.notice-inner p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.notice-inner a,
.text-link {
  color: var(--blue-deep);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.concern-section,
.works-section,
.services-section,
.process-section,
.profile-section,
.links-section {
  padding: 76px 0;
  background: var(--paper);
}

.services-section,
.profile-section {
  background: #f8fbf8;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(420px, 1.22fr);
  gap: 64px;
  align-items: start;
}

.section-heading h2,
.section-title-row h2,
.contact-panel h2,
.profile-copy h2 {
  margin: 10px 0 0;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  font-weight: 900;
  line-height: 1.35;
}

.ledger-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
}

.ledger-list li {
  position: relative;
  padding: 20px 0 20px 34px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.75;
}

.ledger-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 29px;
  width: 13px;
  height: 7px;
  border-left: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(-45deg);
}

.section-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.works-ledger {
  border-top: 1px solid var(--line-strong);
}

.work-row {
  display: grid;
  grid-template-columns: 150px minmax(260px, 1fr) minmax(280px, 0.9fr);
  gap: 24px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.work-shot {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  background: #fff;
}

.work-shot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.work-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
}

.work-heading h3,
.service-column h3,
.process-step h3,
.principle-item h3,
.profile-card h3 {
  margin: 0;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 1.04rem;
  font-weight: 900;
  line-height: 1.4;
}

.work-heading span {
  padding: 2px 8px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
}

.work-heading a {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.work-heading a:hover,
.work-heading a:focus-visible {
  color: var(--blue-deep);
  text-decoration-color: currentColor;
}

.work-main p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

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

.work-meta dt {
  margin: 0 0 7px;
  color: var(--soft);
  font-size: 0.72rem;
  font-weight: 900;
}

.work-meta dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 700;
}

.status-pill {
  display: inline-flex;
  padding: 3px 8px;
  border: 1px solid #c6bf55;
  background: var(--yellow);
  color: #4e4a17;
}

.section-note {
  margin: 18px 0 0;
  color: var(--soft);
  font-size: 0.82rem;
  text-align: right;
}

.service-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 30px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.service-column {
  min-width: 0;
  padding: 26px 30px 24px 0;
  border-right: 1px solid var(--line);
}

.service-column + .service-column {
  padding-left: 30px;
}

.service-column:last-child {
  border-right: 0;
  padding-right: 0;
}

.service-column p {
  margin: 12px 0 16px;
  color: var(--muted);
  line-height: 1.8;
}

.service-column ul,
.contact-panel ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--blue-deep);
  font-size: 0.9rem;
  font-weight: 700;
}

.service-column li,
.contact-panel li {
  position: relative;
  padding-left: 18px;
}

.service-column li::before,
.contact-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 7px;
  height: 1px;
  background: var(--blue);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin-top: 30px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.process-step {
  padding: 24px 20px 22px 0;
  border-right: 1px solid var(--line);
}

.process-step + .process-step {
  padding-left: 20px;
}

.process-step:last-child {
  border-right: 0;
  padding-right: 0;
}

.process-step span {
  color: var(--blue);
  font-size: 0.88rem;
  font-weight: 900;
}

.process-step h3 {
  margin-top: 12px;
}

.process-step p,
.principle-item p,
.profile-copy p,
.profile-card p,
.contact-panel p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.85;
}

.principles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 36px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.principle-item {
  padding: 22px 22px 22px 0;
  border-right: 1px solid var(--line);
}

.principle-item + .principle-item {
  padding-left: 22px;
}

.principle-item:last-child {
  border-right: 0;
  padding-right: 0;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 72px;
  align-items: center;
}

.profile-card {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 18px;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
}

.profile-avatar {
  overflow: hidden;
  width: 84px;
  height: 84px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--green-soft);
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-section {
  padding: 54px 0;
  background: var(--bg);
}

.contact-panel {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 32px;
  border: 2px solid var(--ink);
  background: var(--paper);
}

.contact-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid var(--line-strong);
  background: var(--cyan-soft);
}

.contact-icon img {
  width: 30px;
  height: 30px;
}

.contact-panel h2 {
  margin-top: 4px;
}

.contact-panel ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 14px;
}

.contact-button {
  min-width: 210px;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 28px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.link-card {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  min-width: 0;
  padding: 22px 20px 22px 0;
  border-right: 1px solid var(--line);
}

.link-card + .link-card {
  padding-left: 20px;
}

.link-card:last-child {
  border-right: 0;
  padding-right: 0;
}

.link-icon {
  width: 34px;
  height: 34px;
}

.link-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.link-card strong,
.link-card small,
.link-card em {
  display: block;
}

.link-card strong {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 0.98rem;
  font-weight: 900;
}

.link-card small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.link-card em {
  grid-column: 2;
  margin-top: 10px;
  color: var(--blue-deep);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer {
  padding: 36px 0 42px;
  border-top: 1px solid var(--line-strong);
  background: #f3f6f2;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px 42px;
  align-items: start;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px 22px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.footer-nav a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-copy {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--soft);
  font-size: 0.82rem;
}

.legal-page-main {
  width: var(--container);
  margin: 0 auto;
  padding: 56px 0 80px;
}

.legal-page-header {
  margin-bottom: 24px;
}

.legal-page-header h1 {
  margin: 0;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.35;
}

.legal-page-eyebrow,
.legal-page-lead {
  color: var(--muted);
}

.legal-page-lead {
  line-height: 1.8;
}

.legal-card {
  border: 1px solid var(--line-strong);
  background: var(--paper);
}

.legal-dl {
  display: grid;
  margin: 0;
}

.legal-dl dt {
  margin: 0;
  padding: 18px 24px 7px;
  border-top: 1px solid var(--line);
  font-weight: 900;
}

.legal-dl dt:first-of-type {
  border-top: 0;
}

.legal-dl dd {
  margin: 0;
  padding: 0 24px 18px;
  color: var(--muted);
  line-height: 1.8;
}

.legal-dl a {
  color: var(--blue-deep);
  text-decoration: underline;
  text-underline-offset: 4px;
}

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

.reveal-delay-1 {
  transition-delay: 80ms;
}

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

.site-nav a:focus-visible,
.button:focus-visible,
.text-link:focus-visible,
.link-card:focus-visible,
.work-shot:focus-visible {
  outline: 3px solid rgba(29, 109, 151, 0.28);
  outline-offset: 4px;
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

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

@media (max-width: 1060px) {
  :root {
    --container: min(100vw - 44px, 100%);
  }

  .hero {
    min-height: 0;
  }

  .hero-copy {
    min-height: auto;
    padding: 62px 0 44px;
  }

  .work-row {
    grid-template-columns: 128px minmax(240px, 1fr);
  }

  .work-meta {
    grid-column: 2;
  }

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

  .process-step:nth-child(3) {
    border-right: 0;
    padding-right: 0;
  }

  .process-step:nth-child(4) {
    padding-left: 0;
  }

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

  .principle-item:nth-child(2),
  .link-card:nth-child(2) {
    border-right: 0;
    padding-right: 0;
  }

  .principle-item:nth-child(3),
  .link-card:nth-child(3) {
    padding-left: 0;
    border-top: 1px solid var(--line);
  }

  .principle-item:nth-child(4),
  .link-card:nth-child(4) {
    border-top: 1px solid var(--line);
  }
}

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

  .brand-copy small {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 78px;
    right: 22px;
    left: 22px;
    display: grid;
    gap: 0;
    padding: 12px 16px;
    border: 1px solid var(--line-strong);
    background: rgba(255, 254, 251, 0.98);
    box-shadow: 0 18px 34px rgba(18, 32, 42, 0.12);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

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

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

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

  .nav-cta {
    border: 0;
  }

  .hero-copy {
    width: var(--container);
    padding-top: 50px;
  }

  .hero h1 {
    font-size: clamp(1.65rem, 7.4vw, 2.45rem);
  }

  .hero-facts,
  .two-column,
  .profile-layout,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .hero-facts div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .notice-inner {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 14px 0;
  }

  .notice-inner span {
    justify-self: start;
  }

  .concern-section,
  .works-section,
  .services-section,
  .process-section,
  .profile-section,
  .links-section {
    padding: 54px 0;
  }

  .section-title-row {
    align-items: start;
    flex-direction: column;
  }

  .work-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .work-shot {
    max-width: 260px;
  }

  .work-meta {
    grid-column: auto;
  }

  .service-columns,
  .process-steps,
  .principles,
  .links-grid {
    grid-template-columns: 1fr;
  }

  .service-column,
  .service-column + .service-column,
  .process-step,
  .process-step + .process-step,
  .principle-item,
  .principle-item + .principle-item,
  .link-card,
  .link-card + .link-card {
    padding: 22px 0;
    border-right: 0;
    border-top: 1px solid var(--line);
  }

  .service-column:first-child,
  .process-step:first-child,
  .principle-item:first-child,
  .link-card:first-child {
    border-top: 0;
  }

  .process-step:nth-child(3),
  .principle-item:nth-child(2),
  .principle-item:nth-child(3),
  .principle-item:nth-child(4),
  .link-card:nth-child(2),
  .link-card:nth-child(3),
  .link-card:nth-child(4) {
    border-right: 0;
    padding-right: 0;
  }

  .contact-panel {
    padding: 24px;
  }

  .contact-button {
    width: 100%;
    min-width: 0;
  }

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

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

@media (max-width: 480px) {
  :root {
    --container: min(100vw - 28px, 100%);
  }

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

  .brand-copy strong {
    font-size: 1.14rem;
  }

  .hero-copy {
    padding-right: 14px;
    padding-left: 14px;
  }

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

  .button {
    width: 100%;
  }

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

  .profile-card {
    grid-template-columns: 1fr;
  }
}
