@charset "utf-8";

/* ============================================================
   노무법인 서재 (Seojae Labor Law) - Main Stylesheet
   Theme: theme/seojae
   ============================================================ */

/* ---------- Fonts ---------- */
@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/fonts-archive/Paperlogy/subsets/Paperlogy-dynamic-subset.css');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

/* ---------- Design Tokens ---------- */
:root {
  /* Brand Colors */
  --c-burgundy: #5C1F1F;
  --c-burgundy-dark: #3F1414;
  --c-burgundy-light: #7A2929;
  --c-gold: #762b2f;
  --c-gold-dark: #A07F3E;
  --c-cream: #F4F1EC;
  --c-cream-warm: #EDE7DC;
  --c-paper: #FAF8F4;

  /* Neutrals */
  --c-ink: #1A1310;
  --c-ink-soft: #4A3F38;
  --c-mute: #8A7E72;
  --c-line: #E0D8CC;
  --c-line-soft: #EFEAE0;
  --c-white: #FFFFFF;

  /* Type — 본문: Pretendard / 한글 제목: Paperlogy / 영문: Montserrat */
  --ff-sans: 'Pretendard', -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --ff-serif: 'Montserrat', 'Paperlogy', 'Pretendard', -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --ff-display: 'Montserrat', 'Paperlogy', 'Pretendard', -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --ff-heading: 'Montserrat', 'Paperlogy', 'Pretendard', -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;

  /* Layout */
  --container: 1440px;
  --container-narrow: 1280px;
  --header-h: 90px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 200ms;
  --t-base: 400ms;
  --t-slow: 700ms;

  /* Shadow */
  --shadow-sm: 0 2px 8px rgba(26, 19, 16, 0.05);
  --shadow-md: 0 10px 30px rgba(26, 19, 16, 0.08);
  --shadow-lg: 0 20px 60px rgba(26, 19, 16, 0.12);
}

/* ---------- Reset & Base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  font-family: var(--ff-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-ink);
  background: var(--c-paper);
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; vertical-align: middle; border: 0; }
a { color: inherit; text-decoration: none; transition: color var(--t-fast) var(--ease); }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-weight: 600; letter-spacing: -0.02em; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 28px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.site-header.is-scrolled,
.site-header.is-solid {
  background: var(--c-paper);
  box-shadow: 0 1px 0 var(--c-line-soft);
}
.site-header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* gap: 32px; */
}
.site-header__brand {
  display: flex;
  align-items: center;
  margin-right: auto;
}
.site-header__logo {
  height: 50px;
  width: auto;
  display: block;
  object-fit: contain;
}
/* 기본: 검은 로고 표시, 흰 로고 숨김 (서브페이지 / 메인 스크롤 후) */
.site-header__logo--white { display: none; }
.site-header__logo--black { display: block; }
/* 메인페이지 투명 헤더 상태(스크롤 전): 흰 로고 표시, 검은 로고 숨김 */
.site-header.is-light:not(.is-scrolled) .site-header__logo--white { display: block; }
.site-header.is-light:not(.is-scrolled) .site-header__logo--black { display: none; }

/* Nav */
.gnb { display: flex; align-items: center; gap: 4px; }
.gnb__item { position: relative; }
.gnb__link {
  display: block;
  padding: 30px 18px;
  font-size: 20px;
  font-weight: 500;
  color: var(--c-ink);
  letter-spacing: -0.01em;
  position: relative;
}
.gnb__link::after {
  content: '';
  position: absolute;
  left: 18px; right: 18px;
  bottom: 26px;
  height: 1px;
  background: var(--c-burgundy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-base) var(--ease);
}
@media (min-width: 1101px) {
  .gnb__item:hover .gnb__link::after { transform: scaleX(1); }
  .gnb__item:hover .gnb__link { color: var(--c-burgundy); }
}

