@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&display=swap');
@import url('https://cdn.jsdelivr.net/gh/sunn-us/SUIT/fonts/static/woff2/SUIT.css');
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/variable/pretendardvariable.css');

:root {
  --font-serif: 'Playfair Display', 'Cormorant Garamond', 'Nanum Myeongjo',
    serif;
  --font-family: 'SUIT Variable', 'Pretendard Variable', system-ui,
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu,
    Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

* {
  box-sizing: border-box;
  color: black;
  font-family: var(--font-family);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  width: 100%;
  min-height: 100vh;
  background-color: #ffffff;
}

a {
  text-decoration: none;
}

/* ---------------------- */
/* 로고 영역 시작 */
/* ---------------------- */

.main-logo {
  display: flex;
  align-items: center;
}

.brand-text {
  display: block;
  margin-left: 12px;
  padding: auto;
}

.brand-name {
  font-size: 1.5rem;
}

.brand-tagline {
  display: flex;
  font-size: 0.8rem;
  white-space: nowrap;
  align-items: center;
  letter-spacing: 0.3em;
}

.main-logo.brand-cluster img {
  max-width: 185px;
}

/* ---------------------- */
/* 헤더 영역 시작 */
/* ---------------------- */

.header-side {
  position: fixed;
  top: 0;
  left: 0;
  height: 6rem;
  width: 100%;
  z-index: 1001;
  background: #f8f9fa;
  border-bottom: 1px solid rgba(214, 195, 165, 0.4);
}

.header-menu {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  margin: 20px 40px 0;
  align-items: center;
}

.menu-items {
  margin-right: 150px;
}

.header-menu-title {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}

.header-menu-title:hover>a::after {
  transform: scaleX(1);
}

.header-menu-title>a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 100%;
  height: 2px;
  background: linear-gradient(135deg,
      rgba(31, 54, 154, 0.3),
      rgba(214, 195, 165, 0.6));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.mobile-menu-list {
  display: flex;
  gap: 54px;
  list-style: none;
  transition: transform 0.36s ease, opacity 0.32s ease;
  pointer-events: auto;
}

.header-menu-title>a {
  position: relative;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 6px 0;
  white-space-collapse: nowrap;
}

.menu-eyebrow {
  letter-spacing: 0.34em;
  font-size: 0.65rem;
  text-transform: uppercase;
  color: rgba(16, 20, 31, 0.4);
}

/* ---------------------- */
/* 헤더 영역 끝 */
/* ---------------------- */

/* ---------------------- */
/* 토글버튼 시작*/
/* ---------------------- */

.mobile-toggle {
  display: none;
}

.mobile-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: transparent;
  font-size: 1.6rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.mobile-toggle-btn.is-active {
  transform: rotate(90deg);
}

/* ---------------------- */
/* 토글버튼 끝*/
/* ---------------------- */

/* ---------------------- */
/* 푸터 영역 시작 (수정됨) */
/* ---------------------- */

.gaon-info {
  background-color: #f8f9fa;
  border-top: 1px solid #e9ecef;
  padding: 60px 80px 65px;
  color: #333;
  margin-top: 50px;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.footer-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

/* [수정] 상단 행 (로고 + SNS) 스타일 */
.footer-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
}

.footer-logo img {
  width: 150px;
  opacity: 0.8;
  display: block;
}

.footer-sns {
  display: flex;
  gap: 8px;
}

.contact-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.contact-logo:hover {
  opacity: 1;
}

.footer-text-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

.info-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 10px;
}

.info-item b {
  color: #333;
  font-weight: 700;
  margin-right: 4px;
}

.divider {
  color: #ccc;
  font-size: 11px;
  margin-top: 1px;
}

.copyright {
  margin-top: 20px;
  font-size: 13px;
  color: #999;
}

/* 기본 카드 스타일 (PC) */
.img-card {
  flex: 0 0 auto;
  width: 500px;
  /* PC 너비 */
  height: 300px;
  margin-right: 20px;
  overflow: hidden;
  position: relative;
}

.img-card a {
  display: block;
  width: 100%;
  height: 100%;
}

.project-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.project-thumb:hover {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: none;
  /* 검은색 그라데이션 제거 */
  color: #fff;
  padding: 12px 16px;
  font-size: 1.2rem;
  font-family: var(--font-family);
  /* 정의하신 변수 사용 */
}

.fixed-nav-wrapper {
  display: none;
  /* PC/태블릿 기본 숨김 */
}

/* ---------------------- */
/* 반응형 (모바일) */
/* ---------------------- */

@media screen and (max-width: 1050px) {
  .mobile-menu-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: fixed;
    top: 6rem;
    right: 0;
    left: auto;
    transform: translateX(110%);
    opacity: 0;
    width: 100%;
    background: #ffffff;
    padding: 12px 0;
    box-shadow: -4px 0 20px rgba(16, 20, 31, 0.12);
    overflow-y: auto;
    height: calc(100vh - 6rem);
    pointer-events: none;
    margin: 0;
  }

  .mobile-menu-list.active {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-toggle {
    display: block;
  }

  .header-menu-title {
    padding: 14px 28px;
    border-bottom: 1px solid rgba(16, 20, 31, 0.06);
    align-items: center;
  }

  .menu-items {
    margin-right: 0;
  }
}

/* [수정] 모바일 전용 (하단바 및 푸터 정렬) */
@media screen and (max-width: 767px) {
  .img-card {
    width: 280px;
    /* 모바일에서 적당한 너비로 축소 */
    height: 180px;
    /* 높이도 비율에 맞춰 축소 */
    margin-right: 15px;
  }

  .project-overlay {
    padding: 12px;
    font-size: 1rem;
    /* 글자 크기 축소 */
  }

  .header-menu {
    margin: 27px 40px 0;
  }

  .main-logo.brand-cluster img {
    max-width: 145px;
  }

  /* 하단 네비게이션 노출 */
  .fixed-nav-wrapper {
    display: block !important;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: white;
    border-top: 1px solid #eee;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
  }

  .low-navigation-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
    max-width: 600px;
    margin: 0 auto;
  }

  .nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #888;
    font-size: 11px;
    width: 100%;
    height: 100%;
  }

  .nav-btn i {
    font-size: 18px;
  }

  .nav-btn:hover,
  .nav-btn.free {
    color: #1f369a;
  }

  .nav-btn.free {
    font-weight: 700;
  }

  /* 푸터 모바일 정렬 */
  .gaon-info {
    padding: 40px 20px 85px;
    /* 하단바 두께 고려 여백 */
  }

  .footer-inner {
    padding: 0 10px;
  }

  .footer-top-row {
    justify-content: space-between;
    /* 로고와 SNS가 양옆으로 나란히 */
    gap: 12px;
  }

  .info-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .divider {
    display: none;
  }
}

@media screen and (max-width: 400px) {
  .gaon-info {
    padding: 40px 10px 85px;
  }
}

@media screen and (max-width: 350px) {
  .header-menu {
    margin: 10px 5px 0;
  }

  .brand-tagline {
    font-size: 0.5rem;
  }

  .brand-name {
    font-size: 1.2rem;
  }
}

/* 공통 섹션 스타일 (파트너스 롤링 등 유지) */
.partners-rolling-section {
  padding: 60px 0;
  background-color: #fff;
  border-top: 1px solid #eee;
  overflow: hidden;
}

.rolling-track {
  display: flex;
  gap: 60px;
  animation: scrollRolling 30s linear infinite;
  width: max-content;
}

@keyframes scrollRolling {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}