@charset "utf-8";

/* 色変更 */
a.button {
    background-color: #FFFFFF;
    border: solid 2px #ff6bff;
}

a.button > span {
    color: #ff6bff
}

a.button > span::before {
    border-left-color: #ff6bff;
}

footer > .totop > p {
    background-color: #ff6bff;
}

footer > section > h3 {
    border-color: #ff6bff;
}

footer > .copyright {
    background-color: #ff6bff;
}

main {
    background-color: #FFAAD2;
}

main section > h2 {
    border-color: #ff6bff;
}

main section .author_list > li > h3 {
    border-color: #ff6bff;
}

/* 作品概要 */
main section.overview.with_book p > span.balloon {
    background-color: #FBE9F1;
}

main section.overview.with_book p > span.balloon::before {
    border-right-color: #FBE9F1;
}

/* キャラクター紹介 */
.chara_list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.chara_list > li {
    padding-bottom: 30px;
    width: 30%;
    max-width: 300px;
}

.chara_list > li:nth-child(1) {
    order: 2;
}

@media screen and (max-width: 767px) {
    .chara_list > li:nth-child(1) {
        order: 1;
        width: 100%;
        max-width: none;
    }

    .chara_list > li:nth-child(1) > h3,
    .chara_list > li:nth-child(1) > p {
        margin-left: auto;
        margin-right: auto;
        max-width: 260px;
    }
}

.chara_list > li:nth-child(2) {
    order: 1;
}

@media screen and (max-width: 767px) {
    .chara_list > li:nth-child(2) {
        order: 2;
    }
}

.chara_list > li:nth-child(3) {
    order: 3;
}

@media screen and (max-width: 767px) {
    .chara_list > li:nth-child(2),
    .chara_list > li:nth-child(3) {
        width: 48%;
    }
}

.chara_list > li:nth-child(4),
.chara_list > li:nth-child(5),
.chara_list > li:nth-child(6),
.chara_list > li:nth-child(7) {
    order: 4;
    width: 22%;
}

@media screen and (max-width: 900px) {
    .chara_list > li:nth-child(4),
    .chara_list > li:nth-child(5),
    .chara_list > li:nth-child(6),
    .chara_list > li:nth-child(7) {
        width: 40%;
    }
}

@media screen and (max-width: 767px) {
    .chara_list > li:nth-child(4),
    .chara_list > li:nth-child(5),
    .chara_list > li:nth-child(6),
    .chara_list > li:nth-child(7) {
        width: 48%;
    }
}

.chara_list > li:nth-child(8),
.chara_list > li:nth-child(9),
.chara_list > li:nth-child(10),
.chara_list > li:nth-child(11),
.chara_list > li:nth-child(12) {
    order: 4;
    width: 18%;
}

@media screen and (max-width: 1024px) {
    .chara_list > li:nth-child(8),
    .chara_list > li:nth-child(9),
    .chara_list > li:nth-child(10) {
        width: 30%;
        max-width: 260px;
    }

    .chara_list > li:nth-child(11),
    .chara_list > li:nth-child(12) {
        width: 50%;
        max-width: none;
    }

    .chara_list > li:nth-child(11) > h3,
    .chara_list > li:nth-child(11) > p,
    .chara_list > li:nth-child(12) > h3,
    .chara_list > li:nth-child(12) > p {
        margin-left: auto;
        margin-right: auto;
        max-width: 260px;
    }
}

@media screen and (max-width: 767px) {
    .chara_list > li:nth-child(8),
    .chara_list > li:nth-child(9),
    .chara_list > li:nth-child(10),
    .chara_list > li:nth-child(11),
    .chara_list > li:nth-child(12) {
        width: 48%;
        max-width: 300px;
    }
}

.chara_list > li > h3 {
    margin-bottom: 1em;
    padding-left: 10px;
    line-height: 28px;
    font-size: 18px;
    font-weight: bold;
    border-left: 4px solid #ff6bff;
}

.chara_list > li:nth-child(4) > h3,
.chara_list > li:nth-child(5) > h3,
.chara_list > li:nth-child(6) > h3,
.chara_list > li:nth-child(7) > h3 {
    height: 2.8em;
}

