@charset "UTF-8";

/* 헤더 구간 이동 전용: 중간 섹션을 보이지 않게 가린 뒤 목적지에서 표시한다. */
.header_transition {
  position: fixed;
  inset: 0;
  z-index: 32;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #32231b;
  opacity: 0;
}
.header_transition[hidden] {
  display: none;
}

#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 이 걸리고 있었다. */

/* 우측 고정 메뉴 — .planning/header/plan.md */
.header {
  position: fixed;
  right: 0;
  top: calc(var(--px) * 68);
  z-index: 30;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  box-sizing: border-box;
  width: calc(var(--px) * 416);
  /* 헤더 글자색. js/animation.js 가 밑 배경 명암(data-bg="dark")에 따라 흰색 ↔ --color-brand-dark 로 바꾼다 */
  --header-fg: #fff;
}

.header_panel {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  top: calc(var(--px) * -68);
  right: 0;
  width: calc(var(--px) * 480);
  height: 100dvh;
  background: rgba(35, 25, 19, .851);
}

.header_top {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  width: calc(var(--px) * 298);
}

/* 모바일 바 전용 로고 — PC 시안에는 없다 */
.header_logo {
  display: none;
}

.header_sns {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  width: calc(var(--px) * 193);
  gap: calc(var(--px) * 3);
}

.header_sns_link {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: calc(var(--px) * 46);
  height: calc(var(--px) * 46);
  color: var(--header-fg);
}

.header_sns_icon {
  display: block;
  width: calc(var(--px) * var(--icon-w));
  aspect-ratio: var(--icon-w) / var(--icon-h);
  background-color: currentColor;
  -webkit-mask: var(--icon-src) center / contain no-repeat;
  mask: var(--icon-src) center / contain no-repeat;
}

.header_toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  width: calc(var(--px) * 34);
  height: calc(var(--px) * 46);
  margin-left: calc(var(--px) * 71);
  gap: calc(var(--px) * 6);
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.header.is-ready .header_toggle { display: flex; }

.header_toggle_line {
  display: block;
  width: calc(var(--px) * 33);
  border-top: 1px solid var(--color-brand);
  transform-origin: center;
}

/* 모바일 3줄 햄버거의 가운데 줄 — PC 는 2줄 시안 */
.header_toggle_mid {
  display: none;
}

.header_nav {
  margin-top: calc(100vw * 53 / 1905);
}

.header_current {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: end;
  align-items: center;
  box-sizing: border-box;
  width: calc(var(--px) * 400);
  height: calc(var(--px) * 58.213);
  margin-left: calc(var(--px) * 16);
  padding-right: calc(var(--px) * 115);
  border-bottom: 1px solid color-mix(in srgb, var(--header-fg) 7.84%, transparent);
}

.header_current::after {
  content: "";
  position: absolute;
  right: calc(var(--px) * 115);
  bottom: 0;
  width: calc(var(--px) * 107);
  border-bottom: 1px solid var(--color-brand);
}

.header_menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
}

.header_menu_link {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: end;
  align-items: center;
  box-sizing: border-box;
  height: calc(var(--px) * 58.213);
  padding-right: calc(var(--px) * 115);
}

.header_current_image,
.header_menu_image {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: calc(var(--px) * var(--menu-w));
  aspect-ratio: var(--menu-w) / var(--menu-h);
}

.header_current_en,
.header_menu_en {
  display: block;
  width: 100%;
  height: 100%;
  background-color: var(--header-fg);
  -webkit-mask: var(--menu-src) center / contain no-repeat;
  mask: var(--menu-src) center / contain no-repeat;
}

.header_menu_en {
  opacity: .1490196078;
}

.header_current_ko,
.header_menu_ko {
  grid-area: 1 / 1;
  display: none;
  font-family: var(--font-noto-sans-kr);
  font-size: calc(var(--px) * 20);
  letter-spacing: calc(-100vw * .3 / 1905);
  line-height: 1.4;
  color: var(--header-fg);
  white-space: nowrap;
}

.header_panel[hidden],
.header_menu[hidden],
.header_menu_item[hidden],
.header_toggle[hidden] {
  display: none;
}

