.popup-notice {
  position: fixed;
  z-index: 45;
  right: var(--gutter, 3.65vw);
  bottom: max(1.5rem, env(safe-area-inset-bottom));
  width: min(25rem, calc(100% - 2 * var(--gutter, 3.65vw)));
  max-height: calc(100dvh - var(--header-height, 5rem) - 3rem);
  overflow: auto;
  padding: 1.5rem;
  background: var(--paper, #fffefa);
  color: var(--red, #bb3e26);
  border: 1px solid currentColor;
  box-shadow: 0 12px 36px rgb(38 35 31 / 14%);
  animation: popup-notice-in .2s ease-out;
}
.popup-notice[hidden] { display: none; }
.popup-notice-close {
  position: absolute;
  right: .5rem;
  top: .5rem;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: 1.8rem/1 'DM Sans', sans-serif;
  cursor: pointer;
}
.popup-notice .popup-notice-label {
  margin: 0 2rem .75rem 0;
  font: .875rem/1.5 'IBM Plex Mono', monospace;
}
.popup-notice h2 {
  margin: 0 1rem 1rem 0;
  font: 2.1rem/1.1 'Anton', sans-serif;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
.popup-notice p { font: 1rem/1.5 'DM Sans', sans-serif; margin: 0 0 .75rem; }
.popup-notice-heading { display:grid; grid-template-columns:6rem minmax(0,1fr); align-items:center; gap:1rem; margin-bottom:1rem; }
.popup-notice-photo { display:block; width:100%; aspect-ratio:1; height:auto; object-fit:cover; }
.popup-notice-heading h2 { margin:0; font-size:1.7rem; }
.popup-notice .popup-notice-place { font-weight: 600; }
.popup-notice .popup-notice-details { margin-bottom: 1.25rem; }
.popup-notice-book {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .75rem 1rem;
  background: var(--red, #bb3e26);
  color: var(--paper, #fffefa);
  font: 500 .9375rem/1.5 'IBM Plex Mono', monospace;
  text-decoration: none;
  text-transform: uppercase;
}
.popup-notice-book:hover { background: var(--ink, #26231f); }
.popup-notice-close:hover { background: rgb(187 62 38 / 8%); }
.popup-notice :focus-visible { outline: 2px solid var(--red, #bb3e26); outline-offset: 4px; }
@keyframes popup-notice-in { from { opacity: 0; transform: translateY(.5rem); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 760px) {
  .popup-notice { left: var(--gutter, 5vw); right: var(--gutter, 5vw); width: auto; padding: 1.25rem; bottom: max(1rem, env(safe-area-inset-bottom)); max-height: min(70dvh, calc(100dvh - var(--header-height, 5rem) - 2rem)); }
  .popup-notice h2 { font-size: 1.8rem; margin-bottom: .75rem; }
  .popup-notice p { margin-bottom: .5rem; }
  .popup-notice .popup-notice-details { margin-bottom: 1rem; }
}
@media (prefers-reduced-motion: reduce) { .popup-notice { animation: none; } }
