/* scrollReveal 요소를 미리 숨기기 */
html.sr .reveal {
  visibility: hidden;
}

/* ★ 1. 히어로 색션 ----------------------- */
/* (1) 배너 비디오 */

.banner .video_container {
  position: relative;
  top: 0;
  z-index: 0;
  width: 100%;
  height: 100vh;    
  overflow: hidden;
} 

.banner .video_container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;       
  height: 100%;         
  object-fit: cover;    
} 

/* (2) 메인 타이틀 */
.main_title {
  position: absolute;
  top: 30%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 20%;
  font-size: 30px;
  line-height: 1.2;
}

.main_title span {
  font-size: 200px;
  font-weight: 900;
  line-height: 1em;
  letter-spacing: -0.04em;
  white-space: wrap;
}

/* (3) 메인 좌,우 동그라미 버튼 */
.main_button {
  width: 100%;
  position: absolute;
  top: 20%;
  display: flex;
  justify-content: space-between;
}

.button {
  width: 650px;
  height: 650px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: absolute;
  overflow: hidden;
  font-size: 30px;
  font-weight: 600;
  background-color: rgba(0, 0, 0, 0.2);
  z-index: 0;
  cursor: pointer;
}

/* 동그라미 중앙에서 커지는 파란 원 효과*/
.button::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--point_color);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.5s ease-out;
  z-index: 0;
  left: 50%;
  top: 50%;
}

.main_button span {
  position: relative;
  z-index: 2;
}

.button:hover::after {
  transform: translate(-50%, -50%) scale(1);
}

/*  동그라미 안 텍스트 */
.main_button .label {
  font-size: 30px;
  font-weight: 500;
  line-height: 2;
}

.main_button .sub {
  font-size: 20px;
  font-weight: 400;
}

.main_button .left {
  left: -350px;
  padding-left: 300px;
}

.main_button .right {
  right: -350px;
  padding-right: 300px;
  text-align: right;
}

/* (4) 고정 CTA 버튼 */
.fixed_button {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background-color: rgba(255, 60, 0, 0.849);
  color: #fafaf8;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  cursor: pointer;
}

.fixed_button span {
  font-size: 30px;
}

.fb1 {
  bottom: 150px;
  right: 50px;
}

.fb2 {
  bottom: 50px;
  right: 50px;
}

/* 히어로 색션 반응형 */
@media (max-width: 1300px) {
  .main_title span {
    font-size: clamp(110px, 20vw, 160px);
  }

  .main_title {
    justify-content: center;
    font-size: clamp(20px, 2vw, 30px);
    line-height: 2em;
    padding-left: 15%;
  }

  .banner .video_container video {
    object-position: right center;
  }

  .main_button {
    top: 30%;
  }

  .button {
    width: clamp(500px, 70vw, 600px);
    height: clamp(500px, 70vw, 600px);
  }
}

@media (max-width: 950px) {
  .main_button {
    top: 40%;
  }

  .main_button .label {
    font-size: 24px;
  }

  .main_title {
    justify-content: center;
    padding-left: clamp(15%, 5vw, 25%);
  }

  .fixed_button {
    display: none;
  }
}

/* ★ 블루 라인 슬라이드 ------------------- */
.blue_slide {
  width: 100%;
  height: 70px;
  background-color: #3d5061;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* 슬라이드 흐르는 부분 */
.blue_slide .blue_container {
  display: flex;
  align-items: center;
  animation: blueSlide 15s linear infinite;
}

/* 텍스트 스타일 */
.blue_slide .item {
  font-size: 24px;
  flex-shrink: 0;
  padding: 0 40px;
  color: #fff;
}

/* 키프레임: 블루 라벨 안 텍스트 왼쪽으로 쭉 이동 */
@keyframes blueSlide {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ★ 2. 패키지 (그리드) 색션 ------------- */
#package {
  width: 85%;
  margin: auto;
  color: #383838;
}

.grid_container {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, 1fr);
}

.grid_item {
  position: relative;
  height: 260px;
  padding: 40px;
  box-shadow: 0 6px 6px rgba(0, 0, 0, 0.2);
  color: var(--font_color2);
  cursor: pointer;
  overflow: hidden;
  border-radius: 20px;
  transition: color 0.2s ease, box-shadow 0.2s ease;
}

