/* ==========================================================================
   layout.css — 전역 팔레트 · 공통 레이아웃 · 공통 부품
   --------------------------------------------------------------------------
     · 바탕은 흰색, 글자는 검정. 색 포인트는 두지 않습니다.
     · 강조는 '검정 블록(.blk)' 과 '얇은 실선(hairline)' 으로만 만듭니다.
     · 폭은 .w_inner(--inner-size) 한 가지만 씁니다.
   ========================================================================== */
:root {
  /* ── 색 : 무채색 한 벌 ───────────────────────────────────── */
  --primary-color: #111111; /* 검정 (버튼 · 블록 · 강조) */
  --secondary-color: #f4f4f4; /* 옅은 회색 면 */
  --point-color: #111111; /* 포인트도 검정 (색을 쓰지 않는 테마) */
  --lightgray-color: #f7f7f7;
  --white-color: #ffffff;
  --footerbg-color: #f4f4f4;
  --background-color: #fafafa;

  --line-color: #e3e3e3; /* 기본 실선 */
  --line-strong: #111111; /* 강조 실선 (라벨 밑줄) */
  --text-color: #111111;
  --text-color-sub: #6f6f6f; /* 본문 보조 글자 */
  --text-color-mute: #9b9b9b; /* 라벨 · 날짜 */

  /* ── 폭 ─────────────────────────────────────────────────── */
  --inner-size: 1440px;

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

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

}

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.5;
  color: var(--text-color);
  background: var(--white-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: var(--sec-pad) 0;
}

.default.bg {
  background: var(--secondary-color);
}

@media (max-width: 1024px) {
  :root {
    --sec-pad: 10rem;
  }
}

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

/* ==========================================================================
   공통 부품 ① — 라벨 + 밑줄
   --------------------------------------------------------------------------
   작은 소문자 라벨 아래로 실선이 열 끝까지 이어지는 형태.
   글 묶음 · 카드 · 섹션 머리말 어디에나 쓴다.
   ========================================================================== */
.lb_rule {
  display: block;
  padding-bottom: 1.2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--line-strong);

  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  color: var(--text-color);
}

/* 옅은 변형 : 실선을 회색으로 */
.lb_rule.thin {
  border-bottom-color: var(--line-color);
  color: var(--text-color-mute);
}

/* ==========================================================================
   공통 부품 ② — 섹션 머리말
   ========================================================================== */
.sec_head {
  margin-bottom: 6.4rem;
}

/* 메인 섹션 제목 : 크기는 이 규칙에서만 관리한다 (각 섹션 파일에서 재정의 금지) */
.sec_head h2,
.title h2 {
  font-size: 4.4rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.035em;
}

.sec_head .desc,
.title .desc {
  max-width: 62rem;
  margin-top: 2rem;

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

/* 제목 안 강조 단어 */
.sec_head h2 em,
.title h2 em {
  font-style: normal;
  font-weight: inherit;
}

.title {
  margin-bottom: 5.6rem;
}

@media (max-width: 1024px) {
  .sec_head {
    margin-bottom: 4.8rem;
  }

  .sec_head h2,
  .title h2 {
    font-size: 3.6rem;
  }
}

@media (max-width: 768px) {
  .sec_head h2,
  .title h2 {
    font-size: 2.8rem;
  }

  .sec_head .desc,
  .title .desc {
    font-size: 1.4rem;
  }
}

/* ==========================================================================
   공통 부품 ③ — 검정 블록
   --------------------------------------------------------------------------
   사진 아래·옆에 걸쳐 놓는 검정 정사각형. 라벨 한 줄 + 화살표.
   <a class="blk"><span class="bl_tx">about</span><i class="bl_ar"></i></a>
   ========================================================================== */
.blk {
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  width: 12.8rem;
  height: 12.8rem;
  padding: 2rem;

  background: var(--primary-color);
  color: var(--white-color);
  transition: background 0.3s;
}

.blk:hover {
  background: #000;
}

.blk .bl_tx {
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--white-color);
}

/* 화살표는 CSS 로 그린다 (아이콘 라이브러리에 기대지 않는다) */
.blk .bl_ar {
  position: relative;
  display: block;
  width: 2.4rem;
  height: 1px;
  background: var(--white-color);
  transition: transform 0.3s;
}

