/* ==============================
   MAIN.CSS - NATURE'S W 산후조리원
   ============================== */

#fullpage {
  width: 100%;
}

.section {
  width: 100%;
}

.section_inner {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}


/* ==============================
   SECTION 0 — 비주얼 배너
   ============================== */

#fullpage #section0 .section_inner {
  background-image: url("../images/main_sec1_bg.png");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* slick 슬라이더 */
#fullpage #section0 .slider1 {
  width: 100%;
  height: 100vh;
}

#fullpage #section0 .slide_box {
  width: 100%;
  height: 100vh;
}

#fullpage #section0 .slide_box img {
  width: 100%;
  height: 100vh;
  object-fit: cover;
}

/* zoom 애니메이션 */
.slick-active .slide_box img {
  animation: zoom 6s ease forwards;
}

@keyframes zoom {
  0% {
    transform: scale(1.08);
  }

  100% {
    transform: scale(1);
  }
}

/* 배너 텍스트 */
.main_banner {
  position: absolute;
  top: 50%;
  left: calc((100% - 85%) / 2);
  transform: translateY(-50%);
  z-index: 3;
  text-align: left;
  color: #fff;
}

.main_banner .title_top {}

.text_animation1 {
  line-height: 55px;
  margin-bottom: 10px;
}

.text_animation2 {}

.text_animation1 p {
  opacity: 0;
  animation: show-up 1.2s ease forwards;
}

.text_animation2 p {
  opacity: 0;
  animation: show-up2 1.2s ease forwards;
  animation-delay: .4s;
}

@keyframes show-up {
  0% {
    margin-top: 90px;
    opacity: 0.2;
  }

  100% {
    margin-top: 0;
    opacity: 1;
  }
}

@keyframes show-up2 {
  0% {
    margin-top: 45px;
    opacity: 0.2;
  }

  100% {
    margin-top: 0;
    opacity: 1;
  }
}

/* scroll down */
.scroll_down {
  position: absolute;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  z-index: 3;
  text-align: center;
  color: #fff;
}

.scroll_down p {
  letter-spacing: 0.2em;
  margin-bottom: 8px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.progressbar {
  width: 1px;
  height: 60px;
  background-color: rgba(255, 255, 255, 0.35);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.progress_in {
  width: 1px;
  height: 0;
  background-color: #fff;
  position: absolute;
  top: 0;
  left: 0;
  animation: scroll_anim 2s ease-out infinite;
}

@keyframes scroll_anim {
  0% {
    height: 0;
    top: 0;
  }

  50% {
    height: 100%;
    top: 0;
  }

  100% {
    height: 0;
    top: 100%;
  }
}


/* ==============================
   SECTION 1 — 소개
   ============================== */

#fullpage #section1 .section_inner {
  background-image: url('../images/main_sec2_bg.png');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

#fullpage #section1 .big_text {
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(60px, 8vw, 110px);
  color: rgba(185, 174, 160, 1);
  white-space: nowrap;
  z-index: 1;
  letter-spacing: 0.05em;
  pointer-events: none;
  opacity: 0.3;
}

#section1 .big_text {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
}

#section1 .big_text_inner {
  display: inline-flex;
  animation: marquee_sec1 50s linear infinite;
}

#section1 .big_text_inner span {
  display: inline-block;
  white-space: nowrap;
}

@keyframes marquee_sec1 {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

#fullpage #section1 .center {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}

#fullpage #section1 .flex_wrap {
  display: flex;
  align-items: center;
  gap: 80px;
  width: 100%;
}

#fullpage #section1 .img_wrap {
  flex: 0 0 45%;
}

#fullpage #section1 .img_wrap img {
  width: 100%;
}

#fullpage #section1 .txt_wrap {
  flex: 1;
  text-align: center;
}

#fullpage #section1 .txt_wrap .txt_top {
  font-size: 30px;
  line-height: 1.7;
  color: #3f2e26;
  margin-bottom: 30px;
}

#fullpage #section1 .txt_wrap .txt_top .txt_bottom {
  color: rgba(102, 102, 102, 1);
}

#fullpage #section1 .txt_wrap .ell {
  margin-bottom: 30px;
}

