/* ==========================================================================
   Top Bar - 상단 바
   ========================================================================== */
#top_bar {
  position: relative;
  z-index: 999;
  border-top: 1px solid var(--primary-color);
  border-bottom: 1px solid var(--line-color);
  font-size: 1.2rem;
  line-height: 3.2rem;
}

#top_bar .con_wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
}
#top_bar .con_wrap > * {
  padding: 0 1.6rem;
  border-right: 1px solid var(--line-color);
}

/* 맨 오른쪽 항목은 구분선과 여백 제거 */
#top_bar .con_wrap > *:last-child {
  padding-right: 0;
  border-right: none;
}

/* 설명 문구: 왼쪽에 붙이고 나머지 항목을 오른쪽으로 밀어냄 (넘치면 말줄임) */
#top_bar .con_wrap .top_desc {
  margin-right: auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--text-color-sub);
  border-right: none;
  padding-left: 0;
}

/* 로그인: 상단 바에서는 아이콘 버튼으로 노출.
   일반 방문자에게는 거의 안 보이도록 흐리게 두고, 올렸을 때만 또렷해진다 */
#top_bar .con_wrap .login .login_btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 3.2rem;
  opacity: 0.2;
  transition: opacity 0.3s;
}

#top_bar .con_wrap .login .login_btn:hover,
#top_bar .con_wrap .login .login_btn:focus-visible {
  opacity: 1;
}

#top_bar .con_wrap .login .icon {
  width: 1.6rem;
  height: 1.6rem;
  stroke: var(--text-color);
  stroke-width: 2;
}

#top_bar .con_wrap .login .login_btn:hover .icon {
  stroke: var(--point-color);
}

/* ==========================================================================
   Login Popup - 로그인 팝업 (회원가입 없는 아웃로그인)
   ========================================================================== */
#login_pop {
  display: none;
  position: fixed;
  inset: 0;
  /* 모바일 메뉴 버튼(1002)보다 위 */
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

#login_pop.on {
  display: flex;
}

#login_pop .lp_bg {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

#login_pop .lp_box {
  position: relative;
  width: min(36rem, calc(100% - 3.2rem));
  padding: 3.2rem;
  background: var(--white-color);
  border-radius: 0.8rem;
  box-shadow: 0 1.2rem 3.2rem rgba(0, 0, 0, 0.2);
}

#login_pop h2 {
  margin-bottom: 2rem;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
}

#login_pop .lp_close {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 1.6rem;
  right: 1.6rem;
  width: 3.2rem;
  height: 3.2rem;
}

#login_pop .lp_close .icon {
  width: 2rem;
  height: 2rem;
  stroke: var(--text-color-sub);
  stroke-width: 2;
  transition: stroke 0.3s;
}

#login_pop .lp_close:hover .icon {
  stroke: var(--text-color);
}

#login_pop input[type="text"],
#login_pop input[type="password"] {
  width: 100%;
  height: 4.4rem;
  margin-bottom: 0.8rem;
  padding: 0 1.4rem;
  border: 1px solid var(--line-color);
  border-radius: 0.6rem;
  font-size: 1.5rem;
  color: var(--text-color);
}

#login_pop input[type="text"]:focus,
#login_pop input[type="password"]:focus {
  outline: none;
  border-color: var(--point-color);
}

#login_pop .lp_submit {
  width: 100%;
  height: 4.6rem;
  margin-top: 0.4rem;
  background: var(--primary-color);
  border-radius: 0.6rem;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--white-color);
  transition: background 0.3s;
}

#login_pop .lp_submit:hover {
  background: var(--point-color);
}

#login_pop .lp_etc {
  display: flex;
  align-items: center;
  margin-top: 1.4rem;
  font-size: 1.3rem;
  color: var(--text-color-sub);
}

#login_pop .lp_etc .chk {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* ==========================================================================
   Header - 헤더
   ========================================================================== */
#header {
  position: relative;
  z-index: 999;
  background: var(--white-color);
  border-bottom: 1px solid var(--line-color);
}

/* ──────────────────────────────────────────────────────────
   헤더 1층 : [문의전화] - [로고] - [찾아오시는 길]
   좌·우 칸이 같은 폭(flex:1)이라 로고가 정확히 가운데 온다.
   ────────────────────────────────────────────────────────── */
