@charset "utf-8";
/* =========================================================
   법률사무소 제성 — 공통 스타일시트
   Point color : #B8935E   /  Base : Navy #0B1628
   ========================================================= */

/* ---------- 0. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, h5, p, ul, ol, li, figure, blockquote, dl, dd {
  margin: 0; padding: 0;
}
ul, ol { list-style: none; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }

/* ---------- 1. Tokens ---------- */
:root {
  --navy-900: #070F1D;
  --navy-800: #0B1628;
  --navy-700: #11203A;
  --navy-600: #16294A;
  --navy-500: #1E355C;

  --gold:      #B8935E;
  --gold-soft: #D4B483;
  --gold-dim:  rgba(184, 147, 94, .38);

  /* 네이비·골드와 어울리는 짙은 와인 (하단 상담 바) */
  --wine:      #3F1826;

  --ink:       #15213A;
  --ink-soft:  #4A5876;
  --line:      #E3E6EC;
  --paper:     #F5F6F8;
  --paper-2:   #ECEEF2;

  --on-dark:      #FFFFFF;
  --on-dark-soft: #A9B4C7;

  --wrap: 1240px;
  --radius: 2px;
  --ease: cubic-bezier(.22, .61, .36, 1);

  --header-h: 108px;
  --header-solid-h: 84px;
  --mega-h: 298px;

  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
          "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", system-ui, sans-serif;
  --serif: "Noto Serif KR", "Nanum Myeongjo", Georgia, serif;
}

