@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: flex;
  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);
  }
}
.semi-title1 {
  text-align: left;
  font-family: "Klee One", cursive;
}
.semi-title1 h3 {
  font-size: 1.8rem;
  color: #333;
  border-bottom: 2px solid #7b5e57;
  display: inline-block;
  padding-bottom: 8px;
}
.ado {
  flex: 1;
  max-width: 100%;
  text-align: left;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  padding: 20px;
  transition: transform 0.3s ease;
  padding-left: 70px;
  padding-right: 70px;
}
.matome {
  flex: 1;
  max-width: 100%;
  text-align: left;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  padding: 20px;
  transition: transform 0.3s ease;
  padding-left: 70px;
  padding-right: 70px;
}

#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 #a38781;
  border-top: solid 2px #a38781;
  top: 0;
  left: 0;
}

#st:after {
  border-right: solid 2px #a38781;
  border-bottom: solid 2px #a38781;
  bottom: 0;
  right: 0;
}

/* 소개 프로필 */
.imimi {
  font-family: "Klee One", cursive;
  text-align: center;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  padding: 15px 70px; /* 위아래 여백 줄임 (20px → 15px) */
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* 더 부드러운 애니메이션 */
  overflow: hidden; /* 내용이 넘치지 않도록 */
  min-height: 50px; /* 최소 높이도 줄임 (60px → 50px) */
}

/* 팀명 의미 타이핑 효과 스타일 */
.team-name-meaning {
  font-weight: bold;
  color: #333; 
  text-decoration: underline;
  transition: all 0.3s ease;
  user-select: none;
  display: inline-block;
  margin-top: 8px;
  margin-bottom: 8px; /* 여백도 조금 줄임 */
  font-size: 1.4rem; /* 글자 크기 약간 키움 */
}

.team-name-meaning:hover {
  color: #e4d1af; /* 호버시 조금 더 밝은 색상 */
  cursor: url("../images/ball2.png") 32 32, auto;
  transform: translateY(-1px); /* 살짝 위로 올라가는 효과 */
}
.team-name-meaning:active {
  color: #7b5e57; /* 호버시 조금 더 밝은 색상 */
  cursor: url("../images/ball2.png") 32 32, auto;
  transform: translateY(-1px); /* 살짝 위로 올라가는 효과 */
}
.typing-content {
  margin-top: 0px; /* 위 여백 제거 */
  font-size: 1.1rem; /* 글자 크기 약간 줄임 */
  line-height: 1.7; /* 줄간격 늘려서 읽기 편하게 */
  color: #555;
  max-height: 0; /* 초기에는 높이 0 */
  opacity: 0;
  transform: translateY(-10px); /* 초기에 약간 위로 */
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* 부드러운 애니메이션 */
  overflow: hidden;
  padding: 0; /* 초기 패딩 0 */
}

.typing-content.expanded {
  max-height: 300px; /* 높이를 더 여유롭게 */
  opacity: 1;
  transform: translateY(0); /* 제자리로 */
  padding: 10px 0; /* 확장시 패딩 추가 */
}

.typing-text {
  opacity: 0;
  transform: translateY(5px); /* 처음엔 약간 아래에서 시작 */
  transition: all 0.6s ease;
}

.typing-text.visible {
  opacity: 1;
  transform: translateY(0); /* 제자리로 부드럽게 이동 */
}

/* 커서 애니메이션 추가 */
.cursor {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background-color: #7b5e57; /* 커서 색상도 테마에 맞게 */
  margin-left: 2px;
  animation: blink 1.2s infinite; /* 조금 더 천천히 깜박임 */
}

