/* ============================================================
   신세계영상의학과 서부점 — 공통 스타일시트
   병원 홈페이지 공통 개발 로직 v1.2 기준
   ============================================================ */

/* ---------- 디자인 토큰 (:root) ---------- */
:root {
  --accent: #D9752F;        /* 로고 오렌지 — 메인 포인트(아이콘/장식용) */
  --accent-deep: #A6511C;   /* 진한 오렌지 — 텍스트/버튼 (WCAG AA 대비 확보) */
  --accent-darker: #7A3B14; /* 가장 진한 오렌지 — hover */
  --accent-soft: #FBEAD9;   /* 연한 오렌지 — 배경/뱃지 */
  --accent-navy: #24557B;   /* 로고 보조색(네이비) — 아주 제한적으로만 사용 */
  --ink: #2A2521;           /* 기본 텍스트 (웜 그레이 블랙) */
  --ink-soft: #6B6459;      /* 보조 텍스트 */
  --paper: #FDFBF9;         /* 배경 */
  --paper-deep: #F3ECE3;    /* 진한 배경 */
  --line: #E8DFD3;          /* 구분선 */
  --white: #fff;
  --danger: #C0392B;

  --font-head: 'Pretendard', 'Noto Sans KR', sans-serif;
  --font-body: 'Noto Sans KR', 'Pretendard', sans-serif;
  --font-num: 'Inter', 'Pretendard', sans-serif;

  --radius: 6px;
  --radius-sm: 3px;
  --shadow-card: 0 2px 14px rgba(40, 28, 16, 0.08);
  --shadow-pop: 0 12px 40px rgba(40, 28, 16, 0.18);
  --header-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: break-word;
}
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  margin: 0;
  color: var(--ink);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; white-space: nowrap; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 섹션 제목 공통 패턴 ---------- */
.section-eyebrow {
  display: inline-block;
  font-family: var(--font-num);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent-deep);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-title {
  font-size: 30px;
  line-height: 1.35;
  position: relative;
  padding-bottom: 18px;
  margin-bottom: 8px;
}
.section-title::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 44px; height: 3px;
  background: var(--accent);
}
.section-title.center { text-align: center; }
.section-title.center::after { left: 50%; transform: translateX(-50%); }
.section-desc { color: var(--ink-soft); font-size: 15.5px; margin-top: 14px; }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600; font-size: 15px;
  border: 1px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .1s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent-deep); color: var(--white); }
.btn-primary:hover { background: var(--accent-darker); }
.btn-outline { background: transparent; color: var(--accent-deep); border-color: var(--line); }
.btn-outline:hover { background: var(--accent-soft); border-color: var(--accent); }
.btn-outline-invert { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.btn-outline-invert:hover { background: rgba(255,255,255,.12); }
.btn-ghost { background: var(--accent-soft); color: var(--accent-deep); }
.btn-ghost:hover { background: #f3dcc0; }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }
.btn-compact { padding: 8px 18px; }
.btn-block { width: 100%; }

/* ---------- 헤더 ---------- */
#site-header-mount { position: relative; z-index: 200; }
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
  z-index: 200;
}
.site-header .header-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 24px;
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 36px; width: auto; }
.brand-text { font-family: var(--font-head); font-weight: 700; font-size: 19px; color: var(--accent-deep); letter-spacing: -0.02em; }
.brand-text small { display: block; font-family: var(--font-num); font-weight: 500; font-size: 11px; letter-spacing: .1em; color: var(--accent); }

.gnb { display: flex; gap: 6px; }
.gnb > li { position: relative; }
.gnb > li > a {
  display: block; padding: 27px 18px; font-weight: 600; font-size: 15.5px; color: var(--ink);
}
.gnb > li > a:hover, .gnb > li.open > a { color: var(--accent); }
.submenu {
  display: none;
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  min-width: 168px;
  background: var(--accent-deep);
  padding: 10px 0;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-pop);
}
.submenu a { display: block; padding: 11px 20px; color: rgba(255,255,255,.82); font-size: 14.5px; }
.submenu a:hover { color: var(--white); background: rgba(255,255,255,.06); }

