@charset "utf-8";

main {
    background-color: #FFCC00;
    font-family: Noto Sans JP, Helvetica Neue, Arial, Hiragino Kaku Gothic ProN, ヒラギノ角ゴ ProN W3, ヒラギノ角ゴシック, Hiragino Sans, Meiryo, メイリオ, sans serif;
}

@media not all and (max-width: 950px) {
    /* PC */
    .sp__hide {
        display: block !important;
    }
    .pc__hide {
        display: none !important;
    }
}
@media screen and (max-width: 950px) {
    /* SP */
    .sp__hide {
        display: none !important;
    }
    .pc__hide {
        display: block !important;
    }
}

a:hover,
a:active,
a:link,
a:visited {
    text-decoration: none;
}
.cp-container {
    display: flex;
    justify-content: center;
}

.cp-kv img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* クーポン取得 */
.cp-get-coupon-wrapper {
    margin-top: 3px;
}
.cp-get-coupon__image--register-text {
    width: 318px;
    margin: 0 auto;
}
.cp-get-coupon__image--register-text img {
    width: 100%;
    height: auto;
}

.cp-get-coupon__image--button {
    position: relative;
    width: 318px;
    margin: 0 auto;
}
.cp-get-coupon__image--button a {
    background: url("/resources/a/common/images/landing/autumn-campaign-shogakukan2025/get_coupon_button.png") no-repeat;
    background-size: 318px 72px;
    background-position: 0;
    display: block;
    overflow: hidden;
    width: 318px;
    height: 72px;
}

.cp-get-coupon__image--button a.off.already {
    background: url("/resources/a/common/images/landing/autumn-campaign-shogakukan2025/coupon_obtained_button.png") no-repeat;
    background-size: 318px 72px;
    background-position: 0;
}

.cp-get-coupon__image--button img {
    width: 100%;
    height: auto;
}
.cp-get-coupon__image--button p {
    color: #FFFFFF;
    font-size: 14px;
    font-weight: bold;
    width: 100%;
    text-align: center;
    position: absolute;
    top: 52%;
}
.cp-get-coupon__image--button a:hover img {
    opacity: 1;
}

.cp-get-coupon-detail {
    width: 620px;
    border-radius: 6px;
    background-color: #FFE8B5;
    padding: 26px 16px 20px 24px;
    font-size: 13px;
    line-height: 1.25;
    margin-top: -20px;
}
.cp-get-coupon-detail p:nth-child(2) {
    margin-bottom: 8px;
}
.cp-get-coupon-detail p:nth-child(3),
.cp-get-coupon-detail p:nth-child(4) {
    color: #E90800;
    font-size: 13px;
}

/* 各コンテンツ枠 */
.cp-mens-contents {
    margin-top: 36px;
}
.cp-exposure-contents {
    margin-top: 16px;
}
.cp-recommended-contents {
    margin-top: 48px;
}
.cp-womens-contents,
.cp-staffreview-contents {
    margin-top: 56px;
}
.cp-mens-contents .cp__headline--title-mb,
.cp-womens-contents .cp__headline--title-mb,
.cp-staffreview-contents .cp__headline--title-mb {
    margin-bottom: 10px;
}

.cp__headline {
    margin-right: auto;
    margin-left: auto;
    /* 左右に4pxずつ余白があるため */
    width: calc(100% - 8px);
    max-width: 972px;
}
.cp__headline--title {
    text-align: center;
}
.cp__headline--title-mb {
    margin-bottom: 20px;
}
.cp__headline--title h2 {
    font-size: 20px;
    font-weight: 700;
    line-height: 66px;
    letter-spacing: 0.08em;
    color: #FFFFFF;
    background: url("/resources/a/common/images/landing/autumn-campaign-shogakukan2025/title_background_SP.png") center center no-repeat;
    width: 100%;
    height: 66px;
    /* backgroundの画像をもとの大きさに合わせた形で反映 */
    background-size: 100% 66px;
}
.cp__headline--img {
    width: 100%;
    max-width: 100%;
    height: 85px;
    margin-bottom: 42px;
}

