body {
   font-family: 'Pretendard', sans-serif;
    line-height: 1.6;
    color: #e2e8f0;
    background: var(--medium-navy);
    /* overflow-x: hidden; ← 제거 또는 주석 처리 */
    word-break: keep-all;    /* 한글/영문 단어 단위 유지 */
    overflow-wrap: break-word;    /* 넘치는 경우만 줄바꿈 */
    white-space: normal;    /* 기본 줄바꿈 허용 */
}

/* Header */
header {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    width: 100%;
    top: 0;
    z-index: 9999;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* 데스크톱 메뉴 - 기본 표시 */
.desktop-menu {
    display: flex;
    gap: 0.6rem;
    list-style: none;
    align-items: center;
    flex-wrap: nowrap;
    white-space: nowrap;
}

/* Navigation Links - 공통 스타일 */
.nav-links {
    gap: 0.6rem;
    /* 2rem에서 1rem으로 줄임 */
    list-style: none;
    align-items: center;
    flex-wrap: nowrap;
    /* 줄바꿈 방지 */
    white-space: nowrap;
    /* 텍스트 줄바꿈 방지 */
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
    padding: 0.5rem 0.8rem;
    /* 1rem에서 0.8rem으로 줄임 */
    border-radius: 8px;
    font-size: 0.95rem;
    /* 폰트 크기 살짝 줄임 */
}


.s_mobile-menu {
    display: flex;
    gap: 0.4rem;
    list-style: none;
    align-items: center;
    flex-wrap: nowrap;
    white-space: nowrap;
}

/* 회사소개만 다른 색상 */
.nav-links .s_company-menu {
    background: linear-gradient(135deg, #10b981 0%, #00422d 100%);
    color: white !important;
    font-weight: 500;
    padding: 0.3rem 0.5rem;
    /* 1.5rem에서 1.2rem으로 줄임 */
    border-radius: 50px;
    transition: all 0.3s ease;
    font-size: 0.7rem;
}

/* 회사소개만 다른 색상 */
.nav-links .company-menu {
    background: linear-gradient(135deg, #10b981 0%, #00422d 100%);
    color: white !important;
    font-weight: 500;
    padding: 0.3rem 1.8rem;
    /* 1.5rem에서 1.2rem으로 줄임 */
    border-radius: 50px;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}
/* 특별 메뉴 스타일 - 패딩 조정 */
.nav-links .s_special-menu {
    background: linear-gradient(135deg, #ff6b35 0%, #552e00 100%);
    color: white !important;
    font-weight: 500;
    padding: 0.3rem 0.5rem;
    /* 1.5rem에서 1.2rem으로 줄임 */
    border-radius: 50px;
    transition: all 0.3s ease;
    font-size: 0.7rem;
}
.nav-links .special-menu {
    background: linear-gradient(135deg, #ff6b35 0%, #552e00 100%);
    color: white !important;
    font-weight: 500;
    padding: 0.3rem 1.1rem;
    /* 1.5rem에서 1.2rem으로 줄임 */
    border-radius: 50px;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}



nav {
    max-width: 100%;
    /* 1400px에서 1500px로 */
    padding: 1rem 1.5rem;
    /* 2rem에서 1.5rem으로 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: none
}

.logo-container {
    text-align: center;
    /* 가로 가운데 정렬 */
    margin: 1px 0;
    /* 위아래 여백 */
}

.logo {
    width: 120px;
    height: 38px;
    display: inline-block;
    /* text-align:center 적용 가능하게 */
    margin-top: -10px;
    margin-bottom: -10px;
    margin-left: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #06b6d4, #7c3aed);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}



.nav-links .special-menu:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    color: white !important;
}


.nav-links .company-menu:hover {
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/*=================================================*/
/* Floating area */
/* 전체 하단 고정 메뉴 */
/*=================================================*/

.bottom-menu {
    position: fixed;
    bottom: 1px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    background: rgba(108, 111, 107, 0.27);
    padding: 6px 6px;
    border-radius: 40px;
    backdrop-filter: blur(8px);
    z-index: 1000;
}

/* 버튼 기본 디자인 */
.bottom-menu a,
.bottom-menu button {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0a0077, #2800ff);
    color: #fff;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s, background 0.2s;
}

.bottom-menu a:hover,
.bottom-menu button:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #8d0000, #8b0505);
}



/* 문의하기 */
.contact-email {
    background: var(--dark-navy);
    border-radius: 15px;
    padding: 1rem 2rem 2rem 1rem;
    margin: auto;
    margin-top: 2.8rem;
    margin-bottom: -0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    max-width: 1167px;
}

.contact-email h2 {
    color: #ffffff;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.contact-email p {
    color: #faffdd;
    font-size: 1.3rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    text-align: center;
}

.contact-btn {
    display: inline-block; 
    padding: 1rem 3rem; 
    text-decoration: none; 
    border-radius: 50px; 
    font-weight: 600; 
    font-size: 1.3rem;
}


/* Footer */
footer {
    background: var(--dark-navy);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1.5rem;
    padding-top: 1.5rem;
    text-align: center;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.1rem;
    max-width: 100%;
    margin-bottom: 1rem;
    margin-left: auto;
    margin-right: auto;
}

.footer-section h3 {
    color: #06b6d4;
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.footer-section p,
.footer-section a {
    color: #94a3b8;
    text-decoration: none;
    display: block;
    transition: color 0.3s;
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
}

.footer-section a:hover {
    color: #d45e06;
}

.footer-bottom {
    text-align: center;
    padding-top: 0.8rem;
    padding-bottom: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #64748b;
}

/* Scroll to top */
.scroll-top {
    position: fixed;
    right: 6px;
    bottom: 6px;
    background: linear-gradient(135deg, #100000 0%, #d30808 100%);
    color: white;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 9999;
    box-shadow: 0 5px 20px rgba(6, 182, 212, 0.4);
}

.scroll-top.visible {
    opacity: 1;
}




/* 🍔 햄버거 메뉴 버튼 고정 및 애니메이션 */
.mobile-menu-btn {
    width: 36px;
    height: 32px;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    position: relative;
    transition: transform 0.3s ease;
    margin-left: -0.7rem;
    top: 2px
}

/* 햄버거 막대 3줄 */
.mobile-menu-btn span {
    width: 21px;
    height: 3px;
    background-color: #ffd95c;
    border-radius: 3px;
    transition: all 0.35s ease;
    transform-origin: center;
    /* ✅ 회전 기준을 중앙으로 고정 */
}

/* 클릭 시 ✖ 형태로 회전 */
.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(6.7px) rotate(45deg);
    transform-origin: center;
    /* ✅ 꼭 지정 */
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-6.7px) rotate(-45deg);
    transform-origin: center;
    /* ✅ 꼭 지정 */
}

/* 📱 모바일 메뉴 슬라이드 애니메이션 */
.nav-links.mobile-menu li {
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* 전체 nav 보정 */
.yesmap-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--dark-navy);
    padding: 0.6rem 1rem;
    z-index: 100;
}

.nav-center {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

.selected-menu {
    color: #ffd95c;
    font-weight: 600;
    font-size: 1.3rem;
    white-space: nowrap;
    margin-top: 0.12rem;
    margin-right: -0.3rem;
}


/* hover 시 색상 부드럽게 */
.mobile-menu-btn:hover span {
    background-color: #d86f03;
}


/* 모바일 메뉴 */
.nav-links.mobile-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(15, 23, 42, 0.97);
   
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    flex-direction: column;
    list-style: none;
    padding: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px);
    transition: all 0.35s ease;
    
}

.nav-links.mobile-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    padding: 0 0.51rem;
}

.nav-links.mobile-menu a {
    display: block;
    padding: 0.6rem 1.6rem;
    color: #e2e8f0;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-links.mobile-menu a:hover {
    background: rgba(255, 217, 92, 0.1);
    color: #ffd95c;
}

/* ✅ 기본 데스크톱에서는 그대로 보임 */
.special-menu::after,
.company-menu::after {
    content: "";
}

.s_mobile-menu {
    display: none;
}

.bottom-menu {
    flex-wrap: wrap;
    justify-content: center;
    /* ✅ 추가 */
    min-width: 375px;
    padding: 6px 6px;
    margin: 2px auto;
    align-items: center;
}

.bottom-menu a,
.bottom-menu button {
    width: 32px;
    height: 32px;
    font-size: 16px;
}

@media (max-width: 768px) {

    .page-header {
        padding: 1.2rem 0.4rem;
        margin-bottom: -2.0rem;
    }
    .page-header h1,
    .page-header h4 {
        font-size: 2.5rem;
        margin-bottom: 0.8rem;
    }

    .page-header p {
        font-size: 1.2rem;
    }
    
    .about-text {
        padding: 0 0.6rem;
    }

    /* 데스크톱 메뉴 숨김 */
    .desktop-menu {
        display: none !important;
    }

    .s_mobile-menu {
        display: flex;
        align-items: center;
    }

    .mobile-menu-btn {
        margin-left: -0.6rem;
        top: 2px
    }

    /* 햄버거 막대 3줄 */
    .mobile-menu-btn span {
        width: 18px;
        height: 2px;
    }

    /* 클릭 시 ✖ 형태로 회전 */
    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(6.0px) rotate(45deg);
        transform-origin: center;
        /* ✅ 꼭 지정 */
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-6.0px) rotate(-45deg);
        transform-origin: center;
        /* ✅ 꼭 지정 */
    }

    .logo {
        width: auto;
        height: 32px;
        display: inline-block;
        /* text-align:center 적용 가능하게 */
        margin-top: -10px;
        margin-bottom: -10px;
        margin-left: 5px;
    }

    .yesmap-nav {
        padding: 0.3rem 0.6rem;
    }


    .nav-center {
        display: flex;
        align-items: center;
        gap: 0.6rem;
    }

    

    .bottom-menu {
        min-width: 300px;
        padding: 0.5rem 0.1rem;
    }

    .bottom-menu a,
    .bottom-menu button {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }

    .footer-section h3 {
        
        margin-bottom: 0.3rem;
    }

    .footer-section p,
    .footer-section a {
        font-size: 0.8rem;
        margin-bottom: 0.3rem;
    }
}
@media (max-width: 480px) {
    body {
        overflow-x: hidden;
        touch-action: pan-y; /* 세로 스크롤만 허용 */
        overflow-y: auto;
        line-height: 2.0; /* 행간 (줄 사이 간격) */
        letter-spacing: -0.3px; /* 자간 (글자 사이 간격) */
    }
    
    .yesmap-main {
        padding: 2.0rem 0;
        background: var(--medium-navy);
        margin-top: 1px;
        
        align-items: center;
    }
        

    
    
    
    .page-header {
        padding: 0.9rem 0.5rem;
        margin-bottom: -2.0rem;
    }
    .page-header h1,
    .page-header h4 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .page-header p {
        font-size: 0.95rem;
    }
    
/* ================폰=========== */
.phone-btn {
  font-size: 0.9rem;
  padding: 0.5rem 0.5rem;
}
.phone-btn svg {
    width: 18px;
    height: 18px;
  }
.buy-btn {
    font-size: 0.9rem;
    padding: 0.2rem 1.5rem;
}
/* ================폰=========== */    
    
/* 문의하기 */
.contact-email {
    margin: 0.8rem;
    margin-top: 0.8rem;
    margin-bottom: -0.8rem;
}
    
.contact-email h2 {
    font-size: 2.0rem;
    line-height: 1.4;
}

.contact-email p {
    font-size: 1.0rem;
    line-height: 1.4;
}
.cta-button {
    display: inline-block; 
    padding: 0.4rem 2rem; 
    font-size: 1.1rem;
}
.contact-btn {
    display: inline-block; 
    padding: 0.4rem 3rem; 
    font-size: 1.1rem;
}   
    
    
    .scroll-top {
        right: 2px;
    }
    .footer-content {
        grid-template-columns: 1fr 1fr;
        margin-bottom: 0.8rem;
    }
    .footer-section h3 {
        
        margin-bottom: 0.1rem;
    }

    .footer-section p,
    .footer-section a {
        font-size: 0.8rem;
        margin-bottom: 0.1rem;
    }
 
}


    /* 이메일 모달 */
    #emailModal {
      display: none;
      position: fixed;
      z-index: 10000;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.7);
      backdrop-filter: blur(8px);
      justify-content: center;
      align-items: center;
      animation: fadeIn 0.3s ease;
    }

    .modal-dialog {
      background: linear-gradient(145deg, #ffffff, #f8f9fa);
      border-radius: 20px;
      padding: 40px;
      max-width: 420px;
      width: 90%;
      text-align: center;
      box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1);
      animation: slideUp 0.4s ease;
      position: relative;
      overflow: hidden;
    }

    .modal-dialog::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 4px;
      background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
    }

    .modal-icon {
      width: 70px;
      height: 70px;
      margin: 0 auto 24px;
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      border-radius: 50%;
      display: flex;
      justify-content: center;
      align-items: center;
      font-size: 32px;
      box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    }

    .modal-message {
      font-size: 16px;
      line-height: 1.7;
      color: #333;
      margin-bottom: 32px;
      word-break: keep-all;
    }

    .modal-message strong {
      color: #667eea;
      font-weight: 600;
    }

    .modal-confirm-btn {
      padding: 14px 48px;
      font-size: 15px;
      font-weight: 600;
      color: #fff;
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      border: none;
      border-radius: 12px;
      cursor: pointer;
      transition: all 0.3s ease;
      box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    }

    .modal-confirm-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
    }

    .modal-confirm-btn:active {
      transform: translateY(0);
    }

