/* Fast reveals are independent of the existing slow photo drift. */
[data-sweep] {
  position: relative;
  overflow: hidden;
}
[data-sweep]::after {
  content: "";
  position: absolute;
  inset: -70% -50%;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(
    120deg,
    transparent 42%,
    #f7f9fa 42.2%,
    #f7f9fa 61%,
    #b99b65 61.1%,
    #b99b65 61.5%,
    transparent 61.7%
  );
  opacity: 0;
  transform: translate(72%, 44%);
}
.sweep-running::after {
  animation: diagonal-sweep 0.64s cubic-bezier(0.22, 0.68, 0.16, 1) both;
}
@keyframes diagonal-sweep {
  0% {
    opacity: 0;
    transform: translate(72%, 44%);
  }
  8% {
    opacity: 0.97;
  }
  75% {
    opacity: 0.97;
  }
  100% {
    opacity: 0;
    transform: translate(-72%, -44%);
  }
}
.network {
  background: #edf2f5;
}
.network .section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  margin-bottom: 52px;
}
.network-intro {
  font-size: 16px;
  line-height: 2;
  color: #466074;
  max-width: 400px;
}
.network-composition {
  display: grid;
  grid-template-columns: minmax(230px, 0.7fr) minmax(0, 1.6fr);
  gap: 50px;
  align-items: center;
}
.network-kicker {
  font:
    600 12px/1.8 Inter,
    sans-serif;
  letter-spacing: 0.16em;
  color: #6a7e8d;
  margin: 0 0 32px;
}
.network-kicker span {
  display: block;
  font-family: "Noto Sans JP", sans-serif;
  letter-spacing: 0.04em;
}
.network-steps {
  padding: 0;
  margin: 0;
  list-style: none;
}
.network-steps li {
  display: flex;
  gap: 17px;
  padding: 24px 0;
  border-top: 1px solid #c9d4dc;
  transition: opacity 0.35s;
}
.network-step-number {
  font:
    500 13px/2 Inter,
    sans-serif;
  color: #718598;
}
.network-steps small {
  font:
    600 11px/1.6 Inter,
    sans-serif;
  letter-spacing: 0.16em;
}
.network-steps h3 {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: clamp(20px, 2vw, 27px);
  line-height: 1.5;
  margin: 8px 0;
}
.network-steps p {
  font-size: 14px;
  line-height: 1.8;
  color: #536b7c;
  margin: 0;
}
.network-steps .is-current .network-step-number {
  color: #13618c;
}
.network-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 20px;
}
.network-replay {
  display: flex;
  gap: 30px;
  align-items: center;
  min-height: 44px;
  padding: 10px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #79909f;
  color: #102e48;
  font:
    600 14px "Noto Sans JP",
    sans-serif;
  cursor: pointer;
}
.network-replay:disabled {
  opacity: 0.5;
  cursor: default;
}
.network-figure {
  margin: 0;
  min-width: 0;
}
.network-canvas {
  scroll-margin-top: 0;
  background: #102e48;
  border-radius: 2px;
  isolation: isolate;
}
.network-map {
  display: block;
  width: 100%;
  height: auto;
  max-height: 760px;
}
.network-land {
  fill: #25475e;
  stroke: #55758b;
  stroke-width: 0.7;
}
.network-prefecture {
  fill: #607c8e;
  stroke: #8ba9b9;
  stroke-width: 1;
}
.network-route {
  fill: none;
  stroke-width: 2;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  opacity: 0.72;
}
.inbound-route {
  stroke: #73c4ed;
}
.outbound-route {
  stroke: #e4c48a;
}
.network-port {
  fill: #73c4ed;
}
.network-region {
  fill: #e4c48a;
}
.network-map text {
  font:
    500 17px "Noto Sans JP",
    sans-serif;
  stroke: #102e48;
  stroke-width: 4;
  paint-order: stroke;
  stroke-linejoin: round;
}
.network-region text {
  font-size: 18px;
}
.network-halo {
  fill: #e4c48a;
  opacity: 0.16;
  transform-box: fill-box;
  transform-origin: center;
}
.network-hub-dot {
  fill: #f7e4bd;
  stroke: #fff;
  stroke-width: 2;
}
.network-hub-leader {
  stroke: #ccdce5;
  stroke-width: 1;
  fill: none;
}
.network-hub text {
  font-size: 25px;
  font-weight: 700;
  fill: #fff;
}
.network-hub tspan {
  font-size: 19px;
  font-weight: 500;
}
.network-map .network-island-label {
  fill: #a2b5c3;
  font-size: 17px;
}
.network-map .network-watermark {
  font:
    500 20px Inter,
    sans-serif;
  letter-spacing: 0.3em;
  fill: #7391a6;
  stroke: none;
}
.network-phase {
  position: absolute;
  z-index: 2;
  top: 26px;
  left: 27px;
  color: #fff;
  pointer-events: none;
}
.network-phase > span {
  display: block;
  font:
    500 10px/1.7 Inter,
    sans-serif;
  letter-spacing: 0.15em;
  color: #9ab5c8;
}
.network-phase strong {
  font-size: 17px;
  font-weight: 500;
  line-height: 2;
}
.network-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding: 18px 0;
  font:
    500 12px/1.8 Inter,
    "Noto Sans JP",
    sans-serif;
}
.network-legend > span {
  display: flex;
  align-items: center;
  gap: 9px;
}
.network-disclaimer {
  flex-basis: 100%;
  margin: 8px 0 0;
  font: 400 13px/1.9 var(--font-body);
  color: #445d70;
}
.network-key {
  display: inline-block;
  width: 9px;
  height: 9px;
  flex-shrink: 0;
}
.inbound-key {
  background: #287ca3;
  border-radius: 50%;
}
.outbound-key {
  background: #967335;
  transform: rotate(45deg);
}
.network-notes {
  border-top: 1px solid #c9d4dc;
  padding-top: 24px;
  margin-top: 30px;
  color: #445d70;
}
.network-notes p {
  font-size: 14px;
  line-height: 1.9;
  margin: 0 0 8px;
}
.network-notes p + p,
.network-notes small {
  font-size: 12px;
  line-height: 1.9;
}
.network-notes a {
  text-decoration: underline;
}
.network-ready [data-network-state="pending"] .network-route,
.network-ready [data-network-state="pending"] .network-port,
.network-ready [data-network-state="pending"] .network-region {
  opacity: 0;
}
.network-ready [data-network-state="pending"] .network-route {
  stroke-dashoffset: 1;
}
.network-running .network-port {
  animation: network-dot 0.35s ease both;
  animation-delay: calc(0.6s + var(--point-order) * 0.075s);
}
.network-running .inbound-route {
  animation: network-route 1.45s cubic-bezier(0.3, 0.1, 0.2, 1) both;
  animation-delay: calc(1.15s + var(--route-order) * 0.025s);
}
.network-running .network-halo {
  animation: network-hub 0.45s ease both;
  animation-delay: 2.8s;
}
.network-running .outbound-route {
  animation: network-route 1.65s cubic-bezier(0.3, 0.1, 0.2, 1) both;
  animation-delay: calc(3.25s + var(--route-order) * 0.025s);
}
.network-running .network-region {
  animation: network-dot 0.3s ease both;
  animation-delay: calc(4.65s + var(--point-order) * 0.025s);
}
@keyframes network-dot {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes network-route {
  0% {
    stroke-dashoffset: 1;
    opacity: 0;
  }
  8% {
    opacity: 0.95;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 0.72;
  }
}
@keyframes network-hub {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.16;
  }
  50% {
    transform: scale(1.5);
    opacity: 0.4;
  }
}
.motion-paused [data-sweep]::after {
  display: none;
}
.motion-paused .network-map * {
  animation: none !important;
}
@media (max-width: 1100px) {
  .network-composition {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 28px;
  }
}
@media (max-width: 800px) {
  .network-composition {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }
  .network-figure {
    order: -1;
    width: 100%;
  }
  .network-guide {
    width: 100%;
  }
  .network-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .network-steps li {
    gap: 10px;
  }
  .network-kicker {
    margin-bottom: 18px;
  }
  .network .section-head {
    flex-direction: column;
    align-items: start;
    gap: 20px;
  }
  .network-intro {
    font-size: 16px;
  }
}
@media (max-width: 600px) {
  .network-canvas {
    padding-top: 46px;
  }
  .network .section-head {
    margin-bottom: 30px;
  }
  .network-steps {
    display: block;
  }
  .network-steps li {
    padding: 18px 0;
    gap: 18px;
  }
  .network-steps h3 {
    font-size: 23px;
  }
  .network-phase {
    top: 18px;
    left: 18px;
  }
  .network-phase strong {
    font-size: 14px;
  }
  .network-phase > span {
    font-size: 9px;
  }
  .network-port text {
    display: none;
  }
  .network-region text {
    font-size: 36px;
  }
  .network-region[data-point-id="region-4"] text,
  .network-region[data-point-id="region-6"] text {
    display: none;
  }
  .network-hub text {
    font-size: 38px;
  }
  .network-hub tspan {
    font-size: 32px;
  }
  .network-map .network-island-label {
    font-size: 32px;
  }
  .network-legend {
    display: grid;
    font-size: 11px;
    gap: 8px;
  }
  .sweep-running::after {
    animation-name: diagonal-sweep-mobile;
    animation-duration: 0.5s;
  }
}
@keyframes diagonal-sweep-mobile {
  0% {
    opacity: 0;
    transform: translate(56%, 34%);
  }
  8%,
  70% {
    opacity: 0.95;
  }
  100% {
    opacity: 0;
    transform: translate(-56%, -34%);
  }
}
@media (prefers-reduced-motion: reduce) {
  [data-sweep]::after {
    display: none;
  }
  .network-map * {
    animation: none !important;
  }
  .network-ready [data-network-state="pending"] .network-route,
  .network-ready [data-network-state="pending"] .network-port,
  .network-ready [data-network-state="pending"] .network-region {
    opacity: 1;
    stroke-dashoffset: 0;
  }
  .network-steps li {
    transition: none;
  }
}