.quick_nav {
  position: fixed;
  right: 0;
  bottom: calc(var(--px) * 102);
  z-index: 31;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  width: calc(var(--px) * 108);
}

/* 게시판 바로가기(.hd_boards_btn)도 상담 버튼과 같은 박스·점·라벨 교대(2026-09-29 유저 지시).
   관리자 수정모드 켜기(.hd_edit_btn)도 같은 박스다(2026-10-06 유저 지시). */
.quick_consult,
.hd_boards_btn,
.hd_edit_btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  min-height: calc(var(--px) * 96);
  padding: calc(var(--px) * 12);
  overflow: hidden;
  background: var(--color-brand);
}

.quick_consult_fill,
.hd_boards_fill,
.hd_edit_fill {
  box-sizing: border-box;
  top: calc(var(--px) * 12);
  left: calc(var(--px) * 12);
  width: calc(var(--px) * 8);
  height: calc(var(--px) * 8);
  border: 1px solid #fff;
  border-radius: 50%;
  background: transparent;
}

.quick_consult_label,
.hd_boards_label,
.hd_edit_label {
  display: block;
  height: calc(var(--px) * 45);
  overflow: hidden;
  font-family: var(--font-noto-sans-kr);
  font-size: calc(var(--px) * 18);
  font-weight: 700;
  letter-spacing: calc(-100vw * .9 / 1905);
  line-height: 1.25;
  text-align: center;
  color: #fff;
  white-space: nowrap;
}

.quick_consult_text,
.quick_consult_clone,
.hd_boards_text,
.hd_boards_clone,
.hd_edit_text,
.hd_edit_clone {
  display: block;
}

.quick_top {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: calc(var(--px) * 34);
  margin-top: calc(100vw * 3 / 1905);
  padding: 0;
  border: 0;
  background: var(--color-cream);
  cursor: pointer;
}

.quick_top_arrow {
  display: block;
  width: calc(var(--px) * 14);
  height: calc(var(--px) * 8);
  background: var(--color-surface);
  clip-path: polygon(0 100%, 50% 0, 100% 100%, 85% 100%, 50% 30%, 15% 100%);
}

/* 모바일 헤더 = 15vw 고정 바(로고 좌 · 햄버거 우) + 바 아래 드롭다운 + 딤 — 정본 모바일_헤더.md
   층: 바(.header_top)·드롭다운(.header_nav) > 딤(.header_panel) > 퀵바 > 본문.
   바 배경을 .header 가 아니라 .header_top 에 두는 이유: .header(z30)는 스택 컨텍스트라
   자식인 딤이 .header 배경 위에 그려진다. 딤보다 DOM 이 뒤인 .header_top 이 칠해야 바가 선명하게 남는다. */
