@charset "UTF-8";
html {
  cursor: url("../images/ball1.png") 32 32, auto;
  scroll-behavior: smooth;  
}
/* 기본 스타일 */
body {
  font-family: "Klee One", sans-serif;
  color: #333;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center; /* 수평 중앙 정렬 */
  flex-direction: column;
  align-items: center; /*수직 중앙 정렬*/
  min-height: 100vh; /* 이렇게 바꾸면 콘텐츠가 많을 때 스크롤 가능 */
  cursor: url("../images/ball1.png") 32 32, auto;
  background-color: #f6ecd9;
  background-attachment: fixed;

}

/* header 스타일 */
header {
  position: fixed;
  height: 100px;
}
.page-header {
  position: relative; /* 드롭다운 메뉴가 이 안에서 절대 위치하도록 함 */
  display: flex;
  justify-content: space-between; /* 왼쪽, 오른쪽 요소를 양쪽 끝으로 정렬 */
  align-items: center; /* 수직 정렬: 요소들을 수직 중앙에 맞추기 */
  padding: 10px 20px; /* 여백 설정 */
  background-color: #e4d1af; /* 투명 대신 원하는 배경색으로 설정 */
  position: fixed; /* 네비게이션 바 고정 */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2000;
  box-sizing: border-box; /* 패딩을 포함한 전체 너비 계산 */
}
/* 로고 스타일 */
.page-header .logo {
  max-height: 50px;
  cursor: url("../images/ball2.png") 32 32, auto;
  height: 40px; /* 원하는 높이로 조정 */
  margin-right: 10px; /* 텍스트와 이미지 사이 간격 */
  pointer-events: auto;
  z-index: 1001; /* 배경보다 위에 위치시키기 */
}

.page-header h1 a {
  font-family: "Yomogi", cursive;
  font-size: 24px;
  font-weight: bold;
  color: inherit;
  text-decoration: none;
  display: flex;
  align-items: center;
  pointer-events: auto;
  z-index: 1001; /* 배경보다 위에 위치시키기 */
}

.page-header h1 a:link,
.page-header h1 a:visited,
.page-header h1 a:hover,
.page-header h1 a:active {
  color: inherit; /* 색상 유지 */
  text-decoration: none; /* 밑줄 제거 */
  cursor: url("../images/ball2.png") 32 32, auto;
}

/* 네비게이션 바 스타일 */
.main-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
  display: flex;
  justify-content: center;
}
.main-nav li {
  margin: 0;
}
.main-nav a {
  padding: 14px 20px; /* 내부 여백 크게 */
  text-decoration: none;
  color: #7b5e57;
  font-family: "Yomogi", cursive;
  font-size: 20px; /* 글자 좀 더 큼 */
  font-weight: bold;
  line-height: 1.6; /* 줄간 간격 넓게 */
  transition: background-color 0.2s ease;
  cursor: url("../images/ball2.png") 32 32, auto;
}
.main-nav a:hover {
  color: #f6ecd9;
  border-radius: 8px; /* 부드럽게 */
}

/* 기본적으로 햄버거 버튼 숨김 */
.menu-toggle {
  display: none;
  position: fixed; /* 화면 고정 */
  top: 25px; /* 상단에서 거리 */
  right: 27px; /* 오른쪽에서 거리 */
  z-index: 20; /* 헤더 위에 올라오게 */
  font-family: "Yomogi", cursive;
  font-size: 1.2rem;
  padding: 10px 15px;
  background-color: #fff;
  border: 2px solid #333;
  border-radius: 8px;
  margin: 1px;
  cursor: url("../images/ball2.png") 32 32, auto;
}
/* 기본적으로 숨기기 */
.dropdown-menu {
  position: absolute;
  width: 15%;
  top: 85%; /* 버튼 아래로 완전히 이동 */
  right: 20px; /* 버튼 정렬과 일치 */
  margin-top: 10px; /* 버튼과 약간 간격 */
  background-color: #f8f8f8;
  border: 1px solid #ccc;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 1000;
}

/* 메인 레이아웃 */
main {
  width: 100%;
  padding-bottom: 50px;
  display: block;
  flex-direction: column; /* 세로 방향 정렬 */
  align-items: center; /* 가로 중앙 정렬 */
  justify-content: center; /* 세로 중앙 정렬 (자식 정렬용) */
}

.background-wrapper {
  position: relative;
  width: 100%;
  height: 600px;
  background-image: url("../images/background.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  margin-top: 100px; /* 헤더 높이만큼 내리기 */
}

.background-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(4px); /* 💡 요게 핵심 */
  z-index: 1;
}
.background-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2; /* overlay보다 위에 있어야 함 */
  color: #7b5e57;
  font-family: "Klee One", cursive;
  font-weight: bold;
  font-size: 36px;
  text-align: center;
}
.scroll-arrow {
  position: absolute;
  bottom: 20px; /* 아래에서 20px 위 */
  left: 50%;
  transform: translateX(-50%);
  font-size: 70px;
  color: #7b5e57;
  user-select: none;
  transition: transform 0.3s ease;
  z-index: 10;
}

