/* =========================================================
   common.css — 디자인 토큰 · 폰트 · 헤더(GNB/메가메뉴) · 푸터 · 버튼
   브랜드 토큰은 Figma variable 기준: main #86c701 / ink #222 …
   ========================================================= */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");
@import url("https://cdn.jsdelivr.net/gh/moonspam/NanumSquareNeo@1.0/nanumsquareneo.css");

:root {
  /* color */
  --green: #86c701;
  --green-dark: #6ea300;
  --ink: #222222;
  --gray: #777777;
  --gray-3: #a3a3a3;
  --line: #ededed;
  --white: #ffffff;
  --footer-bg: #f7f7f7;
  --main-blue: #1a4f9c;   /* 로고/모달 포인트 블루 */
  --focus: #86c701;

  /* type */
  --font-head: "NanumSquareNeo", "Pretendard", sans-serif;
  --font-body: "Pretendard", sans-serif;

  /* layout */
  --container: 1620px;
  --gutter: 150px;
  --header-h: 100px;

  /* motion tokens */
  --e-out: cubic-bezier(.2, .7, .2, 1);   /* decelerate (등장) */
  --e-in: cubic-bezier(.4, 0, 1, 1);      /* accelerate (퇴장) */
  --e-back: cubic-bezier(.34, 1.56, .64, 1);
  --e-expo: cubic-bezier(.16, 1, .3, 1);  /* cinematic expo-out (프리미엄 감속) */
  --t-state: .18s;
  --t-enter: .8s;
}

html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-x: hidden;   /* 오프캔버스 모바일 내비(translateX(100%))가 가로 스크롤 만들지 않도록 */
}

/* ---------- layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; }
.pc-only { display: inline; }
.mo-only { display: none; }

/* 서브페이지 리빌 (IntersectionObserver → .in). 메인 리빌은 main.css가 담당 */
/* 시네마틱 expo-out + 미세 스케일로 정적이지 않게(등장에 무게감) */
[data-reveal] {
  opacity: 0; transform: translateY(48px) scale(.98);
  transition: opacity .9s var(--e-expo), transform .9s var(--e-expo);
  will-change: opacity, transform;
}
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-reveal-d="1"] { transition-delay: .1s; }
[data-reveal][data-reveal-d="2"] { transition-delay: .2s; }
[data-reveal][data-reveal-d="3"] { transition-delay: .3s; }

/* 스태거 그룹: 컨테이너에 .reveal-group + [data-reveal], 직계 자식이 순차 등장.
   각 페이지 CSS/템플릿에서 그리드·리스트에 붙여 "살아있는" 느낌을 준다. */
.reveal-group > * { opacity: 0; transform: translateY(30px); transition: opacity .7s var(--e-expo), transform .7s var(--e-expo); }
.reveal-group.in > * { opacity: 1; transform: none; }
.reveal-group.in > *:nth-child(1) { transition-delay: .04s; }
.reveal-group.in > *:nth-child(2) { transition-delay: .12s; }
.reveal-group.in > *:nth-child(3) { transition-delay: .20s; }
.reveal-group.in > *:nth-child(4) { transition-delay: .28s; }
.reveal-group.in > *:nth-child(5) { transition-delay: .36s; }
.reveal-group.in > *:nth-child(6) { transition-delay: .44s; }
.reveal-group.in > *:nth-child(7) { transition-delay: .52s; }
.reveal-group.in > *:nth-child(8) { transition-delay: .60s; }

/* 이미지 스크롤 등장 — 클립 마스크(아래로 드러남). transform 미사용→hover 줌과 충돌 없음.
   .js-anim 게이트로 JS 없으면 그냥 정상 노출(폴백 안전). */
.reveal-img { overflow: hidden; }
.js-anim .reveal-img > img { clip-path: inset(0 0 100% 0); transition: clip-path 1s var(--e-expo); }
.js-anim .reveal-img.in > img { clip-path: inset(0 0 0 0); }

@media (prefers-reduced-motion: reduce) {
  [data-reveal], .reveal-group > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  .js-anim .reveal-img > img { clip-path: none !important; }
}

