/* 새 디자인 공통 구성요소 (메인·분야별 페이지). 색은 site.css의 :root */
.h2-page { color: var(--h2-ink); font-family: 'Pretendard', 'Noto Sans KR', sans-serif; overflow-x: clip; }
.h2-page a { color: inherit; }
.h2-wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.h2-narrow { max-width: 820px; }

.h2-eyebrow, .h2-kicker { font-size: 15px; font-weight: 600; color: var(--h2-accent); letter-spacing: -.01em; margin: 0 0 18px; }
.h2-display { font-size: clamp(34px, 5.2vw, 64px); line-height: 1.22; font-weight: 700; letter-spacing: -.035em; margin: 0; }
.h2-display em { font-style: normal; color: var(--h2-navy); background: linear-gradient(transparent 68%, rgba(224, 96, 58, .28) 68%); }
.h2-title { font-size: clamp(28px, 3.8vw, 46px); line-height: 1.28; font-weight: 700; letter-spacing: -.03em; margin: 0 0 20px; }
.h2-sub, .h2-lead { font-size: 17px; line-height: 1.7; color: var(--h2-sub); margin: 0 0 48px; }
.h2-lead { margin: 28px 0 36px; }

.h2-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.h2-btn { display: inline-flex; align-items: center; gap: 8px; height: 54px; padding: 0 28px; border-radius: 999px; font-size: 16px; font-weight: 700; text-decoration: none; transition: transform .2s, background .2s; }
.h2-btn:hover { transform: translateY(-2px); }
.h2-btn-fill { background: var(--h2-accent); color: #fff !important; }
.h2-btn-fill:hover { background: #c94f2b; }
.h2-btn-line { border: 1.5px solid var(--h2-ink); }
.h2-btn-line:hover { background: var(--h2-ink); color: #fff !important; }
.h2-btn-line i { font-size: 14px; }

/* 첫 화면 */
.h2-hero { position: relative; min-height: calc(100vh - 64px); display: flex; align-items: center; padding: 60px 0 100px; }
.h2-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 40px; width: 100%; }
.h2-hero-art, .h2-lawyer-art { position: relative; }
.h2-blob { position: absolute; inset: 0; width: 100%; height: 100%; animation: h2float 9s ease-in-out infinite; }
.h2-blob path { fill: #fff; stroke: var(--h2-ink); stroke-width: 1.6; }
.h2-hero-art { aspect-ratio: 1 / 1; }
.h2-hero-art img { position: absolute; left: 8%; right: 8%; bottom: 10%; width: 84%; height: auto; }
.h2-lawyer-art { aspect-ratio: 4 / 5; }
.h2-lawyer-art { clip-path: inset(-40% -40% 0 -40%); }
.h2-lawyer-art .h2-ring { position: absolute; left: 4%; right: 4%; bottom: -14%; aspect-ratio: 1 / 1; border-radius: 50%; background: var(--h2-navy); }
.h2-lawyer-art .h2-ring::after { content: ''; position: absolute; top: 3%; right: 4%; width: 12%; aspect-ratio: 1 / 1; border-radius: 50%; background: var(--h2-accent); }
.h2-lawyer-art img { position: absolute; left: 0; right: 0; bottom: 0; margin: 0 auto; height: 100%; width: auto; max-width: 100%; object-fit: contain; object-position: 50% 100%; display: block; }
.h2-dot { position: absolute; top: 12%; right: 16%; width: 44px; height: 44px; border-radius: 50%; background: var(--h2-accent); animation: h2bob 4s ease-in-out infinite; z-index: 2; }
.h2-scroll { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); font-size: 22px; text-decoration: none; color: var(--h2-sub) !important; animation: h2bob 2.4s ease-in-out infinite; }
@keyframes h2float { 0%, 100% { transform: rotate(0deg) scale(1); } 50% { transform: rotate(6deg) scale(1.03); } }
@keyframes h2bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

/* 구역 */
.h2-sec { padding: 140px 0; }
.h2-tint { background: var(--h2-tint); }

/* 숫자 */
.h2-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 48px; margin-top: 64px; }
.h2-stat { border-top: 1.5px solid var(--h2-ink); padding-top: 26px; }
.h2-stat strong { display: block; font-size: clamp(40px, 4.6vw, 60px); font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--h2-navy); }
.h2-stat span { display: block; margin: 14px 0 10px; font-size: 18px; font-weight: 700; }
.h2-stat p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--h2-sub); }
.h2-stat a { color: var(--h2-navy) !important; font-weight: 600; }