@media screen and (max-width: 599px) {
  .header {
    top: 0;
    width: 100%;
  }

  /* 딤 — 개폐 페이드와 탭 닫기는 js/animation.js setMenu */
  .header_panel {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    background: rgba(0, 0, 0, .45);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
  }

  /* 로고가 흰색 → 바 = 브랜드 메인색(모바일_헤더.md §1-2) */
  .header_top {
    justify-content: space-between;
    box-sizing: border-box;
    width: 100%;
    height: 15vw;
    padding: 0 3vw 0 5vw;
    color: #fff;
    background: var(--color-brand);
  }

  .header_logo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 32vw;
    aspect-ratio: 215 / 23;
  }

  .header_logo_image {
    display: block;
    width: 100%;
  }

  /* 터치 영역 11vw, 줄 영역 7vw × 4vw(패딩 안쪽) */
  .header_toggle {
    justify-content: space-between;
    box-sizing: border-box;
    width: 11vw;
    height: 11vw;
    margin-left: 0;
    padding: 3.5vw 2vw;
    gap: 0;
  }

  /* 바깥 두 줄 = 흰색(대비), 가운데 한 줄 = 포인트. 바 자체가 브랜드색이라 포인트는 진한 갈색 */
  .header_toggle_line {
    width: 100%;
    border-top: 2px solid #fff;
  }

  .header_toggle_mid {
    display: block;
    width: 100%;
    border-top: 2px solid var(--color-brand-dark);
  }

  .header_nav {
    position: fixed;
    top: 15vw;
    left: 0;
    width: 100%;
    max-height: calc(100svh - 15vw);
    margin-top: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* 드롭다운은 8개를 고정 순서로 모두 보인다 — PC 의 현재 구간 행은 쓰지 않는다 */
  .header_current {
    display: none;
  }

  .header_menu {
    background: #fff;
  }

  .header_menu_item {
    border-bottom: 1px solid #ebebeb;
  }

  .header_menu_link {
    justify-items: start;
    height: auto;
    padding: 4.5vw 6vw;
    color: var(--color-brand-dark);
    -webkit-tap-highlight-color: transparent;
    transition: background-color .3s ease, color .3s ease;
  }

  /* 도착한 구간의 항목(.is-current — js updateCurrent)과 탭한 항목(:active)을 같은 갈색 바탕·흰 글자로 강조한다 */
  .header_menu_link.is-current,
  .header_menu_link:active {
    color: #fff;
    background-color: var(--color-brand);
  }

  /* 터치에는 호버가 없어 영문 PNG 라벨 대신 한글을 고정 노출(js labelMode 도 모바일에서 한글 유지) */
  .header_menu_image {
    display: none;
  }

  .header_menu_ko {
    display: block;
    font-size: 4.2vw;
    font-weight: 600;
    letter-spacing: calc(-4.2vw * .015);
    color: inherit;
  }

  /* SNS — js 가 드롭다운 맨 아래 li.header_menu_util 로 옮긴다(모바일_헤더.md §5).
     윗 구분선은 마지막 메뉴 항목의 border-bottom 이 맡는다 */
  .header_menu_util {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 3vw 3.5vw;
    color: var(--color-brand);
    background: var(--color-cream);
  }

  .header_sns {
    width: auto;
    gap: 1vw;
  }

  .header_sns_link {
    width: 10vw;
    height: 10vw;
    color: inherit;
  }

  .header_sns_icon {
    width: calc(10vw * var(--icon-w) / 46);
  }

  /* 퀵바 = 화면 아래 한 줄: 1:1 개설 상담(왼쪽) · TOP 원(오른쪽). 둘 다 바닥 4vw · 높이 11vw 라 같은 열로 읽힌다.
     .quick_nav 는 상담 버튼 크기만큼만 잡는다 — 가로 전체로 깔면 두 버튼 사이 빈 칸이 본문 탭을 막는다.
     게시판 바로가기는 모바일에서 숨김(아래 .hd_boards).
     height 11vw 를 박는 이유: TOP 원(11vw)과 높이가 같아야 한 줄이 되고, 푸터 끝 예약 여백
     (css/footer.css .footer padding-bottom 15vw = 바닥 4 + 높이 11)과 짝이다.
     z29 = 헤더(30) 안의 딤 아래 — 메뉴가 열리면 상담·TOP 도 딤에 덮인다(모바일_헤더.md §3-1 층 표) */
  .quick_nav {
    left: 4vw;
    right: auto;
    bottom: 4vw;
    z-index: 29;
    flex-direction: row;
    width: auto;
    height: 11vw;
  }

  /* 모바일 CTA = [라벨 · 꺾쇠], 모서리 살짝 둥글게. PC 의 좌상단 점(호버 장식)은 모바일에서 뺀다(2026-09-29 유저) */
  .quick_consult {
    flex-direction: row;
    gap: 2.4vw;
    min-height: 0;
    padding: 0 4.4vw;
    border-radius: 1.6vw;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
  }

  .quick_consult_fill {
    display: none;
  }

  /* 새 창으로 가는 링크 표시 › (흰 2px 꺾쇠) */
  .quick_consult::after {
    content: "";
    flex-shrink: 0;
    width: 1.4vw;
    height: 1.4vw;
    margin-left: -.4vw;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: rotate(45deg);
  }

  /* 바 안에서 상담 라벨은 한 줄(원문·복제 모두). 줄바꿈 앞 공백이 한 줄일 때 띄어쓰기가 된다 */
  .quick_consult_break {
    display: none;
  }

  .quick_consult_label {
    height: 5vw;
    font-size: 4vw;
    letter-spacing: calc(-4vw * .05);
  }

  /* 상담과 같은 줄 오른쪽 끝 원형. 상담에 붙이면 한 버튼의 칸으로 읽혀서 화면 기준으로 따로 둔다 */
  .quick_top {
    position: fixed;
    right: 4vw;
    bottom: 4vw;
    width: 11vw;
    height: 11vw;
    margin-top: 0;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
  }

  .quick_top_arrow {
    width: 2.8vw;
    height: 1.6vw;
  }
}



