:root {
  /* 독채 숙소 : 따뜻한 먹빛 + 흙빛 바탕 + 붉은 흙(테라코타) 포인트
     흙담과 마당의 흙빛, 구운 기와의 붉은빛을 그대로 가져왔습니다.
     - primary : 제목 · 푸터 · 어두운 면
     - point   : 버튼 · 강조 (흰 글씨가 올라가므로 흰 바탕에서 읽히는 선까지 눌러 둔 테라코타입니다)
     ※ 히어로 · 객실 · 시설 등 각 구획이 쓰던 색도 모두 이 값을 바라보게 맞췄습니다. */
  --primary-color: #2b2622;
  --secondary-color: #efe7de;
  --point-color: #b1563f;
  --lightgray-color: #f5f1ec;
  --white-color: #ffffff;
  --footerbg-color: transparent;
  --background-color: #faf7f3;
  /* 어두운 면 : 히어로 사진 바탕 · 객실 구획 바탕 */
  --dark-color: #141210;
  /* 어두운 면 위에 얹는 밝은 흙빛 (히어로 · 객실 · 특징이 함께 씁니다).
     흰 바탕에서는 대비가 모자라니 쓰지 마세요 */
  --point-bright: #eda88f;

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

  --inner-size: 1440px;
}

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

.title {
  /* 제목 묶음 아래 여백은 한 곳(--sec-head-gap)에서만 정한다 */
  margin-bottom: var(--sec-head-gap);
}

/* 메인 섹션 제목 : 크기는 이 규칙에서만 관리한다 (각 섹션 파일에서 재정의 금지) */
.sec_head h2,
.sp_head h2,
.title h2 {
  font-family: var(--sec-h2-font);
  font-size: var(--sec-h2);
  font-weight: var(--sec-h2-w);
  line-height: var(--sec-h2-lh);
  letter-spacing: var(--sec-h2-ls);

  text-transform: uppercase;
}


/* ※ 히어로 슬로건 크기는 main_html/main_hero.html 의 <style> 에서 관리합니다. */

/* 화면 폭에 따라 줄바꿈(<br>)을 켜고 끄는 유틸 */
@media (max-width: 768px) {
  .pc_only {
    display: none;
  }
}

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

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

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

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

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

  color: var(--white-color);
  white-space: nowrap;
  background: var(--primary-color);
  border: 1px solid var(--primary-color);
  border-radius: var(--ui-btn-radius);
}

.icon_btn::after {
  content: "";
  position: absolute;
  top: -1px;
  bottom: -1px;
  right: 0;
  width: 4.8rem;
  height: auto;

  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;
  padding: 0 2.4rem 0 8rem;
  overflow: hidden;

  color: var(--white-color);
  white-space: nowrap;
  background: var(--primary-color);
  border: 1px solid var(--primary-color);
  border-radius: var(--ui-btn-radius);
}

.icon_btn_write::after {
  content: "";
  position: absolute;
  top: -1px;
  bottom: -1px;
  left: 0;
  width: 4.8rem;
  height: auto;
  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;
  padding: 0 2.4rem 0 8rem;
  overflow: hidden;

  color: var(--white-color);
  white-space: nowrap;
  background: var(--point-color);
  border: 1px solid var(--point-color);
  border-radius: var(--ui-btn-radius);
}

.icon_btn_cancel::after {
  content: "";
  position: absolute;
  top: -1px;
  bottom: -1px;
  left: 0;
  width: 4.8rem;
  height: auto;
  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;
}

/* ==========================================================================
   구획 공통 규칙 (21~30 통일)
   --------------------------------------------------------------------------
   구획마다 제각각이던 위아래 여백 · 제목 크기 · 설명 글 크기를 여기 한 곳에서 정한다.
   main_html/*.html 의 <style> 이 이 변수를 읽으므로, 값을 바꾸면 모든 구획이 같이 바뀐다.
   (히어로는 화면 구성이 달라 제목 크기만 따로 두고, 설명 · 머리말 크기는 같이 쓴다)
   ========================================================================== */
:root {
  --sec-pad: 12rem;                 /* 구획 위아래 여백 */
  --sec-h2: 4.4rem;                 /* 구획 제목 */
  --sec-h2-w: 200;
  --sec-h2-lh: 1.3;
  --sec-h2-ls: -0.02em;
  --sec-h2-font: "Noto Serif KR", "Nanum Myeongjo", "Apple SD Gothic Neo", serif;
  --sec-lead: 1.7rem;               /* 제목 아래 설명 */
  --sec-lead-lh: 1.75;
  --sec-eyebrow: 1.4rem;            /* 제목 위 작은 말 */

  /* ── 구획이 같은 모양을 쓰도록 ─────────────────────────── */
  --ui-radius: 1.2rem;              /* 카드 · 입력칸 모서리 (한 가지만) */
  --ui-radius-pill: 999px;          /* 알약 버튼 */
  --ui-btn-radius: 0.6rem;   /* 살짝 둥글게 — 머무는 집의 인상 */
  --ui-btn-h: 5.2rem;                /* 버튼 높이 */
  --ui-btn-pad: 0 3.6rem;          /* 버튼 좌우 여백 */
  --ui-btn-fs: 1.5rem;              /* 버튼 글자 */
  --sec-head-gap: 4.8rem;           /* 제목 묶음 아래 여백 */
}

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

@media (max-width: 768px) {
  :root {
    --sec-pad: 7.2rem;
    --sec-h2: 3rem;
    --sec-lead: 1.5rem;
  }
}

/* 서브페이지(css/modify.css)가 쓰는 두 가지.
   :root 에 정의가 없으면 var() 가 무효가 되어 그 줄이 통째로 무시됩니다. */
:root {
  --muted-color: #6b625a; /* 게시판 분류 탭의 꺼진 글자 */
  --point-light: #b1563f; /* 목록 항목에 마우스를 올렸을 때 */
}
