/* 섹션 4 스타일 */

.section_4 {
  background: #f6f7fa;
  padding: 160px 0px;
  gap: 80px;
}
.section_4_text {
  margin-top: 4px;
}
.section_4_subtitle {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  line-height: 36px; /* 100% */
  letter-spacing: -1.08px;
  background: linear-gradient(90deg, #313743 0%, #899dc8 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section_4_img_container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.section_4_img_box {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.content_text_box {
  width: 560px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 20px;
  background: linear-gradient(90deg, #656e81 0%, #15171b 100%);
  box-shadow: 0px 0px 30px 0px rgba(0, 0, 0, 0.1);

  /* 박스 속 글자 스타일 */
  color: #fff;
  text-align: center;
  font-family: Pretendard;
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: 20px; /* 100% */
  letter-spacing: -0.6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.section_4_mid {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 294px;
}
.section_4_mid_img_text_title {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  line-height: 28px; /* 100% */
  letter-spacing: -0.84px;
  background: linear-gradient(90deg, #313743 11.06%, #899dc8 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.title_other {
  background: linear-gradient(90deg, #899dc8 9.47%, #313743 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section_4_mid_img_text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.section_4_mid_img_text > img {
  width: 100%;
  /* width: 100px;
  height: 100px; */
}
.section_4_arrow_pc {
  display: block;
}
.section_4_arrow_mo {
  display: none;
}

#section_4_text_container {
  opacity: 0;
  transform: translateY(80px);
  transition: opacity 0.2s, transform 0.2s;
}
#section_4_img_box_left {
  opacity: 0;
  transform: translateX(-80px);
  transition: opacity 0.2s, transform 0.2s;
}
#section_4_mid_arrow_left,
#section_4_mid_arrow_right {
  /* 기본적으로 완전히 숨김 (왼쪽에서 오른쪽으로) */
  clip-path: inset(0 100% 0 0);
  opacity: 1; /* opacity는 1로 두세요 */
}
#section_4_mid_box {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.2s, transform 0.2s;
}
#section_4_img_box_right {
  opacity: 0;
  transform: translateX(-80px);
  transition: opacity 0.2s, transform 0.2s;
}
/* 모바일 스타일 */
@media (max-width: 767px) {
  .section_4 {
    padding: 100px 0px;
    gap: 48px;
  }
  .section_4_text {
    margin-top: 0px;
    width: 80%;
  }
  .section_4_subtitle {
    font-size: 26px;
    line-height: 1.4;
    letter-spacing: -0.78px;
    word-break: keep-all;
    margin-top: 0px;
  }

  .section_4_img_container {
    width: 100%;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .section_4_img_box {
    display: flex;
    flex-direction: column;
    gap: 9px;
    z-index: 1;
  }

  .content_text_box {
    width: 100%;
    height: 40px;
    border-radius: 15px;

    /* 박스 속 글자 스타일 */
    color: #fff;
    text-align: center;
    font-family: Pretendard;
    font-size: 13px;
    font-style: normal;
    font-weight: 600;
    line-height: 20px; /* 100% */
    letter-spacing: -0.39px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .section_4_mid {
    display: flex;
    flex-direction: column; /* ← 세로 정렬 */
    align-items: center;
    justify-content: center;
    margin-top: 0px;
    height: auto; /* 필요시 조정 */
    gap: 40px; /* 요소 간 간격 */
  }

  .section_4_mid_img_text {
    padding: 0;
    gap: 24px;
  }
  .section_4_mid_img_text > img {
    width: 80px;
    height: 80px;
  }
  .section_4_arrow_pc {
    display: none;
  }
  .section_4_arrow_mo {
    display: block;
  }
  .section_4_img_box {
    width: 100%;
  }

  #section_4_text_container {
    opacity: 0;
    transform: translateY(80px);
    transition: opacity 0.2s, transform 0.2s;
  }
  #section_4_img_box_left {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.2s, transform 0.2s;
  }
  #section_4_mid_arrow_left,
  #section_4_mid_arrow_right {
    /* 위에서 아래로 숨김 */
    clip-path: inset(0 0 100% 0);
    opacity: 1;
    transition: clip-path 0.4s;
  }

  #section_4_mid_box {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.2s, transform 0.2s;
  }
  #section_4_img_box_right {
    opacity: 0;
    transform: translateY(-40px);
    transition: opacity 0.2s, transform 0.2s;
  }
}

