/* ============================================
   Footer CSS
   ============================================ */

footer {
  background: #f9f9f9;
  position: relative;
  width: 100%;
  z-index: 10;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
}

/* fullPage.js 섹션 내부의 footer */
.section footer {
  margin-top: auto;
  flex-shrink: 0;
  width: 100%;
}

/* PC/모바일 footer 기본 표시 제어 */
footer.footer-pc {
  display: block;
}

footer.footer-mo {
  display: none;
}

footer .footer_cont {
  margin: 0 auto;
  position: relative;
  padding: 20px 80px;
}

footer.footer-pc .footer_cont.pc-foot {
  display: block;
}

footer.footer-pc .footer_cont.mo-foot {
  display: none;
}

footer.footer-mo .footer_cont.pc-foot {
  display: none;
}

footer.footer-mo .footer_cont.mo-foot {
  display: block;
}

/* Footer Top Section */
footer .footer_top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  position: relative;
}

/* Footer Brand */
footer .footer_brand {
  flex: 0 0 auto;
  margin-bottom: 0;
}

footer .footer_brand_name {
  font-size: 32px;
  font-weight: 700;
  color: #1e1e1e;
  margin: 0;
  padding: 0;
  line-height: 1.2;
}

footer .footer_brand_name a {
  display: inline-block;
  text-decoration: none;
}

footer .footer_brand_name img {
  height: 14px;
  width: auto;
  display: block;
}

/* Footer Links Top - 가운데 정렬 */
footer .footer_links_top {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
  justify-content: center;
}

footer .footer_link_item {
  font-size: 12px;
  font-weight: 700;
  color: #1e1e1e;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer .footer_link_item:hover {
  color: #bc481f;
}

footer .footer_divider {
  color: #ddd;
  font-size: 15px;
  font-weight: 400;
}

footer .footer_divider_line {
  width: 100%;
  height: 1px;
  background-color: #eee;
  margin: 20px 0;
}

/* Footer Info */
footer .footer_info {
  text-align: center;
}

footer .copyright_txt {
  font-size: 12px;
  margin: 0;
  text-align: center;
}

footer .copyright_txt p {
  font-size: 12px;
  line-height: 1.5;
  color: #666;
  font-weight: 400;
  margin: 0 0 4px 0;
  text-align: center;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
}

footer .copyright_txt p.en {
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 0;
  font-weight: 400;
  color: #666;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
}

/* Footer Links */
footer .footer_links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #eee;
}

footer .footer_link {
  font-size: 14px;
  line-height: 1;
  color: #1e1e1e;
  font-weight: 400;
  text-decoration: none;
  transition: color 0.3s ease;
  display: inline-block;
}

footer .footer_link:hover {
  color: #bc481f;
}

footer .footer_link_underline {
  text-decoration: underline;
  color: #1e1e1e;
}

