/* 더소중한여성의원 - 추가 스타일 (언어 선택 버튼 등) */

/* ---------- 지구본 언어 선택 ---------- */
.sjh-lang {
  position: absolute;
  z-index: 60;
  transform: translateY(-50%);
  font-family: 'Noto Sans KR', 'Malgun Gothic', Arial, sans-serif;
}
.sjh-lang__open {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #333;
  opacity: .65;
  cursor: pointer;
  transition: opacity .2s, background-color .2s, color .2s;
}
.sjh-lang__open:hover,
.sjh-lang.is-open .sjh-lang__open {
  opacity: 1;
  color: #E8742D;
  background: rgba(232, 116, 45, .08);
}
.sjh-lang__open:focus-visible,
.sjh-lang__item:focus-visible {
  outline: 2px solid #E8742D;
  outline-offset: 2px;
}
.sjh-lang__list {
  position: absolute;
  top: 100%;
  left: 50%;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  min-width: 140px;
  background: rgba(255, 255, 255, .97);
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 6px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
/* 버튼과 목록 사이 마우스 이동 시 닫히지 않도록 */
.sjh-lang__list::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  height: 10px;
}
.sjh-lang.is-open .sjh-lang__list {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 4px);
}
.sjh-lang__list li + li .sjh-lang__item {
  border-top: 1px solid rgba(0, 0, 0, .06);
}
.sjh-lang__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 16px;
  border: 0;
  background: transparent;
  color: #333;
  font-size: 14px;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
}
.sjh-lang__item:hover {
  background: rgba(232, 116, 45, .08);
}
.sjh-lang__item.is-active {
  color: #E8742D;
  font-weight: 700;
}
.sjh-lang__flag {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, .12);
  background-size: cover;
  background-position: center;
}

/* ---------- 번역 시 상단 메뉴가 넘치지 않도록 ---------- */
html[data-sjh-lang]:not([data-sjh-lang="ko"]) #comp-joy60gmgitemsContainer > li p.wGxoBM {
  white-space: nowrap;
  font-size: 13px;
  letter-spacing: -0.2px;
}
html[data-sjh-lang="en"]:not([data-sjh-lang="ko"]) #comp-joy60gmgitemsContainer > li p.wGxoBM {
  font-size: 12.5px;
}
html[data-sjh-lang]:not([data-sjh-lang="ko"]) #comp-joy60gmgmoreContainer p.wGxoBM {
  white-space: nowrap;
  padding: 0 12px;
}

/* ---------- 중국어/일본어: 원본 한글 웹폰트에 한자 글리프가 없어 CJK 글꼴로 대체 ---------- */
html[data-sjh-lang="ja"] body *:not(#comp-le42dbn8 *):not(svg *) {
  font-family: 'Noto Sans JP', 'Yu Gothic', 'YuGothic', 'Meiryo', 'Hiragino Sans', sans-serif !important;
}
html[data-sjh-lang="zh"] body *:not(#comp-le42dbn8 *):not(svg *) {
  font-family: 'Noto Sans SC', 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', sans-serif !important;
}
html[data-sjh-lang="ja"] .sjh-b,
html[data-sjh-lang="zh"] .sjh-b {
  font-weight: 700 !important;
}

/* 상담 신청 완료 메시지 */
#comp-lf9jgqgj.sjh-show {
  visibility: visible !important;
}

/* ---------- 지점안내 사진 갤러리 (원본 Wix Pro Gallery 썸네일형 재현) ---------- */
.sjh-gallery {
  position: relative;
  width: 980px;
  height: 568px;
}
.sjh-gallery__view {
  position: relative;
  width: 980px;
  height: 421px;
  overflow: hidden;
}
.sjh-gallery__track {
  display: flex;
  height: 100%;
  transition: transform .6s ease;
  will-change: transform;
}
.sjh-gallery__slide {
  flex: none;
  width: 980px;
  height: 421px;
}
.sjh-gallery__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
}
.sjh-gallery__arrow {
  position: absolute;
  top: 194px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #000;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sjh-gallery__arrow svg {
  width: 9px;
  height: 14px;
  fill: currentColor;
}
.sjh-gallery__arrow--prev { left: 23px; }
.sjh-gallery__arrow--prev svg { transform: scaleX(-1); }
.sjh-gallery__arrow--next { left: 923px; }
.sjh-gallery__arrow[hidden] { display: none; }
.sjh-gallery__thumbs {
  position: absolute;
  left: 0;
  top: 430px;
  display: flex;
  gap: 18px;
  padding: 9px;
}
.sjh-gallery__thumb {
  position: relative;
  width: 120px;
  height: 120px;
  padding: 0;
  border: 0;
  background: #fff center / cover no-repeat;
  cursor: pointer;
}
.sjh-gallery__thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .6);
  transition: opacity .2s;
}
.sjh-gallery__thumb.is-active::after,
.sjh-gallery__thumb:hover::after {
  opacity: 0;
}
.sjh-gallery__arrow:focus-visible,
.sjh-gallery__thumb:focus-visible {
  outline: 2px solid #E8742D;
  outline-offset: 2px;
}

