/* 一コマアーカイブ */
.archive-note { font-size: 0.74rem; color: var(--c-ink-soft); margin: 8px 2px 0; }
.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.archive-cell {
  border-radius: var(--r-sm); overflow: hidden; box-shadow: var(--shadow-card);
  aspect-ratio: 3 / 2; background: var(--c-paper); position: relative;
}
.archive-cell img { width: 100%; height: 100%; object-fit: cover; }
.archive-cell__no {
  position: absolute; left: 4px; bottom: 4px;
  background: rgba(74, 63, 53, 0.72); color: #fff8ec;
  font-size: 0.56rem; font-weight: 800; border-radius: 999px; padding: 1px 7px;
}

/* ビューア */
.viewer-back {
  position: fixed; inset: 0; z-index: 85;
  background: rgba(40, 34, 28, 0.88);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  animation: fadeIn 0.2s ease;
  touch-action: pan-y;
}
.viewer-img { max-width: 94vw; max-height: 72dvh; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,0.5); }
.viewer-label { color: #fff8ec; font-size: 0.8rem; font-weight: 700; margin-top: 12px; }
.viewer-nav { display: flex; gap: 18px; margin-top: 14px; align-items: center; }
.viewer-nav button {
  background: rgba(255, 253, 246, 0.14); color: #fff8ec;
  border-radius: 999px; padding: 10px 22px; font-weight: 900; font-size: 1rem;
}
.viewer-close {
  position: absolute; top: calc(14px + env(safe-area-inset-top)); right: 16px;
  background: rgba(255, 253, 246, 0.14); color: #fff8ec;
  width: 40px; height: 40px; border-radius: 50%; font-size: 1.1rem; font-weight: 900;
}
