.cooperation {
  background: var(--white);
  padding-top: var(--sp);
  position: relative;
}

.cooperation:before {
  content: "";
  display: block;
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 105vw;
  height: 50rem;
  background: linear-gradient(0deg, var(--secondary) 0%, transparent 100%);
  transform: translateX(-50%);
}

.cooperation__container {
  position: relative;
}

.cooperation__title {
  margin-bottom: 8rem;
  text-align: center;
}

.cooperation__rows {
  display: flex;
  flex-direction: column;
  gap: 8rem;
  counter-reset: rowText;
  margin-bottom: 8rem;
}

.cooperation .row {
  display: flex;
}

.cooperation .row:nth-child(even) {
  justify-content: flex-end;
}

.cooperation .row__inner {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.cooperation .row__text {
  background: var(--white);
  position: relative;
  counter-increment: rowText;
  padding: 8.6rem 3rem 3rem 3rem;
  border: 0.1rem solid var(--secondary);
  min-height: 40rem;
  width: 29.8rem;
  display: flex;
  flex-direction: column;
}

.cooperation .row__text:last-child {
  align-self: end;
}

.cooperation .row__text:before {
  content: "";
  display: block;
  background: center/cover no-repeat url("../../img/icon-checked-round.svg");
  aspect-ratio: 1/1;
  width: 3.6rem;
  position: absolute;
  top: 3rem;
  left: 3rem;
}

.cooperation .row__text:after {
  font: 200 20rem/0.7 var(--heading-font-family);
  content: counter(rowText, decimal-leading-zero);
  letter-spacing: -0.03em;
  margin-top: auto;
  display: block;
}

.cooperation .row__text > * {
  margin: 1rem 0;
}

.cooperation .row__text > *:first-child {
  margin-top: 0;
}

.cooperation .row__text > *:last-child {
  margin-bottom: 0;
}

.cooperation .row__text h1,
.cooperation .row__text h2,
.cooperation .row__text h3,
.cooperation .row__text h4,
.cooperation .row__text h5,
.cooperation .row__text h6 {
  font: 400 var(--h4)/1.1 var(--heading-font-family);
  letter-spacing: -0.03em;
}

.cooperation .row__image {
  aspect-ratio: 455/600;
  width: 45.5rem;
}

.cooperation__image {
  width: 100%;
  aspect-ratio: 1240/600;
}

@media (max-width: 1260px) {
  .cooperation__title {
    margin-bottom: 50px;
  }

  .cooperation__rows {
    gap: 50px;
    margin-bottom: 50px;
  }

  .cooperation .row:nth-child(even) {
    justify-content: space-between;
  }

  .cooperation .row__inner {
    width: 100%;
    justify-content: space-between;
    gap: 0;
  }

  .cooperation .row__text {
    width: 220px;
    padding: 70px 20px 45px;
    font-size: 1.6rem;
    line-height: 1.4;
    font-weight: 300;
    min-height: 350px;
  }

  .cooperation .row__text:before {
    width: 30px;
    top: 20px;
    left: 20px;
  }

  .cooperation .row__text:after {
    font-size: 140px;
  }

  .cooperation .row__text h1,
  .cooperation .row__text h2,
  .cooperation .row__text h3,
  .cooperation .row__text h4,
  .cooperation .row__text h5,
  .cooperation .row__text h6 {
    font-family: var(--heading-font-family);
    font-weight: 400;
    font-size: var(--h5);
    line-height: 1.1;
    letter-spacing: -0.03em;
  }

  .cooperation .row__image {
    aspect-ratio: 260/450;
    width: 260px;
  }
}

@media (max-width: 760px) {
  .cooperation__rows {
    gap: 30px;
    margin-bottom: 30px;
  }

  .cooperation .row:first-child .row__image {
    display: none;
  }

  .cooperation .row__inner {
    gap: 30px 8px;
    flex-wrap: wrap;
  }

  .cooperation .row__text {
    width: calc(50% - 4px);
    min-height: 300px;
    padding: 54px 10px 25px;
    order: 2;
  }

  .cooperation .row__text:before {
    width: 24px;
    top: 10px;
    left: 10px;
  }

  .cooperation .row__text:after {
    font-size: 80px;
  }

  .cooperation .row__image {
    aspect-ratio: 340/450;
    width: 100%;
    order: 1;
  }

  .cooperation__image {
    aspect-ratio: 340/450;
  }
}