:root {
  color-scheme: light;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  color: #414141;
  background: #d8d8d8;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 5px; }
a:focus-visible, button:focus-visible, .record-photo:focus-visible {
  outline: 2px solid #c95280;
  outline-offset: 6px;
}
.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 12px;
  background: #fff;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }
.record-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1360px;
  margin: 0 auto;
  padding: 32px clamp(24px, 5vw, 72px);
}
.record-logo { display: inline-flex; }
.record-logo img { display: block; width: 108px; height: auto; }
.back-link { font-size: 11px; letter-spacing: .06em; text-decoration: none; padding: 12px 0; }
.back-link span, .record-footer span { margin-left: 6px; }
.record-intro { padding: 52px 24px 90px; text-align: center; }
.record-intro h1 { margin: 0; font-size: clamp(17px, 2vw, 21px); font-weight: 500; letter-spacing: .18em; }
.record-intro p { margin: 18px 0 0; font-size: 11px; letter-spacing: .2em; color: #595959; }
.record-photos {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
  column-gap: 14px;
  row-gap: clamp(80px, 10vw, 140px);
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 36px;
  list-style: none;
}
.record-photo {
  width: 100%;
  max-width: var(--photo-width, 440px);
  aspect-ratio: var(--photo-ratio);
  margin: 0;
  background: #cecece;
}
.record-photo:nth-child(8n + 1) { grid-column: 2 / span 5; }
.record-photo:nth-child(8n + 2) { grid-column: 9 / span 4; margin-top: 130px; }
.record-photo:nth-child(8n + 3) { grid-column: 1 / span 4; margin-top: 30px; }
.record-photo:nth-child(8n + 4) { grid-column: 7 / span 5; margin-top: 90px; }
.record-photo:nth-child(8n + 5) { grid-column: 3 / span 4; margin-top: 90px; }
.record-photo:nth-child(8n + 6) { grid-column: 9 / span 4; }
.record-photo:nth-child(8n + 7) { grid-column: 1 / span 5; }
.record-photo:nth-child(8n + 8) { grid-column: 8 / span 4; margin-top: 120px; }
.record-photo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.record-photo.is-entering { animation: record-arrive .95s ease-out both; }
.photo-error { display: grid; align-content: center; height: 100%; margin: 0; padding: 22px; font-size: 12px; line-height: 1.9; text-align: center; color: #555555; }
.record-controls { min-height: 100px; margin: 80px 24px 0; text-align: center; }
.record-controls p, .fallback-note { font-size: 12px; line-height: 1.9; color: #595959; }
.record-controls button {
  min-height: 44px;
  margin-top: 12px;
  padding: 10px 25px;
  border: 1px solid #888888;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.record-controls button:hover { background: #cccccc; }
.fallback-note { margin: 0 24px 64px; text-align: center; }
.record-footer { padding: 60px 24px 64px; text-align: center; }
.record-footer a { font-size: 11px; letter-spacing: .08em; }
@keyframes record-arrive { from { opacity: .12; } to { opacity: 1; } }
@media (max-width: 600px) {
  .record-header { padding: 20px 22px; gap: 16px; }
  .record-logo img { width: 88px; }
  .back-link { font-size: 10px; }
  .record-intro { padding: 46px 20px 70px; }
  .record-intro h1 { font-size: 17px; }
  .record-intro p { margin-top: 16px; font-size: 10px; }
  .record-photos { display: flex; flex-direction: column; gap: 66px; padding: 0 24px; }
  .record-photo:nth-child(n) { width: 78%; max-width: 300px; margin-top: 0; }
  .record-photo:nth-child(4n + 1) { align-self: flex-start; }
  .record-photo:nth-child(4n + 2) { align-self: flex-end; width: 65%; }
  .record-photo:nth-child(4n + 3) { align-self: center; width: 72%; }
  .record-photo:nth-child(4n + 4) { align-self: flex-end; }
  .record-controls { margin-top: 60px; }
  .record-footer { padding-top: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .record-photo.is-entering { animation: none; }
}