@media (hover: hover) and (pointer: fine) {
  .gnb > li:hover .submenu { display: block; }
}
@media (hover: none), (pointer: coarse) {
  .gnb > li .submenu { display: none; }
  .gnb > li.open .submenu { display: block; }
}

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-tel { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; }
.header-tel small { font-size: 11px; color: var(--ink-soft); }
.header-tel strong { font-family: var(--font-num); font-size: 17px; color: var(--accent-deep); }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  width: 44px; height: 44px; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white);
}
.hamburger span { width: 18px; height: 2px; background: var(--ink); }

/* 모바일 전체메뉴 */
.mobile-menu {
  position: fixed; inset: 0; z-index: 300;
  background: var(--white);
  display: none;
  overflow-y: auto;
}
.mobile-menu.open { display: block; }
.mobile-menu-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 22px; border-bottom: 1px solid var(--line);
}
.mobile-menu-head .brand-text { color: var(--accent-deep); }
.mobile-menu-head .brand-text small { color: var(--accent-deep); }
.mobile-close { background: none; border: none; color: var(--ink-soft); font-size: 26px; line-height: 1; }
.mobile-menu-body { padding: 8px 22px 40px; }
.mobile-menu-body > li { border-bottom: 1px solid var(--line); }
.mobile-menu-body > li > a { display: block; padding: 16px 4px; color: var(--ink); font-weight: 600; font-size: 16.5px; }
.mobile-menu-body > li > a:hover { color: var(--accent); }
.mobile-menu-body .submenu {
  display: block !important; position: static !important; background: none !important;
  box-shadow: none !important; padding: 0 0 10px !important; transform: none !important;
}
.mobile-menu-body .submenu a { display: block !important; color: var(--ink-soft) !important; padding: 9px 4px !important; font-size: 14.5px !important; }

/* ---------- PC 퀵메뉴 (우측 고정) ---------- */
.quick-menu {
  position: fixed; right: 20px; top: 50%; transform: translateY(-50%);
  z-index: 150;
  display: flex; flex-direction: column; gap: 8px;
}
.quick-menu a, .quick-menu button {
  width: 56px; height: 56px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; font-size: 10.5px; color: var(--ink); font-weight: 600;
  box-shadow: var(--shadow-card);
}
.quick-menu a:hover, .quick-menu button:hover { background: var(--accent-deep); color: var(--white); border-color: var(--accent-deep); }
.quick-menu .qicon { width: 19px; height: 19px; margin-bottom: 1px; }
.quick-menu .qtop { background: var(--accent-deep); color: var(--white); border-color: var(--accent-deep); }
@media (max-width: 1024px) { .quick-menu { display: none; } }

/* ---------- 모바일 하단 탭바 ---------- */
.tabbar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 190;
  background: var(--white);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar ul { display: flex; }
.tabbar li { flex: 1; }
.tabbar a, .tabbar button {
  width: 100%; background: none; border: none;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 9px 2px 8px; font-size: 10.5px; color: var(--ink-soft); font-weight: 600;
}
.tabbar .ticon { width: 19px; height: 19px; margin-bottom: 1px; }
@media (max-width: 767px) { .tabbar { display: block; } }

