:root {
  --canvas: #faf9f7;
  --paper: #ffffff;
  --ink: #0f0f0f;
  --graphite: #3c3d40;
  --hairline: #c9c9c6;
  --soft-border: #e6e4df;
  --lime: #ebffb1;
  --lime-edge: #86b500;
  --orange: #d94a0c;
  --orange-text: #b83c08;
  --cream: #fefcfb;
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "Manrope", "Segoe UI", sans-serif;
  --page: 1200px;
  --focus: #0066cc;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

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

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

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.section-shell {
  width: min(calc(100% - 48px), var(--page));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  background: rgba(250, 249, 247, 0.96);
  border-bottom: 1px solid var(--soft-border);
}

.nav-shell {
  width: min(calc(100% - 48px), var(--page));
  min-height: 72px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  object-fit: contain;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.primary-nav a,
.footer-layout > a:last-child {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--graphite);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  text-decoration-color: transparent;
  transition: color 150ms ease, text-decoration-color 150ms ease;
}

.primary-nav a:hover,
.footer-layout > a:last-child:hover {
  color: var(--ink);
  text-decoration-color: currentColor;
}

.menu-toggle {
  min-width: 88px;
  min-height: 44px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}

.menu-lines,
.menu-lines::before {
  width: 18px;
  height: 1px;
  display: block;
  background: currentColor;
}

.menu-lines {
  position: relative;
}

.menu-lines::before {
  content: "";
  position: absolute;
  top: -6px;
}

.hero {
  position: relative;
  min-height: 690px;
  overflow: hidden;
  background: var(--canvas);
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: rgba(250, 249, 247, 0.58);
}

.hero-background {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-inner {
  min-height: 690px;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.65fr);
  align-items: center;
  gap: clamp(40px, 5vw, 64px);
  padding-block: clamp(40px, 3.5vw, 56px) clamp(56px, 5vw, 80px);
}

.section-label,
.note-kicker,
.flow-label {
  margin: 0 0 18px;
  color: var(--graphite);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.045em;
}

.hero-copy > .section-label {
  font-size: clamp(1rem, 1.25vw, 1.125rem);
}

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

h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.025em;
}

h1 {
  max-width: 850px;
  margin-bottom: 28px;
  font-size: clamp(3.35rem, 5.75vw, 5.25rem);
  line-height: 0.96;
}

h2 {
  margin-bottom: 24px;
  font-size: clamp(2.45rem, 5vw, 4.75rem);
  line-height: 1.02;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
  line-height: 1.35;
}

.hero-lead {
  max-width: 680px;
  margin-bottom: 36px;
  color: var(--graphite);
  font-size: clamp(1.05rem, 2vw, 1.24rem);
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 28px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 19px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.button-primary {
  border: 1px solid var(--lime-edge);
  background: var(--lime);
  color: var(--ink);
}

.button-primary:hover {
  background: #e2fa9b;
  transform: translateY(-2px);
}

.text-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.work-note {
  position: relative;
  padding: clamp(28px, 4vw, 42px);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: var(--cream);
  box-shadow: 14px 16px 0 var(--lime);
  transform: rotate(1.1deg);
}

.note-main {
  margin-bottom: 28px;
  font-family: var(--serif);
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  line-height: 1.15;
}

.note-rule {
  height: 4px;
  margin-bottom: 28px;
  background: var(--orange);
}

.work-note dl,
.work-note dd {
  margin: 0;
}

.work-note dl {
  display: grid;
  gap: 22px;
}

.work-note dt {
  font-weight: 700;
}

.work-note dd {
  color: var(--graphite);
  font-size: 0.92rem;
}

.expertise {
  padding-block: clamp(86px, 12vw, 150px);
  border-top: 1px solid var(--hairline);
}

.section-heading {
  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  gap: 32px;
  margin-bottom: clamp(52px, 8vw, 92px);
}

.section-heading h2 {
  max-width: 800px;
}

.expertise-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 52px;
  border-top: 1px solid var(--hairline);
}

.expertise-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  padding-block: 34px;
  border-bottom: 1px solid var(--hairline);
}

.expertise-item-wide {
  grid-column: 1 / -1;
  grid-template-columns: 52px minmax(0, 680px);
  justify-content: space-between;
}

.item-number {
  color: var(--orange-text);
  font-family: var(--serif);
  font-size: 1.35rem;
}

.expertise-item p,
.case-intro > p:last-child,
.clients-heading p,
.contact-layout > div > p {
  color: var(--graphite);
}

.clients-section {
  padding-block: clamp(82px, 10vw, 126px);
  border-top: 1px solid var(--hairline);
}

.clients-heading {
  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  gap: 32px;
  margin-bottom: clamp(40px, 6vw, 68px);
}

.clients-heading h2 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(2.4rem, 4.6vw, 4.25rem);
}

.clients-heading p {
  max-width: 620px;
  margin-bottom: 0;
}

.client-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--hairline);
  border-left: 1px solid var(--hairline);
  list-style: none;
}

.client-list li {
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: var(--paper);
}

.client-list img {
  width: 100%;
  max-width: 220px;
  max-height: 76px;
  object-fit: contain;
}

.client-list .client-logo-apindo {
  width: 72px;
  height: 72px;
  max-height: none;
}

.client-apindo {
  flex-direction: column;
  gap: 0.65rem;
}

