.page-customer-case-detail .case-contact-banner {
  min-height: 122px;
  padding: 19px clamp(24px, 3vw, 42px);
  background-position: center 52%;
  background-size: cover;
}

.page-customer-case-detail .case-contact-banner::before {
  background: linear-gradient(
    90deg,
    rgba(248, 239, 230, 0) 0%,
    rgba(248, 239, 230, 0.08) 28%,
    rgba(248, 239, 230, 0.68) 49%,
    rgba(248, 239, 230, 0.96) 62%,
    #f8efe6 100%
  );
}

.page-customer-case-detail .case-contact-copy {
  width: min(650px, 52%);
  padding-left: clamp(18px, 2.2vw, 34px);
  text-align: right;
}

.page-customer-case-detail .case-contact-copy h2 {
  margin-bottom: 5px;
  font-size: clamp(19px, 1.75vw, 25px);
  line-height: 1.16;
  letter-spacing: -0.012em;
}

.page-customer-case-detail .case-contact-copy p {
  margin-bottom: 11px;
  font-size: 13px;
  line-height: 1.55;
}

.page-customer-case-detail .case-contact-copy a {
  min-height: 38px;
  padding-inline: 18px;
  font-size: 13px;
}

.page-customer-case-detail .case-watch-grid {
  align-items: start;
}

.page-customer-case-detail .case-playlist {
  grid-template-rows: auto minmax(0, 1fr);
  height: clamp(360px, calc(40.3vw - 23px), 476px);
  min-height: 0;
  overflow: hidden;
}

.page-customer-case-detail .case-playlist-list {
  min-height: 0;
  padding-right: 6px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #b8c6d4 transparent;
  scrollbar-width: thin;
}

.page-customer-case-detail .case-playlist-list::-webkit-scrollbar {
  width: 6px;
}

.page-customer-case-detail .case-playlist-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #b8c6d4;
}

.page-customer-case-detail .case-playlist-list::-webkit-scrollbar-track {
  background: transparent;
}

.page-customer-case-detail .case-video-modal--landscape .case-video-dialog {
  width: min(1120px, calc(100vw - 40px));
  height: auto;
  max-height: calc(100vh - 40px);
  aspect-ratio: 16 / 9;
}

@media (max-width: 900px) {
  .page-customer-case-detail .case-contact-copy {
    width: min(610px, 56%);
    padding-left: 18px;
  }

  .page-customer-case-detail .case-playlist {
    height: auto;
    max-height: 500px;
  }

  .page-customer-case-detail .case-playlist-list {
    grid-template-columns: 1fr;
  }

  .page-customer-case-detail .case-playlist-item {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .page-customer-case-detail .case-playlist-item strong {
    min-height: 0;
  }

  .page-customer-case-detail .case-video-modal--landscape .case-video-dialog {
    width: min(100%, 1120px);
    height: auto;
  }
}

@media (max-width: 620px) {
  .page-customer-case-detail .case-contact-banner {
    min-height: 184px;
    padding: 88px 18px 18px;
    background-position: center 26%;
    background-size: cover;
  }

  .page-customer-case-detail .case-contact-banner::before {
    background: linear-gradient(
      180deg,
      rgba(248, 239, 230, 0.06) 0%,
      rgba(248, 239, 230, 0.56) 38%,
      #f8efe6 61%
    );
  }

  .page-customer-case-detail .case-contact-copy {
    width: 100%;
    padding-left: 0;
    text-align: right;
  }

  .page-customer-case-detail .case-contact-copy h2 {
    font-size: 21px;
  }
}

/* 2026-10-03 customer-case video: the video is embedded inline (no modal, visible to crawlers).
   The cover stays exactly as designed (16:9 poster); only once playback really starts does the
   frame switch to the video's own aspect ratio, so portrait clips play without side bars. */
.page-customer-case-detail .case-video-play,
html[dir="rtl"] .page-customer-case-detail .case-video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 74px;
  height: 74px;
  padding: 0;
  border: 1px solid #ffffffc7;
  border-radius: 50%;
  background: #ffffffe9;
  box-shadow: 0 16px 45px #0005;
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.page-customer-case-detail .case-video-play[hidden],
html[dir="rtl"] .page-customer-case-detail .case-video-play[hidden] {
  display: none;
}

.page-customer-case-detail .case-video-wrap--portrait.is-playing,
html[dir="rtl"] .page-customer-case-detail .case-video-wrap--portrait.is-playing {
  aspect-ratio: auto;
  width: fit-content;
  max-width: 100%;
  height: min(74vh, 660px);
  margin-inline: auto;
}

.page-customer-case-detail .case-video-wrap--portrait.is-playing video,
html[dir="rtl"] .page-customer-case-detail .case-video-wrap--portrait.is-playing video {
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
}

@media (max-width: 900px) {
  .page-customer-case-detail .case-video-wrap--portrait.is-playing,
  html[dir="rtl"] .page-customer-case-detail .case-video-wrap--portrait.is-playing {
    height: min(66vh, 560px);
  }
}

/* portrait frames never crop: the 16:9 cover fits the 16:9 poster state exactly, and the
   9:16 clip fits the 9:16 playback frame exactly */
.page-customer-case-detail .case-video-wrap--portrait video,
html[dir="rtl"] .page-customer-case-detail .case-video-wrap--portrait video {
  object-fit: contain;
}
