@charset "utf-8";
/* ============================================================
   본문(구 사이트 마크업) 위에 얹는 타이포·색 레이어
   - 배치는 legacy-layout.css 가 담당
   - 여기서는 서체·크기·색·괘선만 통일한다 (어수선함의 원인 제거)
   ============================================================ */

.m-legacy {
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink);
}

/* 구 사이트의 폭 컨테이너를 무력화 — 폭은 .m-wrap 이 잡는다 */
.m-legacy .container,
.m-legacy .sub-page-wrap,
.m-legacy .contentWrapper,
.m-legacy section,
.m-legacy .page-cont {
  width: auto !important;
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.m-legacy .contentWrapper { padding-top: 0 !important; }

/* 서브 페이지가 자체 제목을 갖고 있으면 감춘다 — 페이지 머리글이 이미 있다 */
.m-legacy .page-tit,
.m-legacy .sub-tit-wrap,
.m-legacy .link-list,
.m-legacy .sub_visual { display: none !important; }

/* ---------- 제목 ---------- */
.m-legacy h2, .m-legacy h3 {
  font-family: var(--serif); font-weight: 700; letter-spacing: -.02em;
  color: var(--ink); margin: 2.4em 0 .7em; line-height: 1.4;
}
.m-legacy h2 { font-size: clamp(23px, 2.4vw, 29px); }
.m-legacy h3 { font-size: clamp(20px, 2vw, 24px); }
.m-legacy h4 {
  font-family: var(--serif); font-size: clamp(18.5px, 1.8vw, 22px); font-weight: 700;
  color: var(--ink); letter-spacing: -.015em; margin: 2.2em 0 .6em; line-height: 1.45;
}
.m-legacy h5, .m-legacy h6 {
  font-size: 17.5px; font-weight: 700; color: var(--ink); margin: 1.8em 0 .5em;
}
.m-legacy > *:first-child, .m-legacy > * > *:first-child { margin-top: 0; }

/* 큰 소제목: 초록 동그라미 + 제목 (구 .CareInfoWrapper 패턴) */
.m-legacy .CareInfoWrapper {
  display: flex; align-items: center; gap: 10px;
  margin: 2.6em 0 1.1em; padding-bottom: 12px; border-bottom: 2px solid var(--ink);
}
.m-legacy .CareInfoWrapper .careCircle {
  width: 12px; height: 12px; border-radius: 50%; background: var(--brand); flex: none;
}
.m-legacy .CareInfoWrapper .careInfoText,
.m-legacy .CareInfoWrapper h4 { margin: 0 !important; font-size: clamp(19px, 1.9vw, 23px); }

/* 구 사이트 색 클래스 → 초록 하나로 통일 (색 6계열이 어수선함의 1번 원인) */
.m-legacy .green, .m-legacy .blue, .m-legacy .pink, .m-legacy .orange,
.m-legacy .purple, .m-legacy .red, .m-legacy .color_d, .m-legacy .point {
  color: var(--brand-ink);
}
.m-legacy .careCircle.green, .m-legacy .careCircle.blue,
.m-legacy .careCircle.pink, .m-legacy .careCircle.orange { background: var(--brand); color: transparent; }
.m-legacy .grey, .m-legacy .gray { color: var(--ink-3); }

/* ---------- 문단·목록 ---------- */
.m-legacy p { margin: 0 0 1.05em; color: var(--ink-2); }
.m-legacy p:last-child { margin-bottom: 0; }
.m-legacy .txt, .m-legacy .txt01, .m-legacy .txt02, .m-legacy .cont, .m-legacy .desc { color: var(--ink-2); }
.m-legacy strong, .m-legacy b { font-weight: 700; color: var(--ink); }
.m-legacy a:not([class]) { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 3px; }

.m-legacy ul li, .m-legacy ol li { color: var(--ink-2); }
.m-legacy .dot-list > li,
.m-legacy .list-type-round > li,
.m-legacy .health_li > li {
  position: relative; padding-left: 16px; margin-bottom: .45em;
}
.m-legacy .dot-list > li::before,
.m-legacy .list-type-round > li::before,
.m-legacy .health_li > li::before {
  content: ""; position: absolute; left: 0; top: .72em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--lime);
}
.m-legacy dl { margin: 0 0 1em; }
.m-legacy dt { font-weight: 700; color: var(--ink); }
.m-legacy dd { margin: 0 0 .5em; color: var(--ink-2); }

