@charset "utf-8";

/* Base styles */
:root {
    scroll-behavior: smooth;
    scroll-padding-block-start: .32rem;
}

.is-mobile-tablet body {
    background-color: #4b1e78;
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
    font-family: "Hiragino Kaku Gothic Pro", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, メイリオ, "Droid Sans", sans-serif;
}

.topics-text img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

.is-mobile-tablet .container {
    background-color: #fff;
}

div.container {
    overflow: clip;
}

.section-topics-detail.section-scene-post {
    color: #333;
    font-variant-east-asian: proportional-width;
    line-break: strict;
    text-autospace: normal;
}

.is-desktop .section-topics-detail div.wrapper {
    /* padding-inline: 0; */
    width: 100%;
    max-width: 1400px;
}

.is-desktop .section-topics-detail div.box-common {
    padding: 0;
}

.is-desktop .section-topics-detail h1.common-title {
    font-size: .24rem;
    margin-block: 1.5em 1em;
    color: #222;
}

.is-mobile-tablet .section-topics-detail div.topics-content {
    box-shadow: none;
    margin: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
}

.is-desktop .section-topics-detail div.topics-photo img {
    width: 100%;
}

.is-mobile-tablet .section-topics-detail div.topics-text>div:first-of-type {
    border: unset !important;
    margin: unset !important;
    padding: unset !important;
}

.is-mobile-tablet .section-topics-detail div.topics-text>div:first-of-type>div:first-of-type {
    font-size: unset !important;
}

.is-desktop .section-topics-detail div.topics-photo {
    margin-block-end: 0;
}

.is-mobile-tablet .section-topics-detail .sns[data-v-0219b7cb] {
    margin: .8rem .24rem .24rem;
    border-radius: .5rem;
    padding: .16rem;
    width: calc(100% - .48rem) !important;
    display: flex;
    align-items: stretch;
}

div.sns div[data-v-0219b7cb] {
    color: #7d7d7d;
    align-items: center;
    gap: .05rem;
    margin: 0;
}

div.sns ul li[data-v-0219b7cb] {
    margin: 0;
    padding-inline: .5em;
}

/* Unique style */
:root {
    --clr-kaguya: #ff877c;
    --clr-iroha: #69ccdd;
    --clr-yachiyo: #a185e6;
}

.section-topics-detail.section-scene-post {
    background-color: #ffffff;
    background-size: 50px 86.6px;
    background-repeat: repeat;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='173.2' viewBox='0 0 100 173.2'%3E%3Cpath d='M50 0 L0 86.6 L100 86.6 Z M0 86.6 L50 173.2 L100 86.6 M0 0 H100 M0 173.2 H100' fill='none' stroke='%23E0D0F0' stroke-width='1'/%3E%3C/svg%3E");
    background-attachment: fixed;
}

.is-mobile-tablet .section-scene-post div.topics-text {
    padding-inline: .24rem;
}

.topics-text>*+* {
    margin-block-start: .96rem;
}

.topics-text strong {
    font-weight: bold;
}

/* commons */
.p-image-frame {
    position: relative;
    display: block;
    line-height: 0;
    width: fit-content;
    margin: auto;

    &::before {
        content: "";
        position: absolute;
        inset: -2px;
        background-image:
            linear-gradient(cyan, cyan), linear-gradient(cyan, cyan),
            linear-gradient(cyan, cyan), linear-gradient(cyan, cyan),
            linear-gradient(cyan, cyan), linear-gradient(cyan, cyan),
            linear-gradient(cyan, cyan), linear-gradient(cyan, cyan);
        background-repeat: no-repeat;
        background-size: 20px 5px, 5px 20px;
        background-position:
            0 0, 0 0,
            100% 0, 100% 0,
            0 100%, 0 100%,
            100% 100%, 100% 100%;
    }

    img {
        width: 100%;
        max-width: 560px;
        border: 1px solid cyan;
    }
}

