html {
    scroll-behavior: smooth;
}
img {
    height: auto;
}
.cp-main {
    background-color: #FDEFE6;
    line-height: 1.5;
}
.cp-main img {
    width: 100%;
}
.cp-container {
    max-width: 500px;
    margin: 0 auto;
}
#cp-procedure .cp-headline,
#cp-fair .cp-headline,
#cp-terms .cp-headline,
#cp-qa .cp-headline {
    margin-top: 48px;
}
/* cp-kv */
.cp-kv {
    width: 100%;
    max-width: 500px;
    margin: 0 auto 20px;
}
.cp-end {
    width: 100%;
    max-width: 350px;
    height: 50px;
    line-height: 2.5;
    margin: auto;
    font-size: 20px;
    font-weight: 700;
    color: #E72F82;
    background-color: #FFFFFF;
    border: 2px solid #E72F82;
    text-align: center;
}
.cp-guide__button {
    text-align: center;
    max-width: 355px;
    margin: 0 auto;
    font-weight: 700;
    font-size: 16px;
}
.cp-login__button {
    display: table;
    box-sizing: border-box;
    margin: 0 auto 16px;
    white-space: nowrap;
    text-align: center;
    width: 80%;
}
.cp-link {
    color: #3b78ff;
}
.cp-login {
    font-size: 20px;
    background: #FF5A00;
    border: 1px solid #FF5A00;
    color: #fff !important;
    display: block;
    padding: 11px 0;
    border-radius: 5px;
}
.cp-login:hover {
    text-decoration: none;
    opacity: 0.8;
}
.cp-arrow--down {
    position: relative;
    display: inline-block;
    padding-right: 16px;
}

.cp-arrow--down::before,
.cp-arrow--down::after {
    content: "";
    position: absolute;
    right: 0;
    width: 6px;
    height: 6px;
    border-right: 3px solid #0048B4;
    border-bottom: 3px solid #0048B4;
    transform: rotate(45deg);
}

/* 上 */
.cp-arrow--down::before {
  top: 2px;
}

/* 下 */
.cp-arrow--down::after {
  top: 9px;
}

.cp-arrow--up {
  position: relative;
  display: inline-block;
  padding-right: 16px;
  color: #0048b4;
}

.cp-arrow--up::before,
.cp-arrow--up::after {
  content: "";
  position: absolute;
  right: 0;
  width: 6px;
  height: 6px;
  border-right: 3px solid #0048B4;
  border-bottom: 3px solid #0048B4;
  transform: rotate(225deg);
}

/* 上 */
.cp-arrow--up::before {
  top: 6px;
}

/* 下 */
.cp-arrow--up::after {
  top: 13px;
}

/* cp-prize-title */
#cp-prize-title {
    position: relative;
    margin: 40px auto;
    width: 100%;
    max-width: 500px;
    font-family: Zen Antique Soft;
    scroll-margin-top: 25px;
}
#cp-prize-title .cp-headline, #cp-recommend .cp-headline {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    z-index: 10;
}
#cp-prize-title h4 {
    font-size: 20px;
    line-height: 1.4;
    margin-bottom: 20px;
    background: linear-gradient(to right, #A58400, #D3A900, #A58400);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #333333; 
    display: inline-block; 
}

/* cp-title-wrapper */
.cp-title-wrapper {
    background-image: url("/resources/a/image/kodansha-natsudensho-2026/prize_title_bg.png");
    background-repeat: no-repeat;
    background-size: 100% auto;
    background-position: center;
    width: 100%;
    max-width: none;
    aspect-ratio: 750 / 1762;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
/* cp-title-list */
.cp-title-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px 10px;
    width: 91%;
    max-width: 500px;
    margin-top: 0;
}
.cp-title-list__item {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.cp-title-list__item a img {
    filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.3));

}

