@charset "UTF-8";

/* ===== 事業内容（表示演出なし） ===== */

/* ===== リード文 ===== */

.service-lead {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

@media (min-width: 1024px) {
  .service-lead {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }

  .service-lead p {
    width: var(--grid8);
  }
}

/* ===== 4事業（左右交互の2列） ===== */

.service-row {
  display: flex;
  flex-direction: column;
  gap: 6rem;
  padding: 9rem 0 6rem;
}

/* 写真2枚を大きく重ねる。手前が1枚目、奥（右上）が2枚目 */
.service-row__photos {
  position: relative;
  height: 0;
  padding-bottom: calc(51% + 6rem);
}

.service-row__photo {
  position: absolute;
  aspect-ratio: 4 / 3;
  border-radius: 1rem;
  object-fit: cover;
}

.service-row__photo.-first {
  bottom: 0;
  left: 0;
  z-index: 2;
  width: 68%;
}

.service-row__photo.-second {
  top: 0;
  right: 0;
  z-index: 1;
  width: 60%;
}

.service-row__title {
  position: relative;
  margin-bottom: 2.6em;
  padding-left: 0.7em;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.4;
}

/* 左の縦棒 */
.service-row__title::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 7px;
  height: 4rem;
  background: var(--color-main);
  transform: translateY(-50%);
}

/* 見出しの下の横線 */
.service-row__title::after {
  content: "";
  position: absolute;
  top: 125%;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--color-main);
}

.service-row__en {
  position: absolute;
  top: 140%;
  left: 1.6em;
  color: var(--color-accent);
  font-family: var(--font-num);
  font-size: 50%;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.25em;
  white-space: nowrap;
}

.service-row__num {
  position: absolute;
  right: 0;
  bottom: 0em;
  z-index: -1;
  color: rgba(0, 169, 95, 0.3);
  font-family: var(--font-num);
  font-size: 300%;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.06em;
}

.service-row__catch,
.service-row__text,
.service-row__scope {
  margin-left: 3.2%;
}

.service-row__catch {
  margin-bottom: 0.5em;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.6;
}

.service-row__scope {
  margin-top: 1.5rem;
  color: var(--color-txt3);
  font-size: 1.3rem;
  line-height: 1.6;
}

.service-row__body {
  position: relative;
  isolation: isolate;
}

@media (min-width: 1024px) {
  .service-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0;
  }

  .service-row:nth-child(even) {
    flex-direction: row-reverse;
  }

  .service-row__photos {
    width: 50%;
    height: 32.9vw;
    padding-bottom: 0;
    border-radius: 1rem;
    background: var(--color-bg3);
  }

  .service-row__photo.-first {
    top: 10rem;
    bottom: auto;
    left: 0;
    width: 64%;
  }

  .service-row__photo.-second {
    top: -6.75rem;
    right: 0;
    width: 58%;
  }

  .service-row__body {
    width: 45%;
  }

  .service-row:nth-child(even) .service-row__body {
    padding-left: 9%;
    box-sizing: content-box;
    width: 36%;
  }

  .service-row__title {
    font-size: 2.7rem;
  }

  .service-row__title::before {
    height: 5rem;
  }

  .service-row:nth-child(even) .service-row__title::after {
    left: -50%;
    width: 150%;
  }

  .service-row__num {
    right: auto;
    bottom: -0.1em;
    left: 60%;
    font-size: 450%;
  }

  .service-row:nth-child(even) .service-row__num {
    right: -0.1em;
    left: auto;
  }

  .service-row__catch {
    font-size: 1.9rem;
  }

  .service-row__scope {
    font-size: 1.4rem;
  }
}
