:root {
  /* 팔레트 — 모노크롬 + 테라코타 */
  --primary-color: #202020; /* 니어 블랙 */
  --dark-color: #111111;
  --secondary-color: #f5f4f2; /* 웜 오프화이트 */
  --tertiary-color: #2a3942;
  --point-color: #ce6455; /* 테라코타 */
  --point-dark: #b04f41;
  --point-light: #e0938a;
  --accent-blue: #72a5c7;

  --darkgray-color: #999999;
  --lightgray-color: #f7f6f5;
  --white-color: #ffffff;
  --footerbg-color: #ffffff;
  --background-color: #f7f6f5;

  --line-color: #e7e5e1;
  --line-dark: rgba(255, 255, 255, 0.2);
  --ghost-color: rgba(0, 0, 0, 0.04); /* 고스트 워터마크 타이포 */
  --body-color: #202020;
  --text-color: #333333;
  --muted-color: #444444;

  /* 타이포 */
  --serif-font: "Noto Serif KR", "Nanum Myeongjo", serif;
  --display-font: "Times New Roman", Times, "Noto Serif KR", serif;
  --eng-font: "Jost", "Pretendard Variable", sans-serif;

  --inner-size: 1440px;
  --w-inner-size: 1640px;
}

html {
  font-size: 62.5%;
}

@media (max-width: 1280px) {
  html {
    font-size: clamp(9px, 0.78125vw, 10px);
  }
}
@media (max-width: 1024px) {
  html {
    font-size: clamp(9px, 0.9765625vw, 10px);
  }
}
@media (max-width: 768px) {
  html {
    font-size: clamp(8px, 1.3020833vw, 10px);
  }
}
@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.6rem;
  line-height: 1.7;
  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;
}

::selection {
  background: var(--primary-color);
  color: var(--white-color);
}

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

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

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

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

/* 공통 섹션 — 넉넉한 여백 */
.default {
  position: relative;
  padding: 16rem 0;
}

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

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

/* 섹션 타이틀 — 자간 넓은 영문 라벨 + 세리프 헤드라인 */
.title {
  margin-bottom: 4.8rem;
}

.title em {
  display: block;

  font-family: var(--eng-font);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--point-color);
  margin-bottom: 1.6rem;
}

.title h2 {
  /* font-family: "GM"; */
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -0.05em;
}

.title h2::after {
  content: none;
}

.title .desc {
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 2;
  margin-top: 2.4rem;
}

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

/* 초대형 디스플레이 타이포 (Times, 가로로 살짝 늘림) */
.disp {
  font-family: var(--display-font);
  font-weight: 400;
  letter-spacing: 0.02em;
  transform: scaleX(1.08);
  transform-origin: 0 50%;
  white-space: nowrap;
}

/* 모션 헬퍼 — 글자 마스크 리빌 */
.m_w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}

.m_c {
  display: inline-block;
  transform-origin: 0% 100%;
  will-change: transform;
}

/* 고스트 워터마크 타이포 */
.ghost {
  position: absolute;
  left: 50%;
  transform: translateX(-50%) scaleX(1.08);
  z-index: 0;

  font-family: var(--display-font);
  font-size: 16vw;
  line-height: 1;
  color: var(--ghost-color);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

/* 기본 버튼 — 블랙 아웃라인, 호버 시 반전 */
.default_btn {
  position: relative;
  z-index: 1;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 5.2rem;
  min-width: 18rem;
  padding: 0 4rem;
  overflow: hidden;

  background: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);

  font-family: var(--eng-font);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-indent: 0.35em;
  text-transform: uppercase;
  white-space: nowrap;

  transition:
    color 0.35s,
    border-color 0.35s;
}

.default_btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: scaleY(0);
  transform-origin: center bottom;
  background: var(--primary-color);
  transition: transform 0.35s;
}

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

.default_btn:hover::before {
  transform: scaleY(1);
}

/* 라인 버튼 — 대시 + 텍스트 */
.line_btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 1.6rem;

  font-family: var(--eng-font);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--body-color);
  white-space: nowrap;
  transition: 0.3s;
}

.line_btn::before {
  content: "";
  display: inline-block;
  width: 4.8rem;
  height: 1px;
  background: var(--body-color);
  transition: width 0.3s;
}

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

.line_btn:hover::before {
  width: 7.2rem;
  background: var(--point-color);
}

/* 아이콘 버튼(게시판 등에서 사용) */
.icon_btn {
  position: relative;
  z-index: 1;

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

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

  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  font-family: var(--eng-font);
  font-size: 1.2rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: 0.3s;
}

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

.icon_btn::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 3.2rem;
  transform: translateY(-50%);
  width: 1.8rem;
  height: 1.8rem;

  background: url(../lib/icon/arrow-right.svg) no-repeat center center/1.8rem;
}

