@charset "UTF-8";

#bo_v > header {
  display: none;
}

#content_wrap {
  padding-bottom: 3%;
}

.k_new_btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.k_btn_inner {
  font-size: 1.5vw;
  background: black;
  color: white;
  padding: 1% 3%;
  border-radius: 30px;
}

.k_btn_inner > a {
  color: white;
}

.k_new_btn > .k_btn_inner:nth-child(2) {
  background: rgba(0, 0, 0, 0.5607843137);
  margin-left: 2%;
  padding: 0.7% 2% !important;
}

#bo_w .bo_w_tit .frm_input {
  padding-right: 0px !important;
}

.k_btn_inner > input {
  outline: none;
  appearance: none;
  border: unset;
  background: unset;
  color: white;
  font-size: 1.1em;
}

#bo_v > header {
  display: block;
  position: relative;
  background: transparent;
  font-size: unset;
  padding: unset;
  border-bottom: 1px solid black;
  font-family: "pretendard Variable";
}

#bo_v_title .bo_v_tit {
  display: block;
  font-size: 17px;
  margin: 5px 0 0;
  word-break: break-all;
  font-weight: 500;
  letter-spacing: -1px;
  font-family: "pretendard Variable" !important;
}

.board_title {
  font-family: "pretendard Variable";
}

.k_new_btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.k_btn_inner {
  font-size: 1.5vw;
  background: black;
  color: white;
  padding: 1% 3%;
  border-radius: 30px;
}

.k_btn_inner > a {
  color: white;
}

.k_new_btn > .k_btn_inner:nth-child(2) {
  background: rgba(0, 0, 0, 0.5607843137);
  margin-left: 2%;
  padding: 0.7% 2% !important;
}

#bo_w .bo_w_tit .frm_input {
  padding-right: 0px !important;
}

.k_btn_inner > input {
  outline: none;
  appearance: none;
  border: unset;
  background: unset;
  color: white;
  font-size: 1.1em;
}

#bo_v > header {
  display: block;
  position: relative;
  background: transparent;
  font-size: unset;
  padding: unset;
  border-bottom: 1px solid black;
  font-family: "pretendard Variable";
}

#bo_v_con {
  margin: 30px 0 30px;
  width: 100%;
  line-height: 1.7em;
  min-height: 200px;
  word-break: break-all;
  overflow: hidden;
  font-size: 1.3em;
  font-family: "pretendard Variable";
}

.mac_opt img {
  max-width: 100%;
}

#tttt {
  opacity: 1;
  z-index: 9999;
}

#content_wrap {
  padding-bottom: 0% !important;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  /* ★ overflow 클립 금지 — 클리핑 요소에 transform(.insert 의 translateY)이 걸리면 Chrome 이 클립을
     히트테스트에 양축 적용해, 헤더 박스 밖(.admin_head top:112%)의 자식이 보이는 채로 hover 가 죽는다.
     PC 헤더는 가로 넘침이 없어(scrollWidth==clientWidth) 클립이 지키는 것도 없다. 모바일 블록도 이미 visible */
  overflow: visible;
  background-color: transparent;
}

.header_iner {
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: visible;
  padding-bottom: calc(var(--px) * 3);
}

.header__logo {
  position: absolute;
  left: calc(var(--px) * 843);
  top: 0;
  z-index: 20; /* 형제 .header_box 의 자식 .header_box_iner(.front z:10) 가 덮어 클릭이 안 먹던 것 차단 */

  & img {
    display: block; /* 전역 img 가 inline 이라 디센더 여백 7px 이 래퍼 aspect-ratio 를 밀어냄 */
    width: 100%; /* 헤더는 전역 `section img{width:100%}` 밖 — 없으면 img 가 자연폭 218px 로 굳어 1400px 뷰포트에서 래퍼를 넘친다 */
  }
}

.header_box {
  position: relative;
  width: calc(var(--px) * 1811);
  overflow: visible;
}

.header_box_iner {
  display: flex;
  align-items: center;
  /* reset 의 box-sizing:unset 탓에 .front 의 width:100% 에 좌우 padding 381 이 더해져 2192 로 렌더되던 것 차단 */
  box-sizing: border-box;
  padding: calc(var(--px) * 39) calc(var(--px) * 84) calc(var(--px) * 50) calc(var(--px) * 297);
}