.cp__inner {
    padding-left: 10px;
    padding-right: 10px;
}
.cp__booklist {
    display: flex;
    justify-content: center;
}
.cp__booklist--line {
    overflow: hidden;
    width: 100%;
    display: grid;
    column-gap: 10px;
    grid-template-columns: 1fr 1fr 1fr;
}
.cp__booklist--book {
    margin-bottom: 32px;
}
.cp__booklist--picture {
    margin-bottom: 6px;
    width: 100%;
    display: flex;
    align-items: flex-end;
    /* 一番縦幅が大きい書影に合わせた比率 */
    padding-top: 160%;
    position: relative;
}
.cp__booklist--picture a {
    display: inline-block;
}
.cp__booklist--picture img {
    box-sizing: border-box;
    border: solid 1px #222222;
    box-shadow: 1px 2px 3px rgba(0, 0, 0, 0.25);
    width: 100%;
    height: auto;
    position: absolute;
    bottom: 0;
    left: 0;
}
.cp__booklist--picture:hover img {
    box-shadow: none;
    opacity: 1.0 !important;
}
.cp__booklist--title {
    font-size: 13px;
    margin-bottom: 6px;
    line-height: 14px;
    height: 28px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}
.cp__booklist--discount {
    background-color: #FFE985;
    border-radius: 44px;
    width: 100%;
    height: 24px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cp__booklist--discount img {
    width: 73px;
    height: 17px;
}
.cp__booklist--text {
    margin-bottom: 6px;
    padding-top: 4px;
    text-align: center;
    background: #FFF1B5;
    border-radius: 4px;
}
.cp__booklist--volume {
    text-align: center;
    color: #6C6C6C;
    background-color:#FFD25F;
    border-radius: 100vh;
    height: 16px;
    line-height: 1.2;
    font-size: 13px;
    width: 90%;
    margin: 0 auto;
}
.cp__booklist--regular-price {
    font-size: 11px;
    text-decoration: line-through;
    line-height: 1;
    margin-top: 4px;
    color: #222222;
}
.cp__booklist--regular-price em {
    font-size: 13px;
    font-style: normal;
    color: #222222;
}
.cp__booklist--sale-price {
    font-size: 12px;
    font-weight: bold;
    color: #FF0000;
    line-height: 1;
    padding-top: 1px;
    padding-bottom: 6px;
}
.cp__booklist--sale-price em {
    font-size: 16px;
    font-style: normal;
}

.cp__btn--show-detail {
    display: flex;
    align-items: center;
    border: 1px solid #222222;
    /* 横幅はborder-widthを含めた形、縦幅は含めない長さで指定されていたのでwidthだけ目視で調整 */
    width: 125px;
    height: 40px;
    border-radius: 3px;
    font-weight: bold;
    background-color: #FFFFFF;
    position: relative;
}
.cp__btn--show-detail a {
    display: block;
    text-decoration: none;
    width: 100%;
    height: 100%;
}
.cp__btn--show-detail img {
    position: absolute;
    height: 10px;
    width: 6px;
    /* ここは目視で調整 */
    top: 38%;
    right: 10px;
}
.cp__btn--show-detail-text {
    height: 40px;
    line-height: 40px;
    text-align: center;
    font-weight: bold;
    color: #222222;
}

.cp__btn--show-all {
    display: flex;
    border: 1px solid #222222;
    /* 横幅はborder-widthを含めた形、縦幅は含めない長さで指定されていたのでwidthだけ目視で調整 */
    width: 260px;
    height: 42px;
    border-radius: 49px;
    margin-right: auto;
    margin-left: auto;
    font-size: 13px;
    font-weight: 700;
    /* 追加要件 */
    background-color: #F4EA94;
    margin-top: 16px;
}
.cp__btn--show-all a {
    position: relative;
    display: flex;
    text-decoration: none;
    width: inherit;
    align-items: center;
}
.cp__btn--show-all img {
    position: absolute;
    height: 10px;
    width: 6px;
    top: 40%;
    right: 12px;
}
.cp__btn--text {
    width: inherit;
    text-align: center;
    color: #222222;
}

.cp-other-title-list {
    overflow: hidden;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
}
.cp-other-title-list__item {
    margin-right: 10px;
    margin-bottom: 16px;
}
.cp-other-title-list__text {
    background-color: #222222;
    color: #FFFFFF;
    border-radius: 100vh;
    font-size: 13px;
    font-weight: bold;
    line-height: 1.2;
    padding: 4px 10px;
    display: block;
}
.cp-other-title-list__text:hover {
    background-color: #454545;
}
.cp-other-title-list__more-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-right: 10px;
    margin-bottom: 16px;
    padding: 0 10px;
    background: #EE7B00;
    color: #222222;
    border: 1px solid #222;
    border-radius: 100vh;
    font-size: 13px;
    font-weight: bold;
    height: 24px;
    line-height: 1.3;
    cursor: pointer;
    transition: background 0.2s;
}
.cp-other-title-list__item--hidden {
    display: none;
}
.cp-other-title-list__more-btn img {
    width: 10px;
    height: 6px;
}

