@charset "UTF-8";
body {
    width: 100%;
    margin: 0;
    background-color: #fef8e0;
}
#wrapper {
    width: 80%;
    margin: 0 10%;
    overflow: hidden;
}
.book {
    padding-bottom: 20px;
}
#ref_link {
    font-size: smaller;
    text-align: center;
}
#title {
    margin: 8vh max((100% - 360px) / 2, 0px) 30px;
    width: min(360px, 100%);
    padding: 0;
}
.page_title {
    font-size: 2rem;
    font-weight: 400;
    font-family: 'Poppins', sans-serif;
}
.page_title:nth-child(1) {
    text-align: center;
    font-size: 3rem;
}
.page_title:nth-child(2) {
    text-align: center;
    font-size: 2rem;
}
.page_title:nth-child(3) {
    text-align: center;
    font-size: 2rem;
    color: red;
}
#title_image {
    border-radius: 10px;
    margin-bottom: calc(8vh - 20px);
}
#catch_text {
    margin-left: 50pt;
}
#about_image_set {
    margin-top: 10px;
    display: grid;
    grid-template-columns: 0.8fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}
#about_image_set img {
    border-radius: 10px;
    grid-row: 1/3;
}
#about_subtitle > p {
    line-height: 2em;
    text-align: justify;
    margin: 0;
}
#about_text {
    text-align: center;
}
#author_text {
    padding: 0 10px;
    text-align: left;
}
#toc_text {
     padding: 0 40px;   
}
.book h3 {
    font-size: 2.5rem;
    font-weight: 700;
    padding: 20px 0 5px 0;
    color: #74560b;
}
.book h4 {
    font-size: 1.8rem;
    font-weight: 300;
    padding: 10px 0 1px 0;
    color: #74560b;
}
.book p {
    padding-top: 5px;
}
#about_quote p {
    padding: 1rem !important;
    border-radius: 1em;
    font-style: italic;
    background-color: rgba(0,0,0,0.10);
}
.news_image {
    object-fit: contain;
    width: 100%;
}
#news p {
    border-bottom: dotted 1px black;
    margin: 0;
}
#news p:first-of-type {
    border-top: dotted 1px black;
}
#concept_text {
    text-align: justify;
}
.book_image {
    position: absolute;
    object-fit: cover;
    width: 100%;
    height: 100%;
}
#sns_wrapper {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    height: 2.5rem;
    width: 100%;
}
#sns_wrapper img {
    height: 2.5rem;
    width: 2.5rem;
    object-fit: contain;
}
#books_wrapper {
    width: 100%;
}
#books_wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(315px, 1fr));
    grid-auto-rows: 1fr;
    gap: 10px;
}
#books_wrapper a {
    position: relative;
    height: 0;
    padding-bottom: 100%;
}
.chap {
    font-weight: bolder;
}
.sec {
    margin: 0 0 0 1em;
    padding: 0 !important;
}
@media screen and (min-width: 800px) {
    #wrapper {
        width: 640px;
        margin: 0 calc((100% - 640px) / 2);
    }
}
@media screen and (min-width: 700px) {
    #about_subtitle > p {
        position: relative;
        top: 67%;
        transform: translateY(-50%);
    }
    #about_quote > p {
        position: relative;
        top: 33%;
        transform: translateY(-50%);
    }
}
@media screen and (max-width: 700px) {
    #about_subtitle > p {
        position: relative;
        top: 50%;
        transform: translateY(-50%);
    }
    #about_subtitle {
        grid-row: 1 / 3;
    }
    #about_quote {
        grid-column: 1 / 3;
        display: flex;
        justify-content: center;
        align-items: center;
    }
}
@media screen and (min-width: 550px) {
    .page_title {
        font-size: 3rem;
    }
    #title {
        margin: 8vh calc((100% - 440px) / 2) 30px;
        width: 440px;
    }
}