.header__nav {
  display: flex;
  align-items: center;
}

.header__nav--left {
  gap: calc(var(--px) * 80);
  margin-left: calc(var(--px) * 76.7);
}

.header__nav--right {
  gap: calc(var(--px) * 91);
  margin-left: calc(var(--px) * 352);
}

.header__tel {
  display: flex;
  align-items: center;
  margin-left: calc(var(--px) * 144.1);

  & .header__tel-icon img { display: block; }
}

.header__tel-num {
  margin-left: calc(var(--px) * -2);
}

/* header.header_change {
    background-color: #000000a8;
} */

/* 모바일 드로어 딤 — .mobile 유틸이 표시를, 아래 규칙이 외관을 소유한다 */
.header__dim {
  height: 100dvh;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 10000;
}

.header__dim.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* 스크롤 방향 토글 — js/header.js 가 .insert(내림)/.drop(올림) 을 부여 */
/* ★ will-change:transform 금지 — overflow-x:clip 과 겹치면 헤더 박스 밖으로 흘러나온 자식(.admin_head 드롭다운)의
   히트테스트가 잘려 페인트는 되는데 hover 가 안 닿는다. fixed 요소 transform 은 힌트 없이도 합성된다 */
.header {
  transition: transform 0.4s ease;
}

.header.insert {
  transform: translateY(-100%);
}

/* ★ translateY(0) 금지 — 항등 transform 이어도 합성 레이어를 만들어 overflow-x:clip 과 겹치면
   헤더 밖으로 흘러나온 .admin_head 드롭다운의 hover 가 안 닿는다. none 은 항등으로 보간돼 전환은 그대로 동작 */
.header.drop {
  transform: none;
}

/* -------------------header 커스텀 끝------------------- */

/* IMG:AUTO header */
/* layout-spec.json 파생 (tools/img-size-to-css.js · unit=--px) — 직접 수정 금지 */
.header__logo {
    width: calc(var(--px)*218);
    aspect-ratio: 218 / 151;
}

.header__tel-icon {
    width: calc(var(--px)*22);
    aspect-ratio: 22 / 22;
}
/* /IMG:AUTO header */

