/***********/
.text-center {
  text-align: center;
}

.grid {
  display: grid;
}

.d-inline-block {
  display: inline-block;
}

#Subheader {
  padding: 0;
  .container {
    padding: 0;
  }
  .Subheader__wrapper {
    display: none;
  }
}

.section {
  padding-top: 60px;
  padding-bottom: 60px;
}

.section__header {
  margin-bottom: 4rem;
}

.section__title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 2rem;
  color: #090037;
  line-height: 1.4;
}
.section__lead {
  padding-right: 24px;
  padding-left: 24px;
  font-size: 1.5rem;
  line-height: 1.4;
}

#intro {
  .container {
    padding-right: 16px;
    padding-left: 16px;
  }
  .container::after {
    content: none;
  }
  .lead {
    margin-bottom: 60px;
    color: #596573;
    font-size: 1.25rem;
    line-height: 1.4;
  }
}

.intro__title {
  display: inline-flex;
  flex-direction: column;
}
.intro__title small {
  font-size: 1rem;
  font-weight: normal;
  color: #090037;
}

.intro__text {
  color: #090037;
}

/* 4つのサービス */
#service {
  padding: 0 16px;
  .container {
    grid-template-columns: 30% auto;
    gap: 32px;
  }
  .container::after {
    content: none;
  }
}
.service__wrapper {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
  margin-bottom: 40px;
}
.service__title {
  color: #596573;
  font-size: 1.5rem;
  font-weight: normal;
}

.service__figure {
  max-width: 150px;
  margin: auto;
  grid-column: 1 /2;
}

.service__content {
  grid-column: 2/-1;
}
.service__text {
  color: #090037;
}

/* システム開発 */
#system-development {
  padding-right: 8px;
  padding-left: 8px;
  .container {
    max-width: 1920px;
    margin: auto;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 16px;
  }
  .container::after {
    content: none;
  }
}

.system-development__figure {
  width: 50%;
  margin: auto;
}

.system-development__title {
  font-size: 1.2em;
  font-weight: bold;
  margin: 0 auto;
}

@media (width > 576px) {
  .sections_group {
    padding-bottom: 120px;
  }
  .section__title {
    font-size: 3rem;
  }
  #Subheader {
    .container {
      grid-template-columns: none;
    }
  }
  #intro {
    padding-top: 120px;
    padding-bottom: 120px;
    .container {
      max-width: var(--lg);
      grid-template-columns: 60% auto;
      align-items: center;
      gap: 30px;
    }

    .lead {
      font-size: 1.5rem;
      text-align: center;
    }
  }
  #system-development {
    .container {
      gap: 4% 5.5%;
      padding-right: 3%;
      padding-left: 3%;

      > a {
        box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
        padding: 40px 24px;
        transition: box-shadow 0.5s ease-in-out, border 0.5s ease-in-out;
        border-radius: 2px;
        border: 1px solid transparent;
        text-decoration: none;
      }
      > a:hover {
        color: #7aa1da;
        box-shadow: 0px 0px 5px rgba(200, 128, 173, 0.5);
        border: 1px solid rgba(200, 128, 173, 0.5);
      }
    }
    .system-development__figure {
      width: 60%;
      max-width: 150px;
      margin: auto;
    }
  }
  #service {
    .container {
      padding-right: 30px;
      padding-left: 30px;
      grid-template-columns: repeat(2, 1fr);
      gap: 60px;
    }

    .service__wrapper {
      display: grid;
      grid-template-columns: subgrid;
      gap: 30px;
    }

    .service__wrapper:nth-child(odd) {
      grid-column: 1 / 2;
    }
    .service__wrapper:nth-child(even) {
      grid-column: 2 / -1;
    }

    .service__title {
      text-align: center;
    }
  }
}

@media (width >= 959px) {
  #service {
    .container {
      max-width: 1082px;
      padding-right: 30px;
      padding-left: 30px;
      grid-template-columns: auto 1fr auto 1fr;
      grid-template-rows: repeat(2, 1fr);
      gap: 60px;
    }

    .service__wrapper {
      display: grid;
      grid-template-columns: subgrid;
      gap: 30px;
    }

    .service__wrapper:nth-child(odd) {
      grid-column: 1 / 3;
    }
    .service__wrapper:nth-child(even) {
      grid-column: 3 / -1;
    }
  }
  #system-development {
    .container {
      grid-template-columns: repeat(4, 1fr);
      grid-template-rows: repeat(2, 1fr);
      gap: 6% 3%;
    }
  }
}
