/* ページ専用。色・余白・文字サイズはここで調整してください。 */
.anniv-page {
  --anniv-blue: #819bb8;
  --anniv-ink: #41474b;
  color: var(--anniv-ink);
}
#main.anniv-page {
  padding-top: 0;
}
#main.anniv-page #content {
  width: 100%;
  max-width: none;
  padding: 0;
}
.anniv-page *,
.anniv-dialog * {
  box-sizing: border-box;
}
.anniv-page [hidden],
.anniv-dialog [hidden] {
  display: none !important;
}
.anniv-kv {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 640px;
}
#wrap img.anniv-kv__background {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
}

.anniv-kv__logo {
  position: absolute;
  z-index: 2;
  top: 4%;
  left: 4%;
  filter: drop-shadow(0px 0px 5px white) drop-shadow(0px 0px 5px white)
    drop-shadow(0px 0px 5px white);
}

.anniv-kv__callout {
  position: absolute;
  right: 2%;
  top: 4%;
  filter: drop-shadow(0px 0px 6px white) drop-shadow(0px 0px 6px white)
    drop-shadow(0px 0px 6px white);
}

.anniv-kv__copy {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  backdrop-filter: blur(10px);
  box-shadow: 0.5rem 0.5rem 1rem rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.2);
  padding: 4rem 5rem;
  border-radius: 1rem;
}

#wrap img.anniv-kv__thanks {
  max-width: 30rem;
}

#main.anniv-page h1 {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(24px, 2.5vw, 42px);
  font-weight: 400;
  line-height: 1.6;
  margin: 0 0 1.25rem;
  letter-spacing: 0.09em;
}

.anniv-gallery {
  max-width: 1440px;
  margin: auto;
  padding: 4rem 24px;
}
.anniv-gallery__heading {
  text-align: center;
  margin-bottom: 2rem;
}
#main.anniv-page .anniv-gallery__eyebrow {
  color: var(--anniv-blue);
  letter-spacing: 0.25em;
  font-size: 14px;
  margin-bottom: 1rem;
}
#main.anniv-page h2 {
  font-family: "Noto Serif JP", serif;
  font-weight: 400;
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: 0.1em;
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
}
#main.anniv-page h2::first-letter {
  color: inherit;
}
#main.anniv-page .anniv-gallery__help {
  font-size: 13px;
  line-height: 1.6;
}
#main.anniv-page .anniv-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.anniv-card {
  margin: 0;
  padding: 0;
  min-width: 0;
}
.anniv-card__link {
  display: block;
  position: relative;
  aspect-ratio: 560/396;
  background: #f4f6f9;
  transition: opacity 0.2s;
}
.anniv-card__link:hover {
  opacity: 0.8;
}
#wrap #main .anniv-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.anniv-card__count {
  position: absolute;
  right: 8px;
  bottom: 8px;
  border-radius: 3px;
  background: rgb(255 255 255 / 95%);
  padding: 3px 8px;
  font-size: 12px;
  color: #41474b;
}
.anniv-gallery__footer {
  margin-top: 2rem;
  text-align: center;
}
#main.anniv-page .anniv-more {
  cursor: pointer;
  border: 0;
  border-radius: 40px;
  padding: 1rem 4rem;
  background: var(--anniv-blue);
  color: #fff;
  font: inherit;
  letter-spacing: 0.12em;
}
#main.anniv-page .anniv-gallery__status {
  margin-top: 1rem;
  font-size: 12px;
}
.anniv-empty {
  text-align: center;
}
.anniv-modal-open {
  overflow: hidden;
}
.anniv-dialog {
  border: none;
  padding: 0;
  width: min(1120px, calc(100vw - 40px));
  max-width: none;
  max-height: calc(100dvh - 40px);
  margin: auto;
  background: #f8fafc;
  color: #41474b;
  border-radius: 8px;
  overscroll-behavior: contain;
}
.anniv-dialog::backdrop {
  background: rgb(25 31 39 / 76%);
}
.anniv-dialog__inner {
  padding: 16px 24px;
}
.anniv-dialog__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 12px;
}
.anniv-dialog__header h2 {
  margin: 0;
  padding: 0;
  font-size: 16px;
  font-weight: 400;
}
.anniv-dialog button,
.anniv-dialog__actions a {
  font: inherit;
  cursor: pointer;
  color: inherit;
  background: #fff;
  border: 1px solid #c7d1dc;
  padding: 9px 14px;
  border-radius: 5px;
  text-decoration: none;
  line-height: 1.4;
}
.anniv-dialog .anniv-dialog__close {
  font-size: 28px;
  line-height: 1;
  padding: 7px 12px;
  border: 0;
}
.anniv-viewer {
  height: min(65dvh, 720px);
  overflow: auto;
  position: relative;
  background: #edf1f6;
  touch-action: pan-x pan-y pinch-zoom;
}
#wrap .anniv-viewer__image,
.anniv-dialog .anniv-viewer__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  margin: 0;
  max-width: none;
}
#wrap .anniv-viewer.is-zoomed .anniv-viewer__image,
.anniv-dialog .anniv-viewer.is-zoomed .anniv-viewer__image {
  width: max(1600px, 160%);
  height: auto;
  max-width: none;
}
.anniv-viewer[aria-busy="true"]::before {
  content: "読み込み中…";
  position: absolute;
  inset: 40% 0 auto;
  text-align: center;
  font-size: 14px;
}
.anniv-viewer__error {
  padding: 2rem;
  text-align: center;
}
.anniv-dialog__pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 14px;
}
.anniv-dialog__pagination p {
  margin: 0;
  white-space: nowrap;
  font-size: 14px;
}
.anniv-dialog button:disabled {
  opacity: 0.35;
  cursor: default;
}
.anniv-dialog__actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 12px;
  font-size: 14px;
}
.anniv-page a:focus-visible,
.anniv-page button:focus-visible,
.anniv-dialog :focus-visible {
  outline: 3px solid #365f89;
  outline-offset: 4px;
}
.anniv-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (max-width: 767px) {
  .anniv-kv {
    min-height: 70vh;
    height: 70vh;
    overflow: visible;
  }
  .anniv-kv__background {
    opacity: 0.7;
  }
  .anniv-kv__logo {
    width: 40%;
    translate: -50% 0;
    left: 50%;
  }
  .anniv-kv__callout {
    width: 30%;
    top: 2%;
  }
  #main.anniv-page .anniv-kv__copy {
    padding: 2rem 1rem;
    width: 96%;
    top: 33rem;
    text-align: center;
    h1 {
      font-size: 1.8rem;
    }
    p {
      font-size: 1.2rem;
    }
  }
  #wrap img.anniv-kv__thanks {
    max-width: 20rem;
    display: block;
    margin: 0 auto;
  }
  .anniv-gallery {
    padding: 3rem 16px;
  }
  #main.anniv-page .anniv-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .anniv-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
  }
  .anniv-dialog__inner {
    padding: 12px;
  }
  .anniv-dialog__pagination {
    gap: 10px;
  }
  .anniv-dialog__pagination button {
    font-size: 12px;
    padding: 10px 8px;
  }
  .anniv-viewer {
    height: 56dvh;
  }
}
@media (prefers-reduced-motion: reduce) {
  .anniv-card__link {
    transition: none;
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .anniv-kv__copy {
    top: 64%;
    width: 90%;
    padding: 2rem 3rem;
  }
}
