* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  position: relative;
}

main {
  width: 100%;
  min-height: 100%;
  overflow: hidden;
  position: relative;
}

/* Header */
.header {
  width: 100%;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 2000;
}

.top-header {
  width: 100%;
  max-width: 1280px;
  height: 102px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2000;
  position: relative; /* position 속성 추가 */
  background: #fff; /* 배경색 추가 */
}

.logo {
  width: auto;
  object-fit: contain;
}

@media screen and (max-width: 1300px) {
  .top-header {
    padding: 0 20px;
  }
}

@media screen and (max-width: 480px) {
  .top-header {
    justify-content: center;
  }
}

/* Navigation */
.nav {
  width: 100%;
  height: 64px;
  background: #4169e1;
  position: relative;
}

.nav-menu {
  width: 100%;
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  padding: 0;
  display: flex;
  gap: 74px; /* 메뉴 항목 사이 간격 추가 */
  align-items: center;
  list-style: none;
  white-space: nowrap; /* 줄바꿈 방지 */
  justify-content: space-between;
}

.nav-menu li a,
.nav-menu li span {
  color: #fff;
  font-size: 16px;
  text-decoration: none;
  font-weight: 500;
}

.nav-menu li span {
  cursor: pointer;
}

.nav-menu li span img {
  vertical-align: middle;
}

.nav-menu li.menu-etc a {
  background: #3255b3;
  padding: 8px 16px;
  border-radius: 8px;
}

.nav-menu li .menu-mobile {
  display: none;
}

@media screen and (max-width: 1300px) {
  .nav-menu {
    padding: 0 20px;
  }
  .nav-menu li.menu-etc {
    display: none;
  }
}

@media screen and (max-width: 1200px) {
  .nav-menu {
    justify-content: end;
  }
  .nav-menu li.menu-item {
    display: none;
  }
}

@media screen and (max-width: 768px) {
  .nav-menu li .menu-pc {
    display: none;
  }
  .nav-menu li .menu-mobile {
    display: block;
  }
}

/* Footer */
.footer {
  width: 100%;
}

.partner-section {
  width: 100%;
  height: 84px;
  background: #fff;
  border-top: 1px solid #e4e4e4;
  border-bottom: 1px solid #e4e4e4;
}

.partner-container {
  max-width: 1280px;
  width: 100%;
  height: 84px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  position: relative;
}

.partner-logos-wrapper {
  width: 100%;
  max-width: 1120px;
}

.partner-container .swiper-button-prev,
.partner-container .swiper-rtl .swiper-button-next {
  left: 0;
}

.partner-container .swiper-button-next,
.partner-container .swiper-rtl .swiper-button-prev {
  right: 0;
}

.partner-container .swiper-button-next::after,
.partner-container .swiper-button-prev::after {
  color: #868686;
  font-size: 24px;
}

.partner-logos .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-link {
  height: 44px;
  display: flex;
  align-items: center;
}

@media screen and (max-width: 1300px) {
  .partner-logos-wrapper {
    width: 90%;
  }
}

.footer-content {
  background: #202848;
}

.footer-container {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 0;
  display: flex;
  gap: 120px;
}

.footer-logo {
  flex: 1;
}

.footer-wrapper {
  display: flex;
  flex: auto;
  flex-direction: column;
  gap: 10px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  gap: 16px;
  align-items: center;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  text-decoration: none;
}

.footer-links .divider {
  color: #8c8e96;
}

.family-site select {
  width: 180px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  /*background: transparent;*/
  background: #202848;
  color: #fff;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-info span {
  display: block;
  color: #8c8e96;
  font-size: 14px;
  line-height: 1.7;
}

.footer-copyright {
  color: #8c8e96;
  font-size: 12px;
}

.social-links {
  display: flex;
  gap: 8px;
  align-items: end;
}

@media screen and (max-width: 1300px) {
  .footer-container {
    padding: 40px 20px;
  }
}

@media screen and (max-width: 1024px) {
  .footer-container {
    flex-direction: column;
    gap: 20px;
  }
}

@media screen and (max-width: 640px) {
  .footer-wrapper {
    gap: 20px;
  }

  .footer-top {
    flex-direction: column;
    gap: 20px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 20px;
  }
}

/* Modal Popup Styles */
.modal {
  display: none; /* 초기 상태는 숨김 */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000; /* 더 높은 z-index 값 */
}

.modal-content {
  position: fixed; /* absolute에서 fixed로 변경 */
  /*
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  */
  background: #fff;
  /*
  width: 100%;
  max-width: 400px;
  */
  border-radius: 20px;
  overflow: hidden;
}

.close {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 28px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
  z-index: 10;
}

.popup-img {
  width: 100%;
  display: block;
}

.modal-footer {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border-top: 1px solid #eee;
}

.dont-show {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #666;
  font-size: 14px;
  cursor: pointer;
}

.close-btn {
  background: none;
  border: none;
  color: #666;
  font-size: 14px;
  cursor: pointer;
  padding: 8px 16px;
}

@media screen and (max-width: 480px) {
  .modal-content {
    width: 97%;
  }
}

/* 사이드 메뉴 스타일 */
.side-menu {
  position: fixed;
  right: calc((100% - 1920px) / 2 + 40px); /* 1920px 기준으로 위치 조정 */
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
}

.side-button {
  display: flex;
  flex-direction: row; /* column에서 row로 변경 */
  justify-content: space-between; /* 좌우 정렬 */
  align-items: center;
  gap: 15px; /* 간격 조정 */
  padding: 20px 25px;
  background-color: #4169e1;
  border-radius: 15px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  min-width: 160px; /* 최소 너비 설정 */
}

.side-button:hover {
  background-color: #3154b3;
  transform: translateX(-5px);
}

.side-button img {
  width: 32px;
  height: 32px;
  order: 2; /* 이미지를 오른쪽으로 배치 */
}

.side-button span {
  color: white;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
}

/* Z-index 설정 */
header {
  z-index: 2000;
}

.banner-section {
  z-index: 1;
}

.icon-menu-section {
  z-index: 2;
}

.info-section {
  z-index: 1;
}

.footer {
  z-index: 1;
}