#header .hd_top_wrap {
  display: flex;
  align-items: center;
  gap: 2.4rem;

  /* w_inner 가 좌우 여백을 가지므로 위아래만 지정한다 */
  padding-top: 2.4rem;
  padding-bottom: 2.4rem;
}

#header .hd_top_wrap > .top_left,
#header .hd_top_wrap > .top_right {
  flex: 1 1 0;
  min-width: 0;
}

#header .hd_top_wrap > .top_right {
  text-align: right;
}

#header .hd_top_wrap > h1 {
  flex: 0 0 auto;
}

/* 작은 안내 문구 (○○ 문의전화 / ○○ 찾아오시는 길) */
#header .hd_top_wrap .lb {
  display: block;
  margin-bottom: 0.6rem;

  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--text-color-sub);

  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

#header .top_left .tel,
#header .top_right .addr {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;

  color: var(--primary-color);
  letter-spacing: -0.02em;
  transition: 0.3s;
}

#header .top_left .tel {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
}

#header .top_right .addr {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
}

#header .top_right .addr:hover {
  color: var(--point-color);
}

/* PC 에서는 아이콘 없이 글자만 (아이콘은 모바일 상단 바에서만 쓴다) */
#header .hd_top_wrap .icon {
  display: none;
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  stroke: var(--point-color);
  stroke-width: 2.5;
}

/* ── 로고 ─────────────────────────────────────────────────── */
#header h1 {
  font-size: 3.2rem;
  font-weight: 800;
  white-space: nowrap;
  user-select: none;
}

#header h1 a {
  display: block;
  width: 210px;
  height: 44px;

  background-image: url(../images/logo.svg);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
}

/* ──────────────────────────────────────────────────────────
   헤더 2층 : 메뉴 한 줄
   ────────────────────────────────────────────────────────── */
#header .header_bottom {
  background: var(--white-color);
  border-top: 1px solid var(--line-color);
}

/* 스크롤하면 메뉴 줄만 화면 맨 위에 고정된다 */
#header.scr .header_bottom {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;

  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  border-top: 0;
  border-bottom: 1px solid var(--line-color);
  box-shadow: 0 0.4rem 1.6rem rgba(22, 50, 79, 0.08);
}

/* 메뉴 줄이 빠져나간 만큼 자리를 채워 화면이 튀지 않게 한다 */
#header.scr {
  padding-bottom: 6.1rem;
}

#header .hd_wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

#header .gnb_container {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  justify-content: center;
}

#header .gnb {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

#header .gnb > ul {
  display: flex;
  justify-content: center;
}

#header .gnb > ul > li {
  position: relative;
  padding: 0 2.4rem;
}

/* 항목 사이 세로 구분선 (양쪽 끝에는 두지 않는다) */
#header .gnb > ul > li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);

  width: 1px;
  height: 1.4rem;
  background: var(--line-color);
}

#header .gnb > ul > li > a {
  position: relative;
  display: block;
  line-height: 6rem;

  font-size: 1.7rem;
  font-weight: 500;
  color: var(--text-color);
  white-space: nowrap;
  transition: 0.2s;
}

#header .gnb > ul > li > a:hover {
  color: var(--point-color);
}

/* 현재 보고 있는 섹션 표시 (밑줄) */
#header .gnb > ul > li > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  height: 2px;
  background: var(--point-color);

  transform: scaleX(0);
  transition: 0.3s;
}

#header .gnb > ul > li > a:hover::after,
#header .gnb > ul > li > a.active::after {
  transform: scaleX(1);
}

/* 대표전화 · 주소는 헤더 1층에 있으므로 PC 에서는 감춘다 (모바일 메뉴용) */
#header .adm {
  display: none;
}

#header .gnb > ul > li ul {
  position: absolute;
  top: auto;
  left: 50%;
  z-index: 3;

  transform: translate(calc(-50% + 1.6rem), 16px);
  background: var(--white-color);
  border: 1px solid var(--line-color);
  border-top: 2px solid var(--primary-color);

  overflow: hidden;

  opacity: 0;
  visibility: hidden;

  transition: 0.2s;
}

