/* No.18 のびる道順アクセス */

.ar-stage { background: var(--surface-1); }

.ar-intro {
  margin: 0;
  padding: clamp(22px, 4vw, 40px) clamp(16px, 4vw, 48px) 0;
  color: var(--text-2);
  font-size: 14.9px;
  text-align: center;
}

.ar-scroll { height: 320vh; }

.ar-sticky {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: clamp(20px, 4vw, 44px) clamp(16px, 4vw, 48px);
}

.ar-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.65fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  width: min(1060px, 100%);
  margin-inline: auto;
}

.ar-map {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px 20px 20px 20px;
  box-shadow: 0 20px 48px rgba(40, 107, 112, 0.12);
}
.ar-map svg { display: block; width: 100%; height: auto; }

.ar-blocks rect { fill: #e7e2d4; }
.ar-river path { fill: none; stroke: #cfe4e6; stroke-width: 16; stroke-linecap: round; }

.ar-route-bg {
  fill: none;
  stroke: #ffffff;
  stroke-width: 13;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ar-route {
  fill: none;
  stroke: var(--brand-deep);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ar-pin { opacity: 0; transform-origin: center; transition: opacity 0.4s ease; }
.ar-pin circle {
  fill: var(--surface);
  stroke: var(--brand-deep);
  stroke-width: 2.5;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0.55);
  transition: transform 0.45s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.ar-pin text {
  fill: var(--brand-deep);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  text-anchor: middle;
}
.ar-pin.is-on { opacity: 1; }
.ar-pin.is-on circle { transform: scale(1); }

.ar-pin-goal circle { fill: var(--brand-deep); stroke: var(--surface); stroke-width: 3; }
.ar-pin-goal text { fill: var(--surface); font-size: 18px; }

.ar-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: ar;
}
.ar-step {
  position: relative;
  padding: 14px 0 14px 44px;
  counter-increment: ar;
  opacity: 0.32;
  transform: translateX(6px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.ar-step::before {
  content: counter(ar);
  position: absolute;
  top: 15px;
  left: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--brand-deep);
  background: var(--surface);
  border: 1px solid rgba(83, 169, 175, 0.4);
  border-radius: 50%;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}
.ar-step + .ar-step { border-top: 1px dashed rgba(83, 169, 175, 0.3); }
.ar-step.is-on { opacity: 1; transform: none; }
.ar-step.is-on::before {
  color: var(--surface);
  background: var(--brand-deep);
  border-color: var(--brand-deep);
}
.ar-step-label {
  display: block;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}
.ar-step-desc {
  display: block;
  margin-top: 4px;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.7;
}

@media (max-width: 860px) {
  .ar-scroll { height: 300vh; }
  .ar-inner { grid-template-columns: 1fr; gap: 18px; }
  .ar-sticky { align-items: flex-start; padding-top: 16px; }
  .ar-step { padding: 10px 0 10px 40px; }
  .ar-step::before { top: 11px; }
  .ar-step-desc { font-size: 12.5px; }
}
