.item3x2 {
  grid-template-rows: repeat(3, auto);
  gap: 60px;
}

.item3x2-child [class*="__title"] {
  align-self: center;
  text-align: center;
  margin-bottom: 16px;
}
.item3x2-child figure,
.item3x2-child [class*="__figure"] {
  text-align: center;
  margin-bottom: 24px;
}

/* システム開発 */
#cases {
  #values {
    background: #f5f5f5;
    .container {
      grid-template-rows: repeat(3, minmax(0, max-content));
      max-width: var(--xl);
      gap: 60px 30px;
      padding-right: 24px;
      padding-left: 24px;
    }
    .container::after {
      content: none;
    }
  }

  .values__wrapper {
    display: grid;
    grid-template-rows: repeat(3, auto);
    text-align: center;
  }

  .values__figure {
    max-width: 100px;
    margin: 0 auto 1.5rem;
  }

  .values__title {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    line-height: 1.1;
    font-weight: normal;
    color: #596573;
    text-align: center;
  }
  .values__text {
    display: inline-flex;
    flex-direction: column;
    margin-right: auto;
    margin-left: auto;
    color: #090037;
    line-height: 1.4;
    text-align: left;
  }

  #system-development {
    .container {
      padding-right: 24px;
      padding-left: 24px;
      gap: 60px 30px;
    }
    .container::after {
      content: none;
    }
  }

  .system-development__wrapper {
    justify-content: center;
  }

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

  .system-development__title {
    text-align: center;
  }

  .system-development__text {
    color: #868f98;
  }

}

/* 在庫管理システム */
#wms {
  .container.grid {
    max-width: var(--xl);
    padding-right: 24px;
    padding-left: 24px;
  }
  .container.grid::after {
    content: none;
  }
}

.feature__wrapper {
  display: grid;
  grid-template-rows: repeat(3, auto);
  gap: 1rem;
  text-align: center;
}

.feature__figure {
  max-width: 100px;
  margin: 0 auto;
}

.feature__title {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.1;
  font-weight: normal;
  color: #596573;
}
.feature__text {
  display: inline-flex;
  flex-direction: column;
  margin-right: auto;
  margin-left: auto;
  color: #090037;
  line-height: 1.4;
  text-align: left;
}

/* 顧客管理システム */
#cms {
  #feature {
    .container.grid {
      padding-right: 24px;
      padding-left: 24px;
      max-width: var(--xl);
    }
  }
}

/* 工程管理システム　*/
#mes {
  #feature {
    .container.grid {
      padding-right: 24px;
      padding-left: 24px;
      grid-template-columns: 1fr 30%;
      grid-template-rows: repeat(8, auto);
      gap: 48px;
    }
    .container.grid::after {
      content: none;
    }
  }
  .feature__wrapper {
    grid-column: span 2;
    grid-row: span 3;
    grid-template-columns: subgrid;
    grid-template-rows: subgrid;
    gap: 1rem;
  }
  .feature__title {
    text-align: left;
    font-size: 1.2rem;
    grid-column: 1 /2;
    grid-row: 1 / 2;
  }
  .feature__text {
    grid-column: 1 /2;
    grid-row: 2 / -1;
    width: 100%;
  }
  .feature__figure {
    grid-column: 2/-1;
    grid-row: 1 /-1;
  }
}

/* 資材管理システム */
#mms {
  .container.grid {
    padding-right: 24px;
    padding-left: 24px;
    gap: 60px;
    max-width: var(--xl);
  }
  .outline__title {
    margin-bottom: 1em;
  }
  .outline__list {
    font-size: 1.5em;
    color: #6b61a2;
    li {
      display: flex;
      align-items: center;
      margin-bottom: 1em;
      font-weight: bold;
      &::before {
        display: block;
        content: "";
        background: url(/wp-content/themes/betheme/images/icons/icon_check.svg)
          center center/cover no-repeat;
        width: 1.1em;
        height: 1.1em;
        margin-right: 0.25em;
      }
    }
    + div {
      font-size: 1.25rem;
    }
  }
}

