@charset "utf-8";

/* ==========================================================================
   base-style.css — 서브 상단 · 서브 본문 · 지도 · 팝업
   --------------------------------------------------------------------------
   헤더 · 푸터 · 사이드 버튼은 style.css(테마 고유)가 담당합니다.
   이 파일은 style.css 보다 *먼저* 읽힙니다.
   ========================================================================== */


/* ==========================================================================
   style.css — 헤더 / 서브페이지 / 푸터 / 플로팅 UI
   ver 4.0.0 (Modern Light / Amber)
   ========================================================================== */

/* ==========================================================================
   2. SUB PAGE HEADER (서브 상단 타이틀 밴드)
   ========================================================================== */
/* 헤더가 sticky 라 자기 자리를 차지하므로, 본문에 따로 위 여백을 주지 않는다.
   (헤더를 fixed 로 바꾸신다면 여기에 헤더 높이만큼 padding-top 을 다시 주세요) */

/* 서브 상단 — 사진 밴드(.sub_visual) 아래에 붙는 얇은 줄
   위아래 헤어라인 사이에 알약 탭(왼쪽) + 브레드크럼(오른쪽)만 담는다.
   페이지 제목은 위 사진 밴드에 있습니다. */
.sub_title {
  position: relative;
  width: 100%;
}

.sub_title .st_band {
  position: relative;
  overflow: hidden;
  background: var(--white-color);
  color: var(--headline-color);
}

/* 패럴럭스 배경 사진 — 밴드보다 위아래로 크게 잡아 두고
   js/custom.js 가 transform 으로 밀어 준다(합성만 일어나 스크롤이 가볍다). */
/* 흰 막 — 사진 위 글자를 또렷하게. 아래로 갈수록 더 하얘져 본문과 이어진다 */
/* 안쪽 요소 — 본문 .inner 의 '글자 칸' 과 똑같은 폭으로 맞춘다.
   .inner 는 (max-width 1600 + 좌우 gutter-sm) 이므로 글자가 놓이는 칸은
   그보다 gutter-sm 만큼 좁다. padding 을 0 으로 두어야 border 가
   본문 페이지 제목의 시작선에서 정확히 시작하고 끝난다. */
.sub_title .nav_wrap {
  position: relative;
  z-index: 3;
  width: calc(100% - var(--inner-pad) * 2);
  max-width: calc(var(--inner-size) - var(--inner-pad) * 2);
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
}

/* ── 얇은 줄 — 위아래 헤어라인 사이에 탭과 브레드크럼 ── */
.sub_title .nav_wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.2rem 2.4rem;

  border-top: 1px solid var(--line-color);
  border-bottom: 1px solid var(--line-color);
  padding-top: 1.4rem;
  padding-bottom: 1.4rem;
}

.sub_title .nav_wrap .sub_nav {
  display: flex;
  align-items: center;
  max-width: 100%;
}

.sub_title .nav_wrap .sub_nav .lnb > a {
  display: none;
}

/* 종이 위라 테두리·그림자 없이 알약만 남긴다 */
.sub_title .nav_wrap .sub_nav .lnb ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.sub_title .nav_wrap .sub_nav .lnb ul li::after {
  display: none;
}

.sub_title .nav_wrap .sub_nav .lnb ul a {
  display: flex;
  align-items: center;
  height: 3.6rem;
  padding: 0 1.6rem;
  border-radius: var(--radius-pill);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--body-color);
  white-space: nowrap;
  transition: background var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease);
}

.sub_title .nav_wrap .sub_nav .lnb ul a:hover {
  background: var(--point-soft);
  color: var(--point-dark);
}

/* 현재 페이지 — 버튼(.btn_primary)과 같은 조합 */
.sub_title .nav_wrap .sub_nav .lnb ul li.on a {
  background: var(--point-color);
  color: var(--point-on);
  font-weight: 700;
}