.client-apindo span {
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.case-section {
  background: #f6eddf;
  border-block: 1px solid #e4d3bd;
}

.case-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(450px, 1.15fr);
  gap: clamp(56px, 9vw, 124px);
  padding-block: clamp(90px, 12vw, 154px);
}

.case-intro h2 {
  font-size: clamp(2.6rem, 5vw, 4.35rem);
}

.case-flow {
  align-self: center;
}

.flow-row {
  padding: 24px;
  border: 1px solid #bfae99;
  background: rgba(255, 255, 255, 0.6);
}

.flow-row-main {
  margin-bottom: 18px;
  border-left: 5px solid var(--orange);
}

.flow-row strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.flow-row p {
  margin-bottom: 0;
  color: var(--graphite);
  font-size: 0.92rem;
}

.flow-branches {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.process {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(56px, 10vw, 140px);
  padding-block: clamp(90px, 13vw, 164px);
}

.process-title {
  position: sticky;
  top: 112px;
  align-self: start;
}

.process-title h2 {
  font-size: clamp(2.5rem, 5vw, 4.4rem);
}

.process-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--hairline);
}

.process-list li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 20px;
  padding-block: 32px;
  border-bottom: 1px solid var(--hairline);
}

.process-list li > span {
  color: var(--orange-text);
  font-family: var(--serif);
}

.process-list p {
  margin-bottom: 0;
  color: var(--graphite);
}

.contact-section {
  background: var(--paper);
  border-top: 1px solid var(--hairline);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.75fr);
  gap: clamp(56px, 10vw, 140px);
  padding-block: clamp(88px, 12vw, 150px);
}

.contact-placeholder {
  margin-top: 34px;
  padding: 14px 16px;
  border: 1px dashed #9d8d79;
  background: #fff8ed;
  font-size: 0.9rem;
}

.brief-form {
  display: grid;
  gap: 10px;
  align-self: start;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: var(--cream);
  box-shadow: 10px 12px 0 var(--lime);
}

.brief-form label {
  margin-top: 10px;
  font-weight: 700;
}

.brief-form input,
.brief-form textarea {
  width: 100%;
  border: 1px solid #898985;
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  padding: 12px 14px;
}

.brief-form textarea {
  resize: vertical;
}

.brief-form .button {
  justify-self: start;
  margin-top: 14px;
}

.form-status {
  min-height: 25px;
  margin: 4px 0 0;
  color: var(--graphite);
}

.form-status[data-state="error"] {
  color: #9b1c1c;
}

.site-footer {
  border-top: 1px solid var(--hairline);
  background: var(--canvas);
}

.footer-layout {
  min-height: 116px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
}

.footer-layout p {
  margin: 0;
  color: var(--graphite);
}

.footer-layout > a:last-child {
  justify-self: end;
}

@media (max-width: 920px) {
  .hero-inner,
  .case-layout,
  .process,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero,
  .hero-inner {
    min-height: auto;
  }

  .work-note {
    max-width: 640px;
    transform: none;
  }

  .section-heading {
    grid-template-columns: 0.35fr 1fr;
  }

  .clients-heading {
    grid-template-columns: 0.35fr 1fr;
  }

  .case-layout,
  .contact-layout {
    gap: 64px;
  }

  .case-intro {
    max-width: 720px;
  }

  .process-title {
    position: static;
    max-width: 680px;
  }

  .brief-form {
    max-width: 680px;
  }
}

@media (max-width: 700px) {
  html {
    scroll-padding-top: 76px;
  }

  .section-shell,
  .nav-shell {
    width: min(calc(100% - 32px), var(--page));
  }

  .nav-shell {
    min-height: 64px;
  }

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

  .primary-nav {
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 12px 16px 20px;
    border-bottom: 1px solid var(--hairline);
    background: var(--canvas);
  }

  .primary-nav[data-open="true"] {
    display: flex;
  }

  .primary-nav a {
    min-height: 48px;
    padding-inline: 8px;
    border-bottom: 1px solid var(--soft-border);
  }

  .hero-inner {
    gap: 54px;
    padding-block: 48px 72px;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.8rem);
  }

  h2 {
    font-size: clamp(2.35rem, 11vw, 3.5rem);
  }

  .hero-actions,
  .section-heading,
  .clients-heading,
  .expertise-list,
  .flow-branches,
  .footer-layout {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: grid;
    gap: 8px;
  }

  .clients-heading {
    display: grid;
    gap: 8px;
  }

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

  .client-list li {
    min-height: 124px;
    padding: 22px;
  }

  .expertise-list {
    display: grid;
    gap: 0;
  }

  .expertise-item,
  .expertise-item-wide {
    grid-column: auto;
    grid-template-columns: 42px 1fr;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button,
  .hero-actions .text-link {
    width: 100%;
    justify-content: center;
  }

  .flow-branches {
    display: grid;
  }

  .process-list li {
    grid-template-columns: 38px 1fr;
  }

  .contact-layout {
    gap: 48px;
  }

  .brief-form {
    box-shadow: 7px 8px 0 var(--lime);
  }

  .footer-layout {
    min-height: auto;
    padding-block: 38px;
    justify-items: start;
    gap: 12px;
  }

  .footer-layout > a:last-child {
    justify-self: start;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }

  .hero-background {
    display: none;
  }
}
