/* 템플릿1(옛 화면) 보정 — 옛 CSS 는 그대로 두고, 새 시스템에서 생긴 차이만 맞춘다 */
.hp-main-visual { width:100%; overflow:hidden; }
.hp-main-visual .swiper-slide { padding:0; height:601px; background-size:cover; background-repeat:no-repeat; background-position:center; position:relative; }
/* 문구 넣는 장(.visual01)은 그 기관 main.css 의 위치(보통 center top)를 따른다 */
/* 문구(.slogan) 모양은 각 기관 main.css 의 #main-visual .visual01 .slogan 규칙을 그대로 따른다 */
.swiper-pagination-bullet-active { background-color:rgba(0,0,0,0.5) !important; }
@media (max-width: 767px) { .hp-main-visual .swiper-slide { height:300px; } }
.con-go { display:inline-block; text-decoration:none !important; }

/* ── 단추 공통 규칙 (홈페이지 전 화면) ──
   글 보기 위·아래 단추줄(.bo_v_com, .bo_v_nb)과 댓글 단추는 모두 링크(<a>) — 삭제도 action_link 라서 같은 모양
   옛 게시판 CSS 가 a.btn_b01 만 칠하므로 그 규칙을 그대로 따른다. 여기서는 줄 맞춤만 */
.bo_v_com li, .bo_v_nb li, .bo_vc_act li { vertical-align:middle; }
.bo_vc_act a { display:inline-block; padding:2px 6px; border:1px solid #ccc; background:#fff; color:#333; text-decoration:none; font-size:12px; }

/* 첫 화면 유튜브 동영상 */
.hp-main-video { position:relative; width:100%; max-width:1400px; height:500px; overflow:hidden; padding:0; margin:0 auto; background:#000; }
.hp-main-video iframe { position:absolute; top:50%; left:50%; width:100%; height:100%; min-width:889px; transform:translate(-50%,-50%); pointer-events:none; }
@media (max-width:767px) { .hp-main-video { height:260px; } .hp-main-video iframe { min-width:462px; } }

/* 로고 링크(넓은 col 칸)에 키보드 포커스가 가면 헤더 전체에 검은 테두리가 그려진다 — 링크 테두리는 없애고 로고 그림에만 표시 */
#hd a.logo:focus { outline:none; }
#hd a.logo:focus-visible img { outline:2px solid #1a56db; outline-offset:2px; }

/* ── 공통 헤더 (PC 992px 이상) — 로고칸 | 메뉴칸 한 줄, 메뉴 단추는 상하 꽉 채움 (2026-11-09) ──
   옛 main.css 의 #hd .hd_navi(높이 97px·메뉴 margin-top 40px) 를 이 규칙이 덮는다. 기관 강조색은 --hp-accent */
@media (min-width: 992px) { #hd .hd_navi.hp-hd-nav { height:auto; min-height:0; line-height:normal; border-bottom:1px solid #ddd; } }
#hd .hp-hd { display:flex; align-items:stretch; height:76px; padding:0 15px; }
#hd .hp-hd:before, #hd .hp-hd:after { display:none; }
#hd .hp-hd-logo { flex:0 0 auto; display:flex; align-items:center; max-width:34%; padding:0 24px 0 0; margin:0; height:auto; line-height:normal; }
#hd .hp-hd-logo img { display:block; max-height:52px; width:auto; height:auto; }
#hd .hp-hd-logo:focus { outline:none; }
#hd .hp-hd-logo:focus-visible img { outline:2px solid var(--hp-accent,#19b5fe); outline-offset:3px; }
#hd .hp-hd-name { font-size:22px; font-weight:700; color:#333; white-space:nowrap; }
#hd .hp-hd-menu { flex:0 1 auto; margin-left:auto !important; min-width:0; display:flex; justify-content:flex-start; align-items:stretch; margin:0; padding:0; list-style:none; float:none; }
#hd .hp-hd-menu > li.th1 { display:flex; float:none; padding:0; margin:0; position:relative; }
#hd .hp-hd-menu > li.th1 > a.th1_lnk { display:flex; align-items:center; height:auto; padding:0 22px; margin:0; font-size:17px; font-weight:500; letter-spacing:-0.5px; color:#333; white-space:nowrap; line-height:1.3; text-decoration:none; border:0; box-shadow:inset 0 -3px 0 transparent; transition:background .15s, box-shadow .15s, color .15s; }
#hd .hp-hd-menu > li.th1 > a.th1_lnk:hover, #hd .hp-hd-menu > li.th1 > a.th1_lnk:focus,
#hd .hp-hd-menu > li.th1.on > a.th1_lnk { color:var(--hp-accent,#19b5fe); background:#f5f8fa; box-shadow:inset 0 -3px 0 var(--hp-accent,#19b5fe); border:0; }
#hd .hp-hd-menu.hp-tight > li.th1 > a.th1_lnk { padding:0 14px; font-size:16px; }
#hd .hp-hd-menu.hp-tighter > li.th1 > a.th1_lnk { padding:0 10px; font-size:15px; }
/* 하위메뉴 펼침판은 새 헤더 바로 아래에 */
@media (min-width: 992px) { #hd .hp-hd-nav #sub-menu { top:77px; } }
/* 펼침판 높이는 내용에 맞게 — 옛 main.css 의 고정 높이(판 145px·칸 99px = 3줄)로는 4줄 이상이 판 밖으로 넘쳤다 */
#hd .hp-hd-nav #sub-menu { height:auto; min-height:145px; }
#hd .hp-hd-nav #sub-menu .sub-menu { height:auto; min-height:99px; }
@media (max-width: 991px) { #hd .hp-hd { display:none; } }
#hd .hp-hd-menu.hp-tightest > li.th1 > a.th1_lnk { padding:0 7px; font-size:14px; letter-spacing:-1px; }


/* ── 첫 화면 «오시는 길» 카드 (2026-11-09) — 왼쪽 지도 | 오른쪽 안내. 강조색은 --hp-accent ── */
.hp-loc { background:#f3f5f7; padding:56px 0; }
.hp-loc * , .hp-loc *:before, .hp-loc *:after { box-sizing:border-box; }
.hp-loc-card { display:grid; grid-template-columns:minmax(0, 1.45fr) minmax(0, 1fr); min-height:360px; background:#fff; border-radius:12px; overflow:hidden; box-shadow:0 6px 24px rgba(20, 40, 70, .08); }
.hp-loc-map { position:relative; min-height:360px; background:#e9edf1; }
.hp-loc-map iframe { position:absolute; inset:0; width:100%; height:100%; border:0; display:block; }
.hp-loc-nomap { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; color:#8a94a0; font-size:15px; }
.hp-loc-info { display:flex; flex-direction:column; justify-content:center; padding:40px 44px; min-width:0; }
.hp-loc-eyebrow { margin:0 0 6px; color:var(--hp-accent, #19b5fe); font-size:13px; font-weight:700; letter-spacing:2px; text-align:left; }
.hp-loc-title { margin:0 0 10px; font-size:28px; font-weight:700; letter-spacing:-0.5px; color:#222; text-align:left; }
.hp-loc-desc { margin:0 0 24px; color:#6b7480; font-size:15px; line-height:1.6; text-align:left; }
.hp-loc-list { margin:0 0 28px; padding:0; border-top:1px solid #e6eaee; }
.hp-loc-list > div { display:grid; grid-template-columns:56px minmax(0, 1fr); gap:12px; padding:13px 0; border-bottom:1px solid #e6eaee; }
.hp-loc-list dt { color:var(--hp-accent, #19b5fe); font-size:14px; font-weight:700; line-height:1.6; }
.hp-loc-list dd { margin:0; color:#333; font-size:16px; line-height:1.6; word-break:keep-all; overflow-wrap:anywhere; }
.hp-loc-list dd a { color:#333; text-decoration:none; }
.hp-loc-list dd a:hover { color:var(--hp-accent, #19b5fe); }
.hp-loc-btns { display:flex; flex-wrap:wrap; gap:8px; }
.hp-loc-btn { display:inline-flex; align-items:center; justify-content:center; height:46px; padding:0 22px; border:1px solid #cfd6de; border-radius:6px; background:#fff; color:#333 !important; font-size:15px; font-weight:500; text-decoration:none !important; transition:filter .15s, background .15s; }
.hp-loc-btn:hover { background:#f6f8fa; }
.hp-loc-btn-primary { background:var(--hp-accent, #19b5fe); border-color:var(--hp-accent, #19b5fe); color:#fff !important; }
.hp-loc-btn-primary:hover { background:var(--hp-accent, #19b5fe); filter:brightness(.92); }
@media (max-width: 991px) {
  .hp-loc-card { grid-template-columns:1fr; }
  .hp-loc-map { min-height:280px; }
  .hp-loc-info { padding:28px 24px 30px; }
}
@media (max-width: 767px) {
  .hp-loc { padding:32px 0; }
  .hp-loc-map { min-height:230px; }
  .hp-loc-title { font-size:22px; }
  .hp-loc-list dd { font-size:15px; }
  .hp-loc-btn { flex:1 1 auto; }
}

/* 첫 화면 2줄째: 공지사항 카드와 «주간 식단표·프로그램 일정» 칸의 위·아래·좌우 끝을 맞춘다 (2026-11-09)
   옛 그림(284×240)은 테두리에 투명 여백(위·아래 3px, 왼쪽 4px, 오른쪽 3px)이 있어 칸이 안쪽으로 들어가 보였다 → 칸에 맞춰 여백을 잘라 낸다 */
@media (min-width: 992px) {
  #content-wrap .hp-row-stretch { display:flex; }
  #content-wrap .hp-row-stretch > [class*="col-"] { float:none; }
  #content-wrap .hp-row-stretch .con-notice .notice { height:100%; }
  #content-wrap .hp-tiles { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
  #content-wrap .hp-tiles > .m_diet, #content-wrap .hp-tiles > .m_program { float:none; width:auto; position:relative; overflow:hidden; min-height:234px; }
  #content-wrap .hp-tiles > div > a { position:absolute; inset:0; display:block; }
  #content-wrap .hp-tiles > div img { position:absolute; left:-1.45%; top:-1.3%; width:102.6%; height:102.6%; max-width:none; object-fit:fill; }
}
/* 풋터 로고: 헤더 로고와 같은 최대 높이 */
#ft_company .f_logo img { max-height:52px; width:auto; height:auto; }


/* ── 첫 화면 슬라이드 — 위치 맞춘 사진(.hp-slide-fit)·동영상(.hp-slide-video)·직접 입력 문구(.hp-slogan) (2026-11-11) ──
   [설정] 을 저장한 사진만 이 규칙을 탄다. 저장한 적 없는 사진은 옛 화면(그 기관 main.css 의 .visual01 배경) 그대로
   선택자를 #main-visual .swiper-slide.… 로 둬 옛 #main-visual .visual01(높이·배경)보다 늘 앞선다 */
#main-visual .swiper-slide.hp-slide-fit, #main-visual .swiper-slide.hp-slide-video { position:relative; overflow:hidden; height:601px; padding:0; background:#000 none; container-type:size; }
@media (max-width:767px) { #main-visual .swiper-slide.hp-slide-fit, #main-visual .swiper-slide.hp-slide-video { height:300px; } }   /* 다른 칸(.hp-main-visual .swiper-slide)과 같은 높이 — 다르면 슬라이드 아래가 빈다 */
/* 첫 화면 안내 칸에 단추가 둘일 때 (ecm0068 «입소대기신청 · 금액보기») */
#content-wrap .con-go + .con-go { margin-left:6px; }

/* 첫 화면 «고객상담센터 안내» — 휴대폰(767px 이하)에서 전화번호가 반 칸(col-xs-6)에 갇혀 «043-873-010 / 8» 로 줄바꿈되던 것(2026-11-23).
   번호는 한 줄로 필요한 만큼 차지하고, 운영시간은 옆에 자리가 없으면 다음 줄로 */
@media (max-width:767px) {
  #visual-content .custom p.cus_tel { width:auto; max-width:100%; white-space:nowrap; }
  #visual-content .custom p.cus_time { width:auto; }
}