#header .gnb > ul > li:hover ul {
  transform: translate(calc(-50% + 1.6rem), -8px);

  opacity: 1;
  visibility: visible;
}

#header .gnb > ul > li:focus-within ul {
  transform: translate(calc(-50% + 1.6rem), -8px);

  opacity: 1;
  visibility: visible;
}

#header .gnb > ul > li ul li a {
  display: block;
  padding: 0 4rem 0 2.4rem;
  line-height: 4rem;
  white-space: nowrap;
  color: var(--text-color);
  min-width: 20rem;

  font-size: 1.4rem;

  white-space: nowrap;
}

#header .gnb > ul > li ul li a:hover {
  background: rgba(0, 0, 0, 0.075);
}

#header .gnb > ul > li ul li ~ li a {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   Mobile Menu Button - 모바일 메뉴 버튼
   ========================================================================== */
.mbtn {
  display: none;
}

@media (max-width: 1024px) {
  /* *,
  *::before,
  *::after {
    outline: 1px solid rgba(255, 0, 0, 0.5);
  } */
  /* 상단 바 숨김 : 반응형에서는 계정·게시판 관리 링크를 모두 노출하지 않고,
     이 자리를 비워야 우측 고정 햄버거 버튼이 가려지지 않는다 */
  #top_bar {
    display: none;
  }

  .mbtn {
    display: flex;
    align-items: center;

    position: fixed;
    /* 헤더 1층(로고 줄) 높이 7.2rem 의 세로 가운데 */
    top: 2rem;
    right: 1.6rem;
    /* 메뉴 오버레이(.gnb_container, 1000)와 로고(1001)보다 위에 있어야
       메뉴를 열었을 때 닫기(X) 버튼이 가려지지 않는다 */
    z-index: 1002;

    width: 32px;
    height: 32px;

    background: var(--lightgray-color);
    border: 1px solid var(--line-color);
    border-radius: 4px;
    /* background: rgba(255, 255, 255, 0.25); */
    font-size: 0;
  }

  .mbtn::before {
    content: "";
    position: absolute;
    top: 7px;
    left: 4px;
    right: 4px;

    height: 2px;
    background: var(--text-color);
  }

  .mbtn.on::before {
    display: none;
  }

  .mbtn::after {
    content: "";
    position: absolute;
    bottom: 7px;
    left: 4px;
    right: 4px;

    height: 2px;
    background: var(--text-color);
  }

  .mbtn.on::after {
    display: none;
  }

  .mbtn span::before {
    content: "";
    position: absolute;
    top: 14px;
    left: 4px;
    right: 4px;

    height: 2px;
    background: var(--text-color);
  }

  .mbtn.on span::before {
    transform: rotate(45deg);
  }

  .mbtn span::after {
    content: "";
    position: absolute;
    top: 14px;
    left: 4px;
    right: 4px;

    height: 2px;
    background: var(--text-color);
  }

  .mbtn.on span::after {
    transform: rotate(-45deg);
  }

  #header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: var(--white-color);
  }

  /* 모바일 헤더 1층 : [전화 아이콘] — [로고] — [햄버거] 로 좌우 균형을 맞춘다 */
  #header .hd_top_wrap {
    justify-content: center;
    padding-top: 1.6rem;
    padding-bottom: 1.6rem;
  }

  /* 주소는 메뉴 안(.hd_addr)에 있으므로 상단에서는 감춘다 */
  #header .hd_top_wrap > .top_right {
    display: none;
  }

  /* 전화는 아이콘 버튼만 남겨 햄버거와 같은 줄 · 같은 크기로 맞춘다 */
  #header .hd_top_wrap > .top_left {
    position: fixed;
    top: 2rem;
    left: 1.6rem;
    /* 햄버거(.mbtn)와 같은 층에 둬야 메뉴를 열어도 같이 보인다 */
    z-index: 1002;

    flex: 0 0 auto;
    width: 32px;
    height: 32px;
  }

  #header .top_left .lb,
  #header .top_left .tel .num {
    display: none;
  }

  /* 초록 원 안에 흰 전화 아이콘 */
  #header .top_left .tel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;

    width: 32px;
    height: 32px;

    background: var(--primary-color);
    border-radius: 50%;
  }

  #header .top_left .tel .icon {
    display: block;
    width: 1.6rem;
    height: 1.6rem;
    stroke: var(--white-color);
    stroke-width: 2;
  }

  #header h1 {
    position: relative;
    z-index: 1001;
  }

  #header h1 a {
    width: 170px;
    height: 40px;
  }

  /* 메뉴 줄은 오버레이(.gnb_container)로 바뀌므로 자리를 차지하지 않는다 */
  #header .header_bottom {
    border-top: 0;
  }

  #header .hd_wrap {
    height: 0;
    padding: 0;
  }

  #header.scr {
    padding-bottom: 0;
  }

  #header.scr .header_bottom {
    position: static;
    box-shadow: none;
    border-bottom: 0;
    backdrop-filter: none;
  }

  /* 세로로 쌓이므로 구분선과 좌우 여백을 없앤다 */
  #header .gnb > ul > li {
    padding: 0;
  }

  #header .gnb > ul > li::after,
  #header .gnb > ul > li > a::after {
    display: none;
  }

  /* 모바일에서는 메뉴가 화면 전체를 덮는 오버레이가 된다 (헤더에는 로고만 남음) */
  #header .gnb_container {
    position: fixed;
    top: 0;
    left: -200%;
    z-index: 1000;

    /* 한 줄 헤더용 데스크톱 값(flex:1 / margin-left:auto)을 여기서 되돌린다 */
    flex: 0 0 auto;
    margin-left: 0;

    display: flex;
    flex-direction: column;

    width: 100%;
    height: 100%;
    padding: 0;

    background: rgba(0, 0, 0, 0.75);
  }

  #header .gnb_container.on {
    left: 0;
  }

  /* 흰 메뉴판 : 화면 아래끝까지 꽉 채우고, 내용이 길면 이 안에서 스크롤한다.
     주의: justify-content 는 반드시 flex-start 여야 한다. 데스크톱 값(flex-end)이
     남아 있으면 메뉴 항목이 판 맨 아래로 밀려 화면 밖에 놓인다. */
  #header .gnb {
    flex: 1 1 auto;
    justify-content: flex-start;
    margin-left: 0;

    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 0;

    width: 100%;
    height: 100%;
    /* 위 여백은 헤더 1층(로고 줄, 7.2rem)에 가리지 않을 만큼 준다 */
    padding: 9.6rem 2.4rem 4rem 2.4rem;
    overflow-y: auto;

    background: var(--white-color);
  }

  /* 항목이 적어도 흰 배경이 아래까지 이어지도록 목록은 내용 높이만 차지시킨다 */
  #header .gnb > ul {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;

    border-top: 1px solid var(--primary-color);
  }

  #header .gnb > ul > li > a {
    line-height: 5.6rem;
    border-bottom: 1px solid var(--line-color);
    color: var(--text-color);
    font-weight: 500;
    font-size: 1.8rem;
    padding: 0 0 0 1.6rem;
  }

  #header.on .gnb > ul > li > a {
    line-height: 5.6rem;
    padding: 0 0 0 1.6rem;
    color: var(--text-color);
  }

  #header .gnb > ul > li {
    position: relative;
  }

  #header .gnb > ul > li ul {
    position: static;
    top: 12rem;
    left: 50%;
    z-index: 3;

    transform: translate(0, 0);
    background: var(--white-color);
    border: 0 solid var(--lightgray-color);

    opacity: 1;
    visibility: visible;

    transition: none;

    display: none;
  }

  #header .gnb > ul > li:hover ul {
    transform: translate(0, 0);

    opacity: 1;
    visibility: visible;

    display: none;
  }

  #header .gnb > ul > li:focus-within ul {
    transform: translate(0, 0);

    opacity: 1;
    visibility: visible;

    display: none;
  }

  #header .gnb > ul > li ul li a {
    display: block;
    padding: 0 0 0 1.6rem;
    line-height: 4rem;
    white-space: nowrap;
    color: var(--text-color);
    background: var(--lightgray-color);
  }

  #header .gnb > ul > li ul li ~ li a {
    border-top: 0px solid var(--line-color);
  }

  #header .gnb > ul > li ul li a {
    border-bottom: 1px solid var(--line-color);
  }

  /* 주소 : 모바일 메뉴 맨 위에 카드처럼 놓는다 (order:-1)
     전화 줄은 상단의 초록 원 버튼과 중복이라 두지 않는다 */
  #header .adm {
    order: -1;
    position: relative;
    display: block;

    margin: 0 0 2.4rem 0;
    padding: 2rem;

    background: var(--lightgray-color);
    border: 1px solid var(--line-color);
    color: var(--text-color);
  }

  #header .hd_addr {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;

    font-size: 1.5rem;
    line-height: 1.5;
    color: var(--text-color-sub);
  }

  #header .hd_addr .icon {
    flex: 0 0 auto;
    width: 1.6rem;
    height: 1.6rem;
    margin-top: 0.2rem;
    stroke: var(--point-color);
    stroke-width: 2;
  }
}

