html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    background-image: url("bg_back.jpg");
    background-attachment: fixed;
    background-position: bottom;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: -1;
}

body {
    font-family: "游明朝", YuMincho, "Hiragino Mincho ProN W3", "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", "HG明朝E", "ＭＳ Ｐ明朝", "ＭＳ 明朝", serif;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

body * {
    z-index: 0;
}

button {
    font-family: "游明朝", YuMincho, "Hiragino Mincho ProN W3", "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", "HG明朝E", "ＭＳ Ｐ明朝", "ＭＳ 明朝", serif;
}

h2 {
    white-space: nowrap;
}

.page-container {
    width: min(800px, calc(100% - 40px));
    padding: 20px 0;
    margin: 0 auto;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-container:before {
    content: '';
    display: block;
    position: fixed;
    top: 0;
    width: 840px;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85);
}

main {
    z-index: 1;
}

header {
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: min(840px, 100%);
    background-color: #2d0609;
    padding: 5px 0;
}

footer {
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: min(840px, 100%);
    background-color: #2d0609;
    padding: 15px 0;
    color: #fff;
}

.top {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 5px;
    opacity: 1;
    animation: top-animation 2s forwards;
}

@keyframes top-animation {
    0% {
        opacity: 0;
    }
    20% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.artwork-container {
    position: relative;
    width: 500px;
    height: 500px;
    margin: auto;
    display: block;
    margin: auto;
    margin-bottom: 20px;
    animation: artwork-animation 0.75s forwards;
    animation-delay: 1.5s;
    opacity: 0;
}

.artwork {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@keyframes artwork-animation {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.artwork-glitch {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    opacity: 0;
    animation: appear 5.08s infinite; /* フレームアニメーション側の周期とずらすために中途半端な値に設定 */
    animation-delay: 2s;
}

.artwork-glitch .image-strip {
    width: 2500px; /* 5枚 × 500px */
    height: 500px;
    background-image: url('artwork_glitch.jpg');
    background-size: cover;
    animation: slide 0.2s steps(4) infinite;
}

@keyframes slide {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-2000px);
    }
}

@keyframes appear {
    0%, 3% {
        opacity: 1;
    }
    4%, 100% {
        opacity: 0;
    }
}

@keyframes strobe {
    0% { opacity: 1; }
    50% { opacity: 0.25; }
    100% { opacity: 1; }
}

.album-logo {
    width: 550px;
    display: block;
    margin: auto;
    margin-top: -150px;
    margin-bottom: 40px;
    filter: drop-shadow(0 0 30px #000) drop-shadow(0 0 30px #000);
    opacity: 1;
    transform: translateY(20px);
    animation: album-logo-animation 2s forwards;
    animation-delay: 0.75s;
}

@keyframes album-logo-animation {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    20% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.splash {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    position: fixed;
    background: #000;
    animation: splash-animation 0.5s forwards;
    animation-delay: 0.75s;
    display: block;
    overflow: hidden;
    z-index: 10;
}

@keyframes splash-animation {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

.splash .logo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 400px;
    margin-top: -80px;
    margin-left: -200px;
    animation: splash-logo-animation 1s forwards 0s, blinking-animation 0.05s infinite;
}

@keyframes splash-logo-animation {
    0% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

header .logo {
    width: 150px;
    display: block;
    fill: #000;
}

.content {
    width: 100%;
}

section, .section {
    width: 100%;
    text-align: center;
    font-size: 1.25rem;
    line-height: 3rem;
}

h1, h3 {
    text-align: center;
    position: relative;
}

h1 {
    font-weight: normal;
    font-size: 3rem;
    margin-top: 10px;
    margin-bottom: 4px;
}

h3 {
    font-size: 1.8rem;
    line-height: 2.5rem;
    font-weight: normal;
    margin-top: 5px;
    margin-bottom: 4px;
}

.decorated::before,
.decorated::after {
    content: "";
}

.jacket {
    display: block;
    width: 300px;
    max-width: 100%;
}

.column {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    width: 90%;
}

.column-item {
    flex: 1 0 40%;
}

.lyrics-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.lyrics {
    flex: 1 0 45%;
    font-size: 1rem;
    line-height: 1.75rem;
    text-align: left;
    max-width: 45%;
}

.lyrics .artist {
    text-align: center;
    font-size: 1rem;
    line-height: 1.5rem;
    color: #fff;
    margin-top: 10px;
    margin-bottom: 15px;
}

.lyrics-body {
    background: rgba(255, 255, 255, 0.75);
    padding: 12px 20px;
    border-radius: 5px;
    width: 90%;
    margin-bottom: 10px;
}

.fade-in {
    opacity: 0;
    transition: opacity 1s;
}

h2 {
    font-size: 2rem;
    font-weight: normal;
    text-align: center;
    position: relative;
    margin-top: 35px;
}

h2:before, h2:after {
    display: inline-block;
    content: "";
    height: 40px;
    width: 100px;
    transform: translateY(22%);
    margin-left: .9em;
    margin-right: .9em;
    background-image: url("h2.png");
    background-repeat: no-repeat;
    background-size: contain;
}

.track-container {
    position:relative;
    display: inline-block;
    min-width: 300px;
    max-width: 300px;
    width: 300px;
}

.track {
    display: block;
    width: 300px;
    height: auto;
    filter: drop-shadow(0 0 3px #000);
    animation: blinking-animation-weak 0.05s infinite;
}

.track-control {
    min-width: 300px;
    position: absolute;
    left: 50%;
    top: 60%;
    transform: translateX(-50%) translateY(0%);
    cursor: default;
    line-height: 0px;
}

.track-control-item {
    font-size: 16px;
    min-width: 59px;
    display: inline-block;
    margin: 1px;
    background: rgba(255, 111, 125, 0);
    transition: 0.1s;
    line-height: 1.8rem;
    padding-top: 4px;
    padding: 4px 10px 0 10px;
    border-radius: 4px;
}

.track-control-item:hover {
    background: rgba(255, 111, 125, 0.25);
    cursor: pointer;
}

.track-control-item,
.track-control-item:link,
.track-control-item:hover,
.track-control-item:visited {
    color: #fff;
    text-decoration: none;
}

.text-shadow {
    filter: drop-shadow(0 0 6px #000);
}

.download-button {
    display: inline-block;
    background-color: #861721;
    color: #FFF;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    border: none;
    margin-bottom: 15px;
    transition: 0.1s;
    text-decoration: none;
    line-height: normal;
}

.download-button:hover {
    background-color: #c12532;
    text-decoration: none;
}

.download-button:disabled {
    background-color: #d5d8d9;
    cursor:not-allowed !important;
    text-decoration: none;
}

.popup-dl {
    text-align: center;
}

.popup-dl-content {
    padding: 60px 40px;
    background: rgba(255, 111, 125, 0.1);
    border-radius: 4px;
    margin-bottom: 15px;
}

.popup-dl-title {
    font-weight: bold;
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-align: left;
}

.popup-dl-description {
    margin-bottom: 20px;
}

.popup-dl-form {
    text-align: center;
}

.popup-dl-content .download-button {
    padding: 10px 10px;
    font-size: 0.8rem;
    height: 40px;
}

.popup-dl-content .text-box {
    padding: 3px 7px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 2px solid #ccc;
    min-width: 300px;
    height: 40px;
    font-size: 14px;
}

.popup-close-text {
    cursor: pointer;
}

i {
    margin-right: 0.5em;
}

a {
    color: #ff6f7d;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

section:last-of-type {
    margin-bottom: 30px;
}

.blinking {
    animation: blinking-animation 0.05s infinite;
}

.lity-close {
    display: none;
}

@keyframes blinking-animation {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.85;
    }
    100% {
        opacity: 1;
    }
}

@keyframes blinking-animation-weak {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.9;
    }
    100% {
        opacity: 1;
    }
}

.popup-lyrics {
    text-align: center;
}

.popup-lyrics img {
    width: auto;
    height: auto;
    max-width: 90vw;
    max-height: 90vh;
}

@media screen and (orientation: portrait) {
    html, body {
        background-color: #000;
        background-image: url("bg_back_darken.jpg");
        background-attachment: fixed;
        background-position: bottom;
        background-repeat: no-repeat;
        background-size: cover;
    }
    .page-container:before {
        background-color:rgba(0, 0, 0, 0.0);
    }
}

iframe{
    border-width: 0px;
}

.description {
    font-size: 16px;
    line-height: 40px;
}

.announcement {
    font-size: 12px;
    line-height: 24px;
    padding: 15px;
    background: rgba(255, 111, 125, 0.25);
    border-radius: 4px;
    margin-bottom: 10px;
}

#dl-all-songs-form .text-box {
    min-width: 320px;
}

#dl-all-songs-form .download-button {
    min-width: 300px;
}
