.case-study-main {
  --case-gold: #aa8b5c;
  --case-gold-light: #d9c9ae;
  width: min(1040px, calc(100vw - var(--sidebar-width, 250px) - 90px));
  margin-left: calc(var(--sidebar-width, 250px) + max(32px, (100vw - var(--sidebar-width, 250px) - 1040px) / 2));
  padding: 72px 0 120px;
  color: #353535;
}

.case-breadcrumb {
  display: flex;
  margin-bottom: 54px;
  flex-wrap: wrap;
  gap: 8px;
  color: #817665;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.case-breadcrumb a { color: inherit; }

.case-layout {
  display: grid;
  gap: 110px;
}

.case-row {
  display: grid;
  align-items: center;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(50px, 7vw, 90px);
}

.case-row__copy {
  font-size: 16px;
  letter-spacing: 0.05em;
  line-height: 2.15;
}

.case-row__copy > p { margin: 0 0 20px; }

.case-kicker,
.case-section-heading p {
  margin: 0 0 16px;
  color: var(--case-gold);
  font-family: "Times New Roman", "Noto Serif JP", serif;
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.case-row h1 {
  margin: 0;
  font-family: "Noto Serif JP", "Yu Mincho", serif;
  font-size: clamp(36px, 3.6vw, 54px);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.55;
}

html[lang="en"] .case-row h1 {
  font-size: clamp(34px, 3.2vw, 48px);
  letter-spacing: 0.035em;
  line-height: 1.4;
}

.case-row__copy .case-lead {
  margin: 28px 0 34px;
  padding-top: 24px;
  border-top: 1px solid var(--case-gold-light);
  font-family: "Noto Serif JP", "Yu Mincho", serif;
  font-size: 17px;
  letter-spacing: 0.12em;
  line-height: 2;
}

.case-story__intro {
  font-family: "Noto Serif JP", "Yu Mincho", serif;
  font-size: 23px;
  letter-spacing: 0.12em;
}

.case-section-heading { margin-bottom: 30px; }

.case-section-heading h2 {
  margin: 0;
  font-family: "Noto Serif JP", "Yu Mincho", serif;
  font-size: clamp(27px, 3vw, 39px);
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 1.65;
}

html[lang="en"] .case-section-heading h2 {
  font-size: clamp(26px, 2.7vw, 36px);
  letter-spacing: 0.045em;
  line-height: 1.5;
}

.case-row__visual {
  display: grid;
  height: 500px;
  min-width: 0;
  grid-template-columns: 1fr;
  gap: 14px;
}

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

.case-row__visual figure {
  position: relative;
  height: 500px;
  min-width: 0;
  margin: 0;
}

.case-row__visual img {
  display: block;
  width: 100%;
  height: 500px;
  border-radius: 3px;
  object-fit: cover;
}

.case-row__visual figcaption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 5px 10px;
  color: #fff;
  background: rgba(53, 53, 53, 0.58);
  font-family: "Times New Roman", serif;
  font-size: 12px;
  letter-spacing: 0.16em;
}

.case-cta {
  margin-top: 120px;
  padding: 52px 0 0;
  border-top: 1px solid var(--case-gold-light);
  text-align: center;
}

.case-cta p {
  margin: 0 0 30px;
  font-family: "Noto Serif JP", "Yu Mincho", serif;
  font-size: 22px;
  letter-spacing: 0.12em;
}

.case-cta div {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.case-cta a {
  display: grid;
  width: min(280px, 100%);
  min-height: 56px;
  border: 1px solid var(--case-gold);
  place-items: center;
  color: #66563f;
  background: transparent;
  font-family: "Noto Serif JP", "Yu Mincho", serif;
  font-size: 14px;
  letter-spacing: 0.12em;
  transition: color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}

.case-cta .case-cta__contact,
.case-cta a:hover {
  color: #fff;
  background: var(--case-gold);
  box-shadow: 0 10px 24px rgba(111, 88, 54, 0.18);
}

.case-cta .case-cta__contact:hover { background: #8f7044; }

@media (max-width: 1024px) {
  .case-study-main {
    width: calc(100vw - var(--sidebar-width, 250px) - 50px);
    margin-left: calc(var(--sidebar-width, 250px) + 26px);
  }

  .case-layout { gap: 90px; }
  .case-row { gap: 36px; }
}

@media (max-width: 700px) {
  .case-study-main {
    width: auto;
    margin-left: 0;
    padding: 150px 20px 92px;
  }

  .case-breadcrumb { margin-bottom: 40px; }
  .case-layout { gap: 76px; }

  .case-row {
    gap: 26px;
  }

  .case-row__copy {
    font-size: 14px;
    line-height: 1.9;
  }

  .case-row h1 { font-size: 30px; }
  .case-lead { font-size: 14px; }
  .case-story__intro { font-size: 19px; }

  .case-section-heading h2 { font-size: 27px; }

  .case-row__visual,
  .case-row__visual figure,
  .case-row__visual img {
    height: 500px;
  }

  .case-cta {
    margin-top: 88px;
    padding-top: 44px;
  }

  .case-cta p {
    font-size: 18px;
    line-height: 1.8;
  }

  .case-cta div {
    align-items: center;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .case-study-main { padding-top: 128px; }

  .case-row {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .case-row--image-text .case-row__visual { order: 2; }
  .case-row--image-text .case-row__copy { order: 1; }

  .case-row__copy {
    font-size: 15px;
    line-height: 2;
  }

  .case-row h1 { font-size: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  .case-cta a { transition: none; }
}
