.project-route {
  --route-blue: #1167c9;
  --route-ink: #102c4d;
  --route-track: #afc9e2;
  --route-node: 54px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  isolation: isolate;
}
.project-route li {
  display: flex;
  flex-direction: column;
  position: relative;
  min-width: 0;
  padding-inline: 12px;
}
.project-route li:nth-child(2) { --route-delay: 850ms; }
.project-route li:nth-child(3) { --route-delay: 1700ms; }
.project-route li:nth-child(4) { --route-delay: 2550ms; }
.project-route li:not(:last-child)::before,
.project-route li:not(:last-child)::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: calc(var(--route-node) / 2 - 1px);
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--route-track);
}
.project-route li:not(:last-child)::after {
  background: var(--route-blue);
  transform-origin: left;
}
.project-route li > span {
  order: -1;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: var(--route-node);
  height: var(--route-node);
  margin: 0 auto 26px;
  border: 2px solid var(--route-blue);
  border-radius: 50%;
  background: var(--route-blue);
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.project-route-step > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  margin: 0 0 18px;
  border-radius: 5px;
  object-fit: cover;
}
.project-route-step {
  flex: 1;
  padding: 10px 10px 16px;
  border: 1px solid #cbdceb;
  border-radius: 8px;
  background: #fff;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.project-route li > span { transition: box-shadow .25s, transform .25s; }
@media (hover: hover) and (pointer: fine) {
  .project-route li:hover > span {
    box-shadow: 0 0 0 6px #1167c92b, 0 6px 18px #103d6250;
    transform: scale(1.08);
  }
  .project-route li:hover .project-route-step {
    border-color: #6da6d7;
    background: #f7fbff;
    box-shadow: 0 10px 24px -12px #103d6250;
  }
  .project-route li:hover .project-route-step > img { animation: route-drawing 480ms ease-out both; }
}
@keyframes route-drawing {
  0% { transform: scale(1); }
  55% { transform: scale(.95) translateY(-3px); }
  100% { transform: scale(.97); }
}
.project-route h3 {
  margin: 0 0 8px;
  color: var(--route-ink);
  font-size: clamp(20px, 2vw, 27px);
  line-height: 1.2;
}
.project-route p {
  margin: 0;
  color: #46617c;
  font-size: 14px;
  line-height: 1.7;
}
.project-route.is-playing li:not(:last-child)::after {
  animation: project-route-line 850ms linear var(--route-delay, 0ms) both;
}
.project-route.is-playing li > span {
  animation: project-route-arrival 230ms ease-out var(--route-delay, 0ms) both;
}
@keyframes project-route-line {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes project-route-arrival {
  from { background: #f6faff; color: var(--route-blue); }
  to { background: var(--route-blue); color: #fff; }
}

.twelve-consultation-visual > .project-discussion-art {
  height: auto;
  max-height: 250px;
  object-fit: contain;
  object-position: left;
}

@media (max-width: 760px) {
  .project-route {
    --route-node: 46px;
    grid-template-columns: 1fr;
    margin-top: 30px;
  }
  .project-route li {
    display: grid;
    grid-template-columns: var(--route-node) minmax(0, 1fr);
    column-gap: 16px;
    padding: 0 0 28px;
  }
  .project-route li:last-child { padding-bottom: 0; }
  .project-route li > span { grid-area: 1 / 1; margin: 0; }
  .project-route-step { grid-area: 1 / 2; }
  .project-route li:not(:last-child)::before,
  .project-route li:not(:last-child)::after {
    left: calc(var(--route-node) / 2 - 1px);
    width: 2px;
    height: 100%;
  }
  .project-route li:not(:last-child)::after { transform-origin: top; }
  .project-route.is-playing li:not(:last-child)::after { animation-name: project-route-line-vertical; }
  @keyframes project-route-line-vertical {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-route.is-playing li:not(:last-child)::after,
  .project-route.is-playing li > span { animation: none; }
  .project-route li:hover .project-route-step > img { animation: none; }
  .project-route li:hover > span { transform: none; }
  .project-route li > span, .project-route-step { transition: none; }
}
