/*
 * [2026-07-31] 헤더 메뉴 원본 이식.
 * 원본(린여성병원_원본) views/_layout/bootstrap/layout.php 의 nav.navbar(데스크탑 메가드롭다운
 * .over-layer, 이미지 포함) + .fixed-menu-layout(전체화면 슬라이드 메뉴) 디자인/동작을 그대로 옮긴다.
 * 원본은 Bootstrap 3 위에 이 클래스들을 얹어 썼지만 이 사이트는 Bootstrap을 안 쓰므로,
 * 실제로 쓰이는 만큼만(.navbar-header 클리어픽스, .navbar-toggle 햄버거 아이콘, .nav 리스트 리셋)
 * 최소 구현하고 나머지는 원본 lib/css/custom.css 값 그대로 사용한다.
 * 클래스명이 다른 페이지와 충돌하지 않는지 확인 후 전역 로드(head.sub.php)한다.
 */

/* -- Bootstrap 최소 대체분 -- */
.navbar-header:before, .navbar-header:after { content: " "; display: table; }
.navbar-header:after { clear: both; }
.navbar-brand { float: left; font-size: 18px; line-height: 20px; }
.navbar-brand:hover, .navbar-brand:focus { text-decoration: none; }
.navbar-brand > img { display: block; width: 95px; }
.navbar-toggle { display: none; position: relative; float: right; padding: 9px 10px; margin-top: 12px; margin-right: 0; margin-bottom: 8px; background-color: transparent; border: 1px solid transparent; border-radius: 4px; cursor: pointer; }
.navbar-toggle:focus { outline: 0; }
.navbar-toggle .icon-bar { display: block; width: 22px; height: 2px; border-radius: 1px; background-color: #888; }
.navbar-toggle .icon-bar + .icon-bar { margin-top: 4px; }
.nav { margin: 0; padding: 0; list-style: none; }
.nav > li { position: relative; }
.nav > li > a { position: relative; display: block; text-decoration: none; }

/* -- 원본 lib/css/custom.css 1~43행 그대로 -- */
.navbar-header { float: none; position: absolute; width: 30%; }
.navbar-header .kakao { position: fixed; right: 20%; top: 17px; }
.navbar-default .navbar-brand { padding: 8px 0; }
.navbar-default .navbar-brand > img { display: inline-block; width: auto; }
.navbar-default .navbar-tel { float: left; display: inline-block; margin-left: 3%; padding: 8px; line-height: 1.4; font-size: 15px; color: #323759; text-align: left; font-weight: 600; text-decoration: none; }
.navbar-default .navbar-tel .icon-tel { display: inline-block; width: 15px; height: 16px; background: url("/img/icon-tel.png") no-repeat center/100% auto; vertical-align: middle; }
.navbar-default .navbar-tel span { font-size: 20px; font-weight: 800; }
.nav.navbar-nav { float: none; display: block; }
/* text-align:center 필수 — .navbar-header(로고, position:absolute, width:30%, 왼쪽부터 시작)와 .nav.navbar-nav(전체 폭)가
   같은 자리에서 시작해 겹치는 박스를 이루는데, 원본은 nav.navbar 자체가 text-align:center라 메뉴 li들이 가운데로
   모여서 겹침을 피한다. 이 규칙이 없으면 메뉴가 왼쪽부터 시작해 로고/카카오/전화번호와 시각적으로 겹친다. */
.navbar.navbar-default { padding: 0 42px; position: fixed; top: 0; left: 0; right: 0; z-index: 111; background: #fff; box-shadow: rgb(0 0 0 / 8%) 0px 1px 10px; min-height: 50px; text-align: center; }
.navbar-default .navbar-nav > li { float: none; display: inline-block; }
.navbar-default .navbar-nav > li.tab { position: relative; }
.navbar-default .navbar-nav > li.tab::before { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: block; width: 80%; height: 40px; border-radius: 7px; background: #f4a63e; }
.navbar-default .navbar-nav > li.tab a { color: #fff; }
.navbar-default .navbar-nav > li > a { font-weight: 400; padding: 20px 37px; font-size: 15px; color: #333; }
.navbar-default .navbar-nav > li > a:hover { background: none; color: inherit; }
.navbar-default .nav-right { position: absolute; top: 0; right: 0; }
.navbar-default .nav-right li { float: left; }
.navbar-default .nav-right li a { font-size: 24px; color: #333; height: 60px; line-height: 60px; padding: 0 13px; display: block; }

.over-layer { position: fixed; top: 60px; left: 0; right: 0; background: #fff; height: 0; overflow: hidden; opacity: 0; z-index: 22; }
.over-layer .inner { max-width: 1110px; margin: 0 auto; display: flex; text-align: left; justify-items: center; align-items: center; height: 210px; }
.over-layer .inner .item { min-height: 125px; }
.over-layer .inner .item h4 { position: relative; margin-top: 30px; }
.over-layer .inner .item h4:after { position: absolute; content: ''; left: 0; top: 230%; width: 25px; height: 2px; background: #f19149; }
.over-layer .inner .item:nth-child(1) { width: 242px; position: relative; }
.over-layer .inner .item:nth-child(1):after { content: ''; position: absolute; right: 0; width: 1px; top: 0; height: 100%; background: #cbcbcb; }
.over-layer .inner .item:nth-child(2) { width: 572px; padding-left: 80px; }
.over-layer .inner .item:nth-child(2) ul { overflow: hidden; }
.over-layer .inner .item:nth-child(2) ul li { width: 50%; float: left; margin: 4px 0; }
.over-layer .inner .item:nth-child(2) ul li a:hover { color: #FFA13C; }
.over-layer .inner .item:nth-child(2) ul li a { font-size: 15px; color: #333333; font-weight: 400; }
.over-layer .inner .item:nth-child(3) { width: 290px; }
.over-layer .inner .item:nth-child(3) img { max-width: 100%; }

/* -- 원본 lib/css/custom.css 1993~2030행 (.fixed-menu-layout) 그대로 -- */
.fixed-menu-layout { position: fixed; top: 0; left: 100%; width: 100%; height: 100%; background: #fff; z-index: 999; }
.fixed-menu-layout .close-btn { position: absolute; top: 51px; right: 64px; cursor: pointer; }
.fixed-menu-layout .contents { position: absolute; top: 0; left: 26%; bottom: 0; right: 10%; display: flex; padding: 0 0 0 60px; }
.fixed-menu-layout .contents .inner { display: flex; justify-content: center; flex-direction: column; }
.fixed-menu-layout .contents .inner:nth-child(1) { width: 40%; }
.fixed-menu-layout .contents .inner:nth-child(1) > ul { border-right: 1px solid #c7c8c7; position: relative; top: 100px; opacity: 0; }
.fixed-menu-layout .contents .inner:nth-child(1) > ul > li { display: block; font-family: 'KoPub Batang'; font-size: 33px; color: #000; cursor: pointer; line-height: 2.5; }
.fixed-menu-layout .contents .inner:nth-child(1) > ul > li.active { color: #54c9e2; }
.fixed-menu-layout .contents .inner:nth-child(2) { padding-left: 80px; width: 60%; }
.fixed-menu-layout .contents .inner:nth-child(2) > div { display: none; position: relative; top: 100px; opacity: 0; }
.fixed-menu-layout.c01 .contents .inner:nth-child(2) > div:nth-child(1) { display: block; }
.fixed-menu-layout.c02 .contents .inner:nth-child(2) > div:nth-child(2) { display: block; }
.fixed-menu-layout.c03 .contents .inner:nth-child(2) > div:nth-child(3) { display: block; }
.fixed-menu-layout.c04 .contents .inner:nth-child(2) > div:nth-child(4) { display: block; }
.fixed-menu-layout.c05 .contents .inner:nth-child(2) > div:nth-child(5) { display: block; }
.fixed-menu-layout.c06 .contents .inner:nth-child(2) > div:nth-child(6) { display: block; }
.fixed-menu-layout .contents .inner:nth-child(2) h2 { font-size: 25px; font-weight: 700; color: #000; margin-bottom: 60px; }
.fixed-menu-layout .contents .inner:nth-child(2) h2 span { color: #e3e3e3; font-size: 45px; display: inline-block; margin-right: 30px; font-weight: 400; }
.fixed-menu-layout .contents .inner:nth-child(2) ul { display: block; white-space: nowrap; }
.fixed-menu-layout .contents .inner:nth-child(2) ul li { display: block; }
.fixed-menu-layout .contents .inner:nth-child(2) ul li + li { margin-top: 49px; }
.fixed-menu-layout .contents .inner:nth-child(2) ul li a { display: block; font-size: 21px; font-weight: 400; color: #000; text-decoration: none; }
.fixed-menu-layout .bg { position: absolute; top: 0; left: 0; bottom: 0; width: 26%; background: #eee; transition: all .5s; }
/* 원본 그대로: c02는 c03.png, c03은 c04.png ... 한 칸씩 밀려 있는 원본의 실제 동작을 그대로 옮김 */
.fixed-menu-layout.c01 .bg { background: url("/img/fixed-layout-c01.png") center no-repeat; background-size: cover; }
.fixed-menu-layout.c02 .bg { background: url("/img/fixed-layout-c03.png") center no-repeat; background-size: cover; }
.fixed-menu-layout.c03 .bg { background: url("/img/fixed-layout-c04.png") center no-repeat; background-size: cover; }
.fixed-menu-layout.c04 .bg { background: url("/img/fixed-layout-c05.png") center no-repeat; background-size: cover; }
.fixed-menu-layout.c05 .bg { background: url("/img/fixed-layout-c06.png") center no-repeat; background-size: cover; }

/* -- 반응형: 원본 custom.m.css / custom.s.css / custom.xs.css 의 navbar 관련분 -- */
@media (max-width: 1199px) {
	.navbar-header { padding: 4px 0; float: none; position: relative; width: auto; }
	.navbar-default .navbar-tel { font-size: 14px; }
	.navbar-default .navbar-tel span { font-size: 18px; }
	.navbar-default .navbar-brand > img { display: inline-block; width: 108px; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
}
/* 원본은 768px 이상이면 navbar-toggle 을 숨기고(Bootstrap 기본값), 767px 이하에서만
   custom.xs.css 의 `.nav.navbar-nav{display:none}` 로 메가드롭다운을 감춘다 —
   즉 992~1199px 구간에서도 메가드롭다운은 그대로 보인다. */
@media (min-width: 768px) {
	.navbar-toggle { display: none; }
}
@media (max-width: 767px) {
	.nav.navbar-nav { display: none; }
	.navbar-toggle { display: block; }
	/* [2026-08-31] nth-child 번호 → nr-* 클래스 기준으로 교체.
	   레벨10 관리자에게는 계정 아이콘 앞에 .nr-admin li 가 하나 더 붙어 번호가 밀린다.
	   모바일에 보이는 것은 종전과 똑같이 계정 아이콘(로그인/로그아웃) 하나뿐이다. */
	.navbar-default .nav-right li.nr-admin,
	.navbar-default .nav-right li.nr-mypage,
	.navbar-default .nav-right li.nr-kakao { display: none; }
	.navbar-default .nav-right li.nr-login,
	.navbar-default .nav-right li.nr-logout { position: fixed; right: 10%; }
	.navbar-default .navbar-toggle { margin-top: 10px; }
	.navbar-default .navbar-tel { padding: 8px 0; margin-left: 0; font-size: 12px; }
	.navbar-default .navbar-tel span { font-size: 14px; }
	.navbar.navbar-default { padding: 0 10px; }
	.fixed-menu-layout .contents { display: block; left: 0; right: 0; padding: 90px 24px 24px; }
	.fixed-menu-layout .bg { display: none; }
	.fixed-menu-layout .contents .inner:nth-child(1) { width: 100%; }
	.fixed-menu-layout .contents .inner:nth-child(1) > ul { border-right: 0; }
	.fixed-menu-layout .contents .inner:nth-child(1) > ul > li { font-size: 20px; line-height: 2; }
	.fixed-menu-layout .contents .inner:nth-child(2) { width: 100%; padding-left: 0; margin-top: 30px; }
	.fixed-menu-layout .close-btn { top: 24px; right: 24px; }
	.fixed-menu-layout .close-btn img { width: 24px; }
}