/* ---------- 표 ---------- */
.m-legacy .table-responsive { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.4em 0; }
.m-legacy table {
  width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.65;
  background: var(--surface); border-top: 2px solid var(--ink);
}
.m-legacy table th, .m-legacy table td {
  padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle;
  color: var(--ink-2);
}
.m-legacy table thead th {
  background: var(--surface-2); color: var(--ink); font-weight: 700; font-size: 15px;
  letter-spacing: .01em; border-bottom: 1px solid var(--line-2); white-space: nowrap;
}
.m-legacy table tbody th { color: var(--ink); font-weight: 700; background: var(--paper); }
.m-legacy table td span { color: var(--ink-3); font-size: 14.5px; }
.m-legacy table td b, .m-legacy table td strong { color: var(--ink); }

/* div 로 짠 구 사이트 표 (의사 일정 등) */
.m-legacy .table-container { border-top: 2px solid var(--ink); }
.m-legacy .tableHead {
  background: var(--surface-2); font-size: 15px; font-weight: 700; color: var(--ink);
  border-bottom: 1px solid var(--line-2);
}
.m-legacy .tableHead .first, .m-legacy .tableHead .another { text-align: center; }
.m-legacy .tableBody, .m-legacy .tableBody2 {
  border-bottom: 1px solid var(--line); font-size: 15.5px; background: var(--surface);
}
.m-legacy .tableBody .first, .m-legacy .tableBody2 .first { color: var(--ink); font-weight: 600; text-align: center; }
.m-legacy .tableBody .first span, .m-legacy .tableBody2 .first span { color: var(--ink-3); font-size: 13.5px; }
.m-legacy .tableBody .another { color: var(--ink-2); text-align: center; }

