/* E안 보정: 원본 레이아웃 CSS(assets/css)는 그대로 두고, 브랜드·이미지·교체 문구만 덮어쓴다 */
.e-variant h1,
.e-variant h4,
.e-variant h5,
.e-variant h6,
.e-variant p,
.e-variant strong {
  word-break: keep-all;
}

/* 로고 */
#logo a {
  background-image: url("/brand-w.svg") !important;
  background-size: auto 100% !important;
}
#header.on #logo a,
#header.scroll #logo a,
#header.sub-page #logo a {
  background-image: url("/brand.svg") !important;
}
#topBtn .e-book {
  display: inline-block;
  height: 37px;
  line-height: 37px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  font-size: 13px;
  letter-spacing: 1px;
}
#header.on #topBtn .e-book,
#header.scroll #topBtn .e-book {
  border-color: #c2a36b;
  background: #c2a36b;
  color: #fff;
}

/* 메인 비주얼: 원본은 문구가 박힌 배너 이미지라 HTML 문구 오버레이로 대체 */
#mainVisual .e-hero a {
  display: block;
  position: relative;
}
#mainVisual .e-hero-img {
  display: block;
  height: min(970px, 50.5vw);
  min-height: 560px;
  overflow: hidden;
}
#mainVisual .e-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 50%;
}
#mainVisual .e-hero-copy {
  position: absolute;
  left: max(6%, calc(50% - 600px));
  top: 50%;
  transform: translateY(-38%);
  color: #fff;
  text-shadow: 0 2px 14px rgba(70, 40, 20, 0.35);
}
#mainVisual .e-hero-copy em {
  display: block;
  font:
    italic 400 64px/1.05 Georgia,
    "Times New Roman",
    serif;
  color: #fff;
  margin-bottom: 28px;
  transform: rotate(-6deg);
  transform-origin: left bottom;
}
#mainVisual .e-hero-copy strong {
  display: block;
  font-size: 40px;
  line-height: 1.35;
  font-weight: 600;
  color: #fff;
  letter-spacing: -1px;
}
#mainVisual .e-hero-copy small {
  display: inline-block;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.6);
  font-size: 16px;
  letter-spacing: 1px;
  color: #fff;
}
#mainVisual .e-hero-copy br {
  display: block !important;
}

/* 서비스 카드 6종: 생성 이미지 교체 */
#mainService .inner li {
  background-size: cover !important;
}
#mainService .inner li:nth-of-type(1) {
  background-image: url("/img/svc-brazilian.jpg");
}
#mainService .inner li:nth-of-type(2) {
  background-image: url("/img/svc-body.jpg");
}
#mainService .inner li:nth-of-type(3) {
  background-image: url("/img/svc-face.jpg");
}
#mainService .inner li:nth-of-type(4) {
  background-image: url("/img/svc-men.jpg");
}
#mainService .inner li:nth-of-type(5) {
  background-image: url("/img/svc-pregnant.jpg");
}
#mainService .inner li:nth-of-type(6) {
  background-image: url("/img/svc-care.jpg");
}
#mainService .inner li:nth-of-type(4):after {
  background: rgba(70, 58, 50, 1);
}
#mainService .inner li .text-box p br {
  display: block;
}

/* 포인트 아코디언 5칸 */
#mainPoint ul li {
  background-size: cover !important;
  background-position: 50% 50% !important;
}
#mainPoint ul li:nth-of-type(1),
#mainPoint ul li:nth-of-type(1).on {
  background-image: url("/img/safety.jpg");
}
#mainPoint ul li:nth-of-type(2),
#mainPoint ul li:nth-of-type(2).on {
  background-image: url("/img/strip-consult.jpg");
}
#mainPoint ul li:nth-of-type(3),
#mainPoint ul li:nth-of-type(3).on {
  background-image: url("/img/strip-private.jpg");
}
#mainPoint ul li:nth-of-type(4),
#mainPoint ul li:nth-of-type(4).on {
  background-image: url("/img/strip-skin.jpg");
}
#mainPoint ul li:nth-of-type(5),
#mainPoint ul li:nth-of-type(5).on {
  background-image: url("/img/strip-aftercare.jpg");
}
#mainPoint ul li:not(.on) {
  box-shadow: inset 0 0 0 2000px rgba(40, 28, 20, 0.45);
}
#mainPoint ul li:nth-of-type(2) .color-box {
  background: rgba(120, 96, 80, 0.82);
}
#mainPoint ul li:nth-of-type(3) .color-box {
  background: rgba(176, 150, 100, 0.85);
}
#mainPoint ul li:nth-of-type(4) .color-box {
  background: rgba(150, 110, 80, 0.85);
}
#mainPoint ul li:nth-of-type(5) .color-box {
  background: rgba(196, 140, 130, 0.85);
}

