@charset "utf-8";
/* 하단 공통 — 오시는 길(inc/one-footer-top.inc.php) · 푸터(tail.php) · 하단 고정 상담 바(inc/one-csl-bar.inc.php)
 * 시안: design/main/common_btm — 1920 기준 PC
 *
 * 지역 토큰 — 컬러칩 밖 색과 이 영역 전용 값입니다. 시안에 맞출 때 여기만 고칩니다.
 * 모달(.one-foot-modal)은 푸터 밖에 그려지므로 셀렉터에 함께 둡니다. */
#one-foot,
.one-loc,
.one-csl,
.one-csl-space,
.one-foot-modal,
#top_btn {
  --one-ft-dark   : #272624;   /* 모달 제목 */
  --one-ft-dark-2 : #3a3836;   /* 모달 본문 링크 */
  --one-ft-soft-bg: #f7f6f5;   /* 모달 안내 블록 배경 */
  --one-ft-naver  : #03c75a;   /* [미해결] 브랜드색 — 네이버 예약·블로그 버튼 테두리 */
  --one-ft-fb     : #364abb;   /* [미해결] 브랜드색 — 페이스북 */
  --one-ft-insta  : #cc2dab;   /* [미해결] 브랜드색 — 인스타그램 */
  --one-csl-h     : 192px;     /* 하단 고정 상담 바 높이 */
}


/* ============================
   오시는 길
============================ */

.one-loc .one-loc-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 805px;
  column-gap: var(--one-space-s);
  padding: var(--one-space-xl) 0;
}

.one-loc .txt-wrap p {
  word-break: inherit;   /* default.css 의 p { break-all } 되돌림 */
}

.one-loc-addr {
  margin-top: var(--one-space-s);
}

.one-loc-park {
  display: flex;
  align-items: flex-start;
  gap: var(--one-gap-lg);
  margin-top: var(--one-gap-xl);
}

.one-loc-badge {
  flex-shrink: 0;
  padding: 2px var(--one-gap-lg);
  background: var(--main-color);
  color: var(--white-color);
}

.one-loc-note {
  margin-top: var(--one-gap-sm);
  color: var(--gray-color01);
}

.one-loc-hours {
  margin-top: var(--one-space-s);
}

.one-loc-row {
  display: flex;
  align-items: center;
}

.one-loc-row dt {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  width: 170px;
}

/* 요일 글자 사이 양끝 정렬 (출력 시 글자 사이에 공백) */
.one-loc-day {
  display: inline-block;
  width: 124px;
  text-align: justify;
  text-align-last: justify;
}

.one-loc-tag {
  margin-left: 2px;
  padding: 0 3px;
  background: var(--main-color);
  font-size: var(--one-caption);
  line-height: 1.4;
  color: var(--white-color);
}

.one-loc-row dd strong {
  color: var(--main-color);
}

.one-loc .one-loc-tel {
  display: inline-flex;
  align-items: center;
  gap: var(--one-gap-r);
  margin-top: var(--one-space-s);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--main-color);
}

.one-loc-tel .fa {
  font-size: 0.8em;
}

.one-loc-side {
  display: flex;
  flex-direction: column;
  gap: var(--one-space-s);
}

/* 지도 — 카카오 약도 키가 없으면 빈 상자 */
.one-loc-map {
  height: 540px;
  border-radius: 40px;
  overflow: hidden;
  background: var(--sub-color01);
}

.one-loc-map .root_daum_roughmap {
  width: 100% !important;
}

.one-loc .wrap_controllers {
  display: none !important;
}

.one-loc-links {
  display: flex;
  justify-content: space-between;
  gap: var(--one-gap-sm);
}

.one-loc-link {
  display: inline-flex;
  align-items: center;
  gap: var(--one-gap-sm);
  height: 38px;
  padding: 0 var(--one-gap-r);
  border: 1px solid var(--main-color);
  border-radius: 19px;
  background: var(--white-color);
  font-size: var(--one-body);
  white-space: nowrap;
  color: var(--one-txt-color);
}

/* section img { width: 100% } 를 아이콘 크기로 되돌립니다 */
.one-loc .one-loc-link img {
  width: 26px;
  height: auto;
}