/* 진료/휴진 표시 — 색만으로 구분하지 않는다(글자가 이미 있다) */
.m-legacy .yesClinic, .m-legacy .vClinic, .m-legacy .centerClinic, .m-legacy .hospitalClinic {
  display: inline-block; border-radius: 3px; font-size: 13.5px; font-weight: 700; line-height: 1.6;
  padding: 2px 9px; background: var(--brand-wash); color: var(--brand-ink); border: 1px solid #cfe6d5;
}
.m-legacy .hospitalClinic { background: var(--clay-wash); color: var(--clay); border-color: #e6d9c8; }
.m-legacy .closedClinic {
  display: inline-block; border-radius: 3px; font-size: 13.5px; font-weight: 600; line-height: 1.6;
  padding: 2px 9px; background: var(--surface-2); color: var(--ink-3); border: 1px solid var(--line);
}
.m-legacy .typeLabel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.m-legacy .typeLabelText { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.m-legacy .typeLabelText.blue, .m-legacy .typeLabelText.green { color: var(--brand-ink); }
.m-legacy .typeLabelText.orange { color: var(--clay); }
.m-legacy .typeLabelText.grey { color: var(--ink-3); }
.m-legacy .label__box {
  background: var(--brand-wash); border: 1px solid #cfe6d5; border-radius: var(--radius);
  padding: 12px 16px; margin: 1em 0; font-size: 15.5px; color: var(--brand-ink); font-weight: 600;
}
.m-legacy .label__box p { color: inherit; margin: 0; }

/* 의사 소개 — 사진 파일이 자료에 없다. 사진칸을 지우고 이름/일정만 보인다 */
.m-legacy .DrImgWrap { display: none !important; }
.m-legacy .DrTableWrapper {
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface);
  padding: 4px 20px 20px; margin-bottom: 26px; overflow: hidden;
}
.m-legacy .DrTitle { border-bottom: 1px solid var(--line); padding: 18px 0 !important; }
.m-legacy .DrName { font-family: var(--serif); font-size: 21px; font-weight: 700; color: var(--ink); }
.m-legacy .DrTitle span { font-size: 14.5px; color: var(--ink-3); }
.m-legacy .DrRecordWrap { padding-top: 14px; }
.m-legacy .RecordList { font-size: 15.5px; color: var(--ink-2); position: relative; padding-left: 14px; }
.m-legacy .RecordList::before {
  content: ""; position: absolute; left: 0; top: .78em; width: 5px; height: 5px;
  border-radius: 50%; background: var(--line-2);
}

/* ---------- 연혁 ---------- */
.m-legacy .hi_wrap { position: relative; padding-left: 26px; }
.m-legacy .hi_wrap::before {
  content: ""; position: absolute; left: 5px; top: 12px; bottom: 6px; width: 2px; background: var(--line);
}
.m-legacy .historyTitle { position: relative; margin: 0 0 10px; }
.m-legacy .historyTitle::before {
  content: ""; position: absolute; left: -26px; top: 10px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--brand); border: 3px solid var(--paper); box-sizing: content-box;
}
.m-legacy .historyTitleYear {
  font-family: var(--serif); font-size: clamp(22px, 2.2vw, 28px); font-weight: 700;
  color: var(--brand-ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums;
}
.m-legacy .historyTitleText { font-size: 16px; color: var(--ink-3); }
.m-legacy .historyUl { margin: 0 0 34px; }
.m-legacy .historyUl li { position: relative; padding-left: 14px; margin-bottom: .35em; color: var(--ink-2); font-size: 16px; }
.m-legacy .historyUl li::before {
  content: ""; position: absolute; left: 0; top: .78em; width: 5px; height: 5px; border-radius: 50%; background: var(--line-2);
}

/* ---------- 이사장 인사말 ---------- */
.m-legacy .greeting_img { float: right; margin: 0 0 20px 28px; max-width: 320px; }
.m-legacy .greeting_img img { border-radius: var(--radius-lg); }
.m-legacy .greeting_txt > ul > li { margin-bottom: 1.05em; color: var(--ink-2); }
.m-legacy .greeting_txt > ul > li:first-child { font-size: 19px; font-weight: 600; color: var(--ink); }
.m-legacy .greeting_sign { clear: both; text-align: right; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); }
.m-legacy .greeting_sign .date { font-size: 15px; color: var(--ink-3); }
.m-legacy .greeting_sign p { margin: 4px 0 2px; color: var(--ink-2); font-size: 15.5px; }
.m-legacy .greeting_sign b { font-family: var(--serif); font-size: 24px; color: var(--ink); }
.m-legacy .greeting_box {
  margin-top: 44px; background: var(--brand-wash); border: 1px solid #cfe6d5;
  border-radius: var(--radius-lg); padding: clamp(26px, 3.5vw, 44px); text-align: center;
}
.m-legacy .greeting_tit {
  font-family: var(--serif); font-size: clamp(19px, 2.3vw, 27px); font-weight: 700;
  color: var(--ink); line-height: 1.65; letter-spacing: -.02em;
}
.m-legacy .greeting_green { color: var(--brand-ink); }
@media (max-width: 700px) {
  .m-legacy .greeting_img { float: none; margin: 0 auto 24px; max-width: 100%; }
}