/* 가격 카드: 원본 패스 이미지 카드의 색 구성을 HTML로 재현 */
.e-card {
  display: flex;
  flex-direction: column;
  aspect-ratio: 280/424;
  padding: 30px 24px;
  border-radius: 12px;
  color: #fff;
  text-align: left;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}
.e-card:before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  border: 14px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.25);
}
.e-card span {
  margin-top: 36px;
  font-size: 12px;
  letter-spacing: 2px;
  opacity: 0.85;
}
.e-card strong {
  margin-top: 10px;
  font-size: 22px;
  line-height: 1.35;
  color: inherit;
}
.e-card strong br {
  display: block;
}
.e-card b {
  margin-top: auto;
  font-size: 30px;
  font-weight: 700;
  color: inherit;
}
.e-card em {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 13px;
  font-style: normal;
  opacity: 0.9;
}
.e-card-red {
  background: linear-gradient(135deg, #d6474a, #b8323a);
}
.e-card-black {
  background: linear-gradient(135deg, #3b3b3b, #1f1f1f);
}
.e-card-gold {
  background: linear-gradient(135deg, #dccb93, #c5ad70);
  color: #3a2e1d;
}
.e-card-gold em {
  border-top-color: rgba(58, 46, 29, 0.25);
}
.e-card-pink {
  background: linear-gradient(135deg, #f3d3d5, #e6b0b3);
  color: #5b3236;
}
.e-card-pink em {
  border-top-color: rgba(91, 50, 54, 0.2);
}

/* 첫 방문 안내 타일: 흐림은 미리 처리한 이미지로 표현하고(스크롤 중 blur 필터 재계산 제거), hover 때 선명한 원본을 투명도로만 전환한다 */
#bestReview ul li img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
  /* 원본의 넘침 보정 여백(-17.5%)이 사진을 위로 밀어 하단 빈 띠를 만들던 문제 제거 */
  margin: 0 !important;
}
#bestReview ul li img.e-sharp {
  opacity: 0;
  transition: opacity 0.4s;
}
#bestReview ul li:hover img.e-sharp,
#bestReview ul li:focus-within img.e-sharp {
  opacity: 1;
}
#bestReview ul li {
  position: relative;
}
#bestReview ul li > a {
  position: absolute;
  inset: 0;
  z-index: 3;
}

/* 위치 섹션 */
#mainBranches > ul > li {
  background-size: cover !important;
  background-position: 50% 50% !important;
}
#mainBranches > ul > li:not(.on) {
  box-shadow: inset 0 0 0 2000px rgba(33, 27, 23, 0.5);
}
#mainBranches > ul > li.on {
  box-shadow: inset 0 0 0 2000px rgba(33, 27, 23, 0.35);
}

/* 인스타 영역 → 셀프케어 갤러리 */
.e-gallery .e-gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-top: 24px;
}
.e-gallery .e-gallery-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
.e-gallery h6 span {
  margin-left: 10px;
}

/* 하단 배너 */
.e-banner {
  height: clamp(140px, 15.625vw, 300px);
  background: #2b221c url("/img/hero-2.jpg") center 60% / cover;
  position: relative;
}
.e-banner div {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(30, 22, 16, 0.55);
  color: #fff;
  text-align: center;
}
.e-banner span {
  font-size: 20px;
  color: #fff;
}
.e-banner strong {
  font-size: 38px;
  color: #fff;
  letter-spacing: 6px;
  margin-top: 12px;
  font-weight: 300;
}

/* 고객센터: 원본 상담원 사진 자리 */
#csBox .right-box {
  background: #3a2e28 url("/img/contact.jpg") center/cover !important;
  position: relative;
}

#csBox .right-box .text-box {
  position: relative;
}
#csBox .right-box .text-box span br {
  display: block;
}
#csBox .cs-call .text-box span strong a {
  font-size: inherit;
}

/* 팝업: 원본 할인 배너 이미지 대신 실제 첫 방문가 */
#lyPopup .close {
  border: 0;
  cursor: pointer;
}
.e-popup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 36px 28px 32px;
  background: #b8323a;
  color: #fff;
  text-align: center;
  width: 340px;
  box-sizing: border-box;
}
.e-popup > span {
  font-size: 11px;
  letter-spacing: 3px;
  opacity: 0.8;
}
.e-popup strong {
  font-size: 28px;
  line-height: 1.3;
  color: #fff;
}
.e-popup strong br {
  display: block;
}
.e-popup em {
  display: block;
  width: 100%;
  background: #e8565a;
  padding: 12px 16px;
  font-style: normal;
  font-size: 26px;
  font-weight: 700;
  text-align: left;
  transform: rotate(-3deg);
}
.e-popup em.dark {
  background: #262626;
  transform: rotate(2deg);
}
.e-popup em small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  opacity: 0.85;
}
.e-popup b {
  margin-top: 10px;
  border: 1px solid #fff;
  border-radius: 30px;
  padding: 10px 26px;
  font-size: 15px;
}