/* ---------- 2. Base ---------- */
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: #fff;
  color: var(--ink);
  line-height: 1.75;
  letter-spacing: -.015em;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: break-word;
}
body.is-locked { overflow: hidden; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

::selection { background: var(--gold); color: #fff; }

/* ---------- 3. Typography helpers ---------- */
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase; color: var(--gold);
}
.sec-head { text-align: center; margin-bottom: 56px; }
.sec-head .eyebrow { display: block; margin-bottom: 14px; }
.sec-title {
  font-size: clamp(27px, 3.6vw, 42px); font-weight: 800; line-height: 1.3;
  letter-spacing: -.035em;
}
.sec-desc {
  margin-top: 18px; font-size: clamp(15px, 1.5vw, 17px);
  color: var(--ink-soft); line-height: 1.85;
}
.on-dark .sec-title { color: var(--on-dark); }
.on-dark .sec-desc  { color: var(--on-dark-soft); }

.gold { color: var(--gold); }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 56px; padding: 0 34px;
  font-size: 16px; font-weight: 700; letter-spacing: -.02em;
  border: 1px solid transparent; border-radius: var(--radius);
  transition: background .3s var(--ease), color .3s var(--ease),
              border-color .3s var(--ease), transform .3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--gold  { background: var(--gold); color: #fff; }
.btn--gold:hover { background: #a67f49; }
.btn--ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--navy-800); border-color: #fff; }
.btn--line  { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--line:hover { border-color: var(--gold); color: var(--gold); }
.btn--sm { height: 46px; padding: 0 22px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- 5. Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background .35s var(--ease), height .35s var(--ease),
              box-shadow .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.header__inner {
  width: min(100% - 40px, 1460px); margin-inline: auto; height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

/* 로고 — 오른쪽 메뉴보다 확실히 크게 */
.logo { display: flex; align-items: center; gap: 15px; color: #fff; }
/* 濟聖 마크 — 흰 바탕에 궁서체(붓글씨) 한자.
   글자는 assets/img/mark-jesung.svg 를 마스크로 깔고 색만 CSS 로 준다.
   (HTML 안의 '濟聖' 글자는 읽기용으로 남겨 두고 화면에서는 숨긴다) */
.logo__mark {
  width: 58px; height: 58px; flex: none;
  position: relative; overflow: hidden;
  background: transparent; border: 0;
  font-size: 0; line-height: 0; color: transparent;
  transition: width .35s var(--ease), height .35s var(--ease);
}
/* 흰 네모에서 한자 획만 뚫려 뒤 배경이 그대로 비친다 */
.logo__mark::before,
.footer__mark::before {
  content: ""; position: absolute; inset: 0;
  background: #fff;
  -webkit-mask: url("../img/mark-jesung.png") no-repeat center / contain;
          mask: url("../img/mark-jesung.png") no-repeat center / contain;
}
/* 기준 크기는 .logo__text 에만 둔다 — 한글·영문이 같은 비율로 함께 커지고 줄어든다.
   '법률사무소'는 아래 영문(JESUNG LAW OFFICE) 폭에 맞고, '제성'은 그보다 2pt 크게
   오른쪽으로 더 나온다. */
/* 로고는 2단 구성. 왼쪽에 '법률사무소 / JESUNG LAW OFFICE'를 쌓고,
   '제성'은 그 두 줄 전체의 세로 한가운데에 오도록 옆에 둔다. */
.logo__text {
  display: flex; align-items: center; gap: .26em;
  line-height: 1.06; font-size: 30px;
  transition: font-size .35s var(--ease);
}
.logo__stack { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.logo__ko {
  font-size: 1em; font-weight: 800; letter-spacing: -.055em; white-space: nowrap;
}
.logo__name {
  font-size: 1.32em; font-weight: 800; letter-spacing: -.05em; white-space: nowrap;
  transform: translateY(-.07em);   /* 가운데보다 살짝 위로 */
}
/* .291em 은 'JESUNG LAW OFFICE' 폭이 '법률사무소' 폭과 같아지는 비율.
   기준 크기(.logo__text)가 바뀌어도 둘의 폭은 계속 일치한다. */
.logo__en {
  font-size: .291em; letter-spacing: .235em; color: var(--gold-soft);
  font-weight: 500; white-space: nowrap;
}

/* 메뉴 — 헤더 높이만큼 늘려서 드롭다운이 헤더 바로 아래에 붙게 */
.nav { align-self: stretch; display: flex; }
.gnb { display: flex; align-items: stretch; gap: 6px; }
.gnb > li { position: relative; z-index: 2; display: flex; }
.gnb > li > a {
  display: flex; align-items: center; position: relative; padding: 0 26px;
  font-size: 20px; font-weight: 600; color: rgba(255,255,255,.88);
  letter-spacing: -.03em; transition: color .25s var(--ease);
}
.gnb > li > a::after {
  content: ""; position: absolute; left: 20px; right: 20px; bottom: 0;
  height: 3px; background: var(--gold); z-index: 3;
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.gnb > li > a:hover, .gnb > li > a[aria-current="page"] { color: #fff; }
.gnb > li > a:hover::after, .gnb > li > a[aria-current="page"]::after { transform: scaleX(1); }

/* 드롭다운 — 헤더 아래 전체 폭 불투명 패널 + 메뉴별 하위항목 */
.megabg {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 1;
  height: 0; overflow: hidden; pointer-events: none;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(11, 22, 40, .08);
  box-shadow: 0 16px 36px rgba(11, 22, 40, .14);
  transition: height .36s var(--ease);
}
.header.is-mega .megabg { height: var(--mega-h); pointer-events: auto; }
.header.is-mega {
  background: rgba(7, 15, 29, .97);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}

.submenu {
  position: absolute; top: 100%; left: 0; z-index: 2;
  min-width: 100%; padding: 28px 26px 32px; white-space: nowrap;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.header.is-mega .submenu { opacity: 1; visibility: visible; transform: none; }
.submenu a {
  display: block; padding: 9px 2px;
  font-size: 16px; font-weight: 500; letter-spacing: -.03em;
  color: var(--ink-soft); word-break: keep-all; line-height: 1.45;
  transition: color .22s var(--ease), padding-left .22s var(--ease);
}
.submenu a:hover { color: var(--gold); padding-left: 9px; }
/* 업무분야 칸만 메뉴명('재판상 이혼 / 조정이혼')이 길어서,
   옆 칸을 침범하지 않도록 폭을 묶고 두 줄로 흘린다. */
.gnb > li:nth-child(2) .submenu { white-space: normal; width: 152px; padding-right: 8px; }

.header__cta { display: flex; align-items: center; gap: 12px; }
.header__tel {
  display: flex; align-items: center; gap: 9px;
  font-size: 21px; font-weight: 800; color: #fff; letter-spacing: -.01em;
}
.header__tel svg { width: 19px; height: 19px; color: var(--gold); }

.burger {
  display: none; place-items: center;
  align-content: center;   /* 줄이 칸 높이만큼 벌어지지 않게 — 줄간격은 아래 margin 으로만 */
  width: 44px; height: 44px; flex: none;     /* 정사각형 고정 */
  border: 1px solid rgba(255,255,255,.3); border-radius: 0;
}
.burger span {
  display: block; width: 28px; height: 2px; background: #fff;
  transition: transform .3s var(--ease), opacity .25s var(--ease);
}
.burger span + span { margin-top: 6px; }

/* scrolled / inner-page header */
.header.is-solid {
  background: rgba(7,15,29,.95);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  height: var(--header-solid-h); border-bottom-color: rgba(255,255,255,.08);
}
.header.is-solid .logo__mark { width: 48px; height: 48px; }
.header.is-solid .logo__text { font-size: 27px; }

/* ---------- 6. Mobile drawer ---------- */
.drawer {
  position: fixed; inset: 0; z-index: 95;
  background: var(--navy-900);
  padding: 0 28px 40px;
  overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
}
.drawer.is-open { opacity: 1; visibility: visible; transform: none; }

/* 메뉴 맨 위에 고정되는 흰색 바 — 로고와 닫기 버튼 */
.drawer__bar {
  position: sticky; top: 0; z-index: 2;
  margin: 0 -28px 34px; padding: 11px 18px 11px 20px;
  background: #fff; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.drawer__bar .logo { gap: 11px; }
/* 메뉴를 열면 색을 뒤집는다 — 와인색 네모에 흰 한자 */
.drawer__bar .logo__mark { width: 42px; height: 42px; background: #fff; }
.drawer__bar .logo__mark::before { background: var(--wine); }
.drawer__bar .logo__text { font-size: 21px; }
.logo--light { color: var(--navy-800); }
.logo--light .logo__en { color: var(--gold); }
/* 닫기 X — &times; 글자 대신 선 두 개로 그린다. 크고 가늘게 */
.drawer__close {
  flex: none; width: 54px; height: 54px; position: relative;
  background: none; border: 0; padding: 0; cursor: pointer;
  font-size: 0; color: transparent; line-height: 0;
}
.drawer__close::before,
.drawer__close::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 52px; height: 2.5px; border-radius: 2px;
  background: var(--navy-800);
}
.drawer__close::before { transform: translate(-50%, -50%) rotate(45deg); }
.drawer__close::after  { transform: translate(-50%, -50%) rotate(-45deg); }
.drawer__nav > li { border-bottom: 1px solid rgba(255,255,255,.1); }
.drawer__nav > li > a {
  display: block; padding: 20px 4px; color: #fff;
  font-size: 21px; font-weight: 700; letter-spacing: -.03em;
}
/* 큰 제목을 누르면 아래에 소제목이 펼쳐진다 */
.drawer__toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  width: 100%; padding: 20px 4px; text-align: left;
  color: #fff; font-size: 21px; font-weight: 700; letter-spacing: -.03em;
}
.drawer__toggle i { position: relative; width: 15px; height: 15px; flex: none; }
.drawer__toggle i::before, .drawer__toggle i::after {
  content: ""; position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  background: var(--gold);
}
.drawer__toggle i::before { width: 15px; height: 2px; }
.drawer__toggle i::after  { width: 2px; height: 15px; transition: opacity .25s var(--ease); }
.drawer__item.is-open .drawer__toggle i::after { opacity: 0; }

.drawer__sub {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .32s var(--ease);
}
.drawer__item.is-open .drawer__sub { grid-template-rows: 1fr; }
.drawer__subInner {
  overflow: hidden; display: flex; flex-wrap: wrap; gap: 8px; padding: 0 4px;
}
/* 아래 여백도 같이 잘리도록 내용 안쪽에 둔다 (접었을 때 높이 0) */
.drawer__subInner::after { content: ""; flex-basis: 100%; height: 18px; }
.drawer__sub a {
  padding: 8px 14px; font-size: 14px; color: var(--on-dark-soft);
  border: 1px solid rgba(255,255,255,.16);
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
/* 누르면(또는 커서를 올리면) 골드로 */
.drawer__sub a:hover,
.drawer__sub a:focus-visible,
.drawer__sub a:active { color: var(--gold); border-color: var(--gold-dim); }
.drawer__foot { margin-top: 36px; display: grid; gap: 12px; }
.drawer__foot .btn { width: 100%; }
.drawer__info { margin-top: 28px; font-size: 14px; color: var(--on-dark-soft); line-height: 2; }

/* ---------- 7. Hero ---------- */
.hero { position: relative; background: var(--navy-900); overflow: hidden; }
.hero__media { position: relative; width: 100%; height: 100svh; min-height: 560px; }
.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: center;
}
/* 밝은 영상이라 글자가 읽히도록 가운데를 한 번 더 어둡게 */
.hero__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(72% 54% at 50% 52%, rgba(7,15,29,.6) 0%, rgba(7,15,29,0) 100%),
    linear-gradient(180deg, rgba(7,15,29,.55) 0%, rgba(7,15,29,.18) 26%,
                    rgba(7,15,29,.26) 64%, rgba(7,15,29,.86) 100%);
}
/* 문구는 화면 세로 한가운데 */
.hero__center {
  position: absolute; inset: 0; z-index: 3;
  display: grid; align-items: center;
  padding-block: var(--header-h);   /* 위아래 같게 둬야 정확히 가운데 */
}
.hero__intro { text-align: center; color: #fff; }
.hero__lead {
  font-size: clamp(24.7px, 2.5vw, 35.7px); font-weight: 700; line-height: 1.7;
  letter-spacing: -.035em;
  max-width: 44em; margin-inline: auto;
  text-shadow: 0 2px 20px rgba(0,0,0,.7);
}
/* 첫 문장은 늘 5pt(=6.7px) 크게, 아랫줄과의 간격은 3pt 더 */
.hero__lead-top {
  display: block; font-size: calc(1em + 6.7px); font-weight: 800; margin-bottom: 4px;
}
/* 영문은 한글 아래, 골드 그대로 */
.hero__intro .eyebrow { display: block; margin-top: 26px; font-size: 19.7px; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  z-index: 3; display: grid; justify-items: center; gap: 7px;
  font-size: 10px; letter-spacing: .25em; color: rgba(255,255,255,.65);
}
.hero__scroll i {
  display: block; width: 1px; height: 34px;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: scrollCue 1.9s var(--ease) infinite;
}
@keyframes scrollCue {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 0; }
  40%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  70%  { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}


/* ---------- 8. Sections ---------- */
.section { padding: clamp(72px, 9vw, 130px) 0; }
.section--navy { background: var(--navy-800); color: var(--on-dark); }
.section--deep { background: var(--navy-900); color: var(--on-dark); }
.section--paper { background: var(--paper); }

/* 8-1. 강점 — 흰 배경 / 왼쪽 POINT 목록 / 오른쪽 사진은 화면 오른쪽 끝까지 */
.section--strengths { background: #fff; color: var(--ink); }

/* wrap 밖으로 빼되 왼쪽만 wrap과 같은 여백을 줘서, 오른쪽은 화면 끝에 닿는다 */
/* 본문과 같은 폭으로 가운데 정렬 (양쪽 여백 동일) */
.strengths-bleed { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }

.strengths {
  display: grid; grid-template-columns: minmax(250px, 32%) 1fr;
  gap: 54px; align-items: center;
}

.strengths__tabs { display: grid; }
.strengths__tab {
  display: grid; gap: 11px; width: 100%; position: relative;
  padding: 26px 2px; text-align: left;
  border-top: 1px solid var(--line);
}
.strengths__tab:last-child { border-bottom: 1px solid var(--line); }
.strengths__tab::after {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 0;
  background: var(--gold); transition: width .45s var(--ease);
}
.strengths__tab.is-active::after { width: 100%; }
.strengths__tab:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.strengths__no {
  font-family: var(--serif); font-size: 16.5px; letter-spacing: .3em; color: #A6AEBF;
  transition: color .3s var(--ease);
}
.strengths__tab:hover .strengths__no,
.strengths__tab.is-active .strengths__no { color: var(--gold); }
.strengths__label {
  font-size: clamp(23px, 2.2vw, 26px); font-weight: 800; line-height: 1.45;
  letter-spacing: -.04em; color: #AEB6C5; transition: color .3s var(--ease);
}
.strengths__tab:hover .strengths__label,
.strengths__tab.is-active .strengths__label { color: var(--navy-800); }

/* 패널은 같은 그리드 칸에 겹쳐 두어, 높이가 가장 긴 내용에 자동으로 맞는다 */
.strengths__panels { display: grid; }
.strengths__panel {
  grid-area: 1 / 1; position: relative; overflow: hidden;
  display: flex; align-items: flex-end; justify-content: flex-end;
  min-height: clamp(500px, 32vw, 660px);
  padding: 0 clamp(22px, 4vw, 60px) clamp(22px, 3vw, 48px) 0;
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity .5s var(--ease), transform .5s var(--ease), visibility .5s;
}
.strengths__panel.is-active { opacity: 1; visibility: visible; transform: none; }

.strengths__photo {
  position: absolute; inset: 0; z-index: 0; display: block;
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.strengths__photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,15,29,.04) 0%, rgba(7,15,29,.22) 100%);
}
/* 간판 글씨가 사진 위쪽에 있어 윗부분이 잘리지 않도록 위쪽으로 당겨 맞춘다 */
.strengths__panel--1 .strengths__photo {
  background-image: url("../img/point-01.jpg");
  background-position: center 15%;
}
.strengths__panel--2 .strengths__photo { background-image: url("../img/point-02.jpg"); }
.strengths__panel--3 .strengths__photo { background-image: url("../img/point-03.jpg"); }

.strengths__watermark {
  position: absolute; top: -18px; left: 14px; z-index: 1;
  font-family: var(--serif); font-weight: 700; line-height: 1;
  font-size: clamp(130px, 15vw, 230px);
  color: rgba(255,255,255,.16); pointer-events: none; user-select: none;
}
.strengths__card {
  position: relative; z-index: 2; max-width: 470px;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 3px solid var(--gold);
  box-shadow: 0 22px 54px rgba(11, 22, 40, .2);
  padding: 32px 34px 34px;
}
/* POINT 번호는 왼쪽 목록에 있으므로 카드에선 숨긴다 */
.strengths__cardNo { display: none; }
.strengths__card h3 {
  font-size: clamp(20px, 2.1vw, 25px); font-weight: 800; line-height: 1.45;
  letter-spacing: -.04em; color: var(--navy-800); margin-bottom: 18px;
}
.strengths__card h3 b { color: var(--gold); font-weight: 800; }
.strengths__card p { font-size: 15.5px; color: var(--ink-soft); line-height: 1.9; }
.strengths__card p + p { margin-top: 14px; }

/* 8-2. 업무분야 카드 */
.fields { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.field {
  position: relative; display: flex; flex-direction: column;
  padding: 0 22px 26px;
  background: var(--navy-700); overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  transition: transform .45s var(--ease), border-color .45s var(--ease);
}
/* 분야 사진 — 카드 위쪽에 정사각형으로 */
.field__img {
  display: block; margin: 0 -22px 22px;
  aspect-ratio: 1 / 1;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  transition: transform .8s var(--ease);
}
.field:hover { transform: translateY(-6px); border-color: var(--gold-dim); }
.field:hover .field__img { transform: scale(1.06); }
.field--divorce  .field__img { background-image: linear-gradient(180deg, rgba(7,15,29,.06), rgba(7,15,29,.34)), url("../img/field-divorce.jpg"); }
.field--property .field__img { background-image: linear-gradient(180deg, rgba(7,15,29,.06), rgba(7,15,29,.34)), url("../img/field-property.jpg"); }
.field--affair   .field__img { background-image: linear-gradient(180deg, rgba(7,15,29,.06), rgba(7,15,29,.34)), url("../img/field-affair.jpg"); }
.field--custody  .field__img { background-image: linear-gradient(180deg, rgba(7,15,29,.06), rgba(7,15,29,.34)), url("../img/field-custody.jpg"); }
.field--alimony  .field__img { background-image: linear-gradient(180deg, rgba(7,15,29,.06), rgba(7,15,29,.34)), url("../img/field-alimony.jpg"); }
.field__en { font-size: 11.5px; letter-spacing: .18em; color: var(--gold-soft); margin-bottom: 10px; }
.field__title { font-size: 24px; font-weight: 800; color: #fff; letter-spacing: -.04em; }
.field__desc {
  margin-top: 12px; font-size: 14.5px; line-height: 1.8; color: var(--on-dark-soft);
}
.field__more {
  margin-top: 20px; display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600; color: var(--gold);
}
.field__more i { display: block; width: 18px; height: 1px; background: var(--gold); transition: width .3s var(--ease); }
.field:hover .field__more i { width: 30px; }

/* 8-3. 상담 절차 */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { background: #fff; border: 1px solid var(--line); padding: 36px 28px 32px; position: relative; }
.step__no {
  width: 42px; height: 42px; display: grid; place-items: center;
  background: var(--navy-800); color: var(--gold);
  font-family: var(--serif); font-size: 15px; font-weight: 700; margin-bottom: 20px;
}
.step__title { font-size: 19px; font-weight: 800; letter-spacing: -.035em; margin-bottom: 10px; }
.step__desc { font-size: 15px; color: var(--ink-soft); line-height: 1.85; }

/* 8-4. 칼럼 카드 */
.columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

/* 메인 화면의 칼럼만 가로 슬라이드 (아래 좌우 화살표로 이동) */
.columns--slider {
  display: flex; gap: 22px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; -ms-overflow-style: none;
  padding: 4px 0 10px;
}
.columns--slider::-webkit-scrollbar { display: none; }
.columns--slider > .col-card {
  flex: 0 0 calc((100% - 44px) / 2.3);   /* 한 번에 2장 + 다음 장 살짝 */
  scroll-snap-align: start;
}
.col-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); padding: 34px 30px 30px;
  transition: border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.col-card:hover {
  border-color: var(--gold-dim);
  box-shadow: 0 18px 44px rgba(11,22,40,.1);
}
.col-card__tag {
  align-self: flex-start; padding: 5px 12px; margin-bottom: 18px;
  font-size: 12px; font-weight: 700; letter-spacing: -.01em;
  background: var(--navy-800); color: #fff;
}
.col-card__title {
  font-size: 20px; font-weight: 800; line-height: 1.5; letter-spacing: -.04em;
  margin-bottom: 14px;
}
.col-card__excerpt {
  font-size: 15px; color: var(--ink-soft); line-height: 1.85; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.col-card__foot {
  margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; color: #8A94A8;
}
.col-card__foot b { color: var(--gold); font-weight: 700; }

/* 칼럼 좌우 넘김 화살표 — 좁은 화면에서만 */
.col-nav { display: flex; justify-content: center; gap: 14px; margin-top: 26px; }
.col-nav__btn {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--navy-800); color: #fff;
  transition: background .25s var(--ease), opacity .25s var(--ease);
}
.col-nav__btn:hover { background: var(--navy-600); }
.col-nav__btn[disabled] { opacity: .28; cursor: default; }
.col-nav__btn svg { width: 16px; height: 16px; }

/* 칼럼 검색 + 분야 필터 */
.col-filter { max-width: 720px; margin: 0 auto 52px; }
.col-search {
  display: flex; align-items: center;
  border: 2px solid var(--navy-800); background: #fff;
}
.col-search input {
  flex: 1; min-width: 0; border: 0; background: transparent;
  padding: 15px 18px; font: inherit; font-size: 17px; color: var(--ink);
}
.col-search input:focus { outline: none; }
.col-search input::placeholder { color: #9AA4B8; }
.col-search input::-webkit-search-cancel-button { cursor: pointer; }
.col-search__btn {
  flex: none; display: grid; place-items: center;
  padding: 0 18px; align-self: stretch; color: var(--navy-800);
  transition: color .22s var(--ease);
}
.col-search__btn:hover { color: var(--wine); }
.col-search__btn svg { width: 22px; height: 22px; }

.col-cats {
  display: flex; flex-wrap: wrap; justify-content: center;
  margin-top: 22px;
}
.col-cats li { display: flex; align-items: center; }
.col-cats li + li::before {
  content: ""; width: 1px; height: 13px; background: var(--line); margin: 0 6px;
}
.col-cat {
  padding: 8px 15px; border-radius: 6px;
  font-size: 16px; font-weight: 600; color: var(--ink-soft);
  transition: color .22s var(--ease), background-color .22s var(--ease);
}
/* 커서를 올리면 모서리가 둥근 골드 네모 + 흰 글자 */
.col-cat:hover, .col-cat:focus-visible { background: var(--gold); color: #fff; }
.col-cat.is-active { color: var(--wine); font-weight: 800; }
.col-cat.is-active:hover, .col-cat.is-active:focus-visible { color: #fff; }

.col-empty { text-align: center; color: var(--ink-soft); font-size: 16.5px; padding: 56px 0; }

/* 8-5. 상담 배너 */
.cta-band {
  background: var(--navy-900);
  background-image: radial-gradient(900px 420px at 15% -20%, rgba(184,147,94,.2), transparent 70%);
  text-align: center;
}
.cta-band .sec-title { color: #fff; }
.cta-band__actions { margin-top: 34px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ---------- 9. Location ---------- */
.location { background: #fff; color: var(--ink); border-top: 1px solid var(--line); }
.location__grid {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center;
  padding: clamp(68px, 8vw, 110px) 0;
}
.location__headline {
  font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; line-height: 1.45;
  letter-spacing: -.045em; color: var(--navy-800); margin: 16px 0 34px;
}
.location__headline b { color: var(--gold); font-weight: 800; }
.info-list { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.info-list > div {
  background: #fff;
  display: grid; grid-template-columns: 92px 1fr; gap: 14px; align-items: baseline;
  padding: 17px 2px;
}
.info-list dt { font-size: 13.5px; font-weight: 700; letter-spacing: .06em; color: var(--gold); }
.info-list dd { font-size: 16px; color: var(--navy-800); line-height: 1.7; }
.info-list dd a:hover { color: var(--gold); text-decoration: underline; }

.map {
  position: relative; width: 100%; aspect-ratio: 4 / 3;
  border: 1px solid var(--line); background: var(--paper);
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- 10. Footer ---------- */
.footer { background: var(--navy-900); color: var(--on-dark-soft); padding: 62px 0 110px; font-size: 16px; }
.footer__top {
  display: flex; flex-wrap: wrap; gap: 40px 60px; align-items: flex-start;
  padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer__name {
  display: flex; align-items: center; gap: 11px;
  font-size: 22px; font-weight: 800; color: #fff; letter-spacing: -.035em; margin-bottom: 16px;
}
.footer__mark {
  width: 36px; height: 36px; flex: none;
  position: relative; overflow: hidden;
  background: transparent; border: 0;
  font-size: 0; line-height: 0; color: transparent;
}
.footer__meta { line-height: 2.1; }
.footer__meta span { display: inline-block; margin-right: 18px; }
.footer__nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.footer__nav a { font-size: 16px; font-weight: 600; color: rgba(255,255,255,.82); }
.footer__nav a:hover { color: var(--gold-soft); }
.footer__bottom { padding-top: 28px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: 14px; }
.footer__notice { max-width: 760px; line-height: 1.9; color: #76829A; }

/* ---------- 11. Fixed quick bar ---------- */
.quickbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  background: var(--wine); border-top: 1px solid rgba(255,255,255,.16);
}
.quickbar a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 8px; font-size: 15px; font-weight: 700; color: #fff;
  transition: background .25s var(--ease);
}
.quickbar a + a { border-left: 1px solid rgba(255,255,255,.7); }   /* 메뉴 구분선 흰색 */
.quickbar a:hover { background: var(--gold); }
.quickbar svg { width: 17px; height: 17px; }

.to-top {
  position: fixed; right: 22px; bottom: 82px; z-index: 81;
  width: 48px; height: 48px; display: grid; place-items: center;
  background: rgba(7,15,29,.85); color: #fff; border: 1px solid rgba(255,255,255,.2);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.to-top.is-on { opacity: 1; visibility: visible; transform: none; }

/* ---------- 12. Sub page ---------- */
.subhero {
  position: relative; background: var(--navy-900);
  background-image: radial-gradient(800px 380px at 80% 0%, rgba(184,147,94,.22), transparent 68%);
  padding: calc(var(--header-h) + 76px) 0 72px; color: #fff; text-align: center;
}
.subhero__title { font-size: clamp(30px, 4vw, 46px); font-weight: 800; letter-spacing: -.045em; }
.subhero__desc { margin-top: 16px; font-size: clamp(15px, 1.6vw, 17.5px); color: var(--on-dark-soft); }
.crumb {
  display: flex; justify-content: center; gap: 10px; margin-bottom: 18px;
  font-size: 13px; color: rgba(255,255,255,.6);
}
.crumb li + li::before { content: "／"; margin-right: 10px; color: rgba(255,255,255,.3); }
.crumb li { display: flex; }
.crumb [aria-current] { color: var(--gold); }

/* 같은 페이지 앵커로 이동할 때 고정 헤더·로컬메뉴에 가리지 않도록 */
main section[id] { scroll-margin-top: calc(var(--header-solid-h) + 62px); }

.localnav { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: var(--header-solid-h); z-index: 60; }
.localnav ul { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.localnav ul::-webkit-scrollbar { display: none; }
.localnav a {
  display: block; padding: 19px 22px; white-space: nowrap;
  font-size: 15.5px; font-weight: 600; color: var(--ink-soft);
  border-bottom: 2px solid transparent; transition: color .25s, border-color .25s;
}
.localnav a:hover { color: var(--ink); }
.localnav a[aria-current="page"] { color: var(--navy-800); border-bottom-color: var(--gold); font-weight: 700; }

/* 본문 조판 */
/* 칼럼 작성·검수 줄 */
.col-meta {
  max-width: 820px; margin: -34px auto 46px;
  font-size: 13.5px; color: var(--ink-soft); letter-spacing: -.02em;
}
.prose { max-width: 820px; margin-inline: auto; }
.prose > * + * { margin-top: 22px; }
.prose h2 {
  margin-top: 56px; padding-top: 34px; border-top: 1px solid var(--line);
  font-size: clamp(21px, 2.4vw, 27px); font-weight: 800; letter-spacing: -.04em; line-height: 1.45;
}
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { margin-top: 36px; font-size: 19px; font-weight: 800; letter-spacing: -.035em; }
.prose h3.h3--gold { color: var(--gold); }
.prose p { font-size: 16.5px; line-height: 1.95; color: #33405C; }
.prose strong { color: var(--navy-700); font-weight: 700; }
.prose ul, .prose ol { display: grid; gap: 11px; }
.prose li {
  position: relative; padding-left: 20px; font-size: 16.5px; line-height: 1.9; color: #33405C;
}
.prose ul li::before {
  content: ""; position: absolute; left: 2px; top: 14px;
  width: 6px; height: 6px; background: var(--gold);
}
.prose ol { counter-reset: n; }
.prose ol li { padding-left: 30px; counter-increment: n; }
.prose ol li::before {
  content: counter(n) "."; position: absolute; left: 0; top: 0;
  color: var(--gold); font-weight: 800;
}
.callout {
  background: var(--paper); border-left: 3px solid var(--gold);
  padding: 26px 28px; font-size: 16px; line-height: 1.9; color: #33405C;
}
.callout b { color: var(--navy-700); }
.answer-box {
  background: var(--navy-800); color: #fff; padding: 30px 32px;
  border-left: 3px solid var(--gold);
}
.answer-box p { color: #D9E0EC; font-size: 16.5px; line-height: 1.95; margin: 0; }
.answer-box .eyebrow { display: block; margin-bottom: 12px; }

.data-table { margin-top: 10px; font-size: 15.5px; }
.data-table th, .data-table td {
  border: 1px solid var(--line); padding: 14px 16px; text-align: left; line-height: 1.75;
}
.data-table thead th { background: var(--paper); font-weight: 700; color: var(--navy-700); }
.data-table td { color: #33405C; }

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; border-top: 1px solid var(--line); }
/* 질문마다 고유 주소(#faq-1 …)가 있다. 링크로 들어왔을 때 헤더에 가리지 않게 여유를 둔다 */
.faq__item { border-bottom: 1px solid var(--line); scroll-margin-top: 140px; }
/* Q·A 글자는 같은 폭의 칸에 넣어 왼쪽 선을 맞춘다. 질문이 두 줄이 되어도 Q 는 첫 줄에 붙는다. */
.faq__q {
  width: 100%; display: flex; align-items: flex-start; gap: 0;
  padding: 24px 4px; text-align: left;
  font-size: 17.5px; font-weight: 700; letter-spacing: -.035em; line-height: 1.6;
}
.faq__q::before {
  content: "Q"; flex: none; width: 20px; margin-right: 16px;
  color: var(--gold); font-family: var(--serif); font-weight: 700;
}
.faq__q i {
  flex: none; margin-left: auto; margin-top: 7px;
  width: 13px; height: 13px; position: relative; transition: transform .3s var(--ease);
}
.faq__q i::before, .faq__q i::after {
  content: ""; position: absolute; background: var(--ink-soft);
  left: 50%; top: 50%; translate: -50% -50%;
}
.faq__q i::before { width: 13px; height: 1.5px; }
.faq__q i::after  { width: 1.5px; height: 13px; transition: opacity .3s var(--ease); }
.faq__item.is-open .faq__q i::after { opacity: 0; }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p {
  position: relative; padding: 0 4px 26px 40px;
  font-size: 16px; line-height: 1.95; color: var(--ink-soft);
}
/* 질문의 Q 와 같은 자리, 같은 폭에 A 를 둔다 */
.faq__a p::before {
  content: "A"; position: absolute; left: 4px; top: 0; width: 20px;
  font-family: var(--serif); font-size: 17.5px; font-weight: 700;
  line-height: inherit; color: var(--navy-800);
}

/* 변호사 소개 — 사진 + 이름만 */
.lawyers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 38px 30px; align-items: start; }
.lawyer { text-align: left; }
.lawyer__head { display: block; color: inherit; text-decoration: none; }
.lawyer__head .lawyer__photo img { transition: transform .5s var(--ease); }
.lawyer__head:hover .lawyer__photo img { transform: scale(1.04); }
.lawyer__head:hover .lawyer__name { color: var(--gold); }
.lawyer__photo {
  aspect-ratio: 3 / 4;
  background: var(--navy-700);
  background-image: linear-gradient(145deg, #1a2b48, #0a1322);
  border: 1px solid var(--line);
  display: grid; place-items: center; padding: 0; overflow: hidden;
  color: rgba(255,255,255,.4); font-size: 13.5px; line-height: 1.7; letter-spacing: .02em;
}
.lawyer__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lawyer__meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; margin-top: 18px;
}
.lawyer__name {
  display: block;
  font-size: clamp(23px, 2.4vw, 27px); font-weight: 800;
  letter-spacing: -.045em; color: var(--navy-800);
  transition: color .22s var(--ease);
}
.lawyer__name span { font-size: .64em; font-weight: 600; color: var(--ink-soft); margin-left: 8px; }

/* 변호사 개별 페이지 */
.lawyerpage { max-width: 600px; margin-inline: auto; }
.lawyerpage__photo {
  aspect-ratio: 3 / 4; overflow: hidden;
  background: #0a1322; border: 1px solid var(--line);
}
.lawyerpage__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lawyerpage__eyebrow {
  margin-top: 32px; font-size: 15px; color: var(--ink-soft); letter-spacing: 0;
}
.lawyerpage__name {
  margin-top: 5px;
  font-size: clamp(28px, 3.4vw, 36px); font-weight: 800;
  letter-spacing: -.05em; color: var(--navy-800);
}
.lawyerpage .lawyer__role { margin-top: 30px; }
.lawyerpage .lawyer__career { margin-top: 20px; }
.lawyerpage .lawyer__career li { font-size: 15.5px; }
.lawyerpage__back {
  margin-top: 50px; display: flex; gap: 12px;
  justify-content: center; flex-wrap: wrap;
}

.lawyer__role {
  margin: 20px 0 0; padding: 13px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-size: 15.5px; font-weight: 800; color: var(--wine); letter-spacing: -.03em;
}
.lawyer__career { margin-top: 15px; display: grid; gap: 9px; list-style: none; padding: 0; }
.lawyer__career li {
  position: relative; padding-left: 13px;
  font-size: 14.5px; line-height: 1.55; color: var(--ink-soft);
  letter-spacing: -.025em; word-break: keep-all;
}
.lawyer__career li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 4px; height: 4px; border-radius: 50%; background: var(--gold);
}

/* 소개 페이지 */
.profile { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
.profile__photo {
  aspect-ratio: 3 / 4; background: var(--navy-700);
  background-image: linear-gradient(145deg, #1a2b48, #0a1322);
  display: grid; place-items: center; text-align: center;
  color: rgba(255,255,255,.4); font-size: 14px; letter-spacing: .05em; padding: 20px;
  border: 1px solid var(--line);
}
.profile__name { font-size: clamp(26px, 3vw, 34px); font-weight: 800; letter-spacing: -.045em; }
.profile__name span { font-size: .6em; color: var(--ink-soft); font-weight: 600; margin-left: 10px; }
.profile__lead { margin-top: 18px; font-size: 17px; line-height: 1.95; color: var(--ink-soft); }
.career { margin-top: 34px; display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.career > div { background: #fff; display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 15px 2px; }
.career dt { font-size: 13.5px; font-weight: 700; color: var(--gold); letter-spacing: .05em; }
.career dd { font-size: 16px; color: #33405C; line-height: 1.8; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.14); }
.stat { background: var(--navy-800); padding: 40px 24px; text-align: center; }
.stat__num { font-size: clamp(30px, 3.4vw, 42px); font-weight: 800; color: var(--gold); letter-spacing: -.04em; }
.stat__label { margin-top: 8px; font-size: 14.5px; color: var(--on-dark-soft); }

/* 상담예약 폼 */
.form-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; }
.field-row { display: grid; gap: 9px; margin-bottom: 20px; }
.field-row label { font-size: 14.5px; font-weight: 700; color: var(--navy-700); }
.field-row label em { color: var(--gold); font-style: normal; margin-left: 3px; }
.field-row input, .field-row select, .field-row textarea {
  width: 100%; padding: 15px 16px; font: inherit; font-size: 16px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  border-radius: var(--radius); transition: border-color .25s var(--ease);
}
.field-row textarea { min-height: 170px; resize: vertical; line-height: 1.8; }
.field-row input:focus, .field-row select:focus, .field-row textarea:focus {
  outline: none; border-color: var(--gold);
}
.field-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink-soft); line-height: 1.7; }
.agree input { margin-top: 5px; accent-color: var(--gold); width: 16px; height: 16px; flex: none; }
.form-note { margin-top: 18px; font-size: 13.5px; color: #8A94A8; line-height: 1.8; }

/* 상담 신청 결과 안내 */
.form-msg {
  margin-top: 16px; padding: 14px 16px; border-radius: 2px;
  font-size: 14.5px; line-height: 1.7; letter-spacing: -.02em;
}
.form-msg.is-ok  { background: #F2F6F1; border-left: 3px solid #4E7A4A; color: #2E4A2B; }
.form-msg.is-bad { background: #FBF2F4; border-left: 3px solid var(--wine); color: var(--wine); }

/* 자동 스팸 차단용 숨김 칸 — 사람에게는 보이지 않는다 */
.hp-field {
  position: absolute !important; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.contact-aside { background: var(--navy-800); color: #fff; padding: 42px 38px; }
.contact-aside h3 { font-size: 22px; font-weight: 800; letter-spacing: -.04em; margin-bottom: 8px; }
.contact-aside p { font-size: 15px; color: var(--on-dark-soft); line-height: 1.9; }
.contact-aside .big-tel {
  display: block; margin: 24px 0 6px; font-size: clamp(28px, 3.4vw, 36px);
  font-weight: 800; color: var(--gold); letter-spacing: -.03em;
}
.contact-aside .btn { width: 100%; margin-top: 18px; }

/* 업무분야 목록 */
.field-list { display: grid; gap: 18px; }
.field-row-card {
  display: grid; grid-template-columns: 220px 1fr auto; gap: 34px; align-items: center;
  padding: 38px 36px; background: #fff; border: 1px solid var(--line);
  transition: border-color .35s var(--ease), box-shadow .35s var(--ease), transform .35s var(--ease);
}
.field-row-card:hover {
  border-color: var(--gold-dim); transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(11,22,40,.08);
}
.field-row-card__head .eyebrow { display: block; margin-bottom: 8px; font-size: 11.5px; }
.field-row-card__head h3 { font-size: 25px; font-weight: 800; letter-spacing: -.045em; }
.field-row-card__body p { font-size: 16px; color: var(--ink-soft); line-height: 1.9; }
.field-row-card__body ul { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.field-row-card__body li { font-size: 13.5px; color: var(--ink-soft); padding: 6px 12px; background: var(--paper); }

/* reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .hero__scroll i { animation: none; }
}

/* ---------- 13. Responsive ---------- */
/* 가로폭이 줄면 헤더 글자도 단계적으로 줄인다 (왼쪽 > 오른쪽 비율은 유지) */
@media (max-width: 1400px) {
  :root { --header-h: 100px; --header-solid-h: 80px; }
  .logo__mark { width: 52px; height: 52px; }
  .logo__text { font-size: 28px; }
  .gnb > li > a { font-size: 18.5px; padding: 0 20px; }
  .gnb > li > a::after { left: 16px; right: 16px; }
  .header__tel { font-size: 19px; }
  .header.is-solid .logo__mark { width: 45px; height: 45px; }
  .header.is-solid .logo__text { font-size: 24px; }
}
@media (max-width: 1240px) {
  .header__tel { display: none; }
}
@media (max-width: 1180px) {
  .fields { grid-template-columns: repeat(3, 1fr); }
  .steps  { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  :root { --header-h: 74px; --header-solid-h: 74px; }
  .gnb, .header__tel, .megabg { display: none; }
  .logo__mark { width: 46px; height: 46px; }
  .logo__text, .header.is-solid .logo__text { font-size: 25px; }
  .header.is-solid .logo__mark { width: 46px; height: 46px; }
  .burger { display: grid; }
  /* ── 좁은 화면: POINT 탭을 위로 올리고, 사진 위 / 카드 아래로 쌓는다 ── */
  .strengths-bleed { width: calc(100% - 40px); }
  .strengths { grid-template-columns: 1fr; gap: 26px; }

  .strengths__tabs {
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid var(--line);
  }
  .strengths__tab {
    justify-items: center; text-align: center; gap: 0;
    padding: 15px 6px; border-top: 0;
  }
  .strengths__tab:last-child { border-bottom: 0; }
  .strengths__no { font-size: 17px; letter-spacing: .12em; }
  .strengths__label { display: none; }      /* 좁은 화면 탭에는 번호만 */

  /* 좁은 화면에서는 선택된 것만 흐름에 두어, 짧은 내용 아래에 빈 띠가 생기지 않게 한다
     (겹쳐 두면 가장 긴 패널 높이에 맞춰져 아래가 비어 보인다) */
  .strengths__panel {
    grid-area: auto; display: none; min-height: 0; padding: 0;
    background: #fff; border: 1px solid var(--line);
    opacity: 1; visibility: visible; transform: none; transition: none;
  }
  .strengths__panel.is-active { display: block; }
  .strengths__photo { position: static; aspect-ratio: 16 / 9; }
  .strengths__watermark { display: none; }
  .strengths__card {
    max-width: none; padding: 26px 24px 30px;
    background: #fff; box-shadow: none;
    backdrop-filter: none; -webkit-backdrop-filter: none;
  }

  /* 좁은 화면 — 목록형은 세로로, 메인 슬라이드는 한 장씩 */
  .columns { grid-template-columns: 1fr; }
  .columns--slider {
    gap: 16px; margin-inline: -20px; padding: 4px 20px 10px;
    scroll-padding-left: 20px;
  }
  .columns--slider > .col-card { flex: 0 0 78%; }

  .location__grid { grid-template-columns: 1fr; gap: 40px; }
  .profile { grid-template-columns: 1fr; gap: 36px; }
  .profile__photo { max-width: 340px; }
  .lawyers { gap: 22px; }
  .form-grid { grid-template-columns: 1fr; gap: 36px; }
  .field-row-card { grid-template-columns: 1fr; gap: 20px; padding: 30px 26px; }
  /* 3칸이라 2열로 두면 빈 칸이 생긴다 — 좁은 화면에서는 세로로 */
  .stats { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 32px); }
  .strengths-bleed { width: calc(100% - 32px); }
  .columns--slider { margin-inline: -16px; padding: 4px 16px 10px; scroll-padding-left: 16px; }
  .columns--slider > .col-card { flex: 0 0 84%; }
  .fields { grid-template-columns: 1fr 1fr; }
  .field { padding: 0 16px 20px; }
  .field__img { margin: 0 -16px 18px; }
  .field__title { font-size: 19px; }
  .field__desc { display: none; }
  .steps { grid-template-columns: 1fr; }
  /* 모바일: 사진 왼쪽 + 이름 오른쪽 가운데, 가로로 넓은 카드 */
  .lawyers { grid-template-columns: 1fr; gap: 16px; }
  .lawyer { background: #fff; border: 1px solid var(--line); }
  .lawyer__head { display: grid; grid-template-columns: 40% 1fr; align-items: stretch; }
  .lawyer__photo { aspect-ratio: 3 / 4; border: 0; border-right: 1px solid var(--line); max-width: none; }
  .lawyer__meta {
    position: relative; display: grid;
    place-content: center; place-items: center;
    margin-top: 0; padding: 18px 14px; gap: 0;
  }
  .lawyer__name { text-align: center; font-size: 24px; }
  .lawyer__name span { margin-left: 7px; font-size: .62em; }

  /* 푸터: 가운데 정렬 */
  .footer { text-align: center; padding-top: 52px; }
  .footer__top { flex-direction: column; align-items: center; gap: 28px; }
  .footer__name { justify-content: center; font-size: 21px; }
  .footer__meta span { margin-inline: 8px; }
  .footer__meta br { display: none; }
  .footer__nav { margin-left: 0; justify-content: center; }
  .footer__bottom { justify-content: center; text-align: center; }
  .footer__notice { text-align: center; }
  .btn { height: 52px; padding: 0 24px; font-size: 15px; }

  /* 모바일 히어로 — 영상은 화면 가득, 문구는 그 위에 */
  .hero__media { height: 100svh; min-height: 520px; }
  .hero__scroll { display: none; }
  .hero__intro .eyebrow { margin-top: 20px; font-size: 18.2px; letter-spacing: .14em; }
  .hero__lead { font-size: 24.7px; line-height: 1.7; }
  .location__grid { padding: 64px 0; }
  .info-list > div { grid-template-columns: 76px 1fr; }
  .map { aspect-ratio: 1 / 1; }
  .footer { padding-bottom: 100px; }
  .prose h2 { margin-top: 44px; padding-top: 28px; }
}
@media (max-width: 420px) {
  .quickbar a { font-size: 13.5px; gap: 6px; padding: 14px 4px; }
  :root { --header-h: 68px; --header-solid-h: 68px; }
  .logo { gap: 11px; }
  .logo__mark, .header.is-solid .logo__mark { width: 40px; height: 40px; }
  .logo__text, .header.is-solid .logo__text { font-size: 20px; }
}
