:where(dialog, [popover]) {
  background: none;
  border: none;
  bottom: unset;
  color: inherit;
  left: unset;
  max-height: unset;
  max-width: unset;
  right: unset;
  top: unset
}

:where(dialog:not([open]):not([popover]), [popover]:not(:popover-open)) {
  display: none !important
}

.page-bnrArea {
  max-width: 1020px;
  padding: 0 20px;
  margin: 60px auto;

}

.page-bnrArea__btn {
  display: block;
  width: 100%;
  appearance: none;
  border: none;
  padding: 0;
  margin: 0;
  transition: opacity .3s ease;

  &:hover {
    opacity: .8;
    transition: opacity .3s ease;
  }
}

.page-modal__title,
.page-modal__box {
  font-weight: 800;
  padding: 15px;
  background: #000;
  color: #fff;

  small {
    display: block;
    font-size: 75%;
  }

  @media (max-width: 767px) {
    padding: 10px;
  }
}

.page-modal__box {
  font-weight: 400;
  margin-top: 40px;

  @media (max-width: 767px) {
    margin-top: 30px;
  }
}

.page-modal__subtitle {
  font-weight: 800;
  color: #fff;
}

.page-modal__list {
  margin-top: 1em;

  >li+li {
    margin-top: 0.5em;
  }
}

.page-modal__thumb {
  margin-top: 1em;
  margin-left: -15px;
  margin-right: -15px;
  margin-bottom: -15px;

  @media (max-width: 767px) {
    margin-left: -10px;
    margin-right: -10px;
    margin-bottom: -10px;
  }
}

/*  */
.page-modal-target {
  font-size: 16px;
  box-sizing: border-box;
  background-color: rgba(0, 0, 0, .77);
  height: 100%;
  position: fixed;
  width: 100%;
  z-index: 10;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 20px;

  @media (max-width: 767px) {
    padding: calc(10 / 375 * 100vw);
  }
}


.page-modal-target__bg {
  display: block;
  box-sizing: border-box;
  appearance: none;
  background: none;
  border: 0;
  cursor: default;
  height: 100%;
  margin: 0;
  padding: 0;
  position: absolute;
  width: 100%;
  z-index: 1;
  left: 0;
  top: 0;
}

.page-modal-target__inner {
  box-sizing: border-box;
  position: relative;
  z-index: 1;
  align-items: center;
  display: flex;
  height: -webkit-fill-available;
  justify-content: center;
  width: 600px;
  max-width: 600px;
  padding: 0;
  margin: auto;

  media (min-width: 1180px) {}

  @media (max-width: 767px) {
    padding: 0;
    margin: auto;
    width: calc(100% - 10px);
  }
}

.page-modal-close {
  appearance: none;
  border: none;
  background: transparent;
  border-radius: 0;
  align-items: center;
  display: flex;
  justify-content: center;
  line-height: 1;
  right: 0;
  top: 0;
  position: absolute;
  z-index: 9;
  font-size: 48px;
  width: 1em;
  height: 1em;

  @media (max-width: 767px) {
    top: 0;
    right: 0;
  }

  &::before {
    color: #fff;
    content: '';
    background: url(../img/modal-close.svg) no-repeat;
    background-size: 50%;
    background-position: center;
    font-weight: 700;
    text-align: center;
    align-items: center;
    display: flex;
    justify-content: center;
    line-height: 1;
    width: 100%;
    height: 100%;
    transform: rotate(0);
  }
}

.page-modal-contents {
  background: #fff;
  position: relative;
  width: 100%;
  margin: auto;
  max-height: 100%;
  overflow: auto;
  padding: 50px 30px;

  @media (max-width: 767px) {
    padding: 50px 10px;
  }
}
