body {
  min-height: 100vh;
  /* mobile viewport bug fix */
  min-height: -webkit-fill-available;
}

html {
  height: -webkit-fill-available;
}
strong{
  font-weight: normal;
}
.header_top{
  overflow: hidden;
}
.book{
  background-color: #ecebf1;
}
button {
  background-color: transparent;
  cursor: pointer;
  border: none;
}


/* 아래의 모든 코드는 영역::코드로 사용 */
.scrollBar::-webkit-scrollbar {
    width: 4px;  /* 스크롤바의 너비 */
}
.scrollBar::-webkit-scrollbar-thumb {
  height: 30%; /* 스크롤바의 길이 */
  background: #eee; /* 스크롤바의 색상 */
  
  border-radius: 10px;
}
.scrollBar::-webkit-scrollbar-track {
  background: rgba(230, 230, 230, .1);  /*스크롤바 뒷 배경 색상*/
}

progress {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  max-width: 720px;
  height: 2px;
  border: none;
  background: transparent;
  margin: 0 auto;
}
progress::-webkit-progress-bar {
  background: transparent;
}
progress::-webkit-progress-value {
  background-color: #333;
}
progress::-moz-progress-bar {
  background-color: #333;
}

.sound_only {
  display: inline-block !important;
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 0;
  line-height: 0;
  border: 0 !important;
  overflow: hidden !important;
}
.inner{
  max-width: 720px;
  margin: 0 auto;
  height: 100%;
  padding-top: 56px;
  position: relative;
}
.header {
  position: fixed;
  width: 100%;
  z-index: 10;
}
.header .inner{
  padding: 16px;
  background-color: #fff;
  will-change: auto;
  display: grid;
  grid-template-columns: repeat(12,minmax(0,1fr));
  justify-content: center;
  align-content: start;
  transition: .25s padding linear;
}
.header.active .inner, .header_top .header .inner{
  padding: 4px 16px;
}
.header_top .header .inner{
  align-content: flex-start;
  line-height: 1;
}
.header .tit{
  will-change: auto;
  grid-column: span 8/ span 8;
  grid-column-start: 3;  
  font-size: 2.25rem;
  font-family: 'SC-6';
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
  transition: .25s transform linear;
}
.header .tit svg{
  will-change: auto;
  width: 54px;
  margin-right: .5rem;
  transition: 0.25s all linear;
}
.header.active .tit, .header_top .header .tit{
  color: #999;
  transform: scale(0.5);
}
.header.active .tit svg, .header_top .header .tit svg{
  fill: #999 !important;
}
.header .left{
  grid-column: span 2/ span 2;
  grid-column-start: 1;
  display: flex;
  align-items: center;
}
.btn_bookMark_list{
  width: 40px;
  height: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23333' class='bi bi-bookmark-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 2v13.5a.5.5 0 0 0 .74.439L8 13.069l5.26 2.87A.5.5 0 0 0 14 15.5V2a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  margin-right: 3px;
  opacity: 1;
  visibility: visible;
  transition: .25S opacity ease;
}
.header_top .btn_bookMark_list{
  visibility: hidden;
  opacity: 0;
}
.header.active .btn_bookMark_list, .header.active .left{
  opacity: .5;
}
.header .left{
  grid-column: span 2/ span 2;
  grid-column-start: 1;
  display: flex;
  align-items: center;
  justify-content: start;
}
.header .left a{
  display: flex;
  padding: 8px 0;
}
.header .left span{
  display: inline-block;
  text-indent: -99999em;
}
.header .left svg{
  fill: #333;
  width: 24px;
  height: 24px;
}
.book_menu {
  width: 50px;
  height: 50px;
  position: fixed;
  bottom: 10px;
  background-color: #fff;
  border-radius: 50%;
  z-index: 100;
  box-shadow: 0 4px 6px rgb(50 50 50 / 20%);
  left: 50%;
  margin-left: -340px;
}
.book_menu .icon_list{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  cursor: pointer;
}
.book_menu .icon_list span{
  display: block;
  width: 100%;
  height: 2px;
  background: #000;
  transition: all .3s;
  position: relative;
}
.book_menu .icon_list span + span {
  margin-top: 6px;
}
.book_menu .icon_list span:nth-child(2){
  width: 80%;
  margin-right: 20%;
}
.book_menu.active .icon_list span:nth-child(1) {
	animation: ease .5s top forwards;
}