/* 딤드 효과 */
.grid_item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(77, 45, 14, 0.384);
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
  z-index: 1;
}

/* hover 시 효과 */
.grid_item:hover::before {
  opacity: 1;
}

.grid_item:hover {
  color: #fff;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.5);
}


/* 텍스트 위로 올리기 */
.grid_item > * {
  position: relative;
  z-index: 2;
}

/* 텍스트 스타일 */
.item_title {
  font-size: 40px;
  font-weight: 800;
}

.item_desc {
  font-size: 18px;
  font-weight: 500;
  margin-top: 18px;
  line-height: 1.8em;
}

.item_price_bf {
  position: absolute;
  bottom: 80px;
  right: 40px;
  font-weight: 400;
  text-decoration: line-through;
}

.item_price {
  position: absolute;
  bottom: 40px;
  right: 40px;
  font-weight: 800;
  font-size: 30px;
  text-align: right;
}

/* 각 카드별 배경이미지 (CSS 변수로 지정) */
.grid1 {
  grid-column: 1 / span 2;
  background-color: rgba(32, 111, 161, 0.5);
}

.grid2 {
  background-color: rgba(24, 87, 126, 0.5);
}

.grid3 {
  background-color: rgba(206, 141, 50, 0.5);
}

.grid4 {
  grid-column: span 2;
  background-color: rgba(41, 92, 49, 0.34);
}

.grid5 {
  grid-column: span 2;
  background-color: rgba(47, 115, 107, 0.6);
}

/* 2. 패키지 (그리드) 색션 반응형 */
@media (max-width: 1380px) {
  .item_title {
    font-size: 30px;
  }

  .item_desc {
    font-size: 16px;
  }

  .item_price {
    font-size: 24px;
  }

  .grid_item .item_price_bf {
    margin-bottom: 0;
  }
}

@media (max-width: 1000px) {
  .grid_container {
    grid-template-columns: repeat(2, 1fr);
  }

  .sec_title {
    display: flex;
    justify-content: center;
  }
}

@media (max-width: 500px) {
  .grid_container {
    grid-template-columns: 1fr;
  }

  .grid_item {
    height: 180px;
  }

  .item_desc {
    display: none;
  }

  .item_title {
    font-size: 20px;
  }

  .item_price {
    white-space: wrap;
    font-size: 20px;
  }

  .grid1,
  .grid4,
  .grid5 {
    grid-column: auto;
  }

  .grid_item .item_price_bf {
    display: none;
  }
}

/* ★ 3. 가격안내 색션 --------------------- */
#price_info {
  height: 100vh;
  background: url("./img/section3/background.png") no-repeat center/cover;
  color: var(--font_color5);
  border-radius: 150px;
}

#price_info .sec_title {
  margin-bottom: 0;
}

/* 파랑색 슬라이드 버튼 */
.slide_btn {
  display: flex;
  justify-content: end;
  margin-right: 5%;
  gap: 30px;
  cursor: pointer;
}

.slide_btn .btn {
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--font_color2);
  background-color: var(--point_color);
  border-radius: 50%;
}

.slide_btn .btn:hover {
  box-shadow: 0 3px 3px rgba(182, 182, 182, 0.8);
  transition: 0.25s ease;
}

/* 슬라이드 전체 영역 */
#price_info .price_slide {
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
}

#price_info .price_item {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 50px;
  padding: 40px 0;
  box-sizing: border-box;
}

/* 이미지 동그라미 전체 랩 */
#price_info .round {
  width: max-content;
  display: flex;
  align-items: end;
  flex-shrink: 0;
}

/* 작은 동그라미 - 크기 고정 */
#price_info .round .round_small {
  width: 180px;
  height: 180px;
  border: 5px solid #eff5f9;
  border-radius: 50%;
  box-shadow: 0 0 10px 4px rgba(61, 61, 61, 0.4);
  overflow: hidden;
}

/* 큰 동그라미 - 크기 고정 */
#price_info .round .round_big {
  width: 500px;
  height: 500px;
  border: 5px solid #eff5f9;
  border-radius: 50%;
  box-shadow: 0 0 10px 4px rgba(61, 61, 61, 0.4);
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

