@charset "UTF-8";

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

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


#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;
  /* 헤더 높이만큼 정확히 올린다 — 고정 -5vw(=95px) 면 103 짜리 바가 8px 남아 붉은 띠로 보인다 */
  top: calc(-1 * var(--hd-h));
}

/* ═══════════════════════ 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: 1111111;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  height: var(--hd-h); /* ★ 값은 :root --hd-h 에서 바꾼다 */
  letter-spacing: 0;
  /* ★ 메인 구간에선 헤더 배경을 깔지 않는다 (유저 지시 2026-09-29).
     con01 부터 .header_change 가 붙어 레드가 들어온다 — 토글은 js/header.js. */
  background-color: transparent;
  transition-duration: 0.3s;
  transition-property: top, background-color;
}

/* 메인을 벗어나면(=con01 진입) 레드 배경이 깔린다. 토글 시점은 js/header.js 가 잰다. */
.header.header_change {
  background-color: var(--color-point);
}

/* 로고는 메뉴 글자 길이와 무관하게 **화면 정중앙**이어야 해서 absol 로 띄운다.
   (좌우 메뉴를 flex 로 밀어 가운데를 비우면 글자 폭이 바뀔 때마다 중심이 흔들린다) */
.header_logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  width: calc(var(--px) * 300);
  aspect-ratio: 300 / 43;
}

/* 좌 묶음 ↔ 우 묶음 간격 504 = 로고 300 + 좌여백 103 + 우여백 101 (시안 실측) */
.header_menu {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  gap: 26.5vw;
}

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

/* 좌우 묶음의 글자 폭이 달라 시안의 메뉴 간격도 다르다 (좌 87 / 우 102).
   .header_menu_list 에 gap 을 두고 여기서 덮어쓰면 중복 선언이 되므로, gap 은 여기에만 둔다. */
.header_menu_left {
  gap: 4.6vw;
}

.header_menu_right {
  gap: 5.4vw;
}

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

.header_menu_1 {
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--font-ria);
  font-size: calc(var(--px) * 22);
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  transition: color 0.3s;
}

/* 호버색은 시안에 지정이 없어 브랜드 옐로를 썼다. 붉은 바 위에서 대비가 확보되는 유일한 브랜드색.
   font-weight 를 같이 바꾸면 글자 폭이 변해 옆 메뉴가 밀리므로 색만 바꾼다. */
.header_menu_1:hover {
  color: var(--color-brand);
}

/* 헤더 리모컨 — 지금 보고 있는 섹션의 버튼 (js/header.js 가 붙인다).
   호버와 같은 브랜드 옐로로 둔다 — 상태 색을 새로 만들지 않는다. */
.header_menu_1.remote_on {
  color: var(--color-brand);
}

/* href 를 뗀 버튼은 기본 커서가 되돌아간다 — 링크처럼 보이게 되돌린다 */
.header_btn_1,
.header_btn_2,
.header_btn_3 {
  cursor: pointer;
}

/* ═══════════════════════ 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);
  /* ★ --hd-h + 24(=127) 로 두면 인라인 편집의 「수정모드 켜기」 버튼(fixed · right 24 · top 114,
     높이 36)과 X·Y 가 그대로 겹친다. 그 버튼은 수정모드를 켜기 «전»부터 떠 있으므로
     상태(.st-edit-on)로 피하면 늦다 — 처음부터 그 아래에 둔다. 이 위젯도 관리자 전용이라
     방문자 화면에는 영향이 없다. */
  top: calc(var(--hd-h) + var(--px) * 72);
  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;
    /* 모바일 수정모드 버튼은 right 4vw · top 18vw(높이 8vw) — 버튼 바닥 26vw 아래로 */
    top: 29vw;
  }

  .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;
  }
  .hamburger {
    position: absolute;
    top: 33%;
    right: 5%;
  }
  .hamburger-menu {
    width: 8vw;
    height: 4.5vw;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  div.line {
    background: #ffffff;
    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: #ffffff;
  }
  .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: var(--color-point);   /* 모바일은 항상 레드 — 투명 전환은 PC 전용 (유저 지시) */
    transform: translateX(0);
    width: 100%;
    z-index: 11111111;
  }

  /* PC 는 화면 정중앙 absol — 모바일은 왼쪽 흐름 배치로 되돌린다.
     position/left/transform 셋을 전부 리셋해야 한다 (하나라도 남으면 좌우로 밀린다). */
  .header_logo {
    position: relative;
    left: 0;
    transform: none;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30vw;
    aspect-ratio: 300 / 43;
    margin-left: 5vw;
  }

  /* 모바일 메뉴 = 오른쪽에서 밀려 들어오는 드로어. 열림 상태는 .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: var(--color-point);
    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: 5.5vw;
  }

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

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

  /* PC 호버색이 드로어 배경과 겹쳐 글자가 묻힌다.
     모바일엔 실제 호버가 없고 탭 후 :hover 가 남는 게 전부라 기본색을 유지한다. */
  .header_menu_1:hover {
    color: #fff;
  }
  /* ※ 우측 플로팅(.side_float / .top_btn) 모바일 값은 이 파일 **맨 끝** 미디어쿼리에 둔다 —
     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";
}

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

/* ═══════════════ 우측 플로팅 (fixed · z-index = .header 와 동일 9999) ═══════════════
   시안 PSD 그룹 `TT` = 「1:1 개설상담」 원형 + TOP 버거. 두 버튼은 시안에서 가로 중심이
   맞아 있어(1798.5 / 1797.5) 한 컬럼으로 묶어 center 정렬한다.
   마크업은 theme/design/template/header/index.html 하단. 모바일 값은 이 파일 미디어쿼리. */
