@charset "UTF-8";

/* 헤더 높이 — ★ 헤더 높이는 여기(--hd-h)에서만 바꾼다.
   .header 와 .hd_boards(게시판 바로가기) 가 같이 이 값을 읽는다. .header { height } 를 직접
   고치면 바로가기가 헤더 높이를 따라오지 못해 헤더 밑에 깔린다(실제로 어화락·국밥생각에서
   헤더만 키워서 바로가기가 가려졌다). */
:root {
  --hd-h: calc(var(--px) * 78);
}

@media screen and (max-width: 599px) {
  :root {
    --hd-h: 15vw;
  }
}

#bo_v > header {
  display: none;
}

#content_wrap {
  padding-bottom: 3%;
}

#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";
}

#bo_v > header {
  display: block;
  position: relative;
  background: transparent;
  font-size: unset;
  padding: unset;
  border-bottom: 1px solid black;
  font-family: "pretendard Variable";
}

#content_wrap {
  padding-bottom: 0% !important;
}

/* 레거시 admin 드롭다운(ul.admin_head) 전용 스타일 삭제 —
   마크업이 프로젝트 어디에도 없고(0건), element 셀렉터라 신규 nav.header_menu > ul > li > a
   를 덮어써 메뉴에 빨간 3px 테두리·uppercase·float 이 걸리고 있었다. */

/* ★ 엘리먼트 셀렉터(header{})를 쓰지 않는다 — 본문에서 시맨틱하게 쓴 <header> 까지 잡힌다.
   섹션 안에 <header> 를 하나 넣었을 뿐인데 스크롤 시 position:fixed·top:-5vw 가 걸려
   요소가 화면 밖으로 날아가는 사고가 여기서 났다. 사이트 헤더는 항상 .header 로만 잡는다.
   (js/header.js 의 $(".header") 와 짝이다 — 한쪽만 바꾸면 drop/insert 가 안 걸린다) */
.header.drop {
  position: fixed;
}

.header.insert {
  position: fixed;
  top: -5vw;
}

/* ═══════════════════════ HEADER (기본 형태) ═══════════════════════
   구조: header.header > a.header_logo + nav.header_menu > ul > li > a + a.header_call + .hamburger
   프로젝트마다 바꾸는 값 = 로고/CTA 이미지 자연사이즈(width·aspect-ratio),
   메뉴 사이 간격(gap), 좌우 배치 여백(margin-left), 헤더 높이.
   ═══════════════════════════════════════════════════════════════ */
.header img {
  width: 100%;
}

.header {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 9999;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  height: var(--hd-h); /* ★ 값은 :root --hd-h 에서 바꾼다 */
  font-family: "Pretendard Variable", Pretendard, sans-serif; /* section 밖이라 광역 카스케이드를 못 받는다 */
  letter-spacing: -0.04vw;
  background-color: #ffffff;
  border-top: 1px solid #dcdcdc;
  transition-duration: 0.3s;
  transition-property: top;
}

.header_logo {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  margin-left: 2.8%;
  /* 로고 이미지 자연사이즈 (header_01.png) */
  width: calc(var(--px) * 128);
  aspect-ratio: 128 / 21;
}

.header_menu {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  margin-left: 16.7%;
}

.header_menu_list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.8vw;
}

.header_menu_item {
  display: flex;
  justify-content: center;
  align-items: center;
}

.header_menu_1 {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: calc(var(--px) * 18);
  font-weight: 300;
  color: #000000;
  white-space: nowrap;
  transition: font-weight 0.3s;
}

.header_menu_1:hover {
  font-weight: 700;
}

/* 우측 CTA — 갈색 알약 버튼 안에 전화번호 이미지 (전용 서체라 텍스트 대신 이미지, header_02.png) */
.header_call {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  margin-left: auto;
  margin-right: 2.7%;
  width: calc(var(--px) * 136);
  height: calc(var(--px) * 47);
  background-color: var(--color-point);
  border-radius: 50vw;
}

.header_call_img {
  display: flex;
  justify-content: center;
  align-items: center;
  width: calc(var(--px) * 99);
  aspect-ratio: 99 / 19;
}

/* ═══════════════════════ HEADER end ═══════════════════════ */

/* ═══════════════ 게시판 바로가기 (레벨 10 이상 전용) ═══════════════
   마크업은 theme/design/template/header/index.html — g5_board 를 읽어 자동 생성.
   헤더 바로 아래 우측에 fixed. top 은 헤더 높이(--hd-h) + 여백 24 로 계산해서, 헤더를 키워도
   따라 내려간다(고정값으로 두면 헤더가 커진 프로젝트에서 헤더에 가려진다).
   z-index 는 헤더보다 1 낮게 — 겹치는 상황이 오면 헤더가 이긴다.
   ★ 폰트: Pretendard 는 글로벌 section{} 으로만 카스케이드되는데 이 위젯은 section 밖이라
     상속을 못 받는다 → 여기서 직접 지정한다. */
