html,
body {
  height: 100%;
  font-family: "NanumSquare", sans-serif;
}
body {
  height: 100%;
  overflow-x: hidden;
}

.wrap {
  height: 100%;
  width: 100%;
  /* position: relative; */
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2;
  /* display: flex; */
  /* flex-direction: column; */
  /* justify-content: space-between; */
  /* background-color: #00000083; */
}

#sub-page.wrap {
  position: relative;
  display: block;
}
a {
  color: #333 !important;
  text-decoration: none;
}

.hidden {
  display: none !important;
}

.table,
.b-table {
  border-top: 1px solid #7f7f7f;
  border-bottom: 1px solid #7f7f7f;
}
.table p {
  margin-bottom: 0px;
}
.b-table tr td {
  border-bottom: 1px solid #7f7f7f;
}
tr td.tdh {
  width: 25%;
  background-color: #d6e6a7;
}
tr td.tdh2 {
  width: 25%;
  background-color: #ffffff;
}
/* btn */
.btn {
  white-space: nowrap;
}
a.btn {
  color: #fff !important;
}

a.btn-light {
  color: #666 !important;
}
.btn-dark-trans {
  color: #fff !important;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
}
.btn-dark-trans:hover {
  background-color: rgba(0, 0, 0, 0.7);
}
.btn-sub-menu {
  padding: 5px 40px;
  font-size: 30px;
  border-top: 1px solid #666666;
  border-bottom: 1px solid #666666;
  white-space: nowrap !important;
}
.btn-sub-menu:hover {
  color: #ffffff !important;
  background-color: #176332;
  border: none;
}
.text-shadow {
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
}

/* header */
.header {
  top: 0;
  padding: 60px 80px 0;
  position: absolute;
  width: 100%;
  z-index: 3;
}
#sub-page .header {
  padding: 60px 70px 0px;
  position: relative;
}
img.main-logo-img {
  /* filter: brightness(100) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3)); */
}

/* ---------------main menu -------------- */

/* 메인 메뉴 기본 스타일 */
.main-menu {
  position: absolute;
  right: 60px;
  top: 60px;
  text-align: left; /* 서브페이지와 동일하게 왼쪽 정렬 */
  height: 60px;
  width: 50px;
  /* background-color: #ccc; */
}

.main-menu > ul > li > a {
  white-space: nowrap;
  font-size: 18px !important;
}

/* 메뉴 리스트 스타일 */
.menu-list {
  /* opacity: 0; */
  width: 400px;
  height: 100vh;
  right: -400px;
  top: 0;
  padding-top: 60px;
  padding-left: 45px;
  position: absolute;
  transition: all ease-out 0.3s;
  background-color: #f2f2f2;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE, Edge */
  z-index: 999;
  overflow: hidden;
}
.index-page .menu-list {
  background-color: #000000d0;
}
.index-page .menu-list li a {
  color: #fff !important;
  opacity: 0.7;
}

.index-page .menu-list li a:hover {
  color: #fff !important;
  opacity: 1;
}
.index-page div.menu-list > ul > li {
  color: #35ad60;
}
.index-page #btn-close > div {
  background-color: #fff;
}

/* 메뉴 활성화 시 리스트 보이기 */
.menu-list.active {
  position: fixed;
  opacity: 1;
  right: 0;
  top: 0px;
  height: 100vh;
  width: 400px;
  overflow-y: auto;
  overflow: auto;
}
.menu-list::-webkit-scrollbar {
  display: none;
}

/* 메뉴 심볼 숨김 처리 (필요시 hidden 클래스 적용) */
.main-menu .menu-simbol.hidden {
  visibility: hidden; /* 또는 display: none; */
}

/* 메뉴 리스트 내부 ul 스타일 */
div.menu-list > ul {
  list-style: none;
}

/* 메뉴 리스트 1차 항목 스타일 */
div.menu-list > ul > li {
  margin-right: 10px;
  font-size: 24px;
  color: #176332;
}

