.service__wrapper {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.service__item {
  margin-top: 40px;
  overflow: hidden;
}

.service__item-title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 24px;
  max-width: 496px;
  margin: 0 auto;
}

.service__item-title--centered {
  justify-content: center;
  padding-left: 0;
  width: fit-content;
  margin: 0 auto;
}

.service__item-title--centered * {
  text-align: center;
}

.service__item-title-number {
  font-family: "Oswald", sans-serif;
  font-size: 32px;
  line-height: 1;
  color: #fff;
  font-weight: 500;
  width: 60px;
  height: 60px;
  background-color: #996c33;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
}

.service__item-title-wrap {
  display: flex;
  flex-direction: column;
}

.service__item-title-ja {
  font-family: "Shippori Mincho", serif;
  font-size: clamp(16px, 4.8vw, 18px);
  line-height: 24px;
  font-weight: 600;
  letter-spacing: 2px;
}

.service__item-title-en {
  font-family: "Poiret One", sans-serif;
  font-size: 32px;
  line-height: 1;
  font-weight: 400;
  color: #996c33;
}

.service__item:nth-child(5) .service__item-title-en {
  padding-right: 20px;
}

.service__item-content {
  width: 100%;
  margin-top: 14px;
  padding: 32px 17.5px 122px;
  background: linear-gradient(90deg, #75cfc3 0%, #effffd 100%);
}

.service__item:nth-child(2) .service__item-content {
  padding-bottom: 94px;
}

.service__item:nth-child(3) .service__item-content {
  padding-bottom: 55px;
}

.service__item:nth-child(4) .service__item-content {
  padding-bottom: 32px;
}

.service__item:nth-child(5) .service__item-content {
  padding-bottom: 32px;
}

.service__item-swiper-wrap {
  position: relative;
  max-width: 456px;
  margin: 0 auto;
}

.service__item-swiper {
  width: calc(100% - 8px);
}

.swiper-slide {
  padding: 16px;
}

.swiper-slide img {
  border-radius: 16px;
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.25);
}

.swiper-button-next,
.swiper-button-prev {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: calc(var(--swiper-navigation-size) / 44 * 27);
  height: var(--swiper-navigation-size);
  margin-top: 0;
  z-index: 10;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  background-image: url(../images/common/swiper-arrow.svg);
  background-size: 24px 24px;
  background-repeat: no-repeat;
  background-position: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.5);
}

.swiper-button-next {
  transform: translateY(-50%) scaleX(-1);
  right: 0px;
}

.swiper-button-prev {
  left: 0px;
}

.service__item-subtitle {
  font-size: 18px;
  line-height: 24px;
  font-family: "Shippori Mincho", sans-serif;
  text-align: center;
  margin: 4px 0 12px;
  letter-spacing: 3px;
  color: #000;
}

.service__item-text {
  font-size: 14px;
  line-height: 16px;
  padding: 0 20px;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}

.service__item-image {
  width: calc(100% - 40px);
  max-width: 456px;
  display: block;
  margin: 0 auto;
  aspect-ratio: 1;
  border-radius: 16px;
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.25);
}

.facilities {
  display: flex;
  flex-wrap: wrap;
  column-gap: 16px;
  row-gap: 24px;
  width: 100%;
  justify-content: center;
  max-width: 560px;
  margin: 0 auto;
}

.facility {
  width: calc(50% - 8px);
  max-width: 152px;
}

.facility__title {
  margin: 8px 0;
  font-size: 16px;
  line-height: 24px;
  font-family: "Shippori Mincho", sans-serif;
  text-align: center;
}

.facility__text {
  font-size: 16px;
  line-height: 24px;
}

.discount {
  padding: 65px 27.5px 32px;
}

