/* ==========================================================================
   AXIS08 — White Luxury Editorial
   레퍼런스: axis09 (darmtheme01.mycafe24.com/axis_v09)
   순백 배경 + 니어블랙 세리프 타이포 + 테라코타 포인트 소량
   자간 넓은 영문 라벨(Jost) + 직각(radius 0) 미니멀 + 고스트 워터마크 타이포
   ========================================================================== */

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

  --accent-color: #ce6455; /* 구 테마 호환 — 테라코타로 통일 */

  --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: #555555;

  /* 타이포 */
  --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;

  /* 폰트 사이즈 토큰 — axis09 이식 CSS 호환용
     (caption/label 계열은 최소 1.4rem 정책에 맞춰 상향) */
  --fs-hero: 8.8rem;
  --fs-h1: 5.6rem;
  --fs-h2: 4rem;
  --fs-h3: 3.2rem;
  --fs-num-lg: 6.4rem;
  --fs-num: 4rem;
  --fs-num-sm: 3.2rem;
  --fs-lead: 2.4rem;
  --fs-title-lg: 2.4rem;
  --fs-title-md: 2.4rem;
  --fs-title: 2rem;
  --fs-title-sm: 2rem;
  --fs-title-xs: 1.6rem;
  --fs-body-lg: 1.6rem;
  --fs-body: 1.6rem;
  --fs-body-sm: 1.4rem;
  --fs-caption: 1.4rem;
  --fs-label: 1.4rem;
  --fs-label-sm: 1.4rem;

  /* 폰트 웨이트 토큰 */
  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

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

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

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

.w_inner {
  max-width: var(--w-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(--w-inner-size)) / 2 + var(--w-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: 16rem 0;
}

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

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

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

.title em {
  display: flex;
  align-items: center;
  gap: 1.6rem;

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

.title em::before {
  content: "";
  display: inline-block;
  width: 4.8rem;
  height: 1px;
  background: var(--point-color);
}

.title h2 {
  margin-top: 2rem;
  font-size: 4.4rem;
  font-family: var(--serif-font);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.05em;
  color: var(--body-color);
}

.title .desc {
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 2;
  margin-top: 2.4rem;
  color: var(--muted-color);
}

/* 다크 배경(사진·영상) 섹션용 화이트 타이틀 */
.title.w h2,
.title.w em,
.title.w p,
.title.w .desc {
  color: var(--white-color);
}

.title.w em::before {
  background: var(--white-color);
}

.title.w .desc {
  opacity: 0.8;
}

.title .lnk {
  margin-top: 4.8rem;
}

/* 초대형 디스플레이 타이포 (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;
}

/* 고스트 워터마크 타이포 */
.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;
}

/* ==========================================================================
   버튼 — 블랙 아웃라인 + 호버 시 반전 (에디토리얼)
   ========================================================================== */
.accent_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);
  border-radius: 0;
  color: var(--primary-color);

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

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

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

.accent_btn:hover {
  background: transparent;
  color: var(--white-color);
}

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

/* 다크 배경 위에서는 화이트 아웃라인 → 호버 시 화이트 반전 */
.title.w .accent_btn {
  border-color: var(--white-color);
  color: var(--white-color);
}

.title.w .accent_btn::before {
  background: var(--white-color);
}

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

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

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

  font-family: var(--eng-font);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  text-transform: uppercase;
  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: 5.2rem;
}

/* 라인 버튼 — 대시 + 텍스트 (메인 바로가기 링크 공통) */
.line_btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 1.6rem;

  font-family: var(--eng-font);
  font-size: 1.6rem;
  font-weight: 500;
  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);
}

/* 다크 배경 위 화이트 변형 */
.title.w .line_btn {
  color: var(--white-color);
}

.title.w .line_btn::before {
  background: var(--white-color);
}

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

.title.w .line_btn:hover::before {
  background: var(--point-light);
}

.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.3rem;
  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;
  border-radius: 0;
  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;
  border-radius: 0;
  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: 1rem;
  font-weight: 300;
  font-family: var(--eng-font);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* 페이징 — 미니멀 */
.pg_current {
  display: inline-block;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--primary-color);
  color: var(--primary-color);
  font-family: var(--eng-font);
  font-weight: 600;
  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;
}

/* ==========================================================================
   섹션 등장 애니메이션 프레임워크
   - 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;
}
