* {
  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;
  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;
}
.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: white;
  text-decoration: none;
  font-weight: bold;
}
.hamburger {
  display: none;
  font-size: 26px;
  cursor: pointer;
  color: white;
}

/*--------------------메인 슬라이드 섹션--------------------*/
.slider {
  height: 100vh;
  display: flex;
  overflow: hidden;
  position: relative;
}
.slider::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2); /* ← 어두운 오버레이 */
  z-index: 5;
}

.slide {
  opacity: 0;
  transition: opacity 1s ease-in-out;
  position: absolute;
  top: 0;
  left: 0;
  height: 100vh;
  min-width: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  z-index: 10;
  animation: fadeInUp 1.2s ease-out;

}

.hero-text h1 {
  font-size: 42px;
  font-weight: bold;
  margin-bottom: 20px;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.1);
}

.hero-text p {
  font-size: 20px;
  margin-bottom: 30px;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.1);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate(-50%, -80%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}


/*--------------------수행 사례 소개--------------------*/
.auto-slider-section {
  position: relative;
  padding: 3rem 1rem;
  background-color: #f7f7f7;
  overflow: hidden;
}

.case-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;

  opacity: 0;
  transform: translateY(80px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.case-wrapper.visible {
  opacity: 1;
  transform: translateY(0);
}

.case-slider-title {
  text-align: center;
  margin: 0 auto;
  padding: 50px 0;
  color: #2C3E50;
  font-size: 24px;
  font-weight: 600;
}

.slide-from-left {
  opacity: 0;
  transform: translateX(-100px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-from-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-from-right {
  opacity: 0;
  transform: translateX(100px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-from-right.visible {
  opacity: 1;
  transform: translateX(0);
}


.case-slider-title a {
  font-weight: 800;
}

.mobile-br {
  display: none;
}

.slider-track {
  display: flex;
  gap: 1.8rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 1rem;
}

#slider-track {
  overflow-x: auto;         /* 가로 스크롤 허용 (필수) */
  scrollbar-width: none;    /* Firefox용 */
  -ms-overflow-style: none; /* IE/Edge용 */
}

#slider-track::-webkit-scrollbar {
  display: none;            /* Chrome, Safari, Opera용 */
}

.slide-item {
  flex: 0 0 auto;
  width: 220px;
  background: white;
  border-radius: 3px;
  border: 1px solid #e9e9e9;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  padding: 2rem;
  transition: transform 0.2s;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.slide-item .overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.slide-item:hover .overlay {
  opacity: 1;
}

.slide-item .arrow {
  position: absolute;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.slide-item:hover .arrow {
  opacity: 1;
  transform: translateY(0);
}

.slide-item a {
  text-decoration: none;
  color: inherit;
}

.slide-date {
  font-size: 14px;
  color: #999;
  margin-top: 7px;
}

.slide-tags {
  margin: 10px 0 20px;
  gap: 4px;
  display: block;
  /*flex-wrap: wrap;
  display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6rem;
    height: 5.7rem;*/
}

.slide-tags .tag:first-of-type {
  font-size: 1.2rem;
  line-height: 1.1rem;
  color: #2FA1D6;
  background-color: #fff;
  font-weight: 800;
  border-bottom: 1.5px solid rgba(0,0,0,0.2);
  border-radius: 0px;
  display: block;
  margin-bottom: 10px;
  padding: 0 0 5px;
  width: 100%;
  text-decoration: none;
}

.slide-tags .tag:not(:first-of-type) {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  background-color: #f1f1f1;
  color: #333;
  margin-bottom: 5px;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.slide-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: #888;
  line-height: 1.6rem;
  text-align: left;
  display: -webkit-box;
  -webkit-line-clamp: 3;     /* ✅ 4줄 제한 */
  -webkit-box-orient: vertical;
  overflow: hidden;
  /*text-overflow: ellipsis;*/
}

.slider-button {
  position: absolute;
  top: 50%;
  transition: transform 0.2s ease;
  background: black;
  color: white;
  line-height: 2rem;
  opacity: 50%;
  border: none;
  font-size: 2rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  cursor: pointer;
  z-index: 1;
}
.slider-button:hover {
  transform: scale(1.1);
}

#case-prev {
  left: 0.5rem;
}

#case-next {
  right: 0.5rem;
}

.more-cases-wrapper {
  text-align: center;
  margin: 2.5rem 0 2rem;
}

.more-cases-button {
  display: inline-block;
  padding: 1.2rem 2.5rem;
  background-color: #2C3E50;
  color: white;
  border-radius: 999px;
  font-weight: bold;
  font-size: 1.2rem;
  text-decoration: none;
}
.more-cases-button:hover {
  background-color: #2FA1D6;
  color: #2C3E50;
}
/*---------------------업무분야------------------*/
.acco-background {
  background-color: #2C3E50;
}

.acco-container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 30px 20px 100px 20px;
}

.acco-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.acco-title {
  text-align: center;
  margin: 30px auto;
  padding: 40px 0;
  color: #D5DEE7;
  font-size: 45px;
  font-weight: 700;
}
/*
.acco-title a {
  border-bottom: 3px solid #D5DEE7;
  line-height: 2rem;
}*/

.acco-header {
  cursor: pointer;
  padding: 20px 30px;
  /*color: #2C3E50;*/
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  /*background-color: #D5DEE7;*/
  background-color: #4B6075;
  transition: background-color 0.2s ease;
  position: relative;
  border: 1px solid rgba(255,255,255,0.1);
}

.acco-header:hover {
  background-color: #A2B6C8;
}

.acco-header::after {
  /*content: '+';*/
  content: '▼';
  position: absolute;
  right: 30px;
  /*color: #5C5C5C;*/
  color: #FAF3E0;
  font-size: 16px;
  transition: transform 0.2s ease;
}

.acco-item.acco-active .acco-header::after {
  content: '▼';
  transform: rotate(180deg);
}

.acco-content {
  max-height: 0;
  padding: 0 30px;
  overflow: hidden;
  background-color: #F4F7FA;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.acco-item.acco-active .acco-content {
  padding: 20px 30px 30px;
  max-height: 500px;
}

.acco-content p {
  margin: 0;
  font-size: 16px;
  color: #3A4F63;
  line-height: 1.8;
}

.acco-content .acco-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  padding-top: 20px;
}

.more-ex-wrapper {
  text-align: center;
  margin: 4rem 0 0.5rem;
}

.more-ex-button {
  display: inline-block;
  margin: 1.2rem 0;
  padding: 1.2rem 2.5rem ;
  background-color: #CBAE8E;
  color: white;
  border-radius: 999px;
  font-weight: bold;
  font-size: 1.2rem;
  text-decoration: none;
}
.more-ex-button:hover {
  background-color: #2C3E50;
  color: white;
}

@media (max-width: 768px) {
  .acco-background {
    background-color: #fff;
  }

  .acco-title {
    text-align: center;
    margin: 30px auto;
    padding: 30px 0;
    color: #2C3E50;
    font-size: 32px;
    font-weight: 700;
  }

  .acco-title a {
    border-bottom: 3px solid #2C3E50;
    line-height: 2rem;
  }

  .acco-header {
    color: #2C3E50;
    background-color: #D5DEE7;
    border: none;
  }

  .acco-header::after {
    color: #5C5C5C;
  }
}

@media (min-width: 769px) {
  .acco-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (min-width: 4000px) {
  .acco-container {
    width: 100%;
    max-width: 1450px;
    margin: 0 auto;
    padding: 30px 30px 120px 30px;
  }
  .acco-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }
  .acco-title {
    text-align: center;
    margin: 30px auto;
    padding: 40px 0;
  }
  .acco-header::after {
    display: none; /* 드롭다운 화살표 제거해도 좋음 */
  }

  .acco-header {
    cursor: default;
  }

  .acco-header:hover {
    background-color: #4B6075;
  }

  .acco-content {
    max-height: none !important;
    padding: 30px !important;
    overflow: visible;
  }
  .acco-content p {
    font-size: 18px;
  }
}

/*--------------------업무철학--------------------*/
.fixed-bg {
  min-height: 400px;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  padding: 100px 20px;
  color: white;
  text-align: center;
}

.text-overlay h2 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
  text-shadow: 0 0 5px rgba(0, 0, 0, 3);
}

