@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;
  overflow-x: hidden; /* 가로 스크롤 방지 */
}

/* 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);
  }
}
/* 프로필 섹션 */
#profile {
  background-color: #fff;
  border-radius: 12px;
  width: 100%;
  display: flex;
  align-items: flex-start; /* 이미지와 텍스트 위쪽 정렬 */
  justify-content: flex-start;
  gap: 30px;
  padding: 40px;
  margin-top: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* 살짝 그림자 효과 */
  box-sizing: border-box;
}

/* 프로필 안 이미지 */
#profile img {
  width: 150px;
  height: auto;
  flex-shrink: 0; /* 이미지 크기 고정 */
}

/* 텍스트 영역 */
.profile-text {
  text-align: left;
  flex: 1;
  margin-left: 75px;
}

.profile-text p {
  margin: 6px 0;
  line-height: 1.6;
  font-size: 18px;
  color: #333;
  text-align: left;
}
/* 들여쓰기용 클래스 */
.profile-text .indent {
  margin-left: 53px; /* 들여쓰기 */
  font-size: 18px;
  color: #333;
}
/* Q&A 섹션 */
#qa-section {
  background-color: #fff;
  border-radius: 12px;
  padding: 40px;
  margin-top: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  max-width: 1200px;
  box-sizing: border-box;
}

.qa-title {
  font-size: 1.8rem;
  font-family: "Klee One", cursive;
  color: #7b5e57;
  margin-bottom: 20px;
  border-bottom: 2px solid #e4d1af;
  padding-bottom: 10px;
}

.qa-item {
  margin-bottom: 1em;
}

.question {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-weight: bold;
  transition: color 0.2s ease;
}

.question:hover {
  color: #e4d1af;
  cursor: url("../images/ball2.png") 32 32, auto;
}
.question:active{
  color: #7b5e57;
  cursor: url("../images/ball2.png") 32 32, auto;
}
.icon {
  transition: transform 0.3s ease;
}
.icon:hover {
  cursor: url("../images/ball2.png") 32 32, auto;
}
.answer-wrapper {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.answer-wrapper.open {
  max-height: 500px; /* 충분히 큰 값으로 설정 */
}

.answer {
  margin: 0.5em 0 0 1.5em;
}

/* aside */
aside {
  position: sticky; 
  flex: 1;
  margin-top: 0;
  font-weight: bold;
}

.sub-title {
  font-size: 1.375rem;
  padding: 0 8px 8px;
  border-bottom: 2px #7b5e57 solid;
}

.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;
}
/* 사이드바 목록 */

section {
  scroll-margin-top: 80px;
}

/* aside 옆부분 조정 */
.content-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}
.main-column {
  flex: 3;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

#st {
  position: relative;
  line-height: 1.4;
  padding: 0.25em 1em;
  display: inline-block;
}

#st:before,
#st:after {
  content: "";
  width: 15px;
  height: 18px;
  position: absolute;
  display: inline-block;
}

#st:before {
  border-left: solid 2px #e4d1af;
  border-top: solid 2px #e4d1af;
  top: 0;
  left: 0;
}

#st:after {
  border-right: solid 2px #e4d1af;
  border-bottom: solid 2px #e4d1af;
  bottom: 0;
  right: 0;
}

footer p {
  color: #7b5e57;
  font-size: 0.875rem;
  font-family: "Klee One", sans-serif;
}

/* footer */
footer {
  background: #e4d1af;
  text-align: center;
  padding: 26px 0;
  bottom: 0;
  left: 0;
  width: 100%;
}