/* #cp-prize */
#cp-prize .cp-wrapper:nth-of-type(1) {
    margin-top: 20px;
}
#cp-prize .cp-guide__button {
    margin-top: 12px;
}
.cp-ribbon {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 45px;
    box-sizing: border-box;
    background-color: #E755A5;
    font-weight: 700;
    font-family: Noto Sans JP;
    font-size: 16px;
    line-height: 1.3;
    color: #FFFFFF;
    text-align: center;
    clip-path: polygon(
        0% 0%,     
        100% 0%, 
        95% 50%,
        100% 100%,
        0% 100%,
        5% 50%
    );
}
.cp-ribbon--high {
    font-size: 22px;
}
.cp-ribbon__text {
    display: block;
    width: 100%;
    padding: 0 5%;
    box-sizing: border-box;
}
.cp-headline {
    text-align: center;
    width: 100%;
    margin: 0 auto;
}
.cp-wrapper {
    margin-top: 32px;
    background-color: #FFFFFF;
    border-radius: 32px;
}
.cp-wrapper h3 {
    margin: 0 auto;
    width: 100%;
    line-height: 1;
    padding: 10px 0;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    color: #FFEF00;
}
.cp-wrapper h3 span {
    font-size: 18px;
}
.cp-heading-wrapper {
    text-align: center;
    background: linear-gradient(180deg, #6C59CC 0%, #E54ACB 100%);
    border-radius: 32px 32px 0 0;
}
.cp-content {
    padding: 16px 15px 28px;
    border-radius: 0 0 10px 10px;
}
.cp-content__head {
    text-align: center;
}
.cp-content__text {
    margin-top: 12px;
    font-size: 18px;
    font-weight: 700;
}
.cp-content__text--small {
    margin-top: 12px;
    font-size: 14px;
}
.cp-content__img {
    margin: 12px auto 0;
    width: 280px;
    text-align: center;
    box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.25);
}
.cp-content__img--small {
    width: 200px;
}
.cp-note {
    margin-top: 16px;
}
.cp-wrapper .cp-content__text--emphasis {
    color: #E72F82;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}
/* #cp-procedure */
#cp-procedure .cp-guide__button.cp-login__button {
    margin-top: 20px;
}
#cp-procedure .cp-wrapper {
    position: relative;
    margin-top: 38px;
    border-radius: 10px;
}
#cp-procedure .cp-inner {
    padding: 30px 15px 20px;
    border: 2px solid #ECABF5;
    border-radius: 10px;
    background-color: #FFFFFF;
}
#cp-procedure .cp-inner__text--big {
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}
#cp-procedure .cp-inner__button {
    width: 260px;
    margin: 10px auto 0;
    background: linear-gradient(90deg, #F36291 0%, #A399F1 100%);
    box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.3);
    border-radius: 32px;
    overflow: hidden;
}
#cp-procedure .cp-inner__button a{
    display: block;
    padding: 10px 0;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: #FFFFFF;
    text-decoration: none;
}
#cp-procedure .cp-inner__button:has(a:hover) {
    opacity: 0.8;
}
#cp-procedure .cp-inner__button a.cp-arrow--right {
    padding-right: 0;
}
#cp-procedure .cp-inner__button a.cp-arrow--right::after {
    position: relative;
    display: inline-block;
    right: auto;
    margin-left: 6px;
    transform: none;
}
#cp-procedure .cp-inner__note {
    margin-top: 10px;
    font-size: 13px;
}
#cp-procedure .cp-inner__text--center {
    text-align: center;
}
#cp-procedure .cp-inner__text--emphasis {
    color: #EE0000;
}
#cp-procedure .cp-guide__button {
    margin-top: 10px;
}
#cp-procedure .cp-arrow--down {
  position: relative;
  display: inline-block;
  padding-right: 16px;
  color: #0048b4;
}
#cp-procedure .cp-title {
    margin: 0 auto;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    color: #FFFFFF;
    background-color: #ECABF5;
    border-radius: 10px;
    position: absolute;
    left: 50%;
    transform: translate(-50%, 0);
    padding: 10px 20px;
    width: max-content;
    top: -18px;
}
.cp-label--pt{
    margin-top: 18px;
}

.cp-label--down {
    position: relative;
    padding-left: 16px;
    display: inline-block;
}

.cp-label--down::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 0;
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 12px solid currentColor;
}