@media screen and (max-width: 599px) {
  .pc-mobile {
    display: none !important;
  }

  /* 스크롤 주체가 html 이라(body 는 이미 overflow:hidden) 두 요소 모두 잠가야 실제로 멈춘다 */
  html.header-menu-open,
  body.header-menu-open {
    overflow: hidden;
  }

  /* PC 는 con01 히어로 위에 얹히는 투명 오버레이지만 모바일은 로고·햄버거만 남으므로
     시안 헤더면 색(h_01.webp 실측 #ede4d4)을 단색으로 깐다 — bg_img 는 .pc 로 빠진다 */
  /* z-index 3000 = quick 바(1111)·TOP 버튼(2000) 위 — 드로어와 딤이 그 둘을 덮어야 한다 */
  /* will-change:transform 은 fixed 후손의 containing block 을 만든다 — 딤(inset:0)이 뷰포트가 아니라 헤더 바 높이에만 깔리던 것 차단 */
  .header,
  .header.drop,
  .header.insert {
    z-index: 3000;
    transform: none;
    will-change: auto;
    background-color: #ede4d4;
    overflow: visible;
    transition: none;
  }

  /* 바 높이 = 로고 + 상하 padding (콘텐츠가 만든다).
     ★ .front 의 z-index:10 을 푼다 — 안 풀면 드로어가 그 스태킹 컨텍스트에 갇혀
     형제인 딤(z 10000)이 드로어까지 덮어 드로어가 어둡게 깔린다 */
  .header_iner {
    z-index: auto;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    padding: 2.6vw 5vw;
    box-sizing: border-box;
  }

  .header__logo {
    position: static;
    width: auto;
    aspect-ratio: auto;
  }

  .header__logo img {
    width: 11.8vw;
    height: auto;
  }

  .header_box {
    position: static;
    width: auto;
  }

  /* 드로어 = 우측 off-canvas. PC 의 .front(z-index:10) 대신 딤(10000)·햄버거(10020) 사이에 든다 */
  .header_box_iner {
    position: fixed;
    top: 0;
    right: -72vw;
    z-index: 10010;
    width: 72vw;
    height: 100dvh;
    flex-direction: column;
    align-items: stretch;
    padding: 20vw 6vw 10vw;
    overflow-y: auto;
    background-color: #ede4d4;
    pointer-events: none;
    /* 닫힘 상태의 그림자는 화면 우측 끝에 띠로 새어 보인다 — 열릴 때만 켠다 */
    box-shadow: none;
    transition: right 0.3s ease, box-shadow 0.3s ease;
  }

  .header_box_iner.is-open {
    right: 0;
    pointer-events: auto;
    box-shadow: -1vw 0 5vw rgba(0, 0, 0, 0.15);
  }

  .header__tagline {
    padding-bottom: 4.5vw;
    border-bottom: 1px solid rgba(59, 35, 22, 0.25);
    font-size: var(--bodyM);
  }

  .header__nav {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .header__nav--left,
  .header__nav--right {
    gap: 0;
    margin-left: 0;
  }

  .header__nav-link {
    display: block;
    padding: 3.8vw 0;
    font-size: var(--headS);
  }

  .header__tel {
    justify-content: center;
    gap: 1.6vw;
    margin-top: 7vw;
    margin-left: 0;
  }

  .header__tel-icon {
    width: 5vw;
  }

  .header__tel-num {
    margin-left: 0;
    font-size: var(--subheadL);
  }

  /* 히트영역 세로는 top/bottom 스트레치로 바 높이를 그대로 받는다 — 고정 height 불필요 */
  .hamburger {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 5vw;
    z-index: 10020;
    align-items: center;
    padding: 0;
    border: 0;
    background: transparent;
  }

  /* 3줄을 흐름에 둔다(absolute 아님) — 아이콘 박스 높이가 선(2px)+gap 으로 만들어진다 */
  .hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.5vw;
    width: 8vw;
  }

  .hamburger .line {
    width: 100%;
    height: 2px;
    background-color: #3b2316;
    transform-origin: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  /* X 전환 = 상·하선을 가운데선 자리(선 두께 2px + gap)로 끌어와 교차 */
  .hamburger.is-open .top-reverse {
    transform: translateY(calc(1.5vw + 2px)) rotate(45deg);
  }

  .hamburger.is-open .mid-reverse {
    opacity: 0;
  }

  .hamburger.is-open .bot-reverse {
    transform: translateY(calc(-1.5vw - 2px)) rotate(-45deg);
  }
}

.k_new_btn {
  margin-bottom: 6%;
  margin-top: 2%;
}

#bo_v_title .bo_v_tit {
  display: block;
  font-size: 17px;
  margin: 5px 0 0;
  word-break: break-all;
  font-weight: 700;
  letter-spacing: -1px;
  font-family: "pretendard Variable" !important;
}

.board_title {
  font-weight: 700;
  font-family: "pretendard Variable";
}

.k_new_btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.k_btn_inner {
  font-size: 1.5vw;
  background: black;
  color: white;
  padding: 1% 3%;
  border-radius: 30px;
}

.k_btn_inner > a {
  color: white;
}

.k_new_btn > .k_btn_inner:nth-child(2) {
  background: rgba(0, 0, 0, 0.5607843137);
  margin-left: 2%;
  padding: 0.7% 2% !important;
}

#bo_w .bo_w_tit .frm_input {
  padding-right: 0px !important;
}

.k_btn_inner > input {
  outline: none;
  appearance: none;
  border: unset;
  background: unset;
  color: white;
  font-size: 1.1em;
}

#bo_v > header {
  display: block;
  position: relative;
  background: transparent;
  font-size: unset;
  padding: unset;
  border-bottom: 1px solid black;
  font-family: "pretendard Variable";
  font-weight: 900;
}

#bo_v_con {
  margin: 30px 0 30px;
  width: 100%;
  line-height: 1.7em;
  min-height: 200px;
  word-break: break-all;
  overflow: hidden;
  font-size: 1.3em;
  font-family: "pretendard Variable";
}

/* 컨테이너: 클릭 투과 + 화면 기준 좌표계만 제공(높이 0). 위치는 자식이 결정 */
#hd_pop {
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  z-index: 1000;
}