.side_float {
  position: fixed;
  /* 링(box-shadow 15)은 레이아웃 폭에 안 잡히므로 원 박스 기준 44 → 링 바깥이 시안대로 29 가 된다 */
  right: calc(var(--px) * 44);
  bottom: calc(var(--px) * 40);
  z-index: 1111111;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.2vw;
}

.side_float img {
  width: 100%;
}

/* 흰 원 + 레드 5 + 옐로 10 (PSD strokeEffect 2겹, 둘 다 outside).
   box-shadow spread 로 겹쳐 쌓는다 — border 로 하면 원 지름이 줄어 캐릭터 클리핑 위치가 어긋난다. */
.side_consult {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  overflow: hidden;
  width: calc(var(--px) * 141);
  aspect-ratio: 1 / 1;
  background-color: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 0 calc(var(--px) * 5) var(--color-point),
              0 0 0 calc(var(--px) * 15) var(--color-brand);
}

.side_consult_txt {
  margin-top: 0.9vw;
  font-family: var(--font-ria);
  font-size: calc(var(--px) * 24);
  font-weight: 800;
  line-height: calc(var(--px) * 29);
  color: var(--color-point);
  text-align: center;
}

/* 캐릭터는 원 아래쪽에 걸쳐 잘린다 — PSD 레이어가 이미 잘린 상태로 나와 있어 그대로 깐다 */
.side_consult_img {
  position: absolute;
  left: 15.6%;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  width: 70.922%;
  aspect-ratio: 100 / 60;
}

/* 라벨이 버거 빵 위에 얹히는 구조라 텍스트만 absol 로 띄운다.
   (흐름으로 쌓으면 버거 아래로 내려가 버린다 — 시안은 빵 안쪽에 박혀 있다) */
.top_btn {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.top_btn_img {
  display: flex;
  justify-content: center;
  align-items: center;
  width: calc(var(--px) * 101);
  aspect-ratio: 101 / 88;
}

.top_btn_txt {
  position: absolute;
  top: 0.9vw;
  font-family: var(--font-chab);
  font-size: calc(var(--px) * 20);
  line-height: calc(var(--px) * 23);
  /* 시안 tracking -50 = -0.05em. 20px 기준 -1.02px */
  letter-spacing: -0.053vw;
  color: #aa4500;
}

/* ═══ 우측 플로팅 모바일 ═══
   ★ 이 블록은 파일 **맨 끝**이어야 한다 — .side_float / .top_btn 의 PC 정의가 위쪽 미디어쿼리보다
     아래에 있어서, 거기서 쓰면 PC 값이 나중에 나와 덮어쓴다. */
@media screen and (max-width: 599px) {
  .side_float {
    right: 4vw;
    bottom: 4vw;
    gap: 2.9vw;
  }

  .side_consult {
    width: 18vw;
    box-shadow: 0 0 0 0.6vw var(--color-point),
                0 0 0 1.9vw var(--color-brand);
  }

  /* 비례대로면 3.06vw 인데 모바일 최소 폰트가 3.3vw 라 거기 맞춘다 (CLAUDE.md §6) */
  .side_consult_txt {
    margin-top: 2.2vw;
    font-size: 3.3vw;
    line-height: 4vw;
  }

  .top_btn_img {
    width: 13vw;
  }

  /* 버거 대비 비율(20/101)을 지켜 2.6vw — 모바일 최소폰트 3.3vw 예외다.
     본문이 아니라 아이콘 안에 박힌 장식 라벨이라 비율을 깨면 빵 밖으로 삐져나온다. */
  .top_btn_txt {
    top: 2.1vw;
    font-size: 2.6vw;
    line-height: 3vw;
  }
}
