body {
    margin: 0 auto;
    background: #fff;
    width: 100%;
    height: 100%;
    position: relative;
        display: flex;
    flex-direction: column;
}


html, body {
  height: 100%;
  margin: 0;
}

.wrapper {
  min-height: 100vh; /* 화면 높이 채우기 */
  display: flex;
  flex-direction: column;
}

main {
  flex: 1; /* 남은 공간을 main이 채움 */
}



footer {
  padding: 2rem;
  text-align: center;
}


main {
    width: 100%;
    background-repeat: no-repeat;
    background-size: 100%;
    padding-top: 8rem;
    background: url('../images/main/main_bg.png');
    background-size: cover;
}

.c3rx_title {
    margin: 0 auto;
    text-align: center;
}

.c3rx_title img{
    width: 500px;
}

.c3rx_title span {
    display: block;
    color: rgba(0, 0, 0, 0.30);
    font-family: "Min Sans VF";
    font-size: 30px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    letter-spacing: -0.3px;
}

.niam_button {
    margin: 0 auto 4rem;
    text-align: center;

}

.niam_button .c3rx {
    border-radius: 16px;
    background: #222;
    display: inline-flex;
    padding: 24px 56px;
    justify-content: center;
    align-items: center;
    border: none;
    cursor: pointer;
}

.niam_button .c3rx a {
color: #FFF;
    text-align: center;
    font-family: "Min Sans VF";
    font-size: 2.4rem;
    font-style: normal;
    font-weight: 500;
    line-height: 150%;
    letter-spacing: -0.48px;
    text-decoration: none;
}

.niam_button .c3rx a img {
    vertical-align: middle;
    width: 24px;
    height: 24px;
    margin-left: 8px;
    margin-top: -3px;
}

.niam_content {
    display: flex;
    justify-content: center;
    gap: 2.8rem;
    margin: 4rem auto 6.4rem;
}

.niam_content video {
    border-radius: 18px;
}

.niam_content .box01 {
    position: relative;
}

.niam_content .v01 {
    position: relative;
}

.niam_content .v01 .v_text {
    position: absolute;
    font-size: 1.6rem;
    background: #ffffffb8;
    padding: 0.5rem 1.6rem;
    border-radius: 300px;
    top: 16px;
    left: 20px;
    font-weight: 600;
}

.niam_content .v01 video {
    width: 280px;
    height: 100%;
}

.box_center {
    height: 100%;
}

.box_center video {
    width: 500px;
    height: 100%;
}

.v_gif {
    border-radius: 20px;
    text-align: center;
    padding-bottom: 16px;
    background: linear-gradient(154deg, #E6E6E6 34.12%, rgba(230, 230, 230, 0.10) 82.59%);
}


.v_text02 {
    display: block;
    color: #444;
    font-size: 1.6rem;
    font-weight: 700;
    background: #0000000f;
    padding: 0.5rem 0;
    width: fit-content;
    margin: 0 auto;
    border-radius: 300px;
    width: 220px;
}

.box_center {
    position: relative;
    width: 390px;
    text-align: center;
}

.box_center::before {
    display: block;
    clear: both;
    content: "";
    background: url('../images/main/center_img.png');
    width: 390px;
    height: 400px;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 20px;
    background-position: center;
    position: absolute;
}


.box01,
.box02 {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 400px;
}

.v_gif {
    height: 224px;
}

.v_gif .img_box::before {
    display: block;
    clear: both;
    content: "";
    background: #fff url(../images/main/m_01.gif);
    width: 220px;
    height: 120px;
    background-size: 150px 150px;
    background-repeat: no-repeat;
    background-position: center;
    margin: 32px auto 16px;
    border-radius: 16px;
    overflow: hidden;
}

.box02 .v01 video {
    width: 350px;
}

.box02 .v01 img {
    width: 350px;
    height: 190px;
    border-radius: 20px;
}


/* 미디어쿼리 기반 반응형 전용 CSS */

/* 기본 스타일 유지 (변경 없음) */

/* 데스크탑 기본값 유지 - min-width: 1025px 이상일 경우 */
@media screen and (min-width: 1025px) {
  .c3rx_title img {
    width: 500px;
  }

  .niam_content {
    flex-direction: row;
    gap: 2.8rem;
    margin: 4rem auto 6.4rem;
  }

  .box_center::before {
    width: 390px;
    height: 400px;
  }

  .box01, .box02 {
    flex-direction: column;
    height: 400px;
  }

  .box02 .v01 video,
  .box02 .v01 img {
    width: 350px;
  }

  .niam_button .c3rx {
    padding: 2rem 10rem;
    font-size: 2.4rem;
  }
}

/* 모바일 (max-width: 767px) */
@media screen and (max-width: 1020px) {
  .c3rx_title img {
    width: 70%;
  }


  .box01, .box02, .box_center {
display: none;
  }


  main {
    height: 100%;
    position: relative;
  }

  main> section {
    position: absolute;
    width: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  .niam_content {
    flex-direction: column;
    gap: 2rem;
    padding: 0 1.6rem;
    margin: 4rem auto;
  }

  .box01, .box02, .box_center {
    width: 100%;
    max-width: 100%;
  }

  .box_center::before {
    width: 100%;
    height: auto;
    padding-top: 90%;
  }

  .v01 .v_text,
  .v_text02 {
    font-size: 1.4rem;
    padding: 0.4rem 1.2rem;
  }

  .niam_button .c3rx {
    padding: 16px 32px;
    font-size: 2rem;
  }

  .niam_button .c3rx img {
    width: 20px;
    height: 20px;
  }
}