.icon_btn:hover::after {
  filter: invert();
}

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

  margin-top: 4rem;

  display: inline-flex;
  align-items: center;
  height: 5.2rem;
  padding: 0 3.2rem 0 6.8rem;
  overflow: hidden;

  background: var(--primary-color);
  color: var(--white-color);
  font-size: 1.4rem;
  letter-spacing: 0.1em;
  white-space: nowrap;
  transition: background 0.3s;
}

.icon_btn_write:hover {
  background: var(--point-color);
  color: var(--white-color);
}

.icon_btn_write::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 3.2rem;
  transform: translateY(-50%);
  width: 1.8rem;
  height: 1.8rem;
  background: url(../lib/icon/edit-3.svg) no-repeat center center/1.8rem;
  filter: invert();
}

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

  margin-top: 4rem;

  display: inline-flex;
  align-items: center;
  height: 5.2rem;
  padding: 0 3.2rem 0 6.8rem;
  overflow: hidden;

  border: 1px solid var(--line-color);
  background: var(--white-color);
  color: var(--muted-color);
  font-size: 1.4rem;
  letter-spacing: 0.1em;
  white-space: nowrap;
  transition: 0.3s;
}

.icon_btn_cancel:hover {
  border-color: var(--darkgray-color);
  color: var(--body-color);
}

.icon_btn_cancel::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 3.2rem;
  transform: translateY(-50%);
  width: 1.6rem;
  height: 1.6rem;
  background: url(../lib/icon/x.svg) no-repeat center center/1.6rem;
  opacity: 0.5;
}

.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;
}

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

/* 페이징 — 미니멀 */
.pg_wrap {
  clear: both;
  float: none;
  display: block;
  margin-top: 5.6rem;
  text-align: center;
}

.pg_wrap .pg_page,
.pg_current {
  display: inline-block;
  height: 3.6rem;
  line-height: 3.6rem;
  min-width: 3.6rem;
  padding: 0 1rem;
  border-radius: 0;
  font-family: var(--eng-font);
  font-size: 1.2rem;
  color: var(--muted-color);
}

.pg_current {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--primary-color);
  color: var(--primary-color);
  font-weight: 600;
}

/* ==========================================================================
   풀페이지 섹션 프레임워크 (axis08 layout.css 이식)
   - .section .default 100vh 채움 / fp-auto-height / 반응형(fp-responsive) 정리
   ========================================================================== */
.section .default {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 0; /* 상하 대칭 — 콘텐츠가 뷰포트 정중앙에 오도록 */
  overflow: hidden;

  height: 100vh;
}

.section .default > * {
  width: 100%;
}

/* 오토 높이 섹션(fp-auto-height) — 100vh 고정 대신 콘텐츠 높이만큼 */
.section.fp-auto-height .default {
  height: auto;
  padding: 12rem 0;
}

@media (max-width: 768px) {
  .section .default {
    display: block;
    position: relative;
    padding: 16rem 0;

    height: auto;
  }

  .section .default > * {
    width: auto;
  }
}

/* ==========================================================================
   메인 섹션 화이트 톤 정리
   - 메인 섹션은 화이트/오프화이트 배경 + 블랙 타이포가 기본
   - 사진·영상 섹션(intro/banner/promotion)은 섹션 내부에서 자체 다크 배경을 가짐
   - w 클래스 = 라이트 배경 섹션 표식 (헤더 화이트 전환에 사용)
   ========================================================================== */
.section {
  background: var(--white-color);
}

.section.w {
  background: var(--white-color);
}

/* fullpage 활성 페이지(메인)에서도 화이트 유지 — 오버스크롤/전환 시 톤 일치 */
html.fp-enabled body {
  background: var(--white-color);
}

/* --------------------------------------------------------------------------
   fullpage 해제 구간 (body.fp-responsive)
   - index.php 옵션: responsiveWidth 1024 / responsiveHeight 720 이하에서
     fullpage가 body에 fp-responsive 클래스를 붙이고 일반 스크롤로 전환됨
   - 이때 fullpage가 래퍼에 남겨 둔 인라인 height(px) 때문에
     콘텐츠보다 래퍼가 길어져 흰 여백이 보이거나 내용이 잘리던 문제 정리
   -------------------------------------------------------------------------- */
body.fp-responsive .section {
  height: auto !important; /* 인라인 height 무효화 */
}

/* verticalCentered 사용(fp-tableCell 래핑) 시에도 table 레이아웃/인라인 height 잔재 무효화 */
body.fp-responsive .fp-section.fp-table,
body.fp-responsive .fp-tableCell {
  display: block;
  height: auto !important;
  width: auto;
}

body.fp-responsive .section .default {
  display: block;
  height: auto;
  padding: 12rem 0;
}