.site-header.is-light:not(.is-scrolled) .gnb__link { color: var(--c-paper); }
@media (min-width: 1101px) {
  .site-header.is-light:not(.is-scrolled) .gnb__item:hover .gnb__link { color: var(--c-gold); }
}
.site-header.is-light:not(.is-scrolled) .gnb__link::after { background: var(--c-gold); }

/* Submenu */
.gnb__sub {
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 200px;
  background: var(--c-paper);
  border-top: 2px solid var(--c-burgundy);
  box-shadow: var(--shadow-md);
  padding: 14px 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), visibility var(--t-fast) var(--ease);
}
.gnb__item:hover .gnb__sub {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
@media (max-width: 1100px) {
  .gnb__item:hover .gnb__sub {
    opacity: initial;
    visibility: initial;
    transform: none;
  }
}
.gnb__sub a {
  display: block;
  padding: 6px 24px;
  font-size: 16px;
  color: var(--c-ink-soft);
  white-space: nowrap;
}
@media (min-width: 1101px) {
  .gnb__sub a:hover { color: var(--c-burgundy); background: var(--c-cream); }
}

/* Header right */
.site-header__right { display: flex; align-items: center; gap: 14px; }
.btn-consult {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--c-burgundy);
  color: var(--c-paper);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 2px;
  transition: background var(--t-fast) var(--ease);
}
.btn-consult:hover { background: var(--c-burgundy-dark); color: var(--c-paper); }
.btn-consult svg { width: 14px; height: 14px; }

.gnb-toggle {
  display: none;
  width: 40px; height: 40px;
  padding: 10px;
}
.gnb-toggle span {
  display: block;
  width: 100%; height: 1.5px;
  background: var(--c-ink);
  margin: 5px 0;
  transition: all var(--t-fast) var(--ease);
}
.site-header.is-light:not(.is-scrolled) .gnb-toggle span { background: var(--c-paper); }