/* ============================================
   커스텀 Alert - 파란 배경 디자인
   ============================================ */

/* 오버레이 배경 */
.custom-alert-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 99999;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

.custom-alert-overlay.show {
  display: flex;
}

/* Alert 박스 */
.custom-alert-box {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  border-radius: 16px;
  padding: 35px 25px 25px;
  max-width: 90%;
  width: 360px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  animation: slideUp 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: relative;
}

/* 상단 장식 라인 */
.custom-alert-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 0 0 4px 4px;
}

/* 아이콘 */
.custom-alert-icon {
  font-size: 48px;
  margin-bottom: 20px;
  animation: bounce 0.6s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* 메시지 */
.custom-alert-message {
  font-size: 17px;
  line-height: 1.6;
  color: #ffffff;
  margin-bottom: 28px;
  font-weight: 500;
  word-break: keep-all;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* 확인 버튼 */
.custom-alert-btn {
  width: 100%;
  background: #ffffff;
  color: #1e3c72;
  border: none;
  padding: 15px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.5px;
}

.custom-alert-btn:hover {
  background: #f8f9fa;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.custom-alert-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* 모바일 최적화 */
@media (max-width: 480px) {
  .custom-alert-box {
    width: 85%;
    padding: 30px 20px 20px;
  }
  
  .custom-alert-icon {
    font-size: 42px;
  }
  
  .custom-alert-message {
    font-size: 16px;
  }
  
  .custom-alert-btn {
    padding: 14px;
    font-size: 15px;
  }
    .modal-dialog {
        padding: 32px 24px;
        margin: 16px;
      }

      .modal-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
      }

      .modal-message {
        font-size: 15px;
      }

      .modal-confirm-btn {
        width: 100%;
        padding: 16px;
      }
}

/* 애니메이션 */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes bounce {
  0%, 100% {
    transform: scale(1);
  }
  25% {
    transform: scale(0.9);
  }
  50% {
    transform: scale(1.1);
  }
  75% {
    transform: scale(0.95);
  }
}