/* ---------- 아이콘 격자 ---------- */
.m-legacy .icon-box {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 20px 14px; text-align: center;
}
.m-legacy .icon-box .icon img { margin: 0 auto; max-height: 72px; width: auto; }
.m-legacy .icon-name, .m-legacy .img-label {
  margin-top: 10px; font-size: 15.5px; font-weight: 700; color: var(--ink); line-height: 1.5;
}
.m-legacy .care-tit-list-box, .m-legacy .img-box { text-align: center; }
.m-legacy .img-box img { margin: 0 auto; border-radius: var(--radius); }

/* 구 사이트 로고 상자 — 틀을 통일해 준다 */
.m-legacy .care-logo-box {
  display: flex; align-items: center; justify-content: center;
  height: 84px; padding: 12px 18px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.m-legacy .care-logo-box img { max-height: 100%; width: auto; object-fit: contain; }
.m-legacy .care-tit-cont { display: grid; gap: 22px; margin-bottom: 8px; }
@media (min-width: 820px) { .m-legacy .care-tit-cont { grid-template-columns: 260px 1fr; align-items: start; gap: 34px; } }
.m-legacy .care-tit-cont .tit {
  font-family: var(--serif); font-size: clamp(20px, 2.2vw, 27px); font-weight: 700;
  color: var(--ink); line-height: 1.5; letter-spacing: -.02em; margin: 0 0 .5em;
}
.m-legacy .care-tit-cont .tit span { color: var(--brand-ink); }
.m-legacy .care-tit-cont .txt01 { font-size: 17.5px; font-weight: 600; color: var(--ink); }
.m-legacy .care-tit-cont .txt02 { font-size: 16.5px; color: var(--ink-2); }

/* ---------- 이미지 ---------- */
.m-legacy img { border-radius: 3px; }
.m-legacy .ListWrapperImgHalf img,
.m-legacy .contentWidgetWrapper img { border-radius: var(--radius); }

/* ---------- 잡동사니 정리 ---------- */
.m-legacy .mt-10 { margin-top: 10px; }
.m-legacy .mt-20 { margin-top: 20px; }
.m-legacy .mt-30 { margin-top: 30px; }
.m-legacy .space { height: 24px; }
.m-legacy .law-list-tit { font-weight: 700; color: var(--ink); margin-top: 1.4em; }
.m-legacy .number {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 26px; height: 26px; border-radius: 50%; background: var(--brand-ink); color: #fff;
  font-size: 14px; font-weight: 700; margin-right: 8px;
}
.m-legacy .min-time-wrap, .m-legacy .tab-min-time { display: none !important; } /* 표와 내용이 겹친다 */
.m-legacy .diagnosis-bottom-txt { margin-top: 14px; font-size: 15px; color: var(--ink-3); }

/* 모바일 글자 하한 */
@media (max-width: 768px) {
  .m-legacy { font-size: 16.5px; }
  .m-legacy table { font-size: 15.5px; }
  .m-legacy table th, .m-legacy table td { padding: 11px 10px; }
}

/* ---------- 구 사이트 float 잔재 정리 ---------- */
.m-legacy .clearfix::after,
.m-legacy .care-tit-cont::after,
.m-legacy .page-cont::after { content: ""; display: table; clear: both; }

.m-legacy .care-tit-cont > .left,
.m-legacy .care-tit-cont > .right { float: none !important; width: auto !important; }
.m-legacy .care-logo-box { max-width: min(260px, 100%); }

/* 단독으로 쓰인 소제목(h4.careInfoText)이 뜬 요소 옆에서 눌리지 않게 */
.m-legacy .careInfoText { display: block; width: auto; clear: both; }
.m-legacy .page-cont { clear: both; }
.m-legacy .page-left-pd { padding-left: 0; }

/* 짝 목록(제목 + 설명) — 가운데 흩어지지 않게 카드 줄로 */
.m-legacy .care-tit-list02 { display: grid; gap: 10px; margin: 4px 0 8px; }
@media (min-width: 820px) { .m-legacy .care-tit-list02 { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.m-legacy .care-tit-list02 > li { margin: 0; }
.m-legacy .care-tit-list-box {
  display: grid; gap: 2px; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--brand);
  border-radius: var(--radius); padding: 14px 16px; height: 100%;
}
.m-legacy .care-tit-list-box .tit { font-size: 16.5px; font-weight: 700; color: var(--ink); line-height: 1.5; }
.m-legacy .care-tit-list-box .txt { font-size: 15px; color: var(--ink-3); line-height: 1.55; }

/* 아이콘 묶음 */
.m-legacy .after-service-wrap,
.m-legacy .icon-wrap { display: grid; gap: 16px; }
@media (min-width: 700px) {
  .m-legacy .after-service-wrap,
  .m-legacy .icon-wrap { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}

/* 의사 이름 + 전공 정렬 */
.m-legacy .DrTitle .title { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.m-legacy .DrTitle .DrName { margin-right: 0; }

/* 다음 지도 위젯 자리 대체 링크 */
.m-legacy .m-maplink { margin: 0 0 18px; }
.m-legacy .m-maplink a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 12px 20px;
  border: 1.5px solid var(--line-2); border-radius: 999px;
  font-size: 16px; font-weight: 700; color: var(--ink); background: var(--surface);
}
.m-legacy .m-maplink a:hover { border-color: var(--brand); color: var(--brand-ink); }
.m-legacy .locationInfoBox { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 24px; }
.m-legacy .locationInfoBox .flex-box { display: grid; gap: 20px; text-align: left; }
@media (min-width: 760px) { .m-legacy .locationInfoBox .flex-box { grid-template-columns: 1fr 1px 1fr; gap: 30px; } }
.m-legacy .locationInfoBox .line { background: var(--line); }
.m-legacy .infoTitle { font-size: 15px; font-weight: 700; color: var(--brand-ink); margin-bottom: 6px; }
.m-legacy .infoText { font-size: 16.5px; color: var(--ink-2); line-height: 1.85; }
.m-legacy .load_wrap { margin-bottom: 40px; }

/* ---------- 구 자바스크립트 탭을 대신하는 접이식 ---------- */
.m-legacy .m-fold {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface); margin: 14px 0; overflow: hidden;
}
.m-legacy .m-fold > summary {
  list-style: none; cursor: pointer; padding: 16px 20px; min-height: 56px;
  display: flex; align-items: center; gap: 10px;
  font-size: 17px; font-weight: 700; color: var(--ink); background: var(--surface-2);
}
.m-legacy .m-fold > summary::-webkit-details-marker { display: none; }
.m-legacy .m-fold > summary::after {
  content: ""; margin-left: auto; width: 11px; height: 11px; flex: none;
  border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3);
  transform: rotate(45deg) translateY(-3px); transition: transform .16s ease-out;
}
.m-legacy .m-fold[open] > summary { color: var(--brand-ink); }
.m-legacy .m-fold[open] > summary::after { transform: rotate(-135deg) translateY(-3px); }
.m-legacy .m-fold > summary br { display: none; }
.m-legacy .m-fold > div { padding: 4px 20px 20px; margin-top: 0 !important; }
.m-legacy .m-fold table { margin-top: 8px; }

/* ---------- 연혁 시대 이동 ---------- */
.m-legacy .history_button { display: flex; gap: 8px; margin-bottom: 26px; flex-wrap: wrap; }
.m-legacy .history_button > div { margin: 0; }
.m-legacy .history_button a {
  display: inline-flex; align-items: center; min-height: 46px; padding: 11px 20px;
  border: 1.5px solid var(--line-2); border-radius: 999px; text-decoration: none;
  font-size: 15.5px; font-weight: 700; color: var(--ink); background: var(--surface);
}
.m-legacy .history_button a:hover { border-color: var(--brand); color: var(--brand-ink); }
.m-legacy .history_view_2011, .m-legacy .history_view_2001 { scroll-margin-top: 90px; }

/* ---------- 구 사이트 인라인 잔재 ---------- */
.m-legacy .page_tit, .m-legacy .sub_t_wrap { display: none !important; }
.m-legacy [style*="min-height"] { min-height: 0 !important; }

/* ---------- 가입·후원 안내 카드 (구 float 레이아웃 대체) ---------- */
.m-legacy .join_guide_wrap {
  display: grid; gap: 14px; margin-top: 4px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.m-legacy .join_guide_top, .m-legacy .join_guide_bottom { display: contents; }
.m-legacy .join_guide_box { margin: 0; }
.m-legacy .join_guide_box a {
  display: grid; place-items: center; align-content: center; gap: 16px; height: 100%;
  min-height: 210px; padding: 30px 22px; text-align: center; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: border-color .16s, box-shadow .16s, transform .16s;
}
.m-legacy .join_guide_box a:hover { border-color: var(--brand); box-shadow: var(--e2); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .m-legacy .join_guide_box a:hover { transform: none; } }
.m-legacy .join_guide_img img { width: 88px; height: auto; margin: 0 auto; }
.m-legacy .join_guide_box p { margin: 0; font-size: 17px; font-weight: 700; color: var(--ink); line-height: 1.55; }
.m-legacy .join_guide_box a:hover p { color: var(--brand-ink); }

/* ---------- 조직도 (데스크탑/모바일 그림 한 장만) ---------- */
.m-legacy .group_img_mo { display: none; }
.m-legacy .group_img img, .m-legacy .group_img_mo img { margin: 0 auto; }
@media (max-width: 760px) {
  .m-legacy .group_img { display: none; }
  .m-legacy .group_img_mo { display: block; }
}

/* ---------- CI ---------- */
.m-legacy .ci_wrap { display: grid; gap: 26px; text-align: center; }
.m-legacy .ci_wrap > * { min-width: 0; }
.m-legacy .ci_img img { max-width: min(360px, 100%); margin: 0 auto; }
.m-legacy .ci_text p { margin: 0 0 .3em; font-size: 17.5px; color: var(--ink-2); }
.m-legacy .ci_green { color: var(--brand-ink); font-weight: 700; }
.m-legacy .ci_yellow { color: var(--clay); font-weight: 700; }
.m-legacy .ci_brown { color: var(--clay); font-weight: 700; }
.m-legacy .ci_download {
  justify-self: center; display: inline-flex; align-items: center; min-height: 50px; padding: 13px 24px;
  border-radius: 999px; background: var(--brand-ink); color: #fff !important;
  font-weight: 700; text-decoration: none !important;
}
.m-legacy .ci_download:hover { background: var(--brand-deep); }

/* ---------- 본문 사진은 읽기 폭 안에서 ---------- */
.m-legacy .contentWidgetWrapper img,
.m-legacy .ListWrapperImgHalf img { margin-left: auto; margin-right: auto; }

/* 구 사이트의 바깥 여백 — 새 페이지 틀이 이미 여백을 잡는다 */
.m-legacy .intro_page, .m-legacy .sub-page-wrap, .m-legacy .page-cont:first-child {
  padding-top: 0 !important;
}
.m-legacy > section:last-child, .m-legacy .intro_page:last-child { padding-bottom: 0 !important; }
.m-legacy .intro_gray, .m-legacy .intro_wh { padding: 0 !important; }

/* ---------- 사진 묶음 (요양원·주간보호 등) ---------- */
.m-legacy .img-container {
  display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin: 14px 0 24px;
}
.m-legacy .img-box {
  overflow: hidden; border-radius: var(--radius-lg);
  border: 1px solid var(--line); background: var(--surface-2);
}
.m-legacy .img-box img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0; }
.m-legacy .img-box .imgtop { object-position: center top; }
/* 사진 위 반투명 자막은 대비를 보장할 수 없다 — 아래에 불투명 띠로 */
.m-legacy .img-box { display: flex; flex-direction: column; }
.m-legacy .img-label {
  display: block; padding: 10px 14px; margin: 0; background: var(--ink);
  color: #fff; font-size: 14.5px; font-weight: 700; text-align: left; line-height: 1.45;
}
.m-legacy .innerLabel {
  display: inline-block; margin: 26px 0 8px; padding: 5px 13px; border-radius: 999px;
  background: var(--brand-wash); border: 1px solid #cfe6d5;
  color: var(--brand-ink); font-size: 15px; font-weight: 700;
}
.m-legacy .infoImgList + .infoImgList { margin-top: 8px; }
.m-legacy .titleWrpper {
  font-family: var(--serif); font-size: clamp(19px, 1.9vw, 23px); font-weight: 700;
  color: var(--ink); margin: 2.4em 0 .9em; padding-bottom: 12px; border-bottom: 2px solid var(--ink);
}
.m-legacy .ml-30 { margin-left: 0; }
.m-legacy .my-20 { margin: 20px 0; }
.m-legacy .mb-30 { margin-bottom: 30px; }
.m-legacy .visualLogo img { max-width: min(320px, 100%); }
.m-legacy .visualImg img, .m-legacy .imgWrapper img { max-width: min(520px, 100%); margin: 0 auto; border-radius: var(--radius-lg); }

/* ---------- 건강반 그림 ---------- */
.m-legacy .health_group_img img { max-width: min(300px, 100%); margin: 0 auto; }
.m-legacy .content-flow { display: grid; gap: 16px; margin: 16px 0 26px; }
@media (min-width: 780px) { .m-legacy .content-flow { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
.m-legacy .content-flow .cont {
  display: grid; grid-template-columns: 92px 1fr; gap: 16px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px 18px;
}
.m-legacy .content-flow .cont img { width: 92px; height: auto; }
.m-legacy .content-flow .cont .txt { font-size: 16px; color: var(--ink-2); line-height: 1.6; }
.m-legacy .icon-box img { max-width: min(160px, 100%); }

/* ---------- 건강반 예시 카드 (그림 + 이름 + 설명) ---------- */
.m-legacy .cont-active-list { display: grid; gap: 18px; margin: 18px 0 8px; }
@media (min-width: 700px) { .m-legacy .cont-active-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .m-legacy .cont-active-list { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.m-legacy .cont-active-list > li { margin: 0; }
.m-legacy .cont-active-list .cont {
  height: 100%; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden; padding-bottom: 20px;
}
.m-legacy .cont-active-list .img-box {
  position: relative; border: 0; border-radius: 0; background: var(--surface-2); margin-bottom: 14px;
}
.m-legacy .cont-active-list .img-box img { aspect-ratio: 1 / 1; object-fit: contain; }
.m-legacy .cont-active-list .number {
  position: absolute; left: 14px; top: 14px; z-index: 1;
  width: 30px; height: 30px; margin: 0;
}
.m-legacy .cont-active-list .cont-tit {
  margin: 0 20px 6px; font-family: var(--serif); font-size: 18.5px; font-weight: 700; color: var(--ink);
}
.m-legacy .cont-active-list .txt02 { display: block; margin: 0 20px; font-size: 15.5px; color: var(--ink-2); line-height: 1.65; }
.m-legacy .line-tit {
  display: block !important; font-family: var(--serif); font-size: clamp(19px, 1.9vw, 23px);
  font-weight: 700; color: var(--ink); margin: 2.4em 0 .8em; padding-bottom: 12px; border-bottom: 2px solid var(--ink);
}

/* ---------- 요양원 주치의 소개 ---------- */
.m-legacy .drflex { display: grid; gap: 20px; align-items: start; }
@media (min-width: 780px) { .m-legacy .drflex { grid-template-columns: 300px 1fr; gap: 32px; } }
.m-legacy .drflex .imgWrapper img { margin: 0; max-width: 100%; }
