/* デジタルブック用CSS */
.book {
    display: grid;
    margin: 0 auto;
    grid-template-columns: 50px auto 50px;
    padding: 0 2%;
}
.button_previous{
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 50;
}
.button_next{
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 50;
}
.arrow {
    display: flex;
}
.arrow:hover {
    background-color: rgba(132, 132, 132, 0.5);
    color: white;
}
.arrow_img {
    width: 50px;
    height: 50px;
}

.page_1 {
    width: 100%;
    aspect-ratio: 7/5;
}
.page_2 {
    width: 100%;
    aspect-ratio: 11/4;
}
.page_3 {
    width: 100%;
    aspect-ratio: 33/8;
}
.page_4 {
    width: 100%;
    aspect-ratio: 11/2;
}
.page_5 {
    width: 100%;
    aspect-ratio: 48/7;
}
.menues{
    
    margin: 2%;
}
.menu {
    margin: 0 10%;
    width: auto;
    display: flex;
    justify-content: center;
}
.menu_list{
    width: 80%;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    background-color: #f8f9fa;
    padding: 20px 0 20px;
}
.menu_list .menu_shelf{
    width: auto;
    margin: 0 2%;
    font-size: 20px;
}
.menu a{
    color: #8b4513;
    text-decoration: underline;
}

.d-none{
    display: none;
}

.link-overlay{
    position: absolute;
    top: 8.5%; /* 調整してください */
    right: 5%; /* 調整してください */
    width: 200px; /* 調整してください */
    height: 50px; /* 調整してください */
    background-color: rgba(0, 0, 0, 0); /* 透明 */
    cursor: pointer;
    z-index: 100;
}
.btn_back a {
    align-items: center;
    background: black;
    bottom: 0;
    color: white;
    display: inline-flex;
    font-size: 18px;
    line-height: 1.1;
    margin: 0 auto;
    padding: 8px 0.5em;
    position: fixed;
    right: 15px;
    text-decoration: none;
    width: fit-content;
    z-index: 999;
}
.btn_back a:after {
    border-right: 3px solid white;
    border-top: 3px solid white;
    content: '';
    display: block;
    height: 10px;
    margin-left: 5px;
    margin-top: 2px;
    transform: rotate(45deg);
    width: 10px;
}

/* 文字フォントの設定 */
* {
    font-family: '游明朝','Yu Mincho',YuMincho,'Hiragino Mincho Pro',serif;
}
@media only screen and (max-width: 767px){
    .book{
        grid-template-columns: 25px auto 25px;
    }
    .arrow_img{
        width: 25px;
        height: 25px;
    }
    .page_1{
        aspect-ratio: 7/10;
    }
    .page_2{
        aspect-ratio: 11/8;
    }
    .page_3{
        aspect-ratio: 33/16;
    }
    .page_4{
        aspect-ratio: 11/4;
    }
    .page_5{
        aspect-ratio: 24/7;
    }
    .btn_back a {
        font-size: 16px;
    }
}
@media only screen and (max-width: 480px){
    .menu_list .menu_shelf{
        font-size: 16px;
    }
}
