@charset "utf-8";
/* ==========================================================
   공통 상단바 (2026 리뉴얼) : 메인(index.php) + 서브페이지/게시판(head.php) 공용
   - 마크업은 /renewal_hd.php (이 파일의 link 와 /js/renewal_hd.js 도 거기서 출력)
   - 높이는 CSS 변수 --hd (모바일 56 / PC 1240px 이상 63). body 에 그만큼 padding-top.
   - 서브페이지의 옛 CSS(style.css, custom.css) 와 섞이므로 모든 규칙을 #hd / .mo_nav 아래에만 둔다
   ========================================================== */
:root {--hd: 56px;}
body {padding-top: var(--hd);}
#hd, #hd *, .mo_nav, .mo_nav * {box-sizing: border-box;}
#hd ul, .mo_nav ul {margin: 0; padding: 0; list-style: none;}
#hd img {border: 0; vertical-align: top;}
#hd a, .mo_nav a {text-decoration: none; -webkit-tap-highlight-color: transparent;}
#hd button, .mo_nav button {border: 0; background: none; padding: 0; margin: 0; cursor: pointer; font: inherit; color: inherit; -webkit-appearance: none; appearance: none;}
#hd {font-family: 'Pretendard', 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif; font-weight: 400; line-height: 1.2; -webkit-font-smoothing: antialiased; word-break: keep-all;}
.mo_nav {font-family: 'Pretendard', 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif; font-weight: 400; line-height: 1.4; text-align: left;}

/* ---------- 상단바 (전체레이아웃.png : PC 1920x63 - 로고 123px / 메뉴 17px 회색 / 전화 / 두드림 CI 62px. 모바일 56px - 로고 / 전화 아이콘 / 햄버거) ---------- */
#hd {position: fixed; left: 0; top: 0; right: 0; height: var(--hd); background: #fff; border-bottom: 1px solid #e8e8e8; z-index: 100;}
#hd .hd_in {display: flex; align-items: center; height: 100%; max-width: 1400px; margin: 0 auto; padding: 0 12px 0 16px;}
#hd .hd_in {position: relative;}
#hd .hd_co {display: block; flex: 0 0 auto; width: 54px; height: auto;}   /* 모바일 전용 왼쪽 회사 로고 /new_img/dodream_logo.svg (2026-11-13, 원본 비율 94.72x41.9) */
#hd .hd_logo {display: block; flex: 0 0 auto; width: 100px; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);}   /* 모바일 : 브랜드 로고 화면 가운데 (2026-11-13) */
#hd .hd_logo img {display: block; width: 100%;}
#hd .gnb {display: none; margin-left: 1px;}
#hd .gnb ul {display: flex; margin: 0; padding: 0; list-style: none;}
#hd .gnb li {position: relative; padding: 0 43px;}
#hd .gnb li + li::before {content: ''; position: absolute; left: 0; top: 50%; width: 1px; height: 16px; margin-top: -8px; background: #e2e2e2;}
#hd .gnb a {display: block; font-size: 19px; line-height: 1; color: #888; letter-spacing: -0.03em; white-space: nowrap; transition: color .2s;}
#hd .gnb a:hover, #hd .gnb a.on {color: #e60014;}   /* .on : 현재 페이지(리얼후기 / 건강정보) 메뉴 빨강 (2026-11-02) */
#hd .hd_tel {display: flex; align-items: center; gap: 6px; margin-left: auto; color: #d4000f; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; line-height: 1;}
#hd .hd_tel img {display: block; width: 28px; height: 28px; flex: 0 0 auto; object-fit: contain;}   /* 상담원 아이콘 /new_img/top_call.png (2026-11-05, 원본 28x27) */
#hd .hd_tel b {display: none; font-weight: 800;}   /* 모바일 : 아이콘만 */
#hd .hd_ci {display: none; width: 62px; margin-left: 50px;}
#hd .hd_menu {position: relative; flex: 0 0 auto; width: 40px; height: 40px; margin-left: 4px;}
#hd .hd_menu span {position: absolute; left: 9px; width: 22px; height: 2px; border-radius: 1px; background: #222; transition: transform .25s ease, opacity .25s ease;}
#hd .hd_menu span:nth-child(1) {top: 12px;}
#hd .hd_menu span:nth-child(2) {top: 19px;}
#hd .hd_menu span:nth-child(3) {top: 26px;}
html.nav_open #hd .hd_menu span:nth-child(1) {transform: translateY(7px) rotate(45deg);}
html.nav_open #hd .hd_menu span:nth-child(2) {opacity: 0;}
html.nav_open #hd .hd_menu span:nth-child(3) {transform: translateY(-7px) rotate(-45deg);}
/* 모바일 메뉴 : 오른쪽에서 밀려 나오는 패널 */
.mo_nav {position: fixed; left: 0; top: 0; right: 0; bottom: 0; z-index: 1000; visibility: hidden; pointer-events: none; transition: visibility 0s .3s;}
.mo_nav_bg {position: absolute; left: 0; top: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, .45); opacity: 0; transition: opacity .3s ease;}
.mo_nav_panel {position: absolute; top: 0; right: 0; bottom: 0; width: 78%; max-width: 320px; padding: 64px 28px 30px; background: #fff; transform: translateX(100%); transition: transform .3s ease; overflow-y: auto;}
html.nav_open .mo_nav {visibility: visible; pointer-events: auto; transition-delay: 0s;}
html.nav_open .mo_nav_bg {opacity: 1;}
html.nav_open .mo_nav_panel {transform: none;}
html.nav_open, html.nav_open body {overflow: hidden;}
.mo_nav_close {position: absolute; right: 10px; top: 8px; width: 40px; height: 40px; font-size: 32px; line-height: 1; color: #333;}
.mo_nav ul {list-style: none; margin: 0; padding: 0;}
.mo_nav li a {display: block; padding: 16px 0; border-bottom: 1px solid #eee; font-size: 17px; font-weight: 500; color: #222;}
.mo_nav li a:active, .mo_nav li a.on {color: #e60014;}
.mo_nav_tel {display: block; margin-top: 28px; padding: 14px; border-radius: 8px; background: #e60014; color: #fff; text-align: center; font-size: 15px;}
.mo_nav_tel b {margin-left: 6px; font-size: 19px; font-weight: 800;}

/* ---------- PC (1240px 이상) : 1920x63 ---------- */
@media screen and (min-width: 1240px) {
    :root {--hd: 63px;}
    #hd .hd_in {max-width: 1225px; padding: 0 20px;}   /* 1440px 이상에서 안쪽 1400px (시안 로고 x 267 / CI 끝 1671), 그보다 좁으면 양쪽 20px 여백 */
    #hd .hd_co {display: none;}
    #hd .hd_logo {position: static; transform: none; width: 123px;}
    #hd .gnb {display: block;}
    #hd .hd_tel {gap: 8px; font-size: 42px;}
    #hd .hd_tel img {width: 38px; height: 38px;}
    #hd .hd_tel b {display: inline;}
    #hd .hd_ci {display: block;}
    #hd .hd_menu {display: none;}
}
