/* 【全共通】ポップアップバナー */
.l-popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.l-popup.is-open {
  display: flex !important;
  animation: l-popup-in 0.25s ease;
}

@keyframes l-popup-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.l-popup__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
}

.l-popup__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: fit-content;
  max-width: min(800px, calc(100vw - 40px));
}

.l-popup__close {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  color: #242424;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.l-popup__close span {
  display: block;
  margin-top: -2px;
}

.l-popup__link {
  display: block;
  width: 100%;
}

.l-popup__link:hover {
  opacity: 0.9;
}

.l-popup__link img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(800px, calc(100vw - 40px));
  max-height: min(400px, calc(100dvh - 120px));
  object-fit: contain;
}

.l-popup__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