/* 개별 팝업: PC 는 인라인 style(관리자 좌표)대로 배치, 모바일만 중앙(아래 미디어쿼리) */
.hd_pops {
  pointer-events: auto;
  touch-action: pan-y pinch-zoom;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #f7f7f7;
  min-width: calc(var(--px) * 300);
}

.hd_pops img {
  width: 100%;
  display: block;
}

.hd_pops_con {
  width: 100% !important;
  height: auto !important;
}

#hd_pop > div > div > iframe {
  height: 100%;
}

/* #hd_pop 프리픽스로 특이도 확보 → default.css 의 .hd_pops_reject(검정)·.hd_pops_close(absolute) 무력화 */
#hd_pop .hd_pops_footer {
  display: flex;
  justify-content: center;
  gap: calc(var(--px) * 8);
  width: 100%;
  padding: calc(var(--px) * 10);
  background: #f7f7f7;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  font-family: var(--font-pretendard);
}

/* default.css 의 clearfix(:after) 제거 — flex 에선 빈 공간만 차지 */
#hd_pop .hd_pops_footer::after {
  display: none;
}

/* 버튼 너비 고정 → 팝업이 넓어져도 버튼은 안 늘어나고 가운데 모임 */
#hd_pop .hd_pops_footer button {
  flex: 0 0 auto;
  width: calc(var(--px) * 130);
  position: relative;
  top: auto;
  right: auto;
  padding: calc(var(--px) * 10) calc(var(--px) * 4);
  border: 0;
  border-radius: 7px;
  background: #ececec;
  color: #777;
  font-size: var(--bodyXS);
  font-family: inherit;
  font-weight: 400;
  letter-spacing: -0.032em;
  white-space: nowrap;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

#hd_pop .hd_pops_footer button:hover {
  background: #e2e2e2;
  color: #333;
}

#hd_pop .hd_pops_footer .hd_pops_reject strong,
#hd_pop .hd_pops_footer .hd_slider_reject strong {
  font-weight: 600;
  color: #555;
}

/* 오른쪽 '닫기' 버튼만 강조 */
#hd_pop .hd_pops_footer .hd_pops_close:last-child,
#hd_pop .hd_pops_footer .hd_slider_closeall {
  color: #fff;
  background: #3a3a3a;
}

#hd_pop .hd_pops_footer .hd_pops_close:last-child:hover,
#hd_pop .hd_pops_footer .hd_slider_closeall:hover {
  background: #1a1a1a;
}

@media screen and (max-width: 1023px) {
  /* 태블릿·모바일: 관리자 좌표 무시하고 무조건 화면 가로 중앙 + 화면 고정 */
  #hd_pop {
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
  }

  .hd_pops {
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 85% !important;
    max-width: calc(var(--px) * 560);
    min-width: 0;
    margin: 0 !important;
  }

  /* TOP=0(헤더아래) 팝업은 렌더러가 실측한 top 유지, 그 외만 상단 3% */
  .hd_pops:not(.hd_below_header) {
    top: 3% !important;
  }

  #hd_pop .hd_pops_footer button {
    flex: 1;
    width: auto;
    max-width: 46%;
    font-size: 2.6vw !important;
    padding: 2.2vw 1vw !important;
  }
}

@media screen and (max-width: 599px) {
  .hd_pops {
    width: 90% !important;
  }

  .hd_pops:not(.hd_below_header) {
    top: 5% !important;
  }

  /* 모바일 footer 버튼 더 크게 (태블릿 2.6vw 보다 키움) */
  #hd_pop .hd_pops_footer button {
    font-size: 3.6vw !important;
    padding: 3.4vw 1vw !important;
  }

  .main_small_title {
    font-size: 3.1vw;
    line-height: 4.7vw;
  }
}

/* FONT:AUTO header */
/* spec.json 파생 (tools/spec-font-to-css.js · mode=robust unit=px) — 직접 수정 금지 */
.header__tagline,
.header__nav--left,
.header__nav--right {
    font-family: var(--font-wanted);
    font-size: var(--bodyL);
    font-weight: 600;
    letter-spacing: -0.05em;
    line-height: 1.2;
    color: #3b2316;
}

.header__tel-num {
    font-family: var(--font-wanted);
    font-size: var(--subheadL);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: #513f20;
}
/* /FONT:AUTO header */

