/* 바른정집수리 — 화이트 + 블루. 토스처럼 흰 바탕, 연회색 면, 큰 굵은 글씨, 넉넉한 여백, 그림자 대신 면 색 차이.
   모바일 우선: 아래 기본 규칙이 휴대폰 화면(360~430px)이고, 넓은 화면은 맨 끝 min-width 구간에서 더한다.
   구간: 641px(태블릿·하단 바 없음) · 769px(첫 화면이 겹친 구조로) · 961px(메뉴 펼침·3열) · 1201px(4열) */
:root {
  --bg: #ffffff;
  --gray: #f2f4f6;      /* 섹션 면 */
  --gray-2: #f9fafb;    /* 카드 면 */
  --line: #e5e8eb;
  --ink: #191f28;
  --ink-2: #333d4b;
  --muted: #6b7684;
  --muted-2: #8b95a1;
  --blue: #3182f6;
  --blue-hover: #1b64da;
  --blue-soft: #e8f3ff;
  --radius: 24px;
  --font: Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --pad: clamp(1.25rem, 5vw, 6rem);
  --max: 1200px;
  --nav: 60px;
  --bar: 68px;           /* 휴대폰 하단 고정 상담 바 높이 */
  --tap: 44px;           /* 누르는 곳 최소 높이 */
  --hero-bg: #0d1a2d;    /* 휴대폰 첫 화면 글·버튼 배경 = 사진 아래 그라데이션 끝 색 = 헤더 색 */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--nav) + 8px); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* 페이지 맨 아래 여백: 하단 고정 상담 바 + 16px + 아이폰 홈 바 영역 — 푸터 마지막 줄이 바에 가리지 않게 */
body { margin: 0; padding-bottom: calc(var(--bar) + 16px + env(safe-area-inset-bottom)); background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.7; word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, blockquote, figure { margin: 0; }
/* 휴대폰 줄바꿈: 제목은 줄 길이를 비슷하게, 글은 마지막 줄에 한 낱말만 남지 않게 (단어 중간에서는 끊지 않음 — body keep-all) */
h1, h2, h3 { text-wrap: balance; }
p, li, dd, blockquote { text-wrap: pretty; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 3px solid rgba(49, 130, 246, 0.5); outline-offset: 3px; }
::selection { background: var(--blue-soft); color: var(--ink); }
.skip { position: absolute; left: 8px; top: 8px; z-index: 60; padding: 10px 14px; background: var(--blue); color: #fff; font-weight: 700; border-radius: 10px; }
.skip:not(:focus) { width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- 사진 자리: 사진이 뜨기 전에는 연한 배경색. 파일이 없으면 "사진 준비 중" ---------- */
.ph { position: relative; display: block; overflow: hidden; background: #e9ecef; }
.ph::after { content: "사진 준비 중"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted-2); font-size: 0.92rem; font-weight: 600; }
.ph.has-img::after { content: none; }
/* --pos·--zoom: 사진넣기에서 맞춘 보이는 부분 (갤러리 GALLERY_VIEW, 서비스 카드 PHOTO_VIEW). 없으면 가운데·1배 */
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); transform: scale(var(--zoom, 1)); transform-origin: var(--pos, 50% 50%); }
/* 사진이 뜨기 전: 칸에 그 사진의 평균 색(연하게, 빌드가 <picture style="--phc"> 로 넣음)을 깔아 둔다 */
.ph > picture { position: absolute; inset: 0; background-color: var(--phc, transparent); }
/* 사진을 다 받으면 0.2초 동안 나타남 — head 의 한 줄 스크립트가 load 때 is-in 을 붙임. 스크립트가 없으면(.js 없음) 바로 보임, 첫 화면 사진도 바로 */
.js .ph img:not([fetchpriority]):not(.is-in) { opacity: 0; }
.js .ph img.is-in:not([fetchpriority]) { animation: ph-in 200ms ease both; }   /* transition 이 아니라 animation — 사진마다 따로 쓰는 transform·filter 전환(마우스 효과)을 덮지 않게 */
@keyframes ph-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- ① nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 30; display: flex; align-items: center; gap: 10px; height: var(--nav); padding: 0 var(--pad); background: rgba(255, 255, 255, 0.92); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); transition: box-shadow 250ms ease; }
.nav.is-solid, .nav.is-open { box-shadow: 0 1px 0 var(--line); }
.nav__logo { display: inline-flex; align-items: center; min-height: 44px; font-size: 1.1rem; font-weight: 800; letter-spacing: -0.04em; white-space: nowrap; color: var(--ink); }
.nav__logo b { color: var(--blue); font-weight: 800; }
.nav__menu { display: none; position: fixed; inset: var(--nav) 0 auto; flex-direction: column; gap: 2px; margin: 0; padding: 8px calc(var(--pad) - 14px) 20px; background: #fff; box-shadow: 0 12px 24px -12px rgba(0, 27, 55, 0.2); font-weight: 600; font-size: 1.1rem; color: var(--ink-2); }
.nav.is-open .nav__menu { display: flex; }
.nav__menu a { padding: 13px 14px; border-radius: 10px; transition: background-color 200ms, color 200ms; }
/* 전화 버튼은 아이콘만. 번호 글자는 .nav__num 으로 화면에서만 숨김 (읽기 프로그램에는 그대로) — 글자 크기 0 으로 숨기면 휴대폰 글자 크기 설정에 따라 아이콘이 밀려날 수 있다 */
.nav__tel { display: inline-flex; align-items: center; justify-content: center; gap: 0; width: 44px; height: 44px; margin-left: auto; padding: 0; overflow: hidden; border-radius: 12px; background: var(--blue-soft); color: var(--blue); font-size: 0.95rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; transition: background-color 200ms; }
.nav__tel svg { width: 22px; height: 22px; }
.nav__num { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.nav__toggle { display: grid; gap: 5px; padding: 14px 12px; margin-right: -12px; }
.nav__toggle i { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform 200ms, opacity 200ms; }
.nav.is-open .nav__toggle i:nth-of-type(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__toggle i:nth-of-type(2) { opacity: 0; }
.nav.is-open .nav__toggle i:nth-of-type(3) { transform: translateY(-7px) rotate(-45deg); }
/* 메인(첫 화면이 있는 페이지)의 헤더: 첫 화면과 이어지게 어두운 배경 */
body:has(.hero) .nav { background: var(--hero-bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
body:has(.hero) .nav.is-solid, body:has(.hero) .nav.is-open { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08); }
body:has(.hero) .nav > .nav__logo { color: #fff; }
body:has(.hero) .nav > .nav__logo b { color: #4c9aff; }
body:has(.hero) .nav__toggle i { background: #fff; }
body:has(.hero) .nav__tel { background: none; color: #fff; }   /* 시안: 네모 배경 없이 아이콘만 */
@media (hover: hover) {
  .nav__menu a:hover { background: var(--gray); color: var(--ink); }
  .nav__tel:hover { background: #d6e8ff; }
}

/* ---------- buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 58px; padding: 0 1.6rem; border-radius: 16px; font-weight: 700; font-size: 1.05rem; white-space: nowrap; transition: transform 140ms var(--ease), background-color 200ms; }
.pill:active { transform: scale(0.97); }
/* 버튼을 따로 한 장으로 그리게 해서 hover 색이 바뀔 때 버튼 전체를 다시 그림 — 화면 배율이 소수(90% 등, 미리보기 창의 축소)일 때
   일부만 다시 그려져 버튼 안에 예전 색 세로줄이 남던 것 방지 (2026-11-10) */
.pill { will-change: transform; }
.pill--main { background: var(--blue); color: #fff; }
.pill--line { background: var(--gray); color: var(--ink-2); }
.pill--wide { width: 100%; }
.pill--kakao { background: #fee500; color: #191919; }   /* 카카오톡 상담 버튼 (카카오 노란색) */
/* Tab 키 포커스: 기본(반투명 연파랑 + 3px 띄움)은 연한 파란 상담 상자 위에서 버튼 둘레가 하얗게 떠 보여서, 버튼만은 진한 파란 실선으로 */
.pill:focus-visible { outline: 2px solid var(--blue-hover); outline-offset: 2px; }
/* 휴대폰은 누르는 동안 같은 색이 조금 진해짐 (마우스는 아래 hover) */
.pill--main:active { background: var(--blue-hover); }
.pill--kakao:active { background: #f5d800; }
@media (hover: hover) {
  .pill--main:hover { background: var(--blue-hover); }
  .pill--line:hover { background: #e5e8eb; }
  .pill--kakao:hover { background: #f5d800; }
}

/* ---------- ② hero: 휴대폰은 사진 위, 글·버튼 아래. 넓은 화면(769px~)은 둥근 무대 사진 위에 흰 글씨 ---------- */
.hero { position: relative; display: block; margin: var(--nav) 0 0; padding: 0; overflow: hidden; background: var(--hero-bg); color: #fff; isolation: isolate; }
/* 높이를 화면 높이가 아닌 너비 비율로 (앱 안 미리보기처럼 화면 높이가 짧아도 늘 같은 모양으로 잘림, 사진넣기 휴대폰 칸과 같은 비율) */
.hero__media { position: relative; z-index: 0; width: 100%; aspect-ratio: 3 / 4; min-height: 320px; }   /* 2026-11-18: 2/3 → 3/4 — 360·390px 첫 화면에 문자 버튼까지 보이게 */
/* 아래 45%만 배경색으로 서서히 (지역 배지·제목이 이 위에 겹쳐 올라감) */
.hero__media::after { content: ""; position: absolute; inset: auto 0 0; height: 45%; background: linear-gradient(180deg, rgba(13, 26, 45, 0) 0%, rgba(13, 26, 45, 0.55) 40%, rgba(13, 26, 45, 0.9) 72%, var(--hero-bg) 100%); pointer-events: none; }
.ph--hero { position: absolute; inset: 0; background: #1b2a40; }
.ph--hero::after { color: rgba(255, 255, 255, 0.45); font-size: 0.85rem; }
.hero__in { position: relative; z-index: 1; margin-top: calc(-1 * min(28vw, 110px)); padding: 0 20px 36px; }   /* 배지·제목이 사진 아래쪽에 겹침 — 사람 얼굴·상반신 아래부터 */   /* 배지·제목이 사진 아래쪽에 겹침 */
.br-m { display: inline; }   /* 휴대폰에서만 줄바꿈 */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); font-size: 0.95rem; font-weight: 700; }
.hero .badge { padding: 6px 12px; font-size: 0.88rem; background: rgba(20, 30, 46, 0.6); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.badge svg { width: 17px; height: 17px; }
.hero .badge svg { width: 15px; height: 15px; }
.hero h1 { margin-top: 0.6rem; font-size: clamp(2.1rem, 10.6vw, 2.8rem); line-height: 1.2; font-weight: 800; letter-spacing: -0.045em; }
.hero h1 em { font-style: normal; color: #4c9aff; }
.hero__sub { margin-top: 0.7rem; font-size: 1rem; color: rgba(255, 255, 255, 0.86); line-height: 1.5; }
.hero .btns { flex-direction: column; gap: 10px; margin-top: 1.1rem; }
.hero .btns .pill { width: 100%; flex: none; min-height: 52px; border-radius: 12px; font-size: 1rem; }
.hero .pill--line { background: rgba(255, 255, 255, 0.12); color: #fff; }
.hero__note { display: none; }   /* 휴대폰 첫 화면은 사진·제목·설명·버튼만 */
@media (hover: hover) { .hero .pill--line:hover { background: rgba(255, 255, 255, 0.26); } }

/* ---------- ③ strengths ---------- */
.strip { max-width: calc(var(--max) + 2 * var(--pad)); margin: clamp(2.5rem, 5vw, 4.5rem) auto;  /* 위아래 같은 간격 */ padding: 0 var(--pad); }
.strip ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.strip li { display: grid; gap: 4px; padding: 20px 18px 22px; border-radius: var(--radius); background: var(--gray-2); }
.strip strong { font-size: 1.02rem; font-weight: 700; letter-spacing: -0.02em; }
.strip strong::before { content: "✓"; display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 14px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); font-size: 1rem; font-weight: 800; }
.strip span { color: var(--muted); }

/* ---------- sections ---------- */
.sec { position: relative; padding: clamp(5rem, 9vw, 8rem) var(--pad); }
.sec > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.sec--tight { padding-top: clamp(5rem, 9vw, 8rem); }
.sec--light { background: var(--gray); }
.sec__head { position: relative; z-index: 1; margin-bottom: 3rem; }
.sec__head > * { max-width: 640px; }
.kicker { font-size: 0.95rem; font-weight: 700; color: var(--blue); letter-spacing: 0.02em; }
.sec__head h2, .contact h2 { margin-top: 0.6rem; font-size: clamp(2rem, 1.3rem + 2.2vw, 3rem); line-height: 1.3; font-weight: 800; letter-spacing: -0.04em; }
.sec__head > p:last-child { margin-top: 1rem; color: var(--muted); font-size: 1.1rem; }

/* ---------- ④ symptom cards ---------- */
/* 10개: 휴대폰·태블릿 2열 × 5줄, 1201px 이상 5열 × 2줄
   휴대폰(768px 이하): 세로 3:4 사진 + 사진 왼쪽 위 작은 작업 태그 + 아래 짧은 제목(titleShort, 최대 2줄)만. 카드 전체가 링크.
   설명 글·"사례 보기"는 HTML 에 남기고(검색로봇용) 화면에서만 숨김. 769px 이상은 아래 @media 에서 예전 모양 */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 1fr; gap: 12px; }
.card a { position: relative; display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: var(--radius); overflow: hidden; transition: transform 250ms var(--ease); }
.card .ph { aspect-ratio: 3 / 4; }
.tag { align-self: flex-start; margin-bottom: 10px; padding: 4px 10px; border-radius: 8px; background: var(--gray); color: var(--ink-2); font-size: 0.85rem; font-weight: 700; }
.card .tag { position: absolute; top: 8px; left: 8px; z-index: 1; max-width: calc(100% - 16px); margin: 0; padding: 3px 8px; border-radius: 6px; background: rgba(255, 255, 255, 0.92); color: var(--ink); font-size: 0.75rem; line-height: 1.4; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12); }
.card div { flex: 1; display: flex; flex-direction: column; padding: 10px 12px 12px; }
.card h3 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; font-size: clamp(0.9375rem, 0.2rem + 3.6vw, 1rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.4; word-break: keep-all; }
.card__long { display: none; }
.card h3:has(.card__short) { -webkit-line-clamp: 2; }
.card p { display: none; }
.card h3 { margin-bottom: 10px; }
.card .more { margin-bottom: 0; padding: 6px 10px; border-radius: 8px; font-size: 0.85rem; }   /* 휴대폰: 제목 아래, 카드 맨 아래에 맞춰 작게 */
.card p { margin-top: 8px; color: var(--muted); }
.more { align-self: flex-start; margin-top: auto; padding: 8px 12px; margin-bottom: -4px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); font-weight: 700; font-size: 0.92rem; }
@media (hover: hover) { .card a:hover { transform: translateY(-4px); } }

/* ---------- ⑤ service cards ---------- */
.feature { display: grid; grid-template-columns: 1fr; margin-bottom: 16px; border-radius: var(--radius); overflow: hidden; background: var(--blue-soft); transition: transform 250ms var(--ease); }
.feature .ph { aspect-ratio: 16 / 9; }
.feature > div { display: flex; flex-direction: column; gap: 10px; padding: clamp(24px, 4vw, 44px); }
.feature .kicker { font-size: 0.85rem; letter-spacing: 0.06em; }
.feature h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 800; letter-spacing: -0.03em; }
.feature > div > p:not(.kicker) { color: var(--ink-2); }
.subtags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.subtags li { padding: 6px 12px; border-radius: 10px; background: #fff; color: var(--ink-2); font-size: 0.92rem; font-weight: 600; }
.feature .more { margin-top: 10px; background: var(--blue); color: #fff; }
@media (hover: hover) { .feature:hover { transform: translateY(-4px); } }
.svc { display: grid; grid-template-columns: 1fr; gap: 16px; }
.svc a { display: block; height: 100%; background: var(--gray-2); border-radius: var(--radius); overflow: hidden; transition: transform 250ms var(--ease), background-color 250ms; }
.svc .ph { aspect-ratio: 16 / 10; }
.svc div { padding: 20px 22px 24px; }
.svc .kicker { font-size: 0.8rem; color: var(--muted-2); letter-spacing: 0.06em; }
.svc h3 { margin-top: 4px; font-size: 1.2rem; font-weight: 700; }
.svc div > p:last-child { margin-top: 6px; color: var(--muted); }
@media (hover: hover) { .svc a:hover { transform: translateY(-4px); background: var(--gray); } }

/* ---------- ⑥ gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.gallery li { position: relative; min-width: 0; }
.gallery li[hidden] { display: none; }
/* 사진 칸: 정사각형, 사진은 가운데 기준으로 잘림 */
.gallery__open { position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 0; border-radius: 20px; overflow: hidden; background: none; cursor: zoom-in; }
.gallery__open:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.gallery .ph { position: absolute; inset: 0; }
.gallery .cap { position: absolute; left: 10px; bottom: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,0.92); color: var(--ink); font-size: 0.85rem; font-weight: 700; }
/* 사진 아래 한 줄 설명 (content/gallery.json → js/gallery-data.js). 길면 … */
.gallery__desc { margin-top: 8px; padding: 0 2px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--ink-2); font-size: 0.93rem; font-weight: 500; }
/* 크게 보기 */
.lightbox { width: min(1100px, 94vw); max-height: 94vh; padding: 0; border: 0; border-radius: 18px; background: #111; color: #fff; overflow: hidden; }
.lightbox::backdrop { background: rgba(10, 14, 20, 0.82); }
.lightbox figure { display: grid; grid-template-rows: minmax(0, 1fr) auto; margin: 0; max-height: 94vh; }
.lightbox img { display: block; width: 100%; height: 100%; max-height: calc(94vh - 64px); object-fit: contain; background: #111; }
.lightbox figcaption { padding: 14px 64px 18px 20px; font-size: 1rem; line-height: 1.5; color: rgba(255, 255, 255, 0.9); }
.lightbox figcaption:empty { display: none; }
.lightbox button { position: absolute; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.92); color: #111; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__prev, .lightbox__next { top: 50%; transform: translateY(-50%); }
.lightbox__prev { left: 12px; }
.lightbox__next { right: 12px; }
.lightbox button:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* ---------- ⑦ process ---------- */
#process { background: var(--gray); }
/* 단계 카드: 휴대폰은 가로로 넘기기 (이 칸 안에서만 스크롤, 스크립트 없이도 넘어감). 가운데 맞춤이라 카드 크기가 바뀌어도 멈추는 자리가 그대로. 넓은 화면은 641px 구간의 격자 */
.steps { position: relative; display: flex; gap: 6px; padding-inline: 7.5vw; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; counter-reset: s; }
.steps::-webkit-scrollbar { display: none; }
.sec > .steps, .area-sec > .steps { margin-inline: calc(var(--pad) * -1); }
.steps li { flex: 0 0 85vw; scroll-snap-align: center; scroll-snap-stop: always; display: flex; flex-direction: column; gap: 14px; padding: 26px 22px 28px; background: #fff; border-radius: var(--radius); }
.steps.is-snap li:not(.is-active) { opacity: 0.6; transform: scale(0.95); }
.steps__dots { display: flex; justify-content: center; margin-top: 4px; }
.steps__dots button { display: grid; place-items: center; width: var(--tap); height: var(--tap); padding: 0; border: 0; background: none; cursor: pointer; }
.steps__dots button::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--blue); opacity: 0.3; }
.steps__dots button[aria-current="true"]::before { opacity: 1; }
.steps b { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--blue); color: #fff; font-size: 1rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 1.15rem; font-weight: 700; }
.steps p { margin-top: 6px; color: var(--muted); }


/* ---------- ⑨ portfolio ---------- */
#portfolio { background: var(--gray); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: -1rem; margin-bottom: 1.75rem; }
.filters button { min-height: var(--tap); padding: 0 1rem; border-radius: 999px; background: #fff; color: var(--ink-2); font-size: 0.95rem; font-weight: 600; transition: background-color 200ms, color 200ms, transform 140ms; }
.filters button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.filters button:active { transform: scale(0.96); }
.posts { display: grid; grid-template-columns: 1fr; gap: 16px; }
.post[hidden] { display: none; }
.post a { display: block; height: 100%; background: #fff; border-radius: var(--radius); overflow: hidden; transition: transform 250ms var(--ease); }
.post .ph { aspect-ratio: 4 / 3; }
.post__body { display: block; padding: 18px 20px 22px; }
.post__cat { display: block; color: var(--blue); font-size: 0.88rem; font-weight: 700; }
.post__title { display: block; margin-top: 4px; font-weight: 700; line-height: 1.45; }
.post__meta { display: block; margin-top: 6px; color: var(--muted-2); font-size: 0.9rem; }
.post--soon > div { display: block; height: 100%; background: #fff; border-radius: var(--radius); overflow: hidden; }
.post--soon .ph { aspect-ratio: 4 / 3; }
.post--soon .ph::after { content: "준비 중"; }
.post--soon .post__title { color: var(--muted); font-weight: 600; }
.post--wide { grid-column: 1 / -1; }
.posts__empty { padding: 28px; border-radius: var(--radius); background: #fff; color: var(--muted); }
.all { display: flex; width: max-content; margin-top: 1.75rem; margin-left: max(0px, calc((100% - var(--max)) / 2)); padding: 12px 18px; border-radius: 14px; background: #fff; font-weight: 700; color: var(--ink-2); transition: background-color 200ms; }
@media (hover: hover) {
  .post a:hover { transform: translateY(-4px); }
  .filters button:hover:not([aria-pressed="true"]) { background: #e5e8eb; }
  .all:hover { background: #e5e8eb; }
}

/* ---------- ⑩ area ---------- */
.sec--photo { background: var(--bg); }
.sec__bg { display: none; }
.regions { display: grid; grid-template-columns: 1fr; gap: 16px; }
.region { padding: 26px 24px 28px; border-radius: var(--radius); background: var(--gray-2); }
.region h3 { font-size: 1.25rem; font-weight: 700; }
.region ul { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
/* 출장지역 칩: 공개된 지역 페이지가 있으면 칩 전체가 링크(.is-page, 파란색), 없으면 그냥 글자(span, 눌러도 아무 일 없음) — 빌드가 HTML 에 넣음 */
.region__chip { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 14px; border-radius: 12px; background: #fff; color: var(--ink-2); font-size: 0.95rem; font-weight: 500; box-shadow: inset 0 0 0 1px var(--line); }
.region__chip.is-page { background: var(--blue-soft); color: var(--blue); font-weight: 700; box-shadow: inset 0 0 0 1px rgba(49, 130, 246, 0.55); transition: background-color 200ms, color 200ms, box-shadow 200ms; }
.region__chip.is-page:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.region__chip.is-page:active { background: #d3e6ff; }
@media (hover: hover) { .region__chip.is-page:hover { background: #d3e6ff; color: var(--blue-hover); box-shadow: inset 0 0 0 1px var(--blue); } }

/* ---------- 지역 페이지 (area/*.html — 생성기가 만듦) ---------- */
.area-sec { padding: clamp(2.5rem, 6vw, 4rem) var(--pad); }
.area-sec > * { max-width: 980px; margin-left: auto; margin-right: auto; }
.area-sec h2 { margin-bottom: 1.25rem; font-size: clamp(1.5rem, 1.25rem + 1.2vw, 2rem); line-height: 1.35; font-weight: 800; letter-spacing: -0.03em; }
.area-list { display: grid; grid-template-columns: 1fr; gap: 12px; }
.area-list li { padding: 20px; border-radius: 20px; background: var(--gray-2); }
.area-list h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.45; }
.area-list h3 a { display: flex; align-items: center; min-height: var(--tap); color: var(--blue); }
.area-list p { margin-top: 6px; color: var(--ink-2); }
/* 맡길 수 있는 수리: 사진 + 글 */
/* 휴대폰: 한 줄에 하나, 왼쪽 작은 정사각 사진 + 오른쪽 제목·설명. 961px 이상은 위 사진 카드 3열 */
.area-list--photo li.has-ph { display: grid; grid-template-columns: 88px 1fr; gap: 14px; align-items: center; padding: 12px 16px 12px 12px; }
.area-list--photo .ph { width: 88px; aspect-ratio: 1; border-radius: 14px; }
.area-list--photo li.has-ph p { margin-top: 4px; }
.area-note { margin-top: 1rem; color: var(--muted); }
/* 번호 목록 (다른 점·상담 순서) */
/* 지역 페이지 "다른 점": 아이콘 카드 */
.area-cards { display: grid; grid-template-columns: 1fr; gap: 12px; }
.area-cards li { padding: 22px; border-radius: 20px; background: var(--gray-2); }
.area-cards svg { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: var(--blue-soft); color: var(--blue); }
.area-cards h3 { margin-top: 14px; font-size: 1.1rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.45; }
.area-cards p { margin-top: 6px; color: var(--ink-2); }
/* 지역 페이지 상담 순서: 메인 단계 카드 + 아이콘 */
.area-sec .kicker + h2 { margin-top: 0.4rem; }
.area-lead { margin-top: -0.5rem; margin-bottom: 1.5rem; color: var(--muted); }
.steps--icon b svg { width: 22px; height: 22px; }
.steps__no { display: block; margin-bottom: 2px; color: var(--blue); font-size: 0.85rem; font-weight: 800; font-variant-numeric: tabular-nums; }
/* 가까운 지역: 링크만 */
.area-nearby { display: flex; flex-wrap: wrap; gap: 8px; }
.area-nearby a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 16px; border-radius: 12px; background: #fff; color: var(--ink-2); font-weight: 600; box-shadow: inset 0 0 0 1px var(--line); }
/* "전체 지역 보기 →": 지역 칩과 구분되게 흰 바탕 + 파란 테두리 (가까운 지역 끝·메인 출장지역 아래) */
.area-nearby__all a, .area-all__link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 12px; background: #fff; color: var(--blue); font-weight: 700; box-shadow: inset 0 0 0 1.5px var(--blue); transition: background-color 200ms; }
.area-nearby__all a:focus-visible, .area-all__link:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
@media (hover: hover) { .area-nearby__all a:hover, .area-all__link:hover { background: var(--blue-soft); } }
.area-all { display: flex; justify-content: flex-start; margin-top: 20px; }
/* 전체 지역 목록 /area/: 메인 출장지역 상자와 같은 모양 (제목은 h2), 서울·경기·인천 상자는 넓게 한 줄씩 — 칩이 많아 가로로 흐르게 */
.area-index .region h2 { font-size: 1.25rem; font-weight: 700; }
.area-index .regions { grid-template-columns: 1fr; }
.area-index .region ul { gap: 10px 8px; }
/* 개인정보처리방침 privacy.html 본문 (2026-11-12) */
.privacy { max-width: calc(760px + 2 * var(--pad)); margin: 0 auto; }
.privacy__sec + .privacy__sec { margin-top: 32px; }
.privacy__sec h2 { margin-bottom: 10px; font-size: 1.2rem; font-weight: 800; letter-spacing: -0.02em; }
.privacy__sec p { color: var(--ink-2); line-height: 1.75; }
.privacy__sec p + p { margin-top: 8px; }
.privacy__sec ul { display: grid; gap: 6px; padding-left: 1.2em; list-style: disc; color: var(--ink-2); line-height: 1.75; }
.foot__legal a { text-decoration: underline; text-underline-offset: 3px; }
.area-index__note { margin-bottom: 16px; color: var(--muted); font-size: 0.97rem; }
.area-sec--cta { padding-top: 0; padding-bottom: 0; }
/* 회색 구역과 맨 위 글·사진, 상담 상자가 붙지 않게 */
.area-top + .sec--light { margin-top: clamp(1rem, 3vw, 2rem); }
.sec--light + .area-sec--cta { padding-top: clamp(2rem, 5vw, 3rem); }
.area-sec > .case__cta { margin-top: 0; }
/* 지역 페이지 맨 위: 가운데 정렬, 휴대폰 첫 화면에 배지·제목·짧은 소개·버튼·사진이 거의 다 들어오게. 컴퓨터는 내용 폭 760px */
.area-top { max-width: calc(760px + 2 * var(--pad)); margin: 0 auto; padding: 0.25rem var(--pad) 1.25rem; text-align: center; }
.area-top__crumbs { justify-content: center; margin-bottom: 0.25rem; font-size: 0.88rem; }
.area-top__badge { display: inline-block; padding: 5px 14px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); font-size: 0.92rem; font-weight: 700; }
.area-top h1 { margin-top: 10px; font-size: clamp(2rem, 1.5rem + 2.2vw, 3rem); line-height: 1.25; font-weight: 800; letter-spacing: -0.04em; }
.area-top__lead { max-width: 32em; margin: 10px auto 0; color: var(--ink-2); font-size: 1.05rem; line-height: 1.6; word-break: keep-all; text-wrap: balance; }
.area-top__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-width: 520px; margin: 1.1rem auto 0; }
.area-top__btns .pill { min-height: 52px; padding: 0 1rem; border-radius: 14px; font-size: 1rem; }
.area-top__btns .pill--main { grid-column: 1 / -1; }
.area-top__photos { display: flex; justify-content: center; gap: 8px; margin-top: 1.1rem; }
.area-top__photos li { flex: 0 1 calc((100% - 16px) / 3); min-width: 0; }
.area-top__photos a { display: block; }
.area-top__photos .ph { aspect-ratio: 1; border-radius: 14px; overflow: hidden; }
.area-top__photos .ph img { object-position: var(--pos, 50% 50%); transition: transform 400ms var(--ease); }
.area-top__cap { display: block; margin-top: 6px; color: var(--ink-2); font-size: 0.875rem; font-weight: 600; line-height: 1.35; word-break: keep-all; }
@media (hover: hover) { .area-top__photos a:hover img { transform: scale(1.04); } }
/* 시공 전·후 사진 (모든 지역 공통): 한 세트 = 시공 전·후 두 장 나란히 + 설명 한 줄. 휴대폰 한 줄에 한 세트, 769px 이상 두 세트.
   처음 6세트 뒤는 .ba-more 로 접힘 (스크립트가 있을 때만 — 없으면 모두 보이고 "더 보기" 버튼도 숨김) */
/* 세트 카드 = 안쪽 여백(--ba-pad, 아래는 설명 밑으로 더 넉넉히) 안에 사진·설명. 카드 둥글기 = 사진 둥글기(16px) + 안쪽 여백이라 테두리와 사진 모서리가 나란하다.
   목록을 여백만큼 바깥으로 넓혀(음수 margin) 사진 크기·왼쪽 끝은 여백을 넣기 전과 같다 (휴대폰에서 사진이 작아지지 않게, 좌우 바깥 여백 --pad 는 20px 이상) */
.ba-list { display: grid; grid-template-columns: 1fr; gap: 10px; }
.ba-list, .ba-more { --ba-pad: 10px; --ba-w: min(calc(100% + 2 * var(--ba-pad)), calc(980px + 2 * var(--ba-pad))); width: var(--ba-w); margin-inline: calc((100% - var(--ba-w)) / 2); }  /* 980px = .area-sec > * 폭 */
.ba-more .ba-list { width: auto; margin-inline: 0; }
.ba__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ba__shot { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 16px; background: none; overflow: hidden; cursor: zoom-in; transition: transform 140ms var(--ease); }
.ba__shot:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.ba__shot .ph { aspect-ratio: 1; }
.ba__tag { position: absolute; top: 10px; left: 10px; z-index: 1; padding: 4px 10px; border-radius: 999px; background: rgba(25, 31, 40, 0.72); color: #fff; font-size: 0.82rem; font-weight: 700; line-height: 1.4; }
.ba__shot + .ba__shot .ba__tag { background: var(--blue); }
.ba__cap { margin-top: 10px; color: var(--ink-2); font-weight: 600; transition: color 250ms var(--ease); }
/* 마우스를 올리면: 두 장이 살짝 확대, 시공 전은 조금 어둡게, 시공 후는 파란 테두리로 강조 (휴대폰은 누르면 크게 보기만) */
/* 세트 카드 테두리: 처음부터 같은 두께의 투명 선(outline — 자리를 차지하지 않아 레이아웃이 밀리지 않음)을 두고 색만 바꾼다 */
.ba { padding: var(--ba-pad) var(--ba-pad) calc(var(--ba-pad) + 4px); border-radius: calc(16px + var(--ba-pad)); outline: 2px solid transparent; outline-offset: -2px; transition: outline-color 250ms var(--ease); }
.ba__shot .ph img { transition: transform 250ms var(--ease), filter 250ms var(--ease); }
.ba__shot::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; box-shadow: inset 0 0 0 3px var(--blue); opacity: 0; transition: opacity 250ms var(--ease); pointer-events: none; }
.ba__tag { transition: transform 250ms var(--ease); }
/* 테두리 강조: 세트 카드는 은은한 파란 선, 시공 후 사진은 진한 파란 선 — 마우스(아래 hover), Tab 키(focus-visible), 휴대폰은 누르고 있는 동안(:active) */
.ba:has(.ba__shot:focus-visible) { outline-color: rgba(49, 130, 246, 0.45); }
.ba:has(.ba__shot:focus-visible) .ba__shot + .ba__shot::after { opacity: 1; }
@media (hover: none) {
  .ba:active { outline-color: rgba(49, 130, 246, 0.45); }
  .ba:active .ba__shot + .ba__shot::after { opacity: 1; }
}
.ba__shot:active { transform: scale(0.98); }
@media (hover: hover) {
  .ba:hover { outline-color: rgba(49, 130, 246, 0.45); }
  .ba:hover .ba__shot .ph img { transform: scale(1.05); }
  .ba:hover .ba__shot:first-child .ph img { filter: brightness(0.88) saturate(0.85); }
  .ba:hover .ba__shot + .ba__shot::after { opacity: 1; }
  .ba:hover .ba__shot + .ba__shot .ba__tag { transform: scale(1.08); }
  .ba:hover .ba__cap { color: var(--blue); }
  .ba:hover .ba__shot:hover .ph img { transform: scale(1.08); }
  .ba:hover .ba__shot:first-child:hover .ph img { filter: none; }
}
.ba-more { display: grid; grid-template-rows: 1fr; }
.ba-more__inner { min-height: 0; overflow: hidden; }
.ba-more__inner > .ba-list { padding-top: 10px; }
.ba-more__bar { display: none; }
.js .ba-more__bar { display: flex; justify-content: center; margin-top: 22px; }
.ba-more__btn { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 22px; border: 0; border-radius: 999px; background: #fff; color: var(--ink-2); font: inherit; font-weight: 700; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); }
.ba-more__btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
@media (hover: hover) { .ba-more__btn:hover { background: var(--gray-2); } }
.js .ba-more { grid-template-rows: 0fr; transition: grid-template-rows 450ms var(--ease); }
.js .ba-more .ba-more__inner { visibility: hidden; transition: visibility 0s 450ms; }
.js .ba-more.is-open { grid-template-rows: 1fr; }
.js .ba-more.is-open .ba-more__inner { visibility: visible; transition-delay: 0s; }
/* 긴 소개문: 맨 위 바로 아래 흰 구역 (검색용 글은 그대로) */
/* 소개문(intro): 시공 사례 구역 바로 아래(사례가 없으면 서비스 지역 위)의 연한 파란 상자. 아래 간격은 다음 구역의 위 여백이 맡는다 */
.area-intro { padding-bottom: 0; }
.area-intro__box { padding: 18px; border-radius: var(--radius); background: #f3f8ff; box-shadow: inset 0 0 0 1px rgba(49, 130, 246, 0.08); }
.area-intro__box > p { color: var(--ink-2); font-size: 1.08rem; line-height: 1.75; }
/* 구역 제목으로 이동할 때 위 고정 헤더에 가리지 않게 */
.area-sec { scroll-margin-top: calc(var(--nav) + 8px); }
/* 시공 사례: 동 필터 (스크립트가 있을 때만 보임) + 카드 (휴대폰 1열 → 641px 2열 → 961px 3열) */
.area-filter { display: none; }
.js .area-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1.25rem; }
.area-filter button { display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); padding: 0 16px; border: 0; border-radius: 999px; background: #fff; color: var(--ink-2); font: inherit; font-weight: 600; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); transition: background-color 200ms var(--ease), color 200ms var(--ease); }
.area-filter button span { color: var(--muted-2); font-variant-numeric: tabular-nums; }
.area-filter button[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.area-filter button[aria-pressed="true"] span { color: rgba(255, 255, 255, 0.7); }
.area-filter button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.area-cases { display: grid; grid-template-columns: 1fr; gap: 16px; overflow-anchor: none; }
.area-cases > li[hidden] { display: none; }
.acase { display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: var(--radius); overflow: hidden; transition: transform 250ms var(--ease), opacity 220ms var(--ease); }
.area-cases > li.is-out .acase { opacity: 0; transform: scale(0.97); }
.acase .ph { aspect-ratio: 4 / 3; }
.acase .ph img { object-position: var(--pos, 50% 50%); }
.acase__body { display: flex; flex: 1; flex-direction: column; padding: 18px 20px 22px; }
.acase__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.acase__tags span { padding: 4px 10px; border-radius: 8px; background: var(--blue-soft); color: var(--blue); font-size: 0.85rem; font-weight: 700; }
.acase__tags span + span { background: var(--gray); color: var(--ink-2); }
.acase__title { margin-top: 10px; font-size: 1.1rem; font-weight: 700; line-height: 1.45; letter-spacing: -0.02em; }
.acase__line { margin-top: 6px; color: var(--muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.acase__more { margin-top: auto; padding-top: 14px; color: var(--blue); font-weight: 700; }
@media (hover: hover) { .acase:hover { transform: translateY(-4px); } }
/* 서비스 지역: 동네 묶음 카드. 누르면 동 이름 칩이 펼쳐진다 (스크립트가 있을 때만 접힘 — 없으면 처음부터 다 보임) */
.area-zones { display: grid; grid-template-columns: 1fr; gap: 12px; align-items: start; }
.zone__card { border-radius: 20px; background: var(--gray-2); box-shadow: inset 0 0 0 1px transparent; transition: transform 250ms var(--ease), box-shadow 250ms var(--ease), background-color 250ms var(--ease); }
.zone.is-open .zone__card { background: #fff; box-shadow: inset 0 0 0 1px var(--line), 0 8px 24px rgba(25, 31, 40, 0.06); }
.zone__btn { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 14px; width: 100%; padding: 20px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; border-radius: 20px; }
.zone__btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.zone__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--blue-soft); font-size: 1.5rem; line-height: 1; }
.zone__name { align-self: center; font-size: 1.1rem; font-weight: 700; letter-spacing: -0.02em; }
.zone__text { grid-column: 1 / -1; margin-top: 8px; color: var(--muted); font-weight: 400; }
.zone__mk { position: relative; grid-column: 3; grid-row: 1; align-self: center; width: 16px; height: 16px; }
.zone__mk::before, .zone__mk::after { content: ""; position: absolute; top: 7px; left: 1px; width: 14px; height: 2px; border-radius: 2px; background: var(--muted-2); transition: transform 300ms var(--ease); }
.zone__mk::after { transform: rotate(90deg); }
.zone.is-open .zone__mk::after { transform: rotate(0deg); }
html:not(.js) .zone__mk { display: none; }
.zone__panel { display: grid; grid-template-rows: 1fr; }
.zone__inner { overflow: hidden; }
.zone__inner > * { margin-inline: 20px; }
.zone__inner > :last-child { margin-bottom: 20px; }
.js .zone__panel { grid-template-rows: 0fr; transition: grid-template-rows 350ms var(--ease); }
.js .zone__inner { visibility: hidden; transition: visibility 0s 350ms; }
.js .zone.is-open .zone__panel { grid-template-rows: 1fr; }
.js .zone.is-open .zone__inner { visibility: visible; transition-delay: 0s; }
.zone__dongs { display: flex; flex-wrap: wrap; gap: 6px; }
.zone__dongs li { padding: 5px 12px; border-radius: 999px; background: #fff; color: var(--ink-2); font-size: 0.92rem; font-weight: 600; box-shadow: inset 0 0 0 1px var(--line); }
.zone.is-open .zone__dongs li { background: var(--gray-2); }
.zone__cases { display: inline-flex; align-items: center; min-height: var(--tap); margin-top: 12px; padding: 0 16px; border-radius: 12px; background: var(--blue); color: #fff; font-weight: 700; }
@media (hover: hover) and (min-width: 769px) { .zone__card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line), 0 12px 28px rgba(25, 31, 40, 0.08); } }
@media (hover: hover) { .zone__cases:hover { background: var(--blue-hover); } }
.faq { display: grid; gap: 10px; }
.faq details { border-radius: var(--radius); background: var(--gray-2); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.faq summary h3 { font-size: 1.08rem; font-weight: 700; }
.faq__mk { position: relative; flex: none; width: 14px; height: 14px; }
.faq__mk::before, .faq__mk::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; border-radius: 2px; background: var(--ink-2); transition: transform 200ms; }
.faq__mk::after { transform: rotate(90deg); }
.faq details[open] .faq__mk::after { transform: rotate(0deg); }
.faq details p { padding: 0 24px 22px; color: var(--muted); }
/* 여러 문단·체크 목록 답변 */
.faq details .faq__a { padding: 0 24px 22px; color: var(--muted); }
.faq details .faq__a p, .case__text .case__faq details .faq__a p { margin-top: 10px; padding: 0; }
.faq details .faq__a > :first-child { margin-top: 0; }
.faq__checks, .faq__list { display: grid; gap: 8px; margin-top: 10px; }
.faq__list { padding-left: 1.2em; list-style: disc; }
.faq__list li { margin-top: 0; }
.faq__checks li { position: relative; margin-top: 0; padding-left: 24px; }
.faq__checks li::before { content: "✓"; position: absolute; left: 2px; top: 0; color: var(--blue); font-weight: 800; }
.case__area-link { display: flex; align-items: center; min-height: var(--tap); color: var(--blue); font-weight: 700; font-size: 0.95rem; }

/* ---------- ⑪ contact ---------- */
section#contact { background: var(--gray); }
.contact { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.contact__lead { margin-top: 1rem; color: var(--muted); font-size: 1.1rem; max-width: 34em; }
.need { display: grid; gap: 10px; margin: 2rem 0; }
.need li { display: flex; gap: 16px; align-items: center; padding: 18px 20px; border-radius: 20px; background: #fff; }
.need svg { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: var(--blue-soft); color: var(--blue); }
.need h3 { font-size: 1.08rem; font-weight: 700; }
.need p { color: var(--muted); }
.contact .pill--line { background: #fff; }
.contact .pill--line:active { background: var(--gray); }
@media (hover: hover) { .contact .pill--line:hover { background: var(--gray); } }
/* 문의 버튼: 휴대폰은 세로로. 넓은 화면은 문자(주 버튼)가 꽉 찬 폭, 전화·카카오톡은 아래 줄에 반반 */
.contact .btns { display: grid; grid-template-columns: 1fr; }
.contact .btns .pill--main { grid-column: 1 / -1; }
.composer { display: grid; gap: 8px; padding: 24px 20px; border-radius: 28px; background: #fff; }
.composer h3 { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.03em; }
.composer__hint { color: var(--muted); margin-bottom: 0.5rem; }
.composer label { margin-top: 10px; font-size: 0.92rem; font-weight: 600; color: var(--ink-2); }
.field { width: 100%; min-height: 54px; padding: 14px 16px; border: 0; border-radius: 14px; background: var(--gray); color: var(--ink); font-size: 1rem; appearance: none; box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow 200ms, background-color 200ms; }
.field::placeholder { color: var(--muted-2); }
.field:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 2px var(--blue); }
select.field { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b95a1' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
textarea.field { resize: vertical; min-height: 96px; }
.preview { margin: 14px 0 10px; padding: 18px 20px; border-radius: 18px 18px 18px 6px; background: var(--blue-soft); }
.preview__k { font-size: 0.85rem; font-weight: 700; color: var(--blue); }
.preview__msg { margin-top: 6px; white-space: pre-wrap; font-size: 1rem; line-height: 1.6; color: var(--ink-2); }
.preview__msg.is-flash { animation: flash 700ms var(--ease); }
@keyframes flash { from { background: #cfe3ff; } to { background: transparent; } }

/* ---------- ⑫ footer ---------- */
.foot { padding: 32px var(--pad) 24px; background: var(--bg); color: var(--muted); font-size: 1rem; border-top: 1px solid var(--line); }
.foot > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.foot__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.foot__about { grid-column: 1 / -1; display: grid; gap: 0.4rem; align-content: start; }
.foot__about .nav__logo { margin-bottom: 0.4rem; }
.foot__tel { display: flex; align-items: center; min-height: 46px; color: var(--ink); font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.foot .kicker { margin-bottom: 0.8rem; color: var(--ink); font-size: 0.92rem; }
.foot li { line-height: 2; }
.foot li a { display: inline-flex; align-items: center; min-height: var(--tap); transition: color 200ms; }
.foot__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: 0.92rem; color: var(--muted-2); }
@media (hover: hover) { .foot li a:hover { color: var(--blue); } }

/* ---------- ⑬ 상담 버튼: 휴대폰은 하단 고정 바, 넓은 화면(641px~)은 오른쪽 아래 떠 있는 버튼 ---------- */
.float { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1fr 1fr 1.7fr; justify-items: stretch; gap: 6px; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, 0.96); box-shadow: 0 -1px 0 var(--line); transition: transform 260ms var(--ease), opacity 200ms; }
/* 메인: 첫 화면 버튼이 화면 밖으로 나간 뒤에만 보임 (main.js 가 body.hero-btns-gone 을 붙임).
   처음부터 숨겨 둬서 페이지를 열 때 잠깐 보였다 사라지지 않게. 스크립트가 없으면(.js 없음) 항상 보임 */
.js body:has(.hero .btns):not(.hero-btns-gone) .float { transform: translateY(120%); opacity: 0; visibility: hidden; pointer-events: none; }
.float__b { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 0.5rem; border-radius: 14px; background: var(--gray); color: var(--ink-2); font-weight: 700; font-size: 0.95rem; transition: transform 140ms var(--ease), background-color 200ms; }
.float__b svg { display: none; width: 17px; height: 17px; }
.float__b:active { transform: scale(0.96); }
.float__b--main { background: var(--blue); color: #fff; }
.float__b--main svg { display: block; }
@media (hover: hover) {
  .float__b:hover { background: var(--gray); }
  .float__b--main:hover { background: var(--blue-hover); }
}

/* ---------- 사례 페이지 · 사례 목록 (cases/) ---------- */
.case { padding-top: var(--nav); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; margin-bottom: 1.5rem; color: var(--muted-2); font-size: 0.92rem; }
.crumbs a { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--muted); transition: color 200ms; }
.crumbs [aria-current] { color: var(--ink-2); font-weight: 600; }
@media (hover: hover) { .crumbs a:hover { color: var(--blue); } }
.case__title { margin-top: 0.6rem; font-size: clamp(2rem, 1.3rem + 2.2vw, 3rem); line-height: 1.3; font-weight: 800; letter-spacing: -0.04em; }

.case__wrap { max-width: calc(980px + 2 * var(--pad)); margin: 0 auto; padding: clamp(2.5rem, 5vw, 4rem) var(--pad) 0; }
.case__head .tag { display: inline-block; margin-bottom: 14px; background: var(--blue-soft); color: var(--blue); }
.case__head h1 { font-size: clamp(1.9rem, 1.3rem + 2vw, 2.8rem); line-height: 1.3; font-weight: 800; letter-spacing: -0.04em; }
.case__summary { margin-top: 1rem; color: var(--ink-2); font-size: 1.12rem; line-height: 1.7; }
/* 현장 요약 3줄 (사례의 summaryPoints) */
.case__points { display: grid; gap: 8px; margin: 1rem 0 0; padding: 16px 18px; border-radius: 16px; background: var(--blue-soft); color: var(--ink-2); list-style: none; word-break: keep-all; }
.case__points li { position: relative; margin: 0; padding-left: 26px; line-height: 1.6; }
.case__points li::before { content: "✓"; position: absolute; left: 2px; top: 0; color: var(--blue); font-weight: 800; }
.case__points strong { color: var(--ink); font-weight: 800; }

/* 사례 사진: 맨 위 대표 사진 1장 + 글 사이 묶음 (휴대폰 한 줄 1장 전체 폭, 넓은 화면 한 줄 2장). 누르면 크게 보기 */
.case__photos { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 1rem 0 0; padding: 0; list-style: none; }
.case__photos--lead { margin-top: 2rem; }
.case__photos li { position: relative; margin: 0; border-radius: 14px; overflow: hidden; }
.case__photos li[hidden] { display: none; }
/* 사례 사진은 자르지 않고 원본 비율 그대로 (칸 높이는 <img> 의 width·height 로 미리 잡힌다). 파일이 아직 없는 칸만 4:3 */
.case__photos .ph { background: var(--gray); }
.case__photos .ph:not(.has-img) { aspect-ratio: 4 / 3; }
.case__photos .ph img { position: static; height: auto; object-fit: contain; transform: none; }
.case__photos picture { display: block; }
.case__photos .ph > picture { position: static; }   /* 원본 비율 칸: 사진이 칸 높이를 만든다 (평균 색 배경은 그대로) */
.case__photos .case__photo--main { grid-column: 1 / -1; }
.case__photos .cap { position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px); padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.92); font-size: 0.85rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
/* 시공 후 영상 */
.case__video { margin-top: 1rem; }
.case__video video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; background: var(--ink); }
.case__video figcaption { margin-top: 8px; color: var(--muted); font-size: 0.92rem; }
/* 제품 종류 사진 (productTypes): 휴대폰은 가로로 넘기기(옆 사진이 살짝 보임), 넓은 화면은 3열 */
.case__types { display: flex; gap: 10px; margin: 1rem calc(var(--pad) * -1) 0; padding: 0 var(--pad); overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--pad); overscroll-behavior-x: contain; scrollbar-width: none; list-style: none; }
.case__types::-webkit-scrollbar { display: none; }
.case__types li { flex: 0 0 72%; scroll-snap-align: start; }
.case__text .case__types li { margin-top: 0; }
.case__types .ph { aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; background: var(--gray); }
.case__text .case__types .cap { margin-top: 8px; font-size: 1rem; line-height: 1.5; text-wrap: balance; }
.case__zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.case__zoom:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; border-radius: inherit; }

.case__body { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.case__facts { display: grid; gap: 2px; margin: 0; padding: 8px 20px; border-radius: 20px; background: var(--gray-2); }
.case__facts > div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.case__facts > div:last-child { border-bottom: 0; }
.case__facts dt { color: var(--muted-2); font-size: 0.88rem; font-weight: 600; }
.case__facts dd { margin: 2px 0 0; color: var(--ink); font-weight: 700; }
.case__text { display: grid; gap: 2rem; }
.case__text h2 { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.03em; }
.case__text p, .case__text li { margin-top: 0.6rem; color: var(--ink-2); line-height: 1.75; }
.case__text ol { padding-left: 1.3em; list-style: decimal; }
.case__text li { margin-top: 0.4rem; }
.case__text .case__photos li { margin-top: 0; }
.case__text ol > li > .case__photos { margin: 0.8rem 0 1.2rem; }
.case__blog a { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--blue); font-weight: 700; }
/* 주의사항 강조 박스 (aftercare 안 { label, text }) */
.case__note { margin-top: 1rem; padding: 18px 20px; border: 1px solid rgba(49, 130, 246, 0.35); border-radius: 16px; background: var(--blue-soft); }
.case__note strong { display: block; color: var(--blue-hover); font-size: 0.95rem; font-weight: 800; }
.case__text .case__note p { margin-top: 0.35rem; color: var(--ink); }
/* 사례 자주 묻는 질문 — 질문 줄을 손가락으로 누르기 편한 높이로 */
.case__faq .faq { margin-top: 1rem; }
.case__faq summary { min-height: 64px; padding: 16px 20px; }
.case__faq summary h3 { font-size: 1.02rem; line-height: 1.5; }
.case__text .case__faq details p { margin-top: 0; padding: 0 20px 20px; }
.case__text .case__faq details .faq__a { padding: 0 20px 20px; color: var(--ink-2); }

/* 상담 구역 "비슷한 증상이 있으신가요?": 휴대폰은 왼쪽 정렬·버튼 세로, 넓은 화면은 가운데 정렬·버튼 한 줄 */
.case__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; margin-top: clamp(3rem, 6vw, 4.5rem); margin-bottom: 32px; padding: clamp(24px, 4vw, 36px); border-radius: var(--radius); background: var(--blue-soft); }
.case__text > .case__cta { margin-top: 1rem; }   /* 본문 글 칸 안: 칸 간격(2rem)과 더해 위 글과 48px */
.case__cta h2 { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.03em; }
.case__cta p { margin-top: 6px; color: var(--ink-2); max-width: 36em; word-break: keep-all; text-wrap: balance; }   /* 단어 중간에서 안 끊기고, 줄 길이가 비슷하게 */
.case__cta .pill--line { background: #fff; }
.case__cta .pill--line:active { background: var(--gray); }
@media (hover: hover) { .case__cta .pill--line:hover { background: var(--gray); } }   /* 흰 버튼은 위 .case__cta 규칙이 hover 를 덮어서 아무 변화가 없었음 */
.case__cta .btns .pill { flex: 1 1 100%; }
.sec--cta { padding-bottom: 0; }      /* 상담 구역으로 끝나는 칸: 아래 간격은 .case__cta 가 맡음 */
.case__related { padding-top: clamp(4rem, 7vw, 6rem); }
.case__related .sec__head h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-rise] { opacity: 0; transform: translateY(20px); animation: rise 800ms var(--ease) forwards; animation-delay: calc(var(--i, 0) * 80ms + 80ms); }
  .js [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity 600ms var(--ease), transform 700ms var(--ease); transition-delay: calc(var(--d, 0) * 70ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .steps { scroll-behavior: smooth; }
  .steps.is-snap li { transition: transform 300ms var(--ease), opacity 300ms var(--ease); }
  .steps__dots button::before { transition: opacity 300ms var(--ease); }
  .hero__media { animation: pop 1100ms var(--ease) both; }
}
@media (prefers-reduced-motion: reduce) {
  .acase, .zone__card, .zone__mk::before, .zone__mk::after, .area-filter button { transition: none; }
  .js .zone__panel, .js .zone__inner { transition: none; }
  .js .ba-more, .js .ba-more .ba-more__inner { transition: none; }
  .ba__shot .ph img, .ba__tag { transition: none; }
  .ba:hover .ba__shot .ph img, .ba:hover .ba__shot:hover .ph img, .ba__shot:active, .ba:hover .ba__shot + .ba__shot .ba__tag { transform: none; }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes pop { from { transform: scale(1.06); } to { transform: none; } }   /* 첫 화면 사진은 바로 보이게 투명도는 쓰지 않음 */

/* ==========================================================================
   넓은 화면 — 641px 이상: 태블릿. 하단 바 대신 떠 있는 버튼, 카드 2열
   ========================================================================== */
@media (min-width: 641px) {
  :root { --tap: 40px; }
  body { padding-bottom: 0; font-size: 17px; line-height: 1.6; }
  h1, h2, h3, p, li, dd, blockquote { text-wrap: wrap; }
  .nav__logo { display: inline; min-height: 0; font-size: 1.2rem; }
  .foot__tel { display: block; min-height: 0; }
  .strip li { padding: 26px 26px 28px; }
  .strip strong { font-size: 1.15rem; }
  .svc { grid-template-columns: repeat(2, 1fr); }
  .svc div > p:last-child { font-size: 0.97rem; }
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding-inline: 0; overflow: visible; scroll-snap-type: none; }
  .sec > .steps, .area-sec > .steps { margin-inline: auto; }
  .steps__dots { display: none; }
  .steps li:last-child { grid-column: 1 / -1; }
  .steps p { font-size: 0.97rem; }
  .posts { grid-template-columns: repeat(2, 1fr); }
  .area-list { grid-template-columns: repeat(2, 1fr); }
  .area-list h3 a { display: inline; min-height: 0; }
  .area-cases { grid-template-columns: repeat(2, 1fr); }
  .case__area-link { display: block; min-height: 0; margin-top: 4px; }
  .need p { font-size: 0.97rem; }
  .contact .btns { grid-template-columns: 1fr 1fr; }
  .composer { padding: 32px; }
  .composer__hint { font-size: 0.97rem; }
  .preview__msg { font-size: 0.97rem; }
  .foot { padding: 4rem var(--pad) 7rem; font-size: 0.97rem; }
  .foot__grid { gap: 2.5rem; }
  .foot li a { display: inline; min-height: 0; }
  .foot__legal { padding-right: 200px; }   /* 오른쪽 아래 상담 버튼에 가리지 않게 */
  .float { left: auto; right: 24px; bottom: 24px; grid-template-columns: none; justify-items: end; gap: 8px; padding: 0; background: none; box-shadow: none; }
  .float__b { justify-content: flex-start; min-height: 46px; padding: 0 1.1rem; background: #fff; box-shadow: 0 4px 16px rgba(0, 27, 55, 0.12); }
  .float__b svg { display: block; }
  .float__b--main { min-height: 52px; background: var(--blue); box-shadow: 0 6px 20px rgba(49, 130, 246, 0.35); }
  .crumbs { align-items: normal; gap: 8px; }
  .crumbs a { display: inline; min-height: 0; }
  .case__photos { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .case__photos--lead { grid-template-columns: 1fr; }
  .case__photos li { border-radius: 18px; }
  /* 대표 사진: 넓은 화면은 가로 16:9 칸에 채운다. 보이는 부분은 --pos (사례의 photos[0].pos, 없으면 가운데) */
  .case__photos--lead .ph { aspect-ratio: 16 / 9; }
  .case__photos--lead .ph img { position: absolute; height: 100%; object-fit: cover; }
  .case__photos--lead .ph > picture { position: absolute; inset: 0; }
  .case__video video { border-radius: 18px; }
  .case__types { display: grid; grid-template-columns: repeat(3, 1fr); margin-inline: 0; padding: 0; overflow: visible; }
  .case__types .ph { border-radius: 18px; }
  .case__blog a { display: inline; min-height: 0; }
  .case__cta { flex-direction: column; justify-content: center; margin-bottom: 48px; padding: 40px 32px; text-align: center; }
  .case__cta h2 { text-wrap: balance; }
  .case__cta p { max-width: 600px; margin-inline: auto; }   /* 설명은 두 줄 안에 */
  .case__cta .btns { justify-content: center; }
  .case__cta .btns .pill { flex: 0 1 auto; }
}

/* ==========================================================================
   769px 이상: 첫 화면이 사진 위에 글이 겹치는 구조로
   ========================================================================== */
@media (min-width: 769px) {
  /* 증상 카드: 컴퓨터는 예전 모양 (4:3 사진, 태그·긴 제목·설명·사례 보기) */
  .cards { grid-auto-rows: auto; gap: 16px; }
  .card .ph { aspect-ratio: 4 / 3; }
  .card .tag { position: static; max-width: none; margin-bottom: 10px; padding: 4px 10px; border-radius: 8px; background: var(--gray); color: var(--ink-2); font-size: 0.85rem; line-height: inherit; box-shadow: none; }
  .card div { padding: 20px 20px 24px; }
  .card h3 { display: block; overflow: visible; font-size: 1.1rem; }
  .card__long { display: inline; }
  .card__short { display: none; }
  .card p { display: block; font-size: 0.95rem; }
  .card h3 { margin-bottom: 0; }
  .card .more { display: block; margin-bottom: -4px; padding: 8px 12px; border-radius: 10px; font-size: 0.92rem; }
  .card div > p + .more { margin-top: 18px; }
  .area-cards { grid-template-columns: repeat(3, 1fr); }
  .area-zones { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .ba-list { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .ba-list, .ba-more { --ba-pad: 12px; }
  .area-intro__box { padding: 24px; }
  .ba-more__inner > .ba-list { padding-top: 12px; }
  body:has(.hero) .nav { background: rgba(255, 255, 255, 0.92); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); }
  body:has(.hero) .nav.is-solid, body:has(.hero) .nav.is-open { box-shadow: 0 1px 0 var(--line); }
  body:has(.hero) .nav > .nav__logo { color: var(--ink); }
  body:has(.hero) .nav > .nav__logo b { color: var(--blue); }
  body:has(.hero) .nav__toggle i { background: var(--ink); }
  body:has(.hero) .nav__tel { background: var(--blue-soft); color: var(--blue); }
  .nav__tel { gap: 7px; width: auto; height: auto; min-height: 38px; padding: 0 0.8rem; overflow: visible; }
  .nav__num { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
  .nav__tel svg { width: 17px; height: 17px; }
  .hero { display: flex; align-items: center; margin: calc(var(--nav) + 4px) clamp(8px, 1.4vw, 20px) 0; min-height: calc(100svh - var(--nav) - 16px); padding: 80px var(--pad); border-radius: 32px; background: #191f28; }
  .hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(13, 19, 28, 0.82) 0%, rgba(13, 19, 28, 0.6) 45%, rgba(13, 19, 28, 0.15) 100%); }
  .hero__media { position: absolute; inset: 0; z-index: -2; width: auto; aspect-ratio: auto; min-height: 0; }
  .hero__media::after { content: none; }
  .ph--hero { background: #2b3138; }
  .ph--hero::after { inset: auto 24px 20px auto; display: block; }
  .hero__in { z-index: auto; max-width: 720px; margin-top: 0; padding: 0; }
  .br-m { display: none; }
  .hero .badge { padding: 8px 14px; font-size: 0.95rem; background: rgba(255, 255, 255, 0.16); box-shadow: none; }
  .hero .badge svg { width: 17px; height: 17px; }
  .hero h1 { margin-top: 1.5rem; font-size: clamp(2.5rem, 1.4rem + 3.8vw, 4.8rem); line-height: 1.2; }
  .hero h1 em { color: #64a8ff; }
  .hero__sub { margin-top: 1.4rem; font-size: clamp(1.1rem, 1rem + 0.45vw, 1.35rem); line-height: 1.6; color: rgba(255, 255, 255, 0.88); }
  .hero .btns { flex-direction: row; margin-top: 2.25rem; }
  .hero .btns .pill { width: auto; flex: 0 1 auto; min-height: 58px; border-radius: 16px; font-size: 1.05rem; }
  .hero .pill--line { background: rgba(255, 255, 255, 0.16); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
  .hero__note { display: block; margin-top: 1.5rem; max-width: 540px; padding: 16px 18px; border-radius: 16px; background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.82); font-size: 0.95rem; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
  .float { transition: none; }
  .js body:has(.hero .btns):not(.hero-btns-gone) .float { transform: none; opacity: 1; visibility: visible; pointer-events: auto; }
}

/* ==========================================================================
   961px 이상: 메뉴 펼침, 3열
   ========================================================================== */
@media (min-width: 961px) {
  :root { --nav: 68px; }
  .nav { gap: 2rem; }
  .nav__logo { font-size: 1.3rem; }
  .nav__menu { display: flex; position: static; flex-direction: row; gap: 0.25rem; margin-left: auto; padding: 0; background: none; box-shadow: none; font-size: 0.97rem; }
  .nav__menu a { padding: 8px 14px; }
  .nav__tel { margin-left: 0; min-height: 42px; padding: 0 1rem; font-size: inherit; }
  .nav__toggle { display: none; }
  .strip ul { grid-template-columns: repeat(3, 1fr); }
  .area-list--3 { grid-template-columns: repeat(3, 1fr); }
  .area-cases { grid-template-columns: repeat(3, 1fr); }
  .area-list--photo li.has-ph { display: block; padding: 0; overflow: hidden; }
  .area-list--photo .ph { width: auto; aspect-ratio: 16 / 10; border-radius: 0; }
  .area-list--photo li.has-ph div { padding: 16px 20px 20px; }
  .svc { grid-template-columns: repeat(3, 1fr); }
  .regions { grid-template-columns: repeat(3, 1fr); }
  .contact { grid-template-columns: 1.05fr 1fr; }
  .foot__grid { grid-template-columns: 2fr 1fr 1fr; }
  .foot__about { grid-column: auto; }
  .case__body { grid-template-columns: 280px minmax(0, 1fr); }
  .case__facts { position: sticky; top: calc(var(--nav) + 16px); }
}

/* ==========================================================================
   1201px 이상: 내용 폭 최대(--max), 증상 카드 5열
   ========================================================================== */
@media (min-width: 1201px) {
  .cards { grid-template-columns: repeat(5, 1fr); }
  .card div { padding: 18px 16px 20px; }
  .feature { grid-template-columns: 1.1fr 1fr; }
  .feature .ph { min-height: 340px; aspect-ratio: auto; }
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(5, 1fr); }
  .steps li:last-child { grid-column: auto; }
  .posts { grid-template-columns: repeat(4, 1fr); }
}

/* ==========================================================================
   메인 페이지 인터랙션 (2026-11-10) — index.html head 의 한 줄 스크립트가 <html> 에 .fx 를 붙일 때만 (본문을 그리기 전이라 스타일을 다시 계산하지 않음).
   지역·사례 페이지에는 fx.js 가 없어 아무 영향 없음. 움직임은 transform·opacity 만, 그림자는 미리 깐 층의 opacity.
   '움직임 줄이기' 설정이면 전부 꺼짐. 스크립트가 없으면 처음부터 보이는 상태 그대로.
   ========================================================================== */
.fx .more::after { content: "→"; display: inline-block; margin-left: 4px; }   /* 카드 안 화살표 */
.fx .sec__head h2::after { content: ""; display: block; width: 44px; height: 3px; margin-top: 14px; border-radius: 2px; background: var(--blue); transform-origin: left center; }
.fx-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: 3px; background: var(--blue); transform: scaleX(0); transform-origin: left center; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  /* 히어로: 배지 → 제목 → 서브 카피 → 버튼, 시작 지연 없이 */
  .hero [data-rise] { animation-delay: calc(var(--i, 0) * 90ms); }
  /* 섹션 제목: 영문 라벨 → 제목 → 파란 밑줄 */
  .fx .sec__head[data-reveal] > * { opacity: 0; transform: translateY(14px); transition: opacity 500ms var(--ease), transform 600ms var(--ease); }
  .fx .sec__head[data-reveal] > :nth-child(2) { transition-delay: 120ms; }
  .fx .sec__head[data-reveal] > :nth-child(3) { transition-delay: 220ms; }
  .fx .sec__head[data-reveal].is-in > * { opacity: 1; transform: none; }
  .fx .sec__head h2::after { transform: scaleX(0); transition: transform 600ms var(--ease) 380ms; }
  .fx .sec__head.is-in h2::after { transform: none; }
  /* 카드 차례로: 기존 [data-reveal] (--d × 70ms). 시공사례·갤러리 카드는 fx.js 가 data-reveal·--d 를 붙임 */
  /* 진행 과정: 01 → 05 차례로 파랗게 (회색 바탕 위에 파란 층을 opacity 로) */
  .fx .steps b { position: relative; isolation: isolate; background: var(--gray); color: var(--muted); transition: color 0s linear calc(var(--n, 0) * 180ms + 200ms); }
  .fx .steps b::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--blue); opacity: 0; transform: scale(0.6); transition: opacity 350ms var(--ease), transform 450ms var(--ease); transition-delay: calc(var(--n, 0) * 180ms); }
  .fx .steps.is-lit b { color: #fff; }
  .fx .steps.is-lit b::before { opacity: 1; transform: none; }
  /* 주요 버튼: 처음 보일 때 한 번 빛이 스침 */
  .fx .pill--main { position: relative; overflow: hidden; }
  .fx .pill--main::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 45%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent); transform: translateX(-120%); pointer-events: none; }
  .fx .pill--main.fx-shine::after { animation: fx-shine 900ms var(--ease) 1 both; }
  @keyframes fx-shine { to { transform: translateX(330%); } }
  /* 휴대폰: 카드를 누르는 동안 살짝 눌림 */
  @media (hover: none) {
    .fx .card a:active, .fx .svc a:active, .fx .post a:active, .fx .feature:active, .fx .gallery__open:active { transform: scale(0.98); transition-duration: 120ms; }
  }
  /* PC: 카드 마우스 — 떠오름(기존) + 그림자 진해짐 + 사진 1.05배 + 화살표 이동 */
  @media (hover: hover) and (pointer: fine) {
    .fx .card, .fx .svc li, .fx .post { position: relative; isolation: isolate; }
    .fx .card::after, .fx .svc li::after, .fx .post::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: var(--radius); box-shadow: 0 22px 44px -20px rgba(0, 27, 55, 0.35); opacity: 0; transition: opacity 300ms var(--ease), transform 250ms var(--ease); pointer-events: none; }
    .fx .card:hover::after, .fx .svc li:hover::after, .fx .post:hover::after { opacity: 1; transform: translateY(-4px); }
    .fx .card .ph img, .fx .svc .ph img, .fx .post .ph img, .fx .feature .ph img, .fx .gallery .ph img { transition: transform 500ms var(--ease); }
    .fx .card a:hover .ph img, .fx .svc a:hover .ph img, .fx .post a:hover .ph img, .fx .feature:hover .ph img, .fx .gallery__open:hover .ph img { transform: scale(calc(var(--zoom, 1) * 1.05)); }
    .fx .more::after { transition: transform 250ms var(--ease); }
    .fx a:hover .more::after, .fx .feature:hover .more::after { transform: translateX(4px); }
    /* 갤러리: 사진 위 작은 설명이 아래에서 올라옴 */
    .fx .gallery .cap { opacity: 0; transform: translateY(10px); transition: opacity 250ms var(--ease), transform 300ms var(--ease); }
    .fx .gallery__open:hover .cap, .fx .gallery__open:focus-visible .cap { opacity: 1; transform: none; }
    /* 서비스·시공사례 카드 기울기: fx.js 가 transform 을 직접 넣음 (움직이는 동안만 will-change) */
    .fx .svc a.fx-tilt, .fx .post a.fx-tilt { transition: transform 120ms linear; }
    /* 저사양(.fx-calm — fx.js 가 카드 묶음에만 붙임): 사진 확대 끔. 기울기·빛 스침은 fx.js 가 아예 안 함 */
    .fx .fx-calm .ph img, .fx .fx-calm.feature .ph img { transform: scale(var(--zoom, 1)) !important; }
  }
}
