.cover-photo.hero-slideshow {
  min-width: 0;
  width: 100%;
}

.hero-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #eeeae3;
  box-shadow: 0 16px 30px -28px #403128;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

/* 表紙のスライド 5 枚だけは、あきらさんの指定で 16:9 の枠に合わせて最小限トリミングする（記事の写真は切らない） */
.cover-photo .hero-slide img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
}

.cover-photo .hero-caption {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding-top: 15px;
  font-size: 11px;
  letter-spacing: .08em;
}

.cover-photo .hero-caption > span:first-child {
  display: block;
  white-space: normal;
}

.cover-photo .hero-caption .hero-counter {
  display: block;
  flex-shrink: 0;
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--ink);
}

.hero-counter > span {
  color: var(--soft);
  margin-left: 6px;
}

.hero-controls,
.hero-dots,
.hero-playback {
  display: flex;
  align-items: center;
}

.hero-controls {
  justify-content: space-between;
  gap: 12px;
  margin-top: 3px;
}

.hero-controls button {
  display: grid;
  place-items: center;
  padding: 0;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--soft);
  cursor: pointer;
}

.hero-controls button:focus-visible {
  outline: 1px solid var(--accent-ink);
  outline-offset: -3px;
}

.hero-dots button {
  width: 32px;
}

.hero-dots button span {
  display: block;
  width: 20px;
  height: 2px;
  background: #c9c1b8;
  transition: background .3s;
}

.hero-dots button[aria-current="true"] span {
  background: var(--gradient);
}

.hero-dots button:hover span {
  background: var(--accent-ink);
}

.hero-playback button {
  width: 36px;
}

.hero-playback button:hover {
  color: var(--accent-ink);
}

.hero-playback svg {
  width: 17px;
  height: 17px;
}

.hero-slideshow .photo-note {
  top: calc(100% + 12px);
}

@media (max-width: 600px) {
  .cover-photo.hero-slideshow {
    width: auto;
    align-self: stretch;
  }

  .cover-photo .hero-caption {
    padding: 13px 24px 0;
    font-size: 10px;
  }

  .hero-controls {
    margin: 1px 19px 0;
  }
}

@media (max-width: 360px) {
  .cover-photo .hero-caption {
    padding-inline: 20px;
    font-size: 9px;
  }

  .hero-controls {
    margin-inline: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    transition: none;
  }
}
