:root {
  /* 요양병원 : 진한 초록(안정·신뢰) + 밝은 오렌지 포인트(온기·활력)
     ※ 밝은 오렌지는 흰 글씨와의 대비가 3:1 안팎이라 작은 글씨에는 권하지 않습니다.
        더 또렷하게 하시려면 --point-color 를 #d9600a 정도로 한 단계만 낮춰 주세요.
     - primary : 제목·푸터·구조선 등 어두운 면
     - point   : 버튼·강조 등 시선을 끄는 면 (흰 글씨가 올라가므로 너무 밝게 두지 말 것)
     ※ 색을 바꾸실 때는 아래 --*-rgb 값도 같이 고쳐 주세요.
        반투명(그림자·덮개)에 쓰는 rgb(var(--primary-rgb) / .3) 이 이 값을 씁니다. */
  --primary-color: #234639;
  --primary-rgb: 35 70 57;
  --secondary-color: #eaf1ee;
  --point-color: #f2761b;
  --point-rgb: 242 118 27;
  /* 살구빛 : 돌봄 프로그램 원형 아이콘 등 따뜻한 면에 쓴다 */
  --sand-color: #ffe6cd;
  --lightgray-color: #f6f9f7;
  --white-color: #ffffff;
  --footerbg-color: transparent;
  --background-color: #f7faf8;

  --line-color: #dfe8e3;
  --text-color: #1e2622;
  /* 본문 보조 텍스트 : 각 섹션에서 광범위하게 쓰이므로 여기서 한 번만 정의 */
  --text-color-sub: #5e6d65;

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

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

.title {
  margin-bottom: 5.6rem;
}

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

  text-transform: uppercase;
}

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

/* ※ 히어로 슬로건 크기는 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;
}

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

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

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

  color: var(--point-color);
  border: 1px solid var(--point-color);
  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(--point-color);
  transition: 0.4s;
}

.default_btn:hover::before {
  top: auto;
  bottom: 0;
  height: 4.8rem;
}

/* 라운드 변형 : .default_btn round 로 함께 사용 */
.default_btn.round,
.default_btn.round::before {
  border-radius: 4.8rem;
}

.default_btn.round {
  height: 5.6rem;
  padding: 0 4rem;
  font-size: 1.6rem;
  font-weight: 600;
}

.default_btn.round:hover::before {
  height: 5.6rem;
}

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

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

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

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

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

  color: var(--white-color);
  white-space: nowrap;
}

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

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

  color: var(--white-color);
  white-space: nowrap;
}

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

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