/* ==========================================================================
   Sub Content - 서브 콘텐츠 영역
   ========================================================================== */
.sub_content {
  min-height: 60rem;
  margin-top: 8rem;
  margin-bottom: 12rem;
  background: var(--white-color);
}

.sub_content .page_title {
  margin-bottom: 2.4rem;
}

.sub_content .page_title h3 {
  position: relative;
  padding: 1.6rem 0;
  /* border-bottom: 1px solid var(--line-color); */
  white-space: nowrap;

  display: flex;
  align-items: center;
  gap: 8rem;
}

.sub_content .page_title h3::after {
  content: "";

  flex: 1;
  height: 1px;

  background: var(--primary-color);
  opacity: 0.25;
}

.sub_content .page_title h3 strong {
  font-size: 4rem;
  font-weight: 700;
}

@media (max-width: 1440px) {
}

.sub_content .content p {
  font-size: 1.7rem;
  line-height: 2.4rem;
  opacity: 0.9;
}

/* ==========================================================================
   Footer - 푸터
   ========================================================================== */
#footer {
  padding: 0;
  background: var(--white-color);
  color: var(--text-color);
  border-top: 1px solid var(--line-color);
  font-size: 1.5rem;
}

/* ──────────────────────────────────────────────────────────
   1층 : 상담 전 준비하실 것 / 상담·입원 문의 / 진료시간 안내
   ────────────────────────────────────────────────────────── */