.scroll-arrow:hover {
  transform: translateX(-50%) translateY(5px); /* 살짝 아래로 움직임 효과 */
  cursor: url("../images/ball2.png") 32 32, auto;
}
/* SVG 내부 애니메이션 */
.double-arrow {
  animation: bounceArrow 1.5s infinite;
}

@keyframes bounceArrow {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(5px);
  }
}
/* 청해진 사진 슬라이드 */
.slider {
  position: relative;
  width: 80%;
  max-width: 700px;
  margin: 40px auto;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slides img {
  width: 100%;
  height: auto;
  flex-shrink: 0;
}
#cheong2 .slider {
  position: relative;
  overflow: hidden;
  width: 300px;
  max-width: 400px;
  margin: auto;
}

#cheong2 .slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

#cheong2 .slides img {
  width: 100%;
  height: auto; /* 자동 높이로 잘림 방지 */
  object-fit: contain; /* 이미지 비율 유지 + 잘리지 않음 */
  flex-shrink: 0;
  display: block;
}

.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.7);
  border: none;
  font-size: 24px;
  padding: 10px;
  border-radius: 50%;
  z-index: 10;
  cursor: url("../images/ball2.png") 32 32, auto;
}
.prev:hover,
.next:hover {
  background-color: rgba(123, 94, 87, 0.9);  /* 배경색 진하게 */
  color: #fff;  /* 텍스트 흰색으로 */
  transform: translateY(-50%) scale(1.1);  /* 살짝 크게 */
}
.prev:active,
.next:active {
  background-color: #7b5e57;  /* 클릭 시 더 진한 색 */
  color: #f6ecd9;  /* 클릭 시 배경색과 같은 베이지 톤 */
  transform: translateY(-50%) scale(0.95);  /* 클릭 시 살짝 작아지는 효과 */
}
.prev {
  left: 10px;
}
.next {
  right: 10px;
}

.dots {
  text-align: center;
  position: absolute;
  bottom: 10px;
  width: 100%;
}

.dot {
  display: inline-block;
  height: 10px;
  width: 10px;
  margin: 0 5px;
  background-color: #bbb;
  border-radius: 50%;
  cursor: pointer;
}

.dot.active {
  background-color: #7b5e57;
}

/* 프로필 섹션 */
#profile {
  background-color: #fff;
  border-radius: 12px;
  max-width: 700px;
  width: 100%;
  margin: 30px auto; /* 가운데 정렬 */
  padding: 40px 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  text-align: center;
}

.cheong-setumei {
  display: inline-block;
  font-size: 2rem;
  font-weight: bold;
  margin-top: -5px;
  margin-bottom: 20px;
  border-bottom: 2px solid #e4d1af;
  padding-bottom: 10px;
}
/* 중앙정렬용 텍스트 */
#profile p {
  text-align: center;
}
/* aside */

.sub-title {
  font-size: 1.375rem;
  padding: 0 8px 8px;
  border-bottom: 2px #7b5e57 solid;
}
aside p {
  padding: 12px 10px;
}
.sub-menu {
  margin-bottom: 60px;
  list-style: none;
}
.sub-menu li {
  position: relative;
  padding: 0.25em 0;
}
.sub-menu li:after {
  content: "";
  display: block;
  height: 2px;
  background: -webkit-linear-gradient(to right, #7b5e57, transparent);
  background: linear-gradient(to right, #7b5e57, transparent);
}
.sub-menu a {
  color: #333;
  padding: 10px;
  display: block;
  text-decoration: none;
  color: inherit; /* 링크 색상도 기본 텍스트 색상으로 */
}

.sub-menu a:hover {
  color: #ccc;
  cursor: url("../images/ball2.png") 32 32, auto;
}
.sub-menu a:active{
  color: #7b5e57;
  cursor: url("../images/ball2.png") 32 32, auto;
}
/* 사이드바 목록 */
#cheong-about {
  scroll-margin-top: 80px;
}
#pro-moku {
  scroll-margin-top: 80px;
}
#WEB-moku {
  scroll-margin-top: 80px;
}
 #sero{
    display: flex;
    flex-direction: column;
    align-self: center;
  }
  #garo{
    display: flex;
    flex-direction: row;
    gap: 30px;
    align-self: center;
  }

/* aside 옆부분 조정 */
.content-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 30px;
  max-width: 1500px;
  margin: 0 auto;
  padding: 40px 20px;
}
/* 본문 영역을 세로 정렬하도록 설정 */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1000px;
  gap: 40px;
  margin-left: 7.5%;
}