@keyframes blink {
  0%, 45% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.fade-out {
  animation: fadeOut 0.6s ease forwards; /* 더 부드럽게 사라짐 */
  transform: translateY(-5px); /* 살짝 위로 이동하면서 사라짐 */
}

@keyframes fadeOut {
  from { 
    opacity: 1; 
    transform: translateY(0);
  }
  to { 
    opacity: 0; 
    transform: translateY(-5px);
  }
}
.intro-cards-wrapper {
  display: flex;
  gap: 40px; /* 카드들 사이 간격 */
  justify-content: center; /* 가운데 정렬 */
  flex-wrap: nowrap; /* 한 줄로 유지 (필요시 wrap 가능) */
  overflow-x: auto; /* 가로 스크롤 가능하게 */
  padding: 20px 0;
}
.intro-card {
  width: 280px;
  text-align: center;
  padding: 20px;
  border: 2px solid #e4d1af;
  border-radius: 12px;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  font-weight: bold;
}

.intro-card img {
  width: 100%;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.intro-card img:hover {
  transform: scale(1.05);
  cursor: url("../images/ball2.png") 32 32, auto;
}

.popup-extra {
  margin-top: 8px;
  font-size: 0.95em;
  text-align: center;
  color: #555;
}
#popup-extra-content {
  max-height: 300px; /* 필요에 따라 높이 조절 */
  overflow-y: auto;
  padding-right: 10px; /* 스크롤바가 생겨도 내용이 가려지지 않게 */
  box-sizing: border-box;
  text-align: center; /* 이 부분이 핵심 */
  padding: 0 40px;
}
#popup-extra-content::-webkit-scrollbar {
  width: 6px;
}

#popup-extra-content::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

#popup-extra-content::-webkit-scrollbar-track {
  background-color: transparent;
}
/* 팝업 오버레이 */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 3000;
}
/* 흐림 효과 줄 때 쓸 공통 클래스 */
.blur-background {
  filter: blur(6px);
  transition: filter 0.3s ease;
}
/* 팝업 콘텐츠 */
.popup-content {
  display: flex;
  flex-direction: column; /* 이미지와 텍스트를 세로로 쌓기 */
  align-items: center; /* 가로(수평) 가운데 정렬 */
  justify-content: center; /* 세로 중앙 정렬 (필요하면) */
  text-align: center; /* 텍스트 중앙 정렬 */
  padding: 20px;
  max-width: 500px;
  width: 90%;
  background-color: #fff;
  border-radius: 12px;
  animation: zoomIn 0.4s ease forwards;
  transition: opacity 0.3s ease;
}

.popup-content img {
  max-width: 100%;
  max-height: 300px;
  border-radius: 10px;
  margin-bottom: 15px; /* 이미지 아래 공간 */
  transform: scale(0.7);
  opacity: 0;
  animation: zoomIn 0.4s ease forwards;
}

.popup-content h3 {
  font-size: 1.5rem;
  margin: 10px 0 5px;
  font-family: "Klee One", cursive;
  color: #333;
}

.popup-content p {
  font-size: 1rem;
  font-family: "Klee One", sans-serif;
  color: #555;
}
.popup-extra p {
  margin: 4px 0;
}
/* 팝업창 화살표 */
.popup-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.3);
  border: none;
  color: white;
  font-size: 2rem;
  width: 40px;
  height: 60px;
  opacity: 1;
  transition: opacity 0.3s ease;
  pointer-events: auto;
  border-radius: 8px;
  user-select: none;
  z-index: 20;
}
/* hover 효과 - 진한 회색 계열 */
.popup-arrow:hover {
  background-color: #555; /* 진한 회색 배경 */
  color: white; /* 흰색 텍스트 */
  border: 2px solid #666; /* 회색 테두리 */
  opacity: 1;
  transform: translateY(-50%) scale(1.05); /* 살짝 확대 */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25); /* 적당한 그림자 */
}

/* active 효과 - 연한 검정 계열 */
.popup-arrow:active {
  background-color: #333; /* 연한 검정 배경 (완전 검정 대신) */
  color: #f0f0f0; /* 연한 회색 텍스트 */
  border: 2px solid #555; /* 중간 회색 테두리 */
  transform: translateY(-50%) scale(0.98); /* 살짝 축소로 눌림 효과 */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4); /* 적당한 그림자 */
}
.popup-arrow.hidden {
  opacity: 0;
  pointer-events: none;
}
.popup-arrow-left {
  left: 10px;
}
.popup-arrow-left:hover {
  cursor: url("../images/ball2.png") 32 32, auto;
}
.popup-arrow-right {
  right: 10px;
}
.popup-arrow-right:hover {
  cursor: url("../images/ball2.png") 32 32, auto;
}
/* 추가 효과: focus 상태 (키보드 접근성) */
.popup-arrow:focus {
  outline: 3px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
}
/* 애니메이션 효과 추가 */
@keyframes arrowPulse {
  0%, 100% {
    opacity: 0.8;
  }
  50% {
    opacity: 1;
  }
}

