.award-pdf-modal[hidden] {
  display: none;
}

.award-pdf-modal {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.64);
}

.award-pdf-modal,
.award-pdf-modal * {
  box-sizing: border-box;
}

.award-pdf-modal__panel {
  --award-modal-top-space: 24px;
  --award-modal-close-height: 46px;
  --award-modal-close-clearance: 24px;
  --award-modal-content-gap: 40px;
  --award-modal-button-height: 48px;
  --award-modal-bottom-space: 40px;
  --award-modal-side-space: 57.5px;
  --award-modal-preview-height: calc(
    95vh
    - var(--award-modal-top-space)
    - var(--award-modal-close-height)
    - var(--award-modal-close-clearance)
    - var(--award-modal-content-gap)
    - var(--award-modal-button-height)
    - var(--award-modal-bottom-space)
  );
  position: relative;
  width: min(100vw, calc(133.0856vh - 196px));
  height: 95vh;
  min-height: 0;
  overflow: hidden;
  outline: none;
  background: #fff;
  color: #070b1e;
}

.award-pdf-modal__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--award-modal-content-gap);
  width: 100%;
  height: 100%;
  margin: 0;
  padding:
    calc(
      var(--award-modal-top-space)
      + var(--award-modal-close-height)
      + var(--award-modal-close-clearance)
    )
    var(--award-modal-side-space)
    var(--award-modal-bottom-space);
}

.award-pdf-modal__preview {
  position: relative;
  flex: none;
  width: auto;
  max-width: 100%;
  height: var(--award-modal-preview-height);
  aspect-ratio: 1555 / 1110;
  overflow: hidden;
}

.award-pdf-modal__preview img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
}

.award-pdf-modal__open {
  display: flex;
  flex: none;
  gap: 14px;
  align-items: center;
  justify-content: center;
  width: 236px;
  height: 48px;
  border: 1px solid #070b1e;
  color: #070b1e;
  font-family: "Noto Serif JP", serif;
  font-size: 14px;
  line-height: 14px;
  letter-spacing: 3px;
  text-decoration: none;
  white-space: nowrap;
}

.award-pdf-modal__open img {
  display: block;
  width: 24px;
  height: 8px;
}

.award-pdf-modal__close {
  position: absolute;
  z-index: 2;
  top: 24px;
  right: 58px;
  width: 46px;
  height: 46px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  outline: none;
  cursor: pointer;
}

.award-pdf-modal__close::before,
.award-pdf-modal__close::after {
  position: absolute;
  top: 22px;
  left: -9px;
  width: 64px;
  height: 2px;
  background: #070b1e;
  content: "";
}

.award-pdf-modal__close::before {
  transform: rotate(45deg);
}

.award-pdf-modal__close::after {
  transform: rotate(-45deg);
}

.award-pdf-modal__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

body.is-award-modal-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .award-pdf-modal {
    align-items: center;
  }

  .award-pdf-modal__panel {
    width: 328px;
    min-height: 0;
    height: 344px;
  }

  .award-pdf-modal__content {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
  }

  .award-pdf-modal__preview {
    position: absolute;
    top: 40px;
    left: 7px;
    width: 314px;
    height: 224px;
    aspect-ratio: auto;
  }

  .award-pdf-modal__open {
    position: absolute;
    top: 280px;
    left: 46px;
  }

  .award-pdf-modal__close {
    top: 8px;
    right: 8px;
    width: 16px;
    height: 16px;
  }

  .award-pdf-modal__close::before,
  .award-pdf-modal__close::after {
    top: 7.5px;
    left: -3px;
    width: 22px;
    height: 1px;
  }
}