/* ── 브레드크럼 — 사선 구분자, 현재 페이지만 진하게 ── */
.sub_title .navigation {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.3rem;
  font-weight: 500;
  color: #6f757c;
  white-space: nowrap;
}

.sub_title .navigation a {
  letter-spacing: 0.06em;
}

.sub_title .navigation a:hover {
  color: var(--headline-color);
}

.sub_title .navigation em {
  font-style: normal;
  color: var(--line-color);
}

.sub_title .navigation .now {
  font-weight: 700;
  color: var(--headline-color);
}

@media (max-width: 768px) {
  /* 좁은 화면 : 알약 탭이 현재 위치를 보여 주므로 브레드크럼은 숨긴다 */
  .sub_title .navigation {
    display: none;
  }
  .sub_title .nav_wrap {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
  .sub_title .nav_wrap .sub_nav {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .sub_title .nav_wrap .sub_nav .lnb ul {
    flex-wrap: nowrap;
  }
}

/* --- LNB 단독 사용 시 (sub_title 밖) --- */
.sub_nav {
  position: relative;
}

.sub_nav .lnb ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.sub_nav .lnb ul a {
  display: block;
  white-space: nowrap;
}

.sub_nav .lnb > a {
  display: none;
}

.sub_nav .navigation {
  font-size: 1.4rem;
  white-space: nowrap;
}

/* ==========================================================================
   3. SUB CONTENT
   ========================================================================== */
.sub_content {
  margin-top: 6.4rem;
  margin-bottom: var(--section-gap);
  color: var(--body-color);
}

.sub_content .page_title {
  margin-bottom: 4.8rem;
  text-align: left;
}

.sub_content .page_title h3 {
  padding: 0;
}

.sub_content .page_title h3 strong {
  display: inline-block;
  font-size: var(--fs-h2);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--headline-color);
}

.sub_content .page_title h3::after {
  content: "";
  display: block;
  width: 4rem;
  height: 3px;
  margin: 2rem 0 0;
  border-radius: 3px;
  background: var(--point-color);
}

/* 밴드(.band) 안의 글은 사진 위 흰 글씨이므로 본문 색을 입히지 않는다. */
.sub_content .content p:not([class*="band_"]) {
  font-size: var(--fs-body);
  line-height: 1.8;
  color: var(--body-color);
}

.sub_content .content .sub_title_desc {
  max-width: 72rem;
  margin-bottom: 6rem;
  font-size: var(--fs-lead);
  line-height: 1.7;
  color: var(--muted-color);
  /* 페이지 제목이 왼쪽 정렬이 되면서 같이 왼쪽으로 맞춘다 */
  text-align: left;
}

@media (max-width: 768px) {
  .sub_content {
    margin-top: 5.6rem;
  }
}

/* ==========================================================================
   7. Kakao Map
   ========================================================================== */
.root_daum_roughmap {
  width: 100% !important;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.root_daum_roughmap .cont,
.root_daum_roughmap .wrap_controllers {
  display: none;
}

.root_daum_roughmap .border2 {
  display: block !important;
}

@media (max-width: 768px) {
  .root_daum_roughmap .wrap_map {
    height: 240px !important;
  }
}

/* ==========================================================================
   8. 아웃로그인 (팝업 로그인)
   --------------------------------------------------------------------------
   헤더의 로그인 아이콘을 누르면 페이지 이동 없이 이 자리에서 로그인합니다.
   마크업은 head.php, 열고 닫기는 js/custom.js 가 담당합니다.
   ========================================================================== */
#header .login_btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--headline-color);
  cursor: pointer;
  transition: background var(--t-fast) var(--ease);
}

#header .login_btn:hover {
  background: var(--lightgray-color);
}

#header .login_btn .icon {
  display: block;
  width: 1.9rem;
  height: 1.9rem;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
}

#login_pop {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.4rem;
}

#login_pop[hidden] {
  display: none;
}

