
.flow {
  --rose: #e88a98;      /* 枠線・バッジ・見出し */
  --rose-soft: #ef9caa; /* 矢印 */
  --text: #555;
  --card-bg: #fff;
  max-width: 1080px;
  margin: 0 auto;
  padding: 64px 24px;
  box-sizing: border-box;
  color: var(--text);
  font-family: -apple-system, "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
}
.flow *,
.flow *::before,
.flow *::after { box-sizing: border-box; }
 
.flow__title {
  text-align: center;
  color: var(--rose);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: .08em;
  margin: 0 0 64px;
}
 
.flow__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 56px 44px;
  list-style: none;
  margin: 0;
  padding: 0;
}
 
.flow__item {
  position: relative;
  padding: 40px 22px 28px;
  background: var(--card-bg);
  border: 2px solid var(--rose);
  border-radius: 4px;
}
 
/* カード間の矢印（3カラム時：各行末を除く） */
.flow__item::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -29px;
  width: 12px;
  height: 12px;
  border-top: 3px solid var(--rose-soft);
  border-right: 3px solid var(--rose-soft);
  transform: translateY(-50%) rotate(45deg);
}
.flow__item:nth-child(4n)::after,
.flow__item:last-child::after { content: none; }
 
/* ピン型 番号バッジ */
.flow__num {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--rose);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}
.flow__num::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  border-style: solid;
  border-width: 7px 5px 0 5px;
  border-color: var(--rose) transparent transparent transparent;
}
 
.flow__name {
  margin: 6px 0 18px;
  color: var(--rose);
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  border-left: none;
}
 
.flow__figure { display: block; }
.flow__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #f2f2f2;
}
 
.flow__desc {
  display: block;
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.85;
  text-align: left;
}
 
/* ===== 1024px以下：2カラム ===== */
@media (max-width: 1024px) {
  .flow { padding: 52px 16px; }
  .flow__title { font-size: 26px; margin-bottom: 52px; }
  .flow__grid { grid-template-columns: repeat(2, 1fr); gap: 48px 40px; }
 
  /* 矢印を2カラム用に組み直し（各行の左カードのみ表示） */
  .flow__item::after { content: ""; }
  .flow__item:nth-child(3n)::after { content: ""; }
  .flow__item:nth-child(2n)::after,
  .flow__item:last-child::after { content: none; }
}
 
/* ===== 599px以下：1カラム ===== */
@media (max-width: 599px) {
  .flow { padding: 44px 16px; }
  .flow__title { font-size: 22px; margin-bottom: 40px; }
  .flow__grid { grid-template-columns: 1fr; gap: 44px; }
  .flow__item { padding: 38px 18px 24px; }
  .flow__item::after { content: none; } /* 縦並びでは矢印非表示 */
  .flow__name { font-size: 16px; }
  .flow__desc { font-size: 13px; }
}
