/* -------------------------
   기본 레이아웃 & 구조
------------------------- */
#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_title .bo_v_tit,
.board_title {
  font-family: 'pretendard Variable';
  font-weight: 700;
  display: block;
  font-size: 17px;
  margin: 5px 0 0;
  word-break: break-all;
  letter-spacing: -1px;
}

#bo_v_con {
  margin: 30px 0;
  width: 100%;
  line-height: 1.7em;
  min-height: 200px;
  word-break: break-all;
  overflow: hidden;
  font-size: 1.3em;
}


/* -------------------------
   HD 팝업
------------------------- */
#hd_pop {
  pointer-events: none;
  height: 100vh;
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100% !important;
}

#hd_pop>div {
  pointer-events: all;
  margin: 0 auto !important;
  left: unset !important;
  border-radius: 22px;
  overflow: hidden;
  background: black;
}

#hd_pop>div>div>iframe {
  height: 100%;
}

.hd_pops img {
  width: 100% !important;
}

.hd_pops_footer {
  font-family: 'pretendard Variable';
  font-weight: 700;
}

.hd_pops_footer .hd_pops_reject {
  font-family: 'pretendard Variable';
  font-weight: 700;
}

.hd_pops_footer .hd_pops_close {
  background: #000000;
  top: inherit;
  bottom: 0;
}

.hd_pops_con {
  width: 100% !important;
  height: auto !important;
}

/* -------------------------
   버튼 스타일
------------------------- */
.k_new_btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 2% 0 6%;
}

.k_btn_inner {
  font-size: 1.5vw;
  background: black;
  color: white;
  padding: 1% 3%;
  border-radius: 30px;
}

.k_btn_inner>a,
.k_btn_inner>input {
  color: white;
  font-size: 1.1em;
  outline: none;
  appearance: none;
  border: unset;
  background: unset;
}

.k_new_btn>.k_btn_inner:nth-child(2) {
  background: #0000008f;
  margin-left: 2%;
  padding: 0.7% 2% !important;
}

/* -------------------------
   게시판 작성폼
------------------------- */
#bo_w .bo_w_tit .frm_input {
  padding-right: 0 !important;
}

/* -------------------------
   반응형 - 태블릿
------------------------- */
@media screen and (max-width:1023px) {
  #hd_pop {
    top: 3% !important;
    width: 90% !important;
  }

  #hd_pop>div {
    width: 85% !important;
    top: 5% !important;
  }

  .hd_pops_footer {
    font-size: 2.6vw !important;
  }
}

/* -------------------------
   반응형 - 모바일
------------------------- */
@media screen and (max-width:599px) {
  #hd_pop {
    top: 5% !important;
    width: 90% !important;
  }

  #hd_pop>div {
    width: 90% !important;
    top: 5% !important;
  }

  .hd_pops_footer {
    font-size: 2.6vw !important;
  }
}


/* ======================= 석촌 PC 헤더 시작 ======================= */

.header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999999999;

  width: 100%;
  height: calc(var(--px) * 97);

  background: #fff;

  display: flex;
  justify-content: center;
  align-items: center;
}

.header_inner {
  display: flex;
  justify-content: space-between;
  align-items: center;

  width: 100%;
  height: 100%;

  padding-left: calc(var(--px) * 280);
  padding-right: calc(var(--px) * 306);
}

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

  color: #000;
  font-size: calc(var(--px) * 20);
  font-weight: 500;
  letter-spacing: -0.04vw;
}

.header_menu_left {
  gap: 4.5vw;
}

.header_menu_right {
  gap: 5.2vw;
}

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

  position: relative;
  cursor: pointer;
  white-space: nowrap;
  transition: 0.3s;
}

.header_menu_1 p {
  margin: 0;
}

.header_menu_1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: calc(var(--px) * -8);
  width: 100%;
  height: 1px;
  background: #cd0c1b;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

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

  width: calc(var(--px) * 255);
  aspect-ratio: 255 / 44;
}

.header_logo img {
  width: 100%;
}

.hamburger {
  display: none;
}

/* hover는 PC 전용 */
@media screen and (min-width: 600px) {
  .header_menu_1:hover {
    color: #cd0c1b;
  }

  .header_menu_1:hover::after {
    transform: scaleX(1);
  }
}

/* ======================= 석촌 PC 헤더 끝 ======================= */


/* ======================= 석촌 모바일 헤더 시작 ======================= */
@media screen and (max-width: 599px) {

  .header,
  .header:not(.top0) {
    height: auto;
    background: #fff;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
    transition: none;
  }

  .header_inner {
    position: relative;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0;
    padding-top: 15vw;
  }

  .header_logo {
    position: absolute;
    top: 7.5vw;
    left: 4vw;
    transform: translateY(-50%);
    width: 38vw;
  }

  .hamburger {
    display: block;
    position: absolute;
    top: 7.5vw;
    right: 5vw;
    transform: translateY(-50%);
    order: 2;
  }

  .hamburger-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 7vw;
    height: 4vw;
    position: relative;
    cursor: pointer;
  }

  div.line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: #222;
    border-radius: 0;
    margin: 0;
    transition: all 0.3s ease;
    transform-origin: center;
  }

  #line-mid {
    background: #cd0c1b;
  }

  .top-reverse {
    top: 0;
  }

  .mid-reverse {
    top: 50%;
    transform: translateY(-50%);
  }

  .bot-reverse {
    bottom: 0;
  }

  .line_change.top-reverse {
    top: 50%;
    transform: translate(0, -50%) rotate(45deg);
    background: #cd0c1b;
  }

  .line_change.mid-reverse {
    opacity: 0;
  }

  .line_change.bot-reverse {
    bottom: 50%;
    transform: translate(0, 50%) rotate(-45deg);
    background: #cd0c1b;
  }

  /* 메뉴 드롭 — 햄버거 클릭 시 .header_menu_drop 토글 (좌/우 그룹 둘 다 세로로 펼침) */
  .header_menu {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;

    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;

    font-size: 4.2vw;
    font-weight: 500;
    color: #111;
    letter-spacing: 0;
  }

  .header_menu_left {
    order: 3;
    gap: 0;
  }

  .header_menu_right {
    order: 4;
    gap: 0;
  }

  .header_menu.header_menu_drop {
    max-height: 60vw;
  }

  .header_menu_1 {
    width: 100%;
    justify-content: flex-start;
    padding: 4vw 6vw;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  .header_menu_1::after {
    display: none;
  }

  .header_menu_1:active {
    background: #cd0c1b;
    color: #fff;
  }

  .header_menu_1.first {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
  }
}

/* ======================= 석촌 모바일 헤더 끝 ======================= */