.skills {
  padding: 238px 0 322px;
  background-color:  #FAE96E;
  position: relative;
}
.skills::before {
  content: "";
  position: absolute;
  display: block;
  width: 100%;
  height: 100%;
  background-image: url(../img/skills_back.webp);
  background-position: center top;
  background-size: 100%;
  mix-blend-mode: multiply;
  top: 0;
  left: 0;
}
.skills::after {
  content: "";
  position: absolute;
  width: 100%;
  aspect-ratio: 1920 / 260;
  background-image: url(../img/skills_btmback.webp);
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: center bottom;
  bottom: -1px;
  left: 0;
}
@media (max-width: 480px) {
  .skills {
    padding: 100px 0 110px;
  }
}

.skills .skills-deco {
  position: absolute;
  max-width: 180px;
  width: 13%;
  aspect-ratio: 180 / 436;
  background-image: url(../img/skills_deco.webp);
  background-repeat: no-repeat;
  background-size: 100%;
  top: -12vw;
  left: 5%;
}

.skills__wrapper {
  max-width: 1167px;
  width: 95%;
  margin: 0 auto;
  position: relative;
}
@media (max-width: 480px) {
  .skills__wrapper {
    max-width: unset;
    width: 100%;
  }
}

.skills__head {
  max-width: 900px;
  width: 95%;
  margin: 0 auto 70px;
  position: relative;
  z-index: 1;
}
.skills__head::before {
  content: "SKILLS";
  position: absolute;
  width: fit-content;
  margin: 0 auto;
  left: 0;
  right: 0;
  top: -1.1em;
  font-size: 116px;
  font-weight: 900;
  color: #E3A72D;
  opacity: 0.32;
  z-index: -1;
}
@media (max-width: 834px) {
  .skills__head::before {
    font-size: clamp(90px, 55px + 7.34vw, 116px);
  }
}
@media (max-width: 480px) {
  .skills__head {
    max-width: 302px;
    margin-bottom: 27px;
  }

  .skills__head::before {
    font-size: 48px;
  }
}


.skills__head h2 {
  width: 100%;
  background-color: #FFF;
  border-radius: 50px;
  padding: 0.3em 0 0.45em;
  font-size: 40px;
  font-weight: bold;
  color: #00516D;
  text-align: center;
  margin: 0;
}
.skills__head h2::before {
  content: "";
  display: block;
  position: absolute;
  width: 72px;
  height: 31px;
  margin: 0 auto;
  background-color: #FFF;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  right: 0;
  left: 0;
  bottom: -30px;
}
@media (max-width: 480px) {
  .skills__head h2 {
    font-size: 24px;
  }

  .skills__head h2::before {
    width: 44px;
    height: 17px;
    bottom: -16px;
  }
}

.skills-swiper-wrapper.swiper-wrapper {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  counter-reset: number;
  height: fit-content;
  position: relative;
}
@media (max-width: 834px) {
  .skills-swiper-wrapper.swiper-wrapper {
    gap: 24px;
  }
}
@media (max-width: 480px) {
  .skills-swiper-wrapper.swiper-wrapper {
    flex-wrap: nowrap;
    gap: 0;
    padding-bottom: 32px;
  }
}

.skills .skills__box {
  max-width: 568px;
  width: 47%;
  background-color: #FFF;
  border: 2px solid #FF8C00;
  border-radius: 14px;
  padding: 25px 0 35px;
  counter-increment: number;
}
@media (max-width: 480px) {
  .skills__box {
    max-width: 205px;
    width: 100%;
    padding: 21px 0 16px;
  }
}

.skills__box .inner {
  width: 98%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.skills__box h3 {
  font-size: 32px;
  font-weight: 500;
  color: #FF8C00;
  text-decoration: underline solid 1px;
  text-underline-offset: 0.2em;
  margin: 0;
}
@media (max-width: 480px) {
  .skills__box h3 {
    font-size: 20px;
  }
}

.skills__box h3::before {
  content: "0"counter(number);
  display: inline-block;
  width: 1.7em;
  height: 1.7em;
  background-color: #FFF;
  border: 2px solid #FF8C00;
  border-radius: 50%;
  margin-right: 0.25em;
  font-size: 0.9em;
  text-align: center;
  line-height: 1.5em;
}

.skills__image {
  max-width: 290px;
  width: 95%;
  margin-bottom: 12px;
}
@media (max-width: 480px) {
  .skills__image {
    max-width: 174px;
  }
}

.skills__image img {
  width: 100%;
  height: auto;
}

.skills__box p {
  text-align: center;
  font-size: 20px;
  font-weight: 500;
  margin: 0;
}
@media (max-width: 480px) {
  .skills__box p {
    font-size: 12px;
  }
}

/* SP時スライダー設定 */
.skills .skills-pagination {
  display: none;
}
@media (max-width: 480px) {
  .skills .skills-pagination {
    display: block;
  }
}

.skills .skills-pagination.swiper-pagination {
  width: 112px;
  height: 12px;
  margin: 0 auto;
  background-color: #FFF;
  border-radius: 50px;
  top: unset;
  bottom: 0;
  left: 0;
  right: 0;
  overflow: hidden;
}
.skills .skills-pagination .swiper-pagination-progressbar-fill {
  background: #FF8C00;
  border-radius: 50px;
  height: 80%;
  margin: auto 0;
  top: 0;
  bottom: 0;
}