.book_menu.not-active .icon_list span:nth-child(1) {
	animation: ease .5s top-2 forwards;
}

.book_menu.active .icon_list span:nth-child(2) {
	animation: ease .5s scaled forwards;
}

.book_menu.not-active .icon_list span:nth-child(2) {
	animation: ease .5s scaled-2 forwards;
}

.book_menu.active .icon_list span:nth-child(3) {
	animation: ease .5s bottom forwards;
}

.book_menu.not-active .icon_list span:nth-child(3) {
	animation: ease .5s bottom-2 forwards;
}


@keyframes top {
  0% {
    top: 0;
    transform: rotate(0);
  }
  50% {
    top: 8px;
    transform: rotate(0);
  }
  100% {
    top: 8px;
    transform: rotate(45deg);
  }
}

@keyframes top-2 {
  0% {
    top: 8px;
    transform: rotate(45deg);
  }
  50% {
    top: 8px;
    transform: rotate(0deg);
  }
  100% {
    top: 0;
    transform: rotate(0deg);
  }
}

@keyframes bottom {
  0% {
    bottom: 0;
    transform: rotate(0);
  }
  50% {
    bottom: 8px;
    transform: rotate(0);
  }
  100% {
    bottom: 8px;
    transform: rotate(135deg);
  }
}

@keyframes bottom-2 {
  0% {
    bottom: 8px;
    transform: rotate(135deg);
  }
  50% {
    bottom: 8px;
    transform: rotate(0);
  }
  100% {
    bottom: 0;
    transform: rotate(0);
  }
}

@keyframes scaled {
  50% {
    transform: scale(0);
  }
  100% {
    transform: scale(0);
  }
}

@keyframes scaled-2 {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
  }
}
.header .right{
  grid-column: span 2/ span 2;
  grid-column-start: 11;
  display: flex;
  align-items: center;
  justify-content: end;
}
.font-size{
  display: flex;
  gap: 8px;
  justify-content: end;
}
.font-size [class^="fs_"]{
  width: 40px;
  height: 40px;
  color: #000;
  font-size: 24px;
}
.font-size [class^="fs_"] span{
  display: inline-block;
  text-indent: -9999em;
}
.book_cover{
  height: calc(100vh - 56px);
  
}
.book_cover {
  padding-top: 144.4445%;
  background-repeat: no-repeat;
  position: relative;
  background-color: #fff;
  animation-duration: 1s;
  background-position: center top;
  animation-name: background_opacity;
  background-attachment: fixed;
}
@keyframes background_opacity {
  from{
    opacity: 0;
  }
  
  to{
    opacity: 1;
  }
}
.book_cover .text{
  position: absolute;
  top: 10%;
  left: 7.5%;
  font-size: 20px;
  font-family: 'SC-5';  
  line-height: 1.4;
  opacity: 0;
  animation-delay: 0.5s;
  animation-fill-mode: forwards;
  animation-duration: 1s;
  animation-name: text_ani;
}
.book_cover .tit {
  position: absolute;
  top: 16%;
  left: 7.5%;
  font-size: 48px;
  font-family: 'SC-6';
  color: #fff;
  line-height: 1.4;
  text-shadow: 0 3px 6px rgb(0 0 0 / 26%);
}
.book_cover .tit span {
  display: block;
  opacity: 0;
  animation-delay: 1s;
  animation-fill-mode: forwards;
  animation-duration: 1s;
  animation-name: text_ani;
}
.book_cover .tit span+span {
  animation-duration: 1.75s;
  animation-name: text_ani;
}
.book_cover .book {
  position: absolute;
  top: 37%;
  left: 7.5%;
  font-size: 48px;
  font-family: 'SC-6';
  color: #fff;
  line-height: 1.4;
  box-shadow: 0 10px 8px rgb(0 0 0 / 46%);
  opacity: 0;
  animation-delay: 2s;
  animation-duration: 1s;
  animation-fill-mode: forwards;
  animation-name: text_ani;
  width: 50%;
}
.book_cover .book img{
  width: 100%;
}
@keyframes text_ani {
  from{
    margin-top: 20px;
    opacity: 0;
  }
  
  to{
    margin-top: 0;
    opacity: 1;
  }
}
.inner .page{
  padding: 32px;
  background-color: #fff;  
  margin-bottom: .5rem;
  height: calc(100% - 50px);
  box-shadow: 0 -2px 5px rgb(50 50 50 / 10%);
}
.inner .page p{
  font-size: 1.125em;
  font-family: 'SC-5';
  text-align: justify;
}
.page{
  line-height: 1.8;
  opacity: 0;
  position: relative;
  top: 40px;
  transition: 0.5s top ease-in, 0.5s opacity ease-in;
}
.page.page_last {
  padding-bottom: 80px;
}
.page.show {
  opacity: 1;
  top: 0;
}
.page h1.tit{
  font-size: 2em;
  font-family: 'SC-6';
  text-align: center;
  margin-bottom: 1em;
}
.page h2.tit{
  font-size: 1.3em;
  font-family: 'SC-6';
  text-align: center;
  margin-bottom: 1em;
}
.pg_num{
  text-align: center;
  margin-top: 1em;
  color: #999;
}

