/* 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;
}

.is-desktop img {
    height: auto;
}

.is-mobile-tablet .container {
    background-color: #fff;
}

.section-topics-detail.section-scene-post {
    /* color: #505050; */
    font-variant-east-asian: proportional-width;
    line-break: strict;
}

.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;
}

.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 {
    -webkit-margin-after: 0;
    margin-block-end: 0;
} */

/* Unique styles */
:root {
    --theme-color: #c16785;
    --theme-font-regular: "Yu Mincho Regular", "游明朝体", "YuMincho", serif;
    --theme-font-bold: "游明朝 Demibold", "YuMincho Demibold", "游明朝", "YuMincho", serif;
    --theme-font-heading: "Times New Roman", Times, "游明朝 Demibold", "YuMincho Demibold", "游明朝", "YuMincho", serif;
}

/* common on this page */
.is-mobile-tablet .section-topics-detail.section-scene-post {
    letter-spacing: .1em;
}

.section-topics-detail h1.common-title {
    color: #3f3f3f;
}

.is-mobile-tablet .section-topics-detail div.topics-photo {
    -webkit-margin-after: .32rem;
    margin-block-end: .32rem;
}

.is-desktop .section-topics-detail div.topics-photo {
    -webkit-margin-after: .24rem;
    margin-block-end: .24rem;
}

.is-mobile-tablet .section-topics-detail div.topics-content {
    padding-inline: .32rem;
}

.topics-text a {
    color: var(--theme-color);
    line-height: 1.5;
    -webkit-text-decoration-line: underline;
    text-decoration-line: underline;
    text-decoration-thickness: from-font;
    -webkit-text-decoration-color: currentColor;
    text-decoration-color: currentColor;
    -webkit-text-decoration-style: solid;
    text-decoration-style: solid;
    text-underline-offset: 3px;
}

