.section-hero {
  position: relative;
  display: flex;
  min-height: 600px;

  @media (max-width: 768px) {
    min-height: 400px;
  }

  .hero__bg {
    width: 50%;
    object-fit: cover;
  }

  .hero__bg-left,
  .hero__bg-right {
    opacity: 0;
    transform: scale(0);
    transform-origin: center center;
  }

  .catch-pharase {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scaleX(0);
    background: rgba(0, 0, 0, 0.7);
    padding: 40px 80px;
    color: #fff;
    font-size: 48px;
    font-weight: 900;
    line-height: 2em;
    text-align: center;
    opacity: 0;
    transform-origin: center center;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-width: 600px;

    @media (max-width: 768px) {
      padding: 0;
      font-size: 36px;
      min-width: unset;
      word-break: keep-all;
      width: 100%;
      background: rgba(0, 0, 0, 0.4);
    }

    .brand,
    .company,
    .subject {
      transform: scale(4);
      opacity: 0;
    }
  }
}

.section-brand {
  .brand-container:last-child {
    margin-top: 80px;
  }
  .brand-logo {
    margin-bottom: 30px;
    max-width: 250px;

    @media (max-width: 768px) {
      max-width: 160px;
      margin-bottom: 10px;
    }
  }

  .brand-summary {
    margin-bottom: 30px;
  }

  .swiper-slide {
    .item-img {
      width: 100%;
    }

    .item-title {
      font-weight: 600;
      font-size: 18px;
    }

    .item-subtitle {
      display: inline-block;
      color: #999;
    }

    .item-info {
      margin-top: 8px;
    }
  }

  .swiper-pagination-gzox {
    text-align: center;
    margin-top: 20px;

    .swiper-pagination-bullet {
      width: 30px !important;
      height: 4px !important;
      border-radius: 0;
    }
    .swiper-pagination-bullet-active {
      background-color: red;
    }
  }

  .velogueSwiper {
    .swiper-wrapper {
      @media (max-width: 768px) {
        flex-direction: column;
        gap: 30px;
      }
    }

    .swiper-slide {
      @media (max-width: 768px) {
        width: 100% !important;
      }
    }
    .item-img {
      aspect-ratio: 518 / 342;
      object-fit: cover;
    }
  }
}

.section-caution {
  background-image: url(../images/caution.png);
  background-size: cover;
  background-color: rgba(0, 0, 0, 0.5);
  background-blend-mode: darken;
  color: #fff;
  line-height: 180%;
  min-height: 568px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;

  @media (max-width: 768px) {
    font-size: 16px;
  }

  .accent {
    color: #e6180c;
    font-size: 20px;
  }
}

.section-merit {
  .merit-list {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 84px;
    gap: 40px;

    @media (max-width: 768px) {
      flex-wrap: wrap;
      justify-content: center;
    }

    .item-img {
      margin-bottom: 20px;
    }

    .merit-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;

      @media (max-width: 768px) {
        width: 40%;
      }
    }

    .item-title {
      font-weight: 600;
      font-size: 20px;
    }
  }
}

.section-flow {
  background-color: #efefef;
  .flow-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 20px;

    @media (max-width: 768px) {
      grid-template-columns: repeat(1, 1fr);
    }

    .flow-item {
      display: grid;
      grid-template-rows: subgrid;
      grid-row: span 3;
      padding: 60px 32px 32px;
      background-color: #fff;
      border-radius: 12px;
      counter-increment: count;
      position: relative;
      gap: 0;

      @media (max-width: 768px) {
        padding: 60px 24px 32px;
      }
    }

    .flow-item::before {
      content: counter(count);
      position: absolute;
      top: 0;
      left: 50%;
      transform: translateX(-50%);
      border-radius: 0 0 12px 12px;
      background-color: #e6180c;
      color: #fff;
      width: 120px;
      height: 40px;
      display: inline-flex;
      justify-content: center;
      align-items: center;
      font-weight: 900;
      font-size: 20;
    }

    .flow-item:last-child {
      position: relative;
      border-radius: 12px;

      a {
        border-radius: 12px;
        position: absolute;
        inset: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        color: #fff;
        font-weight: 600;
        font-size: 40px;
        text-decoration: none;
        background-color: #e6180c;

        @media (max-width: 768px) {
          font-size: 28px;
        }
      }

      a:hover {
        background-color: #ea2937;
      }
    }

    .flow-item:last-child::before {
      content: '';
      background-color: transparent;
      top: 0;
      left: 0;
      border-radius: unset;
    }

    .item-title {
      font-size: 24px;
      font-weight: 600;
      text-align: center;
      margin-bottom: 20px;
    }

    .item-subtitle {
      font-size: 18px;
      line-height: 1.6em;
      text-align: center;
    }

    .item-content {
      line-height: 1.6em;
      color: #626262;
    }
  }
}