#fullpage #section1 .txt_wrap .txt_bottom {
  font-size: 16px;
  line-height: 2;
  color: #9f978c;
}


/* ==============================
   SECTION 2 — 시설안내
   ============================== */
#fullpage #section2 .section_inner {
  background: none;
  overflow: hidden;
}

#fullpage #section2 .box_list {
  display: flex;
  width: 100%;
  height: 100vh;
}

#fullpage #section2 .box_item {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  cursor: pointer;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

#fullpage #section2 .box_item:last-child {
  border-right: none;
}

/* 이미지 영역 */
#fullpage #section2 .box_img {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

#fullpage #section2 .box_img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

#fullpage #section2 .box_item:hover .box_img img {
  transform: scale(1.05);
}

/* 어두운 오버레이 */
#fullpage #section2 .box_item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.25) 100%);
  z-index: 1;
  transition: background 0.4s;
}

#fullpage #section2 .box_item:hover::before {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.15) 50%, rgba(0, 0, 0, 0.3) 100%);
}

/* 세로 영문 텍스트 */
#fullpage #section2 .box_en {
  position: absolute;
  top: 20%;
  left: 5%;
  color: #fff;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: 0.15em;
  z-index: 2;
  opacity: 0.9;
}

#fullpage #section2 .box_ko {
  position: absolute;
  top: 20%;
  right: 5%;
  color: #fff;
  letter-spacing: 0.15em;
  z-index: 2;
  opacity: 0.9;
}

/* 하단 텍스트+버튼 영역 */
#fullpage #section2 .box_bottom {
  position: relative;
  z-index: 2;
  padding: 0 30px 75px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#fullpage #section2 .box_ko {
  letter-spacing: 0.05em;
}

/* circle 버튼 */
.circle {
  padding: 10px 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  color: #fff;
  letter-spacing: 0.1em;
  transition: background 0.25s, color 0.25s;
  white-space: nowrap;
}

.circle:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ==============================
   SECTION 3 — 프로그램
   ============================== */
#fullpage #section3 .section_inner {
  background-image: url('../images/main_sec4_bg.png');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

#fullpage #section3 .section_inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 0;
}

#fullpage #section3 .sec_header {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  margin-bottom: 50px;
}

#fullpage #section3 .sec_sub_title {
  margin-bottom: 8px;
  opacity: 0.85;
}

#fullpage #section3 .sec_title {
  text-transform: uppercase;
}

#fullpage #section3 ul {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 40px;
}

#fullpage #section3 ul li {
  width: 200px;
  height: 340px;
  border-radius: 999px;
  background: rgba(200, 190, 178, 0.45);
  box-shadow: 2px 6px 12px 0 rgba(119, 119, 119, 0.75);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  color: #fff;
  cursor: pointer;
  transition: background 0.4s, transform 0.3s;
  text-align: center;
  padding: 0 20px;
}

#fullpage #section3 ul li.active {
  width: 240px;
  height: 320px;
  background: rgba(220, 210, 198, 0.6);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
}

#fullpage #section3 ul li:hover {
  background: rgba(220, 210, 198, 0.6);
  transform: translateY(-6px);
}

#fullpage #section3 ul li img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

#fullpage #section3 ul li.active img {
  width: 60px;
  height: 60px;
  filter: none;
}

#fullpage #section3 ul li p {
  color: #fff;
  letter-spacing: 0.05em;
  line-height: 1.5;
}

#fullpage #section3 ul li.active p {
  color: #3f2e26;
}


/* ==============================
   SECTION 4 — 상담신청
   ============================== */
#fullpage #section4 .section_inner {
  overflow: hidden;
  display: flex;
  height: auto;
  min-height: 300px;
}

#fullpage #section4 .left {
  width: 50%;
  background-color: #fff;
  display: flex;
  align-items: center;
  padding: 80px calc((100vw * 0.5 - 100vw * 0.85 / 2) + 0px) 80px calc(100vw * 0.5 - 100vw * 0.85 / 2);
  color: #111;
}

#fullpage #section4 .right {
  width: 50%;
  min-height: 300px;
  background-image: url('../images/main_sec4_img1.png');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