/* 메뉴 리스트 2차 항목 스타일 */
div.menu-list > ul > li > ul {
  padding: 0 14px;
}
div.menu-list > ul > li > ul > li {
  list-style: none;
}
div.menu-list > ul > li > ul > li > a {
  font-size: 18px;
}
div.menu-list > ul > li > ul > li > a:hover {
  color: #000 !important;
  font-weight: bold;
}

/* 메뉴 심볼 스타일 */
.menu-simbol {
  width: 60px;
  height: 60px;
  right: 0;
  position: absolute;
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  /* background-color: #ccc; */
}
.menu-simbol div {
  width: 40px;
  height: 4px;
  background-color: #fff;
  margin-bottom: 12px;
}
.menu-simbol div:last-child {
  margin-bottom: 0;
}
/* 서브페이지 디자인 반영: 메뉴 심볼 색상 */
.menu-simbol div {
  background-color: #176332;
}

/* 공통 메뉴 리스트 스타일 */
.menu-list {
  list-style: none;
  /* padding: 0;
  margin-top: 100px;
  width: 200px;
  position: absolute;
  right: 0; */
}

/* 메뉴 리스트 항목 스타일 */
.menu-list > ul > li {
  margin-bottom: 1.4rem;
  font-size: 1.2rem;
}
.menu-list > li > a {
  font-weight: bold;
  color: #ffffff !important;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.7);
}
/* 서브페이지 디자인 반영: 링크 색상 및 텍스트 섀도우 */
.menu-list li a {
  color: #999 !important;
  text-shadow: none;
}
.menu-list > li > ul > li:hover a {
  font-weight: bold;
  color: #000000;
}
.menu-list li a:hover {
  color: #ffffff !important;
}

/* 닫기 버튼 스타일 */
#btn-close {
  opacity: 0.5;
  position: absolute;
  top: 60px;
  right: 40px;
  width: 50px;
  height: 50px;
  transition: all 0.5s;
  /* background-color: #ccc; */
}
#btn-close:hover {
  opacity: 1;
}
#btn-close > div {
  position: absolute;
  width: 60px;
  height: 1px;
  background-color: #000;
  left: -4px;
  top: 24px;
}
#btn-close > div:first-child {
  transform: rotate(45deg);
}
#btn-close > div:last-child {
  transform: rotate(-45deg);
}

/* ---------------- end of menu ------------------- */

.sub-ttl {
  font-size: 30px;
  color: #176332;
}
.page-ttl {
  color: #000;
  font-size: 36px;
  font-weight: bold;
}

#sub-page h3 {
  color: #000;
  font-size: 36px;
  font-weight: bold;
}

/* middle */
.middle {
  color: #fff;
}

.middle a {
  color: #fff;
}
.middle h1 {
  font-family: "Abril Fatface", serif;
  font-weight: 400;
  font-style: normal;
  font-size: 7rem;
}
#sub-page .middle {
  padding: 70px;
  color: #333;
}
#sub-page-text {
  font-size: 18px;
  letter-spacing: -0.1rem;
  /* line-height: 2.4rem; */
}
.greetings-txt {
  width: 694px;
}
.more a {
  color: #fff !important;
  font-weight: bold;
  text-shadow: 0 0 5px rgba(0, 0, 0, 1);
}
.page-history h4 {
  white-space: nowrap;
}
#sub-page .col-xl-6 img,
#sub-page .col-lg-6 img,
#sub-page .col-md-6 img {
  max-width: 100%;
}
#sub-page .middle.board {
  /* width: 1296px; */
  /* margin: 0 auto; */
}
/* footer */
.footer {
  position: fixed;
  bottom: 0px;
  min-height: 105px;
  width: 100%;
  color: #ccc;
  padding: 10px;
  z-index: 3;
  display: flex;
  align-items: center;
}
#sub-page .footer {
  position: relative;
}

.footer-inner {
  /* align-items: center; */
  /* justify-content: space-between; */
  /* display: flex; */
  /* height: 100%; */
  width: 100%;
  /* background-color: #0000009d; */
  padding: 0 80px;
}
#sub-page .footer-inner {
  /* max-width: 1620px; */
  /* margin: 0 auto; */
  border-top: 1px solid #ccc;
  background: none;
  color: #666;
  padding: 0;
}
.footer-inner > .row > div {
  display: flex;
  align-items: center;
}
.footer-inner > .row > div:last-child {
  justify-content: end;
}
.footer-btns {
  text-align: right;
}

