/* ==========================================================================
   AXIS06 — White Luxury Editorial theme
   레퍼런스: 순백 배경 + 블랙 타이포 + 테라코타 포인트 소량
             자간 넓은 영문 라벨 + 세리프 헤드라인 + 초대형 디스플레이 타이포
   ========================================================================== */

: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: 6.4rem;
}

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

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

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

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

@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.4rem;
  font-weight: 500;
  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.4rem;
  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.4rem;
  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.4rem;
  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.4rem;
  color: var(--muted-color);
}

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