/* 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);
}

.is-mobile-tablet .container {
    background-color: #fff;
}

.section-topics-detail.section-scene-post {
    color: #333;
}

.is-mobile-tablet .section-topics-detail.section-scene-post {
    font-family: "Hiragino Kaku Gothic Pro", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, メイリオ, "Droid Sans", sans-serif;
    /* font-weight: 500; */
}

.is-desktop .section-topics-detail div.wrapper {
    padding-inline: 0;
    width: 100%;
}

.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-desktop .section-topics-detail div.topics-photo {
    -webkit-margin-after: 0;
    margin-block-end: 0;
}

/* Unique styles */
.is-mobile-tablet .section-topics-detail .topics-photo {
    display: none;
}

.gh-main-contents {
    background-image: url(https://www.print-gakufu.com/assets/images/upload/upload_5265_1.jpg);
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    color: #eee;
    padding-block: .64rem;
    line-break: strict;
}

.gh-section {
    -webkit-margin-before: .64rem;
    margin-block-start: .64rem;
    background-image: linear-gradient(160deg, rgba(255, 255, 255, .25), rgba(255, 255, 255, .125));
    padding: .64rem .24rem;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.gh-section h2 {
    font-size: .24rem;
    font-family: "Times New Roman", "YuMincho", "Hiragino Mincho ProN", "Yu Mincho", "MS PMincho", serif;
    font-variant-east-asian: proportional-width;
    letter-spacing: .05em;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    text-box-trim: trim-both;
    margin-inline: auto;
    -webkit-margin-after: .32rem;
    margin-block-end: .32rem;
}

.gh-section h2::after {
    content: attr(data-en);
    display: block;
    width: calc(100% + .32rem);
    translate: -.16rem 0;
    font-size: .5em;
    text-align: center;
    -webkit-border-before: 1px solid currentColor;
    border-block-start: 1px solid currentColor;
    -webkit-padding-before: .5em;
    padding-block-start: .5em;
}

.official-score__title {
    font-size: .2rem;
    font-weight: bold;
    -webkit-border-after: 1px solid currentColor;
    border-block-end: 1px solid currentColor;
}

.introduction__movie iframe {
    aspect-ratio: 16 / 9;
    vertical-align: bottom;
    width: 100%;
    height: auto;
}

.official-score__item {
    display: flex;
    flex-direction: column;
    gap: .16rem;
}

.official-score__item+.official-score__item {
    -webkit-margin-before: .64rem;
    margin-block-start: .64rem;
}

.official-score__description {
    margin-block: 1em;
}

.official-score__link a {
    display: block;
    background-color: #D81F26;
    border-radius: .05rem;
    text-box-trim: trim-both;
    padding: 1em;
    text-align: center;
    font-weight: 500;
    box-shadow: 0 3px #8d1e23;
}

.official-score__songwriter {
    margin-block: 1em;
}

.introduction__catch {
    font-weight: bold;
    font-size: 1.1em;
}

.introduction__text>*+* {
    -webkit-margin-before: 2em;
    margin-block-start: 2em;
}

.introduction__image img {
    height: auto;
}

.introduction__story-headline {
    font-size: .2rem;
    font-weight: bold;
    -webkit-border-after: 1px solid currentColor;
    border-block-end: 1px solid currentColor;
}

.introduction__story-body>* {
    -webkit-margin-before: 1em;
    margin-block-start: 1em;
}

.introduction__link {
    -webkit-margin-before: 2em;
    margin-block-start: 2em;
}

.introduction__link a {
    -webkit-text-decoration-line: underline;
    text-decoration-line: underline;
    text-decoration-thickness: 1px;
    -webkit-text-decoration-style: dotted;
    text-decoration-style: dotted;
    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;
    -webkit-margin-start: .25em;
    margin-inline-start: .25em;
    -webkit-filter: invert(100%) sepia(0%) saturate(7465%) hue-rotate(357deg) brightness(112%) contrast(94%);
    filter: invert(100%) sepia(0%) saturate(7465%) hue-rotate(357deg) brightness(112%) contrast(94%);
}

.gh-section.introduction>*+* {
    -webkit-margin-before: .32rem;
    margin-block-start: .32rem;
}

.official-score__image img {
    max-width: 2.4rem;
    margin-inline: auto;
    height: auto;
    cursor: pointer;
    color: #fff;
}

.is-mobile-tablet .section-topics-detail div.sns[data-v-0219b7cb] {
    width: 80%;
}

.fade-in-contents {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .6s ease-out, transform .6s ease-out;
}

.fade-in-contents.is-visible {
    opacity: 1;
    transform: translateY(0);
}

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;
}

.official-score__annotation {
    -webkit-margin-before: 2em;
    margin-block-start: 2em;
}

.official-score__annotation small::before {
    content: "※";
}

.official-score__annotation small {
    display: flex;
    justify-content: center;
}

/* PC */
.is-desktop .section-topics-detail h1.common-title {
    max-width: 1400px;
    margin-inline: auto;
}

.is-desktop .sp-hero-image {
    display: none;
}

.is-desktop .official-score__item {
    flex-direction: row;
    gap: .32rem;
}

.is-desktop .gh-section:first-of-type {
    -webkit-margin-before: 0;
    margin-block-start: 0;
}

.is-desktop .gh-section {
    padding: .64rem .48rem;
    max-width: 800px;
    border-radius: .07rem;
    border: 2px solid rgba(255, 255, 255, .25);
    margin-inline: auto;
}

.is-desktop .gh-section h2 {
    font-size: .32rem;
}

.is-desktop .official-score__link a {
    transition-duration: .1s;
}

.is-desktop dialog {
    max-width: 25%;
}

.is-desktop .section-topics-detail div.sns[data-v-0219b7cb] {
    width: 385px;
}

@media(any-hover: hover) {
    .official-score__image img:hover {
        opacity: .8;
    }

    .official-score__link a:hover {
        translate: 0 3px;
        box-shadow: none;
    }
}