.topics-text a[target="_blank"]::after {
    content: url(https://www.print-gakufu.com/assets/images/upload/upload_3191_1.svg);
    display: inline-block;
    width: .75em;
    aspect-ratio: 1;
    margin-inline: .25em;
    -webkit-filter: invert(47%) sepia(7%) saturate(2896%) hue-rotate(289deg) brightness(101%) contrast(89%);
    filter: invert(47%) sepia(7%) saturate(2896%) hue-rotate(289deg) brightness(101%) contrast(89%);
}

.main-contents {
    font-family: var(--theme-font-regular);
    font-size: .16rem;
}

.main-contents section,
.main-contents aside {
    -webkit-margin-before: .8rem;
    margin-block-start: .8rem;
}

.is-desktop .main-contents section,
.is-desktop .main-contents aside {
    -webkit-margin-before: 1.28rem;
    margin-block-start: 1.28rem;
}

.main-contents section h2 {
    font: .24rem / 1.25 var(--theme-font-heading);
    text-align: center;
    font-variant-east-asian: proportional-width;
    letter-spacing: .1em;
}

.main-contents section h2::after {
    content: attr(data-english);
    display: block;
    font-size: .5em;
    text-transform: capitalize;
}

.is-desktop .main-contents {
    font-size: .18rem;
}

.is-desktop .main-contents section h2 {
    font-size: .32rem;
}

.is-desktop .main-contents section h2+p {
    text-align: center;
}

.main-contents :is(section, aside)>*+* {
    -webkit-margin-before: .4rem;
    margin-block-start: .48rem;
}

.is-desktop .main-contents :is(section, aside)>*+* {
    -webkit-margin-before: .64rem;
    margin-block-start: .64rem;
}

.is-desktop .section-topics-detail div.topics-text {
    font-size: .16rem;
}

/* lead */
.is-mobile-tablet .lead-text p {
    text-align: justify;
    font-size: .875em;
}

.is-mobile-tablet .lead-text p+p {
    -webkit-margin-before: .75em;
    margin-block-start: .75em;
}

/* interview */
.interview-dialogue__headline {
    font: .2rem var(--theme-font-heading);
    -webkit-margin-before: .24rem;
    margin-block-start: .24rem;
}

.interview-dialogue>p {
    -webkit-margin-before: 1em;
    margin-block-start: 1em;
}

.interview-dialogue__interviewer {
    color: var(--theme-color);
    font-family: var(--theme-font-bold);
}

.interview-dialogue__interviewer::before {
    content: "";
    display: inline-block;
    width: 2em;
    height: 1px;
    background: var(--theme-color);
    vertical-align: middle;
    -webkit-margin-end: .25em;
    margin-inline-end: .25em;
}

.interview__continuation {
    color: #505050;
}

.interview :is(rp, rt) {
    display: inline;
    font-size: .8em;
    color: #3f3f3f;
}

.is-desktop .interview__continuation {
    text-align: center;
}

/* Offifical Sheet Music */
.sheet-music__item {
    display: grid;
    grid-template-areas:
        "title title"
        "composer composer"
        "description description"
        "sample performance-style"
        "sample level"
        "sample link";
    grid-template-columns: 1.2rem 1fr;
    grid-template-rows: auto auto auto auto auto 1fr;
    gap: .08rem .16rem;
}

.sheet-music__title {
    grid-area: title;
    font: .24rem / 1.25 var(--theme-font-heading);
    letter-spacing: 0;
    -webkit-padding-after: .04rem;
    padding-block-end: .04rem;
    -webkit-border-after: 1px solid currentColor;
    border-block-end: 1px solid currentColor;
    white-space: nowrap;
}

.sheet-music__title small {
    font-size: .5em;
}

.sheet-music__composer {
    grid-area: composer;
}

.sheet-music__style {
    grid-area: performance-style;
}

.sheet-music__level {
    grid-area: level;
}

.sheet-music__level,
.sheet-music__style {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

:is(.sheet-music__style, .sheet-music__level) span {
    display: inline-block;
    background: #eee;
    font-size: .12rem;
    text-box: trim-both cap alphabetic;
    padding: .5em;
}

.sheet-music__sample {
    grid-area: sample;
}

.official-score__sample {
    cursor: pointer;
    transition: opacity .3s;
}

.sheet-music__description {
    grid-area: description;
    margin-block: .16rem;
}

.sheet-music__link {
    grid-area: link;
    align-self: end;
}

.sheet-music__link a {
    display: block;
    font-family: var(--theme-font-bold);
    border: 1px solid var(--theme-color);
    color: var(--theme-color);
    padding: .5em 3em .5em 2em;
    text-decoration: none;
    position: relative;
    text-align: center;
}

.sheet-music__link a::after {
    content: url(https://www.print-gakufu.com/assets/images/upload/upload_5692_1.svg);
    display: inline-block;
    width: 1.5em;
    height: auto;
    -webkit-filter: invert(47%) sepia(7%) saturate(2896%) hue-rotate(289deg) brightness(101%) contrast(89%);
    filter: invert(47%) sepia(7%) saturate(2896%) hue-rotate(289deg) brightness(101%) contrast(89%);
    position: absolute;
    inset-inline-end: 1em;
    transition: inset-inline-end .4s;
}

.sheet-music__item+.sheet-music__item {
    -webkit-margin-before: .48rem;
    margin-block-start: .48rem;
}

.is-hidden {
    opacity: 0;
    transform: translateY(20px);
    -webkit-filter: blur(10px);
    filter: blur(10px);
}

.fade-in-contents {
    transition: all .6s ease-out;
}

#modal-dialog {
    padding: 0;
    border: none;
    background-color: transparent;
    width: auto;
    max-width: 80vw;
}

dialog::-webkit-backdrop {
    background-color: rgba(0, 0, 0, 0.8);
}

dialog::backdrop {
    background-color: rgba(0, 0, 0, .8);
}

.modal-content {
    background-color: transparent;
    position: relative;
    width: 100%;
    -webkit-padding-end: 8px;
    padding-inline-end: 8px;
}

.sample-image__wrapper {
    -webkit-margin-before: 3vh;
    margin-block-start: 3vh;
    max-height: 88vh;
    overflow-y: auto;
}

#modal-close-button {
    position: fixed;
    inset-block-start: 1vh;
    inset-inline-end: .44rem;
    cursor: pointer;
    background: none;
    border: none;
    font-size: .44rem;
    width: .44rem;
    border-radius: 5px;
    color: #fff;
}

#modal-close-button:focus-visible {
    background-color: var(--theme-color);
}

.is-desktop .sheet-music__item {
    grid-template-areas:
        "sample performance-style level"
        "sample title title"
        "sample composer composer"
        "sample description description"
        "sample link link";
    grid-template-columns: 2.4rem auto 1fr;
    grid-template-rows: auto auto auto 1fr auto;
    gap: .08rem .32rem;
}

.is-desktop :is(.sheet-music__level, .sheet-music__style) {
    flex-direction: row;
    align-items: baseline;
    gap: .5em;
}

.is-desktop .sheet-music__level {
    align-self: end;
}

.is-desktop .sheet-music__description {
    margin-block: 0;
    align-self: center;
}

.is-desktop .sheet-music__link {
    justify-self: end;
}

.is-desktop .sheet-music__item+.sheet-music__item {
    -webkit-margin-before: .64rem;
    margin-block-start: .64rem;
}

