/* 1986 Footer - Optimized CSS */

/* 기본 리셋 */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Noto Sans KR", "source-han-sans-korean", sans-serif;
  font-weight: 400;
  color: #000;
  background-color: #fff;
}

ul,
ol,
li {
  list-style: none;
  padding: 0;
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

/* 푸터 기본 스타일 */
.site-footer {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 70px;
  background-color: #000;
  color: #fff;
  display: flex;
  justify-content: space-between;
  overflow: hidden;
  flex-wrap: wrap;
}

.site-footer,
.site-footer a,
.site-footer span,
.site-footer .footer-menu .menu,
.site-footer .footer-menu .menu li,
.site-footer .footer-menu .sub-menu,
.site-footer .footer-menu .sub-menu li {
  color: #fff;
}

/* 로고 컬럼 */
.logo-column {
  display: inline-block;
  vertical-align: top;
}

.logo-1986 img {
  width: 253px;
  height: auto;
  display: block;
}

/* 기본 소셜 버튼 - 데스크톱 */
.social-links {
  display: flex;
  gap: 25.5px;
  margin-top: 115px;
}

.social-links a {
  display: inline-block;
  width: 30px;
  height: 30px;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  opacity: 1;
  transition: opacity 0.5s ease, transform 0.3s ease;
}

.social-links a:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* 개별 소셜 버튼 */
.instagram-button {
  background-image: url('https://cdn.imweb.me/upload/S20200402f6a4097001dd3/284f92a850d2b.png') !important;
}

.댕댕페스티벌-instagram-button,
.dangdang-instagram-button {
  background-image: url('https://cdn.imweb.me/upload/S20200402f6a4097001dd3/f5aff5d1c64ef.png') !important;
}

.빵빵런-instagram-button,
.bbangbbang-instagram-button {
  background-image: url('https://cdn.imweb.me/upload/S20200402f6a4097001dd3/dd07906431e29.png') !important;
}

.라이프마라톤-instagram-button,
.marathon-instagram-button {
  background-image: url('https://cdn.imweb.me/upload/S20200402f6a4097001dd3/8ce837c682ac5.png') !important;
}

.naver-blog-button {
  background-image: url('https://cdn.imweb.me/upload/S20200402f6a4097001dd3/c09cbbd74769d.png') !important;
}

/* 메뉴 컬럼 */
.menu-column {
  display: inline-block;
  vertical-align: top;
}

.footer-menu {
  color: #fff;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

/* 메뉴와 서브메뉴 각각 기본 block */
.footer-menu .menu,
.footer-menu .sub-menu {
  display: block;
  vertical-align: top;
  margin: 0;
  padding: 0;
}

/* 메뉴 리스트 항목 여백 */
.footer-menu .menu li {
  margin-bottom: 40px;
  margin-right: 50px;
  display: block;
}

.footer-menu .menu li a {
  text-decoration: none;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.footer-menu .menu li a:hover {
  color: #ff7f00;
  text-decoration: underline;
  text-decoration-color: #ff7f00;
  text-underline-offset: 4px;
}

.footer-menu .sub-menu li {
  margin-bottom: 8px;
  display: block;
  margin-top: 5px;
}

.footer-menu .sub-menu li:first-child {
  margin-top: 0;
}

.footer-menu .sub-menu li:last-child {
  margin-bottom: 0;
}

/* Privacy 링크 */
.privacy-link {
  color: #fff;
  display: block;
  font-weight: inherit;
}

.privacy-link:hover {
  text-decoration: underline;
}

/* Copyright */
.copyright {
  color: #b0b7c0;
  opacity: 0.6;
  text-transform: uppercase;
  margin-top: 10px;
  width: 100%;
  order: 999;
}

/* Footer modal */
.footer-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.footer-modal[aria-hidden="false"] {
  display: flex;
}

.footer-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.footer-modal__content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  width: 90%;
  background: #fff;
  color: #000;
  padding: 28px 32px 32px;
  border-radius: 32px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
  font-family: "Noto Sans KR", "source-han-sans-korean", sans-serif;
  max-height: 90vh;
  overflow: auto;
}

.footer-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: none;
  background: transparent;
  color: transparent;
  
  line-height: 0;
  cursor: pointer;
  padding: 0;
  box-shadow: none;
}

.footer-modal__close::before,
.footer-modal__close::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 2.5px;
  border-radius: 999px;
  background: #000000;
}

.footer-modal__close::before {
  transform: rotate(45deg);
}

.footer-modal__close::after {
  transform: rotate(-45deg);
}

.footer-modal__label {
  margin: 0 0 16px;
  font-weight: 700;
  text-transform: uppercase;
}

.footer-modal__text {
  margin: 10px 0 0;
  color: rgba(0, 0, 0, 0.75);
}

.footer-modal__image {
  width: 100%;
  height: 650px;
  margin: 16px 0 0;
  border-radius: 12px;
  background: url('https://cdn.imweb.me/thumbnail/20251023/67e843a013734.png') center center / cover no-repeat;
  border: none;
}

body.modal-open {
  overflow: hidden;
}

/* 반응형 간격 조정 */
@media screen and (max-width: 1800px) {
  .footer-menu .menu li {
    margin-bottom: 35px;
  }
  .footer-menu .sub-menu li {
    margin-bottom: 7px;
  }
}

@media screen and (max-width: 1024px) {
  .footer-menu .menu li {
    margin-bottom: 30px;
  }
  .footer-menu .sub-menu li {
    margin-bottom: 6px;
  }
}

@media screen and (max-width: 768px) {
  .footer-modal {
    align-items: flex-end;
    padding: 20px 16px;
  }

  .footer-modal__content {
    width: calc(100% - 32px);
    padding: 22px 20px 24px;
    border-radius: 32px;
    max-height: 85vh;
  }

  .footer-modal__image {
    height: 45vh;
    min-height: 240px;
  }

  .footer-modal__close {
    top: 10px;
    right: 10px;
    padding: 10px;
  }

  .footer-modal__text {
  }

  .site-footer {
    flex-direction: column;
    padding: 40px 20px;
  }

  .logo-1986 img {
    width: 185px;
  }

  .logo-column,
  .menu-column {
    display: block;
  }

  .menu-column {
    margin-top: 40px;
  }

  .social-links {
    margin-top: 30px;
    gap: 30px;
  }

  .social-links a {
    width: 30px;
    height: 30px;
    background-size: contain !important;
    margin-top: 0;
  }

  .footer-menu .menu li {
    margin-bottom: 20px;
    margin-right: 0;
  }

  .footer-menu .sub-menu li {
    display: block;
    margin-bottom: 20px;
  }
}

@media screen and (max-width: 480px) {
  .footer-modal {
    padding: 12px;
  }

  .footer-modal__content {
    width: calc(100% - 16px);
    padding: 20px 18px 20px;
    border-radius: 32px;
    max-height: 80vh;
  }

  .footer-modal__image {
    height: 40vh;
    min-height: 200px;
  }

  .footer-modal__text {
  }

  .site-footer {
    padding: 30px 15px;
  }

  .social-links {
    gap: 15px;
    margin-top: 30px;
  }

  .footer-menu .menu {
    flex-direction: column;
    gap: 15px;
  }

  .footer-menu .menu li {
    margin-bottom: 20px;
    margin-right: 0;
  }
}

@supports (corner-shape: continuous) {
  * {
    corner-shape: continuous;
  }
}