/* 화살표에 맥박 효과 (선택적으로 사용) */
.popup-arrow:not(:hover):not(:active) {
  animation: arrowPulse 2s ease-in-out infinite;
}
/* 닫기 버튼 */
.popup-close {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 40px;
  height: 40px;
  background-color: #333;
  color: #fff;
  font-size: 1.5rem;
  font-weight: bold;
  border-radius: 50%; /* 완전한 원 */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  transition: transform 0.4s ease;
}

/* 마우스 오버 시 회전 */
.popup-close:hover {
  transform: rotate(360deg);
  cursor: url("../images/ball2.png") 32 32, auto;
}

/* 확대 애니메이션 */
@keyframes zoomIn {
  0% {
    transform: scale(0.7);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
/* 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;
}
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;
}
/* aside 옆부분 조정 */
.content-wrapper {
  display: flex;
  justify-content: space-between;
  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; /* 세로 정렬 시작점 맞추기 */
  margin-left: 2%;
  margin-right: 4%;
}

section {
  scroll-margin-top: 80px;
}

/*brother광팬*/
.realistic-marker-highlight {
  background-color: #ffd86d62;
  line-height: 1.8;      /* ↑ 줄 간격 조절로 마커 높이 확보 */
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  display: inline;
}

.circle-sketch-highlight{
  position:relative;
}

.circle-sketch-highlight:before{
  content:"";
  z-index:-1;
  left:-0.5em;
  top:-0.1em;
  border-width:2px;
  border-style:solid;
  border-color:rgba(255, 0, 64, 0.555);
  position:absolute;
  border-right-color:transparent;
  width:100%;
  height:1em;
  transform:rotate(2deg);
  opacity:0.7;
  border-radius:50%;
  padding:0.1em 0.25em;
}

.circle-sketch-highlight:after{
  content:"";
  z-index:-1;
  left:-0.5em;
  top:0.1em;
  padding:0.1em 0.25em;
  border-width:2px;
  border-style:solid;
  border-color:rgba(255, 0, 64, 0.555);
  border-left-color:transparent;
  border-top-color:transparent;
  position:absolute;
  width:100%;
  height:1em;
  transform:rotate(-1deg);
  opacity:0.7;
  border-radius:50%;
}



/* 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;
}

/* 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;
        }
@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;
  }
}
@keyframes slideRightFade {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes slideLeftFade {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-right {
  animation: slideRightFade 0.4s ease-in-out;
}
.slide-left {
  animation: slideLeftFade 0.4s ease-in-out;
}
/* 모바일 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 10px;
    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;
  }
  footer {
    padding: 0 10px;
  }

  footer p {
    font-size: 0.75rem;
  }

   .main-content{
  margin-left: 0;
 }
  .content-wrapper {
    flex-direction: column;
    align-items: center;
  }
  .content-wrapper > aside {
    order: -1; /* ⭐️ aside를 위로 */
    align-self: center;
    margin: 0 auto;
  }

  #matome {
    padding-top: 50px;
    padding-right: 30px;
  }
  #ado{
    padding-top: 50px;
    padding-right: 30px;
  }

  /* 소개 프로필 */
 .intro-cards-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5px;
    flex-direction: column;
 }
  .intro-card {
    flex: 0 0 150px;
    padding: 5px;
    box-sizing: border-box;
  }
  .intro-card img {
    width: 100%;
    height: auto;
    border-radius: 6px;
  }
  .intro-card p {
    font-size: 0.75rem;
    margin-top: 4px;
  }
  .popup-content {
    max-width: 90%;
    padding: 15px;
  }
  .popup-content img {
    max-height: 200px;
  }
  .popup-content h3 {
    font-size: 1.2rem;
  }
  .popup-content p {
    font-size: 0.85rem;
  }

  .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;
            }
.team-name-meaning {
    font-size: 1.1rem; /* 모바일에서는 좀 더 작게 */
    margin-top: 6px;
    margin-bottom: 6px;
    text-decoration: none; /* 밑줄이 너무 두드러지면 제거 고려 */
    text-align: center; /* 필요하다면 중앙 정렬 */
  }           
.typing-content {
    font-size: 1rem;         /* 글자 크기 소폭 감소 */
    line-height: 1.6;        /* 줄 간격 약간 줄임 */
    padding: 8px 12px;       /* 좌우 여백 추가해서 가독성 확보 */
    transform: translateY(-5px); /* 너무 많이 움직이지 않도록 조정 */
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* 약간 빠르게 */
  }
  .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;
    }
}