.blk .bl_ar::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;

  width: 0.7rem;
  height: 0.7rem;
  border-top: 1px solid var(--white-color);
  border-right: 1px solid var(--white-color);
  transform: translateY(-50%) rotate(45deg);
}

.blk:hover .bl_ar {
  transform: translateX(0.4rem);
}

@media (max-width: 768px) {
  .blk {
    width: 10.4rem;
    height: 10.4rem;
    padding: 1.6rem;
  }
}

/* ==========================================================================
   공통 부품 ④ — 슬라이드 카운터 + 진행선
   ========================================================================== */
.meter {
  display: flex;
  align-items: center;
  gap: 2.4rem;

  font-size: 1.3rem;
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
  color: var(--text-color-mute);
}

.meter .cur {
  color: var(--text-color);
}

.meter .bar {
  flex: 1;
  display: block;
  height: 1px;
  background: var(--line-color);
}

.meter .bar i {
  display: block;
  width: 20%;
  height: 100%;
  background: var(--text-color);
  transition: width 0.6s;
}

/* 화살표 버튼 (슬라이드 좌우) */
.sld_nav {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 4.8rem;
  height: 4.8rem;
  padding: 0;

  background: none;
  border: 0;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.3s;
}

.sld_nav:hover {
  opacity: 1;
}

.sld_nav::before {
  content: "";
  width: 1.2rem;
  height: 1.2rem;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
}

.sld_nav.prev::before {
  transform: rotate(-135deg);
}

.sld_nav.next::before {
  transform: rotate(45deg);
}

/* ==========================================================================
   버튼
   ========================================================================== */
/* 외곽선 버튼 : 검정 테두리 → 호버 시 검정 채움 */
.default_btn {
  position: relative;
  z-index: 1;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 5.2rem;

  padding: 0 3.2rem;
  overflow: hidden;

  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-color);
  background: transparent;
  border: 1px solid var(--text-color);
  border-radius: 0;
  white-space: nowrap;
}

.default_btn:hover {
  color: var(--white-color);
}

.default_btn::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: auto;
  left: 0;
  right: 0;
  z-index: -1;
  width: 100%;
  height: 0;

  background: var(--primary-color);
  transition: 0.4s;
}

.default_btn:hover::before {
  top: auto;
  bottom: 0;
  height: 100%;
}

/* 라운드 변형은 쓰지 않지만(각진 테마) 게시판 스킨 호환을 위해 남겨 둔다 */
.default_btn.round,
.default_btn.round::before {
  border-radius: 0;
}

.default_btn.round {
  height: 5.2rem;
  padding: 0 3.2rem;
  font-size: 1.4rem;
  font-weight: 500;
}

/* 채움 버튼 : 검정 바탕 + 오른쪽 화살표 */
.icon_btn {
  position: relative;
  z-index: 1;

  display: inline-flex;
  align-items: center;
  height: 5.2rem;

  padding: 0 8rem 0 3.2rem;
  overflow: hidden;

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

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

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

.icon_btn::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 5.2rem;
  height: 100%;

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

/* 게시판 글쓰기 · 취소 버튼 (스킨에서 사용) */
.icon_btn_write,
.icon_btn_cancel {
  position: relative;
  z-index: 1;

  margin-top: 4rem;

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

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

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

.icon_btn_cancel::before {
  background: #6f6f6f;
}

.icon_btn_write::after,
.icon_btn_cancel::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5.2rem;
  height: 100%;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.12) url(../lib/icon/edit-3.svg) no-repeat
    center center;
  filter: invert();
}

.icon_btn_cancel::after {
  background-image: url(../lib/icon/x.svg);
}

/* ==========================================================================
   유틸리티
   ========================================================================== */
.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.3rem;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--text-color-mute);
}

.pg_current {
  display: inline-block;
  background: var(--primary-color);
  border: 1px solid var(--primary-color);
  color: #fff;
  font-weight: 500;
  height: 30px;
  line-height: 30px;
  padding: 0 10px;
  min-width: 30px;
  border-radius: 0;
}

.pg_wrap {
  clear: both;
  float: none;
  display: block;
  margin-top: 4rem;
}