/* ---------- 진료시간 모달 ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(28,22,16,.55); z-index: 400;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--white); border-radius: var(--radius); max-width: 420px; width: 100%;
  max-height: calc(100vh - 40px); overflow-y: auto;
  padding: 30px 28px; box-shadow: var(--shadow-pop);
}
.modal-box h3 { font-size: 20px; margin-bottom: 18px; }
.hours-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.hours-table td, .hours-table th { padding: 9px 6px; border-bottom: 1px solid var(--line); text-align: left; }
.hours-table .today { color: var(--accent-deep); font-weight: 700; }
.modal-close-btn { margin-top: 20px; }

/* ---------- 메인 화면 팝업 ---------- */
.popup-backdrop {
  position: fixed; inset: 0; background: rgba(28,22,16,.55); z-index: 500;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.popup-row {
  display: flex; gap: 18px; flex-wrap: wrap; align-items: flex-start; justify-content: center;
  max-width: 100%; max-height: calc(100vh - 40px); overflow-y: auto;
}
.popup-box { flex: none; }
.popup-card {
  width: 380px; max-width: calc(46vw - 20px);
  background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-pop);
}
.popup-card img { width: 100%; display: block; }
.popup-box-text { padding: 26px 24px; }
.popup-box-text h3 { font-size: 18px; margin: 0; }
.popup-box-text p { color: var(--ink-soft); margin-top: 12px; font-size: 14px; line-height: 1.7; }
.popup-box-actions { display: flex; border-top: 1px solid var(--line); }
.popup-box-actions button {
  flex: 1; padding: 12px; border: none; font-size: 12.5px; cursor: pointer;
}
.popup-box-actions .popup-hide-today { background: var(--white); color: var(--ink-soft); border-radius: 0 0 0 var(--radius); }
.popup-box-actions .popup-close { background: var(--accent-deep); color: #fff; border-radius: 0 0 var(--radius) 0; }

/* 모바일 - 나란히 두면 화면을 너무 많이 차지하므로, 각 팝업이 겹쳐서(위 팝업부터) 표시되도록 전환 */
@media (max-width: 760px) {
  .popup-backdrop { background: transparent; padding: 0; }
  .popup-row { display: block; max-height: none; overflow: visible; }
  .popup-box {
    position: fixed; inset: 0; background: rgba(28,22,16,.55);
    display: flex; align-items: center; justify-content: center; padding: 20px;
  }
  .popup-card { width: 100%; max-width: 340px; }
}

/* ---------- 카드 (직선 사각형) ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.card:hover { box-shadow: var(--shadow-card); transform: translateY(-3px); border-color: var(--accent); }

/* ---------- 게시판 공통 ---------- */
.board-section { padding: 60px 0 90px; }
.board-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; gap: 12px; flex-wrap: wrap; }
#categoryTabsNav { display: flex; gap: 8px; flex-wrap: wrap; }
#categoryTabsNav button {
  padding: 9px 18px; border: 1px solid var(--line); background: var(--white);
  border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; color: var(--ink-soft);
}
#categoryTabsNav button.active { background: var(--accent-deep); border-color: var(--accent-deep); color: var(--white); }