.is-desktop #modal-dialog {
    max-width: 445px;
}

.is-desktop .sample-image__wrapper {
    max-height: 80vh;
}

.is-desktop #sample-image {
    width: 100%;
}

@media(any-hover: hover) {
    .official-score__sample:hover {
        opacity: .6;
    }

    .sheet-music__link a:hover {
        opacity: 1;
        background: var(--theme-color);
        color: #fff;
    }

    .sheet-music__link a:hover::after {
        -webkit-filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(218deg) brightness(102%) contrast(103%);
        filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(218deg) brightness(102%) contrast(103%);
        inset-inline-end: 0em;
    }
}

/* soundtrack */
.soundtrack__title {
    font: .18rem / 1.5 var(--theme-font-bold);
    font-feature-settings: "palt";
    letter-spacing: .15em;
}

.soundtrack__box>dd {
    -webkit-margin-before: .16rem;
    margin-block-start: .16rem;
}

dd.soundtrack__product-number {
    -webkit-margin-before: 0;
    margin-block-start: 0;
}

.is-desktop .soundtrack__box {
    display: grid;
    grid-template-columns: 320px 1fr;
    grid-template-rows: auto auto auto 1fr 1fr;
    -moz-column-gap: .32rem;
    column-gap: .32rem;
}

.is-desktop .soundtrack__title {
    font-size: .18rem;
}

.is-desktop .soundtrack__box>dd {
    -webkit-margin-before: 0;
    margin-block-start: 0;
}

.is-desktop .soundtrack__image {
    grid-area: 1/1/6/2;
}

.is-desktop .soundtrack__image img {
    box-shadow: 0 0 3px 2px #eee;
}

.is-desktop dd.soundtrack__description {
    margin-block: .16rem;
}

/* profile */
.profile__name {
    font-size: .18rem;
    font-family: var(--theme-font-heading);
}

.profile__box>*+* {
    -webkit-margin-before: .08rem;
    margin-block-start: .08rem;
}

.is-desktop .profile__box {
    display: grid;
    grid-template-columns: 1fr 500px;
    grid-template-rows: auto auto 1fr;
    -moz-column-gap: .32rem;
    column-gap: .32rem;
}

.is-desktop .profile__name {
    font-size: .24rem;
}

.is-desktop .profile__image {
    grid-area: 1/2/4/3;
}

/* about-movie */
.about-movie h2 {
    font: .24rem / 1.5 var(--theme-font-bold);
    text-align: center;
}

.about-movie h2 span {
    display: block;
    font-size: .75em;
}

.is-desktop .about-movie h2 {
    font-size: .24rem;
}

.about-movie__box>* {
    -webkit-margin-before: .24rem;
    margin-block-start: .24rem;
}

.about-movie__box h3 {
    font: 500 1.125em var(--theme-font-heading);
    color: color-mix(in srgb, var(--theme-color), #fff 25%);
}

.about-movie__box h3+p {
    -webkit-margin-before: .08rem;
    margin-block-start: .08rem;
}

.about-movie__story {
    letter-spacing: .1em;
}

.about-movie__avant-credit {
    font: 1.125em var(--theme-font-bold);
}

.about-movie__staff-cast {
    display: grid;
    grid-template-columns: auto 1fr;
    row-gap: .08rem;
    line-height: 1.5;
}

.about-movie__staff-cast>dt {
    -moz-text-align-last: justify;
    text-align-last: justify;
}

.about-movie__staff-cast>dt::after {
    content: "：";
    display: inline-block;
    margin-inline: .5em;
}

.about-movie__cast {
    word-break: auto-phrase;
    font-variant-east-asian: initial;
}

.about-movie__scene-photo img {
    margin-inline: auto;
}

.is-desktop .about-movie__story {
    margin-block: .32rem;
}

.is-desktop .about-movie__staff-cast {
    margin-block: .16rem;
}

.about-movie:last-child {
    -webkit-margin-after: .64rem;
    margin-block-end: .64rem;
}

/* return page top button */
#main-container {
    overflow: clip;
}

.topics-text {
    display: flex;
    flex-direction: column;
}

.scroll-to-top-button {
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    color: #fff;
    font-weight: bold;
    background: color-mix(in srgb, var(--theme-color), rgba(255, 255, 255, .25) 50%);
    padding: 1em;
    border-radius: 50%;
    align-self: flex-end;
    position: -webkit-sticky;
    position: sticky;
    inset: auto .24rem .24rem auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, transform 0.3s;
    transform: translateY(20px);
}

.scroll-to-top-button.is-button-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}