@charset "UTF-8";
/**
 * _responsive_config.scss
 * 画面を切り替えるブレークポイントの設定
 */
body.modal-active {
  overflow: hidden;
}

.modal-active .book-modal,
.modal-active .book-modal__mask {
  opacity: 1;
  visibility: visible;
}

.book-modal__mask {
  position: fixed;
  background: rgba(2, 2, 2, 0.5);
  inset: 0;
  opacity: 0;
  visibility: hidden;
  cursor: pointer;
  z-index: 9998;
}

.book-modal {
  position: fixed;
  inset: 0;
  margin: auto;
  padding: 40px 20px;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  height: -webkit-fit-content;
  height: -moz-fit-content;
  height: fit-content;
  max-width: 90vw;
  max-height: 80vh;
  text-align: center;
  background: #fff;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  box-sizing: border-box;
}
@media (max-width: 768px) {
  .book-modal {
    padding: 5.33vw 2.67vw;
  }
}
.book-modal img {
  display: block;
  margin: 0 auto;
}

.book-modal__ttl {
  margin-bottom: 0.5em;
  font-size: 2.4rem;
  font-weight: 700;
  color: #8C5056;
  line-height: 1.5;
}
@media (max-width: 768px) {
  .book-modal__ttl {
    font-size: 2rem;
  }
}

.book-modal__txt {
  margin-bottom: 20px;
  font-size: 1.8rem;
  line-height: 1.5;
}
@media (max-width: 768px) {
  .book-modal__txt {
    font-size: 1.6rem;
  }
}

.book-modal__open {
  color: #8C5056;
  text-decoration: underline;
}

.book-modal__close {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 0;
  width: 20px;
  height: 20px;
}
@media (max-width: 768px) {
  .book-modal__close {
    top: 2.67vw;
    left: 2.67vw;
    width: 4vw;
    height: 4vw;
  }
}
.book-modal__close img {
  display: block;
}

.l-book-contents {
  position: relative;
}
.l-book-contents .book-modal__open {
  position: absolute;
  left: 50%;
  bottom: 60px;
  transform: translateX(-50%);
  color: #7f7240;
  font-size: 3rem;
  font-weight: 700;
}
@media (max-width: 768px) {
  .l-book-contents .book-modal__open {
    bottom: 5.867vw;
    width: 100%;
    font-size: 4.533vw;
  }
}