/* Pretendard (self-hosted, site-content/fonts) */
@font-face { font-family: "Pretendard"; src: url("../fonts/Pretendard-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Pretendard"; src: url("../fonts/Pretendard-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Pretendard"; src: url("../fonts/Pretendard-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Pretendard"; src: url("../fonts/Pretendard-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Pretendard"; src: url("../fonts/Pretendard-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Pretendard"; src: url("../fonts/Pretendard-900.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }

:root {
  --ink: #1d1f1e;
  --ink-soft: #3d3d3d;
  --line: #e3e7e4;
  --paper: #ffffff;
  --paper-alt: #f5f7f5;
  --brand: #2f7a4e;
  --brand-dark: #245f3d;
  --radius: 10px;
  --shell: 1440px;
  --font: Pretendard, "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Segoe UI", sans-serif;
  /* 타이포 스케일 (dplus-site 기준, 360px → 1440px 사이 유동) */
  --page-h1-size: clamp(32px, calc(27.775px + 1.127vw), 44px);
  --section-h2-size: clamp(26px, calc(22.667px + 0.926vw), 36px);
  --ui-title-size: clamp(18px, calc(14.18px + 0.682vw), 24px);
  --ui-text-size: clamp(18px, calc(17.296px + 0.188vw), 20px);
  --body-text-size: clamp(16px, calc(15.333px + 0.185vw), 18px);
  --small-text-size: clamp(14px, calc(13.333px + 0.185vw), 16px);
  --label-text-size: clamp(12px, calc(11.333px + 0.185vw), 14px);
  --section-pad: clamp(56px, 8vw, 96px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: var(--body-text-size); font-weight: 500; line-height: 1.56em; color: var(--ink); background: var(--paper); word-break: keep-all; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; line-height: 1.3; letter-spacing: -0.01em; }
h1 { font-size: var(--page-h1-size); font-weight: 800; letter-spacing: 1px; }
h2 { font-size: var(--section-h2-size); font-weight: 700; letter-spacing: 0; }
h3 { font-size: var(--ui-title-size); font-weight: 700; }
p { margin: 0; }
.shell { width: min(var(--shell), calc(100% - 40px)); margin: 0 auto; }
.shell.narrow { width: min(1100px, calc(100% - 40px)); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 6px; z-index: 100; }
.skip-link:focus { left: 8px; }
.button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 22px; border-radius: 6px; background: var(--brand); color: #fff; font-weight: 700; font-size: var(--body-text-size); border: 1px solid var(--brand); transition: background 0.2s, color 0.2s; }
.button:hover { background: var(--brand-dark); color: #fff; }
.button.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.button.ghost:hover { border-color: var(--ink); color: var(--ink); background: #fff; }

/* header */
.site-header { position: relative; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.site-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 79px; } /* + 하단 1px 테두리 = 80px */
.site-brand img { height: clamp(36px, calc(32.667px + 0.926vw), 46px); width: auto; }
.site-brand strong { font-size: var(--ui-title-size); }
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav > ul { display: flex; align-items: center; gap: clamp(14px, 1.4vw, 28px); list-style: none; margin: 0; padding: 0; }
.site-nav li { position: relative; }
/* PC 메뉴: 981px(16px/10px) → 1440px(18px/14px) 유동, 한 줄 유지 */
.site-nav a, .site-nav .has-sub > button { display: block; padding: 0; font-size: clamp(16px, calc(14.592px + 0.376vw), 20px); font-weight: 700; line-height: 1.4; white-space: nowrap; color: var(--ink-soft); background: none; border: 0; cursor: pointer; transition: color 0.15s; }
.site-nav a:hover, .site-nav a[aria-current="page"], .site-nav .has-sub > button:hover, .site-nav .has-sub[data-open="true"] > button { color: var(--brand); }
.site-nav .has-sub > button::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.site-nav .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 200px; padding: 8px; margin: 0; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px rgba(0,0,0,0.08); flex-direction: column; }
.site-nav .has-sub[data-open="true"] > .sub-menu { display: flex; }
.sub-menu a { padding: 8px 12px; white-space: nowrap; }
.site-nav .sub-menu { margin-top: 14px; }
.site-nav > ul > li:last-child > .sub-menu { left: auto; right: 0; } /* 마지막 메뉴(제안서)는 오른쪽 정렬 → 화면 밖 넘침 방지 */
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.nav-toggle span { display: block; width: 20px; height: 2px; margin: 4px auto; background: var(--ink); transition: transform 0.2s, opacity 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* hero */
.hero { position: relative; color: #fff; background: var(--ink) var(--hero-image, none) center/cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,20,15,0.35), rgba(10,20,15,0.7)); }
.hero-inner { position: relative; padding: clamp(80px, 12vw, 150px) 0 clamp(70px, 10vw, 120px); }
.hero-eyebrow, .section-eyebrow { font-size: var(--label-text-size); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); margin-bottom: 8px; }
.hero-eyebrow { color: #b8e3c6; }
.hero h1 { max-width: 900px; font-size: clamp(36px, calc(34.592px + 0.376vw), 40px); letter-spacing: -0.02em; line-height: 1.35; }
.hero-text { margin-top: 18px; font-size: var(--ui-text-size); color: rgba(255,255,255,0.85); max-width: 900px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .button.ghost { color: #fff; border-color: rgba(255,255,255,0.5); }
.hero .button.ghost:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* sections */
.section { padding: var(--section-pad) 0; }
/* 공법 페이지: 본문 블록 하나하나가 원페이지처럼 독립 섹션 */
.content-page .method-section .content-body { padding-bottom: 0; }
.story-page-nav { padding: clamp(24px, calc(16px + 2.222vw), 48px) 0 clamp(40px, calc(29.333px + 2.963vw), 72px); }
.section-alt { background: var(--paper-alt); }
.section-cta { display: flex; justify-content: center; margin-top: 40px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section-more { font-weight: 700; color: var(--ink-soft); }
.section-head > p, .section-lead { color: var(--ink-soft); font-size: var(--ui-text-size); }
.section-head .section-lead { margin-top: 8px; }
/* 홈 섹션 타이틀 (회사 소개 · 현장스토리 · 자주 하는 질문) — 다른 페이지 h2와 별도 조정 */
.home-title { font-size: clamp(32px, calc(29.183px + 0.751vw), 40px); font-weight: 700; letter-spacing: 0.02em; line-height: 1.2; }
.page-head { padding: clamp(40px, calc(29.333px + 2.963vw), 72px) 0; margin-bottom: 0; border-bottom: 1px solid var(--line); }
/* 프로젝트·글 상세: 상하 패딩 32px → 52px */
.case-page > .page-head, .story-page > .page-head { padding: clamp(32px, calc(24.958px + 1.878vw), 52px) 0; }
.case-page > .page-head h1 { font-size: clamp(26px, calc(22.667px + 0.926vw), 36px); line-height: 1.16; }
.page-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.page-category { margin: 0; font-size: clamp(18px, calc(17.296px + 0.188vw), 20px); line-height: 1; font-weight: 700; color: var(--brand); }
.page-category::before { content: "·"; margin-right: 12px; color: var(--ink-soft); }
.page-head .section-eyebrow a:hover { text-decoration: underline; }
.page-lead { margin-top: 8px; color: var(--ink-soft); font-size: var(--ui-text-size); }

/* case filters + grid */
.case-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.case-filters button { padding: 9px 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink-soft); font-weight: 600; font-size: clamp(16px, calc(15.296px + 0.188vw), 18px); transition: all 0.15s; }
.case-filters button:hover { border-color: var(--ink); color: var(--ink); }
.case-filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.case-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px clamp(16px, calc(14.592px + 0.376vw), 20px); }
.case-card[hidden] { display: none; }
.case-card-link { display: block; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); transition: transform 0.2s, box-shadow 0.2s; height: 100%; }
.case-card-link:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0,0,0,0.08); color: inherit; }
.case-card-media { position: relative; aspect-ratio: 3 / 2; margin: 0; background: var(--paper-alt); overflow: hidden; }
.case-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.case-card-link:hover .case-card-media img { transform: scale(1.04); }
.case-card-body { padding: 14px 16px 16px; }
.case-card-meta { display: block; font-size: clamp(16px, calc(15.296px + 0.188vw), 18px); color: var(--ink-soft); margin-bottom: 4px; }
.case-card-body h3 { font-size: clamp(18px, calc(17px + 0.278vw), 21px); line-height: 1.4; }
.case-empty { margin-top: 20px; color: var(--ink-soft); }

/* method / about / contact */
.method-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.method-card { display: flex; flex-direction: column; gap: 10px; padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: transform 0.2s, box-shadow 0.2s; }
.method-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0,0,0,0.08); color: inherit; }
.method-card p { color: var(--ink-soft); flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.method-card span { font-weight: 700; color: var(--brand); }
#cases, #about, #stories { border-bottom: 1px solid var(--line); }
.about-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); align-items: stretch; }
.about-copy p { margin-bottom: 14px; color: #2c332f; font-size: var(--ui-text-size); line-height: 1.8; }
.about-copy p:last-child { margin-bottom: 0; }
.about-copy strong { color: var(--ink); }
.about-logo { display: grid; place-items: center; min-height: 300px; padding: 40px;
  background: #fff url("../images/logo-bg.png") center / cover no-repeat; }
.about-logo img { width: min(100%, 320px); height: auto; }
.about-logo strong { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; }
.faq-lead { margin-top: 10px; color: var(--ink-soft); font-size: var(--ui-text-size); }
/* FAQ 아코디언: 왼쪽 제목 480px 고정 + 구분선 리스트, + / − 토글, 한 번에 하나만 펼침 */
#about.section-alt, #faq.section-alt { background: #f9f9f9; } /* 중립 회색 (녹색 기 없는 배경) */
.faq-layout { display: grid; grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr); gap: clamp(32px, 4vw, 64px); align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { margin: 0; font-size: inherit; }
.faq-q button { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; padding: 24px 4px; border: 0; background: none; text-align: left; cursor: pointer; color: var(--ink); font: inherit; font-weight: 700; font-size: clamp(20px, calc(19.296px + 0.188vw), 22px); line-height: 1.45; letter-spacing: -0.01em; }
.faq-q button:hover, .faq-item.is-open .faq-q button { color: var(--ink); }
.faq-toggle { position: relative; flex: none; width: 20px; height: 20px; }
.faq-toggle::before, .faq-toggle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 20px; height: 3px; margin: -1.5px 0 0 -10px; border-radius: 2px; background: var(--brand); transition: transform .25s ease, opacity .25s ease; }
.faq-toggle::after { transform: rotate(90deg); }
.faq-item.is-open .faq-toggle::after { transform: rotate(0deg); opacity: 0; }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.faq-a-inner { min-height: 0; overflow: hidden; }
.faq-a p { padding: 0 4px 24px; color: #2c332f; font-size: var(--ui-text-size); line-height: 1.7; }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
/* 홈: 연락처 카드 (전화·이메일·블로그) */
.contact-cards { position: relative; padding: clamp(56px, 6vw, 80px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #e9e9e9 var(--contact-image, none) center/cover no-repeat; }
.contact-cards::before { content: ""; position: absolute; inset: 0; background: rgba(40,44,42,0.22); }
.contact-card-grid { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, calc(5.333px + 1.296vw), 24px); }
.contact-card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; padding: clamp(2px, calc(-5.333px + 2.037vw), 24px) clamp(2px, calc(-6.667px + 2.407vw), 28px); background: rgba(255,255,255,0.92); border: 1px solid rgba(255,255,255,0.8); color: var(--ink); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0,0,0,0.1); transition: background 0.2s, box-shadow 0.2s, transform 0.2s; }
a.contact-card:hover { background: #fff; box-shadow: 0 16px 36px rgba(0,0,0,0.14); color: var(--ink); transform: translateY(-2px); }
.contact-card-icon { flex: none; display: grid; place-items: center; width: clamp(22px, calc(19.183px + 0.751vw), 30px); height: clamp(22px, calc(19.183px + 0.751vw), 30px); color: var(--ink); }
.contact-card-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-card-head { display: flex; align-items: center; gap: 8px; min-width: 0; } /* 아이콘 + 라벨 한 줄 */
.contact-card-label { font-size: clamp(16px, calc(15.296px + 0.188vw), 18px); font-weight: 600; color: var(--ink-soft); }
.contact-card-value { padding-left: 4px; font-size: clamp(18px, calc(16.592px + 0.376vw), 22px); font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
.contact { background: var(--ink); color: #fff; }
.contact-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.contact p { margin-top: 10px; color: rgba(255,255,255,0.75); font-size: var(--ui-text-size); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.contact .button.ghost { color: #fff; border-color: rgba(255,255,255,0.4); }
.contact .button.ghost:hover { background: rgba(255,255,255,0.12); color: #fff; }
.contact.compact { padding: 48px 0; }

/* story */
.story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.story-card { min-width: 0; }
.story-card a { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; }
.story-card a:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0,0,0,0.08); color: inherit; }
.story-card figure { position: relative; margin: 0; flex: none; min-height: 0; aspect-ratio: 3 / 2; overflow: hidden; background: var(--paper-alt); }
.story-card figure img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.story-card-body { padding: 18px 20px 22px; }
.story-card-body h3 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.story-card-meta { display: block; font-size: clamp(14px, calc(13.333px + 0.185vw), 16px); color: var(--ink-soft); margin-bottom: 6px; }
.story-card-body p { margin-top: 8px; color: var(--ink-soft); font-size: clamp(16px, calc(15.296px + 0.188vw), 18px); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* content body (imported html) */
.content-body { font-size: clamp(18px, calc(17.296px + 0.188vw), 20px); line-height: 1.56em; color: #2c332f; }
.content-body > * + * { margin-top: 1em; }
.content-body > section, .content-body > section + * { margin-top: 0; } /* 섹션엔 margin 없음 (패딩으로만 간격) */
.content-body h2 { font-size: var(--section-h2-size); margin-top: 2.2em; }
.content-body > h2:first-child { margin-top: 0; }
.content-body h2 + h2 { margin-top: 0.6em; }
.story-page .story-page-title { font-size: clamp(26px, calc(22px + 1.111vw), 38px); letter-spacing: 0; }
.story-page .content-body .story-title { font-size: clamp(24px, calc(20.667px + 0.926vw), 34px); margin-top: 1.64em; padding-bottom: 12px; }
.story-page .content-body > .story-title:first-child,
.story-page .content-body > :first-child .story-title { margin-top: 0; }
.story-page .content-body .story-title + .story-title { margin-top: 0.6em; }
.story-page .content-body .story-title + :is(p, ul, ol),
.story-page .content-body .story-subhead + :is(p, ul, ol) { margin-top: 0; }
.content-body h3 { font-size: var(--ui-title-size); margin-top: 1.6em; }
.story-page .content-body .story-subhead { font-size: clamp(22px, calc(20.667px + 0.37vw), 26px); margin-top: 0.7em; padding-bottom: 12px; }
.content-body h4 { font-size: var(--ui-text-size); margin-top: 1.4em; }
.content-body p { margin: 0; }
.story-page .content-body p { padding-bottom: 12px; }
.content-body img { border-radius: 10px; }
.content-body figure { margin: 0; }
.content-body figcaption { font-size: var(--label-text-size); color: var(--ink-soft); margin-top: 6px; }
.content-body ul, .content-body ol { padding-left: 1.4em; }
.story-page .content-body ul, .story-page .content-body ol { display: grid; gap: 0.5em; }
.story-page .content-body .story-points { font-size: clamp(20px, calc(19.296px + 0.188vw), 22px); font-weight: 600; }
.content-body a { color: var(--brand); text-decoration: underline; }
.content-body .content-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; margin-top: 1.5em; }
.content-body .content-gallery.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 20px; }
.content-body .content-gallery.cols-2, .content-body .content-gallery:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.content-body .content-gallery figure { display: grid; gap: clamp(8px, calc(6.592px + 0.376vw), 12px); }
/* 시공 전·후 비교 (콘크리트폴리싱) */
.content-body .before-after-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; margin-top: 1.5em; }
.content-body .before-after { padding-bottom: 40px; border-bottom: 1px solid #c9cfcb; }
.content-body .before-after:last-child { padding-bottom: 0; border-bottom: 0; }
.content-body .before-after h3 { margin: 0 0 12px; font-size: clamp(20px, calc(18.592px + 0.376vw), 24px); font-weight: 700; color: var(--ink); }
.content-body .before-after h3 a { color: inherit; text-decoration: none; }
.content-body .before-after h3 a::after { content: " →"; font-weight: 400; color: var(--ink-soft); }
.content-body .before-after h3 a:hover { color: var(--brand); }
.content-body .content-gallery.ba-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 0; }
.content-body .content-gallery.ba-pair figcaption { font-size: clamp(16px, calc(14.592px + 0.376vw), 20px); font-weight: 700; color: var(--ink-soft); }
.content-body .content-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.content-body .content-gallery figcaption { margin: 0; text-align: center; font-size: clamp(16px, calc(15px + 0.278vw), 19px); font-weight: 600; color: var(--ink); }
.content-body .content-gallery.cols-4 figcaption { font-size: clamp(14px, calc(12.333px + 0.463vw), 19px); }
.content-page .content-body .content-image img, .story-page .content-body .content-image img { width: 100%; max-height: 640px; object-fit: cover; border-radius: 6px; }
.story-page .content-body .content-image { margin-top: 0.81em; }
.story-page .content-body .content-image + .content-image { margin-top: 1.3em; }
.story-page .content-body .content-image:has(+ :is(p, ul, ol):not(.story-caption)) { padding-bottom: 24px; }
.story-page .content-body .content-image + :is(ul, ol) { margin-top: 0; }
.story-page .content-body .story-caption { margin-top: 12px; margin-bottom: 0; padding-bottom: 0.6em; text-align: center; font-size: clamp(16px, calc(15px + 0.278vw), 19px); font-weight: 600; color: var(--ink); }
.story-page .content-body .content-gallery figure { gap: 8px; }
.story-page .content-body .content-gallery .story-caption { margin-top: 0; padding-bottom: 0; }
.story-page .content-body .content-gallery + p:not(.story-caption) { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }

/* 공법 페이지 본문 섹션 (.method-*): 각 블록은 독립 .section 안의 .content-body 에 붙는다 */
.content-body.method-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px 72px; align-items: start; }
/* 글 상세: 기본 1열. 갤러리·스테퍼만 예외 */
.story-page .content-body.method-intro, .story-page .content-body .method-columns { grid-template-columns: minmax(0, 1fr); gap: 28px; }
.content-body .method-intro-copy > h2 { margin-top: 0; }
.content-body .method-intro-copy > p { margin-top: 1.2em; font-size: clamp(20px, calc(19.296px + 0.188vw), 22px); color: #1d1f1e; }
.content-body .method-intro-media { margin: 0; }
.content-body .method-intro-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; }
.content-body .method-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 72px; }
.content-body .method-columns > div > h2 { margin-top: 0; }
.content-body .method-columns ol, .content-body .method-columns ul { margin: 1.2em 0 0; padding-left: 1em; display: grid; gap: 0.5em; font-size: clamp(20px, calc(19.296px + 0.188vw), 22px); color: #1d1f1e; }
.content-body .zoom-wrap { position: relative; display: block; cursor: pointer; }
.content-body .zoom-wrap img { display: block; width: 100%; }
.content-body .zoom-wrap::before {
  content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.35);
  opacity: 0; transition: opacity 0.2s ease; pointer-events: none;
}
.content-body .zoom-wrap::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 4v16M4 12h16' stroke='white' stroke-width='3' stroke-linecap='round'/></svg>") center / 40px no-repeat;
  opacity: 0; transform: scale(0.8); transition: opacity 0.2s ease, transform 0.2s ease; pointer-events: none;
}
.content-body .zoom-wrap:hover::before, .content-body .zoom-wrap:focus-within::before { opacity: 1; }
.content-body .zoom-wrap:hover::after, .content-body .zoom-wrap:focus-within::after { opacity: 1; transform: scale(1); }
.content-body.method-cases > h2, .content-body.method-band > h2, .content-body.method-steps > h2, .content-body.method-copy > h2:first-child { margin-top: 0; }
.content-body.method-copy .content-video, .content-body.method-steps .content-video { margin-top: 32px; }
/* 작업과정 단계 카드 */
/* 단계 흐름(스테퍼): 번호 원 + 연결선 → 다음 단계 */
.content-body .method-step-list { --step-dot: 44px; list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 16px; counter-reset: step; }
.content-body .method-step-list li { position: relative; margin: 0; padding: 0 8px; text-align: center; counter-increment: step; }
.content-body .method-step-list li::before { content: counter(step); display: grid; place-items: center; width: var(--step-dot); height: var(--step-dot); margin: 0 auto 14px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 18px; font-weight: 800; letter-spacing: 0; box-shadow: 0 0 0 6px #fff; position: relative; z-index: 1; }
.content-body .method-step-list li:last-child::before { content: "✓"; background: var(--ink); }
/* 연결선: 원 중심 높이에서 다음 원까지 (행 마지막·전체 마지막은 숨김) */
.content-body .method-step-list li::after { content: ""; position: absolute; top: calc(var(--step-dot) / 2 - 1px); left: 50%; width: 100%; height: 2px; background: repeating-linear-gradient(90deg, var(--brand) 0 8px, transparent 8px 14px); opacity: 0.55; }
.content-body .method-step-list li:nth-child(4n)::after, .content-body .method-step-list li:last-child::after { display: none; }
/* 6단계는 3열(3+3)로 균등 배치 */
.content-body .method-step-list:has(li:nth-child(6):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.content-body .method-step-list:has(li:nth-child(6):last-child) li:nth-child(4n)::after { display: block; }
.content-body .method-step-list:has(li:nth-child(6):last-child) li:nth-child(3n)::after { display: none; }
.content-body .method-step-list strong { display: block; color: var(--ink); font-size: clamp(20px, calc(19.296px + 0.188vw), 22px); line-height: 1.35; word-break: keep-all; }
.content-body .method-step-list small { display: block; margin-top: 6px; color: var(--ink-soft); font-size: clamp(16px, calc(15.296px + 0.188vw), 18px); line-height: 1.45; word-break: keep-all; }
.content-body .content-video { aspect-ratio: 16 / 9; }
.content-body .content-video iframe, .content-body .content-video video { width: 100%; height: 100%; border: 0; border-radius: 10px; }
.content-body .blurb { padding: 0; border: 0; }
.content-body table { width: 100%; border-collapse: collapse; font-size: var(--small-text-size); }
.content-body td, .content-body th { border: 1px solid var(--line); padding: 8px 10px; }
.content-body hr { border: 0; border-top: 1px solid var(--line); margin: 1.5em 0; }
.content-body details { border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; }
.content-body summary { font-weight: 700; cursor: pointer; }
.content-body p:has(> .button) { text-align: center; }
.content-body .button { text-decoration: none; color: #fff; }
.content-body .button:hover { color: #fff; }
.content-body .button.ghost { color: var(--ink); }
.content-page .content-body, .story-body { padding-bottom: 20px; }
.content-page { overflow-x: clip; }

/* case slider */
.case-slider { position: relative; width: fit-content; max-width: 100%; margin: 0 auto; }
/* 사진 비율(4:3·16:9 혼재)에 맞춰 높이가 바뀐다 — 검은 여백 없음 */
.case-slider-track { position: relative; border-radius: var(--radius); overflow: hidden; }
.case-slide { display: none; position: relative; width: fit-content; max-width: 100%; margin: 0 auto; }
.case-slide.is-active { display: block; animation: case-slide-in 0.3s ease; }
@keyframes case-slide-in { from { opacity: 0; } to { opacity: 1; } }
.case-slide img { display: block; width: auto; height: auto; max-width: 100%; max-height: 72vh; border-radius: var(--radius); }
.case-slide figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 12px; background: linear-gradient(180deg, transparent, rgba(0,0,0,0.6)); color: #fff; font-size: var(--small-text-size); border-radius: 0 0 var(--radius) var(--radius); }
.case-slider-nav { position: absolute; top: 50%; z-index: 2; width: 46px; height: 46px; margin-top: -23px; border: 0; border-radius: 8px; background: rgba(255,255,255,0.92); color: var(--ink); display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,0.18); transition: background 0.15s, transform 0.15s; }
.case-slider-nav:hover { background: #fff; transform: scale(1.05); }
.case-slider-nav.prev { left: 14px; }
.case-slider-nav.next { right: 14px; }
.case-slider-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.case-slider-count { position: absolute; top: 14px; left: 14px; z-index: 2; padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,0.55); color: #fff; font-size: var(--label-text-size); font-weight: 700; }
.case-slider-thumbs { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.case-slider-thumbs button { flex: 0 0 auto; width: 84px; aspect-ratio: 4 / 3; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: var(--paper-alt); opacity: 0.6; transition: opacity 0.15s, border-color 0.15s; }
.case-slider-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.case-slider-thumbs button[aria-current="true"] { opacity: 1; border-color: var(--brand); }
.case-page-body { padding: clamp(40px, calc(29.333px + 2.963vw), 72px) 0; display: grid; gap: 36px; }
.story-page-body { padding: clamp(40px, calc(29.333px + 2.963vw), 72px) 0 0; }
.case-nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; padding-top: 28px; border-top: 1px solid var(--line); }
.case-nav a { display: block; font-weight: 600; }
.case-nav small { display: block; font-size: var(--label-text-size); color: var(--ink-soft); font-weight: 600; }
.case-nav-next { text-align: right; }
.case-nav-list { padding: 8px 16px; border: 1px solid var(--line); border-radius: 8px; font-size: var(--small-text-size); }

/* case modal (popup) */
.case-modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px; }
.case-modal[hidden] { display: none; }
.case-modal-backdrop { position: absolute; inset: 0; border: 0; background: rgba(12,16,14,0.72); backdrop-filter: blur(4px); }
.case-modal-dialog { position: relative; width: min(1440px, 100%); max-height: calc(100vh - 48px); background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,0.35); display: flex; flex-direction: column; }
.case-modal-close { position: absolute; top: 12px; right: 12px; z-index: 5; width: 40px; height: 40px; border: 0; border-radius: 8px; background: rgba(255,255,255,0.95); font-size: 26px; line-height: 1; color: var(--ink); box-shadow: 0 4px 14px rgba(0,0,0,0.15); }
.case-modal-content { overflow: auto; }
.case-modal-loading { padding: 60px; text-align: center; color: var(--ink-soft); }
.case-popup-head { display: flex; align-items: center; min-height: 72px; padding: 16px 64px 12px 24px; background: var(--paper-alt); border-bottom: 1px solid var(--line); }
.case-popup-title { font-size: var(--ui-title-size); font-weight: 700; }
.case-popup-layout, .case-page-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.case-popup-layout { padding: 24px; grid-template-columns: minmax(0, 1fr); gap: 0; }
/* 시공사례 팝업: 1280px, 좌우·닫기 버튼은 갤러리처럼 투명 배경 + 흰색 아이콘 */
.case-modal-dialog.is-case { width: min(1280px, 100%); }
.case-modal-dialog.is-case .case-modal-close { top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 0; box-shadow: none; color: transparent; font-size: 0; opacity: 0.75; transition: opacity 0.15s;
  background: transparent url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6 6l12 12M18 6L6 18' stroke='%230e0f0f' stroke-width='2.4' stroke-linecap='round'/></svg>") center / 40px no-repeat; }
.case-modal-dialog.is-case .case-modal-close:hover, .case-modal-dialog.is-case .case-modal-close:focus-visible { opacity: 1; }
.case-popup .case-slider-nav, .case-page-layout .case-slider-nav { width: 72px; height: 120px; margin-top: -60px; border-radius: 0; background: transparent; box-shadow: none; color: rgba(255,255,255,0.75); filter: drop-shadow(0 2px 6px rgba(0,0,0,0.55)); transition: color 0.15s; }
.case-popup .case-slider-nav:hover, .case-popup .case-slider-nav:focus-visible, .case-page-layout .case-slider-nav:hover, .case-page-layout .case-slider-nav:focus-visible { color: #fff; background: transparent; transform: none; }
.case-popup .case-slider-nav.prev, .case-page-layout .case-slider-nav.prev { left: 0; }
.case-popup .case-slider-nav.next, .case-page-layout .case-slider-nav.next { right: 0; }
.case-popup .case-slider-nav svg, .case-page-layout .case-slider-nav svg { width: clamp(44px, calc(34.667px + 2.593vw), 72px); height: clamp(44px, calc(34.667px + 2.593vw), 72px); stroke-width: 2.4; }
.case-popup .case-slider, .case-page-layout .case-slider { min-width: 0; }
.case-popup .case-slider-track, .case-page-layout .case-slider-track { border-radius: 0; }
.case-popup .case-slide img, .case-page-layout .case-slide img { border-radius: 0; max-height: calc(100vh - 220px); }
/* 사례 페이지: 팝업과 달리 화면 높이에 맞추지 않고 컬럼 폭을 꽉 채운다 */
.case-page-layout .case-slider, .case-page-layout .case-slide { width: 100%; }
.case-page-layout .case-slide img { width: 100%; max-height: none; }
.case-popup .case-slide figcaption, .case-page-layout .case-slide figcaption { border-radius: 0; }
.case-page-layout.single { grid-template-columns: minmax(0, 1fr); gap: 0; }
.case-page-tags { margin-top: 18px; font-size: var(--body-text-size); line-height: 1.7; color: var(--ink-soft); }
.case-page-text { margin-top: 20px; font-size: var(--body-text-size); }
.case-popup-info { font-size: var(--body-text-size); }
.case-popup-dl { margin: 0; display: grid; gap: 10px; }
.case-popup-dl div { display: flex; gap: 6px; }
.case-popup-dl dt { flex: 0 0 auto; font-weight: 600; letter-spacing: 0.04em; color: var(--ink-soft); }
.case-popup-dl dt::after { content: " :"; }
.case-popup-dl dd { margin: 0; }
.case-popup-tags { margin-top: 16px; line-height: 1.7; }
.case-popup-info .content-body { font-size: var(--body-text-size); margin-top: 18px; }
.case-popup-nav { display: flex; justify-content: space-between; gap: 16px; padding: 14px 24px 22px; border-top: 1px solid var(--line); font-size: var(--small-text-size); }
.case-popup-nav a { font-weight: 600; }
.case-popup-nav a:last-child { text-align: right; }
body.modal-open { overflow: hidden; }
/* 동영상 팝업: 1440px, 화면 높이에 맞춰 16:9 유지 */
.case-modal-dialog.is-video { width: min(1440px, 100%, calc((100vh - 48px) * 16 / 9)); background: #000; overflow: visible; }
.case-modal-dialog.is-video .case-modal-content { overflow: hidden; border-radius: 8px; }
.video-modal-frame { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.video-modal-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
/* 이미지 라이트박스: 사진 크기에 맞춰 팝업 크기 결정 */
.case-modal-dialog.is-image { width: auto; max-width: min(1440px, 100%); background: transparent; overflow: visible; box-shadow: none; border-radius: 0; }
.case-modal-dialog.is-image .case-modal-content { overflow: visible; }
/* 좌우·닫기 버튼은 사진 바깥 화면 가장자리에, 반투명 흰색 → 오버 시 #fff */
.case-modal-dialog.is-image .case-slider-nav, .case-modal-dialog.is-video .case-slider-nav { position: fixed; top: 50%; width: 72px; height: 120px; margin-top: -68px; border-radius: 0; background: transparent; box-shadow: none; color: rgba(255,255,255,0.55); transition: color 0.15s; }
.case-modal-dialog.is-image .case-slider-nav:hover, .case-modal-dialog.is-image .case-slider-nav:focus-visible, .case-modal-dialog.is-video .case-slider-nav:hover, .case-modal-dialog.is-video .case-slider-nav:focus-visible { color: #ffffff; background: transparent; transform: none; }
.case-modal-dialog.is-image .case-slider-nav.prev, .case-modal-dialog.is-video .case-slider-nav.prev { left: 8px; }
.case-modal-dialog.is-image .case-slider-nav.next, .case-modal-dialog.is-video .case-slider-nav.next { right: 8px; }
.case-modal-dialog.is-image .case-slider-nav svg, .case-modal-dialog.is-video .case-slider-nav svg { width: clamp(40px, calc(32px + 2.222vw), 64px); height: clamp(40px, calc(32px + 2.222vw), 64px); stroke-width: 2.4; }
.case-modal-dialog.is-image .case-modal-close, .case-modal-dialog.is-video .case-modal-close { position: absolute; top: -56px; right: -4px; width: 40px; height: 40px; border-radius: 0; box-shadow: none; color: transparent; font-size: 0; opacity: 0.7; transition: opacity 0.15s;
  background: transparent url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6 6l12 12M18 6L6 18' stroke='white' stroke-width='3' stroke-linecap='round'/></svg>") center / 40px no-repeat; }
.case-modal-dialog.is-image .case-modal-close:hover, .case-modal-dialog.is-image .case-modal-close:focus-visible, .case-modal-dialog.is-video .case-modal-close:hover, .case-modal-dialog.is-video .case-modal-close:focus-visible { opacity: 1; }
.image-modal { position: relative; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; }
.image-modal img { grid-column: 1 / -1; display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100vh - 170px); border-radius: 12px; }
/* 제목: 이미지 하단 왼쪽, 장수: 하단 오른쪽 (그림자·배경 없음) */
.image-modal figcaption { grid-column: 1; grid-row: 2; padding: 12px 0 0; text-align: left; color: #fff; font-size: var(--small-text-size); font-weight: 700; }
.image-modal-count { grid-column: 2; grid-row: 2; align-self: start; padding: 12px 0 0; color: rgba(255,255,255,0.8); font-size: var(--label-text-size); font-weight: 600; white-space: nowrap; }

/* video */
.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.video-thumb { position: relative; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; background: #000; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0.92; transition: opacity 0.2s, transform 0.4s; }
.video-thumb:hover img { opacity: 1; transform: scale(1.03); }
.video-play { position: absolute; left: 50%; top: 50%; width: 52px; height: 37px; margin: -18.5px 0 0 -26px; border-radius: 10px; background: rgba(230,33,23,0.92); opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.video-thumb:hover .video-play, .video-thumb:focus-visible .video-play { opacity: 1; }
.video-play::after { content: ""; position: absolute; left: 21px; top: 10px; border-style: solid; border-width: 8px 0 8px 14px; border-color: transparent transparent transparent #fff; }
.video-card iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); }
.video-card h3 { font-size: clamp(16px, calc(14.667px + 0.37vw), 20px); margin-top: 6px; text-align: center; }

/* footer */
.site-footer { background: #1c1e1d; color: rgba(255,255,255,0.72); font-size: var(--small-text-size); }
.site-footer a { color: #fff; }
.site-footer svg { display: block; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px 48px; padding: clamp(34px, 4vw, 44px) 0 clamp(30px, 4vw, 40px); }
.footer-social { display: flex; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; }
.footer-social a { display: grid; place-items: center; width: 42px; height: 42px; color: #fff; transition: none; }
.footer-social a:hover, .footer-social a:focus, .footer-social a:active { color: #fff; transform: none; }
.footer-social svg { width: 42px; height: 42px; }
.footer-social .is-instagram svg { width: 35px; height: 35px; }
.footer-social .is-blog svg { width: 36px; height: 36px; }
.footer-contact { display: grid; grid-template-columns: auto auto; grid-template-rows: repeat(2, auto); grid-auto-flow: column; column-gap: clamp(48px, 8vw, 128px); row-gap: 18px; list-style: none; margin: 0; padding: 0; }
.footer-contact li:first-child:not(:only-child) { grid-row: 1 / span 2; align-self: start; }
.footer-contact li { display: inline-flex; align-items: center; gap: 12px; font-size: clamp(18px, calc(17.296px + 0.188vw), 20px); font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; color: #fff; }
.footer-contact svg { width: 26px; height: 26px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.18); padding: 24px 0 28px; }
.footer-company { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0; list-style: none; margin: 0 0 14px; padding: 0; color: rgba(255,255,255,0.9); font-weight: 700; }
.footer-company li + li::before { content: "|"; margin: 0 12px; color: rgba(255,255,255,0.45); font-weight: 400; }
.footer-copy { color: rgba(255,255,255,0.55); font-size: var(--label-text-size); }
@media (max-width: 980px) {
    .footer-top { flex-direction: column; align-items: flex-start; gap: 40px; padding-top: 40px; }
    .footer-social { gap: 26px; }
    .footer-contact { display: grid; grid-template-columns: 1fr; grid-auto-flow: row; row-gap: 26px; }
    .footer-contact li:first-child:not(:only-child) { grid-row: auto; }
    .footer-bottom { padding: 28px 0 32px; }
    .footer-company { display: block; margin-bottom: 18px; }
    .footer-company li { padding: 4px 0; }
    .footer-company li + li::before { content: none; }
}
/* 모바일 하단 전화문의: 검정 바(섹션) + 파란 버튼 */
.floating-call-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: none; padding: 8px 16px 10px; background: #0f0f0f; }
.floating-call { display: flex; align-items: center; justify-content: center; gap: 3px; height: 36px; padding: 0 20px; border-radius: 20px; background: #1a6fe8; color: #fff; font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.floating-call:hover { color: #fff; background: #1a63cf; }
.floating-call svg { width: 20px; height: 20px; fill: currentColor; }
/* TOP 버튼: 스크롤 후 우측 하단에 표시 */
.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 8px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; box-shadow: 0 10px 30px rgba(0,0,0,0.2); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity 0.2s, transform 0.2s, visibility 0.2s, background 0.15s; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--brand); }
.to-top svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.error-page { text-align: center; padding: 120px 0; }
.error-page p { margin: 16px 0 28px; color: var(--ink-soft); }
.error-page .hero-actions { justify-content: center; }

@media (max-width: 1100px) {
  .case-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* 모바일 메뉴 전환 지점: 980px */
@media (max-width: 980px) {
  .case-grid, .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-header-inner { min-height: 65px; } /* + 하단 1px 테두리 = 66px */
  .nav-toggle { display: block; }
  /* 모바일 메뉴: 브랜드색 헤더 라인 + 구분선 리스트 */
  .site-header:has(.site-nav.is-open) { background: #fff; }
  .nav-toggle { width: 40px; height: 40px; border: 0; border-radius: 0; background: transparent; }
  .nav-toggle span { width: 24px; height: 2.5px; margin: 5px auto; border-radius: 2px; }
  .nav-toggle[aria-expanded="true"] span { background: var(--brand); }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 4px 20px 12px; background: #fff; border-top: 2px solid var(--brand); box-shadow: 0 24px 40px rgba(0,0,0,0.12); }
  .site-nav.is-open { display: flex; }
  .site-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a { display: block; }
  .site-nav > ul > li { border-bottom: 1px solid var(--line); }
  .site-nav > ul > li:last-child { border-bottom: 0; }
  .site-nav a, .site-nav .has-sub > button { padding: 18px 4px; font-size: 18px; font-weight: 700; letter-spacing: 0.04em; color: var(--ink); border-radius: 0; }
  .site-nav a:hover, .site-nav a[aria-current="page"], .site-nav .has-sub > button:hover { background: none; color: var(--brand); }
  .site-nav .has-sub > button { width: 100%; display: flex; align-items: center; justify-content: space-between; text-align: left; }
  .site-nav .has-sub > button::after { width: 8px; height: 8px; margin: 0 6px 0 0; transform: translateY(-2px) rotate(45deg); }
  .site-nav .has-sub[data-open="true"] > button::after { transform: translateY(2px) rotate(225deg); }
  .site-nav .sub-menu { position: static; min-width: 0; margin: -8px 0 0; box-shadow: none; border: 0; border-radius: 0; padding: 0 0 10px 16px; }
  .site-nav .sub-menu a { padding: 12px 4px; font-size: 16px; font-weight: 600; color: var(--ink-soft); }
  .contact-cards { display: none; } /* 연락처 카드: 태블릿·모바일 숨김 */
  .about-layout, .faq-layout { grid-template-columns: 1fr; gap: 28px; }
  .about-logo { min-height: 220px; padding: 28px; }
  .about-logo img { width: min(100%, 240px); }
  /* 시공사례 팝업/상세: 태블릿 이하 1열 */
  .case-modal { padding: 16px; }
  .case-modal-dialog { max-height: calc(100vh - 32px); }
  .case-popup-layout, .case-page-layout { grid-template-columns: 1fr; gap: 18px; }
  .case-popup-layout { padding: 18px; }
  .case-popup .case-slide img { max-height: 60vh; }
  .content-body .content-gallery.cols-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .content-body.method-intro, .content-body .method-columns { grid-template-columns: 1fr; gap: 28px; }
  .content-body .before-after-grid { gap: 32px; }
  .content-body .before-after { padding-bottom: 32px; }
}
@media (max-width: 860px) {
  .method-grid, .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-body .content-gallery, .content-body .content-gallery.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, calc(14.592px + 0.376vw), 20px) clamp(14px, calc(13.296px + 0.188vw), 16px); }
  .content-body .method-step-list, .content-body .method-step-list:has(li:nth-child(6):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
  .content-body .method-step-list li:nth-child(4n)::after, .content-body .method-step-list:has(li:nth-child(6):last-child) li:nth-child(3n)::after { display: block; }
  .content-body .method-step-list li:nth-child(2n)::after, .content-body .method-step-list li:last-child::after { display: none; }
  .contact-inner { flex-direction: column; align-items: flex-start; }
}
/* 모바일(767px 이하): 하단 전체 폭 전화문의 버튼 (파란색 바) */
@media (max-width: 767px) {
  body { padding-bottom: 54px; } /* 고정 바에 가려지지 않게 (8 + 36 + 10) */
  #cases .case-filters { display: none; } /* 홈 시공사례 카테고리 필터 숨김 */
  .floating-call-bar { display: block; }
  .floating-call svg { width: 14px; height: 14px; margin-top: 2px; transform: rotate(25deg); } /* 핸드셋을 좀 더 세움 */
  .to-top { bottom: 68px; } /* 전화문의 바 위로 */
}
@media (max-width: 600px) {
  .shell { width: calc(100% - 32px); }
  .case-card-body { padding: 10px 12px 12px; }
  .story-grid, .method-grid, .video-grid { grid-template-columns: minmax(0, 1fr); }
  .section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .case-nav { grid-template-columns: 1fr; text-align: left; }
  .case-nav-next { text-align: left; }
  .case-modal { padding: 16px; }
  .case-modal-dialog { max-height: calc(100vh - 32px); height: auto; border-radius: 8px; }
  .case-modal-dialog.is-case .case-modal-close { top: 8px; right: 8px; }
  .case-popup .case-slider-nav, .case-page-layout .case-slider-nav { width: 52px; height: 96px; margin-top: -48px; }
  .case-popup-layout, .case-page-layout { grid-template-columns: 1fr; gap: 18px; }
  .case-popup-layout { padding: 16px; }
  .case-popup-head { min-height: 56px; padding: 8px 56px 8px 16px; }
  .case-popup-title { font-size: 18px; }
  .case-popup-nav { padding: 12px 16px 18px; }
  .case-popup .case-slide img { max-height: 55vh; }
  .case-slider-nav { width: 38px; height: 38px; margin-top: -19px; }
  .case-modal-dialog.is-image .case-slider-nav, .case-modal-dialog.is-video .case-slider-nav { width: 52px; height: 96px; margin-top: -68px; }
  .case-modal-dialog.is-image .case-slider-nav.prev, .case-modal-dialog.is-video .case-slider-nav.prev { left: 0; }
  .case-modal-dialog.is-image .case-slider-nav.next, .case-modal-dialog.is-video .case-slider-nav.next { right: 0; }
  /* 이미지 라이트박스: 화면 세로 중앙 정렬, 닫기 버튼은 화면 우상단 고정 */
  .case-modal-dialog.is-image { height: auto; max-height: none; width: 100%; padding: 0 12px; }
  .case-modal-dialog.is-image .case-modal-close, .case-modal-dialog.is-video .case-modal-close { top: -52px; right: 12px; }
  .image-modal img { max-height: calc(100vh - 160px); border-radius: 8px; }
  .content-body .content-gallery { grid-template-columns: 1fr; }
  .content-body .content-gallery.ba-pair, .content-body .content-gallery.cols-2, .content-body .content-gallery:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
@media (max-width: 500px) {
  .case-grid { grid-template-columns: minmax(0, 1fr); }
  /* 모바일: 세로 흐름 (원 왼쪽, 세로 연결선) */
  .content-body .method-step-list, .content-body .method-step-list:has(li:nth-child(6):last-child) { --step-dot: 36px; grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .content-body .method-step-list li { display: grid; grid-template-columns: var(--step-dot) minmax(0, 1fr); column-gap: 14px; align-items: start; padding: 0; text-align: left; }
  .content-body .method-step-list li::before { grid-row: 1 / span 2; margin: 0; font-size: 16px; }
  .content-body .method-step-list li::after { top: var(--step-dot); left: calc(var(--step-dot) / 2 - 1px); width: 2px; height: calc(100% - var(--step-dot) + 20px); background: repeating-linear-gradient(180deg, var(--brand) 0 8px, transparent 8px 14px); }
  .content-body .method-step-list li:nth-child(2n)::after, .content-body .method-step-list li:nth-child(4n)::after, .content-body .method-step-list:has(li:nth-child(6):last-child) li:nth-child(3n)::after { display: block; }
  .content-body .method-step-list li:last-child::after, .content-body .method-step-list:has(li:nth-child(6):last-child) li:last-child::after { display: none; }
  .content-body .method-step-list strong { padding-top: 6px; }
  .content-body .method-step-list small { margin-top: 4px; }
}
@media (max-width: 420px) {
  .shell { width: calc(100% - 28px); }
}