#footer .ft_customer .w_inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  padding-top: 8.8rem;
  padding-bottom: 8.8rem;
}

#footer .ft_customer .col {
  padding: 0 4rem;
}

#footer .ft_customer .col:first-child {
  padding-left: 0;
}

#footer .ft_customer .col:last-child {
  padding-right: 0;
}

/* 칸 제목 : 아래 선 + 오른쪽 + 버튼 */
#footer .ft_customer h3 {
  position: relative;
  margin-bottom: 2.4rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--line-color);

  font-size: 2.4rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--primary-color);
}

#footer .ft_customer h3 .more {
  position: absolute;
  right: 0;
  top: -0.2rem;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--line-color);
  border-radius: 50%;
  transition: 0.3s;
}

#footer .ft_customer h3 .more:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

#footer .ft_customer h3 .more:hover .icon {
  stroke: var(--white-color);
}

#footer .ft_customer h3 .more .icon {
  width: 1.4rem;
  height: 1.4rem;
  stroke: var(--primary-color);
  stroke-width: 2;
  transition: 0.3s;
}

/* ── ① 알려드립니다 : 날짜가 붙는 최신글 목록 ─────────────── */
#footer .ft_customer .ft_notice li {
  border-bottom: 1px solid var(--line-color);
}

#footer .ft_customer .ft_notice li:last-child {
  border-bottom: 0;
}

#footer .ft_customer .ft_notice a {
  display: flex;
  align-items: center;
  gap: 0.8rem;

  padding: 1.1rem 0;
  font-size: 1.5rem;
  color: var(--text-color);
  transition: 0.3s;
}

#footer .ft_customer .ft_notice a:hover {
  color: var(--point-color);
}