/* 동그라미 안 이미지 공통 */
#price_info .round img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

/* 영어 타이틀 */
#price_info .title {
  font-size: 50px;
  font-weight: 800;
  margin-bottom: 30px;
}

#price_info .price {
  width: 500px;
  list-style: none;
  gap: 14px;
  line-height: 3em;
  font-size: 22px;
}

/* 한 줄 구조 */
#price_info .price li {
  display: flex;
  align-items: center;
  gap: 20px;
}

#price_info .price .bar {
  flex: 1;
  height: 1px;
  background: #929292;
}

#price_info .price .val {
  font-size: 24px;
  font-weight: 800;
}

/* 3. 가격안내 색션 반응형 */
@media (max-width: 1280px) {
  #price_info .price li {
    grid-template-columns: 1fr 150px auto;
  }

  #price_info .price {
    font-size: 18px;
  }

  #price_info .title {
    font-size: 40px;
  }
}

@media (max-width: 1000px) {
  #price_info .price_item {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  #price_info .price {
    font-size: 18px;
    width: 400px;
  }

  #price_info {
    height: auto;
  }

  #price_info .round {
    justify-content: center;
    align-items: end;
  }

  #price_info .round img {
    position: relative;
  }

  .slide_btn {
    position: absolute;
    bottom: 45%;
    left: 60%;
    z-index: 10;
  }
}

@media (max-width: 700px) {
  #price_info .price {
    width: 300px;
  }
}

/* ★ 4. 레벨업 캠프 색션 ------------------ */
#levelup_camp .sec_title {
  display: flex;
  justify-content: space-between;
}

#levelup_camp .sec_title p {
  font-size: 22px;
  font-weight: 500;
  color: var(--font_color3);
  display: flex;
  align-self: center;
}

.levelup_container {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.levelup_box {
  width: 40%;
  height: 720px;
  color: var(--font_color2);
  padding-top: 50px;
  font-size: 24px;
  font-weight: 500;
  line-height: 2em;
}

/*  왼쪽 박스  */
.levelup_box.left_img {
  background: url("./img/section4/a_group.png") no-repeat center/cover;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 5%;
  border-radius: 20px;
}

/*  오른쪽 박스  */
.levelup_box.right_img {
  display: flex;
  position: relative;
  gap: 50px;
  width: 56%;
}

.right_img_box1 {
  background: url("./img/section4/b_group.png") no-repeat center/cover;
  width: 45%;
  height: 430px;
  padding: 5%;
  display: flex;
  align-items: flex-end;
  border-radius: 20px;
}

.right_img_box2 {
  background: url("./img/section4/c_group.png") no-repeat center/cover;
  width: 45%;
  height: 430px;
  padding: 5%;
  display: flex;
  align-items: flex-end;
  border-radius: 20px;
  position: relative;
}

/* 텍스트 박스 */
.copy {
  position: absolute;
  margin-left: 45%;
  margin-bottom: 50px;
}

.copy span {
  font-size: 46px;
  font-weight: 900;
  color: var(--font_color3);
  margin-bottom: 12px;
}

.copy p {
  font-size: 18px;
  font-weight: 400;
  color: #555;
  line-height: 2.3em;
  letter-spacing: -0.02em;
}

.levelup_container .m_viewmore {
  display: none;
}

@media (max-width: 1050px) {
  .levelup_container {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .levelup_container .copy {
    position: static;
    order: -1;
    width: 100%;
    margin: 0 0 12px 0;
    padding: 0;
    text-align: center;
  }

  .levelup_container .copy h3 {
    font-size: clamp(22px, 5vw, 28px);
    line-height: 1.25;
    margin: 0 0 8px;
  }

  .levelup_container .copy h3 span {
    display: none;
  }

  .levelup_container .copy p {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
  }

  .levelup_camp .sec_title p {
    display: none;
  }

  .levelup_container .m_viewmore {
    display: flex;
    justify-content: center;
    align-items: end;
  }

  .levelup_box {
    width: 100%;
    padding-top: 0;
    font-size: 20px;
    line-height: 1.6;
  }

  .levelup_box.left_img {
    height: 500px;
    padding: 30px;
    border-radius: 16px;
    aspect-ratio: 16 / 10;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }

  .levelup_box.right_img {
    width: 100%;
    margin: 0;
    gap: 12px;
    aspect-ratio: 16 / 10;
    flex-direction: column;
    position: static;
  }

  .right_img_box1,
  .right_img_box2 {
    width: 100%;
    height: 300px;
    padding: 30px;
    border-radius: 16px;
    display: flex;
    align-items: flex-end;
  }

  #levelup_camp .sec_title {
    display: flex;
    justify-content: center;
  }

  #levelup_camp .sec_title p {
    display: none;
  }
}