.main-menu{
  grid-column: span 12/ span 12;
  height: calc(100% - 30px);
  display: none;
}
.header_top .main-menu{
  display: block;
  position: fixed;
  top: 45px;
  margin-top: 1rem;
  width: 100%;
  max-width: 720px;
  z-index: 10;
  background-color: #fff;
}
.main-menu ul{
  overflow: auto;
  height: calc(100vh - 65px);
  margin: 0;
  padding-bottom: 4rem;
}
.main-menu ul li a{
  display: flex;
  padding: 12px 24px;
  justify-content: center;
  align-items: center;
}
.main-menu ul li.active{
  background-color: #fafafa;
}
.main-menu ul li.active a{
  color: #007F98;
}
.main-menu ul li a strong{
  font-weight: normal;
  font-family: 'SC-6';
  width: calc(100% - 35px);
}
.main-menu ul li a span{
  color: #999;
  font-size: 0.875rem;
  width: 30px;
  text-align: right;
}
.page_num{
  text-align: center;
  color: #666;
  margin-top: 1rem;

}

.page_next{
  width: 50px;
  height: 50px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23000' class='bi bi-chevron-right' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 24px;
  position: absolute;
  bottom: 16px;
  right: 16px;
  z-index: 100;
  border-radius: 50%;
  box-shadow: 0 4px 6px rgb(50 50 50 / 20%);
}
.page_next span, 
.page_bookmark span, 
.btn_bookMark_list span,
.bookmark_list_box .book_date button span,
.bookmark_list .bookmark_header .close span{
  position: absolute;
  width: 0;
  font-size: 0;
  height: 0;
  overflow: hidden;
  top: -1px;
  left: -1px;
}
.page_bookmark{
  width: 30px;
  height: 30px;
  position: absolute;
  right: 24px;
  bottom: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23333' class='bi bi-bookmark' viewBox='0 0 16 16'%3E%3Cpath d='M2 2a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v13.5a.5.5 0 0 1-.777.416L8 13.101l-5.223 2.815A.5.5 0 0 1 2 15.5V2zm2-1a1 1 0 0 0-1 1v12.566l4.723-2.482a.5.5 0 0 1 .554 0L13 14.566V2a1 1 0 0 0-1-1H4z'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
}
.page_last .page_bookmark{
  bottom: 80px;
}
.page_bookmark.active{
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23333' class='bi bi-bookmark-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 2v13.5a.5.5 0 0 0 .74.439L8 13.069l5.26 2.87A.5.5 0 0 0 14 15.5V2a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2z'/%3E%3C/svg%3E");
}
@media (max-width: 720px){
  .book_cover {
    background-size: cover;
    background-position: center 20px;
  }
  .book_menu {
    width: 50px;
    height: 50px;
    position: fixed;
    bottom: 16px;
    box-shadow: 0 4px 6px rgb(50 50 50 / 20%);
    left: 16px;
    margin-left: 0;
  }
}
@media (max-width : 510px) {
  .header .tit{
    font-size: 1.25rem;
  }
  .header .tit svg{
    width: 30px;
  }
  /* .header.active .tit, .header_top .header .tit{
    font-size: 0.875rem;
  } */
  .font-size [class^="fs_"]{
    width: 30px;
    height: 30px;
  }
  .inner .page{
    padding: 32px 24px;
  }
  .book_cover .tit{
    font-size: 40px;
  }
  .header_top .main-menu{
    top: 20px;
  }
  .page_bookmark{
    right: 16px;
  }
  .btn_bookMark_list{
    margin-right: 0;
    width: 30px;
  }
}

