/* 기본 설정 */
body {
  max-width: 1440px;
  margin: 0 auto;
  font-family: 'Pretendard Variable', sans-serif;
  background-color: #fdfdfd; /* 배경색: 원하는 색으로 수정 가능 */
  color: #000000;
}

.navbar {
  display: flex;
  max-width: 1440px;
  justify-content: space-between;
  align-items: center;
  padding: 0px 0px; /* 여백 조절 */
  padding-top: 0px;
  padding-bottom: 0px;
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  transition: background-color 0.3s ease;
  z-index: 1000;
  flex-wrap: nowrap; /* 혹시 넘칠 때 줄바꿈 가능하게 */
  gap: 10px;
  overflow: visible;   /* 내부 요소가 잘리지 않게 */
}

.nav-right {
  display: flex;
  gap: 20px;
  margin-right: 10px;  /* 오른쪽 여백 추가 */
  overflow: visible;   /* 혹시 hidden이면 visible로 변경 */
  white-space: nowrap; /* 줄바꿈 방지 */
}

body, html {
  overflow-x: hidden;   /* 가로 스크롤 방지 */
}

.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.3); /* 매우 투명 */
  backdrop-filter: blur(5px); /* 흐림효과 */
  transition: background-color 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* 약간의 그림자 효과 */
}

.nav-left a {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-left: 4%;
  padding: 10px 10px; /* 클릭 영역 넓히기 */
  height: auto;
}

.nav-left .logo {
  height: auto;
  width: clamp(60px, 18vw, 160px);
  max-height: 40px;
  object-fit: contain;
}

.nav-right a {
  margin-left: 10px;
  margin-right: 15px;
  text-decoration: none;
  color: #000000;
  font-weight: bold;
  transition: color 0.2s;
  font-size: clamp(12px, 1.8vw, 16px);
  white-space: nowrap; /* 줄바꿈 방지 */
}

@media (max-width: 480px) {
  .nav-right a {
    font-size: 11px;
    margin: 0 6px;
  }

  .nav-left .logo {
    max-width: 100px;
  }
}

/* 홈 섹션 */
.home-section {
  margin-top: clamp(1px, 6vh, 80px); /* 네비게이션바 높이만큼 여백 */
}

.hero-section.beauty {
  position: relative;
  width: 100%;
}

.hero-section.beauty img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/*탭 섹션*/
.photo-intro {
  position: absolute;
  font-family: 'fromage', sans-serif;
  top: 5%;
  left: 5%;
  color: white;
  text-align: left;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  /*max-width: 600px;*/
}

.photo-intro h1 {
  /*font-size: clamp(1.8rem, 4vw, 3rem); /* 화면 크기에 따라 크기 자동 조절 */
  font-size: clamp(15px, 6vw, 40px);
}

.photo-intro p {
  /*font-size: clamp(1rem, 2.2vw, 1.3rem); /* 화면 크기에 따라 크기 자동 조절 */
  font-size: clamp(8px, 2.5vw, 20px);
  line-height: 1.5;
}

.photo-outro {
  font-family: 'Pretendard Variable', sans-serif;
  font-size: clamp(6px, 1.5vw, 15px);
  margin-top: 7%;
  margin-left: 2%;
}

.photo-gallery {
  display: flex;
  flex-direction: column;
  min-height: 80vh;
}

.home-image-container {
  position: relative;
  width: 100%;
  height: auto;
  margin-bottom: 30px;
}

.home-image-container + .home-image-container {
  margin-top: 0px; 
  /* 메인 사진 두개 사이 간격 원하는 값으로 조절 (예: 40px) */
}

.home-image {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
}

.photo-image {
  position: absolute;
  bottom: 0; left: 0; width: 100%;
  background: rgba(0, 0, 0, 0.6);
  padding: 10px;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 0 0 8px 8px;
}

.photo-image2 {
  width: 30%;
  height: auto;
  display: block;
}

.gallery-grid {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 8px;
  outline: none;
}

/* 스타일.css 또는 <style>에 추가 */
.gallery {
  display: grid;
  flex-wrap: wrap;            /* 줄바꿈 허용 */
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;                  /* 이미지 간격 */
  justify-content: flex-start;
  padding: 0 5px; /*양쪽에 px 여백*/
  flex-grow: 1;
}

.gallery img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* 썸네일 유지용: 필요시만 사용 */
  transition: transform 0.3s ease;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.gallery-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.1); /* 마우스 호버 시 5% 확대 */
}

.gallery-item .caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 8px;
  font-size: 14px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .caption {
  opacity: 1;
}

/*메인 사진의 로고*/
/*중앙 정렬*/
.overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  filter: drop-shadow(4px 4px 8px rgba(0, 0, 0, 0.4));
}

/*좌상단*/
.overlay-text2 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-100%, -40%);
  text-align: center;
  filter: drop-shadow(4px 4px 8px rgba(0, 0, 0, 0.4));
}

.brand-font {
  width: 60%;
  max-width: 500px;
  pointer-events: none;
}

.brand-font2 {
  width: 200%;
  max-width: 2000px;
  pointer-events: none;
}

/* 라이트박스 */
.lightbox {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center; align-items: center;
  z-index: 1000;
  cursor: pointer;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 6px;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 3rem;
  color: white;
  cursor: pointer;
}

.lightbox.hidden {
  display: none;
}

/* 업버튼 */
#upButton {
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 12px 18px;
  font-size: 12px;
  background-color: #111;
  color: #fff;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  display: none;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: opacity 0.3s;
}

#upButton:hover {
  background-color: #7e7e7e;
}