#fullpage #section4 .left .sub_label {
  color: #a07850;
  letter-spacing: 0.15em;
  margin-bottom: 20px;
}

#fullpage #section4 .left .big_text {
  line-height: 1.3;
  letter-spacing: 0.05em;
  margin-bottom: 40px;
  color: #111;
}

#fullpage #section4 .left .circle {
  margin: 0;
  border: 1px solid rgba(77, 54, 33, 1);
  border-radius: 999px;
  padding: 10px 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(77, 54, 33, 1);
  letter-spacing: 0.1em;
  transition: background 0.25s;
  background: none;
  background-image: none;
  filter: none;
}

#fullpage #section4 .left .circle:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ==============================
   SECTION 5 — FOOTER
   ============================== */
#fullpage #section5 {
  background-color: #222;
}

#fullpage #section5 .center1 {
  width: 85%;
  margin: 0 auto;
  padding: 40px 0 60px;
}

#fullpage #section5 .f_top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

#fullpage #section5 .f_logo img {
  height: 55px;
  width: auto;
}

#fullpage #section5 .f_links {
  display: flex;
  align-items: center;
  gap: 16px;
}

#fullpage #section5 .f_links p {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
}

#fullpage #section5 .f_links p:hover {
  color: #fff;
}

#fullpage #section5 .f_divider {
  color: rgba(255, 255, 255, 0.3);
}

#fullpage #section5 .f_line {
  width: 100%;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.1);
  margin-bottom: 24px;
}

#fullpage #section5 .f_mid p {
  color: rgba(255, 255, 255, 1);
  line-height: 2;
}

#fullpage #section5 .f_mid span {
  color: rgba(255, 255, 255, 0.85);
}

#fullpage #section5 .f_copy {
  margin-top: 20px;
}

#fullpage #section5 .f_copy p {
  color: rgba(255, 255, 255, 0.5);
}

#fullpage #section5 .f_copy span {
  color: rgba(255, 255, 255, 1);
}

.go_up {
  position: fixed;
  bottom: 50px;
  right: 60px;
  z-index: 999;
  width: 110px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: color 0.3s;
  background: transparent;
  /* 배경 투명 */
}

.go_up_inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  /* 배경 투명 */
}

.go_up_inner i {
  position: absolute;
  font-size: 22px;
  z-index: 2;
}

.go_up_inner svg {
  position: absolute;
  width: 100%;
  height: 100%;
  animation: rotate_text 15s linear infinite;
  background: transparent;
  /* 배경 투명 */
}

.go_up_inner svg text {
  font-size: 14px;
  font-family: 'Pretendard-Regular';
  fill: currentColor;
  letter-spacing: 2px;
}