/* 小・中規模ネットワーク */
#sohonetwork {
  #merit {
    .container::after {
      content: none;
    }
    .container.grid {
      gap: 60px;
      max-width: var(--xl);
      padding-right: 24px;
      padding-left: 24px;
    }
  }
  .merit__title {
    text-align: center;
  }
  .merit__figure {
    width: 40%;
    margin: 0 auto 30px;
    text-align: center;
  }
}

/* アプリケーション作成 */
#apps {
  #flow {
    .container.grid {
      gap: 4px;
      padding-right: 24px;
      padding-left: 24px;
      &::after {
        content: none;
      }
    }
  }
  .flow__wrapper {
    position: relative;
    border-radius: 24px;
    display: grid;
    grid-template-columns: auto calc(4em + 4px);
    &:first-child {
      background: #fae1eb;
    }
    &:nth-child(2) {
      background: #efc8de;
    }
    &:nth-child(3) {
      background: #e8acd0;
    }
    &:last-child {
      background: #e698c8;
    }
  }
  .flow__title {
    color: #fff;
    font-weight: 900;
    font-size: 1.5rem;
    padding-top: 24px;
    padding-left: 24px;
    grid-column: 1 /2;
    text-transform: uppercase;
    text-shadow: 0 0 4px #e698c8;
  }
  .flow__outline,
  .flow__completed {
    position: relative;
    grid-column: 2 /-1;
    grid-row: span 2;
    display: grid;
    grid-template-rows: subgrid;
    justify-content: center;
    span {
      position: absolute;
      top: -32px;
      display: flex;
      justify-content: center;
      align-items: center;
      width: calc(4em + 4px); /* 罫線×2 */
      height: calc(4em + 4px);
      padding: 1em;
      line-height: 1.1;
      border-radius: 100px;
      color: #333;
      border: 2px solid #fff;
      box-sizing: border-box;
    }
    figure {
      position: relative;
      display: flex;
      justify-content: center;
      align-items: center;
      grid-row: 1 / -1;
    }
  }
  .flow__wrapper {
    &:first-child .flow__outline span {
      background: #f2daf0;
    }
    &:nth-child(2) .flow__outline span {
      background: #f2bde9;
    }
    &:nth-child(3) .flow__outline span {
      background: #f2a0e4;
    }
    &:last-child .flow__outline span {
      background: #f385dc;
    }
  }
  .flow__text {
    padding-bottom: 24px;
    padding-left: 24px;
    min-height: 2.5em;
    color: #333;
  }
  .flow__completed {
    span {
      top: calc(100% - 32px);
      background: #f067cb;
    }
  }
}

/* e-learning */
#e-learning {
  #feature {
    .container.grid {
      padding-right: 24px;
      padding-left: 24px;
      max-width: var(--xl);
    }
  }
}

@media (width < 768px) {
  .Subheader__figure {
    margin: 24px auto 0;
    text-align: center;
  }
}

