/*
Theme Name: Daeyun Marble
Theme URI: https://daeyun.koreazipsuri.com/
Author: The달팽이
Description: daeyun.koreazipsuri.com (대리석연마광택) 전용 커스텀 테마.
Version: 1.1
Text Domain: daeyun-marble

컬러: deep #161616 / accent #CDBFA0 / mid-band #EDE7DD / bar-chrome #EBECEE
확정값(structure.json client.confirmed_random_values, 재계산 금지): 브랜드소개 레이아웃 C,
플로팅/하단상담바 좌측 정렬, CTA 라운드, 후기슬라이드 ltr, 섹션 소제목 기호 +.
이미지: 이미지서버 실사진은 media-manager-INSIDE-V2 단계에서 삽입 예정.
그 전까지 히어로/서브히어로/Closing/브랜드소개 이미지는 accent 톤 그라데이션 placeholder로 대체
(실제 <img> 삽입 지점은 각 템플릿에 HTML 주석으로 표시되어 있음).
*/

/* ── 토큰 ─────────────────────────────────────────────────── */
:root {
  --deep: #161616;
  --accent: #CDBFA0;
  --accent-soft: #F1EAE0;
  --mid-band: #EDE7DD;
  --bar-chrome: #EBECEE;
  --bg: #FFFFFF;
  --bg-soft: #F7F5F1;
  --ink: #1A1A1A;
  --desc: #5A5650;
  --border: #E1DACB;
  --radius-btn: 999px;
  --radius-card: 6px;
  --font: "Pretendard Variable", Pretendard, "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0 0 16px; font-weight: 700; letter-spacing: -0.01em; word-break: keep-all; }
h2 { font-size: clamp(24px, 3.2vw, 32px); }
h3 { font-size: 17px; }
p { margin: 0 0 12px; word-break: keep-all; }
ul, ol { margin: 0; padding: 0; }

.cc-skip {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--deep); color: #fff; padding: 10px 16px;
}
.cc-skip:focus { left: 0; }

.cc-section-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.cc-eyebrow {
  display: block; font-size: 13px; font-weight: 700; letter-spacing: 0.1em;
  color: var(--accent); margin-bottom: 10px;
}
.cc-body-text { max-width: 760px; color: var(--desc); font-size: 16px; }
.cc-link-more { display: inline-block; font-weight: 600; font-size: 14px; color: var(--deep); }

