:root {
  /* 흰 바탕이 기본, 섹션을 하나씩 건너뛰며 엷은 회색을 깔아 지그재그로 구분한다.
     (엷은 회색 섹션 = .default.bg → --lightgray-color) */
  --primary-color: #16181a;
  --secondary-color: #e9e8e5;
  --point-color: #4d5860;
  --lightgray-color: #f4f3f1;
  --white-color: #ffffff;
  --footerbg-color: transparent;
  --background-color: #ffffff;

  --line-color: #e2e1dd;
  --text-color: #16181a;
  /* 본문 보조 텍스트 : 각 섹션에서 광범위하게 쓰이므로 여기서 한 번만 정의 */
  --text-color-sub: #77787a;

  /* 어두운 블록(아이콘 배지 · 채워진 화살표 버튼)에 쓰는 먹색 */
  --dark-color: #16181a;
  --dark-line: rgba(255, 255, 255, 0.16);

  /* 모서리 둥글기 : 큰 사진 블록 / 카드 / 입력칸 순.
     테마 전체가 이 세 값만 씁니다. */
  --radius-l: 2.4rem;
  --radius-m: 1.6rem;
  --radius-s: 1.2rem;

  /* 포인트 색의 반투명 변형 : 그림자 · 글로우 · 포커스 링에 함께 씁니다.
     --point-color 를 바꿀 때 이 세 줄도 같은 색으로 맞춰주세요. */
  --point-a14: rgba(77, 88, 96, 0.14);
  --point-a22: rgba(77, 88, 96, 0.22);
  --point-a32: rgba(77, 88, 96, 0.32);

  --inner-size: 1440px;
  /* ── 서브페이지 · 게시판이 쓰는 값 ──────────────────────────
     이 이름들은 base.css(모던 공용)에도 있지만 거기 값은 모던의
     회색입니다. 여기서 이 테마 색으로 덮어써야 메인과 서브페이지의
     글자색이 같아집니다. 색을 바꾸실 때 위 값과 함께 맞춰 주세요. */
  --body-color:      #16181a; /* 본문 (서브페이지 · 게시판) */
  --headline-color:  #16181a; /* 제목 (서브페이지 · 게시판) */
  --muted-color:     #77787a; /* 보조 설명 · 캡션 */
  --inner-pad:       2.4rem; /* .inner 좌우 여백. 서브 상단 · LNB 줄이 이 값을 따라간다 */

  /* ── 포인트 색에서 뽑아 쓰는 값 ─────────────────────────────
     base.css(모던 공용)에도 같은 이름이 있지만 거기 값은 모던의
     빨강 계열입니다. --point-color 를 바꾸시면 아래도 함께
     맞춰 주셔야 호버 · 옅은 면 색이 따라옵니다. */
  --dark-rgb:      22, 24, 26; /* --dark-color 의 rgb (반투명 막용) */
  --point-dark:    #3f484f; /* 포인트 호버 (어둡게) */
  --point-light:   #868d93; /* 옅은 강조 — 글자 · 테두리 */
  --point-on:      #ffffff; /* 포인트 위에 얹는 글자색 */
  --point-soft:    #f1f2f2; /* 아주 옅은 배경면 */

}

html {
  font-size: 62.5%;
}

@media (max-width: 1280px) {
  html {
    font-size: clamp(9px, 0.78125vw, 10px);
  } /* ~9-10px */
}
@media (max-width: 1024px) {
  html {
    font-size: clamp(9px, 0.9765625vw, 10px);
  } /* ~9-10px */
}
@media (max-width: 768px) {
  html {
    font-size: clamp(8px, 1.3020833vw, 10px);
  } /* ensure min 8px */
}
@media (max-width: 480px) {
  html {
    font-size: clamp(8px, 2.0833333vw, 10px);
  }
}

@media (min-width: 480px) {
  a[href^="tel"] {
    pointer-events: none; /* 클릭 차단 */
    cursor: default; /* 클릭 불가 표시 */
  }
}

