@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Zen+Old+Mincho:wght@400;900&display=swap');

* {
    box-sizing: border-box;
}

body {
    font-family: "Noto Sans", sans-serif;
}

.opening {
    position: fixed;
    top: 0;
    width: 70%;
    height: 100vh;
    background-color: #ac8e44;
    z-index: 10;
    animation-duration: 2s;
    animation-fill-mode: forwards;
    animation-timing-function: cubic-bezier(.45, 0, .55, 1);
}

.opening-left {
    left: 0;
    clip-path: polygon(0 0, 100% 0, 50% 100%, 0 100%);
    animation-name: openLeft;
}

.opening-right {
    right: 0;
    clip-path: polygon(50% 0, 100% 0, 100% 100%, 0 100%);
    animation-name: openRight;
}

@keyframes openLeft {
    to {
        clip-path: polygon(0 0, 0 0, -50% 100%, 0 100%);
        transform: translateX(-40%);
        visibility: hidden;
    }
}

@keyframes openRight {
    to {
        clip-path: polygon(150% 0, 100% 0, 100% 100%, 100% 100%);
        transform: translateX(40%);
        visibility: hidden;
    }
}

.fade-in {
    transform: translateY(15px);
    transition: 1.2s;
    transition-delay: 0.1s;
    opacity: 0;
}

.fade-in.is-inview {
    transform: translateY(0);
    opacity: 1;
}

.screen-frame-wrap {
    display: grid;
    grid-template-areas: 'contents';
}

.screen-frame {
    grid-area: contents;
    position: sticky;
    top: 8px;
    left: 8px;
    width: calc(100% - 16px);
    height: calc(100vh - 16px);
    z-index: 7;
    border: 1px solid #bc9965;
    outline: 8px solid #ebe4d7;
    pointer-events: none;
}

.screen-frame::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    width: 55px;
    height: 55px;
    background-image: url('/v2/img/static_page/media/soudouki/screen_frame.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left center;
}

