.service {
  padding: 8rem 2.75rem;
}

.service__wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.service__image {
  width: 100%;
  aspect-ratio: 320 / 267;
  object-fit: cover;
  max-width: 450px;
  margin: 0 auto;
  display: block;
}

.section-title {
  margin-bottom: 2rem;
}

.service__link {
  width: 235px;
  height: 50px;
  background-color: #fff;
  border-radius: 25px;
  border: 1px solid #707070;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2rem auto 0;
  font-size: 1.6rem;
  font-weight: 500;
  display: none;
}

.service__subtitle {
  width: 100%;
  background-color: #2d4074;
  color: #fff;
  text-align: center;
  border-radius: 8px;
  font-size: 1.8rem;
  line-height: 2rem;
  padding: 7px 0;
  width: calc(100% - 27px);
  margin: 0 auto;
  min-height: 6rem;
  max-width: 1128px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.service__swiper {
  align-items: stretch;
  margin-top: 4rem;
}

@media (min-width: 600px) {
  .service__swiper .swiper-wrapper {
    display: grid;
    justify-content: center;
    margin: 0 auto;
    column-gap: 20px;
    row-gap: 40px;
  }

  .ecology__swiper .swiper-wrapper {
    grid-template-columns: 1fr 1fr;
    width: fit-content;
  }

  .solar__swiper .swiper-wrapper {
    grid-template-columns: repeat(auto-fit, 264px);
    width: 100%;
  }
}

.service__slide {
  width: min(264px, 70.4vw);
  height: auto;
}

.ecology__swiper .service__slide-image {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
}

.solar__swiper .service__slide-image {
  background-color: #fff;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.service__slide-title {
  font-size: 1.8rem;
  line-height: 2.6rem;
  text-align: center;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid #2d4074;
  margin: 2.6rem 0 2rem;
}

.service__content--solar {
  margin-top: 4rem;
}

.solar__swiper .service__slide:first-child .service__slide-image img {
  height: 120px;
  width: auto;
}

.solar__swiper .service__slide:nth-child(2) .service__slide-image img {
  height: 100px;
  width: auto;
}

.solar__swiper .service__slide:nth-child(3).service__slide-image img {
  height: 100px;
  width: auto;
}

.solar__swiper .service__slide:nth-child(4) .service__slide-image img {
  height: 100px;
  width: auto;
}

.solar__swiper .service__slide:nth-child(5) .service__slide-image img {
  height: 120px;
  width: auto;
}

.solar__swiper .service__slide:nth-child(6) .service__slide-image img {
  height: 100px;
  width: auto;
}

.solar__swiper .service__slide:last-child .service__slide-image img {
  width: 120px;
  height: auto;
}

.service__content--assist {
  margin-top: 8rem;
}

.assist-container {
  margin: 4rem auto 0;
  padding: 0 27.5px;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.assist__item-image {
  width: 100%;
  aspect-ratio: 320 / 213;
  object-fit: cover;
  max-width: 450px;
  display: block;
  margin: 0 auto;
}

.assist__item-title {
  margin: 1rem 0;
  font-size: 1.8rem;
  line-height: 2.6rem;
}

.service__article {
  margin: 2rem auto 0;
  padding: 0 2.75rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.service__article-title {
  font-size: 1.8rem;
  line-height: 2.6rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid #2d4074;
  margin-bottom: 1rem;
}

.service__article-text::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url(../images/common/check.png);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  top: 0.2rem;
}

.service-section--services {
  padding: 8rem 2.75rem;
  display: flex;
  flex-direction: column;
  gap: 8rem;
}

.service-section--services .body-copy {
  max-width: 600px;
  margin: 0 auto;
}

.service-section--services .section-title__en {
  line-height: 4rem;
}

.service-section--services .service {
  padding: 0;
}

.service-section__title {
  font-size: 2rem;
  line-height: 1.45;
  text-align: center;
  margin-bottom: 2rem;
}

.service-section--subsidy {
  padding: 0 2.75rem;
}

.service-section--soundproofing>.service__content:last-child {
  margin-top: 40px;
}

.subsidy__item {
  background-color: #fff;
  padding: 3rem 2rem;
  border-radius: 8px;
  margin: 2rem auto 0;
  width: 100%;
  max-width: 320px;
}

.subsidy__title {
  font-family: var(---sans-font);
  font-size: 2rem;
  line-height: 1.45;
  text-align: center;
  /* color: #000; */
}

.subsidy__text {
  font-family: var(---sans-font);
  font-size: 1.4rem;
  line-height: 2;
  margin-top: 2rem;
}

.subsidy__text--centered {
  text-align: center;
  font-size: 1.6rem;
  line-height: 1.5;
}

.service-section--subsidies {
  margin: 8rem 0;
  padding: 0 1.35rem;
}

.subsidy__div-title {
  width: 100%;
  height: 4rem;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  background-color: #2d4074;
  border-radius: 8px;
  margin: 0 auto 2rem;
  max-width: 1128px;
  width: 100%;
  font-size: 1.6rem;
  font-weight: 500;
}

.subsidies__wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 80px;
  justify-content: center;
  width: 100%;
}

.subsidy {
  width: 100%;
}

.subsidy__wrapper {
  width: 100%;
}

.subsidy__item {
  height: fit-content;
}

@media (min-width: 600px) {
  .subsidy__wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, 320px);
    justify-content: center;
    column-gap: 20px;
    row-gap: 30px;
  }
}