/* 注意事項 */
.cp-attention {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}
.cp-attention-wrapper {
    background-color: #FFFFFF;
    max-width: 560px;
    padding-inline: 40px;
    border-radius: 6px;
    line-height: 125%;
    margin-top: 48px;
    font-size: 15px;
    padding-top: 28px;
}
.cp-attention h4 {
    padding-left: 16px;
    padding-top: 0;
    padding-bottom: 10px;
    font-weight: bold;
    line-height: 1.5;
    position: relative;
    display: inline-block;
}
.cp-attention h4::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    border: 4px solid #3E88FE;
    border-radius: 1px;
    pointer-events: none;
    box-sizing: border-box;
    background-color: #3E88FE;
    width: 8px;
    height: 15px;
}
.cp-attention__lead {
    margin-left: 0;
    margin-right: 0;
    padding-bottom: 48px;
    transform: translate(14px, 0%);
    width: calc(100% - 14px);
}
.cp-attention__lead li {
    margin-bottom: 1.1em;
    position: relative;
    padding-left: 14px;
    line-height: 135%;
}
.cp-attention__lead li:last-child {
    margin-bottom: 0;
}
.cp-attention__lead li::before {
    content: '・';
    left: 0;
    position: absolute;
    font-weight: bold;
}

/* SNSシェアボタン */
.cp-sns {
    margin-top: 48px;
    padding-bottom: 80px;
}
.cp-sns__list {
    display: flex;
    justify-content: center;
    gap: 16px;
}
.cp-sns__list a img {
    width: 48px;
    height: 48px;
}
.cp-X-banner {
    width: 100%;
    max-width: 410px;
    margin-top: 48px;
    margin-left: 10px;
    margin-right: 10px;
}
.cp-X-banner img {
    width: 100%;
    height: auto;
    object-fit: contain;
    box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.4);
    border-radius: 6px;
}