/* 모바일 반응형 */
@media only screen and (max-width: 767px) {
  footer.footer-pc {
    display: none;
  }
  
  footer.footer-mo {
    display: block;
  }
  
  footer.footer-mo .footer_cont.mo-foot {
    padding: 40px 24px;
  }
  
  footer .footer_top {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  
  footer .footer_links_top {
    position: static;
    transform: none;
    align-self: center;
    width: 100%;
    justify-content: center;
  }

  footer .footer_brand_name {
    font-size: 28px;
  }

  footer .footer_brand_name img {
    height: 22px;
  }

  footer .copyright_txt p {
    font-size: 12px;
    line-height: 1.5;
    font-weight: 400;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
  }

  footer .copyright_txt p.en {
    font-size: 12px;
    font-weight: 400;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
  }

  footer .footer_links {
    flex-direction: column;
    gap: 12px 0;
    margin-top: 24px;
    padding-top: 20px;
  }

  footer .footer_link {
    font-size: 13px;
  }
}


footer .mo-foot .footer_brand_name {
  font-size: 28px;
  font-weight: 700;
  color: #1e1e1e;
  margin: 0;
}

footer .mo-foot .footer_brand_name a {
  display: inline-block;
  text-decoration: none;
}

footer .mo-foot .footer_brand_name img {
  height: 14px;
  width: auto;
  display: block;
}

footer .mo-foot .footer_info {
  margin-bottom: 20px;
}

footer .mo-foot .copyright_txt {
  margin: 0;
}

footer .mo-foot .copyright_txt p {
  font-size: 12px;
  line-height: 1.5;
  color: #1e1e1e;
  font-weight: 700;
  margin: 0 0 4px 0;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
}

footer .mo-foot .copyright_txt p.en {
  margin-top: 8px;
  font-size: 14px;
  letter-spacing: 0;
  font-weight: 700;
  color: #1e1e1e;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
}

footer .mo-foot .footer_links {
  display: flex;
  flex-direction: column;
  gap: 12px 0;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

footer .mo-foot .footer_link {
  font-size: 13px;
  line-height: 1;
  color: #1e1e1e;
  font-weight: 400;
  text-decoration: none;
  transition: color 0.3s ease;
  display: inline-block;
}

footer .mo-foot .footer_link:hover {
  color: #bc481f;
}

footer .mo-foot .footer_link_underline {
  text-decoration: underline;
  color: #1e1e1e;
}

footer .mo-foot .logo {
  margin-bottom: 16px;
  width: 120px;
}

footer .mo-foot .copyright_txt.top p {
  font-weight: 700;
  letter-spacing: 0px;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
}

footer .mo-foot .copyright_txt.top p.en {
  font-size: 14px;
  font-weight: 700;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
}

footer .mo-foot .link_social {
  margin-bottom: 22px;
}

footer .mo-foot .link_social li {
  display: inline-block;
}

footer .mo-foot .link_social a {
  display: block;
  width: 48px;
  height: 48px;
  color: transparent;
  text-indent: -9999px;
  overflow: hidden;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}

footer .mo-foot .family_site {
  margin-bottom: 22px;
  display: block;
  position: relative;
}

footer .mo-foot .family_site button {
  position: relative;
  width: 100%;
  height: 40px;
  line-height: 40px;
  background: #999;
  display: inline-block;
  padding: 0 42px 0 14px;
  text-align: left;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  border-radius: 5px;
  transition: 0.3s;
  letter-spacing: -0.3px;
}

footer .mo-foot .family_site button::after {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  position: absolute;
  top: 13px;
  right: 14px;
  background: url("../img/button/footer_open.png") no-repeat center;
  background-size: cover;
  transition: 0.3s;
}

footer .mo-foot .family_site.on button {
  background: #1e1e1e;
}

footer .mo-foot .family_site.on button::after {
  transform: rotate(45deg);
}

footer .mo-foot .family_site ul {
  display: none;
  padding: 8px 0;
  width: 100%;
  position: absolute;
  bottom: 48px;
  text-align: left;
  border: 1px solid #eee;
  border-radius: 4px;
  background-color: #fff;
}

footer .mo-foot .family_site li {
  padding: 6px 14px;
  position: relative;
}

footer .mo-foot .family_site li a {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: #1e1e1e;
  transition: 0.3s;
}

footer .mo-foot .link_txt {
  margin-bottom: 22px;
}

footer .mo-foot .link_txt a {
  display: inline-block;
  margin-right: 18px;
  font-size: 12px;
  font-weight: 700;
  color: #666;
}

footer .mo-foot .link_txt a:nth-of-type(2) {
  margin-right: 0;
  color: #222;
  text-decoration: underline;
}

footer .mo-foot .link_txt a i {
  display: inline-block;
  width: 16px;
  height: 16px;
  background-size: cover;
}

footer .mo-foot .copyright_txt.bottom p {
  line-height: 1.6;
  letter-spacing: -0.3px;
}

footer .mo-foot .copyright_txt.bottom p:last-of-type {
  margin-bottom: 0;
}

footer .mo-foot .copyright_txt.bottom p b {
  font-size: 14px;
  font-weight: 700;
  color: #1e1e1e;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
}

/* 모바일 footer 추가 스타일 */
.wrap.mo footer .footer_cont.mo-foot .family_site button {
  font-weight: 700;
  font-size: 13px;
  line-height: 1.85;
}

/* ============================================
   Modal CSS
   ============================================ */

.modalset {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 20000;
  background-color: rgba(0, 0, 0, 0.5);
  overflow-y: auto;
  touch-action: none; /* 모바일에서 드래그 방지 */
}

/* 모달이 열려있을 때 body 스타일 - overflow만 적용하여 body가 움직이지 않도록 */
body.modal-open {
  overflow: hidden;
  touch-action: none;
  position: static;
}

body.modal-open .fp-enabled {
  touch-action: none;
}

.modalset.active {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modalset-content {
  position: relative;
  background-color: #fff;
  border-radius: 8px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modalset-md .modalset-content {
  max-width: 800px;
}

.modalset-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
}

.modalset-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #1e1e1e;
}

.modalset-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #999;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

.modalset-close:hover {
  color: #1e1e1e;
}

.modalset-close::before {
  content: "×";
  font-size: 32px;
  line-height: 1;
}

.modalset-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.modalset-textarea {
  max-height: calc(90vh - 120px);
}

/* Info Area Styles */
.info-area {
  font-size: 14px;
  line-height: 1.8;
  color: #333;
}

.info-group {
  margin-bottom: 24px;
}

.info-group:last-child {
  margin-bottom: 0;
}

.info-group .h6 {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #1e1e1e;
  margin-bottom: 12px;
}

.info-desc {
  font-size: 14px;
  line-height: 1.8;
  color: #666;
}

.info-desc p {
  margin: 0 0 12px 0;
}

.info-desc p:last-child {
  margin-bottom: 0;
}

.info-desc p.fw-medium {
  font-weight: 500;
}

.info-desc p.mtb {
  margin-top: 16px;
  margin-bottom: 16px;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 12px 0;
}

.info-list li {
  margin-bottom: 8px;
  padding-left: 0;
}

.info-list li em {
  font-style: normal;
  font-weight: 700;
  color: #1e1e1e;
  display: block;
  margin-bottom: 4px;
}

.info-list li p {
  margin: 0;
  padding-left: 16px;
}

.info-list li a {
  color: #bc481f;
  text-decoration: underline;
}

.info-list li a:hover {
  color: #bc481f;
}

.info-desc ol {
  margin: 12px 0;
  padding-left: 20px;
}

.info-desc ol li {
  margin-bottom: 8px;
}

.info-desc ol li p {
  margin: 0;
}

/* 모바일 반응형 */
@media only screen and (max-width: 767px) {
  .modalset.active {
    padding: 10px;
  }
  
  .modalset-content {
    max-height: 95vh;
  }
  
  .modalset-md .modalset-content {
    max-width: 100%;
  }
  
  .modalset-header {
    padding: 16px 20px;
  }
  
  .modalset-title {
    font-size: 18px;
  }
  
  .modalset-body {
    padding: 20px;
  }
  
  .modalset-textarea {
    max-height: calc(95vh - 100px);
  }
  
  .info-group .h6 {
    font-size: 15px;
  }
  
  .info-desc {
    font-size: 13px;
  }
}