body {
  font-size: 1.5rem;
  line-height: 1.6;
  color: var(--text-color);
  background: var(--background-color);
  word-break: keep-all;
  hyphens: auto;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.inner {
  max-width: var(--inner-size);
  margin: 0 auto;
  padding: 0 2.4rem;
}

@media (max-width: 768px) {
  .inner {
    padding: 0 1.6rem;
  }
}

.w_inner {
  max-width: var(--inner-size);
  margin: 0 auto;
  padding: 0 2.4rem;
}

@media (max-width: 768px) {
  .w_inner {
    padding: 0 1.6rem;
  }
}

.w_inner_r {
  max-width: calc((100% - var(--inner-size)) / 2 + var(--inner-size));
  margin: 0 0 0 auto;
  padding: 0 0 0 2.4rem;
}

@media (max-width: 768px) {
  .w_inner_r {
    padding: 0 1.6rem;
  }
}

.default {
  position: relative;
  padding: 10rem 0;
}

/* 지그재그의 '회색' 차례. 흰 섹션과 번갈아 붙입니다
   (index.php 순서 : 소개 흰 → 시공 분야 회색 → 시공 사례 흰 → 견적 회색 → 오시는 길 흰) */
.default.bg {
  background: var(--lightgray-color);
}

/* 어두운 섹션 */
.default.dark {
  background: var(--dark-color);
  color: var(--white-color);
}

@media (max-width: 1024px) {
  .default {
    padding: 8rem 0;
  }
}

@media (max-width: 768px) {
  .default {
    padding: 6.4rem 0;
  }
}

.title {
  margin-bottom: 4.8rem;
}

/* 메인 섹션 제목 : 크기는 이 규칙에서만 관리한다 (각 섹션 파일에서 재정의 금지).
   대문자로 바꾸지 않고 문장 그대로, 아주 가는 굵기(100)로 크게 쓴다. */
.title h2 {
  font-size: 4.4rem;
  font-weight: 100;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

@media (max-width: 1280px) {
  .title h2 {
    font-size: 4rem;
  }
}

@media (max-width: 1024px) {
  .title h2 {
    font-size: 3.6rem;
  }
}

@media (max-width: 768px) {
  .title {
    margin-bottom: 3.2rem;
  }

  .title h2 {
    font-size: 2.8rem;
  }
}

/* 제목 안 강조 단어 (색상만 각 섹션에서 지정) */
.title h2 em {
  font-style: normal;
  font-weight: inherit;
}

.title .desc {
  max-width: 46rem;
  margin-top: 1.6rem;

  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-color-sub);
}

@media (max-width: 768px) {
  .title .desc {
    font-size: 1.4rem;
  }
}

/* ==========================================================================
   공통 링크 · 버튼 (알약 버튼 · 원형 화살표 · 원형 아이콘 배지)
   ========================================================================== */

/* 알약 버튼 : 기본은 흰 바탕, .dark 는 먹색, .line 은 테두리만 */
.pill_btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  height: 4.8rem;
  padding: 0 2.8rem;
  border: 1px solid transparent;
  border-radius: 4.8rem;

  background: var(--white-color);
  color: var(--text-color);

  font-size: 1.4rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: 0.3s;
}

.pill_btn .icon {
  width: 1.6rem;
  height: 1.6rem;
  stroke: currentColor;
  stroke-width: 1.8;
  transition: transform 0.35s;
}

.pill_btn:hover {
  background: var(--primary-color);
  color: var(--white-color);
}

.pill_btn:hover .icon {
  transform: translateX(0.3rem);
}

.pill_btn.dark {
  background: var(--primary-color);
  color: var(--white-color);
}

.pill_btn.dark:hover {
  background: var(--point-color);
}

.pill_btn.line {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--white-color);
}

.pill_btn.line:hover {
  background: var(--white-color);
  border-color: var(--white-color);
  color: var(--text-color);
}

/* 밝은 바탕에서 쓰는 테두리 알약 */
.pill_btn.line_dk {
  background: transparent;
  border-color: var(--line-color);
  color: var(--text-color);
}

.pill_btn.line_dk:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white-color);
}

/* 원형 화살표 버튼 (슬라이드 이동) : 기본은 테두리, .on 은 먹색 채움 */
.cir_btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 4.4rem;
  height: 4.4rem;
  padding: 0;

  background: transparent;
  border: 1px solid var(--line-color);
  border-radius: 50%;
  color: var(--text-color);
  cursor: pointer;
  transition: 0.3s;
}

.cir_btn .icon {
  width: 1.8rem;
  height: 1.8rem;
  stroke: currentColor;
  stroke-width: 1.6;
}

.cir_btn:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white-color);
}

.cir_btn.on {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white-color);
}

.cir_btn.on:hover {
  background: var(--point-color);
  border-color: var(--point-color);
}

/* 스와이퍼가 끝에 닿으면 비활성 */
.cir_btn.swiper-button-disabled {
  opacity: 0.35;
  cursor: default;
}