#boardGrid { display: block; }
.post-list-item {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 4px; border-bottom: 1px solid var(--line);
  transition: background .15s;
}
.post-list-item:first-child { border-top: 1px solid var(--line); }
.post-list-item:hover { background: var(--paper-deep); }
.post-list-item .pli-thumb { width: 88px; height: 66px; flex: none; object-fit: cover; border-radius: var(--radius-sm); background: var(--paper-deep); }
.post-list-item .pli-body { flex: 1; min-width: 0; }
.post-list-item .post-cat { font-size: 12px; color: var(--accent-deep); font-weight: 700; letter-spacing: .04em; }
.post-list-item h2 { font-size: 16px; font-weight: 600; margin: 4px 0 6px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post-list-item p { font-size: 13.5px; color: var(--ink-soft); margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post-list-item .post-meta { font-size: 12.5px; color: var(--ink-soft); font-family: var(--font-num); flex: none; text-align: right; min-width: 90px; }
@media (max-width: 560px) {
  .post-list-item { flex-wrap: wrap; }
  .post-list-item .pli-thumb { width: 70px; height: 54px; }
  .post-list-item .post-meta { min-width: 0; margin-top: 4px; }
}

.board-list-table { width: 100%; border-collapse: collapse; }
.board-list-table th { text-align: left; padding: 12px; border-bottom: 2px solid var(--accent-deep); font-size: 13.5px; color: var(--ink); }
.board-list-table td { padding: 14px 12px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.board-list-table tr:hover td { background: var(--paper-deep); }

.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 36px; }
.pagination button { width: 36px; height: 36px; border: 1px solid var(--line); background: var(--white); border-radius: var(--radius-sm); font-family: var(--font-num); }
.pagination button.active { background: var(--accent-deep); border-color: var(--accent-deep); color: var(--white); }

/* ---------- 표 공통 (수가표 등) ---------- */
.data-table { width: 100%; border-collapse: collapse; background: var(--white); }
.data-table th { background: var(--accent-deep); color: var(--white); padding: 11px 10px; font-size: 13.5px; text-align: left; }
.data-table td { padding: 11px 10px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.data-table tr:nth-child(even) td { background: var(--paper); }
.data-table .price { font-family: var(--font-num); font-weight: 600; text-align: right; }

/* ---------- 리치 텍스트 에디터 (블로그형) ---------- */
.rte-root { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.rte-toolbar { display: flex; align-items: center; gap: 4px; padding: 8px 10px; background: var(--paper-deep); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.rte-btn { width: 32px; height: 32px; border: 1px solid transparent; border-radius: 6px; background: none; color: var(--ink); display: flex; align-items: center; justify-content: center; font-size: 14px; font-family: Georgia, serif; }
.rte-btn:hover { background: var(--white); border-color: var(--line); }
.rte-btn.active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-deep); }
.rte-sep { width: 1px; height: 20px; background: var(--line); margin: 0 2px; }
.rte-select { height: 32px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); font-size: 12.5px; padding: 0 6px; }
.rte-body {
  min-height: 220px; max-height: 480px; overflow-y: auto;
  padding: 16px; font-size: 14.5px; line-height: 1.8; color: var(--ink);
  outline: none;
}
.rte-body:empty::before { content: attr(data-placeholder); color: var(--ink-soft); }
.rte-body img { max-width: 100%; border-radius: 6px; margin: 10px 0; display: block; }
.rte-body a { color: var(--accent); text-decoration: underline; }
.rte-body ul { padding-left: 22px; }
.rte-uploading { padding: 8px 16px; font-size: 12.5px; color: var(--accent-deep); background: var(--accent-soft); }
.rte-body img { cursor: pointer; outline: 2px solid transparent; transition: outline-color .15s; }
.rte-body img:hover { outline-color: var(--accent-soft); }
.rte-img-toolbar {
  position: fixed; z-index: 900;
  display: flex; align-items: center; gap: 4px;
  background: var(--ink); color: #fff; padding: 6px 8px; border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,.25); font-size: 12px; white-space: nowrap;
}
.rte-img-toolbar .rte-img-label { color: rgba(255,255,255,.5); font-size: 11px; padding: 0 2px 0 4px; }
.rte-img-toolbar button { background: none; border: none; color: #fff; padding: 5px 8px; border-radius: 5px; font-size: 12px; display: flex; align-items: center; }
.rte-img-toolbar button:hover { background: rgba(255,255,255,.15); }
.rte-img-toolbar button .icon { width: 15px; height: 15px; }
.rte-img-toolbar .rte-img-sep { width: 1px; height: 18px; background: rgba(255,255,255,.2); margin: 0 2px; }
.rte-img-toolbar .rte-img-del:hover { background: var(--danger); }

/* ---------- 폼 ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 14.5px; background: var(--white);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }

/* ---------- 푸터 ---------- */
.site-footer { background: var(--paper-deep); color: var(--ink-soft); padding: 56px 0 100px; border-top: 1px solid var(--line); }
@media (min-width: 768px) { .site-footer { padding-bottom: 56px; } }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.footer-brand .brand-text { color: var(--accent-deep); }
.footer-brand .brand-text small { color: var(--accent-deep); }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); background: var(--white); }
.footer-social a:hover { color: var(--accent); border-color: var(--accent); }
.footer-social .icon { width: 16px; height: 16px; }
.footer-nav { display: flex; gap: 44px; flex-wrap: wrap; }
.footer-nav h5 { color: var(--ink); font-size: 13.5px; margin-bottom: 12px; letter-spacing: .04em; }
.footer-nav a { display: block; padding: 5px 0; font-size: 13.5px; color: var(--ink-soft); }
.footer-nav a:hover { color: var(--accent); }
.footer-meta { padding-top: 24px; font-size: 12.5px; line-height: 1.9; border-top: 1px solid var(--line); margin-top: 30px; }
.footer-meta strong { color: var(--ink); }

/* ---------- 유틸 ---------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.badge { display: inline-block; padding: 5px 12px; background: var(--accent-soft); color: var(--accent-deep); font-size: 12.5px; font-weight: 700; border-radius: 999px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff; padding: 10px 16px; z-index: 500; }
.skip-link:focus { left: 10px; top: 10px; }

/* ---------- 아이콘 (라인아이콘 공통) ---------- */
.icon { width: 20px; height: 20px; flex: none; display: inline-block; vertical-align: -4px; }
.icon-lg { width: 26px; height: 26px; }
.icon-sm { width: 15px; height: 15px; vertical-align: -2px; }

/* 안전장치 — innerHTML로 삽입되는 원본 SVG가 클래스 없이 들어와도
   항상 부모 아이콘 컨테이너 크기에 꽉 차도록 강제한다.
   (SVG는 width/height 속성이 없으면 브라우저 기본값인 300x150 등으로 렌더링되어
   의도치 않게 거대해지는 문제가 있어, 부모가 어떤 아이콘류 클래스든
   자식 svg는 항상 100% 채움으로 고정한다.) */
.icon svg, .dicon svg, .ico svg, .ri-ico svg, .ei-ico svg, .dh-icon svg,
.qtoggle svg, .star-input button svg, .stars svg, .r-stars svg,
[class*="-ico"] svg, [class*="Icon"] svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ---------- 스크롤 리빌 애니메이션 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1);
  transition-delay: calc(var(--rd, 0) * 90ms);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 이미지 라이트박스 ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 600;
  background: rgba(18, 14, 10, .94);
  display: none; align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lb-stage { position: relative; width: 100%; height: 100%; overflow: hidden; }
