/* 導入までの流れ flow */
.m_flow{
  padding-top: 30px;
}
.m_flow__list{
  display: grid;
  grid-template-columns: repeat(5,1fr);
  gap: 0 6%;
  counter-reset: list-counter;
}
.m_flow__item{
  position: relative;
}
.m_flow__item:after{
  position: absolute;
  content: "";
  display: block;
  top: 50%;
  right: -20%;
  width: 35px;
  height: 35px;
  border-right: 3px solid var(--gray-line-300);
  border-bottom: 3px solid var(--gray-line-300);
  transform: translateY(-50%) rotate(-45deg);
}
.m_flow__heading{
  position: relative;
  font-size: var(--fz-m);
  text-align: center;
  margin-bottom: 30px;
  z-index: 1;
}
.m_flow__heading:before{
  position: absolute;
  counter-increment: list-counter;
  content: "0" counter(list-counter);
  display: inline-block;
  font-size: 100px;
  font-weight: normal;
  top: 0;
  left: 50%;
  color: #fff;
  line-height: 1;
  z-index: -1;
  transform: translate(-50%,-50%);
}
.m_flow__heading.m_flow__heading--before-primary:before{
  color: var(--emphases-200);
}
.m_flow__item:last-of-type:after{
  display: none;
}
.m_flow__img{
  max-width: 150px;
  margin-inline: auto;
}
@media (max-width: 768px) {
  /* 導入までの流れ flow */
  .m_flow{
    padding-top: 0;
  }
  .m_flow__list{
    grid-template-columns: 1fr;
    gap: 50px 0;
  }
  .m_flow__item{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0 20px;
  }
  .m_flow__item:after{
    position: absolute;
    content: "";
    display: block;
    top: initial;
    bottom: -25px;
    right: initial;
    left: 50%;
    width: 25px;
    height: 25px;
    transform: translateX(-50%) rotate(45deg);
  }
  .m_flow__heading{
    margin-bottom: 0;
  }
  .m_flow__heading:before{
    font-size: 70px;
  }
  .m_flow__img{
    max-width: 120px;
    margin-inline: inherit;
  }
}