@media not all and (max-width: 950px) {
    /* PC */
    .cp-kv img {
        width: 100%;
        height: 500px;
        object-fit: cover;
    }
    .cp-get-coupon {
        margin-top: 16px;
    }
    .cp-get-coupon-detail {
        font-size: 15px;
    }
    .binge_reading_selection {
        width: 360px;
        height: 90px;
        margin: 0 auto;
    }
    .binge_reading_selection img {
        width: 100%;
        height: auto;
    }
    .cp__headline {
        width: 972px;
    }
    .cp__headline--title {
        max-width: 972px;
    }
    .cp__headline--title h2 {
        background: url("/resources/a/common/images/landing/autumn-campaign-shogakukan2025/title_background_PC.png") no-repeat;
        width: 100%;
        max-width: 972px;
        height: 70px;
        background-size: contain;
        padding-top: 0;
    }
    .cp__headline--text {
        margin-right: 0;
        margin-left: 47px;
    }
    .cp-mens-contents .cp__headline--title-mb,
    .cp-womens-contents .cp__headline--title-mb,
    .cp-staffreview-contents .cp__headline--title-mb {
        margin-bottom: 24px;
    }

    /* cp__booklist */
    .cp__booklist {
        width: inherit;
    }
    .cp__booklist--line {
        width: 100%;
        max-width: 960px;
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
    }
    .cp__booklist--book:nth-last-of-type(1) {
        /* 横一列に並べるため、最後のマージン不要 */
        margin-right: 0;
    }
    .cp__booklist--book {
        width: 150px;
        margin-bottom: 40px;
    }
    .cp__booklist--picture img {
        width: 150px;
    }
    .cp__booklist--volume {
        font-size: 13px;
        padding-bottom: 0;
    }

    .cp__exposure-list {
        align-items: flex-end;
    }
    .cp__exposure-list .cp__booklist--picture {
        padding-top: 0;
    }
    .cp__exposure-list .cp__booklist--picture img {
        position: static;
    }

    .cp__btn--show-detail:hover {
        background-color: #EEEEEE;
    }
    .cp__btn--show-detail {
        width: calc(100% - 2px);
        font-size: 13px;
    }
    .cp__btn--show-detail a {
        width: 140px;
        padding-inline: 12px;
        padding-block: 11px;
    }
    .cp__btn--show-detail-text {
        padding: 0;
    }
    .cp__btn--show-detail img {
        right: 13px;
    }
    .cp-other-title-list {
        width: 100%;
        max-width: 960px;
    }
    .cp__btn--show-all {
        width: 318px;
        height: 40px;
        margin-top: 24px;
    }
    .cp__btn--show-all:hover{
        opacity: 0.7;
    }
    .cp-mens-contents {
        margin-top: 60px;
    }
    .cp-recommended-contents {
        margin-top: 30px;
    }
    .cp-womens-contents,
    .cp-staffreview-contents {
        margin-top: 54px;
    }
    .cp-X-banner {
        width: 560px;
        max-width: 560px;
        height: auto;
        margin-top: 60px;
    }
}
@media screen and (max-width: 950px) {
    /* SP */
    .cp-kv h1 {
        max-width: 430px;
        margin: 0 auto;
    }
    .cp-get-coupon {
        margin-top: 8px;
    }
    .cp-get-coupon__image--register-text {
        margin-bottom: 4px;
    }
    .cp-get-coupon-detail {
        width: auto;
        max-width: 383px;
        padding: 26px 16px 16px;
        margin-left: 10px;
        margin-right: 10px;
    }
    .cp-exposure-contents,
    .cp-recommended-contents {
        width: 100%;
    }
    .cp-exposure-contents,
    .cp-recommended-contents,
    .cp-mens-contents,
    .cp-womens-contents,
    .cp-staffreview-contents {
        max-width: 430px;
    }
    .cp-womens-contents,
    .cp-staffreview-contents {
        margin-top: 48px;
    }
    .binge_reading_selection {
        max-width: 425px;
        height: 57px;
        position: relative;
    }
    .binge_reading_selection div {
        width: 320px;
        position: absolute;
        top: -27px;
        right: 21%;
        z-index: 2;
    }
    .binge_reading_selection img {
        width: 330px;
        height: auto;
    }
    .cp__headline {
        margin-right: 4px;
        margin-left: 4px;
    }
    .cp__headline--title h2 {
        width: 312px;
        height: 70px;
        margin: 0 auto;
    }
    .cp__headline--title h2 span {
        position: relative;
        top: -1px;
    }
    .cp__headline--title-mb {
        margin-bottom: 12px;
    }
    .cp__btn--show-detail {
        width: 98%;
    }
    .cp__booklist--book {
        margin-bottom: 28px;
    }
    .cp__btn--show-all {
        width: 268px;
        height: 38px;
        margin-top: 8px;
    }
    .cp__btn--show-all img {
        right: 14px;
        top: 36%;
    }
    .cp-attention {
        padding-left: 10px;
        padding-right: 10px;
    }
    .cp-attention-wrapper {
        max-width: 379px;
        margin: 40px auto 0;
        padding: 28px 20px 0 16px;
        font-size: 13px;
    }
    .cp-attention-wrapper li {
        margin-bottom: 0.9em;
    }
    .cp-attention-wrapper h4 {
        padding-left: 16px;
        padding-top: 0;
        padding-bottom: 10px;
    }
    .cp-other-title-list {
        margin-top: 4px;
    }
    .cp-sns {
        margin-top: 40px;
        padding-bottom: 48px;
    }
    .cp-X-banner img {
        border-radius: 4px;
    }
}
@media screen and (max-width: 374px) {
    .cp__booklist--line {
        grid-template-columns: 1fr 1fr;
    }
}

/* 終了ページ */
.cp-end {
    text-align: center;
    font-size: 15px;
    margin-top: 60px;
    margin-bottom: 60px;
    font-weight: bold;
    color: #FFFFFF;
    line-height: 1.3;
}
.cp-attention__end {
    margin: 0 auto 136px;
}
.cp-attention__end .cp-attention-wrapper {
    margin-top: 0;
}
@media screen and (max-width: 950px) {
    /* SP */
    .cp-attention__end {
        margin: 0 auto 56px;
    }
}

