:root {
  --ink: #1f3038;
  --muted: #5d7078;
  --line: #dbe4e8;
  --soft: #f3f7f9;
  --white: #ffffff;
  --blue: #2e6f92;
  --blue-dark: #1f5876;
  --charcoal: #21343f;
  --charcoal-2: #1a2c36;
  --serif: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  --sans: "Inter", "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--sans);
  line-height: 1.8;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.wrap { width: min(100% - 56px, 1290px); margin: 0 auto; }
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 30;
  transform: translateY(-140%);
  background: var(--ink);
  color: var(--white);
  padding: 10px 14px;
}
.skip-link:focus { transform: translateY(0); }
.topbar {
  background: var(--charcoal);
  color: #dce8ed;
  font-size: 11px;
  letter-spacing: .08em;
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
}
header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.header-inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 18px;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 28px;
  white-space: nowrap;
}
.brand span {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
}
nav {
  display: flex;
  align-items: center;
  gap: 40px;
  font-size: 13px;
  font-weight: 700;
}
nav a { text-decoration: none; }
.menu-toggle { display: none; }
.section-label,
.case-number,
.sample-label {
  margin: 0 0 22px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}
h1, h2, h3, p { margin-top: 0; }
h1, h2 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0;
}
h1 {
  margin-bottom: 30px;
  font-size: clamp(44px, 5.15vw, 82px);
}
h2 {
  margin-bottom: 24px;
  font-size: clamp(32px, 3.5vw, 54px);
}
h3 {
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.6;
}
.lead {
  margin-bottom: 22px;
  font-size: clamp(20px, 2vw, 27px);
  line-height: 1.65;
}
.fine {
  margin-top: 20px;
  color: #758890;
  font-size: 12px;
  line-height: 1.9;
}
.btn {
  display: inline-flex;
  min-height: 64px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 34px;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  box-shadow: 0 14px 26px rgba(46,111,146,.16);
}
.btn:hover { background: var(--blue-dark); }
.hero {
  background: linear-gradient(90deg, #f9fbfc 0 53%, #eef4f7 53% 100%);
}
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(480px, 1.05fr);
  align-items: stretch;
}
.hero-copy {
  display: flex;
  min-height: 890px;
  flex-direction: column;
  justify-content: center;
  padding: 78px 72px 78px 0;
}
.hero-copy p:not(.section-label):not(.fine):not(.lead) {
  max-width: 520px;
  color: #42565f;
}
.hero-visual {
  position: relative;
  margin: 0;
  min-height: 720px;
}
.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
figcaption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgba(255,255,255,.9);
  color: #60747d;
  padding: 5px 9px;
  font-size: 10px;
}
.intro-section,
.process,
.contact {
  padding: 92px 0;
  background: var(--white);
}
.centered {
  max-width: 920px;
  text-align: center;
}
.centered p {
  color: var(--muted);
}
.case {
  padding: 72px 0 82px;
}
.case-light { background: var(--soft); }
.case-dark {
  background: var(--charcoal);
  color: var(--white);
}
.case-dark p { color: #d0dde2; }
.case-dark .section-label,
.case-dark .case-number,
.case-dark .sample-label { color: #9fc0d1; }
.case-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, .82fr);
  gap: 42px 62px;
  align-items: start;
}
.case-layout.reverse {
  grid-template-columns: minmax(320px, .82fr) minmax(0, 1.18fr);
}
.case-number {
  grid-column: 1 / -1;
  margin-bottom: -12px;
}
.case-photo {
  position: relative;
  margin: 0;
}
.case-photo img {
  width: 100%;
  aspect-ratio: 1.66;
  object-fit: cover;
}
.case-copy h2 {
  font-size: clamp(34px, 4vw, 56px);
}
.message-card {
  margin-top: 28px;
  padding: 28px 32px;
  border-top: 5px solid var(--blue);
  background: var(--white);
  color: var(--ink);
}
.case-dark .message-card {
  background: #f8fbfc;
}
.message-card p {
  margin-bottom: 0;
  color: #455962;
}
.message-card h3 {
  color: var(--ink);
  font-size: 19px;
}
.flow-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-column: 1 / 2;
  gap: 14px;
  align-items: center;
}
.flow-row span,
.flow-row strong {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #dbeaf1;
  color: var(--ink);
  font-weight: 800;
}
.flow-row strong {
  background: var(--blue);
  color: var(--white);
}
.case-dark .flow-row span { background: #e5f0f5; }
.side-note {
  align-self: center;
  margin: 0;
  color: var(--muted);
}
.case-dark .side-note { color: #d0dde2; }
.reviews {
  padding: 96px 0;
  background: var(--white);
}
.review-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr);
  gap: 80px;
  align-items: center;
}
.review-card {
  margin: 0;
  border-top: 0;
  background: var(--soft);
}
.review-card small {
  display: block;
  margin-top: 20px;
  color: var(--muted);
}
.process {
  background: var(--soft);
}
.process-steps {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  margin: 42px 0;
  padding: 0;
  list-style: none;
}
.process-steps li {
  position: relative;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-weight: 800;
}
.process-steps li + li::before {
  content: "→";
  position: absolute;
  left: -18px;
  color: var(--blue);
}
.contact {
  border-top: 1px solid var(--line);
}
footer {
  padding: 36px 0;
  background: #f8fafb;
  border-top: 1px solid var(--line);
}
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.footer-row small {
  max-width: 740px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .wrap { width: min(100% - 34px, 720px); }
  .topbar .wrap span { display: none; }
  .header-inner { min-height: 72px; }
  .brand { font-size: 22px; }
  .brand span { font-size: 10px; }
  .menu-toggle {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--line);
    background: var(--white);
  }
  .menu-toggle span {
    width: 18px;
    height: 1px;
    display: block;
    background: var(--ink);
  }
  nav {
    position: absolute;
    top: 72px;
    right: 17px;
    left: 17px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(31,48,56,.14);
  }
  nav[data-open] { display: flex; }
  nav a { padding: 14px; }
  .hero {
    background: #f9fbfc;
  }
  .hero-layout {
    display: flex;
    flex-direction: column;
  }
  .hero-copy {
    min-height: auto;
    padding: 64px 0 42px;
  }
  .hero-visual {
    min-height: 0;
    margin-inline: -17px;
  }
  .hero-visual img {
    aspect-ratio: .92;
    object-fit: cover;
  }
  .intro-section,
  .process,
  .contact,
  .reviews {
    padding: 64px 0;
  }
  .case {
    padding: 58px 0 66px;
  }
  .case-layout,
  .case-layout.reverse,
  .review-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  .case-layout.reverse .case-copy { order: 1; }
  .case-layout.reverse .case-photo { order: 2; }
  .case-layout.reverse .flow-row { order: 3; }
  .case-layout.reverse .side-note { order: 4; }
  .case-number {
    margin-bottom: 0;
  }
  .message-card {
    padding: 22px;
  }
  .flow-row {
    width: 100%;
    gap: 8px;
  }
  .flow-row span,
  .flow-row strong {
    min-height: 58px;
    font-size: 12px;
  }
  .process-steps {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .process-steps li {
    background: #e1edf2;
  }
  .process-steps li + li::before {
    content: none;
  }
  .btn {
    width: 100%;
    min-height: 58px;
    padding: 0 20px;
    font-size: 13px;
  }
  .footer-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .wrap { width: min(100% - 28px, 392px); }
  .brand { gap: 9px; }
  h1 { font-size: 37px; }
  h2 { font-size: 30px; }
  .lead { font-size: 18px; }
  .hero-visual { margin-inline: -14px; }
  .case-photo { margin-inline: -14px; }
  .case-copy h2 { font-size: 31px; }
  .flow-row span,
  .flow-row strong {
    min-height: 54px;
    padding: 0 3px;
  }
}
