.flow {
  position: relative;
  padding-top: 5rem;
  padding-right: 15px;
  padding-bottom: 5rem;
  padding-left: 15px;
  background: linear-gradient(to right, #1a1a1a 0%, #6d6d6d 100%);
  color: #fff;
}

.flow .section__en {
  width: fit-content;
  border-bottom: solid 1px #fff;
  margin: 0 auto 1.5rem;
}

.flow__inner {
  z-index: 10;
  position: relative;
}

.flow__items {
  margin-top: 3rem;
  border-top: 1px solid #d5d5d5;
  border-bottom: 1px solid #d5d5d5;
}

.flow__item {
  display: grid;
  grid-template-columns: 12rem 1fr;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  padding-top: 2rem;
  padding-bottom: 2rem;
  gap: 2rem;
}

.flow__label {
  font-family: "Noto Serif JP", serif;
  display: grid;
  position: relative;
  place-items: center;
  height: 100%;
  font-weight: 500;
  font-size: 1.4rem;
  text-align: center;
  letter-spacing: 0.18rem;
}

.flow__item:not(:last-child) .flow__label::after {
  position: absolute;
  top: 101%;
  left: 50%;
  width: 2.2rem;
  height: 2.2rem;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  background: #fff;
  content: "";
  -webkit-clip-path: polygon(51% 100%, 0 45%, 100% 45%);
  clip-path: polygon(51% 100%, 0 45%, 100% 45%);
}

.flow__content {
  position: relative;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 1.9rem;
}

.flow__item:not(:last-child) .flow__content::after {
  position: absolute;
  bottom: -2rem;
  left: 0;
  width: 100%;
  height: 1px;
  background: #d5d5d5;
  content: "";
}

.flow__content::before {
  position: absolute;
  top: 50%;
  left: -1.5rem;
  width: 1px;
  height: 100%;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  background: #d5d5d5;
  content: "";
}

.flow__image {
  width: 100%;
  flex-shrink: 0;
}

.flow__image img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
}

.flow__text {
  width: 100%;
  margin-top: 0.8rem;
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1.6428571429;
  letter-spacing: 0.04em;
}

@media screen and (min-width: 768px) {
  .flow {
    padding: 6rem 0 9rem;
  }

  .flow .section__en {
    margin: 0 auto 3rem;
  }

  .flow .section__jp {
    font-size: 3.6rem;
  }

  .flow__items {
    margin-top: 4rem;
  }

  .flow__item {
    grid-template-columns: 14rem 1fr;
    padding-top: 2.9rem;
    padding-bottom: 2.9rem;
    gap: 6.3rem;
  }

  .flow__label {
    font-size: 1.8rem;
  }

  .flow__item:not(:last-child) .flow__label::after {
    top: 120%;
  }

  .flow__content {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    gap: 3rem;
  }

  .flow__item:not(:last-child) .flow__content::after {
    bottom: -2.9rem;
  }

  .flow__content::before {
    left: -2.9rem;
  }

  .flow__image {
    width: 12.6rem;
  }

  .flow__text {
    margin-top: initial;
    font-size: 1.4rem;
    line-height: 2.4rem;
  }
}