@media (width > 576px) {
  .item3x2 {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(9, auto);
  }

  .item3x2-child {
    display: grid;
    grid-column: span 1;
    grid-row: span 3;
    grid-template-rows: subgrid;
    gap: 0;
  }

  /* システム開発 */
  #cases {
    #values {
      padding-right: 24px;
      padding-left: 24px;
      .container {
        grid-template-columns: 30% 1fr;
        grid-template-rows: repeat(6, minmax(min-content, max-content));
      }
    }
    .values__wrapper {
      display: grid;
      grid-template-columns: subgrid;
      grid-template-rows: subgrid;
      gap: 0;
      grid-column: 1 /-1;
      grid-row: span 2;
      align-items: center;
    }
    .values__figure {
      grid-column: 1/2;
      grid-row: 1 /-1;
    }

    .values__title {
      grid-column: 2/-1;
      grid-row: 1 /2;
      font-size: 1.5rem;
      text-align: left;
    }
    .values__text {
      grid-column: 2/-1;
      grid-row: 2 /3;
      display: block;
      font-size: 1.125rem;
    }

    #system-development {
      padding-right: 8px;
      padding-left: 8px;
      .container.grid {
        gap: 4% 5.5%;
        padding-right: 3%;
        padding-left: 3%;
        max-width: 1920px;
        margin: auto;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(12, auto);
        gap: 40px;
      }
    }

    .system-development__wrapper {
      display: grid;
      grid-template-rows: subgrid;
      gap: 0;
      grid-row: span 3;
      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;
      &:hover {
        color: #7aa1da;
        box-shadow: 0px 0px 5px rgba(200, 128, 173, 0.5);
        border: 1px solid rgba(200, 128, 173, 0.5);
        text-decoration: none;
      }
    }

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

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

  /* 資材管理システム */
  #mms {
    .section__lead {
      text-align: center;
    }
    #outline .container.grid {
      grid-template-columns: 1fr 40%;
    }
    .container.grid::after {
      content: none;
    }
    .outline__list {
      + div {
        display: inline-block;
        margin-left: 60%;
      }
    }
  }

  /* 小・中規模ネットワーク */

  /* アプリケーション作成 */
  #apps {
    #flow {
      .container.grid {
        max-width: var(--sm);
      }
    }
  }
#e-leaning {
  #feature {
    .feature__wrapper {
      grid-template-rows: subgrid;
    }
  }
}
}
@media (width > 767px) {
  .Subheader__lead {
    font-size: 1.1rem;
  }

  /* 工程管理 */
  #mes {
    #feature {
      .container.grid {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: auto 1fr auto;
        max-width: var(--xl);
      }
    }
    .feature__wrapper {
      grid-column: span 1;
      grid-row: span 3;
      gap: 1rem;
    }
    .feature__title {
      grid-row: 1 / 2;
      text-align: center;
    }
    .feature__text {
      width: auto;
      grid-row: 3 / -1;
    }
    .feature__figure {
      grid-row: 2 / 3;
    }
  }

  /* 資材管理 */
}
@media (width >= 992px) {
  .item3x2 {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(6, auto);
  }

  .Subheader__lead {
    font-size: 1.5rem;
  }


  /* システム開発事例 */
  #cases {
    #values {
      .container {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(3, auto);
        padding: 0;
      }
      .container::after {
        content: none;
      }
    }
    .values__wrapper {
      display: grid;
      grid-template-columns: subgrid;
      grid-template-rows: subgrid;
      grid-column: span 1;
      grid-row: span 3;
    }
    .values__figure {
      grid-row: span 1;
    }
    .values__title {
      text-align: center;
      grid-row: span 1;
    }
    .values__text {
      grid-row: span 1;
      align-self: self-start;
    }

    #system-development {
      .container.grid {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(6, auto);
      }
    }
    .system-development__wrapper {
      grid-row: span 3;
      grid-template-columns: subgrid;
      grid-template-rows: subgrid;
    }
  }

  /* アプリケーション開発 */
  #apps {
    #flow {
      .container.grid {
        padding-right: 48px;
        padding-left: 48px;
        max-width: var(--xl);
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: auto calc(6em + 4px) auto;
      }
    }
    .flow__wrapper {
      grid-column: span 1;
      grid-row: span 3;
      display: grid;
      grid-template-columns: 1fr;
      grid-template-rows: subgrid;
    }
    .flow__title {
      padding-left: 0;
      text-align: center;
      grid-row: 1 / 2;
      grid-column: span 1;
    }

    .flow__text {
      padding-top: 24px;
      padding-inline: 24px;
      padding-bottom: 16px;
      grid-column: span 1;
      grid-row: 3 / -1;
    }

    .flow__outline,
    .flow__completed {
      grid-row: 2 / 3;
      grid-column: span 1;
      span {
      width: calc(6em + 4px);
      height: calc(6em + 4px);
        top: 0;
        left: -3em;
      }
      figure {
        transform: rotate(270deg);
      }
    }
  }
}