.discount__wrapper {
  margin: 40px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.discount__item {
  padding: 32px 20px;
  width: 100%;
  max-width: 320px;
  border: 1px solid #c0c0c0;
}

.discount__item-title {
  font-size: 18px;
  line-height: 24px;
  font-weight: 600;
  font-family: "Shippori Mincho", sans-serif;
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: 3px;
}

.discount__item-text {
  font-size: 14px;
  line-height: 16px;
  width: fit-content;
  margin: 0 auto;
}

.notes .service__item-title-ja {
  margin-top: 8px;
}

.notes {
  padding: 40px 27.5px;
  background: linear-gradient(90deg, #75cfc3 0%, #effffd 100%);
}

.notes__wrapper {
  display: flex;
  margin: 32px auto 0;
  max-width: 680px;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.note {
  background-color: #fff;
  border-radius: 16px;
  padding: 32px 21px;
  width: 100%;
  max-width: 320px;
}

.note:last-child {
  padding: 32px 20px;
}

.note__title {
  font-size: 18px;
  line-height: 24px;
  font-family: "Shippori Mincho", sans-serif;
  text-align: center;
  margin-bottom: 16px;
}

.note__text {
  font-size: 14px;
  line-height: 16px;
}

.flow {
  margin: 80px 0 0 0;
}

.flow__swiper {
  margin-top: 40px;
  padding-bottom: 10px;
  /* padding-left: min(69px, calc(69px + 50vw - 188.5px)); */
}

.flow__slide {
  width: 240px;
  min-height: 176px;
  display: flex;
  flex-direction: column;
}

.flow__slide-title {
  font-size: 20px;
  line-height: 24px;
  font-weight: 600;
  font-family: "Shippori Mincho", sans-serif;
}

.flow__slide-text {
  font-size: 16px;
  line-height: 24px;
  margin-top: 16px;
}

.swiper-slide small {
  font-size: 12px;
  line-height: 16px;
  margin: 4px 0;
  display: block;
}

.flow__slide-image {
  display: block;
  margin: auto auto 0;
  width: 165px;
  height: 110px;
  box-shadow: none !important;
}

.flow__slide-image--small {
  width: 150px;
  height: 100px;
}

.flow__slide-link {
  width: 100%;
  height: 48px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  color: #fff;
  background-color: #996c33;
  border-radius: 8px;
  margin-top: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (min-width: 768px) {
  .service__wrapper {
    gap: 64px;
  }

  .service__item {
    /* margin-top: 100px; */
    padding-top: 100px;
    position: sticky;
    top: 0;
  }

  .service__item::before {
    content: "";
    display: block;
    height: 150px;
    width: 100%;
    top: 20px;
    position: absolute;
    background: linear-gradient(to bottom,
        rgba(255, 255, 255, 0) 0%,
        /* 上：透明 */
        rgba(255, 255, 255, 1) 50%,
        /* 中央：白 */
        rgba(255, 255, 255, 1) 100%
        /* 下：白 */
      );
  }

  .service__item:not(:nth-child(6)) .service__item-title-wrap,
  .service__item:not(:nth-child(7)) .service__item-title-wrap {
    flex-direction: column-reverse;
    padding-top: 10px;
  }

  @media (min-width: 954px) {

    .service__item:not(:nth-child(6)) .service__item-title-wrap,
    .service__item:not(:nth-child(7)) .service__item-title-wrap {
      flex-direction: row-reverse;
      align-items: self-end;
      gap: 49px;
      margin-top: 4px;
      padding-top: 0;
    }

    .service__item:nth-child(2) .service__item-title-wrap {
      gap: 104px;
    }
  }

  .service__item-title-en {
    font-size: 64px;
  }

  .service__item-title-ja {
    font-size: 24px;
    line-height: 36px;
  }

  .service__item-title {
    padding-left: 0;
    max-width: none;
    gap: 24px;
    position: relative;
    width: 100%;
    max-width: 1032px;
    margin: 0 auto;
    align-items: flex-start;
  }

  .service__item:nth-child(-n + 5) .service__item-title {
    height: 152px;
  }

  @media (max-width: 1152px) {
    .service__item:nth-child(-n + 5) .service__item-title {
      margin-left: 60px;
    }
  }

  .service__item-title-number {
    font-size: 64px;
    width: 152px;
    min-width: 152px;
    height: 152px;
  }

  .service__item-content {
    width: 100%;
    margin-top: -76px;
    padding: 88px max(30px, calc(167px + 50vw - 683px)) 88px max(30px, calc(167px + 50vw - 683px));
    display: flex;
    gap: clamp(40px, calc(80px + 50vw - 500px), 80px);
    align-items: center;
  }

  .service__item:first-child .service__item-content,
  .service__item:nth-child(2) .service__item-content {
    padding: 72px max(30px, calc(167px + 50vw - 683px)) 88px max(30px, calc(135px + 50vw - 683px));
  }

  .service__item:nth-child(4) .service__item-content,
  .service__item:nth-child(5) .service__item-content {
    padding-left: max(30px, calc(167px + 50vw - 683px));
  }

  .service__item-swiper-wrap {
    max-width: 480px;
    margin: 0;
  }

  .service__item-subtitle {
    font-size: 20px;
    line-height: 32px;
    text-align: left;
    margin: 32px 0;
  }

  .service__item-text {
    font-size: 16px;
    line-height: 2;
    padding: 0;
  }

  .swiper-button-next,
  .swiper-button-prev {
    width: 54px;
    height: 54px;
  }

  .service__item-swiper {
    width: calc(100% - 32px);
  }

  @media (max-width: 930px) {
    .service__item-swiper {
      width: calc(45vw + 32px);
    }
  }

  .service__item-image {
    width: calc(100% - 40px);
    max-width: 416px;
    display: block;
    margin: 0;
    aspect-ratio: 1;
    border-radius: 16px;
    box-shadow: 0 0 16px rgba(0, 0, 0, 0.25);
  }

  .service__item:nth-child(3) .service__item-content {
    gap: max(40px, calc(112px + 50vw - 500px));
    gap: clamp(40px, calc(112px + 50vw - 500px), 112px);
  }

  .facilities {
    display: flex;
    flex-wrap: wrap;
    column-gap: 24px;
    row-gap: 8px;
    width: 100%;
    justify-content: center;
    max-width: 680px;
    margin: 0 auto;
  }

  .service__item:nth-child(5) .facilities {
    max-width: 856px;
    row-gap: 32px;
  }

  .service__item:nth-child(5) .facility:nth-child(-n + 4) {
    position: relative;
    left: 10px;
  }

  .service__item:nth-child(5) .facility:nth-child(5) {
    width: 1px;
  }

  .service__item:nth-child(5) .service__item-subtitle {
    font-size: 24px;
    line-height: 1.5;
    text-align: center;
    margin: 0 auto 16px;
    display: block !important;
  }

  .service__item:nth-child(5) .service__item-content {
    display: block;
  }

  .discount {
    padding: clamp(100px, calc(342px + 50vw - 683px), 342px) 27.5px clamp(100px, calc(157px + 50vw - 500px), 157px);
  }

  .discount__wrapper {
    margin: 64px auto 0;
    gap: 24px;
  }

  .discount__item {
    padding: 31px 32px;
    width: 100%;
    max-width: 416px;
  }

  .discount__item-title {
    font-size: 20px;
    line-height: 32px;
    margin-bottom: 24px;
  }

  .discount__item-text {
    font-size: 16px;
    line-height: 2;
    width: fit-content;
    margin: 0 auto;
  }

  .notes {
    padding: 120px 27.5px 138px;
  }

  .discount .service__item-title-ja,
  .notes .service__item-title-ja,
  .flow .service__item-title-ja {
    margin-top: 32px;
  }

  .notes__wrapper {
    display: flex;
    margin: 66px auto 0;
    max-width: 856px;
  }

  .note__title {
    font-size: 20px;
    line-height: 32px;
    margin-bottom: 24px;
  }

  .note__text {
    font-size: 16px;
    line-height: 2;
  }

  .note {
    padding: 32px !important;
    max-width: 416px;
    min-height: 312px;
  }

  .flow__swiper {
    margin-top: 64px;
    padding-bottom: 120px;
    padding-left: max(30px, calc(167px + 50vw - 683px));
  }

  .flow__slide {
    position: relative;
  }

  .flow__slide::after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    right: -24px;
    width: 1px;
    height: 100%;
    background-color: #c0c0c0;
  }

  @media (max-width: 930px) {
    .service__item-image {
      width: 45vw;
    }
  }
}