button {
  padding: 0;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
  background-color: transparent;
  border: none;
  outline: none;
}
.c-box-modal__content {
  padding: 0;
  border: 0;
}
.c-box-modal__content::backdrop {
  cursor: default;
  background-color: hsla(0, 0%, 100%, 0);
}
.c-box-modal__content.c-box-modal__content--video {
  position: relative;
  inset: 0;
  margin: auto;
  box-sizing: border-box;
  width: min(calc(100vw - 48px), calc(150vh - 180px));
  max-width: 1200px;
  height: auto;
  aspect-ratio: 3/2;
  overflow: visible;
  background-color: #fff;
  border-radius: 24px;
}
@media print, screen and (min-width: 1024px) {
  .c-box-modal__content.c-box-modal__content--video {
    width: min(calc(100vw - 128px), calc(150vh - 240px));
  }
}
.c-box-modal__content.c-box-modal__content--video video {
  display: block;
  width: 100%;
  height: 100%;
  cursor: default;
  -o-object-fit: cover;
  object-fit: cover;
  background-color: #fff;
  border-radius: 24px;
  box-shadow: 0 0 0 2px #fff;
}
.c-box-modal__content[data-closable='true'] video,
.c-box-modal__content[data-closable='true']::backdrop {
  cursor: pointer;
}
.c-box-modal__content-inner {
  padding: 15px;
}
.c-box-modal__content-header {
  padding-right: 20px;
  font-size: 1.6rem;
  font-weight: 700;
}
@media print, screen and (min-width: 768px) {
  .c-box-modal__content-header {
    font-size: 1.8rem;
  }
}
.c-box-modal__content-close {
  position: absolute;
  top: -50px;
  right: 0;
  z-index: 10;
  width: -moz-fit-content;
  width: fit-content;
}
@media print, screen and (min-width: 1024px) {
  .c-box-modal__content-close {
    top: 0;
    right: -48px;
  }
}
@media print, screen and (max-width: 590px) {
  .c-box-modal__content-close {
    top: -36px;
    right: 0;
  }
}
.c-box-modal__content .c-box-modal__content-close-btn {
  display: block;
  padding: 0;
  visibility: hidden;
  background-color: transparent;
  border: none;
  opacity: 0;
  transition:
    opacity !important 0.6s ease,
    visibility 0.6s !important;
  will-change: opacity, visibility;
}
.c-box-modal__content-close-btn:focus-visible {
  outline: auto;
  outline-offset: 4px;
}
.c-box-modal__content-close-btn-img {
  display: block;
  width: 32px;
  height: 32px;
}
@media print, screen and (max-width: 590px) {
  .c-box-modal__content-close-btn-img {
    width: 24px;
    height: 24px;
  }
}
.c-box-modal__content-close-btn-img:focus-visible {
  animation: hoverPush 0.34s linear;
}
@media (hover: hover) and (pointer: fine) {
  .c-box-modal__content-close-btn-img:hover {
    animation: hoverPush 0.34s linear;
  }
}
@keyframes modalOpen {
  0% {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes fadeInBackdrop {
  0% {
    background-color: hsla(0, 0%, 100%, 0);
  }
  to {
    background-color: #fff;
  }
}
@keyframes modalClose {
  0% {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
@keyframes modalCloseFast {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  to {
    opacity: 0;
  }
}
@keyframes fadeOutBackdrop {
  0% {
    background-color: #fff;
  }
  to {
    background-color: hsla(0, 0%, 100%, 0);
  }
}
@keyframes modalSlideOut {
  0% {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(-40px);
  }
}
@keyframes modalSlideIn {
  0% {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.c-box-modal__content[open] {
  animation: modalOpen 0.4s ease-in forwards;
}
.c-box-modal__content[open]::backdrop {
  animation: fadeInBackdrop 0.2s ease-out forwards;
}
.c-box-modal__content.is-switching {
  animation: modalSlideOut 0.4s ease forwards;
}
#modalVideo2[open] {
  animation: modalSlideIn 0.4s ease forwards;
}
#modalVideo2[open]::backdrop {
  background-color: #fff;
  animation: none;
}
#modalVideo2.is-closing,
.c-box-modal__content.is-closing {
  animation: modalCloseFast 0.4s ease forwards;
}
#modalVideo1.is-closing::backdrop,
#modalVideo2.is-closing::backdrop {
  animation: fadeOutBackdrop 0.4s ease forwards;
}
.c-box-modal__content:focus {
  outline: none;
}
