.case-detail-hero {
  padding: 78px 0 42px;
  background: linear-gradient(135deg,#eef9ff,#fff);
}

.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 28px;
}

.breadcrumb a:hover {
  color: var(--blue);
}

.case-detail-hero h1 {
  font-size: clamp(38px,5.3vw,66px);
  max-width: 940px;
  letter-spacing: -.055em;
  margin-bottom: 20px;
}

.case-lead {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
}

.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.case-meta span {
  padding: 8px 14px;
  border-radius: 99px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
}

.case-body {
  padding-top: 55px;
}

.case-cover {
  height: min(68vw,720px);
  border-radius: 30px;
  overflow: hidden;
  background: var(--soft);
}

.case-cover img {
  object-position: center;
}

.case-content {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 85px;
  padding: 70px 0;
}

.case-copy h2 {
  font-size: 36px;
}

.case-copy p {
  color: var(--muted);
  font-size: 16px;
}

.case-points {
  border-top: 1px solid var(--line);
}

.case-points div {
  padding: 21px 0;
  border-bottom: 1px solid var(--line);
}

.case-points small {
  display: block;
  color: var(--blue);
  font-weight: 700;
  margin-bottom: 4px;
}

.case-points b {
  font-size: 16px;
}

.case-gallery {
  padding: 0 0 90px;
}

.case-gallery-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 28px;
}

.case-gallery h2 {
  margin: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 18px;
}

.gallery-grid figure {
  margin: 0;
}

.gallery-grid img {
  height: 520px;
  border-radius: 22px;
  cursor: zoom-in;
}

.gallery-grid figcaption {
  font-size: 13px;
  color: var(--muted);
  padding: 10px 3px;
}

.case-bottom {
  background: var(--soft);
  padding: 60px 0;
}

.case-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.case-bottom h2 {
  font-size: 34px;
  margin-bottom: 8px;
}

.case-bottom p {
  margin: 0;
  color: var(--muted);
}

@media(max-width:800px) {
  .case-content {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .case-cover {
    height: 60vw;
  }

  .gallery-grid img {
    height: 400px;
  }

  .case-bottom .container {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media(max-width:560px) {
  .case-detail-hero {
    padding: 55px 0 32px;
  }

  .case-lead {
    font-size: 16px;
  }

  .case-cover {
    height: 72vw;
    border-radius: 20px;
  }

  .case-content {
    padding: 48px 0;
  }

  .case-copy h2 {
    font-size: 29px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid img {
    height: 310px;
  }

  .case-gallery {
    padding-bottom: 65px;
  }
}

.case-cover {
  position: relative;
}

.case-cover::before,.case-cover::after {
  position: absolute;
  top: 22px;
  z-index: 2;
  padding: 7px 14px;
  border-radius: 99px;
  background: rgba(6,43,75,.82);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  backdrop-filter: blur(8px);
}

.case-cover::before {
  content: "清潔前";
  left: 22px;
}

.case-cover::after {
  content: "清潔後";
  left: calc(50% + 22px);
}

.case-bottom {
  background: linear-gradient(90deg,rgba(240,250,255,.93),rgba(240,250,255,.78)), url("../images/case-bottom.png") center/cover no-repeat;
}

.more-photos {
  border-top: 1px solid var(--line);
  padding-top: 70px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 70px 90px 45px;
  background: rgba(3,18,31,.94);
}

.lightbox.is-open {
  display: flex;
}

.lightbox figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: min(1200px,100%);
  max-height: 100%;
  margin: 0;
}

.lightbox img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100vh - 150px);
  object-fit: contain;
  border-radius: 10px;
}

.lightbox figcaption {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  width: 100%;
  padding-top: 12px;
  color: #fff;
  font-size: 14px;
}

.lightbox button {
  position: absolute;
  border: 0;
  color: #fff;
  background: rgba(255,255,255,.12);
  cursor: pointer;
}

.lightbox-close {
  top: 20px;
  right: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 34px;
  line-height: 1;
}

.lightbox-prev,.lightbox-next {
  top: 50%;
  width: 50px;
  height: 70px;
  border-radius: 12px;
  font-size: 46px;
  transform: translateY(-50%);
}

.lightbox-prev { left: 22px; }
.lightbox-next { right: 22px; }

.lightbox button:hover,.lightbox button:focus-visible {
  background: rgba(255,255,255,.25);
}

body.lightbox-open {
  overflow: hidden;
}

@media(max-width:700px) {
  .lightbox {
    padding: 70px 14px 35px;
  }

  .lightbox-prev,.lightbox-next {
    top: auto;
    bottom: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 34px;
  }

  .lightbox-prev { left: 18px; }
  .lightbox-next { right: 18px; }

  .lightbox figcaption {
    padding: 12px 58px 0;
  }
}