#login_pop .lp_bg {
  position: absolute;
  inset: 0;
  background: rgba(var(--dark-rgb), 0.5);
}

#login_pop .lp_box {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 40rem;
  padding: 4rem;
  border-radius: var(--radius-lg);
  background: var(--white-color);
  box-shadow: var(--shadow-lg);
}

#login_pop h2 {
  margin-bottom: 2.4rem;
  font-size: 2.4rem;
  font-weight: 700;
  text-align: center;
}

#login_pop .lp_close {
  position: absolute;
  top: 1.6rem;
  right: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease);
}

#login_pop .lp_close:hover {
  background: var(--lightgray-color);
}

#login_pop .lp_close .icon {
  display: block;
  width: 2rem;
  height: 2rem;
  stroke: var(--headline-color);
  stroke-width: 2;
  fill: none;
}

#login_pop input[type="text"],
#login_pop input[type="password"] {
  width: 100%;
  height: 5.2rem;
  margin-bottom: 0.8rem;
  padding: 0 1.6rem;
  border: 1px solid var(--line-color);
  border-radius: var(--radius-xs);
  background: var(--white-color);
  font-family: inherit;
  font-size: var(--fs-body);
  color: var(--headline-color);
}

#login_pop input[type="text"]:focus,
#login_pop input[type="password"]:focus {
  border-color: var(--point-color);
  outline: 0;
}

#login_pop .lp_submit {
  width: 100%;
  margin-top: 1.6rem;
}

#login_pop .lp_etc {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: 2rem;
  font-size: 1.4rem;
  color: var(--muted-color);
}

#login_pop .lp_etc .chk {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

#login_pop .lp_etc .lnk {
  display: inline-flex;
  gap: 1.2rem;
}

#login_pop .lp_etc a:hover {
  color: var(--headline-color);
  text-decoration: underline;
}

@media (max-width: 480px) {
  #login_pop .lp_box {
    padding: 3.2rem 2.4rem;
  }
}

/* ==========================================================================
   9. 유튜브 팝업 (공용)
   --------------------------------------------------------------------------
   `.yt_play` + `data-yt="영상ID"` 가 붙은 링크를 누르면 페이지 이동 대신
   이 팝업에서 영상을 재생합니다. 게시판(dd__utb)과 메인 섹션이 함께 씁니다.
   마크업은 tail.php, 동작은 js/custom.js 가 담당합니다.
   ========================================================================== */

/* 썸네일 위 재생 버튼 */
.yt_play {
  position: relative;
  display: block;
}

.yt_ico {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

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

  width: 6.4rem;
  height: 6.4rem;
  border-radius: 50%;
  background: rgba(var(--dark-rgb), 0.72);

  transition: background var(--t-base) var(--ease),
    transform var(--t-base) var(--ease);
}

/* 재생 삼각형 */
.yt_ico::before {
  content: "";
  margin-left: 0.4rem;
  border-style: solid;
  border-width: 1.1rem 0 1.1rem 1.8rem;
  border-color: transparent transparent transparent var(--white-color);
}

.yt_play:hover .yt_ico {
  background: var(--point-color);
  transform: translate(-50%, -50%) scale(1.06);
}

.yt_play:hover .yt_ico::before {
  border-left-color: var(--point-on);
}

/* ── 팝업 ── */
#yt_pop {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.4rem;
}

#yt_pop[hidden] {
  display: none;
}

#yt_pop .yt_bg {
  position: absolute;
  inset: 0;
  background: rgba(var(--dark-rgb), 0.82);
}

#yt_pop .yt_box {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 96rem;
}

#yt_pop .yt_frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #000;
}

#yt_pop .yt_frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

#yt_pop .yt_tit {
  margin-top: 1.6rem;
  font-size: var(--fs-h4);
  font-weight: 700;
  line-height: 1.4;
  color: var(--white-color);
}