body.fp-responsive .section .default > * {
  width: auto;
}

/* ==========================================================================
   섹션 등장 애니메이션 프레임워크
   - fullpage: .section.on / 일반 스크롤: .default.on 일 때 재생
   - 타이틀(.title)은 자식 순서(em → h2 → desc → 버튼)대로 0.15s 간격 자동 스태거
   - 콘텐츠는 방향 클래스 + 딜레이 클래스 조합으로 세분화
     방향: .ani_up .ani_down .ani_left .ani_right .ani_zoom .ani_fade
     딜레이: .d1 ~ .d6 (0.15s 간격)
   - 호버 효과가 있는 인터랙티브 요소에는 직접 붙이지 말고 래퍼에 붙일 것
   ========================================================================== */
.section:not(.footer) .title > *,
.default .title > * {
  transform: translate(0, 4rem);
  opacity: 0;
}

.section.on .title > *,
.default.on .title > * {
  transform: translate(0, 0);
  opacity: 1;
  transition: 0.6s;
}

.section.on .title > *:nth-child(2),
.default.on .title > *:nth-child(2) {
  transition-delay: 0.15s;
}

.section.on .title > *:nth-child(3),
.default.on .title > *:nth-child(3) {
  transition-delay: 0.3s;
}

.section.on .title > *:nth-child(4),
.default.on .title > *:nth-child(4) {
  transition-delay: 0.45s;
}

/* 흰 타이틀의 설명 톤(80%) 유지 */
.section.on .title.w > .desc,
.default.on .title.w > .desc {
  opacity: 0.8;
}

/* 콘텐츠 방향별 시작 상태 */
.section .ani_up,
.default .ani_up {
  transform: translate(0, 8rem);
  opacity: 0;
}

.section .ani_down,
.default .ani_down {
  transform: translate(0, -8rem);
  opacity: 0;
}

.section .ani_left,
.default .ani_left {
  transform: translate(-8rem, 0);
  opacity: 0;
}

.section .ani_right,
.default .ani_right {
  transform: translate(8rem, 0);
  opacity: 0;
}

.section .ani_zoom,
.default .ani_zoom {
  transform: scale(0.7);
  opacity: 0;
}

.section .ani_fade,
.default .ani_fade {
  opacity: 0;
}

/* 등장 상태 */
.section.on .ani_up,
.default.on .ani_up,
.section.on .ani_down,
.default.on .ani_down,
.section.on .ani_left,
.default.on .ani_left,
.section.on .ani_right,
.default.on .ani_right {
  transform: translate(0, 0);
  opacity: 1;
  transition: 0.7s;
}

.section.on .ani_zoom,
.default.on .ani_zoom {
  transform: scale(1);
  opacity: 1;
  transition: 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.section.on .ani_fade,
.default.on .ani_fade {
  opacity: 1;
  transition: 1.2s;
}

/* 등장 딜레이 단계 */
.section.on .d1,
.default.on .d1 {
  transition-delay: 0.15s;
}

.section.on .d2,
.default.on .d2 {
  transition-delay: 0.3s;
}

.section.on .d3,
.default.on .d3 {
  transition-delay: 0.45s;
}

.section.on .d4,
.default.on .d4 {
  transition-delay: 0.6s;
}

.section.on .d5,
.default.on .d5 {
  transition-delay: 0.75s;
}

.section.on .d6,
.default.on .d6 {
  transition-delay: 0.9s;
}

/* ==========================================================================
   어센트 버튼 — 필(pill) 아웃라인 + 포인트 컬러 채움 상승 + ↗ 화살표 모션
   (메인 섹션 · 푸터 CTA에서 사용)
   ========================================================================== */
.accent_btn {
  position: relative;
  z-index: 1;

  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  height: 5.6rem;
  padding: 0 3.2rem;
  overflow: hidden;

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

  /* 채움(::before 0.35s)과 동기화 — 딜레이 없이 같은 속도로 전환 */
  transition:
    color 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 포인트 컬러 채움 — 아래에서 위로 차오름 */
.accent_btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: scaleY(0);
  transform-origin: center bottom;
  background: var(--primary-color);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ↗ — currentColor를 따라가는 텍스트 화살표 */
.accent_btn::after {
  content: "\2197";
  font-size: 2rem;
  line-height: 1;
  transition: transform 0.35s;
}

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

.accent_btn:hover::before {
  transform: scaleY(1);
}

.accent_btn:hover::after {
  transform: translate(0.3rem, -0.3rem);
}

/* 흰 텍스트 섹션(이미지·영상 배경) 위 버튼 */
.accent_btn.w {
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--white-color);
}

.accent_btn.w:hover {
  border-color: var(--primary-color);
}

/* 타이틀 아래 버튼 간격 */
.title .lnk {
  margin-top: 4rem;
}
