@charset "UTF-8";

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

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

/* ═══════════════ 헤더 치수 토큰 ═══════════════
   ★ 헤더 높이(--hd-h)를 바꾸면 .insert 숨김 델타(--hd-hide)가 자동으로 따라간다.
     델타는 헤더 높이만으로 부족하다 — 게시판 위젯이 헤더 아래로 빠져나와 있어
     그 간격·버튼높이·그림자까지 빼야 관리자 화면에서 버튼이 안 남는다. */
:root {
  --hd-h: calc(var(--px) * 100);
  --hd-boards-gap: calc(var(--px) * 12);
  --hd-boards-btn-h: calc(var(--px) * 36);
  --hd-boards-shadow: calc(var(--px) * 12);
  --hd-hide: calc(var(--hd-h) + var(--hd-boards-gap) + var(--hd-boards-btn-h) + var(--hd-boards-shadow));
}

@media screen and (max-width: 599px) {
  :root {
    --hd-h: 15vw;
    --hd-boards-gap: 3vw;
    --hd-boards-btn-h: 8vw;
    --hd-boards-shadow: 3vw;
  }
}

.header.drop {
  position: fixed;
}

.header.insert {
  position: fixed;
  top: calc(-1 * var(--hd-hide));
}

/* ═══════════════════════ HEADER (기본 형태) ═══════════════════════
   구조: header.header > a.header_logo + nav.header_menu > ul > li > a + a.header_cta + .hamburger
   프로젝트마다 바꾸는 값 = 로고 이미지 자연사이즈(width·aspect-ratio), CTA 크기,
   메뉴 사이 간격(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);
  font-family: var(--font-suit);
  font-size: calc(var(--px) * 20);
  font-weight: 700;
  letter-spacing: -0.06em;
  color: #000000;
  background-color: #ffffff;
  border-bottom: 1px solid #d7d7d7;
  transition-duration: 0.3s;
  transition-property: top;
}

.header_logo {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  margin-left: calc(var(--px) * 52);
  width: calc(var(--px) * 171);
  aspect-ratio: 513 / 176;
}

.header_menu {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  margin-left: calc(var(--px) * 217);
}

.header_menu_list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: calc(var(--px) * 60);
}

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

.header_menu_1 {
  display: flex;
  justify-content: center;
  align-items: center;
  white-space: nowrap;
  transition: color 0.3s;
}

.header_menu_1:hover {
  color: var(--primary);
}

/* 우측 CTA — 외부 가맹상담 페이지 링크 */
.header_cta {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  margin-left: auto;
  margin-right: calc(var(--px) * 53);
  width: calc(var(--px) * 203);
  height: calc(var(--px) * 59);
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  background-color: var(--primary);
  border-radius: 50vw;
}

/* 우측 하단 고정 퀵버튼(시안 퀵메뉴고정) */
.header_quick {
  position: fixed;
  right: calc(var(--px) * 56);
  bottom: calc(var(--px) * 74);
  z-index: 1111; /* 섹션 위, 헤더(9999) 아래 */
  justify-content: center;
  align-items: center;
  width: calc(var(--px) * 110);
  aspect-ratio: 1 / 1;
  font-family: var(--font-pretendard);
  font-size: var(--subheadM);
  font-weight: 700;
  line-height: calc(var(--px) * 23.1);
  letter-spacing: -0.04em;
  color: #ffffff;
  text-align: center;
  background-color: var(--secondary);
  border-radius: 50%;
  outline: calc(var(--px) * 2) solid var(--secondary);
  outline-offset: calc(var(--px) * 3); /* 시안의 녹색 링은 히어로 바탕색과 같은 색 = 비치는 틈 — 어느 섹션 위에서든 틈으로 보이게 투명 처리 */
  --hf-color: var(--secondary);
}

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

/* ═══════════════ 게시판 바로가기 (레벨 10 이상 전용) ═══════════════
   마크업은 theme/design/template/header/index.html 의 header 안 — g5_board 를 읽어 자동 생성.
   .header 자식 absolute — 헤더가 .insert/.drop 으로 상하 이동할 때 같이 따라간다.
   ★ 폰트: Pretendard 는 글로벌 section{} 으로만 카스케이드되는데 이 위젯은 section 밖이라
     상속을 못 받는다 → 여기서 직접 지정한다. */