.section-about-program {
  .about-program {
    margin-bottom: 40px;
  }

  .program-images {
    display: flex;
    justify-content: space-between;
    gap: 16px;

    @media (max-width: 768px) {
      flex-direction: column;
    }

    img {
      width: 250px;

      @media (max-width: 768px) {
        width: 100%;
      }
    }
  }

  .about-partner {
    padding: 60px 20px;
    margin-top: 40px;
    background-color: #f5f5f5;

    h3 {
      font-size: 24px;
      font-weight: 600;
      text-align: center;
      margin-bottom: 40px;
    }

    .partner-condition {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;

      @media (max-width: 768px) {
        align-items: flex-start;
      }
    }
  }
}

.section-mangoseed {
  background-color: #ededed;
  .section-title {
    margin-bottom: 0;
  }

  .mangoseed-hero {
    width: 100%;
  }

  .about-mangoseed {
    column-count: 2;
    padding: 30px 0;
    gap: 40px;
    text-wrap: pretty;
    text-align: justify;
    hyphens: auto;
    column-rule: 1px solid #ccc; /* 컬럼 사이 줄 추가 */

    @media (max-width: 768px) {
      column-count: 1;
    }
  }
}

.section-faq {
  background-color: #efefef;
  .section-container {
    padding-inline: 80px;

    @media (max-width: 768px) {
      padding-inline: 20px;
    }
  }

  .faq-list {
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    background-color: #fff;

    @media (max-width: 768px) {
      padding: 20px 8px;
    }
  }

  .faq-item {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid #bebebe;
    font-size: 20px;
    padding: 24px 0;
    text-wrap: pretty;
    text-align: justify;

    @media (max-width: 768px) {
      font-size: 16px;
      padding: 24px 12px;
    }

    .faq-q {
      font-weight: 600;
      margin-bottom: 8px;
    }
  }

  .faq-item:last-child {
    border-bottom: 0;
  }
}

.section-contact {
  background-color: #409055;
  .section-title {
    color: #fff;
  }

  .section-container {
    padding-inline: 200px;

    @media (max-width: 768px) {
      padding-inline: 20px;
    }
  }

  .form-wrapper {
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    padding: 50px;
    font-size: 18px;

    @media (max-width: 768px) {
      font-size: 16px;
      padding: 50px 20px;
    }
  }
  #wpcf7-f12-o1 {
    .message {
      margin-bottom: 30px;
    }

    .preference:not(:last-child) {
      margin-bottom: 24px;
    }

    label {
      font-weight: 600;
      margin-bottom: 4px;
    }

    input[type='text'],
    input[type='email'],
    textarea {
      padding: 8px;
      width: 100%;
    }

    .wpcf7-list-item {
      margin-left: 0 !important;
      margin-right: 1em;
    }

    .about-privacy {
      background-color: #efefef;
      padding: 20px;
    }

    .about-privacy li {
      display: flex;
    }

    .about-privacy li::before {
      content: '-';
      margin-right: 0.5em;
    }

    .submit {
      text-align: center;
    }

    .wpcf7-submit {
      font-size: 20px;
      font-weight: 600;
      padding: 12px 32px;
      min-width: 300px;
      margin: 0 auto;
      border-radius: 30px;
      border: 0;
      color: #fff;
      background-color: #215fff;
      cursor: pointer;

      @media (max-width: 768px) {
        min-width: 100%;
      }
    }

    .wpcf7-submit:hover {
      background-color: #1050f1;
    }
  }
}

.footer {
  background-color: #000;
  .section-container {
    padding: 12px;
    color: #fff;
    text-align: center;
  }
}

.wpcf7-not-valid-tip {
  display: block !important;
  color: red;
  font-size: 14px;
  margin-top: 8px;
}

.link-to-company {
  text-align: right;

  a {
    color: #f49f16;
  }
}
