@charset "utf-8";

.inner {
    width: clamp(840px, 60vw, 1008px);
}

/* ---------- 
editor-block
----------*/
.editor-block h3 {
    margin-top: 60px;
}


/* ---------- 
book-header
----------*/
.book-header {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--color-text);
}
.book-header .book-info .book-date {
    margin-bottom: 20px;
    font-family: "Inter", sans-serif;
    font-size: clamp(14px, 1vw, calc(14px * var(--ratio)));
    font-weight: 400;
}
.book-header .book-info .page-title-c {
    margin-bottom: 20px;
    text-wrap: auto;
}
.book-header .book-info .book-author {
    margin-bottom: 20px;
    font-size: clamp(14px, 1vw, calc(16px * var(--ratio)));
    line-height: 1.78;
}
.book-header .book-info .book-isbn,
.book-header .book-info .book-price {
    font-size: clamp(12px, 0.85vw, calc(12px * var(--ratio)));
    line-height: 1.91;
}
.book-header .book-image {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: clamp(256px, 18.21vw, calc(256px * var(--ratio)));
    height: clamp(256px, 18.21vw, calc(256px * var(--ratio)));
    background-color: var(--color-sub);
}
.book-header .book-image img {
    width: 120px;
    box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.16);
}
@media screen and (max-width: 700px) {
    .book-header {
        flex-direction: column-reverse;
        gap: 0;
        padding-bottom: 30px;
    }
    .book-header .book-info .book-date {
        margin-bottom: 15px;
        font-size: calc(14px / var(--fs-base) * 1rem);
    }
    .book-header .book-info .book-author {
        margin-bottom: 20px;
        font-size: calc(14px / var(--fs-base) * 1rem);
    }
    .book-header .book-info .book-isbn,
    .book-header .book-info .book-price {
        font-size: calc(12px / var(--fs-base) * 1rem);
        line-height: 1.91;
    }
    .book-header .book-image {
        margin-bottom: 30px;
        width: 100%;
        height: auto;
        aspect-ratio: 1/1;
    }
    .book-header .book-image img {
        width: 46.74%;
    }
}

/* ---------- 
author
----------*/
.author {
    margin-bottom: 80px;
    padding: 40px 40px 0;
    background-color: var(--color-text);
    color: var(--color-text-sub);
}
.author h4 {
    position: relative;
    margin-bottom: 20px;
    padding-left: 20px;
    font-size: clamp(14px, 1vw, calc(14px * var(--ratio)));
    font-weight: 500;
    letter-spacing: 0.05em;
}
.author h4:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 10px;
    height: 10px;
    transform: translateY(-50%);
    background-color: var(--color_0073B4);
}
.author .author-info {
    margin-bottom: 31px;
}
.author .author-info .author-name {
    margin-bottom: 10px;
    font-size: clamp(16px, 1.14vw, calc(16px * var(--ratio)));
    font-weight: bold;
    letter-spacing: 0.05em;
}
.author .author-info .author-sub {
    font-size: clamp(14px, 1vw, calc(14px * var(--ratio)));
    font-weight: 400;
    letter-spacing: 0.05em;
}
.author .author-text p {
    font-size: clamp(16px, 1.14vw, calc(16px * var(--ratio)));
    font-weight: 400;
    letter-spacing: 0.05em;
    padding-bottom: 40px;
    line-height: 2.125;
}
@media screen and (max-width: 700px) {
    .author {
        margin-bottom: 60px;
        padding: 30px 30px 0;
    }
    .author h4 {
        padding-left: 12px;
        font-size: calc(14px / var(--fs-base) * 1rem);
    }
    .author h4:before {
        width: 7px;
        height: 7px;
    }
    .author .author-info {
        margin-bottom: 20px;
    }
    .author .author-info .author-name {
        font-size: calc(15px / var(--fs-base) * 1rem);
    }
    .author .author-info .author-sub {
        font-size: calc(13px / var(--fs-base) * 1rem);
        line-height: 2;
    }
    .author .author-text p {
        font-size: calc(15px / var(--fs-base) * 1rem);
        padding-bottom: 30px;
        line-height: 2;
    }
    .author .author-text a {
        font-size: calc(15px / var(--fs-base) * 1rem);
    }
}