/* ★ 5. 갤러리 자동 슬라이드 색션 --------- */
#gallery_slide {
  position: relative;
  white-space: nowrap;
  overflow: hidden;
}

.text_container {
  display: flex;
  width: max-content;
  animation: gallery_slide 30s linear infinite;
}

/* 글자 스타일 */
.item a {
  color: #5487ac;
  font-size: 74px;
  font-weight: 900;
  margin-right: 30px;
  white-space: nowrap;
}

#gallery_slide .item span {
  font-size: 60px;
  font-weight: 900;
  margin-right: 40px;
  white-space: nowrap;
  color: var(--font_color2);
  -webkit-text-stroke: 2px rgb(41, 41, 41);
}

/* 슬라이드 애니메이션 */
@keyframes gallery_slide {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.img_container {
  display: flex;
  margin-top: 40px;
  width: max-content;
  animation: gallery_slide 40s linear infinite;
}

.img_container .item img {
  width: 400px;
  height: 240px;
  object-fit: cover;
  margin-right: 20px;
  transition: 0.5s ease;
}

/* ★ 6. 시설안내 색션 --------------------- */
#facility {
  background: url("./img/section6/backgrounds.png") no-repeat center/cover;
  overflow: hidden;
}

.f {
  display: flex;
  justify-content: center;
  margin-top: 150px;
  margin-bottom: 80px;
}

._2f,
._3f {
  margin-top: 300px;
}

.fac_img {
  width: clamp(300px, 30vw, 400px);
  height: clamp(300px, 30vw, 400px);
  display: flex;
  position: relative;
  flex-shrink: 0;
}

.fac_img img {
  position: absolute;
  top: 0;
  bottom: 0;
}

.fac_img img:nth-child(3) {
  transform: rotate(6deg);
}

.fac_img img:nth-child(4) {
  transform: rotate(-6deg);
}

/* 화살표 */
.arrow {
  width: 160px;
  height: 160px;
  object-fit: cover;
  margin-left: 30px;
}

.fac_text {
  margin-top: 100px;
  margin-left: 2%;
}

.fac_text h3 {
  font-weight: 800;
  font-size: 60px;
  color: #5487ac;
}

.fac_text p {
  font-weight: 500;
  font-size: 22px;
  color: var(--font_color4);
  line-height: 2em;
  margin-top: 50px;
}

/* 파랑색 버튼 */
.f .click_btn {
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  color: var(--font_color2);
  top: 46%;
  right: -30px;
  background: #0040af;
  border-radius: 50%;
}

.click_btn span {
  font-size: 50px;
  font-weight: 500;
}

.f .click_btn {
  z-index: 10;
  cursor: pointer;
}

.f.open .click_btn {
  right: auto !important;
}

/* 가로 스크롤바 숨기기 */
.fac_img::-webkit-scrollbar {
  display: none;
}