/* 신념 띠 */
.h2-band { background: var(--h2-navy); color: #fff; padding: 130px 0; }
.h2-quote { font-size: clamp(26px, 3.6vw, 44px); line-height: 1.4; font-weight: 700; letter-spacing: -.03em; margin: 0 0 40px; }
.h2-quote::before { content: '“'; display: block; font-size: 1.8em; line-height: .6; color: var(--h2-accent); margin-bottom: 18px; }

.h2-more summary { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 700; font-size: 16px; list-style: none; border-bottom: 1.5px solid currentColor; padding-bottom: 4px; }
.h2-more summary::-webkit-details-marker { display: none; }
.h2-more summary::after { content: '+'; font-size: 20px; line-height: 1; color: var(--h2-accent); }
.h2-more[open] summary::after { content: '−'; }
.h2-more > p { max-width: 760px; margin: 24px 0 0; font-size: 17px; line-height: 1.85; opacity: .85; }

/* 업무분야 */
.h2-areas { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--h2-ink); }
.h2-areas li { border-bottom: 1px solid var(--h2-line); }
.h2-area-main { display: grid; grid-template-columns: 260px 1fr 40px; align-items: center; gap: 20px; padding: 34px 4px; text-decoration: none; }
.h2-area-main b { font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -.03em; }
.h2-area-main span { color: var(--h2-sub); font-size: 16px; }
.h2-area-main i { font-style: normal; font-size: 26px; justify-self: end; transition: transform .25s, color .25s; }
.h2-area-main:hover i { transform: translateX(8px); color: var(--h2-accent); }
.h2-area-main:hover b { color: var(--h2-navy); }
.h2-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 4px 30px 284px; margin-top: -12px; }
.h2-chips a { font-size: 14px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--h2-line); background: #fff; text-decoration: none; }
.h2-chips a:hover { border-color: var(--h2-accent); color: var(--h2-accent) !important; }

/* 사무실 사진 */
.h2-photo { min-height: 72vh; display: flex; align-items: flex-end; padding: 0 0 70px; color: #fff;
  background: linear-gradient(to top, rgba(16, 24, 40, .78), rgba(16, 24, 40, .05) 60%), url('/assets/img/675abca6c45bb.jpeg') center / cover no-repeat; }
.h2-photo p { margin: 0; font-size: clamp(28px, 3.8vw, 46px); font-weight: 700; letter-spacing: -.03em; line-height: 1.3; }
.h2-photo p span { display: block; max-width: 600px; margin-top: 16px; font-size: 17px; font-weight: 400; line-height: 1.7; opacity: .9; letter-spacing: 0; }