/* スライダー枠(SPのみスライダー化) */
.swiper-container {
    width: 860px;
}
.swiper-wrapper {
    display: flex;
    align-items: flex-end;
    row-gap: 20px;
}
.swiper-slide.cp-slider {
    width: 130px;
}
.cp-scrollbar {
    width: 90%;
}
.swiper-container.swiper-container-horizontal>.swiper-scrollbar {
    height: 7px;
    top: 0px;
    padding-top: 3px;
    padding-bottom: 3px;
    background-color: #DF8D00;
    border-radius: 6px;
}
.swiper-container.swiper-container-horizontal>.swiper-scrollbar .swiper-scrollbar-drag {
    background-color: #FFD25F;
}
.swiper-wrapper {
    margin-top: 23px;
}
.swiper-wrapper .cp__booklist--picture {
    padding-top: 158%;
}
.swiper-wrapper .cp__booklist--picture img {
    object-fit: contain;
}
.cp__exposure-list {
    width: 660px;
    display: flex;
    justify-content: center;
    column-gap: 20px;
    flex-wrap: wrap;
    margin: 0 auto;
}

@media screen and (max-width: 950px) {
    /* SP */
    .cp-container .swiper-container {
        width: 100%;
        margin-left: 0;
    }
    .swiper-slide.cp-slider {
        margin-right: 8px;
    }
    .swiper-wrapper .swiper-slide.cp-slider:nth-of-type(4) {
        margin-right: 6px;
    }
    .swiper-wrapper .swiper-slide.cp-slider:nth-of-type(7) {
        margin-right: 9px;
    }
    .swiper-wrapper .cp__booklist--book {
        margin-bottom: 0;
    }
}

/* 爆読セクション枠 */
.cp-card-item {
    display: flex;
    justify-items: center;
    background-color: #FFFFFF;
    border: #222222 1px solid;
    border-radius: 10px;
    position: relative;
    box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.4);
}

.cp-card_img img {
    height: auto;
    object-fit: cover;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 9px;
}
.cp-card-title {
    margin: 0 auto;
    position: relative;
    display: flex;
    justify-content: center;
}
.cp-card-picture {
    display: flex;
    align-items: center;
    justify-content: center;
}
.cp-card-picture a {
    display: block;
}
.cp-card-picture img {
    object-fit: contain;
}
.cp-card-link {
    position: absolute;
}
.cp-card-link div {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #FFA100;
    border-radius: 35px;
    color: #FFFFFF;
    font-weight: bold;
    position: relative;
}
.cp-card-link div img {
    position: absolute;
    right: 13px;
}

@media not all and (max-width: 950px) {
    /* PC */
    .cp-recommended-contents {
        width: 960px;
    }
    .cp-card {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    .cp-card_img img {
        width: 316px;
    }
    .cp-card-picture {
        margin-bottom: 52px;
        text-align: center;
    }
    .cp-card-picture img {
        width: 93px;
        height: auto;
    }
    .cp-card-link {
        bottom: 10px;
    }
    .cp-card-link div {
        height: 42px;
        width: 132px;
        font-size: 15px;
    }
}

@media screen and (max-width: 950px) {
    /* SP */
    .cp-card {
        margin: 0 10px;
    }
    .cp-card-item {
        margin-bottom: 12px;
        display: flex;
        align-items: stretch;
    }
    .cp-card_img {
        flex-grow: 1;
    }
    .cp-card_img img {
        width: 100%;
    }
    .cp-card-picture {
        width: 100px;
        height: calc(100% - 40px);
    }
    .cp-card-picture > div {
        display: flex;
        align-items: center;
        height: 70%;
    }
    .cp-card-picture a {
        height: 100%;
    }
    .cp-card-picture img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    .cp-card-title {
        padding: 0 6px;
    }
    .cp-card-link {
        bottom: 8px;
    }
    .cp-card-link div {
        height: 32px;
        width: 100px;
        font-size: 13px;
    }
    .cp-card-link div img {
        right: 8px;
    }
}
@media screen and (max-width: 375px) {
    .cp-card-picture > div {
        height: 75%;
    }
}
@media screen and (max-width: 340px) {
    .cp-card-picture {
        width: 94px;
    }
}
