* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 74px;
}

body {
  margin: 0;
  color: #222;
  background: #fff;
  font-family: Arial, "Noto Sans JP", sans-serif;
}

a {
  color: #222;
}

.site-header {
  max-width: 1080px;
  margin: 0 auto;
  padding: 36px 20px 28px;
  text-align: center;
}

.site-header h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
}

.site-header p {
  margin: 8px 0 0;
  color: #777;
  font-size: 12px;
}

.year-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}

.year-nav-inner {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 11px 20px;
}

.year-nav-inner > span {
  flex: 0 0 auto;
  padding-top: 3px;
  color: #777;
  font-size: 12px;
}

#yearLinks {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
}

#yearLinks a {
  padding: 2px 0;
  font-size: 12px;
  text-decoration: none;
}

#yearLinks a:hover,
#yearLinks a:focus-visible {
  text-decoration: underline;
}

.archive {
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 20px 80px;
}

.year-section {
  padding: 34px 0 48px;
  border-bottom: 1px solid #ddd;
}

.year-section:last-child {
  border-bottom: 0;
}

.year-section h2 {
  margin: 0 0 18px;
  font-size: 22px;
  font-weight: 600;
}

.cover-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cover-item a {
  display: block;
  text-decoration: none;
}

.cover-item figure {
  margin: 0;
}

.cover-image {
  aspect-ratio: 0.72;
  overflow: hidden;
  background: #f3f3f3;
  border: 1px solid #ddd;
}

.cover-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cover-item figcaption {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.cover-item a:hover figcaption,
.cover-item a:focus-visible figcaption {
  text-decoration: underline;
}

.image-error {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 12px;
  color: #999;
  font-size: 11px;
  text-align: center;
}

.site-footer {
  padding: 28px 20px 40px;
  color: #777;
  background: #f6f6f6;
  border-top: 1px solid #ddd;
  font-size: 11px;
  text-align: center;
}

.site-footer p {
  margin: 0 0 12px;
}

.site-footer a {
  color: #555;
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 48px;
  }

  .site-header {
    padding-top: 28px;
  }

  .site-header h1 {
    font-size: 20px;
  }

  .year-nav-inner {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .year-nav-inner > span {
    display: none;
  }

  #yearLinks {
    width: max-content;
    flex-wrap: nowrap;
    gap: 18px;
  }

  .archive {
    padding-right: 14px;
    padding-left: 14px;
  }

  .cover-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px 10px;
  }

  .cover-item figcaption {
    font-size: 11px;
  }
}

@media (max-width: 460px) {
  .cover-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

