/* Keep each square quadrant of the original illustration in proportion. */
#flow .flow-stages {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin: 0 0 28px;
}
#flow .flow-stages span {
  padding: 14px 20px;
  border-radius: 4px;
  background: #f1f2ef;
  color: #43483f;
  font-size: 14px;
  font-weight: 500;
}
#flow .flow-stages span + span { background: #f5f3ef; color: #615a4d; }
#flow .flow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}
#flow .flow-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0;
  border: 0;
  gap: 0;
}
#flow .step-top {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  min-height: 32px;
  margin: 0;
  gap: 8px;
}
#flow .step-top > span { color: #666864; font-size: 11px; letter-spacing: .12em; white-space: nowrap; }
#flow .step-top b { padding: 4px 9px; border-radius: 3px; font-size: 11px; white-space: nowrap; }
#flow .flow-picture {
  flex: none;
  width: 100%;
  max-width: none;
  height: auto;
  aspect-ratio: 1;
  margin: 16px 0 12px;
  background-size: 200% 200%;
  grid-area: auto;
}
#flow .flow-item h3 { margin: 0 0 12px; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; letter-spacing: .01em; }
#flow .flow-item p { margin: 0; font-size: 14px; line-height: 1.95; line-break: strict; overflow-wrap: anywhere; }
#flow .flow-item:not(:last-child)::after {
  display: block;
  content: '→';
  position: absolute;
  top: 2px;
  bottom: auto;
  right: -25px;
  color: #a2a49d;
  font-size: 18px;
  line-height: 28px;
}
#flow > .note { margin-top: 30px; font-size: 12px; line-height: 1.9; }
@media (max-width: 999px) {
  #flow .flow-stages { display: none; }
  #flow .flow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 32px; }
  #flow .flow-item { padding-top: 16px; border-top: 1px solid #dedfd9; }
  #flow .flow-picture { width: min(100%, 240px); margin: 12px auto 16px; }
  #flow .flow-item h3 { font-size: 20px; }
  #flow .flow-item:not(:last-child)::after { top: 18px; }
  #flow .flow-item:nth-child(2)::after { display: none; }
}
@media (max-width: 560px) {
  #flow .flow-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  #flow .flow-item { display: grid; grid-template-columns: 104px minmax(0, 1fr); column-gap: 18px; }
  #flow .step-top { grid-column: 1 / -1; margin-bottom: 12px; }
  #flow .flow-picture { grid-column: 1; grid-row: 2 / 4; width: 104px; height: auto; margin: 0; align-self: start; }
  #flow .flow-item h3 { grid-column: 2; margin: 2px 0 8px; font-size: 18px; }
  #flow .flow-item p { grid-column: 2; font-size: 13px; line-height: 1.85; }
  #flow .flow-item:not(:last-child)::after { display: none; }
  #flow > .note { margin-top: 26px; }
}
@media (max-width: 360px) {
  #flow .flow-item { grid-template-columns: 84px minmax(0, 1fr); column-gap: 12px; }
  #flow .flow-picture { width: 84px; }
  #flow .flow-item h3 { font-size: 16px; }
}