/* 제목이 길면 한 줄로 자르고, 날짜는 오른쪽 끝에 */
#footer .ft_customer .ft_notice .tit {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

#footer .ft_customer .ft_notice .date {
  flex: 0 0 auto;
  font-size: 1.35rem;
  color: var(--text-color-sub);
  white-space: nowrap;
}

#footer .ft_customer .ft_notice .new_icon {
  flex: 0 0 auto;
  padding: 0 0.6rem;
  border-radius: 0.3rem;

  background: var(--point-color);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.8rem;
  color: var(--white-color);
}

#footer .ft_customer .ft_notice .empty_li {
  padding: 1.1rem 0;
  font-size: 1.5rem;
  color: var(--text-color-sub);
}

/* ── ② 상담 및 입원 문의 : 오른쪽 아래만 크게 둥근 카드 ───── */
#footer .ft_customer .contact {
  padding: 3.2rem 4rem 4.8rem;
  /* 카드 위 패딩만큼 끌어올려 제목이 양옆 칸과 같은 라인에 놓이게 한다 */
  margin-top: -3.2rem;
  /* 오른쪽 아래 모서리만 크게, 나머지는 살짝만 깎는다 */
  border-radius: 0.6rem 0.6rem 5.6rem 0.6rem;
  /* 포인트 오렌지에서 연한 노랑으로 흐르는 그라디에이션
     (글이 놓이는 왼쪽 위는 진하게 두어 흰 글씨를 살린다) */
  background: linear-gradient(135deg, var(--point-color) 30%, #ffcf70 115%);
  color: var(--white-color);
}

#footer .ft_customer .contact h3 {
  border-bottom-color: rgba(255, 255, 255, 0.45);
  color: var(--white-color);
}

/* 원형 + 버튼 : 흰 테두리 */
#footer .ft_customer .contact h3 .more {
  border-color: rgba(255, 255, 255, 0.7);
}

#footer .ft_customer .contact h3 .more .icon {
  stroke: var(--white-color);
}

#footer .ft_customer .contact h3 .more:hover {
  background: var(--white-color);
}

#footer .ft_customer .contact h3 .more:hover .icon {
  stroke: var(--point-color);
}

/* 큰 전화번호 */
#footer .ft_customer .btel {
  display: block;
  margin: 3.2rem 0 2rem;

  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--white-color);
}

#footer .ft_customer .contact .sub {
  font-size: 1.55rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.92);
}

#footer .ft_customer .contact .sub a {
  color: inherit;
}

/* 안내 한 줄 : 반투명 흰 칩 ($mg_hours_note) */
#footer .ft_customer .contact .note {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.9rem 1.4rem;
  border-radius: 0.6rem;

  background: rgba(255, 255, 255, 0.2);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.6;
  color: var(--white-color);
}

/* ── ③ 진료시간 안내 ─────────────────────────────────────── */
#footer .ft_customer .hours .lead {
  margin-bottom: 2.8rem;
  font-size: 1.5rem;
  line-height: 1.75;
  color: var(--text-color-sub);
}

/* 요일과 시간을 양 끝으로 벌린 시간표 (줄 사이 가는 구분선) */
#footer .ft_customer .time li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.6rem;

  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line-color);

  font-size: 1.55rem;
  line-height: 1.6;
}

#footer .ft_customer .time li:last-child {
  border-bottom: 0;
}

#footer .ft_customer .time b {
  font-weight: 600;
  color: var(--text-color-sub);
}

/* 시간 숫자가 세로로 나란히 서도록 고정폭 숫자로 */
#footer .ft_customer .time .tm {
  font-weight: 700;
  color: var(--primary-color);
  font-variant-numeric: tabular-nums;
}

/* 휴진 줄은 포인트 컬러로 강조 */
#footer .ft_customer .time .tm.off {
  color: var(--point-color);
}


/* ──────────────────────────────────────────────────────────
   2층 : 로고 · 링크 · 사업자 정보 (가운데 정렬)
   ────────────────────────────────────────────────────────── */
#footer .ft_bottom {
  padding: 5.6rem 0;
  background: var(--lightgray-color);
  border-top: 1px solid var(--line-color);
  text-align: center;
}

