/* ================================================================
   mobile.css  —  닥터송포유 리뉴얼 모바일 전용 스타일
   기준 디자인: 닥터송_메인랜딩시안_260422
   로드 순서: common.css → default.css → mobile.css  (마지막 로드)
   대상: max-width 767px (768px~는 default.css에서 처리)
   수정이력: 2026-06 CSS 구조 정리
     - 파일 내 @media 블록 3개 → 2개로 통합 (tail 별도 블록 제거)
     - !important 최소화 (#gnb display:none, .m-nav-btn display:flex만 유지)
     - default.css의 768px 블록과 중복되는 값 제거
   ================================================================ */

/* ════════════════════════════════════════
   767px 이하 — 모바일 전용
════════════════════════════════════════ */
@media (max-width: 992px) {

/* ── 공통 변수 재정의 ── */
:root {
    --sec-py:   56px;
    --inner-px: 16px;
}

/* ── 레이아웃 기초 ── */
.container,
.container-fluid,
.container-lg { padding: 0 var(--inner-px); }
.inner        { padding: 0 var(--inner-px); }
.section,
.ds-section   { padding: var(--sec-py) 0; }

/* ── 섹션 타이틀 ── */
.sec-title          { padding-top: 32px; margin-bottom: 36px; }
.sec-title::before  { height: 32px; top: -8px; }
.sec-title h2       { font-size: 26px; }
.sec-title p        { font-size: 14px; }

/* ── 상단 유틸 바 숨김 ── */
#top-btn { display: none; }

/* ── h-updown 숨김 ── */
#h-updown { display: none; }

/* ── GNB 숨김 ── */
#gnb { display: none; }

/* ══════════════════════════════════════
   헤더 — 메인 / 서브 완전 통일
   ※ default.css에서 PC용으로 선언된
     - header-inner: height:80px, justify-content:space-between
     - header-col: flex:0 0 220px
     - m-nav-btn: flex 흐름 안에 위치 (top/right 없음)
   이 모두 아래에서 !important로 완전히 덮어씀
══════════════════════════════════════ */

/* ── 헤더 컨테이너: 모든 케이스 fixed 통일 ── */
#header,
#index #header,
.wrap:not(#index) #header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
    background: #fff !important;
    border-bottom: 1px solid var(--c-border) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
}

/* 메인(인덱스)만 반투명 배경 */
#index #header {
    background: rgba(10,10,20,0.22) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

/* ── 헤더 이너: PC의 height:80px / space-between / max-width 완전 차단 ── */
.header-inner {
    height: 52px !important;
    max-width: 100% !important;
    padding: 0 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
}

/* PC 전용 컬럼 요소 숨김 (헤더 너비를 밀어내는 원인) */
.header-col,
.header-col-right,
.header-special-link { display: none !important; }

/* ── 로고: 항상 수평·수직 중앙 ── */
.header-logo {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    flex: none !important;
    margin: 0 !important;
}
.header-logo img {
    height: 26px !important;
    width: auto !important;
    display: block !important;
}

/* 메인: 흰색 로고 / 서브: 다크 로고 */
#index .logo-default            { display: block !important; }
#index .logo-dark               { display: none  !important; }
.wrap:not(#index) .logo-default { display: none  !important; }
.wrap:not(#index) .logo-dark    { display: block !important; }

/* ── 햄버거 버튼: 위치·크기·색상 완전 고정 ──
   default.css @1024px에서 flex 흐름 안에 배치되는 것을
   !important로 끊고 absolute 우측 중앙으로 고정 */
.m-nav-btn {
    display: flex !important;
    position: absolute !important;
    right: 16px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    left: auto !important;
    flex: none !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    width: 22px !important;
    height: 17px !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    cursor: pointer;
    z-index: 10;
}
.m-nav-btn span {
    display: block !important;
    width: 100% !important;
    height: 2px !important;
    border-radius: 1px !important;
    transition: all 0.3s;
}
/* 메인: 흰색 / 서브: 진한 */
#index .m-nav-btn span            { background: #fff !important; }
.wrap:not(#index) .m-nav-btn span { background: #333 !important; }

/* ── fixed 헤더 높이만큼 콘텐츠 여백 보정 ── */
#index { padding-top: 0 !important; }
.sub, #board, #content { padding-top: 52px !important; }

/* ══════════════════════════════════════
   모바일 드로어 (#m-nav)
══════════════════════════════════════ */
#m-nav {
    position: fixed;
    top: 0; right: -100%;
    width: 100%; height: 100vh;
    z-index: 2000;
    visibility: hidden;
    transition: right 0.35s cubic-bezier(0.4,0,0.2,1), visibility 0.35s;
}
#m-nav.active { right: 0; visibility: visible; }

.m-nav-inner {
    position: absolute;
    top: 0; right: 0;
    width: 84%; max-width: 300px;
    height: 100%;
    background: #fff;
    z-index: 2;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 24px rgba(0,0,0,0.13);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.m-nav-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 16px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}
.m-nav-logo img { height: 22px; width: auto; }
.m-nav-close {
    background: none; border: none;
    font-size: 19px; color: #888;
    cursor: pointer; padding: 4px;
    transition: color var(--tr);
}
.m-nav-close:hover { color: #222; }

.m-gnb { flex: 1; overflow-y: auto; }
.m-gnb > ul { padding: 6px 0; }
.m-gnb-item > a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    font-size: 14.5px;
    font-weight: 500;
    color: #222;
    letter-spacing: -0.03em;
    border-bottom: 1px solid #f3f3f3;
    transition: color 0.2s, background 0.2s;
}
.m-gnb-item > a:hover { color: var(--c-navy); background: #f8f8f8; }

.m-gnb-sub { background: #f8f8f8; }
.m-gnb-sub li a {
    display: block;
    padding: 9px 16px 9px 28px;
    font-size: 13px;
    color: #666;
    border-bottom: 1px solid #eee;
    letter-spacing: -0.02em;
    transition: color 0.2s;
}
.m-gnb-sub li a::before { content: '·'; margin-right: 5px; opacity: 0.5; }
.m-gnb-sub li a:hover { color: var(--c-navy); }

.m-nav-footer {
    padding: 16px;
    border-top: 1px solid #eee;
    flex-shrink: 0;
}
.m-nav-sns { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.m-nav-sns a { display: flex; align-items: center; opacity: 0.72; transition: opacity 0.2s; }
.m-nav-sns a:hover { opacity: 1; }
.m-nav-sns img { width: 24px; height: auto; }
.m-nav-tel-label {
    display: block;
    font-size: 10px; color: #aaa;
    letter-spacing: 0.06em;
    margin-bottom: 3px;
    text-transform: uppercase;
}
.m-nav-tel-num {
    font-size: 18px; font-weight: 700;
    color: var(--c-navy); letter-spacing: -0.04em;
}
.m-nav-dim {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.44);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.35s;
}
#m-nav.active .m-nav-dim { opacity: 1; }

/* ══════════════════════════════════════
   메인 비주얼
══════════════════════════════════════ */
#m-visual { min-height: 50svh; }
#visual-bg-img { object-position: 65% top; }

.visual-content {
    min-height: 50svh;
    align-items: center;
    padding: 80px 16px 80px;
}
#m-visual .txt-box {
    max-width: 100%;
    text-align: center;
}
#m-visual .sub-title  { font-size: 16px; margin-bottom: 10px; }
#m-visual .main-title { font-size: 42px; line-height: 1.18; }
#m-visual .main-title span { font-size: 18px; margin-top: 6px; }
#m-visual .desc {
    margin-top: 16px;
    font-size: 15px;
    line-height: 1.5;
    max-width: 100%;
}
.visual-btns { margin-top: 10px; }
.apply-btn {
    min-width: 180px;
    height: 40px;
    font-size: 14px;
    padding: 0 22px;
}

/* 퀵탭 */
.quick-tabs { width: 100%; max-width: 100%; left: 0; transform: none; }
.quick-tabs ul { grid-template-columns: repeat(2, 1fr); }
.quick-tabs a {
    height: 48px;
    font-size: 12px;
    letter-spacing: -0.04em;
    padding: 0 6px;
}

/* ══════════════════════════════════════
   메인 배너
══════════════════════════════════════ */
.main-banner-wrap { overflow-x: auto; }

/* ══════════════════════════════════════
   메인 바
══════════════════════════════════════ */
#m-bar { padding: 0; }
#m-bar .owl-stage,
#m-bar .owl-stage-outer,
#m-bar .owl-carousel { height: 64px; }
#m-bar .owl-carousel .owl-item img { max-height: 64px; }
#m-bar .bxpager .owl-prev,
#m-bar .bxpager .owl-next { display: none; }

/* ══════════════════════════════════════
   원장 인트로
══════════════════════════════════════ */
#doctor-intro { padding: 56px 0 60px; }
.doctor-intro-wrap {
    flex-direction: column;
    gap: 28px;
    padding: 0 16px;
}
.doctor-photo-box { border-radius: 6px; max-width: 100%; }
.doctor-photo-box .vertical-text { font-size: 9px; top: 12px; right: 10px; }
.quote-mark   { font-size: 44px; }
.doctor-message { font-size: 22px; line-height: 1.5; margin-bottom: 20px; }
.doctor-desc p  { font-size: 14px; line-height: 1.82; margin-bottom: 14px; }
.doctor-sign    { font-size: 13px; margin-top: 20px; }
.doctor-sns-row { flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.doctor-sns-row .btn-kakao { height: 40px; padding: 0 16px; font-size: 13px; }
.doctor-sns-row .sns-icons a { width: 40px; height: 40px; font-size: 17px; }

/* ══════════════════════════════════════
   Signature Surgery
══════════════════════════════════════ */
/* ── Signature: 사진→텍스트→사진→텍스트 순서 고정 ── */
.signature-layout {
    display: flex;
    flex-direction: column;
}
/* 각 row를 flex 컬럼으로 전환 */
.signature-row {
    display: flex;
    flex-direction: column;
}
/* 기본 row: 사진 위 → 텍스트 아래 */
.signature-row .signature-thumb { order: 1; }
.signature-row .signature-text  { order: 2; }
/* reverse row도 동일하게: 사진 위 → 텍스트 아래 */
.signature-row.reverse .signature-thumb { order: 1; }
.signature-row.reverse .signature-text  { order: 2; }

.signature-thumb,
.signature-text { min-height: auto; }
.signature-thumb img { min-height: auto; aspect-ratio: 4/3; }
.signature-text { padding: 32px 20px; }

.signature-text h3        { font-size: 24px; margin-bottom: 12px; }
.signature-text .sub-copy { font-size: 13.5px; line-height: 1.72; margin-bottom: 18px; }
.signature-text ul         { gap: 8px; }
.signature-text ul li      { font-size: 13px; }

/* ══════════════════════════════════════
   Skin & Nutrition
══════════════════════════════════════ */
.grid-4-col,
.ds-grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
#category .item p { font-size: 12px; bottom: 12px; }

/* ══════════════════════════════════════
   브랜드 배너
══════════════════════════════════════ */
.banner-inner { padding: 72px 20px; }
#brand-banner .txt-box h3 { font-size: 26px; }
#brand-banner .txt-box p  { font-size: 14px; margin-top: 16px; }

/* ══════════════════════════════════════
   After Care Program
══════════════════════════════════════ */
#after-care .inner { padding: 0 16px; }
.after-care-wrap   { flex-direction: column; gap: 24px; margin-top: 28px; flex-direction: column-reverse;}
.care-left  { max-width: 100%; min-height: auto; }
.care-kicker { font-size: 10px; margin-bottom: 10px; }
.care-title { font-size: 30px; text-align: left; margin-bottom: 12px; }
.care-desc  { font-size: 14px; text-align: left; margin-bottom: 18px; }
.care-detail-list li strong { font-size: 15px; }
.care-detail-list span      { font-size: 12px; }
.care-bottom-box { padding-top: 0px; display: flex; }
.care-nav { justify-content: center; gap: 20px; }
.care-count strong { font-size: 44px; }
.care-count span   { font-size: 18px; }
.care-right { width: 100%; }
.care-image-box { min-height: 260px; border-radius: var(--r-sm); }
.care-image-box img { height: 260px; min-height: 260px; }

/* ══════════════════════════════════════
   Floor Guide
══════════════════════════════════════ */
#philosophy { padding: var(--sec-py) 0; }
.phi-list { padding: 0 16px; }
.phi-item { height: 148px; margin-bottom: 10px; }
.phi-item .overlay { padding: 18px; }
.phi-item h3 { font-size: 22px; }
.phi-item p  { font-size: 12px; margin-top: 4px; }
.phi-desc p  { font-size: 13px; line-height: 1.9; }
.phi-desc .highlight { padding: 14px 16px; font-size: 14px; }

/* ══════════════════════════════════════
   연락처 지도
══════════════════════════════════════ */
#contact-map { padding: 0; }
.contact-map-wrap { flex-direction: column; }
.map-area { height: 260px; order: 1; }
.map-area img,
.map-area iframe { height: 260px; }
.contact-card-inner {
    position: relative;
    top: auto; left: auto;
    transform: none;
    pointer-events: auto;
    height: auto;
    order: 2;
    padding: 0;
}
.contact-info-card {
    position: relative;
    top: auto; left: auto;
    transform: none;
    width: 100%; max-width: 100%;
    box-shadow: none;
    padding: 36px 20px 40px;
    border-radius: 0;
}
.contact-tel { font-size: 36px; margin-bottom: 20px; }
.contact-sns { flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.contact-sns .btn-kakao { height: 40px; padding: 0 16px; font-size: 13px; }
.contact-sns .sns-icons a { width: 40px; height: 40px; font-size: 17px; }
.contact-hours { width: 100%; }
.contact-hours p { gap: 10px; font-size: 13.5px; margin-bottom: 8px; }
.contact-hours strong { flex: 0 0 68px; }
.contact-note { width: 100%; margin-top: 18px; }
.contact-note li { font-size: 12px; }

/* ══════════════════════════════════════
   공지사항
══════════════════════════════════════ */
#m-notice .inner { padding: 0 16px; }
#m-notice .sec-title h2 { font-size: 24px; }
#m-notice ul li a    { font-size: 13.5px; }
#m-notice ul li .date { font-size: 11px; }

/* ══════════════════════════════════════
   유튜브 Swiper
══════════════════════════════════════ */
#m-youtube .inner { padding: 0 16px; }
#m-youtube .sec-title h2 { font-size: 22px; }
.youtube-slider-wrap { padding: 0 40px; }
.yt-nav { width: 36px; height: 36px; font-size: 14px; }
.yt-prev { left: 4px; }
.yt-next { right: 4px; }

/* ══════════════════════════════════════
   서브 페이지
══════════════════════════════════════ */
#svisual { height: 160px; }
#svisual .sv-tit    { font-size: 20px; }
#svisual .sv-location { font-size: 11px; }
.snb a, .ssnb a { padding: 10px 14px; font-size: 13px; }

/* 게시판 */
.tbl_wrap th,
.tbl_wrap td { padding: 8px 10px; font-size: 13px; }

/* 폼 */
.frm_wrap input[type=text],
.frm_wrap input[type=email],
.frm_wrap input[type=tel],
.frm_wrap input[type=password],
.frm_wrap textarea,
.frm_wrap select { height: 42px; font-size: 14px; }

/* ══════════════════════════════════════
   그누보드 col 모바일 재정의
══════════════════════════════════════ */
.col-xs-3,
.col-xs-4,
.col-xs-6,
.col-xs-12 { float: none; }

/* ══════════════════════════════════════
   F-COMMUNITY (모바일)
══════════════════════════════════════ */
#f-community { overflow-x: auto; }
.f-icon-list { min-width: 480px; }
.f-icon-list li a,
.f-icon-list li span { padding: 14px 6px; }
.f-icon-list li img { max-height: 48px; }

/* ══════════════════════════════════════
   FOOTER (모바일)
══════════════════════════════════════ */
.footer-policy { overflow-x: auto; }
.footer-policy-list {
    flex-wrap: nowrap;
    white-space: nowrap;
    height: auto;
    padding: 12px 0;
}
.footer-policy-list li { padding: 0 12px; }
.footer-policy-list li a { font-size: 11px; }

.footer-info { padding: 24px 0 28px; }
.footer-info .container-lg { padding: 0 16px; }
.footer-info-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
.footer-logo img { max-width: 140px; opacity: 0.65; }
.footer-biz    { font-size: 11px; line-height: 1.8; }
.footer-address { font-size: 11px; }
.footer-copy    { font-size: 10px; }

} /* end @media 767px */


