a {
  text-decoration: none;
  align-self: center ;
}
.case-detail-main {
  padding-top: var(--header-height);
  background: #fff;
}

/* 타이틀 */
.case-detail-hero {
  padding: 20px 0 20px;
  background: #fff;
}
.case-detail-title {
  color: #1198d6;
  font-weight: 800;
  font-size: 20px;
  padding: 18px 18px;
  margin: 0;
  text-align: center;
  font-family: 'ChosunIlboMyungjo';
}
.casedetail-divider {
  height: 1px;
  background: #555
  margin-bottom: 0px;
}
/* 회색 배경 영역 */
.case-detail-wrap {
  background: #fff;
  padding: 10px 0 20px;
}

.case-block-first {
    padding: 10px 0 10px;
  background: #ddd;
}

/* 블록 간격 */
.case-block {
  margin-bottom: 18px;
}

/* ✅✅✅ 핵심: index.css에서 가져온 "오버레이 case-text" 완전 해제 */
.case-detail-main .case-text {
  position: static !important;
  inset: auto !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  transform: none !important;
  opacity: 1 !important;
  background: transparent !important;
  padding: 14px 20px !important;
  text-align: left;
  z-index: auto !important;
}

.case-detail-main .case-h2 {
  color: #333;
  font-weight: 800;
  font-size: 16px;
  margin: 0 0 0px;
}
.case-wrg {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.7;
    color: #000;
    margin: 0 10%;
    text-align: center; 
    font-family: 'ChosunIlboMyungjo';
}
.case-detail-main .case-p {
  font-size: 12px;
  line-height: 1.7;
  color: #666;
  margin: 0;
  font-family: 'ChosunIlboMyungjo';
}
/* 이미지 영역: 좌우 여백 없이 꽉 차게 */
.case-edge {
  margin: 0 !important;
}

.case-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  padding: 0 0; /* 좌우 여백 제거 */
}

.case-fig {
  margin: 0;
  background: #ddd;
}

.case-fig img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  align-content: center;
}

/* 큰 파노라마도 좌우 꽉 */
.case-one {
  margin: 0;
}

/* 캡션 */
.case-caption {
  text-align: center;
  font-size: 11px;
  color: #777;
  padding: 10px 16px 0;
  margin: 0;
}

/* 화살표 */
.case-arrow {
  display: flex;
  justify-content: center;
  padding: 14px 0 6px;
}
.case-arrow-svg {
  width: 56px;
  opacity: 0.9;
}

/* 유튜브 */
.case-youtube {
  padding: 18px 0 0;
}
.yt-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  padding: 0 18px;
}
.yt-dot {
  font-size: 14px;
  line-height: 1;
}
.yt-embed {
  position: relative;
  padding-top: 56.25%;
  margin: 12px 18px 0;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
}
.yt-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* 다른 사례 슬라이더 */
.case-more {
  padding: 22px 0 0;
}
.case-more-title {
  font-size: 14px;
  font-weight: 700;
  color: #333;
  padding: 0 18px 10px;
  margin: 0;
}

.case-slider {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
}

.case-track {
  display: flex;
  gap: 10px;
  overflow: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 6px;
}
.case-thumb {
  flex: 0 0 160px;
  border-radius: 12px;
  overflow: hidden;
  scroll-snap-align: start;
  background: #eaeaea;
}
.case-thumb img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
}

.case-nav {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 0;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  font-size: 22px;
  line-height: 34px;
  cursor: pointer;
}

/* 스크롤 등장 효과 (겹침 방지 위해 active 클래스만 사용) */
.reveal { 
    opacity:0; 
    transform:translateY(14px);
}
.reveal.active { opacity:1; transform:none; }

/* PC */
@media (min-width: 1024px) {
  .case-detail-title {
    font-size: 20px;
    padding: 22px 0;
    max-width: 1100px;
    margin: 0 auto;
  }
  .case-detail-wrap {
    max-width: 1300px;
    padding: 22px 0 60px;
    margin-left: auto;
    margin-right: auto;
  }
  .case-block {
    max-width: 1100px;
    margin: 0 auto 22px;
  }
  .yt-embed {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
  }
  .case-more {
    max-width: 1100px;
    margin: 0 auto;
  }
  .case-detail-main .case-h2 {
    font-weight: 800;
    font-size: 20px;
    margin: 0 0 6px;
  }

  .case-detail-main .case-p {
    font-size: 16px;
    line-height: 2.4;
    color: #666;
    margin: 0;
  }

}

.case-detail-main .reveal { opacity:0 !important; transform:translateY(14px) !important; }
.case-detail-main .reveal.active { opacity:1 !important; transform:none !important; }
