@charset "utf-8";

#service {
  position: relative;
  overflow: hidden;
  padding: 175px 0;
  background-color: #fafafa;
  --service-before-width: 31.25vw;
}

#service::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: var(--service-before-width);
  height: 100%;
  border-bottom-right-radius: clamp(96px, 9vw, 190px);
  background: #fff0bb;
}

#service .service-apply-home {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  column-gap: clamp(56px, 5vw, 92px);
  width: calc(100% - 40px);
  max-width: var(--mainsize);
  margin: 0 auto;
  box-sizing: border-box;
}

#service .service-apply-home__tit {
  flex: 0 0 auto;
  padding-top: clamp(0px, 10vh, 200px);
  margin-left: clamp(-180px, calc((100vw - var(--mainsize)) / -4), -18px);
}

#service .service-apply-home__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  padding: 9px 15px;
  border: 1px solid #f08a16;
  border-radius: 999px;
  color: #f08a16;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

#service .service-apply-home__tit h2 {
  margin: 28px 0 60px;
  color: #172033;
  font-size: clamp(40px, 2.8vw, 48px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.04em;
  word-break: keep-all;
}

#service .service-apply-home__break {
  display: block;
}

#service .service-apply-home__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 182px;
  height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  background: #f08a16;
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

#service .service-apply-home__more:hover,
#service .service-apply-home__more:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(240, 138, 22, 0.22);
  outline: none;
}

#service .service-apply-home__steps {
  display: flex;
  flex-direction: column;
  width: 65%;
  padding-top: clamp(0px, 10vh, 200px);
  row-gap: clamp(48px, 5.2vw, 100px);
  color: #6f7787;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
}

#service .service-apply-home__row {
  position: relative;
  display: grid;
  align-items: center;
  width: 100%;
  padding-right: 44px;
  box-sizing: border-box;
  column-gap: clamp(14px, 1vw, 24px);
  grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr) 22px minmax(0, 1fr);
}

#service .service-apply-home__step {
  width: auto;
  min-width: 0;
}

#service .service-apply-home__step-img {
  position: relative;
  max-width: 165px;
  margin: 0 auto 26px;
  overflow: visible;
}

#service .service-apply-home__step-img img {
  display: block;
  width: 122%;
  height: auto;
  margin-left: -11%;
  border-radius: 28px;
}

#service .service-apply-home__num {
  position: absolute;
  top: -10px;
  left: -10px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 10px;
  border-radius: 999px;
  background-color: #f08a16;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 10px 18px rgba(240, 138, 22, 0.24);
}

#service .service-apply-home__step p {
  margin: 0;
  color: #4f5969;
  font-size: 20px;
  line-height: 1.45;
  font-weight: 700;
  word-break: keep-all;
}

#service .service-apply-home__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  min-width: 22px;
}

#service .service-apply-home__arrow::before {
  content: "";
  display: block;
  width: 22px;
  height: 22px;
  border-top: 4px solid #f08a16;
  border-right: 4px solid #f08a16;
  transform: rotate(45deg);
}

#service .service-apply-home__row--has-next .service-apply-home__arrow--entry {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
}

@media (max-width: 1600px) {
  #service {
    padding: 130px 20px;
  }
}

@media (max-width: 1200px) {
  #service {
    --service-before-width: 23.25vw;
  }

  #service .service-apply-home__tit {
    margin-left: 0;
    padding-top: 0;
  }

  #service .service-apply-home__steps {
    width: 75%;
    padding-top: 0;
  }

  #service .service-apply-home__row {
    column-gap: 12px;
  }

  #service .service-apply-home__tit h2 {
    font-size: 36px;
  }

  #service .service-apply-home__step-img {
    max-width: 170px;
  }

  #service .service-apply-home__step p {
    font-size: 18px;
  }
}

@media (max-width: 992px) {
  #service {
    padding: 100px 20px 90px;
  }
}

@media (max-width: 768px) {
  #service {
    padding: 80px 20px;
  }

  #service::before {
    width: 100%;
    height: 240px;
    border-bottom-right-radius: 0;
  }

  #service .service-apply-home {
    display: flex;
    flex-direction: column;
    width: calc(100% - 40px);
  }

  #service .service-apply-home__tit {
    display: flex;
    width: 100%;
    margin-left: 0;
    margin-bottom: 80px;
    align-items: center;
    flex-direction: column;
    text-align: center;
  }

  #service .service-apply-home__check {
    padding: 5px 10px;
    font-size: 14px;
  }

  #service .service-apply-home__tit h2 {
    margin: 18px 0 26px;
    font-size: 34px;
  }

  #service .service-apply-home__break {
    display: inline-block;
    width: 0.25em;
  }

  #service .service-apply-home__more {
    min-width: 0;
    height: 42px;
    padding: 0 18px;
    font-size: 16px;
  }

  #service .service-apply-home__steps {
    width: 100%;
    row-gap: 1rem;
  }

  #service .service-apply-home__row {
    display: flex;
    flex-direction: column;
    padding-right: 0;
    row-gap: 1rem;
  }

  #service .service-apply-home__row--has-next .service-apply-home__arrow--entry {
    position: static;
    transform: none;
  }

  #service .service-apply-home__step-img {
    width: min(190px, 100%);
    margin-bottom: 20px;
  }

  #service .service-apply-home__step p {
    font-size: 18px;
  }

  #service .service-apply-home__arrow {
    display: block;
    width: 50px;
    height: 50px;
    margin: 0;
  }

  #service .service-apply-home__arrow::before {
    width: 20px;
    height: 20px;
    margin: 0 auto;
    border-top: 4px solid #f08a16;
    border-right: 4px solid #f08a16;
    transform: rotate(135deg);
  }
}

@media (max-width: 480px) {
  #service {
    padding: 62px 16px 56px;
  }

  #service::before {
    height: 180px;
  }

  #service .service-apply-home__tit {
    margin-bottom: 56px;
  }

  #service .service-apply-home__tit h2 {
    font-size: 28px;
  }

  #service .service-apply-home__step-img {
    width: min(170px, 100%);
  }

  #service .service-apply-home__step p {
    font-size: 16px;
  }
}
