@media screen and (min-width: 960px) {
  section.problem .section-content .problem__flow {
    position: relative;
    --timeline-x: 1.55rem;
    --connector-length: 2.2rem;
    margin-bottom: 1.55rem;
  }

  section.problem .section-content .problem__flow::before {
    content: '';
    position: absolute;
    left: var(--timeline-x);
    top: 0.7rem;
    bottom: 0.75rem;
    width: 2px;
    background-color: var(--color-main-border-strong);
  }

  section.problem .section-content .problem__flow::after {
    content: '';
    position: absolute;
    left: calc(var(--timeline-x) - 5px);
    bottom: 0.2rem;
    border-top: 10px solid var(--color-main-border-strong);
    border-right: 6px solid transparent;
    border-left: 6px solid transparent;
  }

  section.problem .section-content .problem__flow__row {
    position: relative;
    display: grid;
    grid-template-columns: 3.25rem minmax(0, 1fr);
    gap: 0.9rem;
    align-items: center;
    margin-bottom: 0.8rem;
  }

  section.problem .section-content .problem__flow__row:last-of-type {
    margin-bottom: 0;
  }

  section.problem .section-content .problem__flow__row::before {
    content: '';
    position: absolute;
    left: var(--timeline-x);
    top: 50%;
    width: var(--connector-length);
    height: 1px;
    background-color: var(--color-main-border-strong);
    transform: translateY(-50%);
  }

  section.problem .section-content .problem-stage {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  section.problem .section-content .problem-stage__dot {
    width: 0.9rem;
    height: 0.9rem;
    border-radius: 50%;
    background-color: var(--color-main-border-strong);
    flex-shrink: 0;
  }

  section.problem .section-content .problem__flow__row .problem-card {
    border-radius: 0 12px 12px 0;
    padding: 0.95rem 1rem 0.95rem 0.95rem;
    background-color: var(--primary-base-color-code);
    box-shadow: 0 0 0 2px var(--color-main-surface-soft);
  }

  section.problem .section-content .problem-card__stage {
    display: inline-flex;
    margin-bottom: 0.4rem;
    padding: 0.275rem 0.55rem;
    border-radius: 999px;
    background-color: var(--color-main-border-default);
    color: var(--main-color-code);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.03em;
  }

  section.problem .section-content .problem-card h3 {
    color: var(--color-main-text-primary);
    font-weight: 600;
    font-size: 1.06rem;
    letter-spacing: 0.015em;
    margin-bottom: 0.5rem;
    line-height: 1.56;
  }

  section.problem .section-content .problem-card > p:not(.problem-card__stage) {
    color: var(--color-main-text-secondary);
    line-height: 1.78;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
  }
}

@media screen and (max-width: 959px) {
  section.problem .section-content .problem__flow {
    position: relative;
    --timeline-x: 0.925rem;
    --connector-length: 1.5rem;
    margin-bottom: 0.85rem;
  }

  section.problem .section-content .problem__flow::before {
    content: '';
    position: absolute;
    left: var(--timeline-x);
    top: 0.65rem;
    bottom: 0.7rem;
    width: 2px;
    background-color: var(--color-main-border-strong);
  }

  section.problem .section-content .problem__flow::after {
    content: '';
    position: absolute;
    left: calc(var(--timeline-x) - 5px);
    bottom: 0.2rem;
    border-top: 9px solid var(--color-main-border-strong);
    border-right: 6px solid transparent;
    border-left: 6px solid transparent;
  }

  section.problem .section-content .problem__flow__row {
    position: relative;
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr);
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.65rem;
  }

  section.problem .section-content .problem__flow__row:last-of-type {
    margin-bottom: 0;
  }

  section.problem .section-content .problem__flow__row::before {
    content: '';
    position: absolute;
    left: var(--timeline-x);
    top: 50%;
    width: var(--connector-length);
    height: 1px;
    background-color: var(--color-main-border-strong);
    transform: translateY(-50%);
  }

  section.problem .section-content .problem-stage {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  section.problem .section-content .problem-stage__dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background-color: var(--color-main-border-strong);
    flex-shrink: 0;
  }

  section.problem .section-content .problem__flow__row .problem-card {
    border-radius: 0 10px 10px 0;
    padding: 0.7rem 0.7rem 0.7rem 0.65rem;
    background-color: var(--primary-base-color-code);
    box-shadow: 0 0 0 2px var(--color-main-surface-soft);
  }

  section.problem .section-content .problem-card__stage {
    display: inline-flex;
    margin-bottom: 0.3rem;
    padding: 0.125rem 0.4rem;
    border-radius: 999px;
    background-color: var(--color-main-border-default);
    color: var(--main-color-code);
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1;
  }

  section.problem .section-content .problem-card h3 {
    color: var(--color-main-text-primary);
    font-weight: 600;
    font-size: var(--font-size-normal);
    margin-bottom: 0.35rem;
    line-height: 1.58;
    letter-spacing: 0.01em;
  }

  section.problem .section-content .problem-card > p:not(.problem-card__stage) {
    color: var(--color-main-text-secondary);
    line-height: 1.72;
    font-size: var(--font-size-small);
    letter-spacing: 0.01em;
  }
}