/* ═══════════════ 수정모드 켜기 (관리자 전용) ═══════════════
   마크업은 theme/design/template/header/index.html — 에디터(css/site-text-editor.css · js/site_text_editor.js)가 뜨는 화면에서만 그려진다.
   퀵 메뉴(.quick_nav) 맨 위 칸, 게시판 바로가기(.hd_boards) 바로 위(2026-10-06 유저 지시).
   박스·점·라벨·호버는 .quick_consult 와 공유(위 그룹 규칙 + js/animation.js bindDotHover). 켜져 있는 동안(.is-on) 호버 모양을 유지하는 건 js/animation.js 가 맡는다.
   여기는 button 기본 외형만 걷고, 아래 칸(.hd_boards)과 같은 3px 간격을 둔다. */
.hd_edit_btn {
  width: 100%;
  margin-bottom: calc(100vw * 3 / 1905);
  border: 0;
  cursor: pointer;
}

/* ═══════════════ 게시판 바로가기 (레벨 10 이상 전용) ═══════════════
   마크업은 theme/design/template/header/index.html — g5_board 를 읽어 자동 생성.
   퀵 메뉴(.quick_nav) 맨 위 칸. 상담(.quick_consult)과 같은 폭·여백·글꼴의 각진 박스로 쌓고,
   목록은 버튼 위로 펼친다(화면 아래쪽이라 아래로 열면 상담·TOP 을 덮는다).
   ★ 폰트: 이 위젯은 section 밖이라 글로벌 폰트를 못 받는다 → 상담 버튼과 같은 Noto Sans KR 을 직접 지정. */
.hd_boards {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  margin-bottom: calc(100vw * 3 / 1905);
  font-family: var(--font-noto-sans-kr);
  letter-spacing: calc(-100vw * .9 / 1905);
}

/* 박스·점·라벨·호버는 .quick_consult 와 공유(위 그룹 규칙 + js/animation.js bindDotHover).
   여기는 button 기본 외형만 걷는다 — .quick_nav 는 reset.css 스코프(.header/.footer) 밖이다. */
.hd_boards_btn {
  width: 100%;
  border: 0;
  cursor: pointer;
}

/* 닫힘 상태 — display 로 껐다 켜면 transition 이 안 걸리므로 opacity/visibility 로 감춘다.
   ★ 단, 반드시 position:absolute 로 **흐름에서도 빼야 한다.** 시각만 감추면 접힌 상태에서도
     리스트 높이만큼 .hd_boards 박스가 남아(실측 178×238) 그 아래 콘텐츠의 클릭을 먹는다.
     리스트에 pointer-events:none 이 있어도 컨테이너에는 없어서 컨테이너가 받는다.
     부모 .hd_boards 가 position:relative 라 그게 containing block 이 된다. */
.hd_boards_list {
  position: absolute;
  bottom: 100%;
  right: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  box-sizing: border-box;
  margin-bottom: calc(100vw * 3 / 1905);
  min-width: calc(var(--px) * 178);
  padding: calc(var(--px) * 6);
  background-color: #ffffff;
  border: 1px solid var(--color-cream);
  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: bottom 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: var(--color-surface);
  white-space: nowrap;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.hd_boards_link:hover {
  color: var(--color-brand-dark);
  background-color: var(--color-cream);
}

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

/* 모바일에서는 관리자로 로그인해도 게시판 바로가기를 띄우지 않는다(2026-09-29 유저 지시).
   수정모드 켜기(.hd_edit_btn)도 퀵바 한 줄에 못 들어가 같이 뺀다 — 모바일 토글은 에디터가 우상단 알약으로 따로 띄운다. */
@media screen and (max-width: 599px) {
  .hd_boards,
  .hd_edit_btn {
    display: none;
  }
}


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