.cw-delivery-route {
  --route-ink: #173b46;
  --route-muted: #4d5e53;
  --route-paper: #fff7df;
  --route-edge: #d6ba7d;
  --route-dispatch: #9b4b32;
  --route-arrival: #245e54;
  --route-arrival-paper: #e8f0df;
  --route-arrival-edge: #a9c0a3;
  color: var(--route-ink);
}
.cw-delivery-route__heading {
  margin: 0 auto clamp(14px, 2.5vw, 30px);
  text-align: center;
}
.cw-delivery-route__heading .cw-eyebrow {
  margin: 0 0 8px;
}
.cw-delivery-route__heading h2 {
  margin: 0;
  font-family: var(--cw-serif, serif);
  font-size: clamp(29px, 5.3vw, 68px);
  line-height: 1.24;
  text-wrap: balance;
}
.cw-delivery-route__map {
  max-width: 1040px;
  margin-inline: auto;
  padding: clamp(14px, 2.7vw, 32px);
  border: 1px solid var(--route-edge);
  border-radius: clamp(17px, 3vw, 34px);
  background: linear-gradient(143deg, var(--route-paper) 35%, #faedca 100%);
  box-shadow: 0 4px 0 #ddc38b, 0 16px 36px rgb(101 68 26 / 10%);
}
.cw-delivery-route__example {
  width: fit-content;
  margin: 0 auto 14px;
  padding: 4px 12px;
  border: 1px solid var(--route-edge);
  border-radius: 100px;
  color: #67512f;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.4;
}
.cw-delivery-route__timing {
  margin: -5px auto 15px;
  color: var(--route-ink);
  font-size: clamp(12px, 1.25vw, 15px);
  font-weight: 650;
  line-height: 1.5;
  text-align: center;
  text-wrap: balance;
}
.cw-delivery-route__stops {
  position: relative;
  display: grid;
  grid-template-columns: .95fr 1.15fr 1fr;
  isolation: isolate;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cw-delivery-route__stops::before {
  position: absolute;
  z-index: -1;
  top: 75px;
  right: 14%;
  left: 14%;
  height: 6px;
  border-radius: 99px;
  background: linear-gradient(90deg, #d6a459 44%, #89ac95 58%);
  content: "";
}
.cw-delivery-route__stop {
  display: grid;
  grid-template-rows: 104px auto;
  justify-items: center;
  align-content: start;
  gap: 7px;
  min-width: 0;
  text-align: center;
}
.cw-delivery-route__scene {
  width: min(100%, 156px);
  height: 104px;
}
.cw-delivery-route__copy p {
  margin: 0;
}
.cw-delivery-route__label {
  color: #67512f;
  font-size: clamp(14px, 1.55vw, 20px);
  font-weight: 800;
  line-height: 1.35;
}
.cw-delivery-route__stop--dispatch .cw-delivery-route__label {
  color: var(--route-dispatch);
}
.cw-delivery-route__stop--arrival .cw-delivery-route__label {
  color: var(--route-arrival);
}
.cw-delivery-route__stop--arrival .cw-delivery-route__copy {
  width: min(100%, 260px);
  padding: 10px clamp(8px, 1.3vw, 18px);
  border: 1px solid var(--route-arrival-edge);
  border-radius: 14px;
  background: var(--route-arrival-paper);
}
.cw-delivery-route__date {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: .15em;
  color: var(--route-ink);
  font-family: system-ui, sans-serif;
  font-size: clamp(25px, 3.75vw, 49px);
  font-weight: 760;
  font-variant-numeric: tabular-nums;
  line-height: 1.18;
  white-space: nowrap;
}
.cw-delivery-route__date span {
  font-size: .55em;
}
.cw-delivery-route__stop--dispatch .cw-delivery-route__date {
  font-size: clamp(25px, 3.75vw, 46px);
}
.cw-delivery-route__stop--arrival .cw-delivery-route__date {
  color: var(--route-arrival);
  font-size: clamp(32px, 4.2vw, 55px);
}
/* お届け日のマーカー。緑の札の上で読める山吹色にする。 */
.cw-delivery-route__stop--arrival .cw-delivery-route__date .sb-motion-marker {
  --sb-motion-marker-color: #f2cf63;
  --sb-motion-marker-height: .26em;
}
@media (min-width: 761px) {
  /* 入稿日の補足は日付の下へ。三つの柱の重さをそろえ、お届け日を一番目立たせる。 */
  .cw-delivery-route__stop:first-child .cw-delivery-route__date {
    flex-direction: column;
    align-items: center;
    gap: 2px;
  }
  .cw-delivery-route__stop:first-child .cw-delivery-route__date span {
    color: var(--route-muted);
    font-size: clamp(11px, 1.12vw, 14px);
    font-weight: 650;
    line-height: 1.45;
  }
}
.cw-delivery-route__stop .cw-delivery-route__date:has(time:nth-of-type(2)) {
  flex-wrap: wrap;
  font-size: clamp(18px, 4.5vw, 31px);
}
.cw-delivery-route__detail {
  color: var(--route-muted);
  font-size: clamp(11px, 1.12vw, 14px);
  line-height: 1.45;
}
.cw-delivery-route__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px 26px;
  margin-top: clamp(16px, 2.5vw, 30px);
  padding-top: clamp(12px, 2vw, 22px);
  border-top: 1px dashed var(--route-edge);
}
.cw-delivery-route__actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .8em;
  min-height: 44px;
  color: var(--route-ink);
  font-size: clamp(13px, 1.4vw, 17px);
  font-weight: 750;
}
.cw-delivery-route__actions .cw-delivery-route__primary {
  min-height: 48px;
  padding: 8px clamp(12px, 2.2vw, 25px);
  border-radius: 7px 20px 20px 7px;
  color: #fff8e3;
  background: #225952;
  box-shadow: 0 3px 0 #b9bb83;
  text-decoration: none;
}
.cw-delivery-route__primary span {
  display: grid;
  flex: 0 0 23px;
  height: 23px;
  place-items: center;
  border: 1px solid currentcolor;
  border-radius: 50%;
}
.cw-delivery-route__secondary {
  text-decoration: none;
}
.cw-delivery-route__secondary .text-link--label {
  border-bottom-color: currentcolor;
}
.cw-delivery-route__actions .cw-delivery-route__primary:hover {
  background: #1b4944;
}
.cw-delivery-route__note {
  margin: 12px auto 0;
  color: var(--route-muted);
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}
.cw-delivery-route__note span {
  display: inline-block;
}
@media (width <= 760px) {
  .cw-delivery-route__stops {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .cw-delivery-route__stops::before {
    inset: 30px auto 32px 37px;
    width: 5px;
    height: auto;
    background: linear-gradient(180deg, #d6a459 44%, #89ac95 58%);
  }
  .cw-delivery-route__stop {
    grid-template: auto / 78px minmax(0, 1fr);
    justify-items: start;
    align-items: center;
    gap: 12px;
    min-height: 72px;
    text-align: left;
  }
  .cw-delivery-route__scene {
    width: 78px;
    height: 66px;
    padding: 1px;
    border: 1px solid #e9d39c;
    border-radius: 17px;
    background: var(--route-paper);
  }
  .cw-delivery-route__stop--dispatch .cw-delivery-route__scene {
    border-color: #deb18c;
    background: #fff0d3;
  }
  .cw-delivery-route__stop--arrival .cw-delivery-route__scene {
    border-color: #bfd0a8;
    background: #f4f3d9;
  }
  .cw-delivery-route__date {
    justify-content: start;
  }
  .cw-delivery-route__actions {
    gap: 3px;
    margin-top: 12px;
    padding-top: 0;
    border-top: 0;
  }
  .cw-delivery-route__actions .cw-delivery-route__primary {
    width: 100%;
  }
}
@media (prefers-reduced-motion: no-preference) {
  [data-arrival-cue] {
    position: relative;
  }
  [data-arrival-cue="shown"]::before {
    --route-cue-start: scaleX(.08);
    position: absolute;
    z-index: -1;
    inset-block-start: 75px;
    inset-inline-end: 50%;
    inline-size: 107.5%;
    block-size: 6px;
    border-radius: 99px;
    background: #2e7767;
    transform-origin: left center;
    animation: cw-arrival-cue 520ms ease-out both;
    content: "";
  }
}
@media (width <= 760px) and (prefers-reduced-motion: no-preference) {
  [data-arrival-cue="shown"]::before {
    --route-cue-start: scaleY(.08);
    inset-block-start: -18px;
    inset-inline: 36px auto;
    inline-size: 7px;
    block-size: 29px;
    transform-origin: center top;
  }
}
@keyframes cw-arrival-cue {
  from {
    opacity: 0;
    transform: var(--route-cue-start);
  }
  20% {
    opacity: 1;
  }
  62% {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(1);
  }
}