/* ---------- 
post-nav
----------*/
.post-nav {
    display: flex;
    justify-content: space-between;
    margin-bottom: 80px;
    padding: 25px 0;
    border-top: 1px solid var(--color-line);
    border-bottom: 1px solid var(--color-line);
}
.post-nav:not(:has(.post-nav-prev)) {
    justify-content: flex-end;
}
.post-nav:not(:has(.post-nav-next)) {
    justify-content: flex-start;
}
.post-nav .post-nav-prev + .post-nav-next {
    border-left: 1px solid var(--color-line);
}
.post-nav .post-nav-prev {
    position: relative;
    width: 50%;
    padding-left: 46px;
    padding-right: 20px;
    text-align: left;   
}
.post-nav .post-nav-next {
    position: relative;
    width: 50%;
    padding-right: 46px;
    padding-left: 20px;
    text-align: right;
}
.post-nav .post-nav-prev .post-link,
.post-nav .post-nav-next .post-link {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid var(--color-text);
}
.post-nav .post-nav-prev .post-link {
    left: 0;
}
.post-nav .post-nav-next .post-link {
    right: 0;
}
.post-nav .post-nav-prev .post-link:before {
    content: "";
    position: absolute;
    top: calc(50% - 1px);
    width: 8px;
    height: 8px;
    transform: rotate(45deg) translate(-50%);
    border-bottom: 1px solid var(--color-text);
    border-left: 1px solid var(--color-text);
    left: 50%;
}
.post-nav .post-nav-next .post-link:before {
    content: "";
    position: absolute;
    top: calc(50% - 1px);
    width: 8px;
    height: 8px;
    transform: rotate(45deg) translate(-50%);
    border-top: 1px solid var(--color-text);
    border-right: 1px solid var(--color-text);
    right: calc(50% - 4px);
}
.post-nav .post-date {
    margin-bottom: 15px;
    font-family: "Inter", sans-serif;
    font-size: clamp(14px, 1vw, calc(14px * var(--ratio)));
    font-weight: 400;
}
.post-nav .post-title {
    display: inline;
    font-size: clamp(16px, 1.14vw, calc(16px * var(--ratio)));
    font-weight: 500;
    color: var(--color-text);
    letter-spacing: 0.05em;
    line-height: 1.875;
}
.post-nav .post-title.link-text {  
    background-image: linear-gradient(var(--color-text), var(--color-text));
}
@media screen and (min-width: 701px) {
    .post-nav:not(:has(.post-nav-prev)) .post-nav-next {
        border-left: 1px solid var(--color-line);
    }
    .post-nav:not(:has(.post-nav-next)) .post-nav-prev {
        border-right: 1px solid var(--color-line);
    }
    .post-nav .post-nav-prev:hover .post-link,
    .post-nav .post-nav-next:hover .post-link {
        background-color: var(--color-text);
    }
    .post-nav .post-nav-prev:hover .post-link:before {
        border-bottom: 1px solid var(--color-text-sub);
        border-left: 1px solid var(--color-text-sub);
    }
    .post-nav .post-nav-next:hover .post-link:before {
        border-top: 1px solid var(--color-text-sub);
        border-right: 1px solid var(--color-text-sub);
    }
    .post-nav .post-nav-prev:hover .link-text,
    .post-nav .post-nav-next:hover .link-text {
        background-size: 100% 1px;
    }
}
@media screen and (max-width: 700px) {
    .post-nav {
        flex-direction: column;
        margin-bottom: 60px;
        padding: 0;
    }
    .post-nav .post-nav-prev + .post-nav-next {
        border-left: none;
        border-top: 1px solid var(--color-line);
    }
    .post-nav .post-nav-prev {
        width: 100%;
        padding: 15px 40px 15px 41px;
    }
    .post-nav .post-nav-next {
        width: 100%;
        padding: 15px 41px 15px 40px;
    }
    .post-nav .post-date {
        margin-bottom: 10px;
        font-size: calc(12px / var(--fs-base) * 1rem);
    }
    .post-nav .post-title {
        font-size: calc(12px / var(--fs-base) * 1rem);
    }
}

/* ---------- 
btn-wrap
----------*/
.btn-wrap {
    margin-bottom: 80px;
}
@media screen and (max-width: 700px) {
    .btn-wrap {
        margin-bottom: 60px;
    }
}