/* vweb 어드민 컬러 — 이 위젯 전용이라 전역 :root 가 아니라 여기 스코프에 둔다 */
.hd_boards {
  --adminH-text: #ffffff;
  --adminH-text--hover: #3235cd;
  --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);
  --adminH-danger: #d92c2c;
  --vWebColor: #3235cd;
  /* 닫힘 상태에도 .hd_boards_list 가 흐름에 남아 박스가 세로로 길다 — 컨테이너는 히트테스트에서 뺀다 */
  pointer-events: none;
  position: absolute;
  right: calc(var(--px) * 24);
  top: calc(100% + var(--hd-boards-gap));
  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: var(--hd-boards-btn-h);
  padding: 0 calc(var(--px) * 15);
  font-family: inherit;
  font-size: calc(var(--px) * 14);
  font-weight: 700;
  color: var(--adminH-text);
  white-space: nowrap;
  background-color: var(--adminH-bgColor);
  backdrop-filter: blur(6px);
  border: 0;
  border-radius: calc(var(--px) * 18);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5);
  cursor: pointer;
  pointer-events: auto;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.hd_boards_btn:hover,
.hd_boards.is_open .hd_boards_btn {
  color: var(--adminH-text--hover);
  background-color: var(--adminH-bgColor--hover);
  box-shadow: 0 0 0 1px var(--adminH-outline);
  transform: translateY(-1px);
}

/* adm 알약 — 버튼 반전(hover·열림) 시 배경/글씨도 같이 뒤집힌다 */
.hd_boards_badge {
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  height: calc(var(--px) * 18);
  padding: 0 calc(var(--px) * 7);
  font-size: calc(var(--px) * 11);
  font-weight: 700;
  line-height: 1;
  color: var(--vWebColor);
  text-transform: uppercase;
  background-color: #ffffff;
  border-radius: 50vw;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.hd_boards_btn:hover .hd_boards_badge,
.hd_boards.is_open .hd_boards_badge {
  color: var(--adminH-text);
  background-color: var(--vWebColor);
}

/* 셰브론 — 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 이 안 걸리므로 흐름에는 남기고 시각만 감춘다 */
.hd_boards_list {
  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: var(--adminH-bgColor--hover);
  backdrop-filter: blur(6px);
  border: 1px solid var(--adminH-outline);
  border-radius: calc(var(--px) * 12);
  box-shadow: 0 8px 24px rgba(50, 53, 205, 0.18);
  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: var(--vWebColor);
  white-space: nowrap;
  border-radius: calc(var(--px) * 8);
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.hd_boards_link:hover {
  color: var(--adminH-text);
  background-color: var(--vWebColor);
  box-shadow: 0 0 0 1px var(--adminH-outline);
}

/* 대시보드 · 로그아웃 — 게시판 목록과 성격이 달라 구분선으로 떼고 한 줄에 3:1 로 나눈다 */
.hd_boards_foot {
  gap: calc(var(--px) * 4);
  margin-top: calc(var(--px) * 5);
  padding-top: calc(var(--px) * 5);
  border-top: 1px solid var(--adminH-outline);
}

/* 로그아웃이 고정폭이라 대시보드는 남은 폭을 전부 받는다. min-width:auto(=min-content)를 안 풀면 텍스트 폭이 하한이 되고, 가운데 정렬이라 좌우 padding 도 필요 없다 */
.hd_boards_link--adm {
  flex: 1;
  justify-content: center;
  min-width: 0;
  padding: 0;
  font-weight: 700;
}

/* 아이콘만 있는 칸이라 정사각형이어야 한다 — width:100%(공통 .hd_boards_link)를 풀어야 aspect-ratio 가 산다 */
.hd_boards_link--out {
  flex: 0 0 auto;
  justify-content: center;
  width: auto;
  aspect-ratio: 1 / 1;
  padding: 0;
}

/* 로그아웃만 위험 동작이라 hover 를 목록(파랑)과 다른 붉은색으로 뗀다 */
.hd_boards_link--out:hover {
  background-color: var(--adminH-danger);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--adminH-danger) 35%, transparent);
}

/* 나가는 방향이 오른쪽을 향해야 로그아웃으로 읽힌다 */
.hd_boards_link--out svg {
  width: calc(var(--px) * 16);
  height: calc(var(--px) * 16);
  transform: scaleX(-1);
}

