* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans KR", Helvetica, Arial, sans-serif;
  color: #444;
  max-width: 100%;
  background-color: #fff;
  overflow-x: hidden;
}
a {
  cursor: pointer;
}
.logo img {
  height: 40px; /* 필요에 따라 조정 */
  vertical-align: middle;
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  transition: background 0.3s ease;
}
.navbar.transparent {
  background: transparent;
  border-bottom: 0.7px solid rgba(255, 255, 255, 0.5);
}
.navbar.scrolled {
  background: rgba(0, 0, 0, 0.6);
}
.nav-links {
  display: flex;
  gap: 30px;
}
.nav-links li {
  list-style: none;
}
.nav-links a {
  color: #fff;
  text-decoration: none;
}
.hamburger {
  display: none;
  font-size: 26px;
  cursor: pointer;
  color: #fff;
}

.mobile-br {
display: none;
}

/* Responsive */
@media (max-width: 768px) {
  html, body {
  max-width: 100%;
  overflow-x: hidden;
}
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center; /* 중요 */
    padding: 10px 20px;
  }
  .navbar.transparent {
    background: transparent;
  }
  .navbar.scrolled {
    background: rgba(0, 0, 0, 0.65);
  }
  .logo {
    display: flex;
    align-items: center;
    height: 40px; /* 로고 높이 제한 */
  }

  .logo img {
    height: 100%;
    object-fit: contain;
    display: block;
    margin-top: 5px;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.75);
    position: absolute;
    top: 70px;
    right: 20px;
    padding: 20px;
  }
  .nav-links.active {
    display: flex;
  }
  .hamburger {
    display: block;
    font-size: 24px;
    cursor: pointer;
    margin-left: auto;
    align-self: center;
    color: #fff;
  }
  /*--------------------하단 CTA 버튼들--------------------*/
    .bottom-fixed-bar {
      position: fixed;
      bottom: 0;
      left: 0;
      width: 100%;
      height: 60px;
      background-color: #2C3E50;
      box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.2);
      display: flex;
      justify-content: space-around;
      align-items: center;
      z-index: 999;
    }

    .bottom-fixed-bar a {
      display: flex;
      align-items: center;
      justify-content: center;
      flex: 1;
      font-size: 15px;
      font-weight: 600;
      color: #FAF3E0;
      text-decoration: none;
      height: 100%;
      border-right: 1px solid rgba(255, 255, 255, 0.1);
      border-top: 1px solid rgba(255, 255, 255, 0.1);
      white-space: nowrap;
    }

    .bottom-fixed-bar a:active {
      background-color: rgba(255, 255, 255, 0.1); /* 눌린 느낌 */
      transform: scale(0.98); /* 살짝 줄어들게 */
    }

    .bottom-fixed-bar a:last-child {
      border-right: none;
    }
/*
    .bottom-fixed-bar a:nth-child(1) {
      animation: softPulse 12s infinite;
      animation-delay: 0s;
    }

    .bottom-fixed-bar a:nth-child(2) {
      animation: softPulse 12s infinite;
      animation-delay: 4s;
    }

    .bottom-fixed-bar a:nth-child(3) {
      animation: softPulse 12s infinite;
      animation-delay: 8s;
    }*/
}
/*
@keyframes softPulse {
  0%, 16.6% {
    font-size: 15px;
    text-shadow: none;
  }
  25% {
    font-size: 18px;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
  }
  33.3%, 100% {
    font-size: 15px;
    text-shadow: none;
  }
}*/

@media (min-width: 769px) {
  .bottom-fixed-bar {
    display: none;
  }
}


/* -------------------이상 공통 메뉴--------------------*/

/*------최상단이미지------*/
.header-bg {
  background-image: url('../images/contactbg.png');
  background-size: cover;
  background-position: center;
  width: 100%;
  min-height: 300px;
  max-height: 400px; /* ✅ 최대 높이 제한 */
  height: 30vh;       /* 화면 높이에 따라 반응형 설정 */

}
.intro-text {
  padding-top: 150px;
  color: white;
  text-align: center;
  z-index: 100;
  animation: slideInLeft 1.2s ease-out;
}

.slide-from-left {
  opacity: 0;
  transform: translateX(-50px);
  animation: slideInLeft 1s forwards;
  animation-delay: 0.3s;
  will-change: transform, opacity;
}

.intro-text h2 {
  font-size: 32px;
  font-weight: bold;
  margin: 15px 0 5px 0;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.1);
}

.intro-text p {
  font-size: 14px;
  margin-bottom: 10px;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.1);
}


/*---------------------지도-----------------------*/

.contact-section {
  flex: 1;
  padding: 40px 0 60px 0px;
}

.contact-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1200px;
  margin: 0px auto;
}

.contact-map {
  flex: 1 1 auto;
  box-sizing: border-box;
  padding: 40px 20px;
  flex-direction: row;
  flex-wrap: wrap;
}

.map-buttons-box {
  flex: 1 1 auto;
  box-sizing: border-box;
  padding: 50px 20px 30px 20px;
  flex-direction: row;
  flex-wrap: wrap;
}

.map-wrapper {
  position: relative;
  /* padding-top: 56.25%; 16:9 비율 */
  overflow: hidden;
  flex: 1 1 50%;
  min-width: 320px;
  min-height: 240px;
  max-width: 800px;
  height: 400px;
  position: relative;
  z-index: 1;
}

.root_daum_roughmap_landing {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
}

.wrap_controllers {
  display: none;
}

.map-buttons {
  flex: 1;
  flex-wrap: nowrap;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 0;

}

.map-btn {
  flex: 1 1 30%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0.5px solid rgba(0, 0, 0, 0.1);
  padding: 12px 8px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  color: #666;
  background-color: #f7f7f7;
  transition: box-shadow 0.2s;
  min-width: 80px;
}

