@charset "UTF-8";

.service {
  padding: 0;
}

.service ul {
  display: flex;
  flex-wrap: wrap;
}

.service li {
  padding: 4em 0;
  width: 50%;
  background: var(--bgGray);
}

.service li:nth-of-type(4n),
.service li:nth-of-type(3),
.service li:nth-of-type(7) {
  background: var(--white);
}

.service .contents {
  max-width: 512px;
}

.service li:nth-of-type(odd) .contents {
  margin-right: 0;
  padding-right: 1em;
}

.service li:nth-of-type(even) .contents {
  margin-left: 0;
  padding-left: 1em;
}

#service2 h2 {
  display: block;
}

#service2 h2 span {
  font-size: 0.6em;
  margin-left: 0.3em;
}

.service figure {
  width: 15em;
  height: 10em;
  margin: 0 1em 1em 0;
  float: left;
}

.service li::after {
  content: "";
  display: block;
  clear: both;
}

.service img {
  width: 100%;
  object-fit: cover;
}

.other {
  background: url(../img/bg/bg_white.jpg.webp) no-repeat center !important;
  background-size: cover !important;
}

.no-webp .other {
  background: url(../img/bg/bg_white.jpg) !important;
}

.other li {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.other li:nth-of-type(1) {
  margin-bottom: 4em;
}

.other h2 {
  width: 100%;
}

.other p {
  margin-right: 2em;
  width: 60%;
}

.other a {
  display: block;
  width: calc(40% - 2em);
}

@media screen and (max-width: 1023px) {
  .service ul {
    display: block;
  }

  .service li {
    padding: 4em 1.5em;
    width: 100%;
  }

  .service li:nth-of-type(odd) {
    background: var(--bgGray);
  }

  .service li:nth-of-type(even) {
    background: var(--white);
  }

  .service .contents {
    max-width: 100%;
    padding: 0 !important;
  }

  #service2 h2 span {
    font-size: 0.8em;
  }

  .service figure {
    margin-bottom: 0;
  }

  .other {
    padding: 2em 1.5em;
  }

  .other li:nth-of-type(1) {
    margin-bottom: 2em;
  }
}

@media screen and (max-width: 767px) {
  .service li {
    padding: 4em 1em;
  }

  #service2 h2 span {
    display: block;
    margin: 0;
    line-height: 1.2;
  }

  .service figure {
    width: 100%;
    height: 12em;
    margin: 0 0 1em 0;
    float: none;
  }

  .service li::after {
    content: none;
  }

  .other h2 {
    order: 1;
  }

  .other a {
    order: 2;
    width: 100%;
    margin-bottom: 1em;
  }

  .other p {
    order: 3;
    margin: 0;
    width: 100%;
  }
}