/* --------------- media ----------------- */

@media (min-width: 1400px) {
  .container,
  .container-lg,
  .container-md,
  .container-sm,
  .container-xl,
  .container-xxl {
    max-width: 1774px;
  }
}
@media (max-width: 1200px) {
  .btn-sub-menu {
    font-size: 1.2rem;
  }
}
@media (max-width: 992px) {
  #sub-page .header {
    padding-left: 0;
    padding-right: 0;
    padding-top: 13px;
  }
  #sub-page .middle {
    padding: 0;
    padding-top: 70px;
  }
  .btn-sub-menu {
    font-size: 1.2rem;
  }
  .main-menu {
    top: 30px;
    right: 30px;
  }
  #sub-page .main-menu {
    right: 0px;
  }
  .header {
    padding: 13px;
  }
}
@media (max-width: 768px) {
  #sub-page .middle {
    padding: 0;
    padding-top: 70px;
  }
}
@media (max-width: 576px) {
  #sub-page .middle {
    padding: 0;
    padding-top: 40px;
  }
  .footer-inner {
    padding: 10px 20px;
  }
  .footer-btns {
    text-align: center;
    font-size: 0.8rem;
  }
  .footer-btns .btn {
    font-size: 0.8rem;
  }
}

@media (min-width: 768px) {
  table .d-md-block {
    display: table-cell !important;
  }
}
/* -------------- animation--------------- */
@keyframes rotate {
  from {
    -webkit-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
    opacity: 0;
  }
  to {
    -webkit-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
    opacity: 1;
  }
}

@keyframes reverseRotate {
  from {
    transform: rotate(360deg);
    /* opacity: 1; */
  }
  to {
    transform: rotate(0deg);
    /* opacity: 0; */
  }
}

/* 슬라이드 스타일 */
.slide {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  padding: 30px;
  box-sizing: border-box;
  z-index: 999;
}

/* 이미지 크기 조절 */
.slide-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* 닫기 버튼 */
.close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

/* 좌우 버튼 스타일 */
.prev-btn,
.next-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 30px;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.prev-btn {
  left: 20px;
}
.next-btn {
  right: 20px;
}

.prev-btn:hover,
.next-btn:hover,
.close-btn:hover {
  color: #006eff;
}

/* 슬라이드 활성화 시, 뒤쪽 요소 마우스 이벤트 차단 */
body.no-scroll {
  overflow: hidden; /* 스크롤 차단 */
  pointer-events: none; /* 모든 요소의 마우스 이벤트 차단 */
}

/* 하지만 slide 내부는 마우스 이벤트 허용 */
body.no-scroll .slide {
  pointer-events: auto;
}

/* 썸네일 이미지 효과 */
.img-list > div > div {
  overflow: hidden;
  transition: all 0.5s;
  border: 1px solid #fff;
}
.img-list > div > div:hover {
  border: 1px solid #666;
}
.img-list img {
  transition: transform 0.7s ease;
}

.img-list img:hover {
  transform: scale(1.1); /* 마우스 올렸을 때 10% 확대 */
}

.bg-box {
  padding: 10px;
  padding-left: 60px;
  background-image: url("/img/sub3-bg.gif");
  background-repeat: no-repeat;
}
.bg-box li {
  margin-bottom: 10px;
}
.bx > div {
  margin-left: 30%;
  background-color: #f3f3f3;
  width: 7px;
  height: 40px;
}
.text-green {
  color: #176332 !important;
  font-weight: bold;
}

.location_wrap {
  /* margin: 0 auto; */
}
.location_wrap .wrap_controllers,
.location_wrap .cont {
  display: none;
}
.root_daum_roughmap_landing {
  width: 100% !important;
}
.map-info {
  background-color: #062d53;
  color: #fff;
}
.map-info p {
  margin-bottom: 1rem;
}

.nowrap {
  white-space: nowrap !important;
}