/* ── 버튼 (cta_shape=round 확정) ──────────────────────────── */
.cc-btn-consult {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--ink);
  padding: 12px 26px; font-size: 15px; font-weight: 700;
  border-radius: var(--radius-btn); border: none; cursor: pointer;
  transition: background .2s, transform .15s;
  white-space: nowrap;
}
.cc-btn-consult:hover { background: #bfae8c; transform: translateY(-1px); }
.cc-btn-lg { padding: 15px 32px; font-size: 16px; margin-top: 8px; }

/* ── 헤더 (B-22: TOP 투명 → SCROLLED 크롬바) ─────────────── */
.cc-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: transparent; border-bottom: 1px solid transparent;
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.cc-header.is-scrolled {
  background: var(--bar-chrome);
  border-bottom-color: #E5E7EB;
  box-shadow: 0 1px 16px rgba(0,0,0,.06);
}
.cc-header-inner {
  max-width: 1200px; margin: 0 auto; padding: 18px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.cc-logo { font-size: 21px; font-weight: 800; color: #fff; transition: color .3s ease; }
.cc-header.is-scrolled .cc-logo { color: var(--ink); }
.cc-logo-accent { color: var(--accent); }
.cc-nav { display: flex; }
.cc-nav ul { display: flex; gap: 28px; list-style: none; }
.cc-nav a {
  position: relative; color: #fff; font-size: 15px; font-weight: 600;
  padding: 4px 0; transition: color .3s ease;
}
.cc-header.is-scrolled .cc-nav a { color: var(--ink); }
.cc-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.cc-nav a:hover::after { transform: scaleX(1); }
.cc-header .cc-btn-consult { background: var(--accent); color: var(--ink); }
.cc-burger {
  display: none; flex-direction: column; gap: 5px; background: none; border: none;
  cursor: pointer; padding: 8px; margin-left: -8px;
}
.cc-burger span { width: 22px; height: 2px; background: #fff; transition: background .3s ease; }
.cc-header.is-scrolled .cc-burger span { background: var(--ink); }
.cc-nav-mobile {
  display: none; flex-direction: column; background: var(--bg); padding: 12px 24px 20px;
  border-top: 1px solid var(--border);
}
.cc-nav-mobile.is-open { display: flex; }
.cc-nav-mobile a { padding: 12px 0; border-bottom: 1px solid var(--border); color: var(--ink); font-weight: 600; }
.cc-nav-mobile-cta { color: var(--accent) !important; border-bottom: none !important; }

@media (max-width: 860px) {
  .cc-nav { display: none; }
  .cc-header .cc-header-inner .cc-btn-consult { display: none; }
  .cc-burger { display: flex; }
}

/* ── 풀블리드 다크 배경 공통 (히어로 / 서브히어로 / Closing placeholder) ─
   media-manager가 <img class="cc-hero-bg / cc-subhero-img / cc-closing-img">를
   삽입하면 이 배경 위에 겹쳐 표시되며 ::after 오버레이가 자동으로 유지됨. */
.cc-hero, .cc-subhero, .cc-closing {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, #161616 0%, #2b2620 55%, #3c3324 100%);
}
.cc-hero-bg, .cc-subhero-img, .cc-closing-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
}
.cc-hero::after, .cc-subhero::after, .cc-closing::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(10,10,10,.62) 0%, rgba(10,10,10,.32) 45%, rgba(10,10,10,.14) 100%);
}

/* ── 히어로 ───────────────────────────────────────────────── */
.cc-hero {
  margin-top: -78px; padding-top: 78px;
  min-height: 640px; display: flex; align-items: flex-end;
}
.cc-hero-inner { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; width: 100%; padding: 0 24px 88px; }
.cc-hero-keyword { font-size: 25px; font-weight: 800; line-height: 1.3; color: #fff; margin: 0 0 16px; }
.cc-hero-brand { font-size: 50px; font-weight: 700; letter-spacing: .03em; margin: 0 0 16px; color: var(--accent); animation: cc-hero-rise 1s cubic-bezier(.22,1,.36,1) both; }
.cc-hero-desc { font-size: 17px; color: #ececec; max-width: 560px; margin: 0 0 28px; }
@keyframes cc-hero-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ── 서브히어로 (내부 페이지 공통) ────────────────────────── */
.cc-subhero {
  margin-top: -78px; padding-top: 78px; min-height: 300px;
  display: flex; align-items: flex-end;
}
.cc-subhero-content { position: relative; z-index: 2; max-width: 1200px; width: 100%; margin: 0 auto; padding: 0 24px 44px; }
.cc-subhero-content h1 { color: #fff; font-size: clamp(26px, 4vw, 38px); text-shadow: 0 2px 14px rgba(0,0,0,.35); }
.cc-subhero-consult .cc-subhero-content { max-width: 640px; margin: 0 auto; text-align: center; padding-bottom: 56px; }

/* ── 시공사례/지역 상세 전용 서브히어로(505px) ─────────────── */
.cc-subhero-detail { min-height: 505px; }

/* ── 콘텐츠 섹션(서브페이지 본문) ─────────────────────────── */
.cc-content-section { max-width: 1200px; margin: 0 auto; padding: 64px 24px 88px; }
.cc-content-body { max-width: 780px; color: var(--desc); font-size: 16px; }
.cc-content-body p { margin-bottom: 14px; }
.cc-content-inline-img { width: 220px; max-width: 60%; height: auto; border-radius: 10px; margin: 4px 0 18px; display: block; }

/* ── 상담 카드 (/contact) ─────────────────────────────────── */
.cc-contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 720px; margin-bottom: 40px; }
.cc-info-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  padding: 36px 20px; border: 1px solid var(--border); border-radius: var(--radius-card);
  background: var(--bg-soft); font-weight: 700; font-size: 16px;
}
.cc-info-card:hover { border-color: var(--accent); background: var(--accent-soft); }

/* ── 관련 카드 (키워드/후기허브 목록) ─────────────────────── */
.cc-portfolio-list, .cc-reviews-list { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.cc-related-card { border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--bg-soft); transition: border-color .2s, background .2s; }
.cc-related-card a { display: block; padding: 18px 20px; font-weight: 700; }
.cc-related-card:hover { border-color: var(--accent); background: var(--accent-soft); }

/* ── 사이트맵 ─────────────────────────────────────────────── */
.cc-sitemap-list { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; max-width: 900px; }
.cc-sitemap-list a { display: block; padding: 10px 0; color: var(--desc); border-bottom: 1px solid var(--border); }
.cc-sitemap-list a:hover { color: var(--deep); }

/* ── 브랜드소개 (레이아웃 C: 글 전체폭 + 아래 이미지 가로 4장) ─ */
.cc-brand-intro { padding: 88px 0; background: var(--bg); }
.cc-brand-intro-images { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.cc-brand-intro-img {
  position: relative; aspect-ratio: 4/3; border-radius: var(--radius-card); overflow: hidden;
  background: linear-gradient(150deg, var(--accent-soft) 0%, var(--accent) 130%);
  display: flex; align-items: flex-end; padding: 14px;
}
.cc-brand-intro-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.cc-brand-intro-img span {
  position: relative; z-index: 1; font-size: 12px; font-weight: 700; color: #fff; opacity: .9;
  text-shadow: 0 1px 6px rgba(0,0,0,.5);
}

/* ── 후기 슬라이더 (방향 ltr 확정 — 자연스러운 좌→우 스크롤) ── */
.cc-reviews { padding: 88px 0; background: var(--mid-band); }
.cc-reviews-track { display: flex; justify-content: center; gap: 16px; overflow-x: auto; scroll-snap-type: x proximity; padding: 8px 2px 4px; margin-top: 32px; }
.cc-review-card {
  scroll-snap-align: start; flex: 1 1 250px; max-width: 250px; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-card); padding: 20px; display: flex; flex-direction: column; gap: 10px;
}
@media (max-width: 700px) {
  .cc-review-card { flex: 0 0 250px; max-width: 250px; }
}
.cc-review-card:hover { border-color: var(--accent); }
.cc-review-region { font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: .04em; }
.cc-review-card p { font-size: 14px; color: var(--desc); margin: 0; flex: 1; }

/* ── 시공사례 미리보기 ────────────────────────────────────── */
.cc-portfolio-preview { padding: 88px 0; background: var(--bg); }
.cc-portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 32px 0 28px; }
.cc-portfolio-card { display: block; border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; }
.cc-portfolio-thumb { position: relative; aspect-ratio: 4/3; overflow: hidden; background: linear-gradient(150deg, var(--bg-soft) 0%, var(--accent-soft) 100%); }
.cc-portfolio-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.cc-portfolio-card:hover .cc-portfolio-thumb img { transform: scale(1.05); }
.cc-portfolio-body { padding: 16px 18px; }
.cc-portfolio-body h3 { font-size: 16px; margin-bottom: 8px; }
.cc-portfolio-all { display: block; text-align: center; }

/* ── 서비스 바로가기 (B-20 SVG 아이콘) ────────────────────── */
.cc-quicklinks { padding: 88px 0; background: var(--mid-band); }
.cc-quicklinks-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 32px; }
.cc-quicklink-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: 26px 22px; transition: border-color .2s, transform .2s;
}
.cc-quicklink-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.cc-quicklink-icon { display: block; width: 34px; height: 34px; color: var(--accent); margin-bottom: 14px; }
.cc-quicklink-icon svg { width: 100%; height: 100%; }
.cc-quicklink-card h3 { font-size: 15px; margin-bottom: 6px; }
.cc-quicklink-card p { font-size: 13px; color: var(--desc); margin: 0; }