.cp-arrow--right {
    position: relative;
    display: inline-block;
    padding-right: 18px;
}

.cp-arrow--right::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 8px solid currentColor;
    transform: translateY(-50%);
}

.cp-floating-top-button {
    position: fixed;
    right: 7vw;
    bottom: calc(10vh + 44px);
    width: 180px;
    height: 180px;
    display: block;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    z-index: 100;
}

.cp-floating-top-button.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.cp-floating-top-button img {
    display: block;
    width: 100%;
    height: 100%;
}

 /* #cp-fair */
#cp-fair .cp-wrapper {
    margin-top: 16px;
}
#cp-fair .cp-inner__img {
    box-shadow: 0px 1px 6px 0px rgba(0, 0, 0, 0.6);
    border-radius: 10px;
}
#cp-fair .cp-inner__img img{
    border-radius: 10px;
}

/* #cp-recommend */
#cp-recommend {
    position: relative;
    margin: 70.5px auto 0;
    max-width: 500px;
}
#cp-recommend .cp-container{
    background-color: #FFFFFF;
    padding: 0 10px;
}
.cp__booklist {
    padding-top: 42.5px;
    display: flex;
    justify-content: center;
    align-items: 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--ranking {
    margin-bottom: 6px;
    text-align: center;
}

.cp-rank__text {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}

.cp-rank__icon {
    width: 14px;
    height: 14px;
    fill: #B85A00;
    flex-shrink: 0;
}

.cp-rank--1 .cp-rank__icon {
    fill: #E09800;
}

.cp-rank--2 .cp-rank__icon {
    fill: #7C7D7C;
}

.cp-rank--3 .cp-rank__icon {
    fill: #B85A00;
}
/* #cp-terms, #cp-qa */

#cp-qa {
    padding-bottom: 40px;
}
#cp-terms .cp-wrapper,
#cp-qa .cp-wrapper {
    padding: 20px 15px 10px;
    border-radius: 10px;
    margin-top: 20px;
}
#cp-terms .cp-title,
#cp-qa .cp-title {
    padding: 5px;
    font-weight: 700;
    color: #FFFFFF;
    background-color: #ECABF5;
}
#cp-terms ul,
#cp-qa ul {
    padding: 5px 0 10px;
}
#cp-terms ul li p {
    margin: 18px 0;
}

@media screen and (max-width:950px) {
    /* SP */
    .cp-container {
        padding: 0 10px;
        margin: 0 auto;
    }

    #cp-prize-title h4 {
        font-size: 16px;
    }
    .cp-floating-top-button {
        width: 120px;
        height: 80px;
        right: 0;
        bottom: calc(1vh + 44px);
    }
    .cp-guide__button {
        font-size: 14px;
    }
    .cp-arrow--down::before,
    .cp-arrow--down::after {
        width: 4px;
        height: 4px;
        right: 5px;
        border-right: 2px solid #0048B4;
        border-bottom: 2px solid #0048B4;
    }

    /* 上 */
    .cp-arrow--down::before {
    top: 3px;
    }

    /* 下 */
    .cp-arrow--down::after {
    top: 9px;
    }
    .cp-arrow--up::before,
    .cp-arrow--up::after {
    right: 5px;
    width: 4px;
    height: 4px;
    border-right: 2px solid #0048B4;
    border-bottom: 2px solid #0048B4;
    }

    /* 上 */
    .cp-arrow--up::before {
    top: 7px;
    }

    /* 下 */
    .cp-arrow--up::after {
    top: 13px;
    }
    .cp-note,
    .cp-inner {
        line-height: normal;
    }
    #cp-terms a {
        word-break: break-all;
    }
    #cp-procedure .cp-title {
        line-height: 0.8;
    }
}

@media screen and (max-width:520px) {
    #cp-prize-title .cp-headline, #cp-recommend .cp-headline {
        width: calc(100% - 20px);
    }
}

@media screen and (max-width:374px) {
    .cp-ribbon {
        font-size: 14px;
    }
    .cp-wrapper h3 {
        font-size: 18px;
    }
    #cp-fair .cp-ribbon {
        font-size: 13px;
    }
}