/* 북마크 */
.bookmark_list{
  background-color: #fafafa;
  height: 100vh;
  position: fixed;
  top: 0;
  width: 100%;
  max-width: 720px;
  z-index: 100;
  display: none;
}
.bookmark_list.active{
  display: block;
}
.bookmark_list .bookmark_header{
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  position: relative;
  padding: 32px 32px 16px;
}
.bookmark_list .bookmark_header .close{
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23666' class='bi bi-x-lg' viewBox='0 0 16 16'%3E%3Cpath d='M2.146 2.854a.5.5 0 1 1 .708-.708L8 7.293l5.146-5.147a.5.5 0 0 1 .708.708L8.707 8l5.147 5.146a.5.5 0 0 1-.708.708L8 8.707l-5.146 5.147a.5.5 0 0 1-.708-.708L7.293 8 2.146 2.854Z'/%3E%3C/svg%3E");
  background-size: 28px;
  background-repeat: no-repeat;
  background-position: center;
}
.bookmark_list .bookmark_header .img_box{
  width: 60px;
  box-shadow: 0 5px 5px rgb(50 50 50 / 20%);
}
.bookmark_list .bookmark_header .img_box img{
  width: 100%;
}
.bookmark_list .bookmark_header .tit{
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.bookmark_list .bookmark_header .tit strong{
  font-size: 1.5rem;
  font-family: 'SC-5';
}
.bookmark_list .bookmark_header .tit span{
  font-size: 0.875rem;
  margin-bottom: 1rem;
  color: #666;
}
.bookmark_list_box .tit{
  color: #666;
  text-align: center;
  border-bottom: 1px solid #eee;
  padding-bottom: 1rem;
  margin: 0 32px;
}
.bookmark_list_box ul{
  overflow-y: auto;
  padding: 0 32px 32px;
}
.bookmark_list_box li{
  border-bottom: 1px solid #eee;
  padding: 8px 0;
}
.bookmark_list_box .book_info{
  padding: 8px 8px 4px;
  display: flex;
  justify-content: space-between;
  gap: .5rem;
}
.bookmark_list_box .book_info strong{
  font-family: 'SC-5';
}
.bookmark_list_box .book_info span{
  color: #999;
  min-width: 30px;
  text-align: right;
}
.bookmark_list_box .book_date{
  padding: 8px;
  display: flex;
  justify-content: space-between;
  color: #999;
  font-size: 0.875rem;
}
.bookmark_list_box .book_date button{
  width: 16px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23999' class='bi bi-trash' viewBox='0 0 16 16'%3E%3Cpath d='M5.5 5.5A.5.5 0 0 1 6 6v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5zm2.5 0a.5.5 0 0 1 .5.5v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5zm3 .5a.5.5 0 0 0-1 0v6a.5.5 0 0 0 1 0V6z'/%3E%3Cpath fill-rule='evenodd' d='M14.5 3a1 1 0 0 1-1 1H13v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V4h-.5a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1H6a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1h3.5a1 1 0 0 1 1 1v1zM4.118 4 4 4.059V13a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V4.059L11.882 4H4.118zM2.5 3V2h11v1h-11z'/%3E%3C/svg%3E");
  /* background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23000' class='bi bi-x-lg' viewBox='0 0 16 16'%3E%3Cpath d='M2.146 2.854a.5.5 0 1 1 .708-.708L8 7.293l5.146-5.147a.5.5 0 0 1 .708.708L8.707 8l5.147 5.146a.5.5 0 0 1-.708.708L8 8.707l-5.146 5.147a.5.5 0 0 1-.708-.708L7.293 8 2.146 2.854Z'/%3E%3C/svg%3E"); */
  background-repeat: no-repeat;
  background-position: center;
}
@media (max-width : 510px) {
  .bookmark_list .bookmark_header{
    padding: 16px;
  }
  .bookmark_list .bookmark_header .close{
    top: 8px;
    right: 8px;
    background-size: 20px;
  }
  .bookmark_list .bookmark_header .tit strong{
    font-size: 1.25rem;
  }
  .bookmark_list_box .tit{
    font-size: 0.8125rem;
    padding-bottom: 0.5rem;
  }
  .bookmark_list_box .book_info{
    font-size: 1rem;
  }
  .bookmark_list_box ul{
    padding: 0 16px 16px;
  }
  .bookmark_list_box .tit{
    margin: 0 16px;
  }
  .book_menu, .page_next{
    transform: scale(0.85);
  }
  .main-menu ul{
    padding-bottom: 7rem;
  }
}