.subpage-list {
  position: relative;
}

.subpage-list:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  width: 100%;
  height: 50%;
  background-color: #ffffff;
}

.subpage-list.-image:after {
  height: 68%;
}

.subpage-list.-image .subpage-list__container {
  justify-content: center;
  align-items: flex-start;
  min-height: 35vh;
  max-width: 1000px;
}

.subpage-list.-image .subpage-list__item {
  padding: 16px;
  justify-content: center;
  align-items: flex-start;
  width: calc((100% - 50px) / 3);
}

.subpage-list__container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  margin: 0 auto;
  padding: 30px 20px;
  width: 100%;
  max-width: 1240px;
}

.subpage-list__item {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 40px 20px 40px 50px;
  margin: 0 25px 40px 0;
  width: calc((100% - 51px) / 3);
  background-color: #ffffff;
  box-shadow: 0 12px 23px 1px rgba(0, 0, 0, 0.05);
}

.subpage-list__item:last-child {
  margin-right: 0;
}

.subpage-list__item:nth-child(4n-1) {
  margin: 0 0 40px 0;
}

.subpage-list__link {
  margin: 0 0 20px 0;
  color: #007da5;
  font-weight: 600;
  font-size: 18px;
  font-size: 1.38462rem;
  line-height: 30px;
  line-height: 2.30769rem;
  -webkit-font-feature-settings: "kern" 1;
  font-feature-settings: "kern" 1;
  -webkit-font-kerning: normal;
  font-kerning: normal;
  font-weight: 600;
}

.subpage-list__sub-link {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  margin: 0 0 10px 0;
  color: #231f20;
  font-size: 18px;
  font-size: 1.38462rem;
  line-height: 30px;
  line-height: 2.30769rem;
  -webkit-font-feature-settings: "kern" 1;
  font-feature-settings: "kern" 1;
  -webkit-font-kerning: normal;
  font-kerning: normal;
}

.subpage-list__sub-link:hover:after {
  width: 40px;
}

.subpage-list__sub-link:after {
  content: "";
  display: flex;
  margin: 0 0 0 10px;
  width: 25px;
  height: 1px;
  background-color: #007da5;
  transition: width .2s ease-out;
}

.subpage-list__title {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  padding: 0 30px;
  width: 100%;
  height: 100px;
  color: #4f4f4f;
  font-size: 16px;
  font-size: 1.23077rem;
  line-height: 25.6px;
  line-height: 1.96923rem;
  -webkit-font-feature-settings: "kern" 1;
  font-feature-settings: "kern" 1;
  -webkit-font-kerning: normal;
  font-kerning: normal;
}

.subpage-list__image {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 100%;
  background-color: #f8f6f4;
  height: 135px;
  font-size: 23px;
  font-size: 1.76923rem;
  line-height: 30px;
  line-height: 2.30769rem;
  -webkit-font-feature-settings: "kern" 1;
  font-feature-settings: "kern" 1;
  -webkit-font-kerning: normal;
  font-kerning: normal;
  font-weight: 600;
  color: #231f20;
}

.subpage-list__image img {
  display: block;
  margin: 0 20px 0 0;
  max-width: 100%;
}

@media only screen and (max-width: 1279px) {
  .subpage-list__item {
    padding: 40px 20px;
  }

  .subpage-list__sub-link {
    font-size: 16px;
    font-size: 1.23077rem;
    line-height: 25.6px;
    line-height: 1.96923rem;
    -webkit-font-feature-settings: "kern" 1;
    font-feature-settings: "kern" 1;
    -webkit-font-kerning: normal;
    font-kerning: normal;
  }
}

@media only screen and (max-width: 1023px) {
  .subpage-list:after {
    height: 85%;
  }

  .subpage-list.-image:after {
    height: 75%;
  }

  .subpage-list.-image .subpage-list__item {
    width: 100%;
    margin: 0 0 30px 0;
  }

  .subpage-list__item:nth-child(4n-1) {
    margin: 0 0 25px 0;
  }

  .subpage-list__item {
    margin: 0 0 25px 0;
    padding: 40px 30px;
    width: 100%;
  }
}