.fac_img {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

@keyframes shake {
  from {
    transform: scale(1.2);
    transform-origin: center center;
    animation-timing-function: ease-out;
  }

  10% {
    transform: scale(0.91);
    animation-timing-function: ease-in;
  }

  17% {
    transform: scale(0.98);
    animation-timing-function: ease-out;
  }

  33% {
    transform: scale(0.86);
    animation-timing-function: ease-in;
  }

  45% {
    transform: scale(1.1);
    animation-timing-function: ease-out;
  }
}

/* 접힌 상태일 때만 적용 */
.f:not(.open) .click_btn {
  animation: shake 1.2s ease-in-out infinite;
  will-change: transform;
}

/* 펼친 상태에서는 정지 */
.f.open .click_btn {
  animation: none !important;
}

/* 6. 시설안내 색션 반응형 */
@media (max-width: 1300px) {
  .fac_text h3 {
    font-size: 50px;
  }

  .fac_text p {
    font-size: 20px;
  }
}

@media (max-width: 1000px) {
  .f {
    flex-direction: column-reverse;
    align-items: center;
    margin-top: 0;
    margin-bottom: 0;
  }

  .fac_text h3 {
    font-size: 40px;
  }

  .fac_text p {
    font-size: 16px;
  }

  .arrow img {
    width: 130px;
    height: 100px;
    object-fit: cover;
  }
}

@media (max-width: 600px) {
  .fac_text h3 {
    font-size: 30px;
  }
}

/* ★ 7. 아코디언 색션 --------------------- */
/* 아코디언 구조 타이틀 공통 */
.info_title {
  font-family: 'Montserrat';
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 120px;
  font-size: 44px;
  font-weight: 800;
  color: #1e3472;
  padding: 0 80px;
  margin-bottom: 50px;
  border-top: 1px solid #dcdcdc;
  border-bottom: 1px solid #dcdcdc;
}

/* 화살표 이미지 */
.info_title img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* 클릭했을 때 화살표 돌아가는 효과 */
/* → 클래스명 맞춰서 수정: acc_title → info_title */
.item input:checked + .acc_title img {
  transform: rotate(180deg);
}

/* 클릭했을때 색션이 펼쳐지도록 */
.item input:checked ~ .panel {
  max-height: 9000px; 
}

/* 인풋박스 안보이게 (전역 X, 아코디언 안에서만) */
.item input[type="radio"],
.item input[type="checkbox"] {
  display: none;
}

/* 펼치면 보이는 패널 */
.panel {
  display: flex;
  justify-content: space-evenly;
  max-height: 0;                 /* 0부터 시작 */
  overflow: hidden;
  transition: max-height 0.5s ease-in-out;
  line-height: 2em;
  padding: 0 10px;               /* 접힌 상태에서는 위아래 padding 없음 */
}

/* item2 전용 패널 정렬 */
.item2 .panel {
  justify-content: flex-start;
  padding-left: 80px;
}

.panel p {
  font-size: 18px;
  font-weight: 300;
  color: var(--font_color4);
}

.panel span {
  font-size: 22px;
  color: #33457f;
  font-weight: 600;
}

/* (1) 조아서프 유의사항 */
.item1 .panel img {
  width: clamp(300px, 50vw, 500px);
  height: clamp(200px, 40vw, 400px);
  border-radius: 20px;
  margin-top: 20px;
  margin-bottom: 10px;
  object-fit: cover;
}

.item1 .desc {
  display: flex;
  flex-direction: column;
  margin-top: 20px;
}

.item1 .desc2 {
  margin-top: 50px;
}

/* (2) 자주하는 질문 */
.item2 .panel p {
  margin-top: 30px;
  margin-bottom: 40px;
}

/* (3) 오시는 길 */
.item3 .panel {
  width: 100%;
}

.item3 .map {
  width: 600px;
  height: 600px;
  margin-top: 30px;
}

.item3 .txt {
  font-size: 10px;
}

.item3 .panel .desc {
  font-size: 60px;
  font-weight: 800;
  line-height: 1.4em;
  transform: rotate(90deg) translateY(380px);
  color: #adc5dd;
}

/* 7. 아코디언 색션 반응형 */
@media (max-width: 1200px) {
  .info_title {
    font-size: 40px;
    height: 130px;
  }

  .info_title img {
    width: 50px;
    height: 50px;
  }

  .panel {
    display: block;
    padding: 0 50px;
  }

  .panel p {
    font-size: 16px;
    margin-bottom: 50px;
  }

  .panel span {
    font-size: 20px;
  }

  .item1 .panel img {
    width: 100%;
    height: 400px;
  }

  .item1 .desc2 {
    margin-top: 50px;
  }

  .item3 .panel .desc {
    transform: rotate(0deg) translateY(0px);
    font-size: 40px;
  }
}

@media (max-width: 600px) {
  .info_title {
    font-size: 26px;
    height: 90px;
  }

  .info_title span {
    font-size: 28px;
  }

  .info_title {
    padding: 0 20px;
  }
}
