/* ===== Layout 공통 ===== */



/* ===========================
   Header / Footer
=========================== */

@font-face {
    font-family: 'Pretendard-Medium'; 
    src: url('../fonts/Pretendard-Medium.woff2') format('woff2');   
    font-weight: normal;
    font-style: normal;
}

body {
font-family: 'Pretendard-Medium', sans-serif;
}

#header {
    width: 100%;
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.377);
}

#header .inner {
    max-width: 1250px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* padding: 0 20px; */
    height: 80px; /* 헤더 높이 */
}

#header.scrolled {
    background-color: rgba(0, 0, 0, 0.897);
    color: #fff;
    border-bottom: none;
}

#container .inner {
    max-width: 1250px;
    margin: 0 auto;
}


input {
    border: 1px solid #ccc;
    padding: 10px;
}

/* 로고 스타일 */
.logo img {
    display: block;
    height: 80px;
}

/* 네비게이션 스타일 */
.nav {
    height: 100%;
}

.gnb__list {
    display: flex;
    height: 100%;
}

.gnb__item {
    position: relative;
    height: 100%;
}

.gnb__link {
    display: flex;
    align-items: center;
    padding: 0 25px;
    height: 100%;
    font-size: 18px;
    transition: color 0.3s;
}

/* 2차 메뉴 (Drop-down) */
.depth2 {
    position: absolute;
    top: 80px; /* 헤더 높이와 동일하게 */
    left: 50%;
    transform: translateX(-50%);
    background-color: #000;
    width: 180px;
    padding: 15px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: none; /* 기본적으로 숨김 */
}

.depth2__item {
    width: 100%;
}

.depth2__link {
    display: block;
    padding: 10px 20px;
    color: #fff;
    font-size: 15px;
    text-align: center;
    transition: background 0.2s;
}

.depth2__link:hover {
    /* background-color: #f5f5f5; */
    color: var(--main-color);
    font-weight: bold;
}

/* 호버 시 2차 메뉴 표시 */
.gnb__item:hover .depth2 {
    display: block;
}

/* 서브페이지 공통배너 */

.sub-wrap > .top_banner {
    height: 400px;
    width: 100%;
    background: url("../images/main/sub_top_banner_img.png");
}

.sub-wrap > .top_banner .top_baneer_title {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    color: #fff;
}

.sub-wrap > .top_banner .top_baneer_title .big-t {
    font-size: 2.7rem;
    font-weight: 600;
    padding-top: 2%;
}

/* ===== 공통 wrapper ===== */
.popup-wrap {
  position: fixed;
  top: 200px;          /* 🔥 상단 기준선 (값 조절 가능) */
  z-index: 9999;
}

/* 각각 위치 지정 (가로 일렬) */

#eventPopup { 
    position: fixed;
    top: 42%;
    left: 45%;
    transform: translate(calc(-50% - 460px), -50%);
    z-index: 10000;
}

/* 팝업 박스 */
.popup{
    position: relative;
    max-width: 500px;
    width: 100%;
    background-color: #ccc;
    padding: 20px;
}

/* 닫기 버튼 */
#eventPopup .popup-close {
  top: 10px;
  right: 10px;
}

/* 이미지 안전장치 */
.popup-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 85vh;   /* 노트북 안전장치 */
  object-fit: contain;
}

.popup-inner {
  position: relative;   /* 🔥 버튼 기준점 */
  display: inline-block;
}

.popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  line-height: 34px;
  border-radius: 50%;
  background: rgba(0,0,0,.7);
  color: #fff;
  border: none;
  cursor: pointer;
  text-align: center;
  font-size: 20px;   /* 기본보다 크게 */
  font-weight: bold; /* 더 또렷하게 */
}

.popup_btn_link .popup_btn_img {
    position: absolute;
    bottom: 40px;
    width: 40%;
    right: 0;
}

.popup__a {
    background-color: #000;
    display: flex;
    flex-direction: row;
}

.popup__a .popup__a_link {
    display: inline-block;
    padding: 10px 0;
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
	color:#fff;
}

@media screen and (max-width: 1100px) {
  #eventPopup {
    /* 복잡한 계산식 제거하고 화면 정중앙으로 배치 */
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%; /* 화면 양옆에 약간의 여유 */
    max-width: 550px;
  }
}

/* 팝업 내부 이미지도 반응형으로 대응 */
.popup-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 70vh; /* 모바일에서는 높이를 조금 더 줄여주는 것이 안전함 */
  object-fit: contain;
}


.footer {
  background-color: #000;
  padding: 5%;
  color: #fff;
}

.footer .footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  gap: 30px;
  font-size: 0.9rem;
}

.footer__info > .footer__info-list {
  display: flex;
  flex-direction: row;
  gap: 20px;
  flex-wrap: wrap;
}

.footer__info > .footer__info-list > .footer__info-item span:first-child {
  color: #aaa;
}

/* ===========================
   Mobile Menu
=========================== */

.mobile-menu-btn{
  display:none;
  flex-direction:column;
  gap:6px;
  background:none;
  border:none;
  cursor:pointer;
  z-index:1001;
}

.mobile-menu-btn span{
  width:25px;
  height:3px;
  background:#fff;
  display:block;
}

td {
  word-break: keep-all;
}

td.time {
  white-space: nowrap;
}

/* ===========================
   Responsive
=========================== */

@media (max-width:1024px){

  /* 햄버거 버튼 */

  .mobile-menu-btn{
    display:flex;
  }

  /* 사이드 메뉴 */

  .nav{
    position:fixed;
    top:0;
    right:-320px;
    width:320px;
    height:100vh;
    background:#000;
    padding-top:80px;
    transition:.35s;
    overflow-y:auto;
  }

  .nav.active{
    right:0;
  }

  /* 메뉴 구조 변경 */

  .gnb__list{
    flex-direction:column;
    height:auto;
  }

  .gnb__item{
    height:auto;
    border-bottom:1px solid rgba(255,255,255,.2);
  }

  .gnb__link{
    display:block;
    padding:18px 25px;
    color:#fff;
  }

  /* submenu */

  .depth2{
    position:static;
    transform:none;
    width:100%;
    background:#111;

    max-height:0;
    overflow:hidden;
    padding:0;

    transition:max-height .35s ease;
  }

  .gnb__item.active .depth2{
    max-height:400px;
    padding:10px 0;
  }

  .depth2__link{
    text-align:left;
    padding:12px 40px;
    color:#ccc;
  }


}