.map-btn:hover {
  color: #FAF3E0;
  background-color: #2C3E50;
}

.map-btn img {
  width: 22px;
  height: 22px;
  margin-right: 8px;
  border-radius: 50%;
}

.contact-text {
  flex: 1 1 400px;
  max-width: 500px;
  margin: 0 20px 0 20px;
  padding:  40px 20px 30px;
  box-sizing: border-box;
}

.contact-text-box {
  padding-bottom: 3px;

}

.contact-text h3 {
  font-size: 22px;
  margin-top: 26px;
  margin-bottom: 10px;
  color: #CBAE8E;
  font-weight: 600;
  border-bottom: 1.5px solid RGB(203, 174, 142, 0.4);
}

.contact-text p {
  font-size: 18px;
  line-height: 1.6;
  color: #444;
  font-weight: 300;
}

.contact-text a {
  color: #444;
  text-decoration: underline;
}

.contact-text a:hover {
  color: #E0CBA8;  /* 마우스 오버 시 골드 톤 */
  text-decoration: underline;
}

.slide-from-right {
  opacity: 0;
  transform: translateY(50px);
  animation: slideInRight 1s forwards;
  animation-delay: 0.6s;
}

/*--------------------푸터--------------------*/
.site-footer {
  background-color: #2C3E50;
  color: #FAF3E0;
  padding: 60px 20px;
  font-size: 14px;
  line-height: 1.6;
}

.footer-container {
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.footer-logo img {
  max-height: 50px;
  margin-bottom: 20px;
}

/* 네비게이션 메뉴
.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 20px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-nav a {
  color: #FAF3E0;
  text-decoration: none;
  font-weight: 500;
}

.footer-nav a:hover {
  text-decoration: underline;
}*/

/* 블로그 아이콘 */
.footer-icons a {
  text-decoration: none;
}

.footer-icons img {
  height: 30px;
  margin: 0 5px;
  filter: brightness(95%);
  transition: transform 0.2s ease;
}
.footer-icons img:hover {
  transform: scale(1.1);
}

.footer-map-btn img {
  width: 30px;
  border-radius: 50%;
}

/* 면책공고 */
.footer-disclaimer {
  font-size: 13px;
  margin: 20px auto 10px;
  max-width: 100%;
  color: #cccccc;
}

/* 카피라이트 */
.footer-copy {
  margin-top: 10px;
  font-size: 12px;
  color: #999999;
}

@keyframes slideInRight {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/*--------------둥둥----------------*/
.floating-icons {
  position: fixed;
  top: 70%;
  right: 20px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  z-index: 999;
}

.floating-icons a {
  display: block;
  width: 60px;
  height: 60px;
  background-color: #f7f7f7;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.2s ease;
}

.floating-icons a:hover {
  transform: scale(1.1);
}

.floating-icons a:not(:first-child) {
  margin-top: 15px;
}

.floating-icons img {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  opacity: 85%;
}
.floating-icons a:first-child img {
  width: 35px;
  height: 35px;
  border-radius: 0%;
  transform: translateY(7%);
}
.pc-only {
  display: block;
}
.mo-only {
  display: none !important;
}

/* 모바일 대응 */
@media (max-width: 768px) {
  html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}
  .pc-only {
    display: none !important;
  }
  .mo-only {
    display: block !important;
  }
  .mobile-br {
    display: inline;
  }
  .header-bg {
    background-image: url('/images/contactbg.png');
    background-size: cover;
    background-position: center;
    width: 100%;      /* 화면 높이에 따라 반응형 설정 */
    min-height: 230px;
  }

  .intro-text {
    padding-top: 100px; /* ✅ 너무 위로 밀리지 않게 조정 */
    text-align: center;
    color: white;
    z-index: 100;
  }


    .contact-section {
      padding: 40px 0 60px 0;
    }
    .contact-grid {
      flex-direction: column;
      padding-top: 0px;
    }
    .map-wrapper {
      width: 100%;
      height: 50vh;
    }
    .contact-map {
      padding: 20px 20px 30px 20px;
    }
    .map-buttons-box {
      flex: 1 1 auto;
      box-sizing: border-box;
      padding: 10px 20px;
      flex-direction: row;
      flex-wrap: wrap;
    }

    .map-buttons {
      flex: 1;
      display: flex;
      justify-content: space-between;
      gap: 12px;
      margin: 0 0 30px;
      flex-wrap: wrap;
    }

    .map-btn {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      border: 0.5px solid rgba(0, 0, 0, 0.1);
      padding: 12px 8px;
      font-size: 13px;
      font-weight: 400;
      text-decoration: none;
      color: #666;
      background-color: #f7f7f7;
      transition: box-shadow 0.2s;
      min-width: 80px;
    }

    .map-btn:hover {
      color: #2C3E50;
      background-color: #f1f1f1;
    }

    .map-btn img {
      display: inline-block;
      width: 40px;
      height: 40px;
      margin-right: 8px;
    }

    .contact-text {
      margin-top: 10px;
      padding: 0;
    }

    .contact-text-box {
      margin-bottom: 40px;
      padding-bottom: 10px;
    }

    .contact-text h3 {
      font-size: 20px;
      margin-top: 20px;
      margin-bottom: 8px;
    }

    .contact-text p {
      font-size: 16px;
      line-height: 1.6;
    }
  .site-footer {
    margin-bottom: 60px;
  }
  .footer-logo img {
    max-height: 40px;
  }

  .footer-icons img {
    height: 28px;
  }

  .footer-disclaimer {
    font-size: 12px;
    padding: 0 10px;
  }

  .footer-copy {
    font-size: 11px;
  }
}