#footer .f_logo img {
  display: block;
  width: 19rem;
  height: auto;
  margin: 0 auto;
}

/* 교통편 : 라벨을 알약으로 붙여 한 줄에 늘어놓는다 */
#footer .ft_way {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem 2.4rem;
  margin-top: 3.2rem;
  padding-top: 3.2rem;
  border-top: 1px solid var(--line-color);
}

#footer .ft_way li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.45rem;
  color: var(--text-color-sub);
}

#footer .ft_way b {
  display: inline-block;
  padding: 0.3rem 1rem;
  border-radius: 3rem;

  background: var(--secondary-color);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-color);
}

#footer .ft_info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 2.4rem;
  margin-top: 2.4rem;
}

#footer .ft_info li {
  position: relative;
  font-size: 1.45rem;
  color: var(--text-color-sub);
}

#footer .ft_info li ~ li::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -1.2rem;
  transform: translateY(-50%);

  width: 1px;
  height: 0.9em;
  background: var(--line-color);
}

#footer .ft_info a {
  color: inherit;
}

#footer address {
  margin-top: 1.6rem;
  font-style: normal;
  font-size: 1.4rem;
  color: var(--text-color-sub);
  opacity: 0.8;
}

/* ── 반응형 ───────────────────────────────────────────────── */
@media (max-width: 1024px) {
  #footer .ft_customer .w_inner {
    grid-template-columns: 1fr;
    gap: 4.8rem;
    padding-top: 5.6rem;
    padding-bottom: 5.6rem;
  }

  #footer .ft_customer .col {
    padding: 0;
  }

  #footer .ft_customer .contact {
    padding: 3.2rem 3.2rem 4rem;
    /* 세로로 쌓이는 화면에서는 끌어올림을 푼다 (위 칸과 겹침 방지) */
    margin-top: 0;
  }
}

@media (max-width: 768px) {
  #footer .ft_bottom {
    padding: 4.8rem 0;
  }

  #footer .f_logo img {
    width: 15rem;
  }

  /* 좁은 화면에서는 세로로 쌓고 가운데 구분선을 지운다 */
  #footer .ft_way,
  #footer .ft_info {
    flex-direction: column;
    gap: 0.6rem;
  }

  #footer .ft_way li {
    justify-content: center;
  }

  #footer .ft_info li ~ li::before {
    display: none;
  }
}

/* ==========================================================================
   Kakao Map - 카카오 지도
   ========================================================================== */
.root_daum_roughmap {
  width: 100% !important;
}

.root_daum_roughmap .cont {
  display: none;
}

.root_daum_roughmap .wrap_controllers {
  display: none;
}

.root_daum_roughmap .border2 {
  display: block !important;
}
@media (max-width: 768px) {
  .root_daum_roughmap .wrap_map {
    height: 240px !important;
  }
}

/* ==========================================================================
   Side Link - 사이드 플로팅 링크
   ========================================================================== */
#side_lnk {
  position: fixed;
  bottom: 4rem;
  right: 1.6rem;
  z-index: 100;

  display: flex;
  flex-direction: column;
  align-items: flex-end;

  opacity: 0;
  visibility: hidden;

  transition: 0.8s;
}

#side_lnk.on {
  right: 1.6rem;
  bottom: 12rem;
  opacity: 1;
  visibility: visible;
}

/* 원형 버튼 세로 스택 (ㅇ ㅇ ㅇ) */
#side_lnk .lnk_wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.2rem;
}

#side_lnk .lnk_wrap > a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 6.4rem;
  height: 6.4rem;
  border-radius: 3.2rem;
  overflow: hidden;
  background: var(--white-color);
  border: 1px solid var(--line-color);
  box-shadow: 0 0 1.6rem rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
}

/* 마우스 호버 시 왼쪽으로 길어짐 */
#side_lnk .lnk_wrap > a:not(.d_tel):hover {
  width: 18rem;
  border-color: var(--primary-color);
}

/* 아이콘: 오른쪽 원 영역(6.4rem)에 고정 */
#side_lnk .lnk_wrap > a .icon {
  position: absolute;
  top: 50%;
  right: 1.9rem;
  transform: translateY(-50%);
  width: 2.4rem;
  height: 2.4rem;
  stroke: var(--text-color);
  stroke-width: 1;
}