.one-loc-link[data-link="nbooking"],
.one-loc-link[data-link="nblog"] { border-color: var(--one-ft-naver); }
.one-loc-link[data-link="facebook"]  { border-color: var(--one-ft-fb); }
.one-loc-link[data-link="instagram"] { border-color: var(--one-ft-insta); }


/* ============================
   푸터
============================ */

#one-foot {
  background: var(--sub-color04);
  color: var(--white-color);
}

#one-foot .one-foot-inner {
  display: grid;
  grid-template-columns: 512px minmax(0, 1fr) auto;
  align-items: center;
}

.one-foot-logo a {
  display: inline-block;
}

.one-foot-logo img {
  display: block;
  width: auto;
  max-height: 66px;
}

/* 로고 이미지가 없을 때의 워드마크 */
.one-foot-logo .one-logo-txt {
  font-size: var(--one-p-tit);
  font-weight: 700;
  color: var(--white-color);
}

.one-foot-links {
  display: flex;
  gap: 20px;
  margin-bottom: var(--one-gap-xl);
}

.one-foot-links a {
  font-size: var(--one-caption);
  color: var(--white-color);
}

.one-foot-line {
  font-size: var(--one-caption);
  line-height: 1.75;
  word-break: keep-all;
  color: var(--white-color);
}

.one-foot-item {
  margin-right: var(--one-gap-sm);
}

.one-foot-copy {
  margin-top: var(--one-gap-r);
  font-size: var(--one-m-copy);
  color: var(--gray-color03);
}

.one-foot-sns {
  display: flex;
  gap: 22px;
  align-self: start;
}

/* 오시는 길 버튼과 같은 아이콘을 흰색으로 */
.one-foot-sns img {
  display: block;
  width: 34px;
  height: 34px;
  filter: brightness(0) invert(1);
}


/* ============================
   하단 고정 상담 바
============================ */

.one-csl-space {
  height: var(--one-csl-h);
}

.one-csl {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--one-z-quick);
  display: flex;
  align-items: center;
  height: var(--one-csl-h);
  background-color: var(--main-color);
}

.one-csl-form {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--one-gap-xl);
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 var(--one-space-safe);
}

.one-csl-txt {
  margin-bottom: 14px;
  font-size: var(--one-p-tit);
  word-break: keep-all;
  color: var(--white-color);
}

.one-csl-group {
  display: flex;
  gap: var(--one-gap-sm);
}

.one-csl-input {
  height: 49px;
  padding: 0 var(--one-gap-r);
  border: 0;
  border-radius: 4px;
  background: var(--white-color);
  font: inherit;
  font-size: var(--one-body);
  color: var(--one-txt-color);
}

input.one-csl-input:nth-of-type(1) { width: 160px; }
select.one-csl-input               { width: 182px; }
input.one-csl-input:nth-of-type(2) { width: 277px; }

.one-csl-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.one-csl-agree {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--one-body);
  color: var(--white-color);
}

.one-csl-agree input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--main-color);
}

.one-csl-btn {
  width: 224px;
  height: 49px;
  border: 0;
  border-radius: 4px;
  background: var(--white-color);
  font-size: var(--one-p-tit);
  font-weight: 700;
  color: var(--main-color);
}


/* ============================
   상단 이동 버튼 — 기본 숨김, 스크롤 시에만 표시 (tail.php 가 .one-top-btn-visible 토글)
============================ */

#top_btn {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#top_btn.one-top-btn-visible {
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* PC: 하단 고정 상담 바 위로 */
@media all and (min-width: 1025px) {
  #top_btn {
    bottom: calc(var(--one-csl-h) + 20px);
  }
}


/* ============================
   반응형 — 태블릿 (max-width: 1024px)
   [미해결] 모바일 시안 전 — 세로로 쌓기만 합니다
============================ */

@media all and (max-width: 1024px) {
  .one-loc .one-loc-inner {
    grid-template-columns: 1fr;
    row-gap: var(--one-space-s);
  }

  .one-loc-map { height: 360px; border-radius: 20px; }

  .one-loc-links { flex-wrap: wrap; justify-content: flex-start; }

  #one-foot .one-foot-inner {
    grid-template-columns: 1fr;
    row-gap: var(--one-gap-xl);
  }

  /* [미해결] 하단 고정 상담 바 — 모바일 시안 전이라 임시로 숨깁니다 */
  .one-csl,
  .one-csl-space { display: none; }
}