/* =========================================================
   HEADER / GNB
   ========================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  padding: 0 50px;
  color: var(--white);
  background: transparent; /* 부모 GeneratePress의 .site-header 흰 배경 제거 → 최상단 투명(히어로 위 흰 로고 노출) */
  transition: background-color .35s var(--e-out), color .35s var(--e-out),
              box-shadow .35s var(--e-out), height .35s var(--e-out);
}
.site-header .header-inner {
  position: relative; z-index: 2; /* mega-bg(z1) 위 → 하위메뉴가 흰 패널에 가리지 않음 */
  width: 100%; display: flex; align-items: center; gap: 40px;
}
/* 기본(투명) 상태에서 밝은 히어로 위 흰 로고·글씨 가독성 확보용 상단 그라디언트 스크림.
   헤더가 흰 배경(is-solid/is-mega)으로 바뀌면 사라짐. */
.site-header::before {
  content: ""; position: absolute; inset: 0 0 auto 0;
  height: calc(var(--header-h) + 46px); z-index: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,.42), rgba(0,0,0,0));
  opacity: 1; transition: opacity .35s var(--e-out);
}
.site-header.is-solid::before, .site-header.is-mega::before { opacity: 0; }

/* logo — 두 버전 겹쳐두고 상태에 따라 페이드 (Figma 183.5×40.78) */
.logo { position: relative; flex-shrink: 0; display: block; width: 200px; height: 41px; }
.logo img { position: absolute; left: 0; top: 0; height: 41px; width: auto; transition: opacity .3s var(--e-out); }
.logo .logo-color { opacity: 0; }
.site-header.is-solid { background: var(--white); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.site-header.is-solid .logo .logo-white { opacity: 0; }
.site-header.is-solid .logo .logo-color { opacity: 1; }

/* 로그인 시 워드프레스 관리자 바(admin bar)에 헤더가 가려지지 않게 오프셋 (방문자에겐 영향 없음) */
.admin-bar .site-header { top: 32px; }
.admin-bar .mega-bg { top: calc(var(--header-h) + 32px); }
@media screen and (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
  .admin-bar .mega-bg { top: calc(var(--header-h) + 46px); }
}

/* nav */
.header-nav { flex: 1; display: flex; justify-content: center; }
.gnb { display: flex; gap: 0; }
.gnb-item { position: relative; }
.gnb-top {
  display: flex; align-items: center; height: var(--header-h);
  padding: 0 30px; font-size: 18px; font-weight: 500; letter-spacing: -.01em;
  position: relative; transition: color var(--t-state) ease;
}
.gnb-top::after {
  content: ""; position: absolute; left: 30px; right: 30px; bottom: 28px; height: 2px;
  background: var(--green); transform: scaleX(0); transform-origin: center;
  transition: transform .3s var(--e-out);
}
.gnb-item:hover .gnb-top,
.gnb-item:focus-within .gnb-top { color: var(--green); }
.gnb-item:hover .gnb-top::after,
.gnb-item:focus-within .gnb-top::after { transform: scaleX(1); }
.gnb-item.current .gnb-top { color: var(--green); }

/* mega panel — 헤더 hover 시 전체 열림 */
.gnb-sub {
  position: absolute; top: var(--header-h); left: 50%; transform: translateX(-50%) translateY(6px);
  display: flex; flex-direction: column; gap: 4px; padding-top: 16px;
  min-width: 168px; text-align: center; z-index: 5;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .28s var(--e-out), transform .28s var(--e-out);
}
.gnb-sub a {
  display: block; padding: 8px 10px; font-size: 16px; font-weight: 500;
  color: var(--ink); white-space: nowrap; border-radius: 6px;
  transition: color var(--t-state) ease, background-color var(--t-state) ease;
}
.gnb-sub a:hover, .gnb-sub a:focus-visible { color: var(--green); }

/* 메가 패널 배경 (헤더 아래 흰 판) */
.mega-bg {
  position: fixed; left: 0; right: 0; top: var(--header-h); height: 0;
  background: var(--white); border-top: 1px solid var(--line);
  box-shadow: 0 18px 30px rgba(0,0,0,.06);
  opacity: 0; transition: opacity .28s var(--e-out), height .28s var(--e-out);
  pointer-events: none; z-index: 1;
}
/* 헤더 영역 hover 시: 헤더를 흰색으로 + 메가 열기 */
.site-header.is-mega { background: var(--white); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.site-header.is-mega .logo .logo-white { opacity: 0; }
.site-header.is-mega .logo .logo-color { opacity: 1; }
/* 헤더 호버 시 전체 메가메뉴(모든 하위메뉴) 노출 */
.site-header.is-mega .gnb-sub { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.mega-bg.is-open { opacity: 1; height: 210px; }

/* right area */
.header-right { display: flex; align-items: center; gap: 30px; flex-shrink: 0; }
/* CONTACT US — Figma: 흰 배경 / #aaa 테두리 / #555 대문자 */
.btn-contact {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 20px; background: var(--white);
  border: 1px solid #aaa; border-radius: 20px;
  font-size: 14px; font-weight: 500; text-transform: uppercase; letter-spacing: .01em;
  color: #555; white-space: nowrap;
  transition: color var(--t-state) ease, border-color var(--t-state) ease, background-color var(--t-state) ease;
}
.btn-contact:hover { border-color: var(--green); color: var(--green); }
/* 언어 스위처 — 지구본 + 현재언어 + 캐럿, 클릭 시 드롭다운 (회전효과 없음) */
.lang-switch { position: relative; flex-shrink: 0; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 7px; color: inherit;
  font-size: 15px; font-weight: 500; line-height: 1; cursor: pointer;
  background: none; border: 0; padding: 0; box-shadow: none;
  transition: color var(--t-state) ease;
}
.lang-toggle:hover, .lang-toggle:focus, .lang-toggle:focus-visible,
.lang-toggle:active { background: none; box-shadow: none; }
.lang-toggle .lang-globe, .lang-toggle .lang-globe svg { width: 20px; height: 20px; display: block; max-width: none; }
.lang-toggle .lang-globe svg path { fill: currentColor; }
.lang-toggle .lang-cur { letter-spacing: .02em; }
.lang-toggle .lang-caret { width: 10px; height: 6px; transition: transform .28s var(--e-out); }
.lang-switch.is-open .lang-caret { transform: rotate(180deg); }
.lang-toggle:hover { color: var(--green); }
.lang-menu {
  position: absolute; top: calc(100% + 10px); right: 0; min-width: 92px;
  background: #fff; border-radius: 10px; box-shadow: 0 12px 30px rgba(0,0,0,.15);
  padding: 6px; display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .22s var(--e-out), transform .22s var(--e-out), visibility .22s;
  z-index: 30;
}
.lang-switch.is-open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu a {
  display: block; padding: 9px 14px; border-radius: 6px; text-align: center;
  font-size: 15px; font-weight: 500; color: var(--ink);
  transition: background-color .2s ease, color .2s ease;
}
.lang-menu a:hover { background: #f4f7ee; color: var(--green); }

/* 이미지 라이트박스 (인증서 등 클릭 확대) */
.js-zoom { cursor: zoom-in; }
.suol-lightbox {
  position: fixed; inset: 0; z-index: 10001; display: none;
  align-items: center; justify-content: center; padding: 44px;
  background: rgba(0,0,0,.82); opacity: 0; transition: opacity .28s var(--e-out);
}
.suol-lightbox.is-open { display: flex; opacity: 1; }
.suol-lightbox img { max-width: 92vw; max-height: 90vh; object-fit: contain; box-shadow: 0 20px 60px rgba(0,0,0,.5); transform: scale(.96); transition: transform .28s var(--e-out); }
.suol-lightbox.is-open img { transform: none; }
.suol-lightbox .lb-close { position: absolute; top: 22px; right: 28px; width: 44px; height: 44px; color: #fff; font-size: 34px; line-height: 1; cursor: pointer; background: none; border: 0; }

/* hamburger (mobile) */
.nav-toggle { display: none; width: 30px; height: 24px; position: relative; }
.nav-toggle span {
  position: absolute; left: 0; width: 100%; height: 2px; background: currentColor;
  border-radius: 2px; transition: transform .3s var(--e-out), opacity .2s ease, top .3s var(--e-out);
}
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 11px; }
.nav-toggle span:nth-child(3) { top: 22px; }

/* =========================================================
   BUTTONS — 원형 "more" (Figma 공통 컴포넌트)
   ========================================================= */
.btn-more {
  display: inline-flex; flex-direction: row; align-items: center; justify-content: center;
  gap: 8px; width: 110px; height: 110px; border-radius: 50%;
  background: var(--green); border: 1px solid var(--green); color: var(--white);
  flex-shrink: 0; position: relative; overflow: hidden;
  transition: transform .35s var(--e-out), background-color .3s var(--e-out), border-color .3s var(--e-out);
}
.btn-more .txt { font-size: 20px; font-weight: 500; transition: color .3s var(--e-out); }
.btn-more svg { width: 15px; height: auto; }
.btn-more svg path { stroke: var(--white); transition: stroke .3s var(--e-out); }
.btn-more:hover { background: var(--white); border-color: var(--green); transform: scale(1.06); }
.btn-more:hover .txt { color: var(--green); }
.btn-more:hover svg path { stroke: var(--green); }
.btn-more.is-lg { width: 150px; height: 150px; }
.btn-more.is-lg .txt { font-size: 24px; }
.btn-more.is-lg svg { width: 20px; }
.btn-more.is-outline { background: transparent; border-color: var(--white); }
.btn-more.is-outline .txt { color: var(--white); }
.btn-more.is-outline:hover { background: var(--white); border-color: var(--green); }
.btn-more.is-outline:hover .txt { color: var(--green); }

/* 사각형 More 버튼 (Type B) */
.btn-rect {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 64px; background: #fff; color: var(--ink);
  border: 1px solid var(--line); font-size: 16px; font-weight: 500;
  transition: background-color .3s var(--e-out), color .3s var(--e-out), border-color .3s var(--e-out);
}
.btn-rect svg { width: 20px; height: 20px; }
.btn-rect svg path { stroke: currentColor; transition: transform .3s var(--e-out); }
.btn-rect:hover { background: var(--green); color: #fff; border-color: var(--green); }
.btn-rect:hover svg { transform: translate(3px, -3px); }
.btn-rect.is-fill { background: var(--green); color: #fff; border-color: var(--green); }
.btn-rect.is-fill:hover { background: var(--green-dark); border-color: var(--green-dark); }

/* 소형 아이콘 버튼 (Type C) */
.btn-icon {
  display: inline-grid; place-items: center; width: 56px; height: 56px;
  background: #fff; border: 1px solid var(--line);
  transition: background-color .3s var(--e-out), border-color .3s var(--e-out);
}
.btn-icon svg { width: 24px; height: 24px; }
.btn-icon svg path { stroke: var(--ink); transition: stroke .3s var(--e-out), transform .3s var(--e-out); }
.btn-icon:hover { background: var(--green); border-color: var(--green); }
.btn-icon:hover svg path { stroke: #fff; transform: translate(2px, -2px); }

/* =========================================================
   SUB-VISUAL (서브 배너 · breadcrumb · title · tabs)
   페이지에서 .sub-visual 요소에 --sv-img 로 배경 지정
   ========================================================= */
.sub-visual { position: relative; width: 100%; height: 700px; overflow: hidden; background: #1a2530; }
.sub-visual .sv-photo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
  transform: scale(1.06); animation: svZoom 1.5s var(--e-out) forwards;
}
.sub-visual .sv-bg {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.32) 0%, rgba(0,0,0,.04) 26%, rgba(0,0,0,.22) 100%);
}
@keyframes svZoom { to { transform: scale(1); } }
.sub-visual .sv-inner {
  position: relative; z-index: 2; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto;
  height: 100%; padding: 0 var(--gutter) 104px; display: flex; flex-direction: column;
  justify-content: flex-end; align-items: flex-start; gap: 36px;
}
.sv-breadcrumbs { display: flex; align-items: center; gap: 12px; }
.sv-home { display: inline-block; width: 18px; height: 18px; opacity: .9; transition: opacity .2s var(--e-out); }
.sv-home svg, .sv-home img { width: 100%; height: 100%; display: block; object-fit: contain; }
.sv-dot { width: 4px; height: 4px; border-radius: 50%; background: #fff; opacity: .8; flex-shrink: 0; }
.sv-bread-txt { color: rgba(255,255,255,.9); font-size: 15px; font-weight: 500; }
a.sv-home:hover { opacity: 1; }
a.sv-bread-txt { transition: color .2s var(--e-out); }
a.sv-bread-txt:hover { color: #fff; text-decoration: underline; }
.sv-title { color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 88px; line-height: 1; letter-spacing: -.02em; text-shadow: 0 2px 26px rgba(0,0,0,.35); }
.sv-breadcrumbs, .sv-tabs { text-shadow: 0 1px 12px rgba(0,0,0,.28); }
.sv-tabs {
  display: inline-flex; align-self: flex-start; gap: 8px; padding: 8px;
  background: rgba(255,255,255,.22); border-radius: 500px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); max-width: 100%; overflow-x: auto;
  scrollbar-width: none;
}
.sv-tabs::-webkit-scrollbar { display: none; }
.sv-tab {
  padding: 10px 22px; border-radius: 500px; color: #fff; font-size: 16px; font-weight: 500;
  white-space: nowrap; flex-shrink: 0; transition: background-color .25s var(--e-out), color .25s ease;
}
.sv-tab:hover { background: rgba(255,255,255,.18); }
.sv-tab.active { background: var(--green); }

@media (max-width: 1024px) {
  .sub-visual { height: 560px; }
  .sv-inner { padding-bottom: 72px; gap: 28px; }
  .sv-title { font-size: 60px; }
}
@media (max-width: 768px) {
  .sub-visual { height: 400px; }
  .sv-inner { gap: 20px; padding-bottom: 40px; }
  .sv-title { font-size: 40px; }
  .sv-bread-txt { font-size: 13px; }
  .sv-tab { padding: 8px 16px; font-size: 14px; }
}

/* =========================================================
   FOOTER (Figma 컴포넌트 · 정보행 + Family Site 모달)
   ========================================================= */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 70px 0; }
.footer-inner { max-width: 1920px; margin: 0 auto; padding: 0 var(--gutter); display: flex; flex-direction: column; gap: 30px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; }
.footer-logo { display: block; }
.footer-logo img { height: 41px; width: auto; }
/* Family Site — Figma 16-576: 회색 버튼 (#f9f9f9 / #777) */
.family-site-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  width: 189px; padding: 15px 20px; background: #f9f9f9; border: 0; border-radius: 10px;
  cursor: pointer; color: #777; font-size: 16px; font-weight: 500; font-family: var(--font-body);
  transition: background-color .25s var(--e-out);
}
.family-site-btn:hover { background: #f0f0f0; }
.family-site-btn .fs-text { font-size: 16px; color: #777; }
.family-site-btn .plus-icon { font-size: 18px; font-weight: 300; line-height: 1; color: #777; transition: transform .3s var(--e-out); }
.family-site-btn.active .plus-icon { transform: rotate(45deg); }
.footer-con { display: flex; flex-direction: column; gap: 30px; }
.footer-info { border-bottom: 1px solid rgba(172,172,172,.5); padding-bottom: 30px; }
.info-lines { display: flex; flex-direction: column; gap: 8px; font-family: var(--font-body); font-size: 16px; color: #777; }
.info-lines .row { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.info-lines .label { font-weight: 300; color: #777; }
.info-lines .val { font-weight: 400; color: #777; }
.copyright { text-align: right; font-family: var(--font-body); font-weight: 300; font-size: 16px; color: #777; text-transform: capitalize; }

/* Family Site 모달 */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 10000;
  display: none; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .25s var(--e-out);
}
.modal-overlay.active { display: flex; opacity: 1; }
.family-popup {
  background: #fff; width: 90%; max-width: 820px; padding: 40px;
  box-shadow: 0 30px 60px rgba(0,0,0,.25);
  transform: translateY(14px) scale(.98); transition: transform .3s var(--e-out);
}
.modal-overlay.active .family-popup { transform: none; }
.popup-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid var(--main-blue); padding-bottom: 16px; margin-bottom: 30px; }
.popup-header h2 { font-size: 22px; margin: 0; font-family: var(--font-head); font-weight: 800; }
.popup-close { cursor: pointer; font-size: 22px; line-height: 1; color: var(--ink); }
.popup-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 40px; }
.grid-col h3 { font-size: 16px; color: var(--main-blue); margin-bottom: 12px; }
.grid-col ul li { font-size: 14px; color: #444; margin-bottom: 8px; }
.grid-col ul li a { transition: color .2s ease; }
.grid-col ul li a:hover { color: var(--main-blue); text-decoration: underline; }

/* 플로팅 스크롤 상/하 버튼 */
.scroll-toggle {
  position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px;
  background: var(--green); color: #fff; border-radius: 50%; z-index: 95;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.28);
  opacity: 0; visibility: hidden;
  transition: transform .4s var(--e-out), background-color .3s ease, opacity .3s ease, visibility .3s;
}
.scroll-toggle.is-ready { opacity: 1; visibility: visible; }
.scroll-toggle:hover { background: var(--green-dark); transform: translateY(-3px); }
.scroll-toggle svg { width: 24px; height: 24px; transition: transform .4s var(--e-out); }
.scroll-toggle.to-top svg { transform: rotate(180deg); }
body.modal-open, .scroll-lock { overflow: hidden; }

/* =========================================================
   반응형 — 태블릿 1200 / 모바일 768
   ========================================================= */
@media (max-width: 1400px) {
  :root { --gutter: 60px; }
  .gnb-top { padding: 0 22px; font-size: 17px; }
  .gnb-top::after { left: 22px; right: 22px; }
}
@media (max-width: 1024px) {
  .site-header { padding: 0 20px; --header-h: 72px; }
  .header-inner { gap: 16px; }
  .header-nav, .header-right .btn-contact { display: none; }
  /* 로고 축소(200px는 모바일서 헤더 넘침 → 햄버거 잘림 방지) */
  .logo { width: 150px; height: 34px; }
  .logo img { height: 34px; }
  .header-right { gap: 16px; margin-left: auto; }
  .lang-toggle { font-size: 14px; gap: 5px; }
  .nav-toggle { display: block; }
  .site-footer { padding: 50px 0; }
}
@media (max-width: 768px) {
  :root { --gutter: 20px; }
  .footer-top { flex-direction: column; gap: 20px; }
  .info-row { gap: 4px 10px; }
  .info-row .divider { display: none; }
  .copyright { text-align: left; }
  .popup-grid { grid-template-columns: 1fr; }
  .family-popup { padding: 28px 22px; }
  .scroll-toggle { bottom: 20px; right: 20px; width: 45px; height: 45px; }
}

/* =========================================================
   MOBILE off-canvas nav (JS toggles .is-open on body)
   ========================================================= */
.m-nav {
  position: fixed; inset: 0; z-index: 120; background: var(--white);
  transform: translateX(100%); transition: transform .4s var(--e-out);
  display: flex; flex-direction: column; padding: 84px 24px 40px; overflow-y: auto;
}
.m-nav.is-open { transform: none; }
.m-nav .m-close { position: absolute; top: 22px; right: 22px; width: 32px; height: 32px; color: var(--ink); font-size: 30px; line-height: 1; }
.m-nav .m-logo { height: 30px; width: auto; max-width: 60%; object-fit: contain; margin-bottom: 30px; align-self: flex-start; }
.m-nav .m-group { border-bottom: 1px solid var(--line); }
.m-nav .m-group > a { display: block; padding: 18px 4px; font-size: 20px; font-weight: 700; font-family: var(--font-head); }
.m-nav .m-sub { padding: 0 4px 16px; display: flex; flex-direction: column; gap: 12px; }
.m-nav .m-sub a { color: var(--gray); font-size: 16px; }
.m-nav .m-contact { margin-top: 30px; display: inline-flex; align-self: flex-start; }
.scroll-lock { overflow: hidden; }