@media screen and (max-width: 599px) {
  .hd_boards {
    right: 4vw;
  }
  .hd_boards_btn {
    gap: 1.6vw;
    padding: 0 3.4vw;
    font-size: 3.2vw;
    border-radius: 4vw;
  }
  .hd_boards_badge {
    height: 4.4vw;
    padding: 0 1.6vw;
    font-size: 2.5vw;
  }
  .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;
  }
  .hd_boards_link--adm {
    margin-top: 1vw;
    border-radius: 0 0 2vw 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;
  }
  .hamburger {
    position: absolute;
    top: 33%;
    right: 5%;
    padding: 0;
    background: none;
    border: 0;
    cursor: pointer;
  }
  .hamburger-menu {
    width: 8vw;
    height: 4.5vw;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .line {
    background: var(--primary);
    width: 100%;
    height: 2px;
    border-radius: 0px;
    position: relative;
    transition: all 0.3s;
    transform-origin: center;
    position: absolute;
    margin: 0 !important;
  }
  .top-reverse {
    top: 0%;
  }
  .bot-reverse {
    bottom: 0%;
  }
  .line_change.top-reverse {
    top: 50%;
    transform: translate(0, -50%) rotate(45deg);
    background-color: var(--primary);
  }
  .line_change.mid-reverse {
    opacity: 0;
  }
  .line_change.bot-reverse {
    bottom: 50%;
    transform: translate(0, 50%) rotate(-45deg);
    background-color: var(--primary);
  }
  /* -------------------header 커스텀 시작------------------- */
  /* 높이는 위 :root 의 --hd-h 가 모바일 값으로 재정의돼 자동으로 따라온다 */
  .header {
    position: fixed;
    left: 0;
    top: 0;
    justify-content: flex-start;
    align-items: center;
    font-size: 4.5vw;
    background: #fff;
    transform: translateX(0);
    width: 100%;
  }

  .header_logo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 22vw;
    aspect-ratio: 513 / 176;
    margin-left: 5vw;
  }

  /* 햄버거가 absolute 라 흐름에서 빠져 있어 그 폭만큼 오른쪽 여백을 직접 비운다 */
  .header_cta {
    width: auto;
    height: 8vw;
    padding: 0 3.2vw;
    margin-right: 17vw;
    font-size: 3.2vw;
  }

  /* 모바일 메뉴 = 오른쪽에서 밀려 들어오는 드로어. 열림 상태는 .header_menu_drop (js/header.js) */
  .header_menu {
    position: fixed !important;
    right: -100%;
    pointer-events: none;
    padding: 24vw 6vw 0 10vw;
    width: 62%;
    box-sizing: border-box;
    transition: all 0.3s;
    clear: both;
    background-color: #ffffff;
    /* 드로어 배경 이미지가 필요하면 아래 3줄을 프로젝트 이미지로 살린다
    background-image: url(/images/{드로어배경}.jpg);
    background-size: cover;
    background-position: center; */
    color: #000000;
    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: 5.5vw;
  }

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

  /* 드로어 뒤 딤 — .header(z-index:9999) 밖에 두어 헤더·드로어보다 한 층 아래로 깔린다 */
  .header_dim {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background-color: rgb(0 0 0 / 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, backdrop-filter 0.3s;
  }

  .header_dim.is_open {
    opacity: 1;
    pointer-events: auto;
    backdrop-filter: blur(4px);
  }

  .header_menu_1 {
    height: auto;
    font-size: 4.4vw;
    color: #000000;
    font-weight: 500;
  }

  /* PC 호버색이 드로어 배경과 겹쳐 글자가 묻힌다.
     모바일엔 실제 호버가 없고 탭 후 :hover 가 남는 게 전부라 기본색을 유지한다. */
  .header_menu_1:hover {
    color: #000000;
  }
  /* ※ TOP 버튼(.top_btn*) 모바일 값은 css/mobile_style.css 에 둔다 —
     이 파일에선 PC 정의가 이 미디어쿼리보다 아래라 여기 쓰면 덮어써진다 */
  /* -------------------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";
}

/* ═══════════════════════ TOP 버튼 (fixed · z-index = .header 와 동일 9999) ═══════════════════════
   마크업은 theme/design/template/header/index.html 하단. 모바일 값은 css/mobile_style.css */
.top_btn {
  position: fixed;
  right: calc(var(--px) * 42);
  bottom: calc(var(--px) * 125);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.top_btn img {
  width: 100%;
}

.top_btn_img {
  display: flex;
  justify-content: center;
  align-items: center;
  /* TOP 아이콘 자연사이즈로 교체 */
  width: calc(var(--px) * 50);
  aspect-ratio: 50 / 110;
}

.top_btn_txt {
  margin-top: 0.3vw;
  font-size: calc(var(--px) * 16);
  line-height: calc(var(--px) * 14);
  color: #ffffff;
}
