/* =========================
message
========================= */

.service-message {
  padding: 90px 20px;
  text-align: center;
  background-color: #fff;
}

.service-message p {
  font-size: 17px;
  line-height: 2.1;
  font-weight: 700;
}

/* =========================
service detail
========================= */

.service-detail {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 420px;
  overflow: hidden;
}

.service-detail::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.38);
  z-index: 1;
}

.service-detail::after {
  content: "";
  position: absolute;
  top: 0;
  width: 43%;
  height: 100%;
  background: #e8e4dc;
  z-index: 0;
}

/* -------------------------
システム事業
------------------------- */

.service-detail.system {
  background-image: url(../img/service_system.avif);
  background-size: 110% auto;
  background-position: 500% center;
  background-repeat: no-repeat;
  justify-content: flex-end;
  padding-right: 18%;
  background-attachment: fixed;
}

.service-detail.system::after {
  right: 0;
}

/* -------------------------
エンタメ事業
------------------------- */

.service-detail.entertainment {
  background-image: url("../img/mobile_phone.avif");
  background-size: 110% auto;
  background-position: -350% center;
  justify-content: flex-start;
  padding-left: 18%;
  background-attachment: fixed;
}

.service-detail.entertainment::after {
  left: 0;
}

/* -------------------------
カード
------------------------- */

.service-detail-box {
  position: relative;
  z-index: 2;
  width: 567px;
  padding: 58px 50px;
  background: #fff;

  opacity: 0;
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

/* ふわっと表示 */

.system .service-detail-box {
  transform: translateX(60px);
}

.entertainment .service-detail-box {
  transform: translateX(-60px);
}

.service-detail-box.show {
  opacity: 1;
  transform: translateX(0);
}

/* -------------------------
テキスト
------------------------- */

.service-detail-box h2 {
  margin-bottom: 12px;
  font-size: 26px;
  color: #757575;
  font-weight: 700;
}

.service-detail-box p {
  font-size: 15px;
  line-height: 1.9;
  color: #757575;
  font-weight: 700;
}

.service-detail + .service-detail {
  margin-top: 80px;
}

/* =========================
SP
========================= */

@media (max-width: 430px) {
  .service-hero {
    height: 360px;
    margin-top: 60px;
    padding-top: 50px;
    background-attachment: scroll;
  }

  .service-message {
    padding: 40px 24px;
  }

  .service-message p {
    font-size: 13px;
    line-height: 2;
    text-align: left;
  }

  .service-detail {
    height: auto;
    padding: 0;
    display: block;
    background-image: none;
    background-color: #e8e4dc;
    overflow: hidden;
  }

  .service-detail::after {
    display: none;
  }

  .service-detail::before {
    position: static;
    display: block;
    width: 100%;
    height: 210px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
  }

  .service-detail.system {
    padding-right: 0;
  }

  .service-detail.entertainment {
    background-image: url(../img/mobile_phone.avif);
    justify-content: flex-start;
    padding-left: 0%;
  }

  .service-detail.system::before {
    background-image:
      linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.74),
        rgba(255, 255, 255, 0.12)
      ),
      url("../img/hands_on_computer_keyboard.avif");
    background-attachment: scroll;
  }

  .service-detail.entertainment::before {
    background-image:
      linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.74),
        rgba(255, 255, 255, 0.12)
      ),
      url("../img/mobile_phone.avif");
    background-attachment: scroll;
    background-size: cover;
    background-position: center;
  }

  .service-detail-box {
    width: 100%;
    padding: 36px 26px 58px;
    background: #e8e4dc;
  }

  .system .service-detail-box,
  .entertainment .service-detail-box {
    top: auto;
    right: auto;
    left: auto;
  }

  .service-detail-box h2 {
    font-size: 22px;
    margin-bottom: 18px;
  }

  .service-detail-box p {
    font-size: 14px;
    line-height: 1.75;
  }

  .service-detail + .service-detail {
    margin: 0;
  }

  .service-detail-box,
  .system .service-detail-box,
  .entertainment .service-detail-box {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
