.flow {
  background-color: var(--color-white-100);
}

.companies-page .flow {
  background-color: var(--background-color-secondary);
}

.flow__list {
  display: flex;
  flex-direction: column;
  gap: 66px;
  margin-top: var(--spacing-2xl);
  padding: 0;
  margin: 0;
}

.flow-card {
  position: relative;
  background: var(--color-white-100);
  border-radius: 12px;
  padding: var(--spacing-md);
  box-shadow: 0 0 16px 0 rgba(0, 0, 0, 0.16);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);

  & a {
    text-decoration: underline;
  }
}

/* スマホ版: カードとカードの間に下向き矢印 */
.flow-card:not(:last-child)::after {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  background-image: url('../../images/flow/flow-arrow-down.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  position: absolute;
  left: 50%;
  bottom: -45px;
  transform: translateX(-50%);
}

.flow-card__step {
  position: absolute;
  top: 11px;
  left: 0;
  font-size: 18px;
  padding: 3px -4px;
}

.flow-card__figure {
  border-radius: 2px;
  overflow: hidden;
  width: 100%;
}

.flow-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.flow-card__title {
  font-size: 18px;
  font-weight: var(--font-weight-bold);
  text-align: center;
}

.flow-card__desc {
  font-size: 14px;
}

@media (width >= 786px) {
  .flow .box {
    max-width: 1200px;
    margin: 0 auto;
  }

  .flow__list {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 67px;
    position: relative;
  }

  .flow-card:not(:last-child)::after {
    content: '';
    right: -46px;
    top: 50%;
    left: auto;
    transform: translateY(-50%) rotate(-90deg);
  }
}