@media screen and (max-width: 768px) {
  /* 모바일 퀵메뉴(하단 고정)에 가리지 않도록 */
  #one-foot { margin-bottom: 80px; }
}


/* ============================
   푸터 정책 모달 — 화면 가로·세로 60%
============================ */

.one-foot-modal {
  position: fixed;
  inset: 0;
  z-index: 100100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.one-foot-modal.is-open {
  display: flex;
}

.one-foot-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.one-foot-modal-dialog {
  position: relative;
  z-index: 1;
  width: 60vw;
  height: 60vh;
  max-width: none;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
}

.one-foot-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.08);
  cursor: pointer;
}

.one-foot-modal-close::before,
.one-foot-modal-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 2px;
  background: #333;
  transform-origin: center;
}

.one-foot-modal-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.one-foot-modal-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.one-foot-modal-close:hover {
  background: rgba(0, 0, 0, 0.14);
}

.one-foot-modal-header {
  flex-shrink: 0;
  padding: 22px 56px 16px 24px;
  border-bottom: 1px solid #e8e8e8;
}

.one-foot-modal-title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--one-ft-dark);
  letter-spacing: -0.03em;
}

.one-foot-modal-body {
  flex: 1;
  min-height: 0;
  padding: 20px 24px 24px;
  overflow-y: auto;
  font-size: 15px;
  line-height: 1.65;
  color: #444;
}

html.one-foot-modal-open,
html.one-foot-modal-open body {
  overflow: hidden;
}

@media screen and (max-width: 768px) {
  .one-foot-modal {
    padding: 12px;
  }

  .one-foot-modal-dialog {
    width: 85vw;
    height: 85vh;
  }

  .one-foot-modal-header {
    padding: 18px 48px 14px 18px;
  }

  .one-foot-modal-title {
    font-size: 17px;
  }

  .one-foot-modal-body {
    padding: 16px 18px 20px;
    font-size: 14px;
  }
}

/* 푸터 모달 본문 (이용약관·개인정보처리방침·환자권리) */
.one-foot-legal {
  color: #444;
}

.one-foot-legal-intro {
  margin: 0 0 1.25em;
  padding: 12px 14px;
  background: var(--one-ft-soft-bg);
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.65;
  color: #555;
}

.one-foot-legal h3 {
  margin: 1.5em 0 0.6em;
  font-size: 16px;
  font-weight: 600;
  color: var(--one-ft-dark);
  letter-spacing: -0.03em;
}

.one-foot-legal h3:first-of-type {
  margin-top: 0;
}

.one-foot-legal h4 {
  margin: 1em 0 0.45em;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.one-foot-legal p {
  margin: 0 0 0.85em;
  font-size: 14px;
  line-height: 1.7;
}

.one-foot-legal ol,
.one-foot-legal ul {
  margin: 0 0 0.85em;
  padding-left: 1.35em;
  font-size: 14px;
  line-height: 1.7;
}

.one-foot-legal li {
  margin-bottom: 0.35em;
}

.one-foot-legal li ul {
  margin-top: 0.35em;
  margin-bottom: 0;
}

.one-foot-legal-contact {
  margin-top: 1.5em;
  padding: 14px 16px;
  background: #fafafa;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
}

.one-foot-legal-contact h3 {
  margin-top: 0;
  font-size: 15px;
}

.one-foot-legal-contact ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.one-foot-legal-contact li {
  margin-bottom: 0.4em;
  font-size: 14px;
  line-height: 1.6;
}

.one-foot-legal-contact a {
  color: var(--one-ft-dark-2);
  text-decoration: underline;
}

.one-foot-legal-contact a:hover {
  color: #000;
}

.one-foot-legal-preparing {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  padding: 32px 20px;
  text-align: center;
}

.one-foot-legal-preparing-msg {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 600;
  color: var(--one-ft-dark);
  letter-spacing: -0.03em;
}

.one-foot-legal-preparing-sub {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #666;
}