/* ---------- Quick Side Menu (Right Floating) ---------- */
.quick-menu {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
/* 각 항목 = 큰 라운드 박스(아이콘+텍스트 내장) */
.quick-menu__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 76px;
  min-height: 76px;
  padding: 12px 6px;
  box-sizing: border-box;
  border-radius: 50%;
  color: var(--c-white);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), filter var(--t-fast) var(--ease);
}
.quick-menu__item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md, 0 8px 18px rgba(0, 0, 0, 0.22));
  filter: brightness(1.06);
}
.quick-menu__icon {
  width: auto; height: auto;
  background: none;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
}
.quick-menu__icon svg { width: 24px; height: 24px; }
.quick-menu__label {
  font-size: 11px;
  line-height: 1.2;
  font-weight: 600;
  color: inherit;
  text-align: center;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
/* 항목별 배경색 (첨부 시안 컴러) */
.quick-menu__item--tel   { background: #003078; }  /* 전화 - 네이비 */
.quick-menu__item--blog  { background: #24a23c; }  /* 블로그 - 그린 */
.quick-menu__item--map   { background: #30303c; }  /* 찾아오신 길 - 차콜 */
.quick-menu__item--insta { background: #7c1c2c; }  /* 상담신청 - 버건디 */
.quick-menu__item--kakao { background: #fee43c; color: #3a1d1d; }
.quick-menu__icon--kakao { font-size: 16px; font-weight: 800; letter-spacing: -0.02em; }

/* ---------- Sections / Common ---------- */
.section {padding: 202px 0;position: relative;}
.section--cream { background: var(--c-cream); }
.section--burgundy { background: var(--c-burgundy); color: var(--c-cream); }
.section--paper { background: var(--c-paper); }
.section--narrow { padding: 80px 0; }

.section-head { text-align: center; margin-bottom: 64px; }
.section-head__eyebrow {
  display: inline-block;
  font-family: var(--ff-display);
  font-size: 12px;
  letter-spacing: 0.32em;
  color: var(--c-gold);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-head__title {
  font-family: var(--ff-display);
  font-size: clamp(34px, 4.4vw, 52px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--c-ink);
  letter-spacing: 0.02em;
}
.section--burgundy .section-head__title { color: var(--c-cream); }
.section--burgundy .section-head__eyebrow { color: var(--c-gold); }
.section-head__lead {
  margin-top: 18px;
  font-size: 20px;
  color: var(--c-ink-soft);
  line-height: 1.7;
}
.section--burgundy .section-head__lead { color: rgba(244, 241, 236, 0.75); }

.section-bg-text {
  position: absolute;
  bottom: -10px; left: 0;
  font-family: var(--ff-display);
  font-size: clamp(80px, 14vw, 200px);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--c-white);
  opacity: 0.5;
  pointer-events: none;
  line-height: 0.8;
  white-space: nowrap;
}
.section--burgundy .section-bg-text { color: rgba(244, 241, 236, 0.05); opacity: 1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.02em;
  border-radius: 2px;
  transition: all var(--t-fast) var(--ease);
  border: 1px solid transparent;
}
.btn--primary { background: var(--c-burgundy); color: var(--c-paper); }
.btn--primary:hover { background: var(--c-burgundy-dark); color: var(--c-paper); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--outline { background: transparent; color: var(--c-ink); border-color: var(--c-ink); }
.btn--outline:hover { background: var(--c-ink); color: var(--c-paper); }
.btn--ghost { background: transparent; color: var(--c-burgundy); border-color: var(--c-burgundy); }
.btn--ghost:hover { background: var(--c-burgundy); color: var(--c-paper); }
/* 공통 CTA 버튼 (ink 배경 + 흰 글자 + 둥근 모서리). 인라인 스타일 대신 이 클래스 사용 */
.btn--ink {
  background: var(--c-ink);
  color: #fff;
  border-color: var(--c-ink);
  border-radius: 999px;
}
.btn--ink:hover {
  background: var(--c-burgundy);
  border-color: var(--c-burgundy);
  color: #fff;
}
/* CTA 버튼: 이미지 기준 — 폰트 15px, 여백 넉넉 */
.cta .btn {
  font-size: 15px;
  padding: 11px 38px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--c-ink);
  color: rgba(244, 241, 236, 0.6);
  padding: 56px 0 60px;
  font-size: 14px;
}
.site-footer__brand {
  margin-bottom: 28px;
}
.site-footer__brand img {
  height: 47px;
  width: auto;
  display: block;
}
.site-footer__legal {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  font-size: 14px;
}
.site-footer__legal a {
  color: rgba(244, 241, 236, 0.85);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}
.site-footer__legal a:hover { color: var(--c-cream); }
.site-footer__sep { color: rgba(244, 241, 236, 0.3); }
.site-footer__info p {
  line-height: 1.9;
  color: rgba(244, 241, 236, 0.55);
  margin: 0;
}
.site-footer__info span {
  color: rgba(244, 241, 236, 0.3);
  margin: 0 6px;
}
.site-footer__info a {
  color: rgba(244, 241, 236, 0.55);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}
.site-footer__info a:hover { color: var(--c-cream); }
.site-footer__copy {
  margin-top: 4px !important;
  font-family: var(--ff-display);
  letter-spacing: 0.03em;
  color: rgba(244, 241, 236, 0.4);
}

/* ---------- Subpage Header ---------- */
.subpage-hero {
  position: relative;
  height: 439px;
  padding-top: var(--header-h);
  background: var(--c-burgundy-dark);
  color: var(--c-paper);
  overflow: hidden;
}
/* 배경 사진: 각 페이지에서 style="--subpage-bg:url('...')" 로 교체 */
.subpage-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--subpage-bg, url('../images/main_about.jpg'));
  background-size: cover;
  background-position: center;
}
/* 사진 위 어두운 오버레이 (제목 가독성 확보) */
.subpage-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(20, 10, 10, 0.58) 0%, rgba(20, 10, 10, 0.38) 45%, rgba(20, 10, 10, 0.62) 100%);
}
.subpage-hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 50px 28px 60px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 14px;
}
.subpage-hero__eyebrow {
  font-family: var(--ff-display);
  font-size: 18px;
  letter-spacing: 0.32em;
  color: rgba(255, 255, 255, 0.82);
  text-transform: uppercase;
  margin: 0;
}
.subpage-hero__title {
  font-family: var(--ff-serif);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.subpage-hero__breadcrumb {
  position: absolute;
  bottom: 32px;
  font-size: 12px;
  color: rgba(244, 241, 236, 0.6);
  letter-spacing: 0.05em;
}
.subpage-hero__breadcrumb a { color: rgba(244, 241, 236, 0.6); }
.subpage-hero__breadcrumb a:hover { color: var(--c-gold); }
.subpage-hero__breadcrumb span { margin: 0 10px; opacity: 0.5; }
.subpage-hero__breadcrumb strong { color: var(--c-cream); font-weight: 400; }

/* ---------- Sub Navigation (중간 카테고리 바 / 히어로 위 투명 + 프로스티드) ---------- */
.subnav {
  background: rgba(20, 10, 10, 0.22);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  backdrop-filter: blur(10px) saturate(120%);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  position: relative;
  z-index: 5;
  margin-top: -60px; /* 히어로 하단 위로 끌어올려 사진 위에 투명하게 */
}
.subnav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: stretch;
  height: 60px;
}
.subnav__home {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  flex: 0 0 60px;
  color: #F4F1EC;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.subnav__home:hover { background: rgba(255, 255, 255, 0.08); color: var(--c-gold); }
.subnav__home svg { width: 18px; height: 18px; }
.subnav__item {
  position: relative;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}
.subnav__item--cat .subnav__btn { min-width: 200px; }
.subnav__item--page .subnav__btn { min-width: 260px; }
.subnav__btn {
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 22px;
  font-size: 19px;
  font-weight: 500;
  color: #F4F1EC;
  background: transparent;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.subnav__btn:hover { color: var(--c-gold); }
.subnav__chev {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  color: rgba(244, 241, 236, 0.7);
  transition: transform var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.subnav__item.is-open .subnav__chev { transform: rotate(180deg); color: var(--c-gold); }
.subnav__item.is-open > .subnav__btn { color: var(--c-gold); background: rgba(255, 255, 255, 0.06); }
.subnav__panel {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 100%;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-top: 0;
  box-shadow: 0 16px 32px rgba(26, 19, 16, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), visibility var(--t-fast);
  z-index: 20;
}
.subnav__item.is-open .subnav__panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.subnav__panel a {
  display: block;
  padding: 13px 22px;
  font-size: 16px;
  color: var(--c-ink-soft);
  white-space: nowrap;
  border-top: 1px solid var(--c-line-soft);
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.subnav__panel a:first-child { border-top: 0; }
.subnav__panel a:hover { background: var(--c-cream); color: var(--c-burgundy); }
.subnav__panel a.is-current { color: var(--c-burgundy); font-weight: 500; background: var(--c-cream); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .gnb-toggle { display: block; }

  /* GNB 열림 시 body 스크롤 잠금 (스크롤바 이중 방지) */
  html:has(.gnb.is-open),
  body:has(.gnb.is-open) {
    overflow: hidden;
  }

  /* 모바일 GNB: 기본 숨김, is-open 시 헤더 아래로 펼쳐지는 세로 패널 */
  .gnb {
    display: block;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    background: var(--c-paper);
    border-top: 1px solid var(--c-line, #E6DFD4);
    box-shadow: var(--shadow-md);
    padding: 8px 0;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), visibility var(--t-fast) var(--ease);
    z-index: 200;
  }
  .gnb.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  /* 메뉴 열림 시: 투명 헤더라도 흰 배경 + 진한 로고/햄버거로 전환 */
  .site-header.menu-open {
    background: var(--c-paper);
    box-shadow: 0 1px 0 var(--c-line-soft);
  }
  .site-header.is-light.menu-open .gnb-toggle span { background: var(--c-ink); }
  .site-header.is-light.menu-open .site-header__logo--white { display: none; }
  .site-header.is-light.menu-open .site-header__logo--black { display: block; }

  /* 모바일에서는 GNB 글자색을 항상 진하게 (헤더 light 상태 무시) */
  .site-header.is-light:not(.is-scrolled) .gnb .gnb__link { color: var(--c-ink); }

  .gnb__item { position: static; border-bottom: 1px solid var(--c-line-soft, #EFEAE0); }
  .gnb__item:last-child { border-bottom: none; }
  .gnb__link {
    padding: 15px 22px;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .gnb__link::after { display: none; }

  /* 서브메뉴가 있는 항목: 우측에 화살표(▾) 표시 */
  .gnb__item:has(.gnb__sub) > .gnb__link::before {
    content: '';
    display: inline-block;
    width: 10px; height: 10px;
    margin-left: 12px;
    border-right: 1.5px solid var(--c-ink-soft, #666);
    border-bottom: 1.5px solid var(--c-ink-soft, #666);
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform var(--t-fast) var(--ease);
    order: 2;
  }
  .gnb__item.is-open > .gnb__link::before {
    transform: rotate(-135deg) translate(-2px, -2px);
    border-color: var(--c-burgundy);
  }
  .gnb__item.is-open > .gnb__link { color: var(--c-burgundy); }

  /* 모바일 서브메뉴: 기본 숨김, .gnb__item.is-open 일 때만 펼침 (아코디언) */
  .gnb__sub {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    min-width: 0;
    background: var(--c-cream);
    border-top: none;
    box-shadow: none;
    padding: 2px 0 8px;
    display: none;
  }
  .gnb__item.is-open > .gnb__sub {
    display: block;
  }
  .gnb__sub a {
    padding: 8px 22px 8px 36px;
    font-size: 13.5px;
    color: var(--c-ink-soft);
    white-space: normal;
  }
  .gnb__sub a:hover { background: transparent; color: var(--c-burgundy); }

  /* 햄버거 X 변형 (열렸을 때) */
  .gnb-toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .gnb-toggle.is-open span:nth-child(2) { opacity: 0; }
  .gnb-toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  .quick-menu { right: 12px; gap: 10px; }
  .quick-menu__item { width: 64px; min-height: 64px; padding: 10px 5px; border-radius: 18px; }
  .quick-menu__icon svg { width: 21px; height: 21px; }
  .quick-menu__icon--kakao { font-size: 14px; }
  .quick-menu__label { font-size: 10px; }
  .site-footer { padding: 44px 0 48px; font-size: 13px; }
  .site-footer__brand img { height: 40px; }
  .site-footer__info p { line-height: 1.85; }
}
/* ★ 그누보드 기본 default.css 의 #wrapper{width:1200px} 고정폭 무효화.
   이 규칙 때문에 뷰포트가 좁아도 페이지가 1200px 로 렌더되어
   모든 섹션이 화면 밖으로 밀리는 현상 발생. style.css 가
   default.css 뒤에 로드되므로 여기서 해제. (모바일·태블릿 전 구간) */
@media (max-width: 1100px) {
  #wrapper,
  #container,
  #container_wr {
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
}

@media (max-width: 768px) {
  .container, .container-narrow { padding: 0 20px; }
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 40px; }
  :root { --header-h: 64px; }
  .site-header__inner { padding: 0 20px; }
  .site-header__logo {height: 34px;}
  .btn-consult { display: none; }

  /* Quick Menu: 데스크톱과 동일하게 우측 세로 플로팅 유지, 크기만 축소 */
  .quick-menu { right: 10px; gap: 8px; }
  .quick-menu__item { width: 54px; min-height: 54px; padding: 8px 4px; border-radius: 16px; }
  .quick-menu__icon svg { width: 18px; height: 18px; }
  .quick-menu__icon--kakao { font-size: 12px; }
  .quick-menu__label { font-size: 9px; }

  .subpage-hero { height: 280px; }
  .subnav { margin-top: -54px; }
  .subnav__inner { padding: 0 20px; height: 54px; }
  .subnav__home { width: 52px; flex-basis: 52px; }
  .subnav__item { flex: 1 1 0; min-width: 0; }
  .subnav__item--cat .subnav__btn,
  .subnav__item--page .subnav__btn { min-width: 0; }
  .subnav__btn { padding: 0 16px; font-size: 13px; gap: 12px; }
}

@media (max-width: 480px) {
  .container, .container-narrow { padding: 0 16px; }
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 28px; }
  :root { --header-h: 58px; }
  .site-header__inner { padding: 0 16px; }
  .site-header__logo { height: 32px; }

  /* 햄버거 메뉴 항목 간격 축소 */
  .gnb__link { padding: 13px 18px; font-size: 14.5px; }
  .gnb__sub a { padding: 7px 18px 7px 30px; font-size: 13px; }

  /* 서브페이지 히어로 축소 */
  .subpage-hero { height: 220px; }

  /* 중간 카테고리 바: 긴 라벨 말줄임 */
  .subnav { margin-top: -50px; }
  .subnav__inner { height: 50px; }
  .subnav__home { width: 46px; flex-basis: 46px; }
  .subnav__btn { padding: 0 12px; font-size: 12.5px; }
  .subnav__btn .subnav__label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* 거대 배경 텍스트 축소 (모바일에서 과하게 깔리지 않게) */
  .section-bg-text { font-size: 56px; opacity: 0.4; }

  /* 섹션 제목: LAW FIRM과 동일하게 clamp() 하한값 사용 (별도 축소 없음) */
  .section-head { margin-bottom: 32px; }
}

/* ---------- Animations ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.fade-up { animation: fadeUp 800ms var(--ease) both; }
.fade-up-1 { animation: fadeUp 800ms var(--ease) 100ms both; }
.fade-up-2 { animation: fadeUp 800ms var(--ease) 250ms both; }
.fade-up-3 { animation: fadeUp 800ms var(--ease) 400ms both; }
.fade-up-4 { animation: fadeUp 800ms var(--ease) 550ms both; }

[data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity 900ms var(--ease), transform 900ms var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ---------- 게시판(그누보드 기본 레이아웃) 컨테이너 정렬 ---------- */
/* board.php 는 그누보드 default.css 의 #wrapper/#container/#aside 폭을 그대로 쓰기 때문에
   본문이 화면 중앙에서 왼쪽으로 밀리고, 그 안에 들어가는 subnav 도 같이 밀린다.
   서브페이지와 동일한 중앙 정렬 컨테이너로 맞춘다. */
#wrapper {
  width: auto;
  min-width: 0;
  max-width: none;
}
#container_wr {
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
}
#container {
  width: auto;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px 100px;
  float: none;
  border: 0;
  background: transparent;
}
#container:after { content: ""; display: block; clear: both; }
#aside { display: none; }

/* 게시판에서도 subnav 가 히어로를 파고들고 화면 전체 폭이 되도록 (서브페이지와 동일) */
.bbs-container_wr #container,
.bbs-container_wr.has-hero #container { padding-top: 0 !important; }
#container > .subnav,
#content > .subnav {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
/* subnav 바로 뒤 게시판 본문에 상단 여백 복원 */
#container > .subnav + #bo_list,
#container > .subnav + #bo_v,
#container > .subnav + #bo_w {
  display: block;
  margin-top: 40px;
}

@media (max-width: 768px) {
  #container { padding: 0 20px 60px; }
}
