.flow-list {
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding-top: 20px;
}

.flow-list li {
  position: relative;
  display: flex;
  flex: 1 1 0;
  max-width: 168px;
  aspect-ratio: 1;
  align-items: center;
  justify-content: center;
  padding: 28px 14px 18px;
  border: 2px solid #6f99ad;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.flow-list li:not(:last-child)::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: calc(50% - 1px);
  right: -32px;
  width: 30px;
  height: 2px;
  background: #5f879b;
}

.flow-list li:not(:last-child)::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: calc(50% - 5px);
  right: -32px;
  width: 10px;
  height: 10px;
  border-top: 2px solid #5f879b;
  border-right: 2px solid #5f879b;
  transform: rotate(45deg);
}

.flow-list span {
  position: absolute;
  top: -12px;
  left: 50%;
  display: block;
  min-height: 0;
  padding: 0 9px;
  border-radius: 0;
  color: #315d73;
  background: var(--blue-pale);
  font-size: 12px;
  line-height: 24px;
  transform: translateX(-50%);
}

.flow-list p { margin: 0; }

@media (max-width: 900px) {
  .flow-list { justify-content: flex-start; gap: 30px; }
  .flow-list li { flex: 0 0 150px; max-width: 150px; }
  .flow-list li:not(:last-child)::after { right: -30px; width: 28px; }
  .flow-list li:not(:last-child)::before { right: -30px; }
}

@media (max-width: 640px) {
  .flow-list {
    display: grid;
    grid-template-columns: repeat(2, 150px);
    justify-content: center;
    gap: 32px 38px;
    margin-right: 0;
    padding-right: 0;
    overflow: visible;
    scroll-snap-type: none;
  }

  .flow-list li { width: 150px; }
  .flow-list li:nth-child(1) { grid-area: 1 / 1; }
  .flow-list li:nth-child(2) { grid-area: 1 / 2; }
  .flow-list li:nth-child(3) { grid-area: 2 / 2; }
  .flow-list li:nth-child(4) { grid-area: 2 / 1; }
  .flow-list li:nth-child(5) { grid-area: 3 / 1; }
  .flow-list li:nth-child(6) { grid-area: 3 / 2; }

  .flow-list li::before { display: none; }
  .flow-list li:not(:last-child)::after {
    width: auto;
    height: auto;
    color: #5f879b;
    background: none;
    font-size: 22px;
    line-height: 1;
  }
  .flow-list li:nth-child(1)::after,
  .flow-list li:nth-child(5)::after { content: "→"; top: 50%; right: -31px; transform: translateY(-50%); }
  .flow-list li:nth-child(2)::after,
  .flow-list li:nth-child(4)::after { content: "↓"; top: auto; right: auto; bottom: -28px; left: 50%; transform: translateX(-50%); }
  .flow-list li:nth-child(3)::after { content: "←"; top: 50%; right: auto; left: -31px; transform: translateY(-50%); }
}