/* ── 작업순서 ─────────────────────────────────────────────── */
.cc-process { padding: 88px 0; background: var(--bg); }
.cc-steps { list-style: none; max-width: 680px; margin-top: 32px; }
.cc-steps li { display: flex; gap: 22px; padding: 22px 0; border-bottom: 1px solid var(--border); }
.cc-steps li:last-child { border-bottom: none; }
.cc-steps li > span { font-size: 22px; font-weight: 800; color: var(--accent); min-width: 44px; }
.cc-steps li div strong { display: block; margin-bottom: 4px; font-size: 16px; }
.cc-steps li div p { margin: 0; color: var(--desc); font-size: 14px; }

/* ── FAQ ──────────────────────────────────────────────────── */
.cc-faq { padding: 88px 0; background: var(--mid-band); }
.cc-faq-list { max-width: 800px; margin-top: 24px; }
.cc-faq-item { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 18px 22px; margin-bottom: 12px; }
.cc-faq-item summary { cursor: pointer; font-weight: 700; font-size: 16px; list-style: none; }
.cc-faq-item summary::-webkit-details-marker { display: none; }
.cc-faq-item summary::after { content: '+'; float: right; font-size: 20px; color: var(--accent); }
.cc-faq-item[open] summary::after { content: '\2212'; }
.cc-faq-item p { margin: 12px 0 0; color: var(--desc); }

