/* ===========================================================
   방수명가 — 폰용 홈 (m.html) 전용 디자인
   2026-08-23 새로 지음. 기획: [9.리뉴얼] 모바일 목업

   ⚠️ 이 파일은 m.html 에서만 부릅니다.
      웹플로우 공용 css(bsmgkorea.webflow.shared…css)는 10개 페이지가 같이 쓰기 때문에
      한 글자도 건드리지 않습니다. 여기서 하는 일은 다른 페이지에 절대 닿지 않습니다.

   ★ 표시된 숫자만 바꾸면 크기·간격이 바뀝니다. 1rem = 10px 입니다(1.6rem = 16px).
   =========================================================== */

/* 글꼴 — 새 사이트(bsmg-new)와 같은 것. 이 페이지에 쓰인 글자만 남기고 줄였습니다. */
@font-face { font-family: Pretendard; src: url("/assets/m/fonts/Pretendard-Regular.woff2")  format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Pretendard; src: url("/assets/m/fonts/Pretendard-Medium.woff2")   format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: Pretendard; src: url("/assets/m/fonts/Pretendard-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: Pretendard; src: url("/assets/m/fonts/Pretendard-Bold.woff2")     format("woff2"); font-weight: 700; font-display: swap; }
/* 청도읍성체는 block — 글꼴이 올 때까지 제목 자리를 비워 두고 기본 글꼴 제목을 먼저 보이지 않음 (2026-10-15, css/style.css 와 같음).
   올라가는 파일은 build.js 가 홈페이지 전체에서 쓰는 글자만 남긴 assets/fonts/cd/ 파일로 바꿔 끼웁니다. 여기 주소는 원본 그대로 두세요. */
@font-face { font-family: 청도읍성체;  src: url("/assets/fonts/cd/cheongdo-400.b105eabbbb.woff2")            format("woff2"); font-weight: 400; font-display: block; }

:root {
  --red:   #a11d1f;   /* 브랜드 빨강 */
  --red-d: #8a1719;   /* 눌렀을 때 */
  --red-l: #fbeceb;   /* 아주 연한 빨강 — 배지 바탕 */
  --cream: #f0eee8;   /* 크림 배경 */
  --ink:   #16171a;   /* 본문 검정 */
  --sub:   #6b6f76;   /* 흐린 글씨 */
  --line:  #e3e1db;   /* 선 */
  --white: #fff;
  --ivory: #ffebd2;   /* 검정 배경 위 강조색 */

  --ff:   Pretendard, -apple-system, "Apple SD Gothic Neo", sans-serif;
  --ff-h: 청도읍성체, Pretendard, sans-serif;   /* 큰 제목용 */

  --pad:  2rem;       /* ★ 좌우 여백 */
  --sec:  5.2rem;     /* ★ 칸 위아래 여백 */
  --bar:  7.4rem;     /* 하단 고정바 높이 — 페이지 끝 여백 계산에 씁니다 */
}

/* color-scheme — 브라우저의 '어둡게' 기능을 끄는 장치. 다른 9개 페이지도 같은 걸 씁니다.
   ⚠️ 이걸 무시하는 브라우저(삼성 인터넷·앱 안 브라우저 등)도 있는데, 그래도 이 페이지는
      제목이 전부 진짜 글자라서 색만 뒤집힐 뿐 다 읽힙니다(옛 페이지는 제목이 그림이라 사라집니다). */
html { font-size: 62.5%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth;
  background: #e7e9ee; color-scheme: only light; }
*, *::before, *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0; font-family: var(--ff); font-weight: 400; font-size: 1.6rem;
  color: var(--ink); background: var(--white);
  line-height: 1.65; word-break: keep-all; letter-spacing: -0.01em;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.3; font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--red); color: #fff; }

/* 폰 폭 틀 — 태블릿에서 열어도 폰 화면처럼 가운데 한 줄로 보입니다
   ⚠️ 여기에 `overflow: hidden` 을 쓰면 안 됩니다 — 그건 '스크롤 상자'를 만들어서
      맨 위 줄(.hd)의 position:sticky 를 죽입니다(그래서 예전엔 머리가 맨 위에서만 보였습니다).
      `overflow-x: clip` 은 옆으로 삐져나가는 것만 잘라 내고 sticky 는 그대로 살립니다.
      윗줄 hidden 은 clip 을 모르는 옛 브라우저용 — 지우지 마세요(거기선 예전처럼 동작합니다). */
#app { max-width: 43rem; margin: 0 auto; background: var(--white); position: relative;
  overflow-x: hidden; overflow-x: clip; }

/* ── 공통 조각 ─────────────────────────────────────────── */
.sec  { padding: var(--sec) var(--pad); }
.sec-cream { background: var(--cream); background-image: url("/assets/m/paper.webp");
  background-repeat: repeat; background-size: 32rem; }
.sec-dark  { background: var(--ink); color: #fff; }
/* 빨간 바탕 칸 — 지금은 안 씁니다(2026-08-26 흰 바탕으로 되돌림).
   다시 빨갛게 하려면 m.html 의 id="formsec" 칸에 class 로 sec-red 만 붙이면 됩니다.
   그러면 아래 규칙들이 글자·입력칸·버튼까지 알아서 뒤집어 줍니다. */
/* ★ 배경 빨강 — 브랜드 빨강(#a11d1f)보다 어둡게 잡은 값입니다.
   더 어둡게: #661012 · 덜 어둡게: var(--red-d) (#8a1719) */
.sec-red { background: #7a1417; color: #fff; }
.sec-red .formhead, .sec-red .w-form label { color: #fff; }
.sec-red .formsub { color: rgba(255,255,255,.82); }
.sec-red .w-form label .opt { color: rgba(255,255,255,.65); }
.sec-red .w-form input[type=text], .sec-red .w-form input[type=tel] {
  border-color: rgba(255,255,255,.45); background: #fff; color: var(--ink); }
.sec-red .w-form input:focus { border-color: #fff; }
.sec-red .w-form .agree { color: rgba(255,255,255,.85); }
/* 보내기 버튼 — 빨강 위에 빨강은 안 보이므로 검정 버튼으로 뒤집습니다 */
.sec-red .btn-red { background: var(--ink); color: #fff; border-color: var(--ink); }
.sec-red .btn-red:active { background: #2c2d31; border-color: #2c2d31; }
.sec-red .w-form-done { background: rgba(255,255,255,.12); color: #fff; }
.sec-red .w-form-done b, .sec-red .w-form-done p { color: #fff; }
.sec-red .w-form-fail { background: rgba(0,0,0,.22); color: #fff; }
/* ⚠️ 검정 바탕에서는 테두리 버튼이 검정이라 안 보입니다 → 흰 테두리로 뒤집습니다. */
.sec-dark .btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }

.eyebrow { color: var(--red); font-size: 1.3rem; font-weight: 700; letter-spacing: 0.02em; margin-bottom: 1rem; }
/* ⚠️ text-wrap: balance — 좁은 폰(360px, 갤럭시 S)에서 제목 줄이 하나 늘어날 때
      「합니다」처럼 마지막 줄에 한 덩어리만 혼자 남는 걸 막아 줍니다(길이를 알아서 반반 나눔).
      모르는 옛 브라우저는 그냥 무시하고 지금처럼 동작합니다 — 넣어서 손해 볼 일 없습니다. */
.h-sec   { font-family: var(--ff-h); font-weight: 400; font-size: 2.8rem; line-height: 1.38;   /* ★ 칸 제목 크기 */
  text-wrap: balance; }
.lead    { color: var(--sub); font-size: 1.5rem; margin-top: 1.2rem;
  text-wrap: pretty; }   /* 좁은 폰에서 마지막 줄에 「것.」처럼 한 조각만 남는 걸 막습니다 */
.sec-dark .lead { color: #b6bac1; }
.red   { color: var(--red); }
.ivory { color: var(--ivory); }

/* ⚠️ 모든 버튼에 같은 굵기의 테두리를 둡니다 — 색만 다르게 씁니다(안 보이게 하려면 transparent).
      한쪽에만 테두리가 있으면 그 버튼이 위아래로 1.5px 씩, 총 3px 더 커집니다.
      box-sizing:border-box 는 '높이를 직접 정해 준' 경우에만 테두리를 안쪽으로 넣어 줍니다.
      우리 버튼은 높이를 안 정하고 글자+여백대로 늘어나므로 테두리가 그대로 더해집니다.
      크롬은 두 버튼을 같은 높이로 늘려 줘서 안 보였고, 아이폰 사파리에서 드러났습니다. */
.btn { display: block; width: 100%; text-align: center; border-radius: 0.8rem;
  padding: 1.6rem; font-size: 1.65rem; font-weight: 700; font-family: inherit;   /* ★ 버튼 글자 크기 */
  border: 0.15rem solid transparent; }
.btn-red   { background: var(--red); color: #fff; border-color: var(--red); }
.btn-red:active { background: var(--red-d); border-color: var(--red-d); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-dark  { background: var(--ink); color: #fff; border-color: var(--ink); }   /* 검정 채운 버튼 */
.btn-dark:active { background: #2c2d31; border-color: #2c2d31; }
.btn-line-w{ border-color: rgba(255,255,255,.55); color: #fff; }
.btn-sm    { padding: 1.3rem; font-size: 1.5rem; }

/* 사진 자리 — 대표님이 채우실 곳. 눈에 잘 띄게 해 둡니다. */
.ph { display: flex; align-items: center; justify-content: center; text-align: center;
  background: repeating-linear-gradient(45deg, #eceef1 0 1.2rem, #e3e6ea 1.2rem 2.4rem);
  color: #97a0ac; font-size: 1.25rem; font-weight: 600; line-height: 1.5; padding: 1rem; }

/* ── 머리 ─────────────────────────────────────────────── */
/* 맨 위 줄 — 내리면 숨고, 조금이라도 올리면 다시 나옵니다 (2026-08-26)
   ⚠️ 이게 되려면 #app 이 `overflow: hidden` 이면 안 됩니다(59행 설명 참고).
      hidden 은 '스크롤 상자'를 만들어서 sticky 를 무력화합니다 — 그래서 예전엔 맨 위에서만 보였습니다.
   ★ .25s = 숨고 나타나는 속도. */
.hd { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.97);
  backdrop-filter: blur(0.8rem); border-bottom: 0.1rem solid var(--line);
  display: flex; align-items: center; gap: 1.2rem; padding: 1.2rem var(--pad);
  transition: transform .25s ease; }
body.hd-off .hd { transform: translateY(-100%); }
/* 메뉴를 펼친 동안에는 절대 숨지 않게 (메뉴가 머리 밑에 붙어 내려오므로) */
body.nav-open .hd { transform: none; }
.hd .logo img { width: 10.4rem; }
.hd .sp { flex: 1; }
.hd .tel { font-family: var(--ff); font-weight: 700; font-size: 1.6rem; letter-spacing: 0.01em; }
.hd .menu { display: grid; gap: 0.45rem; padding: 0.6rem 0.2rem; }
.hd .menu i { display: block; width: 2.1rem; height: 0.2rem; background: var(--ink); }

/* ── 펼침 메뉴 ─────────────────────────────────────────────
   웹플로우 원본(옛 폰 페이지)의 메뉴를 그대로 옮긴 것입니다. 2026-08-24
   ⚠️ 아래 숫자는 눈대중이 아니라, 원본을 폭 430px 에서 실제로 재서 옮긴 값입니다.
        패널 안쪽 여백 위 23px 아래 30px · 줄 사이 7px · 글자 17px/400 · 자간 0.25px
        글자색 #1a1b1f · 그림자 0 4px 5px rgba(0,0,0,.2) · 전화번호 칸 165x36.75px
   ⚠️ 머리 밑에 '겹쳐서' 내려옵니다(position:absolute). 밀어내리는 방식으로 바꾸면
      원본과 달라집니다. */
.nav { display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 2;
  background: var(--white); box-shadow: 0 0.4rem 0.5rem rgba(0,0,0,.2);
  padding: 2.3rem 0 3rem; text-align: center; }
body.nav-open .nav { display: flex; flex-direction: column; align-items: center; gap: 0.7rem; }

/* ⚠️ 아래 여백 1.1rem — 원본은 한 줄이 31px 입니다(글자칸 20 + 아래 10 + 글꼴이 만드는 1).
      1rem 으로 두면 30px 이라 줄마다 1px 씩 위로 밀려 올라갑니다. */
.nav a, .nav .nav-t { font-family: var(--ff); font-size: 1.7rem; font-weight: 400;
  line-height: 2rem; letter-spacing: 0.025rem; color: #1a1b1f; padding: 0 0.5rem 1.1rem; }

/* 시공분야 — 누르면 아래로 다섯 개가 펼쳐집니다.
   ⚠️ 원본은 꺾쇠만 있고 눌러도 안 펼쳐집니다(웹플로우 쪽 오류). 그대로 두면 다섯 페이지를
      메뉴에서 못 가므로 여기서는 펼쳐지게 했습니다. */
.nav .nav-grp { display: flex; flex-direction: column; align-items: center; gap: 0.7rem; }
/* ⚠️ 오른쪽 여백(2rem = 꺾쇠 1.4 + 사이 0.6)은 '보이는 가운데'를 맞추는 장치입니다.
      글자+꺾쇠를 한 덩어리로 가운데 놓으면 글자 자체는 왼쪽으로 밀려 보입니다.
      꺾쇠 폭만큼 오른쪽에 여백을 주면 덩어리가 그만큼 왼쪽으로 가서 글자가 진짜 가운데 옵니다. */
.nav .nav-t { display: flex; align-items: center; gap: 0.6rem;
  padding-top: 1rem; padding-bottom: 1.2rem;   /* 원본 시공분야 칸은 42px (다른 줄보다 2px 높음) */
  margin-left: 2rem;
  background: none; border: 0; cursor: pointer; }
.nav .nav-t svg { flex: none; width: 1.4rem; height: 1.4rem; transition: transform .2s; }
.nav .nav-grp.on .nav-t svg { transform: rotate(180deg); }
.nav .nav-sub { display: none; flex-direction: column; align-items: center; gap: 0.7rem; }
.nav .nav-grp.on .nav-sub { display: flex; }
.nav .nav-sub a { font-size: 1.5rem; color: var(--sub); padding-bottom: 0.2rem; }

/* 전화번호 — 원본은 그림(165x36.75px)이었습니다. 9개 페이지에서 글자로 바꿀 때 잰 값 그대로. */
/* ⚠️ 자간 0.005em — 9개 페이지 쪽은 0.05em 이라 176px 로 퍼져서 원본 그림(165px)보다 넓습니다.
      여기서는 가운데 놓이는 자리라 원본 폭에 맞춰 좁혔습니다. 글자 크기는 원본 그대로입니다. */
/* ⚠️ 굵게 하는 법 — 청도읍성체는 굵은 버전이 아예 없습니다(400 하나뿐).
      font-weight:700 을 주면 브라우저가 억지로 뭉개서 흉해집니다.
      대신 글자에 얇은 테두리를 둘러 굵어 보이게 합니다.
      ★ 0.03em = 굵기. 키우면 더 굵어집니다. 자리(폭)는 안 변합니다. */
/* ⚠️ 오른쪽 여백(3.21rem = 아이콘 2.46 + 사이 0.75)도 같은 장치입니다 —
      숫자가 '보이는 가운데'에 오도록 아이콘 폭만큼 덩어리를 왼쪽으로 밉니다. */
.nav .nav-tel { display: flex; align-items: center; justify-content: center;
  height: 3.675rem; margin: 1rem 2rem 0.7rem 0; padding: 0; white-space: nowrap;   /* ★ 이 값이 클수록 왼쪽으로 갑니다 */
  font-family: var(--ff-h); font-weight: 400; font-size: 2.706rem; line-height: 1.5;
  letter-spacing: 0.005em; color: #000;
  -webkit-text-stroke: 0.03em currentColor; paint-order: stroke fill; }
/* ★ 2.46rem = 아이콘 크기 · 0.75rem = 숫자와의 사이. 숫자가 굵어져서 아이콘도 같이 키웠습니다. */
.nav .nav-tel svg { flex: none; width: auto; height: 2.46rem; fill: currentColor;
  margin-right: 0.75rem; }   /* 아래로 내리던 여백은 뺐습니다 — 숫자와 눈높이가 맞게 */

/* ── 브랜드평판 1위 배지 띠 ─────────────────────────────────
   옛 폰 페이지의 것을 그대로 옮긴 값입니다: 화면 전체 폭 · 그림 비율 430:107 · 바탕 #171412
   ⚠️ 원본은 떠 있는 방식(fixed)이었지만 여기서는 제 자리를 차지합니다.
      머리 바로 밑에 놓이므로 순서(header 다음)를 지켜야 합니다. */
/* ⚠️ 이름은 award — badge 로 쓰면 히어로 알약(.hero .badge)에 검은 바탕이 씌워집니다.
   ⚠️ 아래 금색 선 — 배너 밑 히어로 사진도 어두워서 배너와 한 덩어리로 보입니다. 그걸 끊는 것입니다.
      ★ 0.1rem(1px) · 금색 #e8d8b0 을 30% 만 (진해서 흐리게 함). 배너 그림 안 금색을 그대로 뽑은 색.
      굵기는 0.1rem, 진하기는 끝의 .3 숫자를 만지면 됩니다. */
.award { position: relative; background: #171412; line-height: 0;
  border-bottom: 0.1rem solid rgba(232, 216, 176, .3); }
.award img { display: block; width: 100%; height: auto; }
.award-x { position: absolute; top: 0; right: 0; padding: 0.8rem;   /* 글자는 위8·오른쪽8 — 원본과 같은 자리 */
  font-size: 1.4rem; line-height: 2rem; color: rgba(255,255,255,.8);
  background: none; border: 0; cursor: pointer; }
body.award-off .award { display: none; }

/* ── ① 첫 화면 = 전·후 비교 ───────────────────────────── */
/* ⚠️ 높이 단위가 svh 인 이유 — vh 로 두면 스크롤할 때 폰 주소창이 접히면서 화면이 커지고,
      그걸 따라 이 칸도 같이 늘어납니다. 손잡이를 끄는 칸이라 크기가 움직이면 안 됩니다.
      svh 는 주소창이 보이는 상태 기준이라 스크롤해도 절대 안 변합니다.
      윗줄 vh 는 svh 를 모르는 옛 브라우저용 — 지우지 마세요.
      ★ 76 = 첫 화면 높이(%). 키우려면 이 숫자 두 개를 같이 바꿔야 합니다.
      ⚠️ 그런데도 늘어나는 폰(앱 안에서 열리는 브라우저 등)이 있어서, 2026-08-26 부터
         m.html 의 스크립트가 처음 켤 때 높이를 **px 로 못 박습니다**(가로가 바뀔 때만 다시 잽니다).
         그래서 여기 값은 '스크립트가 돌기 전' 과 옛 브라우저용 밑바탕입니다. */
.hero { position: relative; height: 76vh; height: 76svh; min-height: 52rem; max-height: 72rem;
  overflow: hidden; user-select: none; background: #1a1c20; }
.hero .shot { position: absolute; inset: 0; }
.hero .shot img { width: 100%; height: 100%; object-fit: cover; }
/* ⚠️ 폭을 줄이면 안쪽 사진이 찌그러집니다. clip-path 로 '가려야' 합니다. */
.hero .after { clip-path: inset(0 0 0 var(--x, 25%)); }
.hero .bar { position: absolute; top: 0; bottom: 0; left: var(--x, 25%);
  width: 0.2rem; background: #fff; pointer-events: none; z-index: 2; }
/* 손잡이 — ⚠️ 손가락을 받는 건 이 알약 하나뿐입니다.
   흰 세로줄(.bar)은 pointer-events:none 이라, 손잡이 밖을 아무리 만져도 사진이 안 움직입니다.
   touch-action:none 은 '손잡이를 끄는 동안만' 화면이 안 따라 움직이게 하는 것 —
   첫 화면의 다른 곳에서는 위아래 스크롤이 평소대로 됩니다. */
.hero .knob { position: absolute; top: 52%; left: 50%; transform: translate(-50%,-50%);
  pointer-events: auto; touch-action: none; cursor: ew-resize; user-select: none;
  background: #fff; color: var(--ink);
  font-size: 1.1rem; font-weight: 700; padding: 0.9rem 1rem; border-radius: 99rem;
  white-space: nowrap; box-shadow: 0 0.2rem 1rem rgba(0,0,0,.4); }
/* 손가락으로 잡기 쉽게, 눈에 안 보이는 여유 칸을 알약 둘레에 둡니다 */
.hero .knob::before { content: ''; position: absolute; inset: -1.4rem -1.8rem; }
.hero .knob:focus-visible { outline: 0.2rem solid var(--ivory); outline-offset: 0.3rem; }
/* (첫 화면의 '시공 전 / 시공 후' 딱지는 2026-08-25 사용자 요청으로 뺐습니다.
    ④ 외벽 비교칸의 같은 딱지는 .cmp .tag 라 따로 살아 있습니다.) */
.hero .veil { position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(8,10,14,.62) 0%, rgba(8,10,14,0) 34%,
                                      rgba(8,10,14,0) 50%, rgba(8,10,14,.78) 100%); }
.hero .ui { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column;
  padding: 1.8rem var(--pad) 2.2rem; color: #fff; pointer-events: none; }
.hero .ui .btn { pointer-events: auto; }
.hero .badge { display: inline-block; font-size: 1.2rem; font-weight: 600; color: var(--ivory);  /* ★ 알약 문구 크기 */
  border: 0.1rem solid rgba(255,235,210,.45); border-radius: 99rem; padding: 0.5rem 1.2rem; }
.hero h1 { font-family: var(--ff-h); font-weight: 400; font-size: 3.6rem; line-height: 1.28;  /* ★ 첫 화면 제목 크기 */
  margin: 1.6rem 0 0.8rem; text-shadow: 0 0.1rem 1.4rem rgba(0,0,0,.5); }
.hero .drag { font-size: 1.3rem; color: #dbe2ec; text-shadow: 0 0.1rem 0.8rem rgba(0,0,0,.5); }
.hero .foot { margin-top: auto; }
.hero .as { text-align: center; font-size: 1.35rem; font-weight: 600; color: var(--ivory); margin-bottom: 1.1rem; }

/* ── ② 4배 ────────────────────────────────────────────── */
.bignum { font-family: var(--ff-h); font-weight: 400; font-size: 7.2rem; line-height: 1;  /* ★ 큰 숫자 크기 */
  color: var(--red); margin: 0.4rem 0 0.2rem; }
.bignum small { font-size: 3rem; }
.bigsub { font-size: 1.9rem; font-weight: 700; margin: 0.4rem 0 1.2rem; }

/* 접이식 — 「통계 근거 자세히 보기」 한 군데에만 씁니다.
   2026-08-25 에 빨간 밑줄 글자로 바꿨다가, 2026-08-26 사용자 요청으로 **원래의 테두리 흰 상자**로 되돌렸습니다. */
details.fold { border: 0.1rem solid var(--line); border-radius: 0.8rem; background: var(--white);
  margin-top: 1.6rem; }
details.fold summary { list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.4rem 1.6rem; font-size: 1.45rem; font-weight: 700; color: var(--ink); }
details.fold summary::-webkit-details-marker { display: none; }
details.fold summary::after { content: '→'; flex: none; font-size: 1.6rem; font-weight: 400;
  color: var(--sub); transition: transform .18s; }
details.fold[open] summary::after { transform: rotate(90deg); }
details.fold .inner { padding: 0 1.6rem 1.6rem; font-size: 1.3rem; color: var(--sub); line-height: 1.7; }

/* ② 4배 근거 막대 그래프 — PC 홈페이지의 그림을 코드로 다시 그린 것.
   ★ 13rem = 그래프 높이 · 25% = 왼쪽 막대(첫 시공) 높이. 오른쪽이 100% 라 4배로 보입니다. */
.chart { margin: 0 0 1.4rem; }
.chart .plot { display: flex; align-items: flex-end; justify-content: center; gap: 3.2rem;
  height: 13rem; border-bottom: 0.1rem solid var(--line); }
.chart .bar { position: relative; width: 6.6rem; border-radius: 0.4rem 0.4rem 0 0; }
.chart .bar.one  { height: 25%;  background: #c9ccd2; }
.chart .bar.four { height: 100%; background: linear-gradient(180deg, #c0272c, #7d1417); }
.chart .bar span { position: absolute; left: 0; right: 0; top: 0.8rem; text-align: center;
  font-size: 1.25rem; font-weight: 700; color: #fff; }
.chart .x { display: flex; justify-content: center; gap: 3.2rem; margin-top: 0.7rem; }
.chart .x span { width: 6.6rem; text-align: center; font-size: 1.2rem; font-weight: 600; color: var(--ink); }

/* ── 옆으로 미는 줄 ───────────────────────────────────── */
/* ⚠️ 위아래 안쪽 여백(1rem / 2.4rem)은 카드 그림자가 잘리지 않게 두는 것입니다.
      옆으로 미는 줄은 넘치는 부분을 잘라내기 때문에, 여백이 없으면 그림자가 싹둑 잘립니다.
      margin 의 0.8rem 은 그 여백만큼 되돌려서 위 글과의 간격이 안 벌어지게 하는 값입니다. */
.swipe { display: flex; gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 0.8rem calc(var(--pad) * -1) 0; padding: 1rem var(--pad) 2.4rem;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.swipe::-webkit-scrollbar { display: none; }
.swipe > * { scroll-snap-align: center; flex: 0 0 86%; }
.swhint { font-size: 1.25rem; color: var(--sub); text-align: center; margin-top: 0.2rem; }

/* ⑤ 고객 후기 카드 — 사진 + 별점 + 제목 + 본문 + 이름.
   글과 사진 모두 새 사이트(bsmg-new)에 있던 진짜 후기를 그대로 옮겨온 것입니다. */
/* ★ 흰 카드 + 무채색 회색 테두리 + 그림자 (시공사례 카드와 같은 값).
      테두리 더 진하게: #b8b8b8 · 그림자 더 진하게: 끝의 .10 을 .16 으로 */
.rv { border: 0.1rem solid #d0d0d0; border-radius: 0.8rem; background: var(--white);
  box-shadow: 0 0.6rem 1.8rem rgba(30,30,30,.10);
  overflow: hidden; display: flex; flex-direction: column; }
.rv .rv-pic { width: 100%; aspect-ratio: 462 / 304; object-fit: cover; display: block; }
.rv .rv-in { flex: 1; display: flex; flex-direction: column; padding: 1.4rem 1.5rem 1.5rem; }
.rv .star { color: var(--red); font-size: 1.3rem; letter-spacing: 0.18em; }
.rv .rv-t { font-size: 1.6rem; font-weight: 700; line-height: 1.45; margin-top: 0.8rem; color: var(--ink); }
/* ⚠️ 본문은 5줄까지만 보이고 나머지는 「…」 로 접힙니다.
      후기 길이가 제각각이라(짧은 건 두 줄, 긴 건 열 줄) 안 접으면 카드 높이가 들쭉날쭉합니다.
      ★ 5 = 보여줄 줄 수. */
.rv .rv-b { font-size: 1.35rem; color: var(--sub); line-height: 1.75; margin-top: 0.7rem;
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.rv .rv-n { font-size: 1.25rem; color: var(--sub); margin-top: auto; padding-top: 1.3rem; }

/* ⚠️ 후기 칸만 카드 높이를 서로 안 맞춥니다(flex-start).
      안 그러면 한 장을 펼쳤을 때 옆 카드들까지 같이 늘어나서 아래가 텅 빕니다.
      (그림자 잘림 막는 여백은 위 .swipe 에 공통으로 들어가 있습니다) */
.swipe-rv { align-items: flex-start; }
/* 「더보기」를 누르면 접힌 게 풀립니다. 버튼은 실제로 잘린 카드에만 자바스크립트가 붙입니다. */
.rv.rv-open .rv-b { -webkit-line-clamp: unset; overflow: visible; }
.rv .rv-more { align-self: flex-start; margin-top: 0.7rem; padding: 0;
  background: none; border: 0; cursor: pointer; font-family: inherit;
  font-size: 1.25rem; font-weight: 700; color: var(--red);
  text-decoration: underline; text-underline-offset: 0.3rem; }
.sec-dark .swhint { color: #9aa0a9; }

/* 전·후 비교 카드 (작은 것) */
.cmp { position: relative; border-radius: 0.8rem; overflow: hidden; height: 25rem; user-select: none; background: #1a1c20; }
.cmp .shot { position: absolute; inset: 0; }
.cmp .shot img, .cmp .shot .ph { width: 100%; height: 100%; object-fit: cover; }
.cmp .after { clip-path: inset(0 0 0 var(--x, 50%)); }
.cmp .bar { position: absolute; top: 0; bottom: 0; left: var(--x, 50%); width: 0.2rem;
  background: #fff; pointer-events: none; z-index: 2; }
.cmp .bar::after { content: '◀ ▶'; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  background: #fff; color: var(--ink); font-size: 1rem; font-weight: 700; padding: 0.7rem 0.8rem;
  border-radius: 99rem; white-space: nowrap; box-shadow: 0 0.2rem 0.8rem rgba(0,0,0,.35); }
.cmp input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; z-index: 1; }
.cmp .cap { position: absolute; top: 1rem; left: 1.2rem; z-index: 2; font-size: 1.2rem; font-weight: 600;
  color: #fff; text-shadow: 0 0.1rem 0.6rem rgba(0,0,0,.7); }
.cmp .tag { position: absolute; bottom: 1.2rem; z-index: 2; font-size: 1.15rem; font-weight: 700;
  letter-spacing: 0.05em; padding: 0.4rem 0.8rem; border-radius: 0.4rem; }
.cmp .tag.b { left: 1.2rem; background: rgba(0,0,0,.5); color: #e8ddd0; }
.cmp .tag.a { right: 1.2rem; background: rgba(255,255,255,.18); color: #eaf0f8; }

/* 시공사례 카드 */
/* ★ 테두리 색 — 기본 선 색(--line #e3e1db)보다 한 단계 진한 값입니다. */
/* ★ 흰 카드 + 무채색 회색 테두리 + 그림자.
      테두리 더 진하게: #b8b8b8 · 더 연하게: #dcdcdc
      그림자 더 진하게: 끝의 .10 을 .16 으로 */
.case { border: 0.1rem solid #d0d0d0; border-radius: 0.8rem; overflow: hidden;
  background: var(--white); }
.case .pic { aspect-ratio: 900 / 568; overflow: hidden; }
/* ⚠️ 살짝 확대(2%) — 원본 사진 가장자리에 검은 선이 2~3px 구워져 있어서 그걸 잘라내려는 것입니다.
   ★ 1.02 = 확대 배율. 검은 선이 여전히 보이면 1.03·1.04 로 올리세요. */
.case .pic img, .case .pic .ph { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); }
.case .body { padding: 1.3rem 1.4rem 1.5rem; }
/* ⚠️ 카드 안 글자는 색을 하나하나 못 박아 둡니다 — 칸 바탕이 바뀌면 글자색이 딸려 바뀌어서
      안 보이게 되는 일이 실제로 있었습니다(2026-08-25 현장명이 사라졌던 건). */
.case .nm  { font-size: 1.55rem; font-weight: 700; line-height: 1.4; color: var(--ink); }
.case .spc { font-size: 1.3rem; color: var(--sub); margin-top: 0.3rem; }
.case .zero { display: block; margin-top: 1.1rem; background: var(--red-l); color: var(--red);
  border-radius: 0.6rem; padding: 0.8rem; text-align: center; font-size: 1.35rem; font-weight: 700; }

/* ── ⑤ 고집 아코디언 ──────────────────────────────────── */
details.acc { border: 0.1rem solid var(--line); border-radius: 0.8rem; background: var(--white); margin-top: 1rem; }
details.acc summary { list-style: none; cursor: pointer; padding: 1.6rem; display: flex; gap: 1.2rem; align-items: baseline; }
details.acc summary::-webkit-details-marker { display: none; }
details.acc .no { font-family: var(--ff-h); font-weight: 400; font-size: 1.5rem; color: var(--red); flex-shrink: 0; }
details.acc .tt { flex: 1; font-size: 1.55rem; font-weight: 700; line-height: 1.45; }
details.acc .pm { flex-shrink: 0; color: var(--sub); font-size: 1.8rem; line-height: 1; transition: transform .18s; }
details.acc[open] .pm { transform: rotate(45deg); }
details.acc .inner { padding: 0 1.6rem 1.6rem; font-size: 1.45rem; color: #3c424c; line-height: 1.75; }

.concl { border: 0.2rem solid var(--ink); border-radius: 0.8rem; padding: 1.8rem 1.6rem; margin-top: 1.6rem; background: var(--white); }
.concl .tt { font-family: var(--ff-h); font-weight: 400; font-size: 2rem; line-height: 1.4; margin-bottom: 0.9rem; }
.concl p { font-size: 1.4rem; color: #3c424c; line-height: 1.75; }
/* 상자형 링크 — 예전 「통계 근거 자세히 보기」 상자와 똑같은 모양입니다(테두리·여백·글자 다 그 값).
   다른 점은 오른쪽 기호가 ＋ 가 아니라 → 라는 것뿐입니다. */
/* ★ 브랜드 빨강 꽉 채움. 흰 바탕에 빨간 테두리로 되돌리려면
      background → var(--white) · color → var(--red) · ::after color → var(--red) */
.boxlink { display: flex; justify-content: space-between; align-items: center;
  margin-top: 1.8rem; padding: 1.4rem 1.6rem;
  border: 0.1rem solid var(--red); border-radius: 0.8rem; background: var(--red);
  font-weight: 600; font-size: 1.45rem; color: #fff; }
.boxlink:active { background: var(--red-d); border-color: var(--red-d); }
.boxlink::after { content: '→'; font-size: 1.6rem; font-weight: 400; color: rgba(255,255,255,.8); }

/* ── ⑥ 브랜드 로고 띠 ─────────────────────────────────── */
/* ★ 3.4rem = 위 소제목과의 간격 · 1rem = 상자 사이 간격(전부 같음) */
.logos { display: flex; gap: 1rem; overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  margin: 3.4rem calc(var(--pad) * -1) 0; padding: 0 var(--pad); }
.logos::-webkit-scrollbar { display: none; }
/* ★ 9.6rem = 상자 높이(가로는 그림 비율대로 따라옵니다). 그림 안에 이미 어두운 상자가 들어 있어서 따로 바탕을 안 깝니다.
   ⚠️ width:auto 여야 그림 비율대로 나옵니다. 고정 폭을 주면 좌우가 남아 간격이 들쭉날쭉해집니다. */
/* ★ 14.2rem x 8.2rem = 상자 크기. 가로만 늘리려면 앞 숫자만 키우면 됩니다.
   ⚠️ 상자는 여기서 그립니다. 그림에는 로고만 들어 있습니다(원래는 테두리가 같이 그려져 있어
      상자를 넓히면 두 겹으로 보였습니다). */
.logos .lg { flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
  width: 14.2rem; height: 8.2rem;
  border-radius: 0.6rem; border: 0.1rem solid rgba(255,255,255,.10); }
/* ★ 로고가 상자 안에서 차지할 최대 크기 — 어느 로고도 혼자 튀지 않게 묶어 둡니다 */
.logos .lg img { width: auto; height: auto; max-width: 58%; max-height: 40%; }

/* ── ⑦ 절차 ───────────────────────────────────────────── */
.tl { margin-top: 2rem; }
.tl li { position: relative; padding: 0 0 2.4rem 4rem; }
.tl li::before { content: attr(data-n); position: absolute; left: 0; top: 0;
  width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--red); color: #fff;
  font-size: 1.3rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.tl li:not(:last-child)::after { content: ''; position: absolute; left: 1.25rem; top: 3rem; bottom: 0.2rem;
  width: 0.15rem; background: var(--line); }
/* ⚠️ 제목 줄을 숫자 동그라미(2.6rem)와 같은 높이로 잡고 가운데 정렬합니다.
      그래야 제목·배지·숫자 셋의 눈높이가 딱 맞습니다. */
.tl b { display: flex; align-items: center; gap: 0.6rem; min-height: 2.6rem;
  font-size: 1.55rem; font-weight: 700; }
/* 이 칸에서 손님이 제일 궁금해하는 두 가지(공짜인가 / 보증되나)에만 배지를 답니다 */
.tl .tag { flex: none; font-style: normal; line-height: 1.4;
  background: none; border: 0.1rem solid var(--red); color: var(--red);
  font-size: 1.15rem; font-weight: 700;
  padding: 0.2rem 0.7rem; border-radius: 99rem; letter-spacing: 0; }
.tl span { display: block; color: var(--sub); font-size: 1.35rem; line-height: 1.6; margin-top: 0.2rem; }

/* ── ⑧ 자주 묻는 질문 ─────────────────────────────────── */
details.faq { border-bottom: 0.1rem solid var(--line); }
details.faq summary { list-style: none; cursor: pointer; padding: 1.6rem 0.4rem; font-size: 1.5rem; font-weight: 600;
  display: flex; gap: 1rem; justify-content: space-between; align-items: baseline; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: '+'; color: var(--sub); font-size: 1.8rem; }
details.faq[open] summary::after { content: '–'; }
details.faq .inner { padding: 0 0.4rem 1.6rem; font-size: 1.45rem; color: #3c424c; line-height: 1.75; }

/* ── ⑨ 마무리 ─────────────────────────────────────────── */
.closing { text-align: center; padding: 5.6rem 2.4rem; }
.closing .h-sec { font-size: 2.6rem; }

/* ③ 「그래서, 방수는 한 번에 끝나야 합니다」 — 이 페이지에서 제일 하고 싶은 말이라 여기만 크게 씁니다.
   ⚠️ key 가 붙은 칸만 해당됩니다. ⑩ 마무리 칸은 2.6rem 그대로입니다.
   ★ 1.38 = 줄 사이 간격. 다른 칸 제목과 같은 값입니다.
   ★ 위 여백 1rem — 「한 번」 위 강조점과 윗줄('그래서,') 사이 간격입니다. 키우면 더 떨어집니다. */
.closing.key .h-sec { font-size: 3.6rem; line-height: 1.38; padding-top: 1.6rem; }
/* ★ 「그래서,」 — 크기와 제목과의 간격.
   ⚠️ 줄높이 1.2 는 글자 위아래에 붙는 빈 공간을 줄이려는 것입니다. 이게 없으면
      margin 을 0 으로 해도 제목과 멀어 보입니다(본문 줄높이 1.65가 그대로 붙어서). */
.closing.key .eyebrow { font-size: 1.7rem; line-height: 1.2; margin-bottom: 0; }
/* ★ 소제목 — <br> 없이 늘 두 줄이 되게 크기로 맞춘 값입니다.
   ⚠️ 글자를 키우면 좁은 폰(360px)에서 세 줄이 됩니다. balance 는 두 줄 길이를 반반으로 맞춰 줍니다. */
.closing.key .lead { font-size: 1.35rem; text-wrap: balance; }

/* 강조점(드러냄표) — 글자 위에 점을 찍습니다.
   ⚠️ 브라우저 기능(text-emphasis)은 점 높이를 조절할 수 없어서 직접 그립니다.
      그래서 점 찍을 글자를 <i> 로 하나씩 감싸야 합니다.
   ★ top  = 점 높이. 숫자가 클수록 글자 쪽으로 내려옵니다.
   ★ 0.11em = 점 크기. */
.h-sec .dot { font-style: normal; color: var(--ivory); }   /* 글자와 점 둘 다 아이보리 */
.h-sec .dot i { font-style: normal; position: relative; }
.h-sec .dot i::before { content: ''; position: absolute; left: 50%; transform: translateX(-50%);
  top: -0.18em; width: 0.11em; height: 0.11em; border-radius: 50%; background: currentColor; }

/* ── ⑩ 신청 폼 ────────────────────────────────────────── */
.formhead { font-family: var(--ff-h); font-weight: 400; font-size: 2.2rem; }
.formsub  { font-size: 1.35rem; color: var(--sub); margin-top: 0.4rem; }
.w-form { margin-top: 1.4rem; }
.w-form label { display: block; font-size: 1.35rem; font-weight: 700; margin: 1.4rem 0 0.6rem; }
.w-form label .opt { color: var(--sub); font-weight: 500; }
.w-form input[type=text], .w-form input[type=tel] {
  width: 100%; border: 0.15rem solid var(--line); border-radius: 0.7rem;
  padding: 1.4rem; font-size: 1.6rem; min-height: 5.2rem; background: var(--white); }
.w-form input:focus { outline: none; border-color: var(--ink); }
.w-form .agree { display: flex; flex-wrap: wrap; gap: 0.5rem 0.8rem; align-items: center;
  font-size: 1.3rem; color: var(--sub); margin: 1.6rem 0; }
.w-form .agree input { width: 1.8rem; height: 1.8rem; margin: 0; flex-shrink: 0; }
/* 동의 문구는 위 .w-form label 규칙(줄바꿈·굵게)을 되돌려 한 줄로 둡니다 */
.w-form .agree label { display: inline; margin: 0; font-size: inherit; font-weight: 400; }
.w-form .agree a { text-decoration: underline; }
.w-form input[type=submit] { -webkit-appearance: none; appearance: none; border: 0; }
/* ⚠️ 완료·실패 칸은 평소엔 숨어 있어야 합니다. bsmg-form.js 가 필요할 때 켭니다. */
.w-form-done, .w-form-fail { display: none; text-align: center; border-radius: 0.8rem; padding: 2.8rem 1.6rem; }
/* 마지막 줄 밑에 줄간격이 조금 남아서 아래쪽이 2px 넓어 보입니다 — 그만큼만 깎습니다 */
.w-form-done { background: var(--cream); padding-bottom: 2.6rem; }
.w-form-done .big { font-size: 3.6rem; color: var(--red); line-height: 1; }
/* ⚠️ 위아래 여백은 상자 padding 만으로 잡습니다 — 제목에 margin-top 을 주면
      위(28+10)·아래(28)가 어긋나서 가운데가 아닌 것처럼 보입니다(2026-08-26 사용자). */
/* ⚠️ 반드시 '>' (바로 아래 자식)로. 그냥 b 로 쓰면 아래 문장 속 전화번호까지 17px 로 커져서
      그 줄만 홀로 벌어집니다(2026-08-26에 실제로 그랬습니다). */
.w-form-done > b { display: block; font-size: 1.7rem; margin: 0 0 0.6rem; line-height: 1.35; }
.w-form-done p { font-size: 1.4rem; color: var(--sub); }
/* ⚠️ 줄 간격은 안쪽 글자(빨간 전화번호)에도 같이 걸어야 합니다 —
      안 걸면 굵은 숫자가 든 줄만 4px 더 벌어집니다. 색은 건드리지 마세요(빨강이 죽습니다). */
.w-form-done p, .w-form-done p * { line-height: 1.5; }
.w-form-fail { background: var(--red-l); color: var(--red); font-size: 1.4rem; font-weight: 600; }

/* ── 바닥글 ─────────────────────────────────────────────
   차림새는 PC 홈페이지 바닥글과 같은 차례입니다: 로고 → 회사이름 → 주소 → 항목들 → 메뉴 → copyright → 검색어 */
footer { background: var(--ink); color: #9aa0a9; font-size: 1.25rem; line-height: 1.9;
  padding: 3.4rem var(--pad) 4rem; }
/* 로고 — ★ 13rem = 로고 가로 크기 */
footer .ft-logo { display: inline-block; }
footer .ft-logo img { display: block; width: 13rem; height: auto; }
/* 회사 이름 — 사용자 요청으로 크고 굵게 (2026-08-26) */
footer .ft-co { margin-top: 1.8rem; font-size: 1.9rem; font-weight: 700; color: #fff; line-height: 1.4; }
footer .ft-addr { margin-top: 0.5rem; font-size: 1.3rem; color: #9aa0a9; line-height: 1.6; }
/* 항목들 — 이름은 흐리게, 값은 밝게. 이름 칸 폭을 맞춰 세로줄이 가지런합니다.
   ★ 8.2rem = 왼쪽 이름 칸 폭 */
footer .ft-info { margin: 1.8rem 0 0; display: grid; gap: 0.5rem; }
footer .ft-info > div { display: flex; gap: 1rem; font-size: 1.3rem; line-height: 1.6; }
footer .ft-info dt { flex: none; width: 8.2rem; color: #6f757e; }
footer .ft-info dd { margin: 0; color: #c3c8d0; }
footer .ft-info a { color: inherit; }

/* 메뉴 — 한 줄에 하나씩, 크게.
   실제로 여기를 눌러 들어가는 손님이 꽤 있어서 눈에 띄게 키웠습니다(2026-08-26 사용자).
   ★ 1.65rem = 글자 크기 · 1.5rem = 줄 사이 간격 */
footer .ft-nav { margin-top: 2.2rem; padding-top: 2rem; border-top: 0.1rem solid rgba(255,255,255,.10);
  display: grid; gap: 1.5rem; justify-items: start; }
footer .ft-nav a { font-size: 1.65rem; font-weight: 600; color: #eef1f5; line-height: 1.4; }
/* 개인정보처리방침만 작고 흐리게 — 보러 갈 페이지가 아니라 '있어야 하는 안내'라서
   다른 메뉴만큼 눈에 띌 필요가 없습니다 (2026-08-26 사용자 요청) */
footer .ft-nav a[data-pp] { margin-top: 0.4rem; font-size: 1.25rem; font-weight: 400; color: #6b7078; }
footer .ft-cr { margin-top: 1.6rem; font-size: 1.15rem; color: #6b7078; letter-spacing: 0.01em; }
/* 맨 아래 검색어 줄 — 검색(네이버·구글)에 걸리라고 적어 둔 낱말들입니다(광고비 나가는 건 아닙니다).
   손님 눈에는 안 띄게 아주 흐리게 둡니다.
   ⚠️ 바탕색(#16171a)과 똑같이 만들면 안 됩니다 — 검색엔진이 '숨긴 글씨'로 보고
      오히려 순위를 깎습니다. 지금 색은 '읽을 수는 있지만 아주 흐린' 선입니다. */
footer .kw { margin-top: 1.6rem; font-size: 1.1rem; color: #3b3f45; line-height: 1.8; }

/* ── 하단 고정바 ──────────────────────────────────────── */
.fixbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 43rem; z-index: 40; display: flex; gap: 1rem;
  padding: 1rem 1.4rem calc(1rem + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.97); backdrop-filter: blur(0.8rem); border-top: 0.1rem solid var(--line); }
.fixbar .btn { padding: 1.4rem; border-radius: 0.7rem; font-size: 1.55rem; min-width: 0; }
/* 전화 상담 — 앞에 전화 아이콘. ★ 1.6rem = 아이콘 크기 · 0.6rem = 글자와의 사이 */
.fixbar .btn-ghost { flex: 2;
  display: flex; align-items: center; justify-content: center; gap: 0.6rem; }
.fixbar .ico-tel { flex: none; display: block; width: 1.9rem; height: 1.9rem; fill: currentColor; }   /* ★ 아이콘 크기 */
.fixbar .btn-red   { flex: 3; }
.tail { height: var(--bar); }

/* ── 아래에서 올라오는 신청창 ─────────────────────────── */
.dim { position: fixed; inset: 0; background: rgba(10,12,16,.55); z-index: 50;
  opacity: 0; pointer-events: none; transition: opacity .22s; }
.sheet { position: fixed; bottom: 0; left: 50%; transform: translate(-50%, 105%);
  width: 100%; max-width: 43rem; z-index: 60; background: var(--white);
  border-radius: 1.8rem 1.8rem 0 0; padding: 1.4rem var(--pad) calc(2rem + env(safe-area-inset-bottom));
  max-height: 88vh; overflow-y: auto; transition: transform .28s cubic-bezier(.32,.72,.32,1); }
/* ⚠️ 창이 둘(신청 / 처리방침)이라 각각 따로 열어야 합니다. .sheet 로 뭉뚱그리면 둘 다 올라옵니다. */
body.sheet-open, body.pp-open { overflow: hidden; }
body.sheet-open .dim, body.pp-open .dim { opacity: 1; pointer-events: auto; }
body.sheet-open .sheet.pop-c { transform: translate(-50%, 0); }
body.pp-open    .sheet-pp    { transform: translate(-50%, 0); }
.sheet .grip { width: 4.4rem; height: 0.4rem; border-radius: 0.2rem; background: #d4d8de; margin: 0 auto 1rem; }
.sheet .x { position: absolute; top: 1.2rem; right: 1.4rem; font-size: 2.2rem; color: var(--sub); line-height: 1; }

/* 개인정보처리방침 본문 */
.pp { margin-top: 1.2rem; font-size: 1.35rem; line-height: 1.75; color: #3c424c; }
.pp h3 { font-size: 1.45rem; font-weight: 700; color: var(--ink); margin: 1.8rem 0 0.5rem; }
.pp p { margin-bottom: 0.9rem; }

/* 아주 좁은 폰(320)에서 글씨가 넘치지 않게 살짝 줄입니다 */
@media (max-width: 359px) {
  :root { --pad: 1.6rem; }
  .hero h1 { font-size: 3.1rem; }
  .h-sec { font-size: 2.5rem; }
  .bignum { font-size: 6.2rem; }
}

/* 2026-09-29 되살림: 바닥글 블로그·유튜브 단추 (전에 뺐던 것) */
/* 우리 채널(네이버 블로그·유튜브) — 알약 모양 단추를 위아래로 쌓습니다.
   ⚠️ grid + justify-content:start 로 둔 이유: 칸 하나의 폭이 '가장 긴 단추'에 맞춰지고
      두 단추가 그 폭으로 함께 늘어나서, 쌓였을 때 오른쪽 끝이 가지런합니다.
      (flex-wrap 으로 두면 글자 길이대로 들쭉날쭉해집니다)
      minmax(0, max-content) 는 글자가 길어져도 화면 밖으로 안 넘치게 하는 안전장치입니다.
   ★ 2.8rem = 흰 동그라미 크기 · 0.5rem = 그 안쪽 여백(그림이 동그라미에 꽉 차지 않게) */
footer .ft-sns { margin-top: 2rem; display: grid; gap: 0.8rem;
  grid-template-columns: minmax(0, max-content); justify-content: start; }

footer .ft-sns .sns { display: flex; align-items: center; gap: 0.8rem;
  padding: 0.7rem 1.4rem 0.7rem 0.7rem;
  border: 0.1rem solid rgba(255,255,255,.20); border-radius: 99rem;
  font-size: 1.35rem; font-weight: 600; color: #e4e7ec; line-height: 1.4; }

footer .ft-sns .sns:active { background: rgba(255,255,255,.07); }

footer .ft-sns .ico { flex: none; display: block; width: 2.8rem; height: 2.8rem;
  padding: 0.5rem; border-radius: 50%; background: #fff; }

footer .ft-sns .ico svg { display: block; width: 100%; height: 100%; }
/* 화살표는 오른쪽 끝으로 — 두 단추 폭이 같아서 화살표도 세로로 맞습니다 */
footer .ft-sns .go { margin-left: auto; padding-left: 0.8rem; color: #6f757e; font-weight: 400; }

/* ── 리뉴얼 머리·메뉴와 같게 (2026-10-08 사용자 「모바일 첫 화면은 햄버거 메뉴가 아직 예전 거」) ──────────
   리뉴얼 다른 장(parts/header.html 폰 메뉴)을 폰(390)에서 잰 값 그대로 — 위쪽 옛 규칙(.hd·.nav)을 여기서 덮어씁니다:
   머리 높이 62 · 흰 바탕 + 그림자 0 2px 20px 18% · 로고 폭 101 · 전화 = 청도읍성체 17px 700(테두리 0.018em) + 수화기 0.86em, 사이 7 ·
   전화~메뉴 단추 30 · 메뉴 단추 40×40 안에 28×2 줄 셋(사이 5) · 펼친 메뉴 = 왼쪽 정렬 줄(위아래 15 · 좌우 20 · 16px 600 · 아랫줄 선),
   시공분야 꺾쇠는 오른쪽 끝 15px 회색 · 다섯 분야는 #f7f6f3 바탕 · 15px 500 #44474d · 왼쪽 34.
   ⚠️ 리뉴얼 전용 — 원본(~/bsmg-site) m.css 는 그대로. 내리면 숨고 올리면 나오는 동작(body.hd-off)은 이 페이지 것 그대로입니다. */
.hd { height: 6.2rem; padding: 0 var(--pad); gap: 0; background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none;
  border-bottom: 0; box-shadow: 0 0.2rem 2rem rgba(0,0,0,.18); }
.hd .logo img { width: 10.1rem; }
.hd .tel { display: inline-flex; align-items: center; gap: 0.7rem; margin-right: 3rem;
  font-family: var(--ff-h); font-weight: 700; font-size: 1.7rem; line-height: 1.65; letter-spacing: 0.012em;
  -webkit-text-stroke: 0.018em currentColor; }
.hd .tel .ico-tel { flex: none; width: .86em; height: .86em; background: currentColor;
  -webkit-mask: url("/assets/img/ico-tel.png") center/contain no-repeat; mask: url("/assets/img/ico-tel.png") center/contain no-repeat; }
.hd .menu { display: flex; flex-direction: column; justify-content: center; gap: 0.5rem; width: 4rem; height: 4rem; padding: 0.1rem 0.6rem; }
.hd .menu i { width: 100%; height: 0.2rem; border-radius: 0.2rem; }
.nav { padding: 0; text-align: left; border-top: 0.1rem solid var(--line); box-shadow: 0 0.2rem 2rem rgba(0,0,0,.18);
  clip-path: inset(0 -3rem -3rem -3rem); }   /* 그림자가 위로 번져 머리 아랫부분을 회색으로 덮지 않게 위쪽만 자름(리뉴얼은 머리와 메뉴가 한 상자라 위로 안 번짐) */
body.nav-open .nav { display: block; }
.nav a, .nav .nav-t { display: block; padding: 1.5rem var(--pad); font-family: var(--ff); font-size: 1.6rem; font-weight: 600;
  line-height: 1.65; letter-spacing: -0.016rem; color: var(--ink); border-bottom: 0.1rem solid var(--line); }   /* -0.16px = 리뉴얼 본문 자간(16px × -0.01em)을 다섯 분야 줄도 그대로 물려받는 것과 같게 */
.nav .nav-grp { display: block; }
.nav .nav-t { display: flex; align-items: center; justify-content: space-between; width: 100%; margin: 0; text-align: left; letter-spacing: normal; }
.nav .nav-t svg { width: 1.5rem; height: 1.5rem; color: var(--sub); }
.nav .nav-sub { background: #f7f6f3; }
.nav .nav-grp.on .nav-sub { display: block; }
.nav .nav-sub a { padding: 1.3rem var(--pad) 1.3rem calc(var(--pad) + 1.4rem); font-size: 1.5rem; font-weight: 500; line-height: 1.65; color: #44474d; }

/* ── 움직임 (2026-10-15 사용자 「모바일 버전에 모션이 너무 안 들어가 있다, 메인 페이지에 모션 넣어줘」) ──────────────
   html.up-js = m.html 머리 스크립트가 붙입니다. '움직임 줄이기'를 켠 폰·옛 브라우저엔 안 붙어서 아래 줄이 전부 안 걸리고 지금처럼 그대로 보입니다.
   칸이 화면에 들어오면 떠오르는 것 — 어느 칸에 거는지는 m.html 맨 아래 「움직임」 스크립트의 목록(LIST·ROWS).
   ★ 2rem(20px) = 떠오르는 거리 · .5s = 나타나는 속도 — PC 홈(css/style.css 「홈: 순서대로 나타나기」)과 같음.
   10/20 사용자 「이것도 살짝 과한거같애」 → 2.4rem·.6s 에서 줄이고, 계속 되풀이되던 것(손잡이 물결·빨간 단추 빛)·배지 금빛·카드 줄 흔들기·4배 톡을 뺌.
   이어서 「후기에 별 따라라락 생기는 거 그런 것도 빼줘」 → 별 채우기·4배 숫자 세기·강조점 톡·절차 동그라미 톡과 선 그어짐도 뺌(그 칸들은 떠오르기만).
   이어서 광고 영향 물어보심 → 첫 화면 「무료 견적」 단추 묶음(.foot)·하단바는 처음부터 제자리에 보이게(움직임 뺌) — 광고로 들어와 바로 누르는 손님이 기다리지 않게. */
/* 표시를 다 붙이기 전(첫 그림)에도 숨겨 둠 → 먼저 보였다가 사라지며 깜빡이지 않게. 표시가 끝나면(up-ready) 이 줄은 꺼짐 */
html.up-js:not(.up-ready) :is(.s-4x, .s-key, .s-case, .s-rv, .s-craft, .s-logo, .s-step, .s-faq, .s-end, #formsec) > *,
html.up-js:not(.up-ready) :is(.s-step .tl > li, .s-faq .faq, .swipe > *) { opacity: 0; }
html.up-js [data-up] { transition: opacity .5s ease, transform .5s cubic-bezier(.25,.46,.45,.94); transition-delay: var(--up-d, 0s); }
html.up-js [data-up]:not(.up-in) { opacity: 0; transform: translate3d(0, 2rem, 0); }
html.up-js [data-up="r"]:not(.up-in) { transform: translate3d(2.4rem, 0, 0); }      /* 옆으로 미는 카드 — 오른쪽에서 밀려 들어옴 */

/* ① 첫 화면 — 열자마자: 사진이 살짝 당겨졌다 제자리로, 글은 알약 → 제목 → 안내 → 단추 차례로 떠오르고, 흰 세로줄은 그 뒤에 나타남.
   ★ .1s 씩 = 줄 사이 늦춤 · 1.05 = 사진 처음 확대 배율 · 맨 아래 A/S 줄과 「무료 견적」 단추(.foot)는 안 움직이고 처음부터 보임 */
html.up-js .hero .shot img { animation: upHeroImg 1.6s cubic-bezier(.2,.7,.2,1) both; }
html.up-js .hero .ui > :not(.foot) { animation: upRise .7s cubic-bezier(.2,.7,.2,1) both; }
html.up-js .hero .ui > :nth-child(1) { animation-delay: .1s; }
html.up-js .hero .ui > :nth-child(2) { animation-delay: .2s; }
html.up-js .hero .ui > :nth-child(3) { animation-delay: .3s; }
html.up-js .hero .bar { animation: upFade .5s ease .5s both; }

/* 「통계 근거 자세히 보기」를 펼치면 막대가 아래에서 자라 올라옴 (오른쪽 4배 막대가 조금 늦게) */
html.up-js details.fold[open] .chart .bar { transform-origin: 50% 100%; animation: upGrow .9s cubic-bezier(.2,.7,.2,1) both; }
html.up-js details.fold[open] .chart .bar.four { animation-delay: .15s; }
/* 접힌 칸(통계 근거·고집 세 가지·자주 묻는 질문)을 펼치면 안쪽 글이 살짝 내려오며 나타남 */
html.up-js details[open] > .inner { animation: upOpen .35s ease both; }
/* ④ 시공사례 카드 — 들어오면서 사진이 살짝 당겨졌다 제자리(1.02 = 원래 확대 배율, 위 .case .pic img 와 같아야 함) */
html.up-js .case.up-seen .pic img { animation: upImg 1.4s cubic-bezier(.2,.7,.2,1) both; }

@keyframes upHeroImg { from { transform: scale(1.05); } to { transform: none; } }
@keyframes upRise  { from { opacity: 0; transform: translate3d(0, 1.4rem, 0); } to { opacity: 1; transform: none; } }
@keyframes upFade  { from { opacity: 0; } to { opacity: 1; } }
@keyframes upGrow  { from { transform: scaleY(0); } to { transform: none; } }
@keyframes upOpen  { from { opacity: 0; transform: translate3d(0, -0.6rem, 0); } to { opacity: 1; transform: none; } }
@keyframes upImg   { from { transform: scale(1.08); } to { transform: scale(1.02); } }

/* ── 시공사례 창 (2026-10-20 사용자 「모바일에서는 시공사례 클릭하면 그 팝업 뜨게」) ──────────────
   시공사례 페이지의 창(css/style.css 「.sc-modal」 묶음의 폰 값 — 950px 이하)을 그대로 옮김. 짜임은 m.html 「시공사례 창」.
   ⚠️ 여기는 폰 메인뿐이라 상단바 밑으로 비켜 줄 위 여백(시공사례 페이지 8rem) 없이 창이 화면 가운데에 뜹니다(상단바·하단바 위를 덮음). */
/* 카드 전체를 덮는 투명 단추 — 누르면 창이 뜸(옆으로 밀 때는 안 뜸) */
.case { position: relative; }
.case > .case-open { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; -webkit-tap-highlight-color: transparent; }
.case > .case-open:focus-visible { outline: 0.3rem solid var(--red); outline-offset: -0.3rem; }
/* 창이 열린 동안 뒤 화면 스크롤 잠금.
   ⚠️ 이름을 카드 단추(.case-open)와 다르게 둡니다 — 처음엔 둘 다 case-open 이라 단추 규칙(position:absolute·높이 100%)이 body 에도 걸려
      창이 열린 동안 body 높이가 화면 높이로 줄었습니다(2026-10-20 시험에서 발견, 아이폰에선 맨 위로 튈 수 있음). */
body.case-pop { overflow: hidden; }

.modal { position: fixed; inset: 0; z-index: 45; display: flex; align-items: center; justify-content: center; padding: 1.6rem; }   /* 하단바(40) 위 · 견적 창(50·60) 아래 */
.modal[hidden] { display: none; }
.modal-bg { position: absolute; inset: 0; background: rgba(0,0,0,.15); -webkit-backdrop-filter: blur(0.5rem); backdrop-filter: blur(0.5rem); }
.modal-box { position: relative; z-index: 1; width: 100%; max-width: 48.7rem; max-height: 100%; overflow: auto; -webkit-overflow-scrolling: touch;
  background: #fff; border-radius: 1.6rem; }
.modal-x { position: absolute; top: 1.4rem; right: 1.4rem; width: 3.4rem; height: 3.4rem; font-size: 1.7rem; color: var(--sub); }
.sc-box { display: flex; flex-direction: column; padding: 2.4rem 2rem 3rem; }
.sc-m-tag { align-self: flex-start; padding: 0.7rem 1.4rem; border-radius: 0.5rem; background: var(--red); color: #fff; font-size: 1.4rem; font-weight: 700; }
.sc-m-title { margin: 1.6rem 0 0; font-family: var(--ff); font-size: 2.1rem; font-weight: 700; line-height: 1.4; color: var(--ink); }
/* 큰 사진 — 940:631. aspect-ratio 를 모르는 옛 아이폰에서도 높이가 나오게 안쪽 빈 칸(::before) 위 여백으로 (시공사례 페이지와 같은 까닭) */
.sc-m-pic { position: relative; margin-top: 2rem; border-radius: 0.6rem; overflow: hidden; background: #e6e3dd; }
.sc-m-pic::before { content: ""; display: block; padding-top: 67.13%; }
.sc-m-pic img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
.sc-m-pic button { position: absolute; top: 50%; transform: translateY(-50%); width: 3.8rem; height: 3.8rem; border-radius: 50%;
  background: rgba(0,0,0,.38); color: #fff; font-size: 2.3rem; line-height: 1; padding-bottom: 0.4rem;
  display: flex; align-items: center; justify-content: center; }
.sc-m-pic button:focus-visible { outline: 0.3rem solid #fff; outline-offset: 0.2rem; }
.sc-m-prev { left: 0.8rem; }
.sc-m-next { right: 0.8rem; }
.sc-m-count { position: absolute; right: 1.4rem; top: 1.4rem; padding: 0.5rem 1.2rem; border-radius: 999px;
  background: rgba(0,0,0,.5); color: #fff; font-size: 1.3rem; font-weight: 600; letter-spacing: 0.02em; }
.sc-m-dots { position: absolute; left: 0; right: 0; bottom: 1.4rem; display: flex; justify-content: center; gap: 0.6rem; }
.sc-m-dots i { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: rgba(255,255,255,.5); }
.sc-m-dots i.on { background: #fff; width: 1.8rem; border-radius: 999px; }
/* 미리보기 줄 — 누르면 그 사진으로, 화살표로 넘겨도 빨간 테두리가 따라옴. 많으면 옆으로 밀어 봄 */
.sc-m-thumbs { position: relative; margin-top: 1.2rem; display: flex; gap: 0.8rem; overflow-x: auto; scrollbar-width: none; }
.sc-m-thumbs::-webkit-scrollbar { display: none; }
.sc-m-thumbs button { position: relative; flex: 1 1 0; min-width: 5.6rem; max-width: 10.4rem; padding: 0; border: 0.2rem solid transparent; border-radius: 0.5rem;
  overflow: hidden; line-height: 0; opacity: .62; transition: opacity .15s, border-color .15s; }
.sc-m-thumbs button.on { border-color: var(--red); opacity: 1; }
.sc-m-thumbs button::before { content: ""; display: block; padding-top: 67.13%; }
.sc-m-thumbs img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
/* 항목 줄(줄글) — 시공사례 페이지처럼 네모 칸이 아니라 줄글 */
.sc-m-rows { margin: 2.2rem 0 0; padding-top: 2rem; border-top: 0.1rem solid var(--line);
  display: grid; grid-template-columns: auto 1fr; gap: 0.8rem 1.6rem; align-content: start; }
.sc-m-rows:empty { display: none; }
.sc-m-rows dt { color: var(--red); font-size: 1.4rem; font-weight: 700; white-space: nowrap; }
.sc-m-rows dd { margin: 0; font-size: 1.4rem; line-height: 1.5; color: #3f434a; }
/* 사진이 한 장뿐인 현장은 js 가 화살표·숫자·점·미리보기를 감춤(hidden) — 위 display 값이 이기지 않게 */
.sc-m-pic button[hidden], .sc-m-count[hidden], .sc-m-dots[hidden], .sc-m-thumbs[hidden] { display: none; }

/* ── 두 번 톡 확대 막기 (2026-10-20 사용자 「손으로 늘리니까 확대가 되는데 막아놔야」) ──────────────
   손가락으로 늘리는 확대는 m.html viewport 에서 막음(안드로이드). 아이폰은 애플이 그걸 무시하지만 두 번 톡 확대는 이 줄로 막힙니다
   — 시공사례 창 화살표를 빨리 두 번 눌러도 화면이 확대되지 않게. 옆으로 밀기·위아래 내리기는 그대로 됩니다. */
html { touch-action: manipulation; }