.text-overlay p {
  font-size: 18px;
  margin-bottom: 40px;
  text-shadow: 0 0 5px rgba(0, 0, 0, 3);
}

.more-ph-wrapper {
  text-align: center;
  margin: 3.5rem 0 0.5rem;
}

.more-ph-button {
  display: inline-block;
  padding: 1.2rem 2.5rem;
  background-color: #CBAE8E;
  color: white;
  border-radius: 999px;
  font-weight: bold;
  font-size: 1.2rem;
  text-decoration: none;
}
.more-ph-button:hover {
  background-color: white;
  color: #2C3E50;
}


/*--------------------찾아오는길-----------------------*/
.contact-section {
  flex: 1;
  padding: 50px 0 100px 0px;
  /*ackground-image: url('images/111.jpg');
  background-size: cover;
  background-position: center;*/
}

.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: 20px 20px 30px 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;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 0 20px;
  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: 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: 20px;
  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;
}

/*--------------------푸터--------------------*/
.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;
}

/*--------------둥둥----------------*/
.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;
}

/*============================= Responsive =================================*/

/* pc에서는 하단 CTA 버튼 안보이게 하기 */
@media (min-width: 769px) {
  .bottom-fixed-bar {
    display: none;
  }
}

@media (max-width: 1200px) {
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center; /* 중요 */
    padding: 10px 20px;
  }

  .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.6);
    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: white;
  }
}

@media (max-width: 768px) {
  html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  }
  .pc-only {
    display: none !important;
  }
  .mo-only {
    display: block !important;
  }
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center; /* 중요 */
    padding: 10px 20px;
  }

  .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.6);
    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: white;
  }

  .slider {
    overflow: hidden;
  }

  .slide {
    background-size: auto 100%;           /* 가로는 자동, 세로는 100% 채움 */
    background-position: left center;     /* 왼쪽부터 시작 */
    background-repeat: no-repeat;
    animation: panLeftRight 30s ease-in-out infinite;
  }

  .slide:not(:first-child) {
    display: none; /* slide1만 보이게 */
  }

  .hero-text {
    width: 75%;
    padding: 0 10px;
  }
  .hero-text h1 {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 20px;

  }

  .hero-text p {
    font-size: 18px;
    margin-bottom: 30px;
    line-height: 1.6;
  }

  .mobile-br {
    display: block;
  }

  .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;
  }

/*--------------------하단 CTA 버튼들--------------------*/
  .bottom-fixed-bar {

    width: 100vw;
    max-width: 100vw;
    left: 0;
    right: 0;
    overflow-x: hidden;

    position: fixed;
    bottom: 0;
    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;
  }*/

  .mobile-br {
  display: inline;
  }

  .slide-item:hover {
    transform: none;
  }

  .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;
  }
}
/*
@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;
}
}*/
@keyframes panLeftRight {
  0% {
    background-position: left center;
  }
  50% {
    background-position: right center;
  }
  100% {
    background-position: left center;
  }
}