.home-footer-text {
  margin-top: 60px;
  padding: 40px 20px 0 20px;
  background-color: #fdfcf8;
  text-align: center;
  font-family: 'Pretendard Variable', sans-serif;
  font-size: 14px;
  color: #333;
}

.footer-intro {
  max-width: 1000px;
  margin: 0 auto 30px auto;
  line-height: 1.7;
}

.footer-info {
  margin-bottom: 30px;
}

.footer-info p {
  margin: 10px 0;
  font-weight: 400;
}

.footer-divider {
  width: 90%;
  max-width: 1000px;
  margin: 40px auto;
  border: none;
  border-top: 1px dashed #ccc;
}

.footer-divider-photo {
  width: 90%;
  max-width: 1000px;
  margin: 40px auto;
  border: none;
  border-top: 1px dashed #ccc;
}
.footer-image {
  text-align: center;
  margin-left: 0px;         /* 왼쪽 여백 추가 */
  margin-bottom: 50px;
  pointer-events: none;
}

.footer-image img {
  max-width: 200px;
  height: auto;
}

.home img.no-lightbox {
  pointer-events: none;
}

.load-more {
  background-color: #111;
  color: #fff;
  border: none;
  padding: 10px 0px 10px;
  border-radius: 20px;
  /*font-size: 12px;*/
  font-size: clamp(9px, 1.5vw, 20px);
  cursor: pointer;
  margin: 5px 10px 40px;
  display: block;
  margin-top: 2%;
  align-self: center;
  margin-bottom: 5%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
}

.load-more:hover {
  background-color: #7e7e7e;
}

.about-new {
  text-align: left;
  padding-bottom: 80px;
}


/* 상단 큰 이미지 */
.hero-section {
  width: 100%;
  height: auto; /* 부모 높이에 맞춤 */
  object-fit: cover;
  object-position: center center;
  display: block;
}

.intro-section {
  margin-top: 10%;
  margin-bottom: 10%;
  margin-left: 2%;
  margin-right: 2%;
}

/* 소개 섹션 (프로필 + 텍스트) */
.intro-text h1 {
  display: block;
  text-align: center;
  flex-wrap: wrap;
  font-size: clamp(20px, 4vw, 28px);
}

.intro-text p {
  display: block;
  text-align: center;
  flex-wrap: wrap;
  font-size: clamp(12px, 2vw, 20px);
  color: #444;
  line-height: 1.8;
}

/* 구분선 */
.divider {
  border: none;
  border-top: 1.2px solid #a9a9a9;
  width: 85%;
  margin: 60px auto;
}

/* 구분선 */
.divider2 {
  border: none;
  border-top: 0.5px dashed #a9a9a9;
  width: 60%;
  margin: 1% auto;
}

/* 하단 회사 소개 이미지 */
.company-image {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 60px;
  text-align: center;
  margin-top: 10%;
  margin-bottom: 10%;
  overflow: hidden;
  position: relative;
}

.company-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 📌 전체 컨테이너 정렬 */
.contact-container {
  padding: 140px 20px 60px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  font-family: 'Pretendard Variable', sans-serif;
}

/* 📌 인트로 텍스트 (제목 + 설명) */
.contact-intro h1 {
  font-size: clamp(26px, 5vw, 35px);
  margin-bottom: 10px;
}

.contact-intro p {
  font-size: clamp(16px, 3vw, 22px);
  color: #666;
}

/* 📌 개별 연락처 박스 */
.contact-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  background-color: #e9e9e9; /* 연한 회색 */
  text-align: center;
  padding-top: 4%;
  padding-bottom: 4%;
}

.contact-icon {
  display: block;
  margin: 0 auto;
  width: 20%;
  height: auto;
  opacity: 0.3;
}

.contact-item h2 {
  font-size: 1rem;
  color: #999;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.contact-item p {
  /*font-size: 1.2rem;*/
  font-size: (10px, 4vw, 22px);
  color: #222;
  font-weight: 500;
}

.email-form {
  max-width: 600px;
  margin: 60px auto;
  padding: 20px;
  font-family: 'Pretendard Variable', sans-serif;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.email-form input,
.email-form textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 0px;
  font-size: 1rem;
  width: 100%;
}

.email-form button {
  background-color: #111;
  color: #fff;
  border: none;
  padding: 12px;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.email-form button:hover {
  background-color: #444;
}

.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  max-width: 1000px;
  margin: 100px auto 100px;
  padding: 0 20px;
  font-family: 'Pretendard Variable', sans-serif;
}

/* 왼쪽 텍스트 */
.contact-left {
  flex: 1 1 40%;
  min-width: 260px;
}

.contact-left h1 {
  font-size: 2rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.contact-left p {
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
}

/* 오른쪽 폼 */
.contact-form {
  flex: 1 1 50%;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: #666;
}

.form-group input,
.form-group textarea {
  font-size: 1rem;
  border: none;
  border-bottom: 1px solid #ccc;
  padding: 8px 4px;
  background-color: transparent;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #111;
}

.contact-form button {
  align-self: flex-start;
  padding: 10px 24px;
  font-size: 1rem;
  background-color: #111;
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 0;
  transition: background-color 0.3s;
}

.contact-form button:hover {
  background-color: #444;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: white;
  background: rgba(0, 0, 0, 0);
  border: none;
  cursor: pointer;
  padding: 10px 15px;
  z-index: 10;
  user-select: none;
  transition: background 0.2s;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(0, 0, 0, 0.2);
}

.lightbox-prev {
  left: 5px;
}

.lightbox-next {
  right: 5px;
}