/* ---------- 메인 슬라이드 배너 (소음순성형·보톡스·임신중절): 병원 실사진 + 글자 ---------- */
.sjh-hero-slide > [data-mesh-id] { visibility: hidden; }
.sjh-hero {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  overflow: hidden;
  background: #f6f1eb;
  color: #3b2b23;
  text-decoration: none;
  font-family: wf_7015082a75ca406e8a093578c, 'NanumSquare', 'Malgun Gothic', sans-serif;
}
.sjh-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.06);
  transition: transform 6s ease-out;
}
.sjh-hero-slide[style*="visibility: visible"] .sjh-hero__bg { transform: scale(1); }
.sjh-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg,
    rgba(248, 243, 237, .97) 0%,
    rgba(248, 243, 237, .95) 44%,
    rgba(248, 243, 237, .7) 58%,
    rgba(248, 243, 237, .16) 76%);
}
.sjh-hero__inner {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 980px;
  margin-left: -490px;
  transform: translateY(-50%);
  padding-left: 10px;
  box-sizing: border-box;
}
.sjh-hero__inner > * { max-width: 470px; }
.sjh-hero__en {
  display: inline-block;
  margin-bottom: 22px;
  padding-bottom: 8px;
  border-bottom: 1px solid #DF6526;
  color: #DF6526;
  font: 600 13px/1 'Montserrat', Arial, sans-serif;
  letter-spacing: .28em;
}
.sjh-hero__eyebrow {
  margin: 0 0 10px;
  color: #6b5a50;
  font-size: 22px;
  line-height: 1.4;
}
.sjh-hero__title {
  margin: 0 0 22px;
  color: #3b2b23;
  font-family: wf_8a242f0187434a4e93515bb25, 'NanumSquare', 'Malgun Gothic', sans-serif;
  font-size: 58px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
}
.sjh-hero__desc {
  margin: 0 0 30px;
  color: #5a4a41;
  font-size: 18px;
  line-height: 1.7;
  word-break: keep-all;
}
.sjh-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 34px;
  padding: 0;
  list-style: none;
}
.sjh-hero__tags li {
  padding: 9px 18px;
  border: 1px solid rgba(223, 101, 38, .45);
  border-radius: 999px;
  background: rgba(255, 255, 255, .7);
  color: #8a4a2a;
  font-family: wf_96695b1459e64dd0ba67689ed, 'NanumSquare', 'Malgun Gothic', sans-serif;
  font-size: 15px;
  line-height: 1.2;
}
.sjh-hero__btn {
  display: inline-block;
  margin: 0;
  padding: 14px 34px;
  border-radius: 999px;
  background: #DF6526;
  color: #fff;
  font-family: wf_96695b1459e64dd0ba67689ed, 'NanumSquare', 'Malgun Gothic', sans-serif;
  font-size: 16px;
  line-height: 1.2;
  transition: background .2s, transform .2s;
}
.sjh-hero:hover .sjh-hero__btn { background: #c9531a; transform: translateX(4px); }
.sjh-hero:focus-visible { outline: 3px solid #DF6526; outline-offset: -3px; }
#comp-le3tvl29 > button { filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .35)); }

/* 소음순 성형: '다양한 소음순 모양' 이름 칸 — 이름이 길어져 좌우로 넓힘(가운데 정렬 유지, 줄바꿈은 <br> 위치에서만) */
#comp-levatfx5 h4, #comp-levaw5cy h4, #comp-levbtkhb h4,
#comp-levbu7cp h4, #comp-levbu7db h4, #comp-levbu7dq h4 {
  white-space: nowrap;
  margin-left: -80px !important;
  margin-right: -80px !important;
}

/* 의료진 소개: 원장 이름 제목이 다른 언어(일본어 등)에서 두 줄로 끊기지 않게 */
#comp-le79snm8 { width: auto !important; min-width: 100%; }
#comp-le79snm8 h1, #comp-le79snm8 h2, #comp-le79snm8 h3, #comp-le79snm8 h4, #comp-le79snm8 h5, #comp-le79snm8 h6, #comp-le79snm8 p { white-space: nowrap; }

/* 메인 팝업 (site.js POPUP) */
.sjh-pop { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.35); opacity: 0; transition: opacity .25s; padding: 16px; box-sizing: border-box; }
.sjh-pop--on { opacity: 1; }
.sjh-pop__box { position: relative; width: 416px; max-width: 100%; background: #fff; box-shadow: 0 12px 40px rgba(0,0,0,.3); transform: translateY(10px); transition: transform .25s; }
.sjh-pop--on .sjh-pop__box { transform: none; }
.sjh-pop__img { position: relative; line-height: 0; }
.sjh-pop__img img { display: block; width: 100%; height: auto; max-height: calc(100vh - 110px); object-fit: contain; }
.sjh-pop__link { position: absolute; left: 0; right: 0; display: block; }
.sjh-pop__x { position: absolute; top: 6px; right: 8px; z-index: 2; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(0,0,0,.35); color: #fff; font-size: 26px; line-height: 34px; cursor: pointer; }
.sjh-pop__x:hover { background: rgba(0,0,0,.55); }
.sjh-pop__bar { display: flex; background: #222; }
.sjh-pop__bar button { flex: 1; padding: 13px 10px; border: 0; background: none; color: #fff; font-size: 14px; cursor: pointer; font-family: inherit; }
.sjh-pop__bar button + button { border-left: 1px solid rgba(255,255,255,.2); }
.sjh-pop__bar button:hover { background: rgba(255,255,255,.08); }

/* 언어 선택: 언어별 페이지가 있으면 링크(a)로 표시 — 버튼과 같은 모양 */
a.sjh-lang__item { box-sizing: border-box; text-decoration: none; font-family: inherit; }

/* 메인 팝업 여러 장: 옆으로 넘기기(화살표·점·숫자) */
.sjh-pop__img { overflow: hidden; }
.sjh-pop__track { display: flex; transition: transform .35s ease; will-change: transform; }
.sjh-pop__slide { position: relative; flex: 0 0 100%; line-height: 0; }
.sjh-pop__slide img { display: block; width: 100%; height: auto; max-height: calc(100vh - 140px); object-fit: contain; user-select: none; -webkit-user-drag: none; }
.sjh-pop__nav { position: absolute; top: 50%; z-index: 2; width: 40px; height: 40px; margin-top: -20px; border: 0; border-radius: 50%; background: rgba(0,0,0,.38); color: #fff; font-size: 30px; line-height: 38px; text-align: center; cursor: pointer; padding: 0; font-family: Arial, sans-serif; }
.sjh-pop__nav:hover { background: rgba(0,0,0,.6); }
.sjh-pop__prev { left: 8px; }
.sjh-pop__next { right: 8px; }
.sjh-pop__count { position: absolute; left: 10px; top: 10px; z-index: 2; padding: 3px 10px; border-radius: 12px; background: rgba(0,0,0,.38); color: #fff; font-size: 12px; line-height: 18px; letter-spacing: .5px; }
.sjh-pop__dots { display: flex; justify-content: center; gap: 8px; padding: 9px 0 8px; background: #222; }
.sjh-pop__dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.35); cursor: pointer; transition: background .2s, width .2s; }
.sjh-pop__dot.is-on { width: 22px; border-radius: 4px; background: #fff; }


/* ===== 휴대폰 화면(767px 이하) 보정 — Wix 모바일 배치(작업자료/도구/mobile.js)와 함께 씀 ===== */
@media (max-width: 767px) {
  /* 언어(지구본) 버튼: 메뉴(≡) 버튼 왼쪽 */
  .sjh-lang { left: auto !important; right: 50px !important; top: 33px !important; transform: translateY(-50%); }
  .sjh-lang__list { right: -8px; left: auto; }
  /* 메뉴가 열리면 지구본은 가림 */
  html[style*="overflow: hidden"] .sjh-lang { visibility: hidden; }
  /* 휴대폰 메뉴: 영어 등 긴 이름이 '…'로 잘리지 않게 폭을 넓힘(가운데 위치는 그대로) */
  #MENU_AS_CONTAINER_EXPANDABLE_MENU { width: 300px !important; left: 10px !important; }
  #MENU_AS_CONTAINER_EXPANDABLE_MENU .G7GdaI { text-overflow: clip; }
  /* 휴대폰 메뉴: 하위 메뉴를 펼쳐 화면보다 길어지면 메뉴 안에서 위아래로 넘겨 보기 */
  #container-MENU_AS_CONTAINER { height: 100%; }
  #inlineContentParent-MENU_AS_CONTAINER { height: 100% !important; overflow-y: auto !important; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
  #MENU_AS_CONTAINER_EXPANDABLE_MENU { padding-bottom: 80px; }
  /* 휴대폰: Wix '표 그림' 대신 넣은 글자 표(작업자료/도구/mobile-tables.js) */
  .sjh-mt-host { height: auto !important; overflow: visible !important; }
  .sjh-mt { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .sjh-mt table { width: 100%; border-collapse: collapse; font-family: 'Pretendard Variable', Pretendard, 'Malgun Gothic', sans-serif; font-size: 12px; line-height: 1.45; color: #333; background: #fff; }
  .sjh-mt--4 table { min-width: 430px; }
  .sjh-mt--5 table { min-width: 470px; }
  .sjh-mt th, .sjh-mt td { border: 1px solid #e2e2e2; padding: 7px 6px; vertical-align: middle; text-align: center; word-break: keep-all; }
  .sjh-mt td { text-align: left; }
  .sjh-mt--5 td { text-align: center; }
  .sjh-mt th[scope=col] { background: #444; color: #fff; font-weight: 700; }
  .sjh-mt--3 th[scope=col]:last-child { background: #e8742d; }
  .sjh-mt--3 td:last-child { background: #fbe9df; }
  .sjh-mt th[scope=row] { background: #f4f4f4; font-weight: 700; white-space: nowrap; }
  .sjh-mt p { margin: 0; }
  /* 지점안내 사진 갤러리(우리가 만든 것)를 휴대폰 폭에 맞춤 — Wix 휴대폰 갤러리 자리 그대로 */
  .sjh-gallery { width: 100%; height: 100%; display: flex; flex-direction: column; }
  .sjh-gallery__view { width: 100%; height: auto; flex: 1 1 auto; }
  .sjh-gallery__slide { width: 100%; height: 100%; }
  .sjh-gallery__arrow { top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.7); border-radius: 50%; }
  .sjh-gallery__arrow--prev { left: 6px; }
  .sjh-gallery__arrow--next { left: auto; right: 6px; }
  .sjh-gallery__thumbs { position: static; flex: none; gap: 6px; padding: 6px 0 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .sjh-gallery__thumb { flex: none; width: 64px; height: 64px; }
}

/* 영어 번역 페이지: 좁은 칸에서 낱말이 아무 데서나 잘리지 않게 음절 단위 하이픈(-) 나눔 */
html[lang="en"] .wixui-rich-text { -webkit-hyphens: auto; hyphens: auto; }

/* PC 번역 페이지 표(.sjh-dt) — 원래 Wix 표 자리에 겹쳐 보임(site.js initDeskTables). 휴대폰 표(.sjh-mt)와 같은 모양 */
.sjh-dt { position: absolute; z-index: 5; }
.sjh-dt[hidden] { display: none; }
.sjh-dt .sjh-mt table { width: 100%; border-collapse: collapse; font-family: 'Pretendard Variable', Pretendard, 'Malgun Gothic', sans-serif; font-size: 13px; line-height: 1.45; color: #333; background: #fff; }
.sjh-dt .sjh-mt th, .sjh-dt .sjh-mt td { border: 1px solid #e2e2e2; padding: 8px 10px; vertical-align: middle; text-align: center; word-break: keep-all; }
.sjh-dt .sjh-mt td { text-align: left; }
.sjh-dt .sjh-mt--5 td { text-align: center; }
.sjh-dt .sjh-mt th[scope=col] { background: #444; color: #fff; font-weight: 700; }
.sjh-dt .sjh-mt--3 th[scope=col]:last-child { background: #e8742d; }
.sjh-dt .sjh-mt--3 td:last-child { background: #fbe9df; }
.sjh-dt .sjh-mt th[scope=row] { background: #f4f4f4; font-weight: 700; }
.sjh-dt .sjh-mt p { margin: 0; }