.c-section-title {
    font-size: .16rem;
    font-weight: bold;
    text-align: center;

    &::before {
        content: attr(data-en);
        display: block;
        width: fit-content;
        margin-inline: auto;
        background-image: linear-gradient(358deg, #ff877c 50%, #333 50%);
        background-clip: text;
        color: transparent;
        text-transform: uppercase;
        font-size: clamp(0.2rem, 6.25vw + 0rem, 0.48rem);
        line-height: 1.5;
        font-family: "Helvetica Neue", Arial, sans-serif;
    }
}

.p-sub-heading {
    font-weight: bold;
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: clamp(0.2rem, 2.679vw + 0.114rem, 0.32rem);
    text-transform: uppercase;
    font-kerning: auto;
    color: #282828;
    margin-block-end: .16rem;

    &::first-letter {
        color: #69ccdd;
    }
}

.topics-text a[target="_blank"] {
    display: inline-block;
    color: var(--clr-kaguya);
    text-decoration-line: underline;
    text-decoration-color: currentColor;
    text-decoration-style: dashed;
    text-decoration-thickness: 1px;
    text-underline-offset: .25em;

    &::after {
        content: "";
        display: inline-block;
        margin-inline-start: .2em;
        width: .8em;
        aspect-ratio: 1;
        background-color: var(--clr-kaguya);
        -webkit-mask-image: url(https://www.print-gakufu.com/assets/images/upload/upload_3191_1.svg);
        mask-image: url(https://www.print-gakufu.com/assets/images/upload/upload_3191_1.svg);
        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;
        -webkit-mask-size: contain;
        mask-size: contain;
    }
}

/* leading-text */
.leading-text {
    margin-block-start: .64rem;
    text-align: center;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    font-size: clamp(0.18rem, 0.446vw + 0.166rem, 0.2rem);
}

.leading-text>* {
    margin-block-start: .32rem;
}

.leading-text strong {
    display: inline-block;
    padding: 0 .25em;
    margin-inline: .25em;
    text-box: text trim-both;
    background-color: #ff877c;
    color: #fff;
}

/* official sheet music */
.official-sheetmusic__container {
    display: flex;
    flex-direction: column;
    gap: .56rem;
    margin-block: .56rem;
}

.official-sheetmusic__item {
    display: flex;
    flex-direction: column;
    gap: .16rem;
}

.official-sheetmusic__sample {
    margin-inline: auto;
    width: min(75%, 400px);
    box-shadow: 0 2px 10px -2px var(--clr-yachiyo);
    cursor: pointer;

    @media(any-hover: hover) {
        &:hover {
            opacity: .6;
        }
    }
}

.official-sheetmusic__title {
    font-size: .16rem;
    font-weight: bold;
    padding-block-end: .08rem;
    border-block-end: 1px solid currentColor;
    margin-block-start: .16rem;
}

.official-sheetmusic__credit {
    font-size: .12rem;
}

.official-sheetmusic__link a {
    display: block;
    background-color: var(--clr-yachiyo);
    color: #fff;
    border-radius: .05rem;
    text-box-trim: trim-both;
    padding: 1em;
    text-align: center;
    font-weight: bold;
    box-shadow: 0 3px color-mix(in srgb, var(--clr-yachiyo), #000 20%);
}

.official-sheetmusic__annotation {
    margin-block-start: .16rem;
    text-indent: -1em;
    padding-inline-start: 1em;
}

.official-sheetmusic__annotation small::before {
    content: "※";
}

dialog {
    padding: 0;
    border: none;
    background-color: transparent;
    width: auto;
    max-width: 80vw;
    max-height: 80vh !important;
}

dialog::-webkit-backdrop {
    background-color: rgba(0, 0, 0, 0.8);
}

dialog::backdrop {
    background-color: rgba(0, 0, 0, .8);
}

.modal-content {
    display: flex;
    flex-direction: column;
    background-color: transparent;
    position: relative;
    width: 100%;
    -webkit-padding-end: 8px;
    padding-inline-end: 8px;
    overflow-y: auto;
}

#close-button {
    position: fixed;
    top: .24rem;
    right: .24rem;
    cursor: pointer;
    background: none;
    border: none;
    width: .44rem;
    aspect-ratio: 1;
    color: #fff;
}

#close-button::before,
#close-button::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 1px;
    background-color: #eee;
    translate: -50% -50%;
}

#close-button::before {
    rotate: 45deg;
}

#close-button::after {
    rotate: 135deg;
}

#sample-image {
    max-width: 100%;
    height: auto;
    display: block;
}

.is-desktop {
    .official-sheetmusic__container {
        flex-direction: row;
        width: 100vw;
        margin-inline: calc(50% - 50vw);
        justify-content: center;
        gap: .32rem;
    }

    .official-sheetmusic__container>* {
        flex: 0 0 320px;
        justify-content: space-between;
    }

    .official-sheetmusic__title {
        flex-grow: 1;
    }

    .official-sheetmusic__credit {
        flex-grow: 1;
        align-content: center;
    }

    .official-sheetmusic__annotation {
        text-align: center;
    }
}

/* introduction */
.dash {
    letter-spacing: -.2em;
    display: inline-block;
    margin-inline-start: .125em;
    transform: translateY(-.125em);
}

.introduction__movie iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16/9;
    height: auto;
    border-radius: 1vw;
}

.introduction>*+* {
    margin-block-start: .48rem;
}

.introduction__tagline {
    font-size: clamp(0.16rem, 1.018vw + 0.122rem, 0.2rem);
    font-weight: bold;
}

.introduction__story p {
    line-height: 2;
}

.introduction__story p+p {
    margin-block-start: 1lh;
}

.introduction__scene {
    display: flex;
    flex-direction: column;
    gap: .16rem;
}

.introduction__link {
    margin-block-start: 1lh;
}

.introduction__characters-name {
    font-weight: bold;
    font-size: .16rem;
}

.introduction__character-box+.introduction__character-box {
    margin-block-start: .32rem;
}

.is-mobile-tablet .introduction__scene {
    margin-block-start: 1lh;
}

.is-mobile-tablet .introduction__character-box>*+* {
    margin-block-start: .16rem;
}

/* footer */
.contents-footer {
    margin-block-start: 1.28rem;
}

.contents-footer__img.p-image-frame {
    width: 100%;
    max-width: 560px;
}

.contents-footer__copyright {
    margin-block-start: 1em;
    text-align: center;
}

.is-desktop {
    .section-topics-detail div.topics-photo img {
        border-radius: 1vw;
    }

    .leading-text>*:first-child {
        margin-block-start: 0;
    }

    .introduction__story-inner {
        display: flex;
        gap: .24rem;
        align-items: flex-start;
    }

    .introduction__character-box {
        display: grid;
        grid-template-columns: 1fr 320px;
        grid-template-rows: auto 1fr;
        column-gap: .24rem;
    }

    .introduction__characters-name {
        grid-area: 1/1/2/2;
    }

    .introduction__characters-description {
        grid-area: 2/1/3/2;
    }

    .introduction__characters-image {
        grid-area: 1/2/3/3;
    }

    .section-topics-detail div.wrapper {
        max-width: 800px;
    }

    .leading-text .p-image-frame {
        max-width: 560px;
    }

    #modal-dialog {
        max-width: 445px;
    }

    .sample-image__wrapper {
        max-height: 80vh;
    }

    #sample-image {
        width: 100%;
    }
}

.sns[data-v-0219b7cb] {
    background-color: #fff;
}