@charset "utf-8";
/* CSS Document */
/*〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓
モーダル
〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓*/

.modal-container {
  opacity: 0;
  visibility: hidden;
  /* 初期状態で非表示 */
  position: fixed;
  top: 0;
  left: 0;
  padding: 6rem;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  z-index: 9999;
  transition: 0.3s;
  overflow-y: scroll;
  box-sizing: border-box;
  /* overflowスクロールバーカスタム */
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.3) rgba(0, 0, 0, 0.1);
}

/* overflowスクロールバーカスタム */
.modal-container::-webkit-scrollbar {
  width: 0.8rem;
  background-color: rgba(0, 0, 0, 0.1);
}

.modal-container::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.3);
}

.modal-container.active {
  opacity: 1;
  visibility: visible;
  /* activeクラスが付与されたときに表示 */
}

/* 閉じるボタン */
.modal-close {
  cursor: pointer;
  position: absolute;
  top: 1.6rem;
  right: 1.6rem;
  font-size: 0;
  background-color: var(--color-gold);
  border-radius: 999px;
  width: 4.2rem;
  aspect-ratio: 1/1;
  /*   transform: translate(40%, -40%); */
}

.modal-close::after,
.modal-close::before {
  content: "";
  display: block;
  position: absolute;
  width: 50%;
  height: 1px;
  background-color: #fff;
  top: 50%;
  left: 50%;
  margin: auto;
}

.modal-close::after {
  transform: translate(-50%, 50%) rotate(45deg);
}

.modal-close::before {
  transform: translate(-50%, 50%) rotate(-45deg);
}

@media screen and (max-width: 480px) {
  .modal-container {
    padding: 2rem;
    scrollbar-width: none;
  }

  .modal-container::-webkit-scrollbar {
    width: 0;
  }

  /* 閉じるボタン */
  .modal-close {
    width: 3.2rem;
  }
}

/*--------------------*/
/* モーダルの中身 */
.modal-body {
  position: relative;
  background: #fff;
  padding: 4rem 2rem;
  width: 90%;
  margin: auto auto;
  box-sizing: border-box;
  @media screen and (max-width: 480px) {
    padding: 2rem;
    width: 100%;
    margin: auto;
  }
  .modal-content {
    max-width: 92rem;
    margin: auto;
    .entry_data {
      display: flex;
      align-items: center;
      gap: 2.3rem;
      margin-bottom: 1.7rem;
      flex-wrap: wrap;
      @media screen and (max-width: 480px) {
        margin-bottom: 1.4rem;
        gap: 1.2rem;
      }
      .media_name {
        font-size: 1.6rem;
        color: #707070;
        @media screen and (max-width: 480px) {
          font-size: 1.2rem;
        }
      }
      .term_list {
        display: flex;
        align-items: center;
        line-height: 1.75;

        .term_wrap {
          .term {
            min-width: 6em;
            border-color: #969696;
          }
        }
      }
    }
    .title_wrap {
      display: flex;
      align-items: center;
      gap: 2.4rem;
      padding-bottom: 2rem;
      border-bottom: 1px solid #bababa;
      margin: 0 0 2.8rem;
      @media screen and (max-width: 480px) {
        flex-direction: column;
        row-gap: 1.4rem;
        align-items: flex-start;
      }
      time {
        font-size: 2.4rem;
        color: #a6a6a6;
        font-weight: 600;
        @media screen and (max-width: 480px) {
          font-size: 1.6rem;
        }
      }
      h2 {
        font-size: 2.8rem;
        line-height: 1.75;
        @media screen and (max-width: 480px) {
          font-size: 1.8rem;
        }
      }
    }
    figure {
      /* max-width: 22.9rem; */
      margin: 3rem auto;
      img {
        display: block;
        margin: 0 auto;
        max-width: 100%;
        max-height: 80vh;
        width: auto;
        height: auto;
        object-fit: contain;
      }
    }
  }
}
