@charset "utf-8";
/*---------------------
ブッコミCMS テンプレート共通CSS
------------------------ */

.spcms .taC_img {
    text-align: center;
    margin-bottom: 10px;
}
.spcms .taC_img img {
    max-width: 100%;
}
.spcms .bg-none {
    background: none;
}

.spcms .cms-link-group {
    margin-bottom: 30px;
}

.spcms #link_group_1002.cms-link-group,
.spcms #link_group_1004.cms-link-group {
    margin-bottom: 0;
}

/* spcms */
.spcms {
    font-size: 1.4rem;
    line-height: 1.5rem;
    background-color: #FFFFFF;
}
.spcms .spcms-top {
    margin-bottom: 10px;
}
.spcms .spcms-top img {
    width: 100%;
}

/* 大見出し */
.spcms .section_heading h2.section_title {
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: bold;
    padding: 7px 10px;
    line-height: 1.3;
    margin-bottom: 10px;
    min-height: 35px;
    box-sizing: border-box;
    background-color: #EA7AE1;
    color: #FFFFFF;
}
.spcms .section_heading h2.section_title > span {
    display: block;
    margin: 0;
    width: 100%;
}

/* 中見出し */
.spcms .sub_heading {
    color: #E52A89;
    font-weight: bold;
    line-height: 16px;
}