.flow {
  position: relative;
  margin-top: 4rem;
  padding: 13.4rem 0 8rem;
  background-color: #fff;
}

.flow::before {
  content: "";
  display: block;
  width: 100%;
  height: 80px;
  clip-path: polygon(0 0, 100% 0, 0 100%);
  background-image: url(../images/common/concrete.webp);
  background-size: 400px 400px;
  background-repeat: repeat;
  position: absolute;
  top: -0.5px;
  left: 0;
}

.flow__swiper {
  margin-top: 4rem;
  padding: 0 1.3rem;
  align-items: stretch;
}

@media (min-width: 650px) {
  .flow__swiper .swiper-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, 300px);
    justify-content: center;
    column-gap: 20px;
    row-gap: 30px;
  }
}

.flow__slide {
  padding: 1.2rem 2rem 2rem;
  border-radius: 16px;
  border: 3px solid #000;
  width: min(300px, 80vw);
  height: auto;
}

.flow__slide-image {
  height: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.flow__slide-image img {
  height: auto;
}

.flow__slide:first-child .flow__slide-image img {
  width: 60px;
}

.flow__slide:nth-child(2) .flow__slide-image img {
  width: 60px;
}

.flow__slide:nth-child(3) .flow__slide-image img {
  width: 100px;
}

.flow__slide:nth-child(4) .flow__slide-image img {
  width: 70px;
}

.flow__slide:nth-child(5) .flow__slide-image img {
  width: 70px;
}

.flow__slide:last-child .flow__slide-image img {
  width: 70px;
}

.flow__slide-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.flow__slide-title-num {
  font-family: "Oswald", sans-serif;
  font-size: 3.2rem;
  line-height: 4.7rem;
}

.flow__slide-title-txt {
  font-size: 2rem;
  line-height: 1.45;
}

@media (min-width: 768px) {
  .service {
    padding: 8rem 0;
    width: 100%;
  }

  .service__wrapper {
    flex-direction: row;
    max-width: none;
    gap: 40px;
    width: 100%;
    padding-right: min(125px, max(20px, calc(125px + 50vw - 600px)));
  }

  .service--reversed .service__wrapper {
    flex-direction: row-reverse;
    padding-right: 0;
    padding-left: min(125px, max(20px, calc(125px + 50vw - 600px)));
  }

  .section-title {
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1rem;
  }

  .section-title__en {
    font-size: clamp(6.4rem, 5.86vw, 8rem);
    line-height: 1.5;
    text-align: left;
  }

  @media (max-width: 1000px) {
    .section-title__en {
      font-size: 4.8rem;
    }
  }

  .service-section--services .section-title__en {
    line-height: 1.2;
  }

  .section-title__ja {}

  .service .service__link {
    background-color: #2d4074;
    color: #fff;
    margin: 4rem auto 0;
    transition: all 0.3s;
    margin-left: 0;
  }

  .service .service__link:hover {
    background-color: #fff;
    color: #000;
  }

  .service__image {
    width: 43.92vw;
    aspect-ratio: 600 / 500;
    max-height: 500px;
    object-fit: cover;
    max-width: none;
    margin: 0;
    display: block;
  }

  .service--series .service__image {
    object-position: center top;
  }

  .service .service__content {
    width: 48.34%;
    width: fit-content;
  }

  .service__subtitle {
    font-weight: 600;
  }

  @media (min-width: 1366px) {
    .service .service__content {
      min-width: 600px;
    }
  }

  .service .body-copy {
    max-width: 600px;
    margin: 0;
  }

  .service__subtitle {
    font-size: 2.4rem;
  }

  .ecology__swiper {
    margin-top: 6rem;
  }

  @media (min-width: 1000px) {
    .ecology__swiper .swiper-wrapper {
      grid-template-columns: 1fr 1fr 1fr 1fr;
      column-gap: 2.4rem;
      padding: 0 2rem;
      box-sizing: content-box;
      max-width: 1128px;
    }

    .ecology__swiper .service__slide {
      width: 100%;
    }
  }

  .service__content--solar {
    margin-top: 8rem;
  }

  .solar__swiper {
    margin-top: 8rem;
    max-width: 840.5px;
  }

  .solar__swiper .swiper-wrapper {
    column-gap: 23.5px;
    row-gap: 40px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
  }

  .service__content--assist {
    padding-bottom: 8rem;
  }

  .assist-container {
    margin: 8rem auto 0;
    padding: 0 27.5px;
    box-sizing: content-box;
    flex-direction: row;
    gap: 7.2rem;
    max-width: 984px;
  }

  .assist__item {
    width: calc(50% - 3.6rem);
  }

  .assist__item-image {
    width: 100%;
    aspect-ratio: 456 / 304;
    border-radius: 8px;
    object-fit: cover;
    max-width: 456px;
    display: block;
    margin: 0;
  }

  .assist__item-title {
    margin: 2rem 0 1rem;
    font-size: 2.4rem;
    line-height: 3.5rem;
  }

  .service--reversed {}

  .service--reversed .service__wrapper {
    margin-left: auto;
  }

  .service__article {
    margin: 8rem auto 0;
    padding: 0 2.75rem;
    box-sizing: content-box;
    gap: 4rem;
    max-width: 696.5px;
  }

  .service-section--soundproofing>.service__content:last-child {
    margin-top: 80px;
  }

  .service__article-title {
    font-size: 2rem;
    line-height: 1.45;
    padding-bottom: 0;
    margin-bottom: 2rem;
  }

  .service-section--services {
    padding: 16rem 0 12rem;
    gap: 8rem;
  }

  .service-section__title {
    font-size: 2.4rem;
    line-height: 3.5rem;
    margin-bottom: 4rem;
  }

  .service-section--subsidy .subsidy__item {
    background-color: #fff;
    margin: 4rem auto 0;
    width: 100%;
    max-width: 360px;
  }

  .service__link {
    background-color: #2d4074;
    color: #fff;
    transition: all 0.3s;
  }

  .service__link:hover {
    background-color: #fff;
    color: #000;
  }

  .service-section--subsidies {
    margin: 14.7rem 0 8rem;
    padding: 0 1.35rem;
    box-sizing: content-box;
  }

  .subsidy__div-title {
    margin-bottom: 4rem;
  }

  .subsidy__item {
    margin: 0;
    max-width: 360px;
  }

  .subsidy__wrapper {
    column-gap: 2.4rem;
    max-width: 1128px;
    margin: 0 auto;
    grid-template-columns: repeat(auto-fit, clamp(320px, 26.4vw, 360px));
  }

  .subsidy__item--span {
    grid-row: span 2;
  }

  .flow {
    margin-top: 16rem;
    padding: 12.1rem 0 11.9rem;
  }

  .flow .service-section__title {
    font-size: 3.2rem;
    line-height: 4.6rem;
  }

  .flow__swiper .swiper-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    width: 648px;
    margin: 0 auto;
    justify-content: center;
    column-gap: 20px;
    row-gap: 30px;
  }

  .flow__swiper {
    margin-top: 8rem;
    padding: 0 1.3rem;
    box-sizing: content-box;
    align-items: stretch;
  }

  .flow__slide {
    width: 552px;
    margin-left: auto;
    position: relative;
    display: flex;
    gap: 30px;
    align-items: center;
    padding: 27px 28px;
  }

  .flow__slide-title-num {
    position: absolute;
    left: -96px;
    top: 0;
    font-size: 8rem;
    line-height: 11.8rem;
  }

  .flow__slide:first-child .flow__slide-image img {
    min-width: 60px;
  }

  .flow__slide:nth-child(2) .flow__slide-image img {
    min-width: 60px;
  }

  .flow__slide:nth-child(3) .flow__slide-image img {
    min-width: 70px;
  }

  .flow__slide:nth-child(4) .flow__slide-image img {
    min-width: 70px;
  }

  .flow__slide:nth-child(5) .flow__slide-image img {
    min-width: 70px;
  }

  .flow__slide:last-child .flow__slide-image img {
    min-width: 70px;
  }

  .flow__slide-title-txt {
    font-size: 2rem;
    line-height: 1.45;
    margin-bottom: 1rem;
  }
}