/* ========================================
   書籍詳細（books-detail）ページ - Figmaレイヤー名をクラスに使用
   ======================================== */

.blueskylib-books-detail {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ----------------------------------------
   l-section-detail（メイン・2カラム）
   ---------------------------------------- */
.l-section-detail {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 20px 0 0;
    width: 100%;
    box-sizing: border-box;
    flex: 1;
}

.l-section-detail-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
}

.l-section-detail .l-section-detail-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
}

/* ----------------------------------------
   l-detail-left（左カラム：書籍情報・読むボタン）
   ---------------------------------------- */
.l-detail-left {
    width: 500px;
    max-width: 100%;
    flex-shrink: 0;
}

/* l-detail-tit：書籍名・著者エリア */
.l-detail-tit {
    background: #F1F1E9;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}

.m-bookname {
    position: relative;
    margin: 0 0 17px;
}

.p-author-book {
    margin: 0;
    font-weight: 700;
    font-size: 22px;
    line-height: 1.21;
    color: var(--color-text);
}

.h1-h1tit-bookname {
    margin: 0 0 10px;
    font-weight: 700;
    font-size: 28px;
    line-height: 1.21;
    color: var(--color-text);
}

.border-bookname__under {
    display: block;
    width: 100%;
    max-width: 410px;
    height: 1px;
    background: var(--color-white);
    margin-top: 1px;
}

/* l-detail-sub：振り仮名・分類番号 */
.l-detail-sub {
    padding: 19px 0 0;
    margin: 0;
    border-top: 1px solid var(--color-black);
}

.boder-detail-sub__upper,
.boder-detail-sub__under {
    display: block;
    width: 100%;
    height: 1px;
    background: var(--color-black);
}

.boder-detail-sub__upper {
    margin-bottom: 19px;
}

.p-furigana-book {
    margin: 0 0 14px;
    font-size: 16px;
    line-height: 1.21;
    color: var(--color-text);
}

.p-ndccode-book {
    margin: 0 0 25px;
    font-size: 14px;
    line-height: 1.21;
    color: var(--color-text);
}

.boder-detail-sub__under {
    margin-top: 0;
}

/* l-detail-read：ブラウザで読むボタン群 */
.l-detail-read {
    margin-top: 20px;
}

.l-read-tit {
    margin-bottom: 13px;
}

.p-read-tit {
    margin: 0;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.21;
    color: var(--color-text);
    display: inline-block;
}

.text-read-tit-sub {
    margin-left: 8px;
    font-size: 13px;
    line-height: 1.21;
    color: var(--color-text);
}

.l-readbtn {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 20px;
    margin-bottom: 21px;
}

.l-readbtn:last-child {
    margin-bottom: 0;
}

.text-readbtn-exp {
    margin: 0;
    font-size: 13px;
    line-height: 1.38;
    color: var(--color-text);
    width: 170px;
    flex-shrink: 0;
}

.m-readbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 36px;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.21;
    color: var(--color-white);
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    min-width: 250px;
    box-sizing: border-box;
}

.m-readbtn:hover {
    color: var(--color-white);
    text-decoration: none;
    opacity: 0.9;
}

.m-readbtn__green {
    background: #1DC1B6;
}

.m-readbtn__red {
    background: #FA7D64;
    padding-left: 53px;
    padding-right: 53px;
}

.m-readbtn__purple {
    background: #815AC9;
    padding: 13px 36px;
}

.text-readbtn {
    margin: 0;
}

.icon-fa-crow,
.icon-fa-dove,
.icon-fa-dragon {
    width: 28px;
    height: 24px;
    flex-shrink: 0;
}

.icon-fa-dove {
    width: 30px;
    height: 26px;
}

.icon-fa-dragon {
    width: 26px;
    height: 24px;
}

/* ----------------------------------------
   l-detail-right（右カラム：あらすじ・レビュー）
   ---------------------------------------- */
.l-detail-right {
    flex: 1;
    min-width: 0;
    max-width: 651px;
}

.l-detail-blurb {
    margin-bottom: 20px;
}

.h2-h2tit-bookblurb {
    margin: 0 0 16px;
    font-weight: 700;
    font-size: 20px;
    line-height: 1.5;
    color: var(--color-text);
}

.p-bookintro {
    margin: 0;
    font-size: 16px;
    line-height: 1.625;
    color: var(--color-text);
}

/* l-detail-review */
.l-detail-review-tit {
    position: relative;
    margin-bottom: 16px;
}

.p-tit-review-tit {
    margin: 0;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.21;
    color: var(--color-text);
}

.border-review-tit__under {
    display: block;
    width: 100%;
    height: 1px;
    background: var(--color-black);
    margin-top: 11px;
}

.l-review-text {
    background: #F6F6F4;
    padding: 12px 14px;
    margin-bottom: 14px;
    width: 100%;
    box-sizing: border-box;
}

.l-review-text:last-child {
    margin-bottom: 0;
}

.p-review-text {
    margin: 0;
    font-size: 13px;
    line-height: 1.77;
    color: var(--color-text);
}

/* ========================================
   レスポンシブ（books-detail）
   ======================================== */

@media (max-width: 1024px) {
    .l-section-detail .l-section-detail-inner {
        gap: 32px 24px;
    }

    .l-detail-left {
        width: 100%;
        max-width: 480px;
    }

    .l-detail-right {
        max-width: 100%;
    }

    .h1-h1tit-bookname {
        font-size: 24px;
    }

    .p-author-book {
        font-size: 20px;
    }

    .m-readbtn {
        min-width: 220px;
    }
}

@media (max-width: 768px) {
    .l-section-detail {
        padding: 16px 0 0;
    }

    .l-section-detail .l-section-detail-inner {
        padding-left: var(--gutter);
        padding-right: var(--gutter);
        flex-direction: column;
        gap: 24px;
    }

    .l-detail-left {
        width: 100%;
        max-width: none;
    }

    .l-detail-tit {
        padding: 16px;
    }

    .h1-h1tit-bookname {
        font-size: 22px;
    }

    .p-author-book {
        font-size: 18px;
    }

    .l-detail-read {
        margin-top: 16px;
    }

    .l-readbtn {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        margin-bottom: 16px;
    }

    .text-readbtn-exp {
        width: 100%;
        text-align: center;
    }

    .m-readbtn {
        width: 100%;
        min-width: 0;
        max-width: 320px;
        justify-content: center;
    }

    .l-detail-blurb {
        margin-bottom: 16px;
    }

    .h2-h2tit-bookblurb {
        font-size: 18px;
    }

    .p-bookintro {
        font-size: 15px;
    }

    .l-detail-review-tit {
        margin-bottom: 12px;
    }

    .l-review-text {
        padding: 10px 12px;
    }

    .p-review-text {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .h1-h1tit-bookname {
        font-size: 20px;
    }

    .p-author-book {
        font-size: 16px;
    }

    .m-readbtn {
        font-size: 16px;
        padding: 10px 24px;
    }

    .h2-h2tit-bookblurb {
        font-size: 17px;
    }
}