* {
  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: #f7f7f7;
  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;
}
/*--------------------푸터--------------------*/
.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;
}
.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; /* 로고 높이 제한 */
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.1);
  }

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

 /*--------------------하단 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;
 }
}


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

.case-list-intro {
  background-image: url('/files/cases/casebg2.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);
}

.case-list-section {
  background-color: #f7f7f7;
  padding: 20px 20px 10px 20px;
}
.case-list-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0;
  max-width: 1000px;
  margin: 0 auto;
}
.case-item {
  background-color: #fff;       /* 카드 배경 흰색 */
  padding: 20px 30px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.06);
}

.case-link {
  display: block;               /* 썸네일 제거 시 단일 블럭 */
  text-decoration: none;
  color: inherit;
}
.case-link:hover .case-title,
.case-link:hover .case-summary {
  text-decoration: underline;
}
/*.case-thumb {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
}*/
.case-info {
  flex: 1;
}
.case-title {
  font-size: 17px;
  color: #333;
  margin: 2px 0 0 0;
  font-weight: 600;
  line-height: 1.4;
}
.case-summary {
  margin-top: 7px;
  font-size: 14px;
  color: #666;
  font-weight: 300;
  line-height: 1.5;
}

.case-title,
.case-summary {
  display: -webkit-box;
  -webkit-line-clamp: 2;       /* 최대 2줄 */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.case-tags {
  padding-left: 20px;
}

.tag {
  display: inline-block;
  background-color: #f1f1f1;
  color: #333;
  border-radius: 5px;
  padding: 4px 8px;
  font-size: 14px;
  margin: 2px 6px 2px 0;
}

.case-item .slide-tags {
  margin-top: 15px;
}

.case-item .list-tags {
  display: inline-block;
  background-color: #f1f1f1;
  color: #333;
  border-radius: 5px;
  padding: 4px 8px;
  font-size: 13px;
  margin: 2px 2px 2px 0;
}

.case-item .list-tags:first-of-type {
  background-color: #2FA1D6;
  color: #fff;
  font-weight: 600;
}
/*
/* 모든 태그 기본 스타일
.case-item:hover .list-tags {
  background-color: #c3c3c3;
  color: #fff;
}

/* 첫 번째 태그만 예외 처리 (항상 강조색 유지)
.case-item:hover .list-tags:first-child {
  background-color: #2FA1D6;
  color: #fff;
  font-weight: 600;
}

/* 📄 페이지네이션 */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 20px auto 60px;
  flex-wrap: wrap;
}

.pagination button {
  background-color: #E0C7A5;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.pagination button:hover:not(.active):not(:disabled) {
  background-color: #b99b79;
}

.pagination button.active {
  background-color: #8c7153;
  font-weight: bold;
}

.pagination button:disabled {
  background-color: #ddd;
  cursor: default;
  color: #999;
}

.write {
  display: flex;
  justify-content: center;
  background-color: #CBAE8E;
  width: 50px;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 14px;
  cursor: pointer;
}
.slide-from-right {
  opacity: 0;
  transform: translateY(50px);
  animation: slideInRight 1s forwards;
  animation-delay: 0.6s;
}

@keyframes slideInRight {
  to {
    opacity: 1;
    transform: translateY(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;
  }
  .mobile-br {
    display: inline;
  }
  .pc-only {
    display: none !important;
  }
  .mo-only {
    display: block !important;
  }
  .case-list-intro {
    background-image: url('/files/cases/casebg2.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;
  }
  .case-list-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0;
    max-width: 769px;
    margin: 0 auto;
  }
  .case-item {
    background-color: #fff;       /* 카드 배경 흰색 */
    padding: 20px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.06);
  }
}

/*----애니메이션----*/
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