@keyframes rotate_text {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.go_up.dark {
  color: #111;
}

.go_up_arrow {
  position: absolute;
  font-size: 22px;
  z-index: 2;
  background: transparent;
  color: currentColor;
}

/* ==============================
   MOBILE (767px 이하)
   ============================== */
@media screen and (max-width: 767px) {

  /* SECTION 0 — 배너 */
  #fullpage #section0 .section_inner {
    background-size: cover;
  }

  .main_banner {
    left: 7.5%;
    transform: translateY(-50%);
    width: 85%;
  }

  .text_animation1 p {
    font-size: 36px !important;
  }

  .text_animation2 p {
    font-size: 20px !important;
  }

  /* SECTION 1 — 소개 */
  #fullpage #section1 .center {
    align-items: center;
    justify-content: center;
  }

  #fullpage #section1 .flex_wrap {
    flex-direction: column;
    gap: 20px;
    padding: 40px 0;
  }

  #fullpage #section1 .img_wrap {
    flex: none;
    width: 60%;
    margin: 0 auto;
  }

  #fullpage #section1 .txt_wrap {
    text-align: center;
    width: 100%;
  }

  #fullpage #section1 .txt_wrap .txt_top {
    font-size: 18px !important;
    line-height: 1.6;
    margin-bottom: 16px;
  }

  #fullpage #section1 .txt_wrap .txt_bottom {
    font-size: 13px !important;
    line-height: 1.8;
  }

  #fullpage #section1 .big_text {
    font-size: 36px !important;
  }

  /* SECTION 2 — 시설안내 */
  #fullpage #section2 .box_list {
    flex-direction: column;
    height: 100vh;
  }

  #fullpage #section2 .box_item {
    flex: 1;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  #fullpage #section2 .box_item:last-child {
    border-bottom: none;
  }

  #fullpage #section2 .box_en {
    writing-mode: horizontal-tb;
    transform: none;
    top: 12px;
    left: 15px;
    font-size: 12px !important;
  }

  #fullpage #section2 .box_ko {
    top: auto;
    right: auto;
    bottom: 55px;
    left: 15px;
    font-size: 14px !important;
  }

  #fullpage #section2 .box_bottom {
    padding: 0 15px 15px;
  }

  #fullpage #section2 .circle {
    padding: 6px 16px;
    font-size: 12px !important;
  }

  /* SECTION 3 — 프로그램 */
  #fullpage #section3 .sec_header {
    margin-bottom: 20px;
  }

  #fullpage #section3 .sec_sub_title {
    font-size: 13px !important;
  }

  #fullpage #section3 .sec_title {
    font-size: 32px !important;
  }

  #fullpage #section3 ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 0 20px;
  }

  #fullpage #section3 ul li {
    width: 28vw;
    height: 28vw;
    border-radius: 50%;
    gap: 8px;
    padding: 0 8px;
  }

  #fullpage #section3 ul li.active {
    width: 28vw;
    height: 28vw;
  }

  #fullpage #section3 ul li img {
    width: 28px !important;
    height: 28px !important;
  }

  #fullpage #section3 ul li p {
    font-size: 11px !important;
    line-height: 1.3;
  }

  /* SECTION 4 — 상담신청 */
  #fullpage #section4 .section_inner {
    flex-direction: column;
  }

  #fullpage #section4 .left {
    width: 100%;
    padding: 40px 7.5%;
    order: 2;
  }

  #fullpage #section4 .right {
    width: 100%;
    min-height: 200px;
    order: 1;
  }

  #fullpage #section4 .left .big_text {
    font-size: 22px !important;
    margin-bottom: 24px;
  }

  #fullpage #section4 .left .sub_label {
    font-size: 13px !important;
    margin-bottom: 12px;
  }

  /* SECTION 5 — 푸터 */
  #fullpage #section5 .center1 {
    width: 90%;
    padding: 30px 0 20px;
  }

  #fullpage #section5 .f_top {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
  }

  #fullpage #section5 .f_logo img {
    height: 40px;
  }

  #fullpage #section5 .f_links {
    gap: 10px;
  }

  #fullpage #section5 .f_links p {
    font-size: 12px !important;
  }

  #fullpage #section5 .f_mid p {
    font-size: 12px !important;
    line-height: 1.8;
  }

  #fullpage #section5 .f_copy p {
    font-size: 11px !important;
  }

  /* go_up */
  .go_up {
    width: 70px;
    height: 70px;
    bottom: 20px;
    right: 20px;
  }

  .go_up_inner svg text {
    font-size: 11px;
  }

  .go_up_arrow {
    font-size: 16px;
  }
}


/* ==============================
   TABLET (768px ~ 1024px)
   ============================== */