.spcms .sub_heading a span {
    line-height: 1.8rem;
    color: #333333 !important;
    font-size: 1.5rem;
    display: -webkit-box;
    font-weight: bold;
    margin: 0 0 5px 0;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

/* 看板画像直下リード書式 */
.spcms .abst_text {
    padding: 0 5px;
    margin-bottom: 10px;
}

/* ページ内リンク */
.spcms .link_list {
    border-color: #DDDDDD;
    border-style: solid;
    border-width: 0 0 0 1px;
    display: flex;
    flex-wrap: wrap;
    margin: 20px 10px;
}

.spcms .link_list_item {
    width: 50%;
}

.spcms .link_list_item a {
    background-color: #FFFFFF;
    border-color: #DDDDDD;
    border-style: solid;
    border-width: 0 1px 1px 0;
    color: #333333;
    display: block;
    overflow: hidden;
    padding: 12px 5px 12px 10px;
    word-wrap: normal;
    word-break: keep-all;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.spcms .link_list_item:first-child a,
.spcms .link_list_item:nth-child(2) a {
    border-width: 1px 1px 1px 0;
}

.spcms .link_list_item a:before {
    background-image: url("/resources/b/img/common/icon/sprite_gray.png");
    background-size: 10px 10px;
    background-position: top left;
    background-repeat: no-repeat;
    display: inline-block;
    width: 10px;
    height: 10px;
    content: " ";
    margin-right: 5px;
}

/* ボタン風テキストリンク */
.spcms .spcms_lnk_btn {
    max-width: 600px;
    margin: 0 auto 20px;
}

.spcms .spcms_lnk_btn a {
    background: #FFFFFF;
    border: 2px solid #E52A89;
    border-radius: 3px;
    display: block;
    color: #E52A89;
    font-size: 18px;
    font-weight: bold;
    line-height: 45px;
    text-align: center;
}

/* text_link */
.spcms .text_link {
    text-align: right;
    margin-bottom: 10px;
}

.spcms .text_link a {
    font-size: 1.4rem;
    font-weight: bold;
    line-height: 126%;
    color: #333333;
}

.spcms .text_link a:not(.next):after {
    display: inline-block;
    content: " ";
    width: 20px;
    height: 13px;
    overflow: hidden;
    background-image: url("/resources/b/img/common/icon/sprite_gray.png");
    background-repeat: no-repeat;
    background-position: right center;
}

/* フッターテキストリンク */
.spcms .spcms_foot_lnk_btn,
.spcms .spcms_foot_lnk_btn_default {
    background: #FFFFFF;
    border-top: 1px solid #CCCCCC;
    font-size: 18px;
    font-weight: bold;
    line-height: 45px;
    background: url("/resources/b/img/common/icon/sprite_gray.png") right center no-repeat;
}

.spcms .spcms_foot_lnk_btn_default:last-child {
    border-bottom: 1px solid #CCCCCC;
}

.spcms .spcms_foot_lnk_btn a,
.spcms .spcms_foot_lnk_btn_default a {
    display: block;
    color: #555555;
}

.spcms .item-movie {
    display: block;
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.spcms .item-movie > iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ------------------------------------------------------ */
/* product関連 */
.spcms .area_common {
    padding: 0 0 30px;
}

.spcms .product_list {
    display: flex;
    flex-wrap: wrap;
    border-top: none;
}

.spcms .product_list .cms-item {
    width: 100%;
    height: 100%;
    padding: 30px 10px;
    border-bottom: 1px solid #CCCCCC;
    box-sizing: border-box;
}

.spcms .product_list .cms-book__detail {
    display: flex;
    min-height: 150px;
}

.spcms .product_list .cms-book__detail .cms_book {
    width: 120px;
}

.spcms .product_list .cms-book__detail .cms_book .picture {
    width: 120px;
}
.spcms .product_list .cms-book__detail .cms_book .picture > a {
    display: block;
}

.spcms .product_list .cms-book__detail .cms_book img {
    max-width: 120px;
    max-height: 200px;
}

.spcms .product_list .cms-book__detail .detail {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-left: 10px;
    width: calc(100% - 120px);
}

.spcms .product_list .detail .author_list li {
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.spcms span.author a {
    color: #963963;
    text-decoration: underline;
}

.spcms .cms-book_tag {
    margin: 2px 0;
}

.spcms .cms-book_tag span {
    color: #FFFFFF;
    font-size: 1.1rem;
    line-height: 1.4rem;
    display: inline-block;
    text-align: center;
    width: 70%;
    max-width: 80px;
    margin: 1px;
}

.spcms .book_tag {
    text-align: center;
}

.spcms .abst-free {
    color: #B50000;
}

.spcms .cms-book_abst {
    margin: 5px 0 10px;
}

/* cms-bookバナー画像 */
.spcms .product_list .cms-item-box .cms-book__banner_image {
    text-align: center;
    margin-top: 10px;
}

.spcms .product_list .cms-item-box .cms-book__banner_image img {
    max-width: 100%;
}

/* .book */
.spcms .product_list .book {
    padding: 10px 4px;
    width: 33.33333%;
    box-sizing: border-box;
}

.spcms .product_list .book > div {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.spcms .product_list .book .cms-item {
    border: none;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.spcms .product_list .book > .picture {
    background: url("/resources/a/sp/common/images/book_cover_placeholder.png") no-repeat;
    background-size: cover;
}

.spcms .product_list .book .picture {
    height: calc(33.3333vw * 1.3);
    text-align: center;
    margin-bottom: 10px;
    vertical-align: bottom;
}

.spcms .product_list .book .picture img {
    width: 100%;
    max-height: 100%;
    height: auto;
    object-fit: contain;
}

.spcms .product_list .book .title {
    height: 32px;
    overflow: hidden;
    margin-bottom: 5px;
    word-break: break-all;
}

.spcms .product_list .book .title a {
    color: #333333;
}

.spcms .product_list .book .cms-book_tag {
    min-height: 18px;
}

.spcms .product_list .book .feature-button {
    margin-top: 0;
}

/* review settings */
.spcms .cms_review {
    border: 1px solid #CCCCCC;
    background-color: #FFF2F2;
    overflow: hidden;
    padding: 10px;
    margin-bottom: 20px;
}

.spcms input.review_box {
    display: none;
}

.spcms label {
    cursor: pointer;
    display: inline-block;
    background: #FFFFFF;
    padding: 0;
    border-radius: 4px;
    transition: 0.1s;
}

.spcms label p {
    transition: .3s ease;
    display: block;
    border-radius: 5px;
}

.spcms .panel {
    transition: .3s ease;
    height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.spcms input:checked ~ .panel {
    height: auto;
    padding: 0;
}

.spcms .review_opn {
    height: auto;
    padding: 5px;
    text-align: center;
    line-height: 2em;
}

.spcms input:checked ~ label {
    background: #CCCCCC;
}

.spcms input:checked ~ label p.review_opn {
    height: 0;
    overflow: hidden;
    padding: 0;
}

.spcms .review_cls {
    height: 0;
    overflow: hidden;
    padding: 0;
}

.spcms input:checked ~ label p.review_cls {
    height: auto;
    padding: 5px;
    text-align: center;
    line-height: 1.7em;
}

/* ランキング関連 */
.spcms .ranking_heading {
    display: flex;
    font-weight: bold;
    line-height: 16px;
    margin-bottom: 10px;
}

.spcms .img_star {
    width: 38px;
    display: block;
}
.spcms .img_star img {
    width: 34px;
    height: auto;
}

.spcms .rank_title {
    padding: 10px 0 0 0;
    height: 32px;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: calc(100% - 38px);
}

.spcms .rank_title span {
    color: #333333;
    font-weight: bold;
    line-height: 1.8rem;
    font-size: 1.5rem;
}

.spcms .abst-prize {
    font-weight: bold;
    text-align: center;
    color: #FFFFFF;
    padding: 4px 0 1px 0;
    width: 85%;
    margin: 0 auto 10px;
    background-color: #1C2C6F;
}

.spcms .abst-prize.genre_color_cm {
    background-color: #0066FF;
}

.spcms .abst-prize.genre_color_cf {
    background-color: #FF6699;
}

.spcms .abst-prize.genre_color_ad {
    background-color: #9933CC;
}

.spcms .abst-prize.genre_color_tl {
    background-color: #FF18A3;
}

.spcms .abst-prize.genre_color_bl {
    background-color: #00C5C5;
}

.spcms .spcms_genre a {
    display: block;
    color: #FFFFFF;
    font-size: 16px;
    font-weight: bold;
    line-height: 45px;
    text-align: center;
    border-radius: 8px;
}

.spcms .spcms_genre li.genre_color_cm a {
    border: 2px solid #0066FF;
    color: #0066FF;
}

.spcms .spcms_genre li.genre_color_cf a {
    border: 2px solid #FF6699;
    color: #FF6699;
}

.spcms .spcms_genre li.genre_color_ad a {
    border: 2px solid #9933CC;
    color: #9933CC;
}

.spcms .spcms_genre li.genre_color_tl a {
    border: 2px solid #FF18A3;
    color: #FF18A3;
}

.spcms .spcms_genre li.genre_color_bl a {
    border: 2px solid #00C5C5;
    color: #00C5C5;
}

.spcms .banner_area {
    margin-bottom: 20px;
}

.spcms .banner_area ul {
    overflow: hidden;
    padding: 10px 10px 0;
    display: flex;
    flex-wrap: wrap;
}

.spcms .banner_area ul li {
    width: 49%;
    margin-right: 2%;
    height: auto;
    box-sizing: border-box;
    margin-bottom: 10px;
    text-align: center;
}

.spcms .banner_area ul li:nth-child(2n) {
    margin-right: 0;
}

.spcms .banner_area ul li a.spcms_genre_btn {
    width: 100%;
    max-height: 38px;
    display: block;
    text-align: center;
    color: #FFFFFF;
    font-weight: bold;
    padding: 14px 0;
    letter-spacing: normal;
}

.spcms .section_heading h2.section_title.genre_color_cm,
.spcms .banner_area .spcms_genre_btn.genre_color_cm {
    background-color: #0066FF;
}

.spcms .section_heading h2.section_title.genre_color_cf,
.spcms .banner_area .spcms_genre_btn.genre_color_cf {
    background-color: #FF6699;
}

.spcms .section_heading h2.section_title.genre_color_ad,
.spcms .banner_area .spcms_genre_btn.genre_color_ad {
    background-color: #9933CC;
}

.spcms .section_heading h2.section_title.genre_color_tl,
.spcms .banner_area .spcms_genre_btn.genre_color_tl {
    background-color: #FF18A3;
}

.spcms .section_heading h2.section_title.genre_color_bl,
.spcms .banner_area .spcms_genre_btn.genre_color_bl {
    background-color: #00C5C5;
}

.spcms .section_heading h2.section_title.genre_color_top,
.spcms .banner_area .spcms_genre_btn.genre_color_top {
    background-color: #FF5A00;
}

.spcms .banner_area .spcms_genre_btn div {
    font-size: 12px;
}
.spcms .banner_area .spcms_genre_btn div.spcms_genre_name {
    font-size: 16px;
    line-height: 100%;
}

.spcms .b_type_btn_text {
    font-size: 1.6rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
    line-height: 1.5;
}

/* ボタン */
.spcms .feature-button {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 10px;
    margin-top: auto;
}
.spcms .feature-button a.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding: 10px;
}
.spcms .feature-button .single_btn {
    width: 100%;
}
.spcms .feature-button div:has(> .single_btn) {
    width: 100%;
}
.spcms .feature-book-info {
    font-size: 1.8rem;
    line-height: 1.2;
    font-weight: bold;
    margin-top: auto;
    margin-bottom: 5px;
}
.spcms .abst-text {
    margin-top: 10px;
    line-height: 1.2;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    word-break: break-all;
    -webkit-line-clamp: 6;
    line-clamp: 6;
}

/* feature-button */
.spcms .cms-group.type-C .feature-button > div ,
.spcms .cms-group.type-C .feature-button > div .btn {
    width: 100%;
}

/* feature-page-list */
.feature-page-list {
    border: 1px solid #AAAAAA;
    padding: 15px 10px;
    margin: 10px 0 20px;
}
.feature-page-list:nth-of-type(n + 2) h2 {
    margin-top: 15px;
}
.feature-page-list > p {
    text-align: center;
    font-weight: bold;
    font-size: 1.3rem;
    margin-bottom: 15px;
}
.feature-page-list .page-list h2 ,
.feature-page-list .page-title h3 {
    position: relative;
    padding-left: 1em;
    line-height: 1.5;
    font-size: 1.2rem;
}
.feature-page-list .page-list h2::before ,
.feature-page-list .page-title h3::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 0;
    width: 0;
    height: 0;
    display: block;
    border-style: solid;
    border-width: 5px 0 5px 5px;
    border-color: transparent transparent transparent #666666;
}
.feature-page-list .page-title {
    padding-left: 1em;
}
.feature-page-list .page-title h3 {
    margin-top: 5px;
}

/* type D */
.book .feature-button a.btn {
    padding: 5px;
    font-size: 13px;
}
.spcms .product_list .book .feature-button > div ,
.spcms .product_list .book .feature-button > div .btn {
    width: 100%;
}
.spcms .product_list .book .feature-book-info {
    font-size: 1.4rem;
    margin-top: 0;
}
.spcms .product_list .book .txt--small {
    font-size: 1rem;
    margin-top: 3px;
}

@media only screen and (max-width: 768px) {
    .spcms .section_heading h2.section_title {
        margin: 0 -5px 12px;
    }
}

@media only screen and (min-width: 600px) {
    /* A type: 1 column → 2 column */
    .spcms .type-A .product_list .cms-item-box {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
    }

    .spcms .type-A .product_list .cms-item-box .cms-book__detail {
        width: 57%;
    }

    .spcms .type-A .product_list .cms-item-box .cms-book__banner_image {
        width: 40%;
        text-align: left;
        margin-top: 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .spcms .type-A .product_list .cms-item-box .cms-book__banner_image img {
        max-width: 264px;
    }

    /* B type: 1 columnのまま */
    .spcms .type-B .product_list .cms-item-box .cms-book__banner_image img {
        max-width: 640px;
    }

    /* C type: 1 column → 2 column */
    .spcms .type-C .product_list {
        border-bottom: 1px solid #CCCCCC;
        margin-bottom: 20px;
    }

    .spcms .type-C .product_list:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }

    .spcms .type-C .product_list .cms-item {
        width: 50%;
        border-bottom: none;
    }

    /* .book、D type: 3 column → 6 column */
    .spcms .product_list .book {
        width: 16.66667%;
    }

    .spcms .product_list .book .picture {
        height: calc(100vw / 6 * 1.3);
    }

    .spcms .product_list .book .title {
        height: 37px;
    }

    .spcms .product_list .book .picture.pc_view {
        height: calc(660px / 6 * 1.3);
    }

    .spcms .product_list .book .cms-book_tag {
        min-height: 21px;
    }

    /* ランキングページ関連 */
    .spcms .banner_area ul li {
        width: 32%;
    }

    .spcms .banner_area ul li:nth-child(2n) {
        margin-right: 2%;
    }

    .spcms .banner_area ul li:nth-child(3n) {
        margin-right: 0;
    }

    .spcms .banner_area .spcms_genre_btn div {
        font-size: 13px;
    }

    .spcms .banner_area .spcms_genre_btn div.spcms_genre_name {
        font-size: 20px;
    }

    .spcms .spcms_genre a {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
        font-size: 20px;
    }

    /* feature-page-list */
    .feature-page-list > p {
        margin-bottom: 10px;
    }
    .feature-page-list .page-list h2::before ,
    .feature-page-list .page-title h3::before {
        top: 5px;
    }
    .spcms .feature-button div:has(> .single_btn) {
        width: 157px;
    }
    .feature-page-list a:hover {
        text-decoration: underline;
    }

    .spcms .section_heading h2.section_title {
        padding: 8px 12px;
    }
}

@media only screen and (max-width: 320px) {
    .spcms .section_heading h2.section_title {
        font-size: 16px;
    }
}

/* -------------- 管理画面 -------------- */
#container .spcms.dashboard {
    padding-top: 20px;
}

/* cmsコメント用 */
.spcms.dashboard .subsdry {
    padding: 10px;
    font-size: 16px;
    background-color: #CCCCCC;
    color: #FFFFFF;
    font-weight: bold;
    overflow: hidden;
    margin-top: 10px;
}

.spcms.dashboard .embed_text {
    margin: 0 10px 10px 0;
}

.spcms.dashboard .cms-group ul {
    float: none;
    display: flex;
    flex-wrap: wrap;
}

.spcms.dashboard .cms-group ul li {
    float: none;
}

.spcms.dashboard .type-D.cms-group ul li {
    width: 31%;
    margin-right: 20px;
}