/* QR 코드 관련 스타일 */
.footer-content {
            position: relative;
            display: flex;
            justify-content: center;
            align-items: center;
            width: 100%;
        }

        /* QR 버튼 스타일 */
        .qr-code-btn {
            position: absolute;
            right: 20px;
            width: 40px;
            height: 40px;
            background-color: #fff;
            border-radius: 8px;
            display: flex;
            justify-content: center;
            align-items: center;
            transition: all 0.3s ease;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            border: 2px solid #333;
        }

        .qr-code-btn:hover {
            transform: scale(1.1);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
            cursor: url("../images/ball2.png") 32 32, auto;
        }

        .qr-icon {
            width: 24px;
            height: 24px;
            font-size: 20px;
            color: #7b5e57;
        }

        /* QR 모달 배경 */
        .qr-modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            z-index: 10000;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }

        .qr-modal-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        /* QR 모달 컨텐츠 */
        .qr-modal-content {
            position: absolute;
            background-color: #fff;
            border-radius: 15px;
            padding: 40px;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
            text-align: center;
            width: 700px;
            max-width: 90vw;
            /* 초기 위치: QR 버튼 위치 */
            transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        .qr-modal-overlay.active .qr-modal-content {
            /* 최종 위치: 화면 중앙 */
            top: 50%;
            left: 50%;
            bottom: auto;
            right: auto;
            transform: translate(-50%, -50%) scale(1);
            opacity: 1;
        }

        /* 닫기 버튼 */
        .qr-close-btn {
            position: absolute;
            top: -15px;
            right: -15px;
            width: 40px;
            height: 40px;
            background-color: #333;
            color: #fff;
            border: none;
            border-radius: 50%;
            font-size: 1.5rem;
            font-weight: bold;
            display: flex;
            justify-content: center;
            align-items: center;
            transition: transform 0.3s ease;
        }

        .qr-close-btn:hover {
            transform: rotate(360deg);
            cursor: url("../images/ball2.png") 32 32, auto;
        }

        /* 모달 제목 */
        .qr-modal-title {
            color: #333;
            margin-bottom: 30px;
            font-family: 'Klee One', cursive;
            font-size: 32px;
            font-weight: bold;
        }

        /* QR 이미지 컨테이너 */
        .qr-image-container {
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .qr-image {
            width: 500px;
            height: 500px;
            border-radius: 10px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            background-color: #f0f0f0;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 16px;
            color: #666;
        }

.content-wrapper > aside {
  width: 250px; /* 적당한 너비 */
  position: sticky; /* 스크롤 시 따라 내려오도록 */
  top: 120px; /* 헤더 높이만큼 띄우기 */
  align-self: flex-start; /* 세로 정렬 시작점 맞추기 */
}

@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;
  }
}
/* 모바일 Aside 버튼 스타일 */
        .mobile-aside-btn {
            display: none;
            position: fixed;
            right: 15px;
            bottom: 50px;
            width: 50px;
            height: 50px;
            background-color: #7b5e57;
            color: white;
            border: none;
            border-radius: 50%;
            font-size: 18px;
            font-weight: bold;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
            z-index: 1500;
            transition: all 0.3s ease;
            cursor: url("../images/ball2.png") 32 32, auto;
        }

        .mobile-aside-btn:hover {
            transform: scale(1.1);
            background-color: #a38781;
        }

        /* 모바일 Aside 드롭다운 */
        .mobile-aside-dropdown {
            display: none;
            position: fixed;
            right: 15px;
            bottom: 120px;
            background-color: #fff;
            border: 2px solid #7b5e57;
            border-radius: 15px;
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
            z-index: 1600;
            opacity: 0;
            transform: translateY(20px);
            pointer-events: none;
            transition: all 0.3s ease;
            max-width: 250px;
            width: calc(100vw - 40px);
            max-height: 60vh;
            overflow-y: auto;
        }

        .mobile-aside-dropdown.show {
            opacity: 1;
            transform: translateY(0);
            pointer-events: auto;
        }

        .mobile-aside-dropdown h3 {
            margin: 0;
            padding: 15px 20px 10px;
            color: #7b5e57;
            font-size: 1.2rem;
            border-bottom: 2px solid #7b5e57;
            background-color: #f6ecd9;
            border-radius: 13px 13px 0 0;
            font-family: "Klee One", cursive;
            font-weight: bold;
        }

        .mobile-aside-dropdown ul {
            list-style: none;
            padding: 10px 0;
            margin: 0;
        }

        .mobile-aside-dropdown li {
            margin: 0;
            padding: 0;
        }

        .mobile-aside-dropdown a {
            display: block;
            padding: 12px 20px;
            color: #333;
            text-decoration: none;
            font-family: "Klee One", cursive;
            font-size: 14px;
            line-height: 1.4;
            transition: all 0.2s ease;
            border-bottom: 1px solid #eee;
            font-weight: bold;
        }

        .mobile-aside-dropdown a:hover {
            background-color: #f6ecd9;
            color: #7b5e57;
            padding-left: 25px;
        }

        .mobile-aside-dropdown li:last-child a {
            border-bottom: none;
        }

        .mobile-aside-btn:hover {
            transform: scale(1.1);
            background-color: #a38781;
        }

        /* 모바일 스크롤 버튼들 */