/* 사진 위에 얹는 흰 원형 버튼 */
.cir_btn.on_photo {
  background: rgba(255, 255, 255, 0.9);
  border-color: transparent;
  color: var(--text-color);
}

.cir_btn.on_photo:hover {
  background: var(--white-color);
  color: var(--text-color);
}

/* 먹색 원형 아이콘 배지 (단계 목록 앞머리) */
.ic_badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 4rem;
  height: 4rem;

  background: var(--primary-color);
  border-radius: 50%;
  color: var(--white-color);
}

.ic_badge .icon {
  width: 1.8rem;
  height: 1.8rem;
  stroke: currentColor;
  stroke-width: 1.6;
}

/* 텍스트 + 화살표 링크 */
.mg_more {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;

  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text-color);
  white-space: nowrap;
  transition: 0.3s;
}

.mg_more .icon {
  width: 1.6rem;
  height: 1.6rem;
  stroke: currentColor;
  stroke-width: 1.8;
  transition: transform 0.35s;
}

.mg_more:hover {
  color: var(--point-color);
}

.mg_more:hover .icon {
  transform: translateX(0.4rem);
}

/* 어두운 배경 위에서 */
.dark .mg_more,
.mg_more.on_dark {
  color: var(--white-color);
}

.icon_btn {
  position: relative;
  z-index: 1;

  display: inline-flex;
  align-items: center;
  height: 4.8rem;
  border-radius: 4.8rem;

  padding: 0 9.6rem 0 4.8rem;
  overflow: hidden;

  color: var(--white-color);
  white-space: nowrap;
}

.icon_btn::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  z-index: -1;
  width: 100%;
  height: 4.8rem;
  border-radius: 4.8rem;

  background: var(--primary-color);
}

.icon_btn::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 4.8rem;
  height: 4.8rem;
  border-radius: 50%;

  background: rgba(0, 0, 0, 0.1) url(../lib/icon/arrow-right.svg) no-repeat
    center center;
  filter: invert();
}

.icon_btn_write {
  position: relative;
  z-index: 1;

  margin-top: 4rem;

  display: inline-flex;
  align-items: center;
  height: 4.8rem;
  border-radius: 4.8rem;
  padding: 0 2.4rem 0 8rem;
  overflow: hidden;

  color: var(--white-color);
  white-space: nowrap;
}

.icon_btn_write::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 4.8rem;
  border-radius: 4.8rem;
  background: var(--primary-color);
}

.icon_btn_write::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4.8rem;
  height: 4.8rem;
  border-radius: 4.8rem;
  background: rgba(0, 0, 0, 0.1) url(../lib/icon/edit-3.svg) no-repeat center
    center;

  filter: invert();
}

.icon_btn_cancel {
  position: relative;
  z-index: 1;

  margin-top: 4rem;

  display: inline-flex;
  align-items: center;
  height: 4.8rem;
  border-radius: 4.8rem;
  padding: 0 2.4rem 0 8rem;
  overflow: hidden;

  color: var(--white-color);
  white-space: nowrap;
}

.icon_btn_cancel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 4.8rem;
  border-radius: 4.8rem;
  background: var(--point-color);
}

.icon_btn_cancel::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4.8rem;
  height: 4.8rem;
  border-radius: 4.8rem;
  background: rgba(0, 0, 0, 0.1) url(../lib/icon/x.svg) no-repeat center center;

  filter: invert();
}

.flx {
  display: flex;
  gap: 3rem;
}

.flx > * {
  flex: 1;
  min-width: 0;
}

hr.hr {
  display: block;
  border: 1px solid transparent;
  margin: 4rem 0;
}
hr.hr_line {
  display: block;
  border: 1px solid transparent;
  border-top: 1px solid var(--line-color);
  margin: 12rem 40%;
}

.table_responsive {
  overflow-x: auto;
}

.iframe_wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.iframe_wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.design {
  margin-top: 1.6rem;
  font-size: 1.5rem;
  font-weight: 300;
  text-transform: uppercase;
}

.pg_current {
  display: inline-block;
  background: var(--primary-color);
  border: 1px solid var(--primary-color);
  color: #fff;
  font-weight: bold;
  height: 30px;
  line-height: 30px;
  padding: 0 10px;
  min-width: 30px;
  border-radius: 3px;
}
.pg_wrap {
  clear: both;
  float: none;
  display: block;
  margin-top: 4rem;
}

/* 좁은 화면에서는 .inner 여백이 줄어든다. 서브 상단 · LNB 줄도 함께 따라간다. */
@media (max-width: 768px) {
  :root { --inner-pad: 1.6rem; }
}