/* 플로팅 메뉴: 원본 아이콘(카카오·인스타) 대신 텍스트형 */
#flotingMenu .pcview ul li a {
  font-size: 12px !important;
  text-indent: 0 !important;
  color: #fff !important;
  display: flex !important;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 8px;
  box-sizing: border-box;
}
#flotingMenu .pcview ul li:nth-of-type(1) a {
  background-image: none !important;
  align-items: center;
  padding: 0;
  font-weight: 700;
}
#flotingMenu .cs-center strong {
  font-size: 15px !important;
}
#footer address {
  background-image: url("/brand.svg") !important;
  background-size: 130px auto !important;
}
#footer address br {
  display: block;
}

@media (max-width: 768px) {
  #mainVisual .e-hero-img {
    height: auto;
    min-height: 0;
    aspect-ratio: 4/5;
  }
  #mainVisual .e-hero-img img {
    object-position: 78% 50%;
  }
  #mainVisual .e-hero-copy {
    left: 24px;
    right: 24px;
    top: auto;
    bottom: 56px;
    transform: none;
  }
  #mainVisual .e-hero-copy em {
    font-size: 38px;
    margin-bottom: 16px;
  }
  #mainVisual .e-hero-copy strong {
    font-size: 26px;
  }
  #mainVisual .e-hero-copy small {
    font-size: 13px;
    margin-top: 14px;
    padding-top: 10px;
  }
  /* 가격 카드는 가로 스와이프 대신 2열 그리드 */
  #mainCard .swiper-wrapper {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    transform: none !important;
  }
  #mainCard .swiper-slide {
    width: auto !important;
    margin: 0 !important;
  }
  #mainpass .swiper-pagination-main02,
  #mainpass .swiper-button-prev-main02,
  #mainpass .swiper-button-next-main02 {
    display: none;
  }
  .e-card {
    aspect-ratio: auto;
    min-height: 220px;
    padding: 18px 14px;
  }
  .e-card span {
    margin-top: 18px;
    font-size: 10px;
    letter-spacing: 1px;
  }
  .e-card strong {
    font-size: 16px;
  }
  .e-card b {
    font-size: 21px;
    margin-top: 18px;
  }
  .e-card em {
    font-size: 11px;
    margin-top: 10px;
    padding-top: 8px;
  }
  .e-gallery .e-gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  .e-banner span {
    font-size: 14px;
  }
  .e-banner strong {
    font-size: 22px;
    letter-spacing: 3px;
  }
  .e-popup {
    width: 300px;
    padding: 28px 20px 24px;
  }
  .e-popup strong {
    font-size: 22px;
  }
  .e-popup em {
    font-size: 22px;
  }
}

/* 렌더 확인 후 보정 (원본 CSS의 span/em 색 상속 덮어쓰기) */
#mainpass .e-card span,#mainpass .e-card strong,#mainpass .e-card b,#mainpass .e-card em{color:inherit!important}
#mainpass .e-card span{opacity:.85}
#bestReview ul li{overflow:hidden}
#bestReview ul li img{position:absolute;inset:0;width:100%!important;height:100%!important;object-fit:cover}
#bestReview ul li .text-box{z-index:2}
#logo a,#header.on #logo a,#header.scroll #logo a,#header.sub-page #logo a{background-size:contain!important;background-position:50% 50%!important}

/* 모바일: 캡처되지 않은 원본 /images/common 아이콘을 자체 SVG로 대체 */
.all-menu{background-image:url('/ico-menu.svg')!important}
.all-menu.on{background-image:url('/ico-close.svg')!important}
.dark-dim .plus-btn:before{background:#b8925a url('/ico-plus.svg') 50% 50%/24px no-repeat!important}
.dark-dim ul li a:before{display:none!important}
.dark-dim ul li a span{display:inline-block;background:#fff;color:#3a2e28;border-radius:20px;padding:8px 14px;font-size:13px;box-shadow:0 2px 6px rgba(0,0,0,.15)}
#footer address{background-repeat:no-repeat!important}
@media (max-width:768px){
	#logo a,#header.on #logo a,#header.scroll #logo a,#header.sub-page #logo a{background-image:url('/brand.svg')!important;background-size:auto 40px!important}
	#footer address{padding-left:0!important;padding-top:56px;background-position:0 0!important;background-size:110px auto!important}
	
}

/* 고객센터 우측 박스: 오버레이를 배경 레이어로 처리 (pseudo 오버레이가 페이지 전체를 덮던 문제 수정) */
#csBox .right-box{position:relative!important;background:linear-gradient(90deg,rgba(255,255,255,.94) 48%,rgba(255,255,255,.25)),url('/img/contact.jpg') center/cover!important}
@media (max-width:768px){#csBox .right-box{background:linear-gradient(rgba(255,255,255,.9),rgba(255,255,255,.9)),url('/img/contact.jpg') center/cover!important}}