.screen-frame::after {
    content: '';
    position: absolute;
    top: -6px;
    right: -6px;
    width: 55px;
    height: 55px;
    background-image: url('/v2/img/static_page/media/soudouki/screen_frame.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: right center;
    transform: rotate(90deg);
}

.screen-frame--bottom {
    position: relative;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.screen-frame--bottom::before {
    content: '';
    position: absolute;
    bottom: -6px;
    left: -6px;
    width: 55px;
    height: 55px;
    background-image: url('/v2/img/static_page/media/soudouki/screen_frame.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left center;
    transform: rotate(-90deg);
}

.screen-frame--bottom::after {
    content: '';
    position: absolute;
    right: -6px;
    bottom: -6px;
    width: 55px;
    height: 55px;
    background-image: url('/v2/img/static_page/media/soudouki/screen_frame.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: right center;
    transform: rotate(180deg);
}

.page-top-icon {
    position: fixed;
    right: 10px;
    bottom: 35px;
    z-index: 6;
    width: 86px;
    height: 105px;
    transition: all 0.5s;
}

.page-top-icon:hover {
    opacity: 0.8;
}

.page-top-icon__image {
    width: 100%;
    filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.5));
}

.sp-only__content {
    display: none;
}

.contents-wrap {
    display: grid;
    grid-template-columns: minmax(0, 320px) minmax(0, 640px);
    grid-template-areas: 'menu main';
    grid-area: contents;
    justify-content: center;
    width: 100%;
    overflow: clip;
}

.contents-wrap::before {
    content: '';
    position: fixed;
    z-index: -1;
    width: 100%;
    height: 100%;
    background-image: url("/v2/img/static_page/media/soudouki/pc_bg.webp");
    background-size: cover;
    background-repeat: no-repeat;
    pointer-events: none;
    opacity: 0.2;
}

.hamburger-menu {
    display: none;
}

.following-menu {
    grid-column: 1;
    position: sticky;
    top: 0;
    z-index: 1;
    width: 320px;
    height: 100vh;
    overflow-y: auto;
    background: white;
    box-shadow: 0 20px 20px 0 rgba(0, 0, 0, 0.25);
}

.following-menu__logo-area {
    position: relative;
    margin: 8px auto 0 16px;
    width: 50%;
    height: 100%;
}

.ring-area {
    position: absolute;
    right: 25%;
    z-index: 1;
    width: 55%;
    height: 100%;
    transform-style: preserve-3d;
}

.ring-mask {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    -webkit-mask-image: conic-gradient(
            from 0deg,
            transparent 30deg,
            rgba(0, 0, 0, 0.1) 60deg,
            rgba(0, 0, 0, 0.8) 90deg,
            rgba(0, 0, 0, 0.4) 185deg,
            rgba(0, 0, 0, 0.8) 270deg,
            rgba(0, 0, 0, 0.1) 300deg,
            transparent 330deg
    );
    mask-image: conic-gradient(
            from 0deg,
            transparent 30deg,
            rgba(0, 0, 0, 0.1) 60deg,
            rgba(0, 0, 0, 0.8) 90deg,
            rgba(0, 0, 0, 0.4) 185deg,
            rgba(0, 0, 0, 0.8) 270deg,
            rgba(0, 0, 0, 0.1) 300deg,
            transparent 330deg
    );
    -webkit-mask-composite: source-in, source-in;
    mask-composite: intersect;
}

.ring-mask1 {
    top: -3%;
    left: -9%;
    width: 120%;
    transform: rotateX(81deg) rotateY(-21deg);
}

.ring-mask2 {
    top: 2%;
    left: 9%;
    transform: rotateX(64deg) rotateY(54deg);
}

.ring-mask3 {
    top: -4%;
    left: 6%;
    width: 90%;
    transform: rotateX(64deg) rotateY(-50deg);
}

.ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(
            from 0deg,
            transparent 0deg,
            rgba(255, 255, 255, 0.4) 120deg,
            rgba(255, 255, 255, 0.8) 160deg,
            white 180deg,
            rgba(255, 255, 255, 0.8) 200deg,
            rgba(255, 255, 255, 0.4) 240deg,
            transparent 360deg);
    -webkit-mask-image: radial-gradient(circle, transparent 45%, black 48%, black 60%, transparent 62%);
    mask-image: radial-gradient(circle, transparent 45%, black 48%, black 60%, transparent 62%);
    filter: blur(2px) brightness(2);
}

.ring1 {
    animation: rot 0.6s linear infinite;
}

.ring2 {
    animation: rot 0.8s linear infinite reverse;
}

.ring3 {
    animation: rot 1s linear infinite;
}

@keyframes rot {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.following-menu__logo {
    position: relative;
    top: 8px;
    width: 100%;
}

.following-menu__links {
    margin-bottom: 16px;
    list-style: none;
}

.following-menu__link {
    display: flex;
    flex-direction: column;
    color: black;
    border-top: 2px solid #ddcca4;
    font-family: "Zen Old Mincho", serif;
    font-size: 20px;
    font-weight: bold;

    a {
        width: 100%;
        padding: 16px 0;
        color: black;
        text-align: center;
    }

    a:hover {
        opacity: 0.6;
    }
}

.sns-buttons {
    margin: 0 auto 16px;
    width: calc(100% - 32px);
}

.following-menu__link:last-child {
    border-bottom: 2px solid #ddcca4;
}

.sns-buttons {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;

    a {
        width: 50px;
        height: 50px;
    }

    img {
        width: 100%;
        height: 100%;
    }
}

.main-contents {
    grid-column: 2;
    grid-area: main;
    display: grid;
    grid-template-columns: minmax(0, 640px) minmax(0, 40px);
    column-gap: 8px;
    width: 683px;
}

.main-contents > *:not(.kv__buttons) {
    grid-column: 1;
}

.kv__logo-area {
    display: none;
}

.kv__slider {
    display: grid;
    grid-template-areas: 'stack';
    margin-bottom: 8px;
    width: 100%;
}

.kv__slider > * {
    display: contents;
}

.kv__slide {
    display: block;
    grid-area: stack;
    width: 100%;
    height: auto;
    transition: opacity 1s ease-in-out;
    opacity: 0;

    &.is-active {
        z-index: 1;
        opacity: 1;
    }
}

.kv__buttons {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 16px auto 0;
    width: 35px;
    height: 348px;
}

.kv__button {
    padding: 0;
    max-width: 200px;
    width: 100%;
    height: 100%;
    border: none;
    background-color: rgba(119, 98, 47, 0.6);
    background-blend-mode: multiply;
    background-size: 500%;
    background-repeat: no-repeat;
    opacity: 0.7;
    cursor: pointer;

    &.is-active {
        background-color: rgba(221, 202, 68, 0.4);
    }
}

.kv__button[data-index="0"] {
    background-image: url('/v2/img/static_page/media/soudouki/kv_pc_novel.webp');
    background-position: 28% 30%;
}

.kv__button[data-index="1"] {
    background-image: url('/v2/img/static_page/media/soudouki/kv_pc_comic.webp');
    background-position: 65% 30%;
}

.kv__text {
    text-align: center;
    color: #c80507;
    font-size: 56px;
    font-weight: bold;
    text-shadow: 1px 1px 0 #ddcca4,
    -1px 1px 0 #ddcca4,
    1px -1px 0 #ddcca4,
    -1px -1px 0 #ddcca4,
    0 1px 0 #ddcca4,
    1px 0 0 #ddcca4,
    -1px 0 0 #ddcca4;
}

.common-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.common-button {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    max-width: 320px;
    width: calc(100% - 32px);
    height: 50px;
    background-color: #c80507;
    color: white;
    font-family: "Zen Old Mincho", serif;
    font-size: 20px;
    font-weight: bold;
    outline: 1px solid white;
    outline-offset: -2px;
}

.common-button::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 48px;
    height: 48px;
    background-image: url('/v2/img/static_page/media/soudouki/button_frame.svg');
    background-size: contain;
    background-repeat: no-repeat;
}

.common-button::after {
    content: "";
    position: absolute;
    right: 2px;
    bottom: 2px;
    width: 48px;
    height: 48px;
    background-image: url('/v2/img/static_page/media/soudouki/button_frame.svg');
    background-size: contain;
    background-repeat: no-repeat;
    transform: rotate(180deg);
}

.common-button:hover {
    filter: brightness(1.1);
}

.common-title {
    margin-bottom: 8px;
    margin-left: 16px;
    color: #c80507;
    font-family: "Zen Old Mincho", serif;
    font-size: 34px;
    font-weight: normal;
    text-shadow: 1px 1px 0 #ffffff,
    -1px 1px 0 #ffffff,
    1px -1px 0 #ffffff,
    -1px -1px 0 #ffffff,
    0 1px 0 #ffffff,
    1px 0 0 #ffffff,
    -1px 0 0 #ffffff;
}

.common-title--right {
    margin-right: 16px;
    margin-left: auto;
    text-align: right;
}

.common-title--small {
    margin-left: 0;
    color: #ac8e44;
    font-size: 26px;
    font-weight: normal;
}

.common-title__line {
    margin-bottom: 16px;
    width: 70%;
    height: 2px;
    background-color: #c80507;
}

.common-title__line--right {
    position: relative;
    margin-left: auto;
}

.story {
    padding: 50px 0 0;
}

.story__copy {
    position: relative;
    margin: 0 84px 16px 16px;
    padding: 16px 0 16px 16px;
    border: 2px solid #ac8e44;
}

.story__copy-image {
    position: absolute;
    right: -85px;
    bottom: 0;
    width: 55vw;
    max-width: 200px;
}

.story__copy-text {
    position: relative;
    color: #ac8e44;
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-weight: bold;
    font-size: 18px;
    line-height: 1.3;
    text-shadow: 1px 1px 0 #ffffff,
    -1px 1px 0 #ffffff,
    1px -1px 0 #ffffff,
    -1px -1px 0 #ffffff,
    0 1px 0 #ffffff,
    1px 0 0 #ffffff,
    -1px 0 0 #ffffff;
}

.story-abstract {
    margin: 0 16px;
    font-family: "Zen Old Mincho", serif;
    font-weight: bold;
}

.story-abstract__text {
    margin-bottom: 4px;
    line-height: 1.75;
}

.story-abstract__text--red {
    color: #c80507;
    font-size: 18px;
}

.story-abstract__text--red-large {
    margin: 0;
    text-align: center;
    color: #c80507;
    font-size: 20px;
    line-height: 1.7;
}

.story__image {
    display: flex;
    margin: 0 auto;
    width: 400px;
    filter: opacity(0.6);
}

.character {
    position: relative;
    z-index: 2;
    padding-top: 50px;
    width: 100%;
}

.character__title-image {
    position: absolute;
    left: calc(30% - 150px);
    top: 0;
    z-index: -1;
    width: 200px;
}

.character__lists {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 8px;
}

.character__hero {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;

    .character__image:hover {
        cursor: pointer;
        filter: brightness(1.1);
    }
}

.character__list {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 4px;
    margin: 0 auto;
    max-width: 304px;
    width: calc(100vw - 20px);
}

.character__list--heroine {
    gap: 8px;
    margin-bottom: 16px;
    width: calc(100vw - 24px);

    .character__image:hover {
        cursor: pointer;
        opacity: 0.8;
    }
}

.character__list--other {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 0;
    width: calc(100vw - 40px);

    .character__image:hover {
        cursor: pointer;
        opacity: 0.8;
    }
}

.character__profile {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.character__image {
    min-width: 0;
    width: 100%;
}

.character__image--bard {
    position: absolute;
    bottom: 0;
    left: 20%;
    width: 70%;
}

.character__name {
    position: absolute;
    bottom: 10%;
    width: 70%;
    border: solid 1px rgba(172, 142, 68, 0.9);
    background-color: rgba(189, 154, 101, 0.9);
    color: #ffffff;
    font-family: "Zen Old Mincho", serif;
    text-align: center;
    cursor: pointer;
}

.character__name--sanai {
    position: relative;
    bottom: 0;
    padding-right: 20%;
    width: 100%;
    background-color: #bd9a65;
    font-size: 20px;
    font-weight: bold;
}

.character__name--masaharu {
    position: relative;
    bottom: 0;
    padding-left: 35%;
    width: 100%;
    background-color: #bd9a65;
    font-size: 20px;
    font-weight: bold;
}

.character__name--bard {
    bottom: 30px;
    width: 40%;
    background-color: #bd9a65;
    font-size: 20px;
    font-weight: bold;
}

.character__name--other {
    bottom: 5%;
    width: 80%;
    font-size: 14px;
}

.character__arrow {
    display: flex;
    position: relative;
    justify-content: space-between;
    margin: 0 1vw 13vh;
}

.character__copy {
    position: relative;
    color: #c80507;
    font-family: "Zen Old Mincho", serif;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    text-shadow: 1px 1px 0 #ffffff,
    -1px 1px 0 #ffffff,
    1px -1px 0 #ffffff,
    -1px -1px 0 #ffffff,
    0 1px 0 #ffffff,
    1px 0 0 #ffffff,
    -1px 0 0 #ffffff;
}

.news {
    position: relative;
    z-index: 1;
    padding: 120px 0 100px;
}

.news__image {
    position: absolute;
    bottom: 0;
    right: calc(30% - 370px);
    z-index: -1;
    width: 500px;
}

.news__content {
    padding: 0 16px;
}

.news__list {
    margin: 0 auto;
    width: calc(100% - 16px);
    padding: 8px;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-gutter: stable both-edges;
    background-color: rgba(255, 255, 255, 0.8);
}

.news__detail {
    padding: 12px;
    border-bottom: 1px solid #c80507;

    a {
        color: #003ae9;
    }

    a:hover {
        opacity: 0.8;
    }
}

.news__detail:first-child {
    padding-top: 4px;
}

.books {
    padding: 65px 0 32px;
}

.books__contents {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.books__content {
    position: relative;
}

.books__content-novel {
    display: block;
    margin: 0 8px 8px auto;
    max-height: 25px;
    height: 7vw;
}

.books__content-comics {
    display: block;
    position: relative;
    left: -16px;
    margin-bottom: 8px;
    height: 22px;
}

.books__title-image {
    position: absolute;
    bottom: 15%;
    left: calc(30% - 330px);
    width: 500px;
}

.books__slider {
    .slick-list {
        margin: 0;
    }

    .slick-arrow:before {
        content: "";
        position: absolute;
        top: 260px;
        width: 40px;
        height: 20px;
    }

    .slick-prev {
        left: 0;
        width: 28%;
        height: 100%;
        z-index: 1;
    }

    .slick-prev:before {
        right: 0;
        background-image: url('/v2/img/static_page/media/soudouki/arrow_prev.svg');
        background-repeat: no-repeat;
        opacity: 1;
    }

    .slick-next {
        right: 0;
        z-index: 1;
        width: 28%;
        height: 100%;
    }

    .slick-next:before {
        left: 0;
        background-image: url('/v2/img/static_page/media/soudouki/arrow_next.svg');
        background-repeat: no-repeat;
        opacity: 1;
    }
}

.books__list {
    position: relative;
    margin-top: 20px;
    overflow: visible;
    text-align: center;

    .is-latest {
        display: none;
    }

    .books__info {
        display: none;
    }
}

.books__image {
    height: 256px;
    opacity: 0.6;
}

.books__number {
    margin: 12px 0 8px 0;
    text-align: center;
    font-size: 20px;
}

.books__text {
    color: #c80507;
    text-align: center;
    line-height: 18px;
    font-weight: bold;
}

.slick-slide {
    .books__image {
        transform: scale(0.75);
        transition: all 0.5s ease;
        filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.3));
    }
}

@keyframes fadeInAnime {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.slick-center {
    .books__image {
        transform: scale(1);
        opacity: 1;
    }

    .is-latest {
        display: block;
        position: absolute;
        left: -10px;
        top: -15px;
        z-index: 1;
        width: 120px;
        animation-name: fadeInAnime;
        animation-duration: 1s;
        animation-fill-mode: forwards;
    }

    .books__info {
        display: block;
        margin-bottom: 8px;
        font-family: "Zen Old Mincho", serif;
    }
}

.slick-center:hover {
    filter: brightness(1.1);
}

.gallery {
    position: relative;
    padding: 30px 0 0;
    overflow: clip;
}

.gallery__heading-novel {
    max-height: 25px;
    height: 7vw;
}

.gallery__heading-comics {
    display: block;
    position: relative;
    margin: 0 8px 8px auto;
    height: 22px;
}

.gallery__image {
    position: absolute;
    bottom: 17%;
    left: calc(30% - 130px);
    z-index: 1;
    width: 240px;
}

.gallery__image--right {
    top: 0;
    right: 0;
    left: unset;
    width: 200px;
}

.gallery__contents {
    height: 380px;
}

@keyframes infinity-scroll {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

.gallery__bg {
    display: flex;
}

.gallery__bg--left {
    transform: rotate(-7deg);
}

.gallery__bg--right {
    transform: rotate(7deg);
}

.gallery__bg-list--left {
    animation: infinity-scroll 200s infinite linear 0.5s both;
}

.gallery__bg-list--right {
    animation: infinity-scroll 200s infinite linear 0.5s both reverse;
}

.gallery__cover {
    height: 300px;
    opacity: 0.3;
}

.gallery__slider {
    top: -260px;
    z-index: 2;

    .slick-list {
        margin: 0;
    }

    .slick-arrow:before {
        content: "";
        position: absolute;
        top: 10px;
        width: 40px;
        height: 20px;
    }

    .slick-prev {
        top: 110%;
        left: 0;
        width: 28%;
        height: 40px;
    }

    .slick-prev:before {
        right: 0;
        background-image: url('/v2/img/static_page/media/soudouki/arrow_prev.svg');
        background-repeat: no-repeat;
        opacity: 1;
    }

    .slick-next {
        top: 110%;
        right: 0;
        width: 28%;
        height: 40px;
    }

    .slick-next:before {
        left: 0;
        background-image: url('/v2/img/static_page/media/soudouki/arrow_next.svg');
        background-repeat: no-repeat;
        opacity: 1;
    }
}

.gallery__list {
    margin: 0 12px;
    text-align: center;
}

.gallery__illust {
    width: 150px;
    height: auto;
    border: none;
    filter: drop-shadow(0 2px 1px rgba(0, 0, 0, 0.3));
    cursor: pointer;
}

.gallery__illust:hover {
    filter: brightness(1.1);
}

.anime {
    position: relative;
    padding: 70px 0 50px;
    overflow: hidden;
}

.anime__image {
    position: absolute;
    top: 0;
    right: 0;
    z-index: -1;
    max-width: 350px;
    width: 85vw;
}

.anime__kv {
    display: block;
    margin: 0 auto 16px;
    max-width: 500px;
    width: calc(100% - 32px);
}

.anime__staff-and-cast {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 36px;
    font-family: "Zen Old Mincho", serif;
    line-height: 1.7;
}

.anime__heading-staff-and-cast {
    position: relative;
    left: -8px;
    height: 25px;
}

.staff__image {
    position: absolute;
    top: 0;
    right: calc(30% - 140px);
    width: 150px;
}

.anime__content {
    margin: 0 16px;
}

.anime__author {
    display: flex;
    gap: 4px;
}

.anime__text {
    font-weight: bold;
}

.anime__comment {
    position: relative;
    top: -5px;
    width: 40px;
    cursor: pointer;
    filter: drop-shadow(0 2px 1px rgba(0, 0, 0, 0.3));
}

.anime__comment:hover {
    filter: brightness(1.1);
}

/*モーダル*/
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);

    &.is-open {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

.modal-frame {
    position: relative;
    margin: 0 auto;
    max-width: 500px;
    width: 90%;
    max-height: 75vh;
    height: auto;
}

.modal {
    display: flex;
    flex-direction: column;
    position: relative;
    margin: 0 auto;
    height: 100%;
    padding: 16px 16px 62px;
    background-color: white;
    box-sizing: border-box;

    .slick-initialized,
    .slick-list,
    .slick-track {
        margin: 0 auto;
        height: 100%;
    }

    .slick-slide > .modal__slide {
        height: 100%;
    }
}

.modal-frame--top {
    position: absolute;
    z-index: 1;
    width: 100%;
    height: 100%;
    box-shadow: inset 0 0 0 6px #ffffff, inset 0 0 0 8px #bc9965;
    pointer-events: none;
}

.modal-frame--top::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 40px;
    height: 40px;
    background-image: url('/v2/img/static_page/media/soudouki/modal_frame.svg');
    background-size: contain;
    background-color: white;
    background-repeat: no-repeat;

}

.modal-frame--top::after {
    content: '';
    position: absolute;
    top: 4px;
    right: 4px;
    width: 40px;
    height: 40px;
    background-image: url('/v2/img/static_page/media/soudouki/modal_frame.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-color: white;
    transform: rotate(90deg);
}

.modal-frame--bottom {
    position: relative;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.modal-frame--bottom::before {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 4px;
    width: 40px;
    height: 40px;
    background-image: url('/v2/img/static_page/media/soudouki/modal_frame.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-color: white;
    transform: rotate(-90deg);
}

.modal-frame--bottom::after {
    content: '';
    position: absolute;
    right: 4px;
    bottom: 4px;
    width: 40px;
    height: 40px;
    background-image: url('/v2/img/static_page/media/soudouki/modal_frame.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-color: white;
    transform: rotate(180deg);
}


.modal--novel,
.modal--comics {
    margin: 0 auto;
    max-width: 500px;
    width: 90%;
    height: auto;
    padding: 0 16px;
    overflow: unset;
    background-color: transparent;
}

.modal__name {
    margin-bottom: 16px;
    color: #ac8e44;
    border-bottom: 2px solid #ac8e44;
    font-family: "Zen Old Mincho", serif;
    font-size: clamp(24px, 7vw, 32px);
    font-weight: bold;
    text-align: center;

    span {
        font-size: clamp(16px, 5vw, 24px);
    }
}

.modal__content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 100%;
    padding-bottom: 62px;
    overflow-y: auto;
}

.modal__image {
    display: block;
    width: 95%;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.modal-chara__description {
    color: black;
    font-family: "Zen Old Mincho", serif;
    font-size: clamp(18px, 5vw, 24px);

    span {
        color: #c80507;
        font-weight: bold;
    }
}

.modal-gallery__image {
    margin: 0 auto;
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.modal-gallery__text {
    color: white;
    font-size: clamp(20px, 2vw, 28px);
    font-weight: bold;
    text-align: center;
}

.modal-anime__text {
    width: 95%;
    margin: 0 auto;
    font-family: "Zen Old Mincho", serif;
    font-size: clamp(16px, 4vw, 18px);
}

.modal-arrow {
    position: absolute;
    bottom: 12px;
    z-index: 10;
    width: 35%;
    height: 50px;
    cursor: pointer;
}

.modal-prev {
    left: 21px;
    background-image: url('/v2/img/static_page/media/soudouki/arrow_prev.svg');
    background-size: 60px 30px;
    background-position: left bottom;
    background-repeat: no-repeat;
}

.modal-prev--gallery {
    right: 35px;
}

.modal-next {
    right: 21px;
    background-image: url('/v2/img/static_page/media/soudouki/arrow_next.svg');
    background-size: 60px 30px;
    background-position: right bottom;
    background-repeat: no-repeat;
}

.modal-next--gallery {
    right: 35px;
}

.modal-close {
    z-index: 8;
    color: white;
    text-align: center;
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-size: clamp(18px, 4vw, 24px);
    cursor: pointer;
}

.footer {
    padding: 32px 0;
    background-color: black;
    text-align: center;

    img {
        max-width: 100%;
    }
}

.copyright {
    margin-top: 8px;
    color: white;
    font-size: 12px;
}

@media screen and (max-width: 1062px) {
    .page-top-icon {
        bottom: 20px;
    }

    .contents-wrap {
        grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    }

    .following-menu {
        width: 100%;

        .common-button {
            font-size: clamp(16px, 2vw, 20px);
        }
    }

    .main-contents {
        display: block;
        width: 100%;
    }

    .kv__text {
        font-size: 40px;
    }

    .kv__buttons {
        flex-direction: row;
        margin: 0 auto 8px;
        width: calc(100% - 32px);
        height: 35px;
    }

    .kv__button {
        background-size: 100%;
    }

    .kv__button[data-index="0"] {
        background-image: url('/v2/img/static_page/media/soudouki/kv_sp_novel.webp');
        background-position: center 51%;
    }

    .kv__button[data-index="1"] {
        background-image: url('/v2/img/static_page/media/soudouki/kv_sp_comic.webp');
        background-position: center 62%;
    }

    .story__copy {
        margin: 0 56px 16px 16px;
    }

    .character__arrow {
        margin: 0 1vw 15vw;
    }
}

@media screen and (max-width: 640px) {
    .page-top-icon {
        width: 50px;
        height: 62px;
    }

    .screen-frame-wrap {
        grid-template-columns: 100%;
    }

    .sp-only__content {
        display: block;
    }

    .contents-wrap {
        display: block;
    }

    .contents-wrap::before {
        background-image: url("/v2/img/static_page/media/soudouki/sp_bg.webp");
    }

    .hamburger-menu {
        display: block;
    }

    .hamburger-menu__icon {
        position: fixed;
        top: 25px;
        right: 30px;
        z-index: 9;
        width: 35px;
        height: 35px;
        cursor: pointer;
    }

    .hamburger-menu__icon-line {
        display: block;
        margin: 8px 0;
        height: 2px;
        background-color: black;
        border-radius: 1px;
        transition: 0.4s;
    }

    #menu-toggle:checked + .hamburger-menu__icon .hamburger-menu__icon-line:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
    }

    #menu-toggle:checked + .hamburger-menu__icon .hamburger-menu__icon-line:nth-child(2) {
        opacity: 0;
    }

    #menu-toggle:checked + .hamburger-menu__icon .hamburger-menu__icon-line:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
    }

    .hamburger-menu__logo {
        margin: 8px 0 0 16px;
        width: 50%;
        height: auto;
    }

    .hamburger-menu__nav {
        position: fixed;
        z-index: 8;
        width: 100%;
        height: 100%;
        overflow-y: auto;
        background: white;
        transform: translateX(100%);
        transition: transform 0.4s ease;
    }

    #menu-toggle:checked ~ .hamburger-menu__nav {
        transform: translateX(0);
    }

    .hamburger-menu__links {
        margin-bottom: 16px;
        list-style: none;
    }

    .hamburger-menu__link {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        border-top: 2px solid #ddcca4;
        font-family: "Zen Old Mincho", serif;
        font-size: 20px;
        font-weight: bold;

        a {
            width: 100%;
            padding: 16px 0;
            color: black;
            text-align: center;
        }
    }

    .hamburger-menu__link:last-child {
        border-bottom: 2px solid #ddcca4;
    }

    .following-menu {
        display: none;
    }

    .kv__logo-area {
        display: block;
        position: absolute;
        top: 8px;
        left: 16px;
        z-index: 3;
        width: 60vw;
        height: auto;
    }

    .main-contents {
        position: relative;
    }

    .kv__logo {
        display: block;
        width: 100%;
        height: auto;
    }

    .kv__slider > * {
        display: contents;
    }

    .kv__text {
        margin-bottom: 16px;
        font-size: clamp(28px, 8vw, 34px);
    }

    .story__copy {
        margin: 0 0 16px 16px;
        padding: 8px 0 8px 8px;
        border: none;
        border-left: 2px solid #ac8e44;
        background: linear-gradient(#ac8e44, #ac8e44) top left / 100% 2px no-repeat,
        linear-gradient(#ac8e44, #ac8e44) bottom left / 100% 2px no-repeat;
    }

    .story__copy-image {
        right: -40px;
    }

    .story__image {
        width: 100%;
    }

    .character__list {
        max-width: 500px;
    }

    .character__image--bard {
        left: 18%
    }

    .character__name--other {
        bottom: 5%;
        width: 80%;
        font-size: 14px;
    }

    .character__arrow {
        display: flex;
        position: relative;
        justify-content: space-between;
        margin: 0 5vw 45vw;
    }

    .news__image {
        top: -60px;
        right: calc(30% - 320px);
    }

    .news__detail {
        padding: 8px;
    }

    .books__title-image {
        bottom: 20%;
        width: 500px;
    }

    .books__slider {
        .slick-prev {
            width: 25%;
        }

        .slick-next {
            width: 25%;
        }
    }

    .gallery__slider {
        .slick-prev {
            width: 25%;
        }

        .slick-next {
            width: 25%;
        }
    }

    .anime__kv {
        max-width: 320px;
    }

    .anime__comment--sp {
        top: 5px;
    }

    .modal-gallery__text {
        color: white;
        font-size: clamp(16px, 4vw, 20px);
        font-weight: bold;
        text-align: center;
    }

    .modal-arrow {
        height: 30px;
    }

    .modal-prev {
        background-size: 50px 25px;
    }

    .modal-next {
        background-size: 50px 25px;
    }
}