/* 텍스트: 평소 폭 0, 호버 시 드러남 */
#side_lnk .lnk_wrap > a span {
  width: 0;
  margin-left: 2.4rem;
  overflow: hidden;
  white-space: nowrap;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-color);
  transition: all 0.3s;
}

#side_lnk .lnk_wrap > a:not(.d_tel):hover span {
  width: 10rem;
}

/* 카카오톡 상담 */
#side_lnk .lnk_wrap > a.d_kakao {
  background: #fee500;
  border-color: #fee500;
}

#side_lnk .lnk_wrap > a.d_kakao img {
  position: absolute;
  top: 50%;
  right: 1.6rem;
  transform: translateY(-50%);
  width: 3.2rem;
}

#side_lnk .lnk_wrap > a.d_kakao span {
  color: #3c1e1e;
}

#side_lnk .d_btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 6.4rem;
  height: 6.4rem;
  background: var(--primary-color);
  border-radius: 50%;
  box-shadow: 0 0 1.6rem rgba(0, 0, 0, 0.1);
}

#side_lnk .d_btn .icon {
  width: 3.2rem;
  height: 3.2rem;
  stroke: var(--white-color);
  stroke-width: 2;
}

#side_lnk .lnk_wrap > a.d_tel {
  position: relative;
  background: var(--point-color);
  border-color: var(--point-color);

  display: none;
}

#side_lnk .lnk_wrap > a.d_tel .icon {
  width: 2.4rem;
  height: 2.4rem;
  stroke: var(--white-color);
  stroke-width: 2;
}

@media (max-width: 768px) {
  #side_lnk .d_btn {
    position: static;
    transform: translate(0, 0);
  }
  #side_lnk .lnk_wrap {
    background: transparent;
    border-radius: 0.8em;
    border: 1px solid transparent;
    /* box-shadow: 0 0 1.6rem rgba(0, 0, 0, 0.1); */
    padding: 0 0;
    margin-bottom: 0;
  }
  #side_lnk .lnk_wrap > a:not(.d_tel):not(.d_kakao) {
    display: none;
  }

  #side_lnk .lnk_wrap > a.d_tel {
    display: flex;
  }
}

@media (max-width: 768px) {
  #side_lnk.on {
    bottom: 4rem;
  }
}

.s_lnk img {
  padding: 0.8rem;
  width: 2.8rem;
  height: auto;
  background: var(--primary-color);
  box-sizing: content-box;
  border-radius: 0.8rem;
}

.s_lnk {
  margin-bottom: 3.2rem;
}

#sns_link {
  margin-bottom: 4rem;
}

@media (max-width: 768px) {
  #sns_link {
    text-align: left;
  }
}

#sns_link a {
  display: inline-flex;
  justify-content: center;
  align-items: center;

  margin-right: 4px;

  width: 4.8rem;
  height: 4.8rem;

  border-radius: 50%;

  background: var(--background-color);
  color: var(--primary-color);

  font-size: 1.8rem;

  border: 1px solid rgba(0, 0, 0, 0.1);
}

#sns_link a img {
  filter: invert(1);
}

#sns_link a:hover {
  background: var(--primary-color);
}

#sns_link a:hover img {
  filter: invert(0);
}

/* ==========================================================================
   To Top Button - 상단 이동 버튼
   ========================================================================== */
.to_top {
  position: fixed;
  left: 50%;
  bottom: 18rem;
  z-index: 998;

  transform: translate(-50%, 0);

  max-width: calc(1610px + 160px);
  width: 100%;

  opacity: 0;
  visibility: hidden;

  transition: 0.5s;
}

.to_top button {
  position: absolute;
  right: 0;
  width: 4rem;
  height: 4rem;

  background: var(--point-color);

  border-radius: 50%;
}

.to_top button svg {
  margin-top: 2px;
}

.to_top.on {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 768px) {
  .to_top {
    position: fixed;
    left: auto;
    right: -1.6rem;
    bottom: 14rem;

    width: auto;
  }

  .to_top.on {
    right: 1.6rem;
  }
}
