/** service */
.serviceArea {
  /* background-color: var(--white); */
  padding: 50px 0;
  margin-top: 70px 0 50px 0;
  margin-bottom: 50px;

  .serviceGrid {
    background-color: var(--white);
    color: var(--deepBlue);

    .serviceGridItem {
      /* すべての子要素が均等な幅になる */
      flex: 1;
      position: relative;
      padding: 20px;
      padding-top: 30px;
      padding-bottom: 80px;
      margin: 5px;

      h4 {
        font-size: 1.3rem;
      }

      background: linear-gradient(
        90deg,
        /* rgba(187, 210, 240, 1) 0%,
            rgba(187, 210, 240, 0.4) 100% */
          rgba(163, 196, 220, 1) 0%,
        rgba(163, 196, 220, 0.6) 100%
      );

      .comment {
        position: absolute;
        bottom: 30px;
        left: auto;
        background: #ffea00;
        color: var(--deepBlue);
        border-radius: 5px;
        padding: 10px;
        text-align: center;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
        /* アニメーション */
        opacity: 0;
        transition: 0.5s ease;
      }
    }

    .comment.visible {
      opacity: 1;
    }

    .serviceGridItem::before {
      position: absolute;
      top: 0px;
      left: 0px;
      background: var(--deepBlue);
      color: #fff;
      padding: 2px 10px;
      font-size: 2rem;
      font-weight: bold;
    }

    .service1::before {
      content: "01";
    }

    .service2::before {
      content: "02";
    }

    .service3::before {
      content: "03";
    }
    .service4::before {
      content: "04";
    }
  }
}

@media screen and (min-width: 768px) {
  .serviceArea {
    .inner {
      width: 90%;
      margin: 0 auto;

      .serviceGrid {
        display: flex;
        flex-wrap: wrap;
      }

      .serviceGridItem {
        padding-top: 50px;
        padding-bottom: 100px;
      }
    }
  }
}