@media screen and (min-width: 768px) and (max-width: 1024px) {

  /* SECTION 0 — 배너 */
  .text_animation1 p {
    font-size: 52px !important;
  }

  .text_animation2 p {
    font-size: 24px !important;
  }

  /* SECTION 1 — 소개 */
  #fullpage #section1 .flex_wrap {
    gap: 40px;
  }

  #fullpage #section1 .txt_wrap .txt_top {
    font-size: 22px !important;
    line-height: 1.5;
  }

  #fullpage #section1 .txt_wrap .txt_bottom {
    font-size: 14px !important;
  }

  #fullpage #section1 .big_text {
    font-size: 60px !important;
  }

  /* SECTION 2 — 시설안내 */
  #fullpage #section2 .box_en {
    font-size: 20px !important;
  }

  #fullpage #section2 .box_ko {
    font-size: 14px !important;
  }

  #fullpage #section2 .box_bottom {
    padding: 0 20px 40px;
  }

  #fullpage #section2 .circle {
    padding: 8px 18px;
    font-size: 13px !important;
  }

  /* SECTION 3 — 프로그램 */
  #fullpage #section3 .sec_title {
    font-size: 48px !important;
  }

  #fullpage #section3 ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    padding: 0 30px;
  }

  #fullpage #section3 ul li {
    width: 150px;
    height: 260px;
    gap: 14px;
  }

  #fullpage #section3 ul li.active {
    width: 180px;
    height: 280px;
  }

  #fullpage #section3 ul li img {
    width: 40px !important;
    height: 40px !important;
  }

  #fullpage #section3 ul li p {
    font-size: 15px !important;
  }

  /* SECTION 4 — 상담신청 */
  #fullpage #section4 .left {
    padding: 60px calc((100vw * 0.5 - 100vw * 0.85 / 2));
  }

  #fullpage #section4 .left .big_text {
    font-size: 28px !important;
    margin-bottom: 30px;
  }

  #fullpage #section4 .left .sub_label {
    font-size: 15px !important;
  }

  /* SECTION 5 — 푸터 */
  #fullpage #section5 .center1 {
    width: 90%;
  }

  #fullpage #section5 .f_logo img {
    height: 45px;
  }

  #fullpage #section5 .f_mid p {
    font-size: 13px !important;
  }

  /* go_up */
  .go_up {
    width: 90px;
    height: 90px;
    bottom: 30px;
    right: 40px;
  }
}

/* ==============================
   PC SMALL (1025px ~ 1400px)
   ============================== */
@media screen and (min-width: 1025px) and (max-width: 1400px) {

  /* SECTION 0 — 배너 */
  .text_animation1 p {
    font-size: 60px !important;
  }

  .text_animation2 p {
    font-size: 28px !important;
  }

  /* SECTION 1 — 소개 */
  #fullpage #section1 .flex_wrap {
    gap: 50px;
  }

  #fullpage #section1 .txt_wrap .txt_top {
    font-size: 24px !important;
    line-height: 1.6;
  }

  #fullpage #section1 .txt_wrap .txt_bottom {
    font-size: 15px !important;
  }

  #fullpage #section1 .big_text {
    font-size: 70px !important;
  }

  /* SECTION 2 — 시설안내 */
  #fullpage #section2 .box_en {
    font-size: 26px !important;
  }

  #fullpage #section2 .box_ko {
    font-size: 16px !important;
  }

  #fullpage #section2 .box_bottom {
    padding: 0 24px 50px;
  }

  #fullpage #section2 .circle {
    padding: 9px 22px;
    font-size: 14px !important;
  }

  /* SECTION 3 — 프로그램 */
  #fullpage #section3 .sec_title {
    font-size: 52px !important;
  }

  #fullpage #section3 .sec_sub_title {
    font-size: 16px !important;
  }

  #fullpage #section3 ul {
    gap: 12px;
  }

  #fullpage #section3 ul li {
    width: 100%;
    min-width: 125px;
    height: 250px;
    gap: 16px;
  }

  #fullpage #section3 ul li.active {
    width: 200px;
    height: 300px;
  }

  #fullpage #section3 ul li img {
    width: 44px !important;
    height: 44px !important;
  }

  #fullpage #section3 ul li p {
    font-size: 16px !important;
  }

  /* SECTION 4 — 상담신청 */
  #fullpage #section4 .left .big_text {
    font-size: 32px !important;
    margin-bottom: 32px;
  }

  #fullpage #section4 .left .sub_label {
    font-size: 16px !important;
    margin-bottom: 16px;
  }

  /* SECTION 5 — 푸터 */
  #fullpage #section5 .f_logo img {
    height: 48px;
  }

  #fullpage #section5 .f_mid p {
    font-size: 14px !important;
  }

  #fullpage #section5 .f_links p {
    font-size: 14px !important;
  }

  /* go_up */
  .go_up {
    width: 95px;
    height: 95px;
    bottom: 35px;
    right: 50px;
  }
}