@media screen and (max-width: 900px) {
    .chara_list > li:nth-child(4) > h3,
    .chara_list > li:nth-child(5) > h3 {
        height: auto;
    }
}

.chara_list > li:nth-child(8) > h3,
.chara_list > li:nth-child(9) > h3,
.chara_list > li:nth-child(10) > h3,
.chara_list > li:nth-child(11) > h3,
.chara_list > li:nth-child(12) > h3 {
    height: 2.8em;
}

@media screen and (min-width: 1280px) {
    .chara_list > li:nth-child(8) > h3,
    .chara_list > li:nth-child(9) > h3,
    .chara_list > li:nth-child(10) > h3,
    .chara_list > li:nth-child(11) > h3,
    .chara_list > li:nth-child(12) > h3 {
        height: auto;
    }
}

@media screen and (max-width: 1024px) {
    .chara_list > li:nth-child(8) > h3,
    .chara_list > li:nth-child(9) > h3,
    .chara_list > li:nth-child(10) > h3,
    .chara_list > li:nth-child(11) > h3,
    .chara_list > li:nth-child(12) > h3 {
        height: auto;
    }
}

@media screen and (max-width: 900px) {
    .chara_list > li:nth-child(8) > h3,
    .chara_list > li:nth-child(9) > h3,
    .chara_list > li:nth-child(10) > h3,
    .chara_list > li:nth-child(11) > h3,
    .chara_list > li:nth-child(12) > h3 {
        height: 2.8em;
    }
}

@media screen and (max-width: 767px) {
    .chara_list > li:nth-child(8) > h3,
    .chara_list > li:nth-child(9) > h3,
    .chara_list > li:nth-child(10) > h3,
    .chara_list > li:nth-child(11) > h3,
    .chara_list > li:nth-child(12) > h3 {
        height: auto;
    }
}

@media screen and (max-width: 430px) {
    .chara_list > li:nth-child(2) > h3,
    .chara_list > li:nth-child(3) > h3,
    .chara_list > li:nth-child(4) > h3,
    .chara_list > li:nth-child(5) > h3,
    .chara_list > li:nth-child(6) > h3,
    .chara_list > li:nth-child(7) > h3,
    .chara_list > li:nth-child(8) > h3,
    .chara_list > li:nth-child(9) > h3,
    .chara_list > li:nth-child(10) > h3,
    .chara_list > li:nth-child(11) > h3,
    .chara_list > li:nth-child(12) > h3 {
        height: 2.8em;
    }
}

.chara_list > li > figure {
    margin: 0 auto 20px auto;
    width: 100%;
    max-width: 200px;
    aspect-ratio: 4 / 5;
}

/* 著者紹介 */
main section .author_list > li > .button_wrapper {
    margin-left: 220px;
    padding-left: 16px;
}

@media screen and (max-width: 767px) {
    main section .author_list > li > .button_wrapper {
        margin-top: 16px;
        margin-left: 0;
        padding-left: 0;
    }

    main section .author_list > li > .button_wrapper > a {
        margin: 0 auto;
    }
}

/* 著者直筆メッセージ */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    display: none;
    width: 100vw;
    width: 100dvw;
    max-width: none;
    height: 100vh;
    background-color: rgba(0, 0, 0, .5);
    z-index: 1000;
}

.modal.is-show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal > .modal_body {
    position: relative;
    display: flex;
    max-width: 90%;
    max-height: 90%;
    aspect-ratio: 200 / 283;
}

.modal > .modal_body > .close {
    position: absolute;
    top: -20px;
    right: -20px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px;
    width: 40px;
    background-color: #ff6bff;
    border: solid 1px #FFFFFF;
    border-radius: 50%;
    cursor: pointer;
}

.modal > .modal_body > .close::before,
.modal > .modal_body > .close::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 3px;
    height: 20px;
    background: #FFFFFF;
    content: '';
}

.modal > .modal_body > .close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.modal > .modal_body > .close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}