.mobile-scroll-btn {
    display: none;
    position: fixed;
    right: 15px;
    width: 50px;
    height: 50px;
    background-color: #7b5e57;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1500;
    transition: all 0.3s ease;
    cursor: url("../images/ball2.png") 32 32, auto;
}

.mobile-top-btn {
    bottom: 170px; /* 맨 위로 버튼 */
}

.mobile-bottom-btn {
    bottom: 110px; /* 맨 아래로 버튼 */
}

.mobile-scroll-btn:hover {
    transform: scale(1.1);
    background-color: #a38781;
}

/* 새로운 PC용 스크롤 버튼 */
.pc-scroll-btn {
    width: 50px;
    height: 50px;
    background-color: #7b5e57;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: url("../images/ball2.png") 32 32, auto;
    margin: 5px 0;
}

.pc-scroll-btn:hover {
    transform: scale(1.1);
    background-color: #a38781;
}

.pc-scroll-btn:active {
    transform: scale(0.95);
    background-color: #6b4e47;
}

/* PC용 버튼 컨테이너 */
.pc-scroll-buttons-container {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}
/* 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 {
    display: flex; /* 혹시 빠져있으면 추가 */
    margin: 0 auto; /* 박스를 가운데로 */
    gap: 5px;
    flex-direction: row; /* 이미지 왼쪽, 텍스트 오른쪽 */
    align-items: flex-start;
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
    padding: 20px;
  }

  #profile img {
    max-width: 130px; /* 아무리 커져도 이 이상은 안 커짐 */
    margin-bottom: 10px;
    height: auto;
  }
  .profile-text {
    margin-left: 10px;
    flex: 1;
  }

  .profile-text p,
  .profile-text .indent {
    font-size: 15px;
    line-height: 1.5;
  }
  footer {
    padding: 0 10px;
  }

  footer p {
    font-size: 0.75rem;
  }
  .content-wrapper {
    flex-direction: column;
    align-items: center;
    padding: 1em;
  }
  .content-wrapper > aside {
    order: -1; /* ⭐️ aside를 위로 */
    align-self: center;
  }
  .qa-title {
    font-size: 1.2em;
  }

  .question {
    font-size: 1em;
    flex-wrap: wrap;
  }

  .answer {
    font-size: 0.95em;
  }

  aside {
    width: 100%;
    margin-top: 20px;
  }

  .qr-code-btn {
                right: 15px;
                width: 26px;
                height: 26px;
            }

            .qr-icon {
                width: 20px;
                height: 20px;
                font-size: 18px;
            }

            .qr-modal-content {
                width: 300px;
                padding: 30px;
                right: 30px;
            }

            .qr-modal-title {
                font-size: 26px;
                margin-bottom: 25px;
            }

            .qr-image {
                width: 300px;
                height: 300px;
            }

            .qr-close-btn {
                width: 35px;
                height: 35px;
                font-size: 18px;
            }
            .mobile-aside-btn {
              display: block;
            }
            
            .mobile-aside-dropdown {
              display: block;
            }
            .mobile-scroll-btn{
              display: block;
            }
            .pc-scroll-buttons-container {
              display: none;
            }
}
/* PC에서만 PC용 버튼 표시 */
@media screen and (min-width: 601px) {
    .pc-scroll-buttons-container {
        display: flex;
    }
}