/* main.css */

/* 비주얼 */
.visual, 
.foot__visual {
  position: relative;
  display: flex;
  height: 540px;
  background: #CFE5FF;
}

.visual .desc {
  max-width: 1110px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 32px;
  margin: 0 auto;
  padding-bottom: 100px;
}

.visual .desc.item1 {
  background: url(/img/visual_item1.png) bottom right no-repeat;
}

.visual .desc p,
.foot__visual p {
  font-size: var(--font-size-5xl);
  font-weight: var(--font-weight-bold);
  color: var(--secondary-gray-700);
}

.visual .desc p {
  max-width: 15ch;
  word-break: keep-all;
}

/* 메인섹션 */
main#main {
  display: flex;
  flex-direction: column;
  gap: 276px;
  margin: 138px auto 276px;
}

.main__section {
  max-width: 988px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 64px;
  margin: 0 auto;
  padding: 0;
  background: #FCFCFC;
}

.main__section.reverse {
  flex-direction: row-reverse;
  text-align: right;
}

.main__section .desc {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--secondary-gray-700);
}

.main__section .desc span {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bolder);
  color: var(--primary-100);
}

.main__section .desc h2 {
  max-width: 11ch;
  word-break: keep-all;
  font-size: var(--font-size-5xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-sm);
  margin-bottom: 12px;
}

.main__section .desc p {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-xs);
}

/* 푸터 비주얼 */
.foot__visual p {
  max-width: 1110px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
  margin: 0 auto;
  background: url(/img/fVisual.png) right bottom no-repeat;
}

/* 추후 삭제예정 */
.sub {
  min-height: calc(100vh - 230px);
  text-align: center;
  padding: 60px 0;
}




/* Tablet (768px 이상 1199px 이하) */
@media (max-width: 1199px) {
  .visual {
    height: 100vh;
    max-height: 770px;
  }

  .visual .desc {
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    padding: 11vh 0 0;
  }

  .visual .desc.item1 {
    background-position: center bottom;
    background-size: 100% auto;
  }

  .visual .desc p br,
  .main__section .desc strong br {
    display: none;
  }

  .visual .desc p {
    max-width: 100%;
  }

  main#main {
    gap: 52px;
    margin: 24px auto 56px;
  }

  .main__section {
    width: calc(100% - 48px);
    align-items: start;
    flex-direction: column;
    gap: 24px;
  }

  .main__section.reverse {
    flex-direction: column;
  }

  .main__section .desc {
    width: 100%;
    gap: 16px;
  }

  .main__section .desc span {
    font-weight: var(--font-weight-bold);
  }

  .main__section .desc h2 {
    max-width: 100%;
    font-size: var(--font-size-3xl);
    margin-bottom: 8px;
  }

  .main__section .desc h2 br {
    display: none;
  }

  .main__section .desc p {
    font-size: var(--font-size-lg);
  }

  .main__section img {
    width: 100%;
    border-radius: var(--border-radius-md);
  }

  .foot__visual {
    height: 930px;
  }

  .foot__visual p {
    text-align: center;
    line-height: var(--line-height-base);
    justify-content: start;
    margin-top: 28vh;
    background-size: 100% auto;
  }

}

/* Mobile (767px이하) */
@media (max-width: 767px) {
  .visual,
  .foot__visual {
    max-height: 540px;
  }

  .visual .desc {
    padding-top: 6vh;
  }

  .visual .desc.item1 {
    background-size: 120% auto;
    background-position: center bottom;
  }

  .visual .desc p {
    max-width: 100%;
    font-size: var(--font-size-3xl);
    line-height: var(--line-height-sm);
  }

  .visual .desc p br {
    display: inline-block;
  }

  main#main {
    gap: 40px;
    margin: 52px auto 83px;
  }

  .main__section {
    width: calc(100% - 30px);
    margin: 0 auto;
  }

  .main__section .desc {
    gap: 8px;
  }

  .main__section .desc span {
    font-size: var(--font-size-base);
    line-height: var(--line-height-md);
  }

  .main__section .desc h2 {
    font-size: var(--font-size-2xl);
  }

  .main__section .desc strong {
    font-size: var(--font-size-2xl);
  }

  .main__section .desc p {
    font-size: var(--font-size-base);
    line-height: var(--line-height-md);
  }

  .foot__visual p {
    font-size: var(--font-size-3xl);
    line-height: var(--line-height-sm);
    margin-top: 15vh;
    background-size: 100% auto;
    background-position: center bottom;
  }

}