/* 세 칸 */
.h2-three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin-top: 64px; }
.h2-three svg { width: 52px; height: 52px; fill: none; stroke: var(--h2-ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.h2-three svg :first-child { stroke: var(--h2-accent); }
.h2-three h3, .h2-insure h3 { font-size: 20px; margin: 20px 0 10px; letter-spacing: -.02em; }
.h2-three p, .h2-insure p { margin: 0; font-size: 15px; line-height: 1.75; color: var(--h2-sub); }
.h2-insure { display: flex; align-items: center; gap: 32px; margin-top: 80px; padding: 32px; background: #fff; border-radius: 24px; }
.h2-insure img { width: 120px; border-radius: 6px; box-shadow: 0 6px 20px rgba(0, 0, 0, .08); }
.h2-insure h3 { margin-top: 0; }

/* 변호사 */
.h2-lawyer { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.h2-badges { list-style: none; padding: 0; margin: 8px 0 36px; display: flex; flex-wrap: wrap; gap: 8px; }
.h2-badges li { padding: 9px 16px; border-radius: 999px; background: var(--h2-navy); color: #fff; font-size: 14px; font-weight: 600; }
.h2-cv { display: grid; grid-template-columns: 96px 1fr; gap: 18px 20px; margin: 0; font-size: 15px; line-height: 1.75; }
.h2-cv dt { font-weight: 700; }
.h2-cv dd { margin: 0; color: var(--h2-sub); }
.h2-cv small { font-size: 14px; }
.h2-proof { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 96px; }
.h2-proof figure { margin: 0; }
.h2-proof { align-items: end; }
.h2-proof img { width: 100%; height: auto; display: block; border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, .08); background: #fff; }
.h2-proof figcaption { margin-top: 12px; font-size: 14px; color: var(--h2-sub); text-align: center; }
.h2-media { margin-top: 96px; padding-top: 40px; border-top: 1px solid var(--h2-line); }
.h2-media h3 { margin: 0 0 8px; font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -.03em; }
.h2-media p { margin: 0; color: var(--h2-sub); font-size: 16px; }
.h2-tv { margin-top: 36px; overflow: hidden; }
.h2-tv-track { display: flex; gap: 16px; width: max-content; animation: h2tv 48s linear infinite; }
.h2-tv:hover .h2-tv-track { animation-play-state: paused; }
.h2-tv img { width: 320px; height: auto; aspect-ratio: 1426 / 831; object-fit: cover; border-radius: 14px; display: block; }
@keyframes h2tv { to { transform: translateX(calc(-50% - 8px)); } }

/* 수임료 */
.h2-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.h2-plan { position: relative; background: #fff; border-radius: 24px; padding: 40px 32px; }
.h2-plan h3 { margin: 0 0 18px; font-size: 18px; letter-spacing: 0; }
.h2-plan .h2-price { font-size: 56px; font-weight: 800; letter-spacing: -.04em; line-height: 1; margin: 0 0 22px; color: var(--h2-navy); }
.h2-price small { font-size: 18px; font-weight: 600; margin-left: 4px; }
.h2-plan p { margin: 0 0 6px; font-size: 16px; }
.h2-muted { color: var(--h2-sub); font-size: 14px !important; }
.h2-plan-pick { background: var(--h2-navy); color: #fff; }
.h2-plan-pick .h2-price { color: #fff; }
.h2-plan-pick .h2-muted { color: rgba(255, 255, 255, .7); }
.h2-tag { position: absolute; top: 24px; right: 24px; background: var(--h2-accent); color: #fff; font-size: 13px; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.h2-fee-more { margin-top: 48px; }
.h2-fee-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 40px; margin-top: 36px; }
.h2-fee-grid h4 { margin: 0 0 14px; font-size: 16px; padding-bottom: 10px; border-bottom: 1.5px solid var(--h2-ink); }
.h2-fee-grid p { margin: 0 0 14px; font-size: 15px; line-height: 1.7; color: var(--h2-sub); }
.h2-fee-grid b { color: var(--h2-ink); }

/* 후기 */
.h2-reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.h2-reviews blockquote { margin: 0; background: #fff; border-radius: 24px; padding: 34px 30px; display: flex; flex-direction: column; justify-content: space-between; }
.h2-reviews blockquote::before { content: '“'; font-size: 54px; line-height: .8; color: var(--h2-accent); font-weight: 700; }
.h2-reviews p { margin: 6px 0 24px; font-size: 17px; line-height: 1.7; }
.h2-reviews cite { font-style: normal; font-size: 14px; color: var(--h2-sub); }

/* 자주 묻는 질문 */
.h2-faq { margin-top: 48px; border-top: 1.5px solid var(--h2-ink); }
.h2-faq details { border-bottom: 1px solid var(--h2-line); }
.h2-faq-more { margin: 28px 4px 0; font-size: 15px; color: var(--h2-sub); }
.h2-faq-more a { color: var(--h2-navy); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.h2-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; padding: 28px 4px; font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.h2-faq summary::-webkit-details-marker { display: none; }
.h2-faq summary::after { content: '+'; color: var(--h2-accent); font-size: 24px; line-height: 1; }
.h2-faq details[open] summary::after { content: '−'; }
.h2-faq details p { margin: 0 4px 28px; font-size: 16px; line-height: 1.85; color: var(--h2-sub); }
.h2-faq a { color: var(--h2-navy) !important; font-weight: 600; }

/* 오시는 길 */
.h2-contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.h2-map { border-radius: 24px; overflow: hidden; background: #fff; min-height: 420px; }
#naver-map { width: 100%; height: 420px; }

/* 마무리 */
.h2-end { padding: 150px 0 170px; text-align: center; }
.h2-end .h2-cta { justify-content: center; margin-top: 44px; }

/* 타자기 효과 (자리는 미리 잡아 두고 글자만 하나씩 보이게 함) */
.h2-type .tw-c { visibility: hidden; }
.h2-type .tw-c.tw-on { visibility: visible; }
.h2-type .tw-cur { display: inline-block; width: 3px; height: .95em; margin-right: -3px; vertical-align: -.08em; background: var(--h2-accent); animation: tw-blink 1s steps(1) infinite; }
.h2-type .tw-cur.tw-done { opacity: 0; transition: opacity .6s ease; animation: none; }
@keyframes tw-blink { 50% { opacity: 0; } }

/* 스크롤할 때 나타나기 */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.on { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .h2-blob, .h2-dot, .h2-scroll, .h2-tv-track { animation: none; }
  .h2-tv { overflow-x: auto; }
}

/* 휴대폰·태블릿 */
@media (max-width: 960px) {
  .h2-hero { min-height: auto; padding: 40px 0 90px; }
  .h2-hero-grid, .h2-lawyer, .h2-contact { grid-template-columns: 1fr; }
  .h2-hero-art { max-width: 380px; width: 100%; margin: 0 auto; order: -1; }
  .h2-lawyer-art { max-width: 360px; width: 100%; margin: 0 auto; }
  .h2-stats, .h2-three, .h2-plans, .h2-fee-grid, .h2-reviews { grid-template-columns: 1fr 1fr; }
  .h2-proof { grid-template-columns: repeat(2, 1fr); }
  .h2-area-main { grid-template-columns: 1fr 30px; }
  .h2-area-main span { grid-column: 1; grid-row: 2; }
  .h2-area-main i { grid-row: 1 / 3; grid-column: 2; }
  .h2-chips { padding-left: 4px; margin-top: -10px; }
}
@media (max-width: 640px) {
  .h2-wrap { padding: 0 20px; }
  .h2-sec { padding: 96px 0; }
  .h2-band { padding: 96px 0; }
  .h2-hero-art { max-width: 300px; }
  .h2-stats, .h2-three, .h2-plans, .h2-fee-grid, .h2-reviews { grid-template-columns: 1fr; gap: 40px; }
  .h2-stats { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .h2-stat { padding-top: 18px; }
  .h2-stat strong { font-size: 34px; }
  .h2-stat span { font-size: 15px; margin: 10px 0 6px; }
  .h2-stat p { font-size: 13px; line-height: 1.6; }
  .h2-reviews { gap: 16px; }
  .h2-tv img { width: 240px; }
  .h2-plans { gap: 16px; }
  .h2-sub, .h2-lead { font-size: 16px; }
  .h2-btn { height: 50px; padding: 0 22px; font-size: 15px; }
  .h2-cta .h2-btn { flex: 1 1 100%; justify-content: center; }
  .h2-insure { flex-direction: column; align-items: flex-start; padding: 26px; }
  .h2-photo { min-height: 60vh; padding-bottom: 48px; }
  .h2-cv { grid-template-columns: 1fr; gap: 4px; }
  .h2-cv dd { margin-bottom: 14px; }
  .h2-faq summary { font-size: 17px; }
  .h2-map, #naver-map { min-height: 320px; height: 320px; }
  .h2-end { padding: 110px 0 140px; }
}
/* 휴대폰 첫 화면: 아래 예약 버튼과 겹치지 않게 네이버 예약 버튼은 하단 버튼으로 대신 */
@media (max-width: 640px) { .h2-hero-art img { z-index: 1; } }

/* ===== 분야별·안내 페이지 구성요소 ===== */
.h2-phero { padding: 72px 0 110px; }
.h2-crumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--h2-sub); margin: 0 0 36px; padding: 0; list-style: none; }
.h2-crumb li + li::before { content: '›'; margin-right: 8px; color: var(--h2-line); }
.h2-crumb a { text-decoration: none; }
.h2-crumb a:hover { color: var(--h2-accent) !important; }
.h2-phero .h2-display { font-size: clamp(32px, 4.6vw, 58px); max-width: 920px; }
.h2-phero .h2-lead { max-width: 720px; }
.h2-phero-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 56px; align-items: end; }
.h2-phero-side { border-top: 1.5px solid var(--h2-ink); padding-top: 22px; }
.h2-phero-side li { list-style: none; padding: 10px 0; border-bottom: 1px solid var(--h2-line); font-size: 15px; display: flex; gap: 10px; }
.h2-phero-side ul { margin: 0; padding: 0; }
.h2-phero-side li::before { content: ''; flex: none; width: 8px; height: 8px; margin-top: 8px; border-radius: 50%; background: var(--h2-accent); }

/* 왼쪽 제목, 오른쪽 내용 */
.h2-split { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.h2-split > header { position: sticky; top: 100px; }
.h2-split > header .h2-title { margin-bottom: 14px; }
.h2-prose { font-size: 17px; line-height: 1.85; color: var(--h2-sub); }
.h2-prose > * + * { margin-top: 18px; }
.h2-prose p { margin: 0; }
.h2-prose > p + p { margin-top: 18px; }
.h2-prose b, .h2-prose strong { color: var(--h2-ink); }
.h2-prose h3 { color: var(--h2-ink); font-size: 21px; letter-spacing: -.02em; line-height: 1.45; margin: 40px 0 0; }
.h2-prose h3:first-child { margin-top: 0; }
.h2-prose ul, .h2-prose ol { margin: 14px 0 0; padding-left: 1.2em; }
.h2-prose li + li { margin-top: 8px; }
.h2-prose a { color: var(--h2-navy) !important; font-weight: 600; }
.h2-note { background: #fff; border-radius: 18px; padding: 22px 26px; font-size: 16px; line-height: 1.75; color: var(--h2-ink); border-left: 4px solid var(--h2-accent); }
.h2-formula { background: var(--h2-navy); color: #fff; border-radius: 14px; padding: 16px 20px; font-size: 15px; line-height: 1.7; font-weight: 600; }

/* 카드 묶음 */
.h2-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.h2-cards.two { grid-template-columns: repeat(2, 1fr); }
.h2-cards.four { grid-template-columns: repeat(4, 1fr); }
.h2-card { background: #fff; border-radius: 24px; padding: 32px 28px; }
.h2-card .n { display: inline-flex; width: 38px; height: 38px; border-radius: 50%; align-items: center; justify-content: center; background: var(--h2-bg); color: var(--h2-accent); font-weight: 800; margin-bottom: 18px; }
.h2-card h3 { margin: 0 0 10px; font-size: 20px; letter-spacing: -.02em; line-height: 1.4; }
.h2-card p { margin: 0; font-size: 15px; line-height: 1.75; color: var(--h2-sub); }
.h2-card p + p { margin-top: 10px; }
.h2-tint .h2-card { background: #fff; }

/* 진행 순서 */
.h2-steps { list-style: none; margin: 56px 0 0; padding: 0; counter-reset: st; display: grid; gap: 0; border-top: 1.5px solid var(--h2-ink); }
.h2-steps li { counter-increment: st; display: grid; grid-template-columns: 96px 260px 1fr; gap: 24px; padding: 30px 4px; border-bottom: 1px solid var(--h2-line); align-items: baseline; }
.h2-steps li::before { content: counter(st, decimal-leading-zero); font-size: 34px; font-weight: 800; color: var(--h2-accent); letter-spacing: -.03em; line-height: 1; }
.h2-steps b { font-size: 20px; letter-spacing: -.02em; line-height: 1.4; }
.h2-steps p { margin: 0; font-size: 15px; line-height: 1.75; color: var(--h2-sub); }
.h2-steps .opt { display: inline-block; margin-left: 6px; font-size: 12px; font-weight: 700; color: var(--h2-sub); border: 1px solid var(--h2-line); padding: 2px 8px; border-radius: 999px; vertical-align: 3px; }
.h2-steps li.after { counter-increment: none; margin-top: 28px; border-top: 1.5px dashed var(--h2-line); border-bottom: 1.5px dashed var(--h2-line); }
.h2-steps li.after::before { content: '소송 후'; font-size: 15px; color: var(--h2-sub); letter-spacing: -.01em; }
.h2-steps li.after b { color: var(--h2-sub); }
.h2-steps li.after .opt { color: var(--h2-accent); border-color: var(--h2-accent); }

/* 준비 서류 */
.h2-check { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.h2-check li { background: #fff; border-radius: 16px; padding: 18px 20px 18px 54px; position: relative; font-size: 16px; line-height: 1.6; }
.h2-check li::before { content: ''; position: absolute; left: 20px; top: 21px; width: 20px; height: 20px; border-radius: 50%; background: var(--h2-accent); }
.h2-check li::after { content: ''; position: absolute; left: 26px; top: 26px; width: 8px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
.h2-check small { display: block; color: var(--h2-sub); font-size: 14px; margin-top: 2px; }

/* 사건 사례 */
.h2-cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.h2-case { background: #fff; border-radius: 24px; padding: 30px 28px; display: flex; flex-direction: column; }
.h2-case-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; font-size: 13px; }
.h2-case-top span { padding: 4px 10px; border-radius: 999px; background: var(--h2-navy); color: #fff; font-weight: 700; }
.h2-case-top em { font-style: normal; color: var(--h2-sub); }
.h2-case h3 { margin: 0 0 12px; font-size: 19px; letter-spacing: -.02em; line-height: 1.45; }
.h2-case p { margin: 0 0 10px; font-size: 15px; line-height: 1.75; color: var(--h2-sub); }
.h2-case p b { color: var(--h2-ink); }
.h2-case .res { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--h2-line); font-weight: 700; color: var(--h2-navy); font-size: 15px; line-height: 1.5; }
.h2-case-note { margin-top: 20px; font-size: 14px; color: var(--h2-sub); }

/* 관련 자료 링크 */
.h2-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 48px; }
.h2-links a { display: flex; flex-direction: column; gap: 6px; padding: 24px 26px; background: #fff; border-radius: 20px; text-decoration: none; border: 1px solid transparent; transition: border-color .2s, transform .2s; position: relative; }
.h2-links a:hover { border-color: var(--h2-accent); transform: translateY(-2px); }
.h2-links small { font-size: 13px; font-weight: 700; color: var(--h2-accent); }
.h2-links b { font-size: 17px; letter-spacing: -.02em; padding-right: 26px; }
.h2-links span { font-size: 14px; color: var(--h2-sub); line-height: 1.6; }
.h2-links a::after { content: '→'; position: absolute; right: 24px; top: 46px; font-size: 18px; color: var(--h2-sub); }

/* 담당 변호사 (짧게) */
.h2-mini { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: center; }
.h2-mini .h2-lawyer-art { aspect-ratio: 4 / 5; }
.h2-mini blockquote { margin: 0 0 24px; font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; letter-spacing: -.03em; line-height: 1.45; }
.h2-mini blockquote::before { content: '“'; color: var(--h2-accent); margin-right: 4px; }
.h2-mini p { margin: 0 0 20px; font-size: 16px; line-height: 1.8; color: var(--h2-sub); }

/* 짧은 연락처 */
.h2-visit { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1.5px solid var(--h2-ink); margin-top: 48px; }
.h2-visit > div { padding: 26px 24px 26px 0; border-bottom: 1px solid var(--h2-line); }
.h2-visit h3 { margin: 0 0 10px; font-size: 15px; color: var(--h2-accent); }
.h2-visit p { margin: 0; font-size: 16px; line-height: 1.75; }
.h2-visit small { color: var(--h2-sub); font-size: 14px; }
.h2-text-link { display: inline-flex; gap: 8px; align-items: center; margin-top: 28px; font-weight: 700; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 3px; }
.h2-text-link:hover { color: var(--h2-accent) !important; }

/* 표 */
.h2-table { width: 100%; border-collapse: collapse; margin-top: 28px; font-size: 15px; background: #fff; border-radius: 18px; overflow: hidden; }
.h2-table th, .h2-table td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--h2-line); vertical-align: top; line-height: 1.6; }
.h2-table th { background: var(--h2-navy); color: #fff; font-weight: 700; }
.h2-table tr:last-child td, .h2-table tr:last-child th { border-bottom: 0; }
.h2-table tbody th { background: var(--h2-bg); color: var(--h2-navy); width: 20%; }

@media (max-width: 960px) {
  .h2-phero-grid, .h2-split, .h2-mini { grid-template-columns: 1fr; gap: 36px; }
  .h2-split > header { position: static; }
  .h2-cards, .h2-cases, .h2-links, .h2-cards.four { grid-template-columns: 1fr 1fr; }
  .h2-steps li { grid-template-columns: 64px 1fr; }
  .h2-steps li p { grid-column: 2; }
  .h2-mini .h2-lawyer-art { max-width: 300px; }
}
@media (max-width: 640px) {
  .h2-phero { padding: 40px 0 80px; }
  .h2-cards, .h2-cards.two, .h2-cards.four, .h2-cases, .h2-links, .h2-check, .h2-visit { grid-template-columns: 1fr; }
  .h2-steps li { grid-template-columns: 48px 1fr; gap: 14px; padding: 24px 2px; }
  .h2-steps li::before { font-size: 26px; }
  .h2-steps li.after::before { font-size: 13px; }
  .h2-prose { font-size: 16px; }
  .h2-card, .h2-case { padding: 26px 22px; }
  .h2-table { font-size: 14px; }
  .h2-table th, .h2-table td { padding: 12px; }
}

/* 분야별 페이지 끝 상담 안내 카드 (변호사·수임료·오시는 길로 연결) */
.h2-office { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.h2-ocard { display: flex; flex-direction: column; background: #fff; border-radius: 24px; padding: 32px 28px; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.h2-ocard:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(28, 34, 48, .08); }
.h2-ocard img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 0; background: var(--h2-tint); margin-bottom: 18px; }
.h2-ocard i { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: var(--h2-tint); color: var(--h2-accent); font-style: normal; font-size: 26px; font-weight: 700; margin-bottom: 18px; }
.h2-ocard b { font-size: 20px; letter-spacing: -.02em; margin-bottom: 10px; }
.h2-ocard span { flex: 1; font-size: 15px; line-height: 1.75; color: var(--h2-sub); }
.h2-ocard em { margin-top: 18px; font-style: normal; font-weight: 700; font-size: 15px; color: var(--h2-accent); }
@media (max-width: 960px) { .h2-office { grid-template-columns: 1fr; gap: 14px; } }

/* 분야별 첫 화면: "이런 상황이신가요?" 체크 카드 */
.h2-situ { align-self: center; background: #fff; border-radius: 24px; padding: 30px 28px 26px; box-shadow: 0 10px 30px rgba(28, 34, 48, .06); }
.h2-situ-t { margin: 0 0 14px; font-size: 20px; font-weight: 700; letter-spacing: -.02em; color: var(--h2-ink); }
.h2-situ label { display: flex; gap: 12px; align-items: flex-start; padding: 13px 0; border-top: 1px solid var(--h2-line); font-size: 16px; line-height: 1.55; cursor: pointer; }
.h2-situ input { appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; margin: 1px 0 0; border: 1.6px solid var(--h2-ink); border-radius: 6px; background: #fff; cursor: pointer; transition: background .15s, border-color .15s; }
.h2-situ input:checked { background: var(--h2-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 16px no-repeat; border-color: var(--h2-accent); }
.h2-situ input:focus-visible { outline: 2px solid var(--h2-navy); outline-offset: 2px; }
.h2-situ a { display: inline-block; margin-top: 14px; color: var(--h2-accent); font-weight: 700; text-decoration: none; }
.h2-situ a:hover { text-decoration: underline; }
#steps, #faq { scroll-margin-top: 80px; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (max-width: 640px) { .h2-situ { padding: 24px 20px 20px; } .h2-situ label { font-size: 15px; } }

/* 오른쪽 상자가 없는 상단 영역은 한 칸으로 */
.h2-phero-grid > :only-child { grid-column: 1 / -1; }

/* 이렇게 일합니다 (화면 공유·양식과 기록) */
.h2-work { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.h2-work + .h2-three { margin-top: 56px; }
.h2-work-rev .h2-work-art { order: -1; }
.h2-work .h2-lead { margin: 0; }
.h2-work-list + .h2-text-link { margin-top: 0; }
.h2-work-gap { height: 120px; }
.h2-work-art { position: relative; min-height: 340px; }
/* 노트북 */
.h2-lap { position: absolute; left: 0; top: 20px; width: 82%; }
.h2-lap-screen { background: var(--h2-ink); border-radius: 14px 14px 0 0; padding: 10px; }
.h2-lap-base { height: 14px; margin: 0 -6%; background: #c9c1b4; border-radius: 0 0 14px 14px; }
.h2-doc { background: #fff; border-radius: 4px; padding: 18px 20px; aspect-ratio: 16 / 10; overflow: hidden; position: relative; }
.h2-doc b { display: block; text-align: center; font-size: 13px; letter-spacing: .3em; margin-bottom: 12px; }
.h2-doc i { display: block; height: 7px; margin: 0 0 9px; border-radius: 4px; background: #e6e1d8; }
.h2-doc i.s { width: 62%; } .h2-doc i.m { width: 84%; }
.h2-doc i.hl { background: rgba(224, 96, 58, .35); }
.h2-pen { position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--h2-accent); background: rgba(224, 96, 58, .15); }
/* 휴대폰 */
.h2-phone { position: absolute; right: 0; bottom: 0; width: 34%; max-width: 170px; background: var(--h2-ink); border-radius: 26px; padding: 9px; box-shadow: 0 18px 40px rgba(16, 24, 40, .18); }
.h2-phone-in { background: #fff; border-radius: 19px; overflow: hidden; aspect-ratio: 9 / 18; display: flex; flex-direction: column; }
.h2-phone-bar { white-space: nowrap; overflow: hidden; background: var(--h2-navy); color: #fff; font-size: 10px; font-weight: 600; padding: 8px 10px; display: flex; align-items: center; gap: 6px; }
.h2-phone-bar::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #3ecf7a; }
.h2-phone .h2-doc { aspect-ratio: auto; flex: 1; padding: 12px 10px; border-radius: 0; }
.h2-phone .h2-doc b { font-size: 9px; margin-bottom: 8px; }
.h2-phone .h2-doc i { height: 5px; margin-bottom: 6px; }
.h2-work-tag { position: absolute; left: 6%; bottom: 6px; font-size: 13px; font-weight: 600; color: var(--h2-sub); background: #fff; border: 1px solid var(--h2-line); border-radius: 999px; padding: 7px 14px; }
/* 진술서 화면 */
.h2-form { position: relative; margin: 0 auto; width: 260px; max-width: 100%; background: var(--h2-ink); border-radius: 34px; padding: 11px; box-shadow: 0 18px 40px rgba(16, 24, 40, .18); }
.h2-form-in { background: var(--h2-bg); border-radius: 25px; padding: 20px 16px; font-size: 12px; line-height: 1.5; }
.h2-form-in h4 { margin: 0 0 4px; font-size: 15px; }
.h2-form-in small { display: block; color: var(--h2-sub); margin-bottom: 14px; font-size: 11px; }
.h2-q { background: #fff; border: 1px solid var(--h2-line); border-radius: 12px; padding: 11px 12px; margin-bottom: 10px; }
.h2-q p { margin: 0 0 6px; font-weight: 700; }
.h2-q span { display: block; color: var(--h2-sub); }
.h2-q em { display: inline-block; margin-top: 6px; font-style: normal; font-size: 11px; color: var(--h2-accent); font-weight: 600; }
.h2-q.on { border-color: var(--h2-accent); }
.h2-form-btns { display: flex; gap: 8px; margin-top: 12px; }
.h2-form-btns span { flex: 1; text-align: center; padding: 9px 0; border-radius: 999px; font-weight: 700; border: 1.5px solid var(--h2-ink); }
.h2-form-btns span + span { background: var(--h2-accent); border-color: var(--h2-accent); color: #fff; }
.h2-saved { position: absolute; left: -4%; top: 38%; background: #fff; border: 1px solid var(--h2-line); border-radius: 12px; padding: 10px 14px; font-size: 13px; font-weight: 600; box-shadow: 0 10px 24px rgba(16, 24, 40, .1); }
.h2-saved::before { content: '✓ '; color: var(--h2-accent); }
@media (max-width: 960px) {
  .h2-work { grid-template-columns: 1fr; gap: 48px; }
  .h2-work-rev .h2-work-art { order: 0; }
  .h2-work-art { max-width: 520px; width: 100%; margin: 0 auto; }
  .h2-work-gap { height: 88px; }
}
@media (max-width: 640px) {
  .h2-work-art { min-height: 270px; }
  .h2-saved { left: auto; right: 0; top: -14px; }
}
.h2-work-list { list-style: none; margin: 28px 0 32px; padding: 0; border-top: 1px solid var(--h2-line); }
.h2-work-list li { padding: 14px 0 14px 28px; border-bottom: 1px solid var(--h2-line); font-size: 16px; font-weight: 600; position: relative; }
.h2-work-list li::before { content: '✓'; position: absolute; left: 2px; color: var(--h2-accent); font-weight: 800; }
.h2-work-more { margin-top: 8px; }
.h2-work-more > summary { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; font-weight: 700; font-size: 16px; border-bottom: 1.5px solid currentColor; padding-bottom: 3px; }
.h2-work-more > summary::-webkit-details-marker { display: none; }
.h2-work-more > summary::after { content: '+'; font-size: 20px; line-height: 1; color: var(--h2-accent); }
.h2-work-more[open] > summary::after { content: '−'; }
.h2-work-more[open] > summary { margin-bottom: 8px; }
.h2-work-more > .h2-three:first-of-type { margin-top: 48px; }
/* 이렇게 일합니다: 두 덩어리 (2026-10-25, 기기 그림 대신) */
.h2-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 8px 0 40px; }
.h2-pair-col { background: #fff; border-radius: 20px; padding: 40px 40px 16px; }
.h2-pair-h { font-size: 22px; letter-spacing: -.02em; margin: 0 0 8px; padding-bottom: 20px; border-bottom: 2px solid var(--h2-ink); }
.h2-pair dl { margin: 0; }
.h2-pair dl > div { display: grid; grid-template-columns: 40px 1fr; column-gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--h2-line); }
.h2-pair dl > div:last-child { border-bottom: 0; }
.h2-pair svg { grid-row: span 2; width: 34px; height: 34px; margin-top: 2px; fill: none; stroke: var(--h2-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.h2-pair svg :first-child { stroke: var(--h2-accent); }
.h2-pair dt { font-size: 17px; font-weight: 700; margin: 0 0 6px; }
.h2-pair dd { margin: 0; font-size: 15px; line-height: 1.75; color: var(--h2-sub); }
.h2-two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .h2-pair { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .h2-two { grid-template-columns: 1fr; }
  /* 휴대폰: 항목 제목만 짧게, 설명은 숨김(글은 그대로 남아 검색에 손해 없음) */
  .h2-pair { gap: 14px; margin-bottom: 32px; }
  .h2-pair-col { padding: 22px 22px 6px; border-radius: 16px; }
  .h2-pair-h { font-size: 18px; padding-bottom: 14px; margin-bottom: 2px; }
  .h2-pair dl > div { grid-template-columns: 26px 1fr; column-gap: 12px; padding: 13px 0; align-items: center; }
  .h2-pair svg { grid-row: auto; width: 24px; height: 24px; margin: 0; }
  .h2-pair dt { font-size: 16px; margin: 0; }
  .h2-pair dd { display: none; }
}
/* 묶음 페이지: 세부 페이지가 없는 사건 줄, 안내 문구 */
div.h2-area-main { cursor: default; }
.h2-area-note { margin: 28px 4px 0; color: var(--h2-sub); font-size: 16px; }

/* 헤더가 첫 화면 위에 겹치므로(site.css .ol-header.is-over) 위 여백을 헤더 높이만큼 더 줌 */
.ol-header.is-over ~ main .h2-hero { min-height: calc(100vh - 20px); padding-top: 124px; }
@media (max-width: 960px) { .ol-header.is-over ~ main .h2-hero { min-height: calc(100svh - 20px); padding-top: 104px; } }
@media (max-width: 640px) { .ol-header.is-over ~ main .h2-hero { min-height: 100svh; } }

/* 메인 첫 화면: 사진 배경 4장이 6초마다 천천히 바뀜 (1 변호사, 2 자격증 벽·로고, 3 접수대, 4 대기실 흑백) */
.h2-hero { margin: 10px; border-radius: 28px; overflow: hidden; color: #fff; min-height: calc(100vh - 84px); background: var(--h2-navy); }
.h2-slides { position: absolute; inset: 0; z-index: 0; }
.h2-slides i { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; animation: h2fade 24s linear infinite backwards; }
.h2-slides .s1 { background-image: url('/assets/img/hero-1.webp'); animation-delay: -1s; }
.h2-slides .s2 { background-image: url('/assets/img/hero-2.webp'); animation-delay: 5s; }
.h2-slides .s3 { background-image: url('/assets/img/hero-3.webp'); animation-delay: 11s; background-position: center 42%; }
.h2-slides .s4 { background-image: url('/assets/img/hero-4.webp'); animation-delay: 17s; }
@keyframes h2fade { 0% { opacity: 0; transform: scale(1); } 4% { opacity: 1; } 25% { opacity: 1; } 29% { opacity: 0; transform: scale(1.06); } 100% { opacity: 0; transform: scale(1.06); } }
.h2-hero::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(12, 28, 56, .55) 0, rgba(12, 28, 56, 0) 170px), linear-gradient(90deg, rgba(12, 28, 56, .88) 0%, rgba(12, 28, 56, .6) 45%, rgba(12, 28, 56, .12) 100%); }
.h2-hero-grid { position: relative; z-index: 2; grid-template-columns: 1fr; }
.h2-hero .h2-eyebrow { color: #ffb79c; }
.h2-hero .h2-display em { color: #fff; background: linear-gradient(transparent 68%, rgba(224, 96, 58, .75) 68%); }
.h2-hero .h2-lead { color: rgba(255, 255, 255, .86); }
.h2-hero .h2-btn-line { border-color: rgba(255, 255, 255, .8); color: #fff !important; }
.h2-hero .h2-btn-line:hover { background: #fff; color: var(--h2-navy) !important; }
.h2-hero .h2-scroll { z-index: 2; color: rgba(255, 255, 255, .8) !important; }
@media (prefers-reduced-motion: reduce) { .h2-slides i { animation: none; } }
@media (max-width: 960px) { .h2-hero { min-height: calc(100svh - 84px); padding: 40px 0 90px; } }
@media (max-width: 640px) {
  .h2-hero { margin: 0; border-radius: 0; min-height: calc(100svh - 76px); align-items: flex-end; }
  .h2-hero::after { background: linear-gradient(180deg, rgba(12, 28, 56, .55) 0, rgba(12, 28, 56, 0) 130px), linear-gradient(0deg, rgba(12, 28, 56, .94) 0%, rgba(12, 28, 56, .62) 55%, rgba(12, 28, 56, .15) 100%); }
  .h2-slides .s1 { background-position: 58% center; }
  .h2-slides .s2 { background-position: 80% center; }
  .h2-slides .s3 { background-position: center 30%; }
  .h2-slides .s4 { background-position: 55% center; }
}