.lb-track { display: flex; height: 100%; transition: transform .35s cubic-bezier(.16,1,.3,1); touch-action: pan-y; will-change: transform; }
.lb-slide { flex: 0 0 100%; display: flex; align-items: center; justify-content: center; box-sizing: border-box; padding: 70px 90px; position: relative; }
.lb-slide img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; box-shadow: 0 24px 70px rgba(0,0,0,.5); user-select: none; -webkit-user-drag: none; }
.lb-cap { position: absolute; bottom: 26px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.85); font-size: 14px; font-weight: 600; }
.lb-close {
  position: absolute; top: 18px; right: 20px; z-index: 3;
  background: rgba(255,255,255,.08); border: none; border-radius: 50%;
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  color: #fff; cursor: pointer;
}
.lb-close:hover { background: rgba(255,255,255,.18); }
.lb-close .icon { width: 18px; height: 18px; transform: rotate(45deg); }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  background: rgba(255,255,255,.1); border: none; border-radius: 50%;
  width: 52px; height: 52px; display: flex; align-items: center; justify-content: center;
  color: #fff; cursor: pointer;
}
.lb-nav:hover { background: rgba(255,255,255,.2); }
.lb-nav .icon { width: 20px; height: 20px; }
.lb-prev { left: 22px; }
.lb-prev .icon { transform: scaleX(-1); }
.lb-next { right: 22px; }
.lb-counter { position: absolute; top: 28px; left: 26px; z-index: 3; color: rgba(255,255,255,.65); font-family: var(--font-num); font-size: 13px; letter-spacing: .04em; }
.lb-trigger { cursor: zoom-in; }

@media (max-width: 640px) {
  .lb-slide { padding: 20px 16px; }
  .lb-nav { width: 42px; height: 42px; }
  .lb-nav .icon { width: 17px; height: 17px; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .lb-close { top: 12px; right: 12px; }
  .lb-counter { top: 18px; left: 16px; }
}


/* ---------- 반응형 ---------- */
@media (max-width: 1024px) {
  .gnb { display: none; }
  .header-tel { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 767px) {
  :root { --header-h: 64px; }
  .site-header .header-inner { padding: 0 16px; }
  .brand img { height: 28px; }
  .brand-text { font-size: 16px; }
  .section-title { font-size: 23px; }
  .container { padding: 0 18px; }
}

/* 터치 타겟 최소 확보 */
button, a.btn, .tabbar a, .quick-menu a, .quick-menu button { min-height: 44px; }