.content-wrapper > aside {
  width: 250px; /* 적당한 너비 */
  position: sticky; /* 스크롤 시 따라 내려오도록 */
  top: 120px; /* 헤더 높이만큼 띄우기 */
  align-self: flex-start; /* 세로 정렬 시작점 맞추기 */
}
#zero,
#sero{
  display: flex;
  flex-direction: column; /* 가로 배치 */
  gap: 40px; 
  max-width: 100%;
  margin-right: 30px;
}
/* footer */
footer {
  background: #e4d1af;
  text-align: center;
  padding: 26px 0;
  bottom: 0;
  left: 0;
  width: 100%;
}

footer p {
  color: #7b5e57;
  font-size: 0.875rem;
  font-family: "Klee One", sans-serif;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 1.8s ease-out forwards;
}
/* 페이드 아웃 효과 */
.fade-out {
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.fade-in-start {
  opacity: 0;
  animation: fadeInStart 1s ease-in-out forwards;
}
/* 스크롤 애니메이션 */
.scroll-fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease-out;
}

.scroll-fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
@keyframes fadeInStart {
  to {
    opacity: 1;
  }
}



/* 600px 이하 화면용 반응형 디자인 */
@media screen and (max-width: 600px) {
  html,
  body {
    overflow-x: hidden; /* 가로 스크롤 방지 */
  }
  body {
    padding: 0;
    background-size: cover;
    background-position: center;
  }

  .menu-toggle {
    display: block;
    position: fixed;
    font-size: 1rem;
    padding: 8px 12px;
    background-color: #fff;
    border: 2px solid #333;
    border-radius: 8px;
    cursor: url("../images/ball2.png") 32 32, auto;
  }

  .dropdown-menu {
    position: absolute;
    right: 10px;
    width: 36%;
    margin-top: -10px;
    background-color: #f8f8f8;
    border: 1px solid #ccc;
    opacity: 0;
    cursor: url("../images/ball2.png") 32 32, auto;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all 0.3s ease;
  }
  .dropdown-menu.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .dropdown-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .dropdown-menu li {
    margin: 0;
  }
  .dropdown-menu a {
    display: block;
    padding: 8px 18px;
    font-size: 18px;
    color: #333;
    font-family: "Yomogi", cursive;
    text-decoration: none;
    transition: background-color 0.2s ease;
    line-height: 1.6;
  }

  .dropdown-menu a:hover {
    background-color: #eee;
    border-radius: 8px;
  }

  .main-nav {
    list-style: none;
    flex-direction: column;
    display: none; /* 원래 메뉴 숨기기 */
  }

  .background-wrapper {
    height: 300px; /* 더 작은 높이로 조정 */
    margin-top: 80px; /* 모바일에서 여백 조정 */
    padding: 0 10px;
  }

  .background-text {
    font-size: 20px; /* 글씨 크기 줄이기 */
    padding: 0 10px; /* 좌우 여백 확보 */
  }
  .scroll-arrow {
    font-size: 40px;
  }
  .scroll-arrow svg {
    width: 36px;
    height: 48px;
  }
  #profile {
    flex-direction: column;
    width: 90%;
    padding: 10% 5%;
  }

  #profile img {
    width: 100px;
    margin-bottom: 10px;
  }

  #profile p {
    font-size: 14px;
    line-height: 1.4;
  }

  #sero{
    display: flex;
    flex-direction: column;
    max-width: 90%;
    align-self: center;
  }
  #garo{
    display: flex;
    flex-direction: column;
    max-width: 90%;
    align-self: center;
  }

  footer {
    padding: 0 10px;
  }

  footer p {
    font-size: 0.75rem;
  }
  .content-wrapper {
    flex-direction: column;
    align-items: center;
  }
  .content-wrapper > aside {
    order: -1; /* ⭐️ aside를 위로 */
  }
  .main-content {
    width: 100%;
    max-width: 600px;
    padding: 0 10px;
    align-items: center;
    box-sizing: border-box;
  }
  aside {
    width: 100%;
    margin: 20px auto 0; /* 위 여백 주고, 중앙 정렬 */
    position: static; /* 모바일에선 sticky 비활성화 */
    top: auto;
    align-self: auto;
  }
  .background-wrapper,
  .slider,
  main,
  .content-wrapper {
    max-width: 100%;
    box-sizing: border-box;
  }
  /* 슬라이더 */
  .slider {
    width: 100%;
    max-width: 100%;
    margin: 20px auto;
    border-radius: 12px;
    overflow: hidden; /* 둥근 모서리가 적용되도록 자식 요소 넘침 숨김 */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  .slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    min-width: 0;
  }
  .slides img {
    flex-shrink: 0;
    min-width: 100%;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 12px; /* 이미지도 모서리 둥글게 */
  }
  .prev,
  .next {
    font-size: 20px;
    padding: 8px;
  }
}
