@charset "utf-8";
/* dasion - 푸터 시안 (연세다시온치과) */

/* 상단 이동 버튼: 기본 숨김, 스크롤 시에만 표시 (tail.php에서 .ds-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.ds-top-btn-visible {
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

#ds-foot {
  background-color: #d6ccc3 !important;
  padding: 60px 40px;
}

/* 전역 p { color: #666 !important; }(ds-header.css) 충돌 방지 - 푸터는 시안 색상 유지 */
#ds-foot p {
  color: #78624d !important;
}

.ds-foot-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
}

.ds-foot-logo {
  flex-shrink: 0;
  min-width: 340px;
}

.ds-foot-logo a {
  display: block;
  text-decoration: none;
}

.ds-foot-logo img {
  max-height: 66px;
  width: auto;
  display: block;
  object-fit: contain;
}

.ds-foot-info {
  flex: 1;
  min-width: 280px;
}

@media (min-width: 1200px) {
  .ds-foot-info {
    min-width: 860px;
  }
}

/* 1행: 상호·사업자번호·대표자·대표번호 한 줄, 2행: 주소, 3행: Copyright */
.ds-foot-line.ds-foot-row-one {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 24px;
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.65;
  color: #78624d;
  font-weight: 400;
}

.ds-foot-line.ds-foot-row-one .ds-foot-item {
  white-space: nowrap;
}

/*
.ds-foot-line.ds-foot-row-one .ds-foot-item+.ds-foot-item::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 12px;
  margin-right: 24px;
  background-color: rgba(120, 98, 77, 0.4);
  vertical-align: middle;
}
*/

.ds-foot-info .ds-foot-address {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.65;
  color: #78624d;
  font-weight: 400;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.ds-foot-info .ds-foot-copy {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #78624d;
  font-weight: 400;
}

/* 주소 줄바꿈: PC에서는 숨김, 모바일에서만 표시 */
.ds-foot-address-br {
  display: none;
}

/* 1행 줄바꿈(상호·사업자번호 / 대표자·대표번호): PC에서는 숨김, 모바일에서만 표시 */
.ds-foot-row-one-br {
  display: none;
  width: 100%;
  height: 0;
  overflow: hidden;
}

/* 비급여 수가표 버튼 (우측) */
.ds-foot-btn-wrap {
  flex-shrink: 0;
}

.ds-foot-btn-price {
  display: inline-block;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  color: #78634f;
  background-color: transparent;
  border: 1px solid #78634f;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.ds-foot-btn-price:hover {
  background-color: #78634f;
  color: #fff;
  text-decoration: none;
}

@media screen and (max-width: 768px) {
  #ds-foot {
    padding: 50px 24px;
    margin-bottom: 80px;
  }

  #ds-foot p {
    font-size: 12px !important;
  }

  .ds-foot-inner {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  /* 모바일 순서: 1 로고 → 2 비급여 수가표 → 3 상호·주소·copyright */
  .ds-foot-logo {
    order: 1;
    width: 100%;
    min-width: 0;
    display: flex;
    justify-content: center;
  }

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

  .ds-foot-btn-wrap {
    order: 2;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .ds-foot-btn-price {
    display: block;
    width: 40%;
    text-align: center;
    margin: 0 auto;
    padding: 8px 16px;
    font-size: 13px;
  }

  .ds-foot-info {
    order: 3;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    text-align: center;
  }

  .ds-foot-logo img {
    max-height: 60px;
  }

  .ds-foot-line.ds-foot-row-one .ds-foot-item {
    white-space: normal;
  }

  .ds-foot-line.ds-foot-row-one {
    gap: 4px 10px;
    font-size: 12px;
    justify-content: center;
  }

  /* 모바일: 상호·사업자번호·대표자·대표번호 사이 구분선 숨김 */
  .ds-foot-line.ds-foot-row-one .ds-foot-item+.ds-foot-item::before {
    display: none;
  }

  .ds-foot-info .ds-foot-address {
    font-size: 12px;
    line-height: 1.5;
  }

  .ds-foot-address-br {
    display: block;
  }

  /* flex 컨테이너 내 강제 줄바꿈: 100% 폭으로 다음 항목을 다음 줄로 */
  .ds-foot-row-one-br {
    display: block;
    width: 100%;
    height: 0;
    flex-basis: 100%;
    overflow: hidden;
  }

  .ds-foot-info .ds-foot-copy {
    font-size: 12px;
  }
}