/* 테블릿 스타일 */
@media (min-width: 767px) and (max-width: 1024px) {
  .section_4 {
    padding: 100px 0px;
    gap: 64px;
  }
  .section_4_text {
    margin-top: 0px;
    width: 100%;
  }
  .section_4_subtitle {
    font-size: 36px;
    line-height: 1.5;
    letter-spacing: -1.08px;
    word-break: keep-all;
    margin-top: 0px;
  }

  .section_4_img_container {
    width: 100%;
    padding: 0 122px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .section_4_img_box {
    display: flex;
    flex-direction: column;
    gap: 9px;
    z-index: 1;
  }

  .content_text_box {
    width: 100%;
    height: 54px;
    border-radius: 16px;

    /* 박스 속 글자 스타일 */
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: -0.48px;
  }
  .section_4_mid {
    display: flex;
    flex-direction: column; /* ← 세로 정렬 */
    align-items: center;
    justify-content: center;
    margin-top: 0px;
    height: auto; /* 필요시 조정 */
    gap: 40px; /* 요소 간 간격 */
  }

  .section_4_mid_img_text {
    padding: 0;
    gap: 24px;
  }
  .section_4_mid_img_text > img {
    width: 80px;
    height: 80px;
  }
  .section_4_arrow_pc {
    display: none;
  }
  .section_4_arrow_mo {
    display: block;
  }
  .section_4_img_box {
    width: 100%;
  }

  #section_4_text_container {
    opacity: 0;
    transform: translateY(80px);
    transition: opacity 0.2s, transform 0.2s;
  }
  #section_4_img_box_left {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.2s, transform 0.2s;
  }
  #section_4_mid_arrow_left,
  #section_4_mid_arrow_right {
    /* 위에서 아래로 숨김 */
    clip-path: inset(0 0 100% 0);
    opacity: 1;
    transition: clip-path 0.4s;
  }

  #section_4_mid_box {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.2s, transform 0.2s;
  }
  #section_4_img_box_right {
    opacity: 0;
    transform: translateY(-40px);
    transition: opacity 0.2s, transform 0.2s;
  }
}

@media (min-width: 1024px) and (max-width: 1500px) {
  .mobile-br {
    display: none;
  }
  .web-br {
    display: none;
  }
  .tab-br {
    display: inline;
  }
  .section_4 {
    padding: 100px 0px;
    gap: 64px;
  }
  .section_4_text {
    margin-top: 0px;
    width: 100%;
  }
  .section_4_subtitle {
    font-size: 36px;
    line-height: 1.5;
    letter-spacing: -1.08px;
    word-break: keep-all;
    margin-top: 0px;
  }

  .section_4_img_container {
    width: 100%;
    padding: 0 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .section_4_img_box {
    display: flex;
    flex-direction: column;
    gap: 9px;
    z-index: 1;
  }

  .content_text_box {
    width: 100%;
    height: 54px;
    border-radius: 16px;

    /* 박스 속 글자 스타일 */
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: -0.48px;
  }
  .section_4_mid {
    display: flex;
    flex-direction: column; /* ← 세로 정렬 */
    align-items: center;
    justify-content: center;
    margin-top: 0px;
    height: auto; /* 필요시 조정 */
    gap: 40px; /* 요소 간 간격 */
  }

  .section_4_mid_img_text {
    padding: 0;
    gap: 24px;
  }
  .section_4_mid_img_text > img {
    width: 80px;
    height: 80px;
  }
  .section_4_arrow_pc {
    display: none;
  }
  .section_4_arrow_mo {
    display: block;
  }
  .section_4_img_box {
    width: 100%;
  }
  #section_4_text_container {
    opacity: 0;
    transform: translateY(80px);
    transition: opacity 0.2s, transform 0.2s;
  }
  #section_4_img_box_left {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.2s, transform 0.2s;
  }
  #section_4_mid_arrow_left,
  #section_4_mid_arrow_right {
    /* 위에서 아래로 숨김 */
    clip-path: inset(0 0 100% 0);
    opacity: 1;
    transition: clip-path 0.4s;
  }

  #section_4_mid_box {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.2s, transform 0.2s;
  }
  #section_4_img_box_right {
    opacity: 0;
    transform: translateY(-40px);
    transition: opacity 0.2s, transform 0.2s;
  }
}