/* ── Closing (B-25: FAQ 직후, 650px 고정, 중앙 흰 카피 + cream 보더 버튼) ── */
.cc-closing { height: 650px; display: flex; align-items: center; justify-content: center; }
.cc-closing-overlay {
  position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center;
  gap: 26px; text-align: center; padding: 40px;
}
.cc-closing-copy { font-size: 30px; font-weight: 700; line-height: 1.4; color: #fff; margin: 0; text-shadow: 0 2px 14px rgba(0,0,0,.4); }
.cc-btn-closing {
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid #F4F4ED; color: #F4F4ED;
  padding: 14px 34px; font-size: 15px; font-weight: 700; border-radius: var(--radius-btn);
  transition: background .2s, color .2s;
}
.cc-btn-closing:hover { background: #F4F4ED; color: var(--deep); }
@media (max-width: 560px) { .cc-closing-copy { font-size: 22px; } .cc-closing { height: 520px; } }

/* ── 푸터 (B-26: deep 배경, 순서 연락처→시공사례→브랜드→사이트링크) ── */
.cc-footer { background: var(--deep); color: #9a9690; padding: 56px 24px 24px; }
.cc-footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.3fr 1.1fr 1.1fr 1fr; gap: 32px;
}
.cc-footer h3 { color: #fff; font-size: 13px; font-weight: 700; margin-bottom: 14px; opacity: .85; }
.cc-footer-biz { font-size: 13px; line-height: 1.7; margin: 0 0 16px; color: #b7b3ac; }
.cc-footer-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cc-footer-btn {
  display: inline-flex; align-items: center; padding: 9px 18px; font-size: 13px; font-weight: 700;
  border-radius: var(--radius-btn); background: var(--accent); color: var(--deep);
}
.cc-footer-btn-outline { background: transparent; border: 1px solid #4a4a4a; color: #d8d5cf; }
.cc-footer-portfolio-links, .cc-footer-sitelinks { display: flex; flex-direction: column; }
.cc-footer-portfolio-links a, .cc-footer-sitelinks a { font-size: 13px; padding: 4px 0; color: #9a9690; }
.cc-footer-portfolio-links a:hover, .cc-footer-sitelinks a:hover { color: #fff; }
.cc-footer-brand .cc-logo { font-size: 18px; color: #fff; }
.cc-footer-brand p { font-size: 12px; color: #847f77; margin-top: 10px; line-height: 1.7; }
.cc-copyright { max-width: 1200px; margin: 32px auto 0; padding-top: 20px; border-top: 1px solid #2c2c2c; font-size: 12px; color: #6e6a63; }

/* ── 하단 고정 상담바 (모바일 전용: 상담하기 + 전화) ───────── */
.cc-sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 12px 20px; background: var(--bar-chrome);
  border-top: 1px solid #E5E7EB; box-shadow: 0 -6px 22px rgba(0,0,0,.08);
  transform: translateY(100%); opacity: 0;
  transition: transform .3s ease, opacity .3s ease;
}
.cc-sticky-cta.is-visible { transform: translateY(0); opacity: 1; }
.cc-sticky-cta .cc-btn-consult { flex: 1; padding: 12px 20px; font-size: 15px; }
.cc-btn-sticky-call { background: var(--deep); color: #fff; }
.cc-btn-sticky-call:hover { background: #2b2b2b; }
@media (min-width: 861px) {
  .cc-sticky-cta { display: none !important; }
}

/* ── 애니메이션 훅 (CLAUDE.md 서브페이지 표준) ────────────── */
[data-anim] { opacity: 0; transform: translateY(22px); transition: opacity .5s ease, transform .5s ease; }
[data-anim].is-in { opacity: 1; transform: none; }
[data-anim="slide-left"] { transform: translateX(-22px); }
[data-anim="slide-left"].is-in { transform: none; }
[data-anim="scale-in"] { transform: scale(.95); }
[data-anim="scale-in"].is-in { transform: none; }
[data-anim][data-delay="1"] { transition-delay: .05s; }
[data-anim][data-delay="2"] { transition-delay: .1s; }
[data-anim][data-delay="3"] { transition-delay: .15s; }
[data-anim][data-delay="4"] { transition-delay: .2s; }
[data-anim][data-delay="5"] { transition-delay: .25s; }

/* ── 서브페이지 본문 구조화 컴포넌트 (CLAUDE.md 서브페이지 표준) ── */
.cc-content-eyebrow { display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--accent); margin: 40px 0 8px; }
.cc-content-eyebrow:first-child { margin-top: 0; }
.cc-content-body h2 { font-size: 21px; margin: 0 0 14px; }
.cc-list { list-style: none; margin: 4px 0 22px; max-width: 720px; }
.cc-list li { position: relative; padding-left: 18px; margin-bottom: 8px; color: var(--desc); }
.cc-list li::before { content: ""; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.cc-table { border-collapse: collapse; width: 100%; max-width: 640px; margin: 6px 0 26px; font-size: 14px; }
.cc-table th, .cc-table td { border: 1px solid var(--border); padding: 10px 14px; text-align: left; }
.cc-table th { width: 30%; background: var(--bg-soft); color: var(--ink); font-weight: 700; }
.cc-table td { color: var(--desc); }
.cc-symptom-list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 6px 0 26px; }
.cc-symptom-item { border: 1px solid var(--border); border-radius: var(--radius-card); padding: 16px 18px; background: var(--bg-soft); }
.cc-symptom-item strong { display: block; margin-bottom: 6px; font-size: 15px; }
.cc-symptom-desc { color: var(--desc); font-size: 14px; margin: 0; }
.cc-checklist-list { list-style: none; margin: 6px 0 26px; max-width: 720px; }
.cc-checklist-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.cc-checklist-item:last-child { border-bottom: none; }
.cc-checklist-item::before { content: "\2713"; color: var(--accent); font-weight: 800; }
.cc-checklist-text strong { display: block; margin-bottom: 2px; }
.cc-content-body .cc-faq-list { max-width: 800px; margin: 6px 0 8px; }
.cc-content-body .cc-steps { max-width: 680px; margin: 6px 0 26px; }
.cc-content-closing-line { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--border); font-size: 16px; color: var(--ink); }

/* ── 시공 갤러리·후기 상세 본문 (사진 1장 · 맨 위 고정 550×410) ──── */
.cc-detail-block {
  display: flex; flex-direction: column; background: var(--bg);
  font-family: "Pretendard Variable", Pretendard, "Noto Sans KR", sans-serif;
}
.cc-detail-img img {
  width: 550px; height: 410px; object-fit: cover;
  border-radius: 18px; display: block;
}
.cc-detail-text { margin-top: 24px; }
.cc-detail-label { display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; color: #9CA3AF; margin-bottom: 8px; }
.cc-detail-block .cc-detail-text > h2 { font-size: 24px; font-weight: 700; margin: 0 0 14px; color: var(--ink); }
.cc-content-body .cc-detail-body { font-size: 15px; line-height: 1.9; color: #4B5563; max-width: none; }
.cc-content-body .cc-detail-body p { margin: 0 0 12px; }
.cc-content-body .cc-detail-body strong { color: var(--ink); }
@media (max-width: 640px) { .cc-symptom-list { grid-template-columns: 1fr; } }

/* ── 시공전/시공중/시공후 한 줄 (있는 장만 표시) ──────────── */
.cc-progress-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; max-width: 780px; margin: 28px 0; }
.cc-progress-item { margin: 0; }
.cc-progress-item img { width: 100%; height: 180px; object-fit: cover; border-radius: 10px; display: block; }
.cc-progress-item figcaption { margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--ink); }

/* ── 관련 사례 카드 2장 + 전체보기 ─────────────────────────── */
.cc-related-cases { margin-top: 40px; }
.cc-related-cases-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 12px 0 16px; }
@media (max-width: 560px) { .cc-related-cases-grid { grid-template-columns: 1fr; } }

/* ── 반응형 ───────────────────────────────────────────────── */
@media (max-width: 900px) {
  .cc-hero { min-height: 520px; }
  .cc-quicklinks-grid { grid-template-columns: repeat(2, 1fr); }
  .cc-brand-intro-images { grid-template-columns: repeat(2, 1fr); }
  .cc-portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .cc-portfolio-list, .cc-reviews-list, .cc-sitemap-list { grid-template-columns: repeat(2, 1fr); }
  .cc-footer-inner { grid-template-columns: 1fr 1fr; }
  .cc-contact-cards { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .cc-quicklinks-grid, .cc-brand-intro-images, .cc-portfolio-grid, .cc-portfolio-list, .cc-reviews-list, .cc-sitemap-list, .cc-footer-inner {
    grid-template-columns: 1fr;
  }
  .cc-hero-inner { padding-bottom: 56px; }
}

/* ── Guide 허브 / Guide 상세 관련사례 (2026 규격) ─────────── */
.cc-guide-hub { padding: 72px 0 96px; }
.cc-guide-hub-inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; text-align: center; }
.cc-guide-hub .cc-body-text { margin: 0 auto; }
.cc-guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 36px 0 28px; text-align: left; }
.cc-guide-card[hidden] { display: none; }
.cc-guide-card .cc-portfolio-body p { font-size: 14px; color: var(--desc); margin: 0 0 10px; }
.cc-guide-more { display: block; margin: 0 auto; padding: 10px 28px; background: none; border: 1px solid var(--border); border-radius: var(--radius-btn); font-weight: 600; cursor: pointer; }
.cc-guide-related .cc-related-cases-grid { grid-template-columns: repeat(3, 1fr); }
.cc-guide-related .cc-portfolio-thumb { aspect-ratio: auto; height: 180px; }
@media (max-width: 900px) { .cc-guide-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) {
  .cc-guide-grid, .cc-guide-related .cc-related-cases-grid { grid-template-columns: 1fr; }
  .cc-guide-related .cc-portfolio-thumb { height: 160px; }
  .cc-subhero-content h1, .cc-hero-keyword, .cc-content-body h2, .cc-portfolio-body h3, .cc-closing-copy { word-break: keep-all; }
  .cc-nav-mobile { display: none; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 10px 12px; }
  .cc-nav-mobile.is-open { display: grid; }
  .cc-nav-mobile a { padding: 10px 2px; font-size: 13px; text-align: center; white-space: nowrap; border-bottom: none; }
}

/* ══ 모노형 프레임 (1+5+60) — 탑심플 · 서비스3+더보기 · 작업완료예 · 모바일 줄바꿈 ══ */
:root { --col: 1080px; }
body, p, li, h1, h2, h3, h4, a, button, .dy-card, .cc-footer, .cc-nav {
  word-break: keep-all; overflow-wrap: break-word; line-break: strict;
}
.cc-section-inner, .dy-col { max-width: var(--col); margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }

/* 헤더: 서브페이지는 항상 솔리드 */
.cc-header.is-solid { background: var(--bar-chrome); border-bottom-color: #E5E7EB; box-shadow: 0 1px 16px rgba(0,0,0,.06); }
.cc-header.is-solid .cc-logo, .cc-header.is-solid .cc-nav a { color: var(--ink); }
.cc-nav-mobile { display: none; }
body:not(.home) .site-main { padding-top: 78px; }

/* 히어로: h1=키워드가 가장 크게 */
.cc-hero-keyword { font-size: clamp(36px, 6vw, 56px); }
.cc-hero-brand { font-size: 20px; margin: 0 0 14px; animation: none; }

/* 홈 섹션 */
.dy-home-sec { padding: 72px 0; }
.dy-home-sec.dy-alt { background: var(--bg-soft); }
.dy-home-sec h2 { margin-bottom: 28px; }
.dy-all { margin: 24px 0 0; }

/* 큰 이미지 카드 그리드: 3열 1줄 */
.dy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dy-grid-2 { grid-template-columns: repeat(2, 1fr); }
.dy-card { display: block; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.dy-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,.08); }
.dy-card-img { aspect-ratio: 16 / 9; background: var(--mid-band); }
.dy-card-img img { width: 100%; height: 100%; object-fit: cover; }
.dy-card-body { padding: 18px 20px 20px; }
.dy-card-body h3 { margin: 0 0 8px; font-size: 18px; }
.dy-card-body p { margin: 0 0 10px; color: var(--desc); font-size: 14px; }
.dy-more { margin-top: 22px; }
.dy-more summary { display: block; width: max-content; margin: 0 auto 20px; padding: 12px 28px; border: 1px solid var(--deep); border-radius: var(--radius-btn); font-weight: 700; cursor: pointer; list-style: none; }
.dy-more summary::-webkit-details-marker { display: none; }
.dy-more[open] summary { display: none; }

/* 세부/허브 본문 */
.dy-page { padding-bottom: 40px; }
.dy-top { padding-top: 28px; padding-bottom: 0; }
.dy-top-label { margin: 0 0 10px; font-size: 14px; font-weight: 700; letter-spacing: .04em; color: var(--desc); }
.dy-top img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-card); }
.dy-head { padding-top: 28px; padding-bottom: 4px; }
.dy-head h1 { font-size: clamp(28px, 4.4vw, 40px); line-height: 1.3; margin: 0 0 10px; }
.dy-sub { color: var(--desc); font-size: 17px; margin: 0; }
.dy-body h2, .dy-faq h2, .dy-related h2, .dy-col > h2 { font-size: clamp(21px, 2.8vw, 26px); margin: 40px 0 14px; }
.dy-body p, .dy-body li { font-size: 16px; color: #333; }
.dy-body ul { padding-left: 20px; }
.dy-body table { width: 100%; border-collapse: collapse; margin: 8px 0 12px; font-size: 15px; }
.dy-body th, .dy-body td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; vertical-align: top; }
.dy-body th { background: var(--mid-band); }
.dy-faq h3 { font-size: 17px; margin: 22px 0 6px; }
.dy-faq p { color: #333; margin: 0; }
.dy-cta { text-align: center; margin: 36px 0 0; }

/* 모바일: 탑 가로 4칸, 그리드 1열, 줄바꿈 정돈 */
@media (max-width: 767px) {
  .cc-header-inner { padding: 10px 16px 6px; }
  .cc-header, .cc-header.is-solid { background: var(--bar-chrome); }
  .cc-logo, .cc-header .cc-logo { color: var(--ink); font-size: 19px; }
  .cc-nav, .cc-header .cc-header-inner .cc-btn-consult, .cc-burger { display: none; }
  .cc-nav-mobile { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding: 0 8px 8px; background: var(--bar-chrome); border: 0; }
  .cc-nav-mobile a { padding: 8px 2px; border: 0; text-align: center; font-size: 14px; font-weight: 700; color: var(--ink); white-space: nowrap; }
  .cc-nav-mobile .cc-nav-mobile-cta { background: var(--accent); border-radius: var(--radius-btn); color: var(--ink) !important; }
  .cc-hero { margin-top: -96px; padding-top: 96px; min-height: 560px; }
  body:not(.home) .site-main { padding-top: 96px; }
  .dy-grid, .dy-grid-2 { grid-template-columns: 1fr; }
  .cc-section-inner, .dy-col { padding-left: 16px; padding-right: 16px; }
  .dy-home-sec { padding: 52px 0; }
  .dy-body table { font-size: 13px; }
  .dy-body th, .dy-body td { padding: 8px; }
}
