/* /css/clone-overlap-guard.css */
/* 화면이 옆으로 밀리지 않게 — 슬라이드의 다음 장·행의 음수 여백이 문서 폭을 넓히지 못하게 자른다(폰·태블릿·PC 공통) */
body{overflow-x:clip !important;}
/* html 은 992px 이하에서만 자른다 — 넓은 화면에서 html 을 자르면 고정(sticky) 연출이 풀린다 */
@media (max-width:992px){html{overflow-x:clip !important;}}

/* 폰 — 한글이 낱말 중간에서 끊기지 않게. 화면보다 긴 낱말(주소·영문)만 넘칠 때 끊는다 */
@media (max-width:768px){
  body,body *{word-break:keep-all !important;overflow-wrap:break-word !important;}
}

/* 폰 — 오른쪽에 떠 있던 바로가기 묶음을 하단 바 바로 위 한 줄로 눕힌다(본문 글자를 덮지 않게). 칸·문구·링크는 그대로.
   아래 하단 바와 한 판(도크)으로 보이게 위쪽 모서리만 둥글리고 그림자는 위로 한 겹만 둔다. 칸은 홈 남색 · 손가락 높이 44px */
@media (max-width:768px){
  .m-rect-float{
    top:auto !important;bottom:var(--clone-bar-h,96px) !important;left:0 !important;right:0 !important;
    transform:none !important;flex-direction:row !important;align-items:center !important;justify-content:flex-end;
    gap:6px !important;padding:6px 10px 4px !important;box-sizing:border-box;
    background:#fff;border-top:0;border-radius:16px 16px 0 0;box-shadow:0 -6px 18px rgba(21,47,94,.10);
    transition:transform 220ms cubic-bezier(.23,1,.32,1),opacity 180ms ease-out;
  }
  /* 아래로 읽어 내려가는 동안에는 치료법 줄을 하단 바 아래로 접어 본문을 더 보이게 한다. 위로 올리거나 맨 위·맨 끝에 닿으면 다시 올라온다(스크립트가 표식을 단다) */
  html.clone-dock-tuck .m-rect-float{
    transform:translateY(calc(100% + var(--clone-bar-h,96px))) !important;opacity:0;pointer-events:none !important;
  }
  .m-rect-float .m-rect-title{
    flex:0 0 auto;display:flex;align-items:center;padding:0 4px 0 2px !important;border-radius:0 !important;
    background:transparent !important;color:#3f4f6d !important;font-size:12px !important;font-weight:700 !important;letter-spacing:-.02em;
  }
  .m-rect-float .m-rect-btn{
    flex:1 1 0;min-width:0 !important;min-height:44px;padding:0 4px !important;border-radius:12px !important;
    display:flex !important;align-items:center;justify-content:center;
    font-size:clamp(12px,3.5vw,13.5px) !important;font-weight:600 !important;letter-spacing:-.03em;white-space:nowrap;
    background:#152f5e !important;box-shadow:inset 0 -2px 0 rgba(0,0,0,.14);
    -webkit-tap-highlight-color:transparent;
    transition:transform 140ms cubic-bezier(.23,1,.32,1),background-color 140ms ease-out;
  }
  /* 두 줄로 쪼개져 있던 이름(이명/난청)을 한 줄로 읽히게 — 줄바꿈 표시만 접는다(문구는 그대로) */
  .m-rect-float .m-rect-btn br{display:none;}
  .m-rect-float .m-rect-btn:active{transform:scale(.97);background:#0f2449 !important;}
  /* 빠른 상담 버튼 — 치료법 칸(남색 채움)과 구분되게 흰 바탕에 파란 테두리 두 겹을 두르고, 10초에 한 번 옅은 물결이 퍼진다.
     오른쪽 AI 상담 버튼 물결(6초 주기)과 같은 때 퍼지지 않게 시작을 늦춘다. 그림은 그대로 */
  .m-rect-float #mobile_consult_trigger{
    position:relative !important;overflow:visible !important;
    align-self:center !important;flex:0 0 44px !important;
    width:44px !important;min-width:44px !important;max-width:44px !important;height:44px !important;min-height:44px;
    margin:0 0 0 2px !important;border-radius:12px !important;border:2px solid #0949a0 !important;
    box-shadow:0 3px 10px rgba(9,73,160,.22) !important;
    transition:transform 140ms cubic-bezier(.23,1,.32,1);
  }
  .m-rect-float #mobile_consult_trigger::after{
    content:"";position:absolute;inset:-2px;border-radius:12px;border:2px solid #0949a0;opacity:0;pointer-events:none;
    animation:cloneTrigRing 10s cubic-bezier(.23,1,.32,1) 3.4s infinite;
  }
  .m-rect-float #mobile_consult_trigger:active{transform:scale(.97);}
  .m-rect-float #mobile_consult_trigger img{
    width:40px !important;min-width:40px !important;max-width:40px !important;height:40px !important;max-height:40px;
    margin:0 auto;border-radius:10px !important;object-fit:contain !important;
  }
  html.clone-dock-tuck .m-rect-float #mobile_consult_trigger::after{animation:none;}

  /* 하단 바 — 통칠한 초록·빨강 칸을 걷고, 칸마다 둥근 아이콘 판을 둔다(네이버·유튜브는 제 색 판 · 나머지는 옅은 남색 판).
     본문을 덜 가리게 판·여백을 줄여 바 높이를 낮춘다. 아이폰 아래 손잡이 자리(safe-area)만큼 바닥을 띄운다 */
  nav.bottom-bar{
    gap:4px !important;padding:4px 8px calc(4px + env(safe-area-inset-bottom,0px)) !important;
    background:#fff !important;border-top:1px solid #eef1f6 !important;box-shadow:none !important;
  }
  nav.bottom-bar a{
    display:flex !important;flex-direction:column;align-items:center;justify-content:center;
    gap:3px !important;min-height:48px;padding:3px 2px 2px !important;border-radius:12px !important;
    background:transparent !important;-webkit-tap-highlight-color:transparent;
    transition:transform 140ms cubic-bezier(.23,1,.32,1),background-color 140ms ease-out;
  }
  nav.bottom-bar a:active{transform:scale(.97);background:#f3f6fb !important;}
  nav.bottom-bar .slot{
    width:30px;height:30px !important;border-radius:10px;background:#eef2f9;
    display:grid !important;place-items:center;line-height:0;
  }
  nav.bottom-bar .slot svg{width:20px !important;height:20px !important;}
  nav.bottom-bar .icon{font-size:19px !important;color:#152f5e !important;}
  nav.bottom-bar .label{margin-top:0 !important;line-height:1.2 !important;}
  nav.bottom-bar .is-naver .slot{background:#03C75A;}
  nav.bottom-bar .is-youtube .slot{background:#FF0000;}
  nav.bottom-bar .label,
  nav.bottom-bar .is-naver .label,
  nav.bottom-bar .is-youtube .label{font-size:12px !important;font-weight:600 !important;letter-spacing:-.03em;color:#1d2a44 !important;}
}
@keyframes cloneTrigRing{0%{opacity:.6;transform:scale(1)}14%,100%{opacity:0;transform:scale(1.32)}}
@media (max-width:768px) and (prefers-reduced-motion:reduce){
  .m-rect-float,.m-rect-float .m-rect-btn,.m-rect-float #mobile_consult_trigger,nav.bottom-bar a{transition:none;}
  .m-rect-float .m-rect-btn:active,.m-rect-float #mobile_consult_trigger:active,nav.bottom-bar a:active{transform:none;}
  .m-rect-float #mobile_consult_trigger::after{animation:none;}
}

/* 폰 — 바로가기 칸이 하나도 보이지 않는 지면(칼럼 등)에서는 흰 띠·테두리·그림자를 걷고 빠른 상담 버튼만 남긴다. 띠 자리는 그대로라 아래 여백도 같다 */
@media (max-width:768px){
  html.clone-strip-bare .m-rect-float,
  html.ebian-column-page .m-rect-float{
    background:transparent !important;border:0 !important;box-shadow:none !important;pointer-events:none !important;
  }
  html.clone-strip-bare .m-rect-float #mobile_consult_trigger,
  html.ebian-column-page .m-rect-float #mobile_consult_trigger{pointer-events:auto !important;}
}

/* 폰 — 글자를 입력하는 동안에는 하단 바·바로가기 줄을 접는다(자판이 올라온 좁은 화면에서 입력 칸을 가리지 않게). 입력이 끝나면 돌아온다 */
@media (max-width:768px){
  html.clone-typing .bottom-bar,
  html.clone-typing .m-rect-float,
  html.clone-typing #mobile_consult_trigger{display:none !important;}
  /* 빠른 상담 창·예약 달력이 열려 있는 동안에도 같다 — 창 아래쪽 칸과 버튼을 가리지 않게. 닫으면 돌아온다 */
  body.mobile-consult-lock .bottom-bar,
  body.mobile-consult-lock .m-rect-float,
  body:has(.bootstrap-datetimepicker-widget) .bottom-bar,
  body:has(.bootstrap-datetimepicker-widget) .m-rect-float{display:none !important;}
  /* 입력하는 동안 브라우저가 칸을 끌어올릴 때 위쪽 고정 띠 밑으로 들어가지 않게 띠 높이만큼 띄운다 */
  html.clone-typing input,
  html.clone-typing textarea{scroll-margin-top:56px;}
  html.clone-picker-open .bottom-bar,
  html.clone-picker-open .m-rect-float{display:none !important;}
  html:not(.clone-guard-js):has(input:not([type=checkbox]):not([type=radio]):not([type=button]):not([type=submit]):not([type=hidden]):not([type=file]):focus,textarea:focus) .bottom-bar,
  html:not(.clone-guard-js):has(input:not([type=checkbox]):not([type=radio]):not([type=button]):not([type=submit]):not([type=hidden]):not([type=file]):focus,textarea:focus) .m-rect-float{display:none !important;}
}

/* 폰 — 옆으로 미는 메뉴줄의 오른쪽 끝을 흐리게 해 이어지는 칸이 더 있음을 보인다(끝까지 밀면 걷힌다) */
@media (max-width:768px){
  html.clone-guard-js ._mobile_navigation_menu.clone-more{
    -webkit-mask-image:linear-gradient(to right,#000 calc(100% - 36px),transparent);
    mask-image:linear-gradient(to right,#000 calc(100% - 36px),transparent);
  }
}

/* 메뉴가 열린 동안 위쪽 배너를 메뉴 아래로 내린다 — :has() 를 모르는 옛 브라우저용(스크립트가 단 표식을 본다) */
html.clone-menu-open #custom-top-banner{z-index:1000 !important;}

/* PC 1280 이상 — 머리 메뉴가 한 줄에 다 들어가게 왼쪽·오른쪽 칸을 내용 폭으로 줄인다(로고는 줄지 않게). 한국어 메뉴 여백은 화면 폭에 맞춰 10~30px. 안 들어가는 폭에서는 더보기 단추로 접힌다 */
@media (min-width:1280px){
  #eb_header .inline-col-group-left,#eb_header .inline-col-group-right{width:1% !important;white-space:nowrap;}
  #eb_header .inline-col-group-left .img_box img{max-width:none !important;}
  #eb_header .inline-col-group-right .widget.button a.btn{white-space:nowrap !important;}
  html[lang=ko] #eb_header .viewport-nav.desktop>li>a{padding-left:clamp(10px,calc((100vw - 1280px) / 16),30px) !important;padding-right:clamp(10px,calc((100vw - 1280px) / 16),30px) !important;}
}
/* PC 1280~1919 — 양 끝 빈 칸을 24px 로, 전화 단추 좌우 여백을 18px 로 줄여 메뉴 칸을 넓힌다 */
@media (min-width:1280px) and (max-width:1919px){
  #eb_header .inline-col-group-left>.inline-col:first-child .widget.padding,#eb_header .inline-col-group-left>.inline-col:first-child .widget.padding>div,
  #eb_header .inline-col-group-right>.inline-col:last-child .widget.padding,#eb_header .inline-col-group-right>.inline-col:last-child .widget.padding>div{width:24px !important;}
  #eb_header .inline-col-group-right .widget.button a.btn{padding-left:18px !important;padding-right:18px !important;}
}
/* PC 1280~1365 한국어 — 메뉴 여덟 칸 글자만 555px 라 19px 로는 메뉴 사이가 붙는다. 이 폭에서만 17px */
@media (min-width:1280px) and (max-width:1365px){
  html[lang=ko] #eb_header .viewport-nav.desktop>li>a,html[lang=ko] #eb_header .viewport-nav.desktop>li>a .plain_name{font-size:17px !important;}
  html[lang=ko] #eb_header .viewport-nav.desktop>li>a{padding-left:clamp(8px,calc((100vw - 1200px) / 16),30px) !important;padding-right:clamp(8px,calc((100vw - 1200px) / 16),30px) !important;}
}

/* PC 992 이상 — 화면 아래에 떠 있는 상담 폼과 그 위의 AI 상담 단추가 문서 맨 아래 법정 링크(개인정보·비급여)를 덮지 않게, 바닥 구역 아래에 여백을 둔다. 바닥 구역 바탕색(남색)이 그대로 이어진다 */
@media (min-width:992px){
  #s20251226df9eea483cbbb{padding-bottom:180px !important;}
}
/* PC 992 이상 — 오른쪽에 떠 있는 세로 바(폭 152px)가 바닥 구역 오른쪽 끝의 법정 링크 줄(이용약관·개인정보·비급여)을 덮지 않게, 바 폭에 8px 을 더한 160px 이 그 줄 오른쪽에 남도록 그 줄에만 안쪽 여백을 둔다(내용 폭 1190px 가운데 정렬 기준 · 다른 내용의 자리는 그대로 · 1510px 이상은 0) */
@media (min-width:992px){
  #s20251226df9eea483cbbb p:has(a[data-legal="pricing"]){padding-right:min(160px,max(0px,calc(160px - (100vw - 1190px) / 2))) !important;}
}

/* PC 992 이상 — 오른쪽에 떠 있는 세로 바(폭 152px)가 바닥 구역의 내용(로고 그림·주소 줄·공식 인스타 단추·법정 링크 줄)을 덮지 않게, 바닥 구역 안쪽 오른쪽에 바 폭에 8px 을 더한 160px 이 남도록 내용 폭을 줄인다(내용 폭 1170px 가운데 정렬 기준 · 1525px 이상은 0 · 위쪽 법정 링크 줄 여백과 함께 쓰인다) */
@media (min-width:992px){
  #s20251226df9eea483cbbb>main{padding-right:calc(10px + min(160px,max(0px,1525px - 100vw))) !important;}
}

/* PC 992 이상 — 오른쪽 아래 AI 상담 단추가 오른쪽에 떠 있는 세로 바(폭 152px) 아래쪽과 겹치지 않게 바 왼쪽(바 폭 + 24px)으로 비킨다. 화면 높이에 따라 바 아래쪽이 단추 자리까지 내려오는 것을 막는다. 폰·태블릿은 그대로 */
@media (min-width:992px){
  .aic-launch{right:176px !important;}
}

/* /css/imgtx.css */
/* 그림 위 글자 층 — 바탕 그림(글자를 지운 그림) 위에 원래 자리·색·굵기로 글자를 얹는다.
   글자 크기는 층 폭 대비(cqw)라 그림이 줄면 함께 준다. 자리는 그림 픽셀 대비 % 다. */
._img_box:has(> .imgtx) { position: relative; }
.imgtx {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(100%, calc(var(--w) * 1px)); aspect-ratio: var(--ar);
  container-type: inline-size; direction: ltr; pointer-events: none;
  visibility: hidden; margin: 0; padding: 0; line-height: normal; text-align: left; display: block;
}
.imgtx > .imgtx-cover { position: absolute; display: none; pointer-events: none; }
.imgtx > .imgtx-t[data-i18n-removed] + .imgtx-cover, .imgtx > .imgtx-cover.is-on { display: block; }
img:not([style*="visibility:hidden"]):not([style*="visibility: hidden"]) + .imgtx { visibility: visible; }
.imgtx > .imgtx-t {
  position: absolute; display: flex; align-items: center; box-sizing: border-box;
  margin: 0 !important; padding: 0 !important; border: 0; background: none;
  font-family: 'Pretendard', 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans', sans-serif !important;
  font-size: calc(var(--fs) * 1cqw * var(--fit, 1)) !important;
  line-height: var(--lh) !important; letter-spacing: 0 !important;
  white-space: normal; word-break: normal; overflow-wrap: normal;
  direction: ltr !important; unicode-bidi: plaintext !important; text-shadow: none; overflow: visible;
}
html[lang^="ko"] .imgtx > .imgtx-t { white-space: nowrap; word-break: keep-all; letter-spacing: var(--ls, 0) !important; }
.imgtx > .imgtx-t.imgtx-serif { font-family: 'Nanum Myeongjo', 'AppleMyungjo', 'Apple Myungjo', 'Batang', 'Noto Serif KR', 'Noto Serif CJK KR', 'Source Han Serif K', 'Times New Roman', serif !important; }
.imgtx > .imgtx-t .imgtx-em { color: var(--em, inherit); font: inherit; }
/* 외국어 화면 전용 글자 폭(fw) — 번역이 길어 그림 도형(원 등) 밖으로 나가는 칸을 한국어 자리는 그대로 두고 좁힌다 */
html:not([lang^="ko"]) .imgtx > .imgtx-t.imgtx-fw { left: var(--fl) !important; width: var(--fw) !important; }
/* 한국어 화면 — 원래 그림(글자가 그림에 들어 있음)을 보여 주고, 층은 화면에서만 숨겨 읽기 도구·검색용 글자로 남긴다 */
.imgtx.imgtx-a11y {
  position: absolute !important; left: 0 !important; top: 0 !important; transform: none !important;
  width: 1px !important; height: 1px !important; aspect-ratio: auto !important;
  overflow: hidden !important; clip-path: inset(50%) !important; white-space: nowrap;
  visibility: visible !important; margin: -1px !important; padding: 0 !important; border: 0 !important;
}