#yt_pop .yt_tit:empty {
  display: none;
}

#yt_pop .yt_close {
  position: absolute;
  top: -6rem;
  right: 0;

  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.8rem;
  height: 4.8rem;
  padding: 0;

  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease);
}

#yt_pop .yt_close:hover {
  background: rgba(255, 255, 255, 0.15);
}

#yt_pop .yt_close .icon {
  display: block;
  width: 2rem;
  height: 2rem;
  stroke: var(--white-color);
  stroke-width: 2;
  fill: none;
}

@media (max-width: 768px) {
  .yt_ico {
    width: 5.2rem;
    height: 5.2rem;
  }

  .yt_ico::before {
    border-width: 0.9rem 0 0.9rem 1.5rem;
  }

  #yt_pop .yt_close {
    top: -5.2rem;
    width: 4rem;
    height: 4rem;
  }
}


/* ==========================================================================
   서브 상단 사진 밴드
   --------------------------------------------------------------------------
   헤더 아래에 전체폭 사진을 깔고 오른쪽에 대메뉴 이름을 얹습니다.
   사진은 대메뉴마다 다르며 sub.head.php 위쪽 $theme_sub_bg 에서 정합니다.
   아래 알약 탭 · 브레드크럼 줄(.sub_title)은 그대로 이어집니다.
   ========================================================================== */
.sub_visual {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 30rem;
  overflow: hidden;
  background-color: var(--dark-color);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

/* 사진 위를 덮는 막 — 글자가 어느 사진에서나 또렷하게 읽히도록.
   오른쪽(글자 자리)이 더 진해지는 가로 그라데이션입니다. */
.sub_visual .sv_veil {
  position: absolute;
  inset: 0;
  display: block;
  background: linear-gradient(to left,
      rgba(var(--veil-rgb), 0.62) 0%,
      rgba(var(--veil-rgb), 0.5) 40%,
      rgba(var(--veil-rgb), 0.32) 100%);
}

/* 글자 칸 : 아래 브레드크럼 줄(.sub_title .nav_wrap) · 본문 제목과
   똑같은 폭이라 오른쪽 끝이 한 라인에 맞습니다. */
.sub_visual .sv_inner {
  position: relative;
  z-index: 2;
  width: calc(100% - var(--inner-pad) * 2);
  max-width: calc(var(--inner-size) - var(--inner-pad) * 2);
  margin-left: auto;
  margin-right: auto;
}

/* 글자 : 오른쪽 정렬 */
.sub_visual .sv_txt {
  position: relative;
  text-align: right;
}

.sub_visual .sv_txt h2 {
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--white-color);
}

.sub_visual .sv_txt p {
  max-width: 52rem;
  margin: 1.6rem 0 0 auto;
  font-size: var(--fs-body);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 1024px) {
  .sub_visual {
    min-height: 24rem;
  }
}

@media (max-width: 768px) {
  .sub_visual {
    min-height: 18rem;
  }

  .sub_visual .sv_txt p {
    font-size: var(--fs-sm);
  }
}

/* ==========================================================================
   푸터 정책 링크
   --------------------------------------------------------------------------
   개인정보처리방침 · 이메일무단수집거부는 표시 의무가 있어 푸터에 답니다.
   위치를 옮기시려면 tail.php 의 .ft_policy 덩어리를 원하는 자리로 옮기세요.
   ========================================================================== */

.ft_policy {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  margin: 1.6rem 0;
  padding: 0;
  list-style: none;
}

.ft_policy li + li {
  position: relative;
  padding-left: 1.6rem;
}

.ft_policy li + li::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 1px;
  height: 0.5em;
  transform: translateY(-50%);
  background: currentColor;
  opacity: 0.25;
}

.ft_policy a {
  font-size: 1.4rem;
  opacity: 0.85;
}

.ft_policy a:hover {
  opacity: 1;
  text-decoration: underline;
}
