@charset "utf-8";

/* 인트로 영상 스타일 */
.intro-video-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background-color: #000;
    opacity: 1;
    transition: opacity 1s ease-out;
}
.intro-video-wrapper.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.intro-video-wrapper.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.intro-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Skip 버튼 스타일 */
.skip-button {
    position: absolute;
    bottom: 40px;
    right: 40px;
    padding: 12px 30px;
    background-color: rgba(255, 255, 255, 0.2);
    border: 2px solid #fff;
    color: #fff;
    font-size: 16px;
    font-family: 'pret-sb';
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 30px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    z-index: 10000;
}

.skip-button:hover {
    background-color: #fff;
    color: #000;
    transform: translateY(-2px);
}

/* 인트로 영상 재생 중 스크롤 방지 */
body {
    overflow: hidden;
}

/* 반응형 */
@media (max-width: 768px) {
    .skip-button {
        bottom: 30px;
        right: 20px;
        padding: 10px 24px;
        font-size: 14px;
    }
}





/* --- 헤더 --- */
.gnbArea {
  background: transparent;
}



/* ===========================
   HEALING TENNIS SECTION
=========================== */

section.total-nav {
  text-align: center;
  padding: 200px 20px 50px;
}

.section-title {
  margin: 0 0 20px;
}

.section-desc {
  font-size: 15px;
  color: #333;
  line-height: 1.8;
  margin: 0 0 50px;
}

/* ===========================
   CARDS WRAPPER
=========================== */

.cards-wrapper {
  display: flex;
  justify-content: center;
  gap: 0;
  max-width: 95vw;
  margin: 0 auto;
}

/* ===========================
   CARD BASE
=========================== */

.card {
  max-width: 470px;
  max-height: 470px;
  min-height: 400px;
  width: 24.48vw;
  height: 24.48vw;
  background-color: #f0f0f0;
  padding: 3.5vw 10px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  /* transition: all 0.4s ease; */
}

.card-content {
  position: relative;
  z-index: 2;
}

.card-title {
  font-size: 44px;
  font-family: 'gangwon';
  color: var(--main-green);
  margin: 0 0 16px;
}

.card-desc {
  font-size: 14px;
  color: #444;
  line-height: 1.8;
  margin: 0 0 24px;
}

.card-btn {
  display: inline-block;
  background-color: var(--main-green);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 20px;
  text-decoration: none;
  letter-spacing: 0.5px;
  /* transition: background-color 0.3s; */
}

.card-icon {
  width: 120px;
  height: 120px;
  margin: 30px auto 0;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  /* transition: background-image 0.3s ease; */
  position: relative;
  z-index: 2;
}
/* 기본 이미지 */
.icon--about   { background-image: url('/html/images/main/icon_about.png'); }
.icon--room    { background-image: url('/html/images/main/icon_room.png'); }
.icon--lesson { background-image: url('/html/images/main/icon_lesson.png'); }
.icon--rental { background-image: url('/html/images/main/icon_rental.png'); }

@media (min-width:1201px){
  /* 카드에 호버 시 변경 */
.card:hover { background-color: #fff;}
.card:hover .card-desc { display: none;}
.card:hover .card-icon { transform: translateY(-50px) scale(1.2);}
.card:hover .card-btn { 
  transform: translateY(220px);
  background-color: #fff;
  color: #2A2A2A;
}
.card--about:hover   .icon--about   { background-image: url('/html/images/main/icon_about_hover.png'); }
.card--room:hover    .icon--room    { background-image: url('/html/images/main/icon_room_hover.png'); }
.card--lesson:hover .icon--lesson { background-image: url('/html/images/main/icon_lesson_hover.png'); }
.card--rental:hover .icon--rental { background-image: url('/html/images/main/icon_rental_hover.png'); }
}


/* .card-icon img {
  width: 120px;
  height: auto;
} */
/* CARD 공통 */
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  z-index: 0;
}

.card::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 72, 2, 0.65);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  z-index: 1;
}

.card:hover::before,
.card:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.card:hover .card-title,
.card:hover .card-desc {
  color: #fff;
}

/* 배경 이미지 개별 지정 */
.card--about::before { background-image: url('/html/images/main/bg_about.jpg'); }
.card--room::before  { background-image: url('/html/images/main/bg_room.jpg'); }
.card--lesson::before { background-image: url('/html/images/main/bg_lesson.jpg'); }
.card--rental::before { background-image: url('/html/images/main/bg_rental.jpg'); }

/* card 배경색*/
.card--about, .card--lesson {
  background-color: #F5F5F5;
}
.card--room, .card--rental {
  background-color: #fff;
}

@media (max-width:1600px) {
    .card-title { font-size: 33px;}
}


/* ===========================
   MOBILE
=========================== */

@media (max-width: 1024px) {

  .section-title {
    font-size: 30px;
  }

  .section-desc {
    padding: 0 50px;
  }
  .section-desc br {
    display: none;
  }
  .cards-wrapper {
    flex-direction: column;
    max-width: 100vw;
  }

  .card {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: auto;
    max-width: 100%;
    height: 228px;
    min-height: 228px;
    padding: 40px 30px 40px 40px;
    text-align: left;
  }

  .card-content {
    flex: 1;
    text-align: left;
  }

  .card-title {
    font-size: 28px;
    margin-bottom: 0px;
  }

  .card-desc {
    font-size: 14px;
    margin-bottom: 13px;
  }

  .card-icon {
    width: 110px;
    height: 110px;
    margin-top: 0;
    margin-left: 10px;
    flex-shrink: 0;
  }

  .card-icon img {
    width: 80px;
  }
}

@media (max-width:400px){
  .card {
    padding: 30px 20px 30px 30px;
  }
}


/* 상담 신청하기 영역 */
section.consult { 
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  height: 95vh;
  background: url('/html/images/main/consult_bg.jpg') no-repeat center center;
  background-size: cover;
}
section.consult .inner { 
  padding: 170px 14vw 130px;
  text-align: center;
  background: url('/html/images/main/consult_inner.jpg') no-repeat center center;
  background-size: cover;
  animation: hueRotateEffect 4s infinite alternate;
}
@keyframes hueRotateEffect {
  0% {
    filter: hue-rotate(0deg);
  }
  100% {
    filter: hue-rotate(45deg);
  }
}

section.consult .inner h2 { 
  font-size: 60px; 
  letter-spacing: 0.04em;
  color: var(--main-green);
}

section.consult .inner p {
  margin: 25px 0 70px;
  font-size: 25px;
  letter-spacing: 0.01em;
  color: #fff;
}
section.consult .inner a {
  margin: 0 auto;
  font-size: 18px;
  font-family: 'pret-m';
  width: 177px;
  height: 45px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 23px;
  border: 1px solid #fff;
  color: #fff;
}
section.consult .inner a:hover {
  border: 1px solid transparent;
  background-color: var(--main-green);
  color: #000;
}

@media (max-width:1400px){
  section.consult .inner {
    padding: 170px 6vw 130px;
  }
}

@media (max-width:1024px){
  section.consult .inner h2 { 
    font-size: 25px; 
  }

  section.consult .inner p {
    margin: 30px 0 38px;
    font-size: 14px;
    letter-spacing: 0.03em;
  }
  section.consult .inner a {
    font-size: 14px;
    width: 124px;
    height: 34px;
    border: 1px solid transparent;
    background-color: var(--main-green);
    color: #000;
  }
}

@media (max-width:768px){
  section.total-nav {
    padding: 50px 0 110px;
  }
  section.consult {
    height: 122vw;
  }
  section.consult .inner {
      padding: 16vw 6vw;
  }
}