.plans-hero--prints {
  --print-paper: #f5f2ec;
  --print-ink: #1b1c20;
  --focus-size: 20px;
  align-content: center;
  row-gap: var(--space-12);
}

.plans-hero--prints .section-header {
  margin-bottom: 0;
}

/* プリント */
.plans-prints {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: min(1040px, 100% - 40px);
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.plans-print-item {
  width: clamp(220px, 24vw, 320px);
  margin-inline: var(--space-2);
  animation: plansPrintDrop 0.9s var(--ease) both;
}

.plans-print-item:nth-child(1) { --tilt: -5deg; animation-delay: 0.5s; }
.plans-print-item:nth-child(2) { --tilt: 2deg; animation-delay: 0.68s; margin-top: var(--space-8); z-index: 1; }
.plans-print-item:nth-child(3) { --tilt: 5deg; animation-delay: 0.86s; }

.plans-print-item:hover,
.plans-print-item:focus-within {
  z-index: 3;
}

.plans-print {
  display: block;
  padding: var(--space-2) var(--space-2) 0;
  background: var(--print-paper);
  color: var(--print-ink);
  text-decoration: none;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.35);
  transform: rotate(var(--tilt));
  transition: transform 0.5s var(--ease);
}

.plans-print:visited {
  color: var(--print-ink);
}

.plans-print:hover,
.plans-print:focus-visible {
  transform: rotate(0deg) translateY(-8px) scale(1.04);
}

.plans-print:active {
  transform: rotate(0deg) scale(0.98);
}

.plans-print:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 4px;
}

.plans-print img {
  display: block;
  width: 100%;
  height: auto;
}

.plans-print-label {
  display: block;
  padding: var(--space-3) var(--space-1);
  font-family: var(--font-ja);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.04em;
}

@keyframes plansPrintDrop {
  from {
    opacity: 0;
    transform: translateY(-48px) scale(1.08);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* ピント枠 */
.plans-focus {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.plans-focus.is-on {
  opacity: 0.55;
}

.plans-focus.is-locked {
  animation: plansFocusLock 0.7s var(--ease);
}

.plans-focus span {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--focus-size);
  height: var(--focus-size);
  border: 0 solid var(--brand);
  transition: transform 0.45s var(--ease);
}

.plans-focus span:nth-child(1) { border-top-width: 2px; border-left-width: 2px; }
.plans-focus span:nth-child(2) { border-top-width: 2px; border-right-width: 2px; }
.plans-focus span:nth-child(3) { border-bottom-width: 2px; border-left-width: 2px; }
.plans-focus span:nth-child(4) { border-bottom-width: 2px; border-right-width: 2px; }

@keyframes plansFocusLock {
  0% { opacity: 1; }
  100% { opacity: 0.55; }
}

.plans-card-target {
  scroll-margin-top: 104px;
}

.plans-card-target:focus {
  outline: none;
}

@media (max-width: 640px) {
  .plans-hero--prints {
    row-gap: var(--space-10);
  }

  .plans-prints {
    flex-direction: column;
    align-items: stretch;
  }

  .plans-print-item {
    width: 66%;
    margin-inline: 0;
  }

  .plans-print-item:nth-child(1) { z-index: 3; }
  .plans-print-item:nth-child(2) { z-index: 2; align-self: flex-end; margin-top: calc(var(--space-8) * -1); }
  .plans-print-item:nth-child(3) { z-index: 1; margin-top: calc(var(--space-8) * -1); }

  .plans-print-item:hover,
  .plans-print-item:focus-within {
    z-index: 4;
  }
}

@media (prefers-reduced-motion: reduce) {
  .plans-print-item,
  .plans-focus.is-locked {
    animation: none;
  }

  .plans-print,
  .plans-focus,
  .plans-focus span {
    transition: none;
  }
}