.hd_boards {
  position: fixed;
  right: calc(var(--px) * 24);
  top: calc(var(--hd-h) + var(--px) * 24);
  z-index: 9998;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  font-family: "Pretendard Variable", Pretendard, sans-serif;
  letter-spacing: -0.02vw;
}

.hd_boards_btn {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: calc(var(--px) * 8);
  box-sizing: border-box;
  height: calc(var(--px) * 36);
  padding: 0 calc(var(--px) * 15);
  font-family: inherit;
  font-size: calc(var(--px) * 14);
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  background-color: rgba(17, 17, 17, 0.88);
  border: 0;
  border-radius: calc(var(--px) * 18);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.hd_boards_btn:hover {
  background-color: #111111;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.26);
  transform: translateY(-1px);
}

/* 셰브론 — border 2변을 돌려 만든 ∨ (열리면 ∧ 로 회전) */
.hd_boards_btn::after {
  content: "";
  width: calc(var(--px) * 7);
  height: calc(var(--px) * 7);
  margin-top: calc(var(--px) * -3);
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.25s ease;
}

.hd_boards.is_open .hd_boards_btn::after {
  margin-top: calc(var(--px) * 3);
  transform: rotate(-135deg);
}

/* 닫힘 상태 — display 로 껐다 켜면 transition 이 안 걸리므로 opacity/visibility 로 감춘다.
   ★ 단, 반드시 position:absolute 로 **흐름에서도 빼야 한다.** 시각만 감추면 접힌 상태에서도
     리스트 높이만큼 .hd_boards 박스가 남아(실측 178×238) 그 아래 콘텐츠의 클릭을 먹는다.
     리스트에 pointer-events:none 이 있어도 컨테이너에는 없어서 컨테이너가 받는다.
     부모 .hd_boards 가 position:fixed 라 그게 containing block 이 된다. */
.hd_boards_list {
  position: absolute;
  top: 100%;
  right: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  box-sizing: border-box;
  margin-top: calc(var(--px) * 8);
  min-width: calc(var(--px) * 178);
  padding: calc(var(--px) * 6);
  background-color: #ffffff;
  border: 1px solid #ececf2;
  border-radius: calc(var(--px) * 12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(calc(var(--px) * -8)) scale(0.98);
  transform-origin: top right;
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.22s;
}

/* 열림 — js/header.js 가 .hd_boards 에 .is_open 토글 */
.hd_boards.is_open .hd_boards_list {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.hd_boards_link {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  height: calc(var(--px) * 36);
  padding: 0 calc(var(--px) * 12);
  font-size: calc(var(--px) * 14);
  font-weight: 500;
  color: #2b2b33;
  white-space: nowrap;
  border-radius: calc(var(--px) * 8);
  transition: background-color 0.18s ease, color 0.18s ease;
}

.hd_boards_link:hover {
  color: #111111;
  background-color: #f3f4f8;
}

/* 관리자페이지 — 목록 맨 위에 고정. 구분선은 별도 요소 없이 이 링크의 border-bottom 으로 낸다
   (요소를 하나 더 넣으면 flex 항목이 늘어 목록 여백 계산이 흐트러진다) */
.hd_boards_adm {
  font-weight: 700;
  border-bottom: 1px solid #e5e6ec;
  border-radius: calc(var(--px) * 8) calc(var(--px) * 8) 0 0;
}

@media screen and (max-width: 599px) {
  .hd_boards {
    right: 4vw;
    top: calc(var(--hd-h) + 5vw);
  }
  .hd_boards_btn {
    gap: 1.6vw;
    height: 8vw;
    padding: 0 3.4vw;
    font-size: 3.2vw;
    border-radius: 4vw;
  }
  .hd_boards_btn::after {
    width: 1.6vw;
    height: 1.6vw;
    margin-top: -0.7vw;
  }
  .hd_boards.is_open .hd_boards_btn::after {
    margin-top: 0.7vw;
  }
  .hd_boards_list {
    margin-top: 1.8vw;
    min-width: 40vw;
    padding: 1.4vw;
    border-radius: 2.8vw;
  }
  .hd_boards_link {
    height: 8.4vw;
    padding: 0 2.8vw;
    font-size: 3.2vw;
    border-radius: 2vw;
  }
}


/* -------------------header 커스텀 끝------------------- */
@media screen and (max-width: 599px) {
  .pc-mobile {
    display: none !important;
  }
  .mobile-pc {
    display: flex !important;
  }
  .pc-inline {
    display: none !important;
  }
  .header.drop {
    position: fixed;
    animation: none;
    transition: none;
  }
  .menu-hide {
    display: none !important;
  }
  .menu-show {
    display: flex !important;
  }
  .hamburger-top {
    top: 13% !important;
  }
  /* 터치 영역 13vw × 헤더 높이 — 줄 3개(.hamburger-menu)는 이 박스 가운데에 그대로 둔다 */
  .hamburger {
    position: absolute;
    top: 0;
    right: 2.5vw;
    width: 13vw;
    height: 100%;
    justify-content: center;
    align-items: center;
    cursor: pointer;
  }

  /* 메뉴 앵커 도착점 — 모바일 헤더는 스크롤해도 숨지 않고(js/header.js 는 PC 만 insert/drop) 고정이라,
     섹션 맨 위가 헤더(--hd-h) 밑에 깔려 첫 줄(예: con11 소제목)이 잘린다. 메뉴 대상 8곳에만 한정해 비운다 */
  #con02,
  #con04,
  #con05,
  #con09,
  #con11,
  #con16,
  #con17,
  #con18 {
    scroll-margin-top: var(--hd-h);
  }

  /* 드로어가 열린 동안 뒤 페이지 스크롤 잠금 (js/header.js 가 html 에 menu_open 토글) */
  html.menu_open {
    overflow: hidden;
  }
  .hamburger-menu {
    width: 8vw;
    height: 4.5vw;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  div.line {
    background: var(--color-dark);
    width: 100%;
    height: 2px;
    border-radius: 0px;
    position: relative;
    transition: all 0.3s;
    transform-origin: center;
    position: absolute;
    margin: 0 !important;
  }
  div.line.mid-reverse {
    background-color: var(--color-dark);
  }
  .top-reverse {
    top: 0%;
  }
  .bot-reverse {
    bottom: 0%;
  }
  .line_change.top-reverse {
    top: 50%;
    transform: translate(0, -50%) rotate(45deg);
    background-color: #fff;
  }
  .line_change.mid-reverse {
    opacity: 0;
  }
  .line_change.bot-reverse {
    bottom: 50%;
    transform: translate(0, 50%) rotate(-45deg);
    background-color: #fff;
  }
  /* -------------------header 커스텀 시작------------------- */
  /* ★ .header(클래스) 가 header(엘리먼트)보다 우선이라, PC 의 height:calc(--px*80)
     이 모바일에서 그대로 남아 헤더가 찌부된다 → 클래스로 다시 잡는다 */
  .header {
    position: fixed;
    left: 0;
    top: 0;
    justify-content: flex-start;
    align-items: center;
    height: var(--hd-h); /* ★ 값은 :root --hd-h 에서 바꾼다 */
    font-size: 4.5vw;
    background: #fff;
    transform: translateX(0);
    width: 100%;
  }

  .header_logo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30vw;
    aspect-ratio: 128 / 21;
    margin-left: 5vw;
    /* 보이는 로고 크기는 그대로, 탭 영역만 위아래로 넓힌다 */
    box-sizing: content-box;
    padding: 3vw 0;
  }

  /* 전화 CTA — 햄버거 왼쪽에 배치 (PC 는 메뉴 오른쪽 끝).
     햄버거는 absolute(right:5%) 라 흐름에서 빠져 있으므로 그 폭만큼 오른쪽 여백을 직접 비운다 */
  .header_call {
    width: 26vw;
    height: 10vw;
    margin-left: auto;
    margin-right: 17vw;
  }

  .header_call_img {
    width: 18.9vw;
    aspect-ratio: 99 / 19;
  }

  /* 모바일 메뉴 = 오른쪽에서 밀려 들어오는 드로어. 열림 상태는 .header_menu_drop (js/header.js) */
  .header_menu {
    position: fixed !important;
    right: -100%;
    pointer-events: none;
    padding: 21.3vw 6vw 0 10vw;
    width: 62%;
    box-sizing: border-box;
    transition: all 0.3s;
    clear: both;
    background-color: var(--color-dark);
    /* 드로어 배경 이미지가 필요하면 아래 3줄을 프로젝트 이미지로 살린다
    background-image: url(/images/{드로어배경}.jpg);
    background-size: cover;
    background-position: center; */
    color: #fff;
    height: 100vh;
    flex-wrap: nowrap;
    gap: 5.5vw;
    justify-content: flex-start;
    align-items: flex-start;
    flex-direction: column;
    top: 0%;
    margin-left: 0;
  }

  .header_menu_list {
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0;
  }

  .header_menu.header_menu_drop {
    top: 0%;
    pointer-events: initial !important;
    opacity: 1;
    right: 0;
  }

  /* 항목 간격 5.5vw 를 위아래 padding 2.7vw 씩으로 옮겨 탭 영역을 40px 대로 키운다 (눈에 보이는 간격은 동일) */
  .header_menu_1 {
    height: auto;
    padding: 2.7vw 0;
    font-size: 4.4vw;
    color: #fff;
    font-weight: 500;
  }

  /* PC 호버색이 드로어 배경과 겹쳐 글자가 묻힌다.
     모바일엔 실제 호버가 없고 탭 후 :hover 가 남는 게 전부라 기본색을 유지한다. */
  .header_menu_1:hover {
    color: #fff;
  }
  /* -------------------header 커스텀 끝------------------- */
}

#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";
}

#bo_w .bo_w_tit .frm_input {
  padding-right: 0px !important;
}

#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";
}

@media screen and (max-width: 599px) {
  .main_small_title {
    font-size: 3.1vw;
    line-height: 4.7vw;
  }
}