/* ══ 관리자 전용 헤더 메뉴 (admin-menu-setup) ══
   표시 토글은 library 유틸 .pc / .mobile 이 소유 — 여기서 display 로 직접 분기하지 않는다 */
:root {
  --adminH-text: #fff;
  --adminH-text--hover: rgba(50, 53, 205, 1);
  --adminH-bgColor: rgba(50, 53, 205, 0.8);
  --adminH-bgColor--hover: rgba(255, 255, 255, 0.8);
  --adminH-outline: rgba(50, 53, 205, 0.3);

  --vWebColor: #3235cd;
}

/* 외부 reset(box-sizing:unset)과 무관하게 고정 */
header > .admin_head,
header > .admin_head * {
  box-sizing: border-box !important;
  margin: 0;
  padding: 0;
  list-style: none;
}

header > .admin_head {
  position: absolute;
  right: calc(var(--px) * 47); /* .header_box(1811) 우측 변 = (1905-1811)/2 */
  top: 112%;
  width: calc(var(--px) * 200);
  overflow: hidden;
  z-index: 9999;

  background: var(--adminH-bgColor);
  color: var(--adminH-text);
  backdrop-filter: blur(6px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5);
  border-radius: calc(var(--px) * 6);

  transition: all 0.3s;
}

header > .admin_head:hover {
  border-radius: calc(var(--px) * 10);
  background: var(--adminH-bgColor--hover);
  color: var(--adminH-text--hover);
  box-shadow: 0 0 0 1px var(--adminH-outline);
}

header > .admin_head li {
  position: relative;
  float: none;
  width: 100%;
}

header > .admin_head li a {
  font-size: var(--bodyM);
  font-family: var(--font-family);
  font-weight: 700;
  letter-spacing: -0.02em;
  position: relative;
  padding: calc(var(--px) * 12) calc(var(--px) * 16);
  display: block;
  width: 100%;
  z-index: 5000;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

header > .admin_head li a i {
  position: absolute;
  right: calc(var(--px) * 16);
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  font-size: 0.7em;
}

header > .admin_head li .drop-down {
  position: relative;
  padding: 0 0 calc(var(--px) * 10);
  display: none; /* JS slideUp/Down 제어 */
  margin: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  background: transparent;
}

header > .admin_head li .drop-down li a {
  border-top: none;
  width: auto;
  margin: 0 calc(var(--px) * 10);
  border-radius: calc(var(--px) * 5);
  font-weight: 500;
  transition: all 0.15s;
}

header > .admin_head li li a:hover {
  background: var(--adminH-text--hover);
  color: var(--adminH-text);
  box-shadow: 0 0 0 1px var(--adminH-outline);
}

@media screen and (max-width: 599px) {
  .admin_menu_mobile,
  .admin_menu_mobile * {
    box-sizing: border-box !important;
    margin: 0;
    padding: 0;
  }

  /* 드로어(.header_box_iner) 최하단 — --px 가 무너지는 구간이라 vw 정본 */
  .admin_menu_mobile {
    text-align: center;
    width: 100%;
    background-color: inherit;
    margin: 4vw 0 0;
    border-radius: 3vw;
    box-shadow: 0 0 0 1px var(--vWebColor);
    border: 1px solid rgba(255, 255, 255, 0.25);
  }

  .admin_menu_mobile[open] {
    padding-bottom: 4vw;
  }

  .admin_menu_mobile summary {
    color: var(--vWebColor);
    font-size: var(--headS);
    padding: 2vw 0;
    cursor: pointer;
    outline: none;
    list-style: none;
  }

  .admin_menu_mobile summary::-webkit-details-marker {
    display: none;
  }

  .admin_menu_mobile .admin_menu_list {
    display: flex;
    flex-direction: column;
    gap: 3vw;
    padding: 0 4vw;
  }

  .admin_menu_mobile .header_menu_1m {
    color: var(--vWebColor);
    display: block;
    padding: 2.5vw 0;
    text-decoration: none;
    font-size: var(--bodyL);
    border-radius: 1.5vw;
    transition: background-color 0.2s, color 0.2s;

    &:active,
    &:hover {
      background-color: var(--vWebColor);
      color: var(--adminH-text);
    }
  }
}
