
@charset "UTF-8";

/* ========================================
   1. カラー・フォントの共通設定
======================================== */

:root {
    --navy: #08142e;
    --blue: #0b3980;
    --cyan: #0099d9;
    --light-blue: #cceafb;
    --white: #ffffff;

    --font-mincho:
        "Noto Serif JP",
        "Yu Mincho",
        "Hiragino Mincho ProN",
        serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--white);
    background:
        radial-gradient(
            ellipse at 70% 18%,
            rgba(11, 57, 128, 0.38),
            transparent 45%
        ),
        var(--navy);

    font-family: sans-serif;
}


/* ========================================
   2. 共通ナビゲーションバー
======================================== */

.site-header {
    position: relative;
    z-index: 20;

    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;

    width: 100%;
    min-height: 76px;
    padding: 12px 32px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(15, 23, 32, 0.5);
    backdrop-filter: blur(10px);
}

.site-header-left {
    display: flex;
    align-items: center;
    justify-self: start;
    min-width: 0;
}

.site-logo {
    display: grid;
    color: var(--white);
    line-height: 1.15;
    text-decoration: none;
}

.site-logo-main {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.site-logo-sub {
    margin-top: 4px;
    font-size: 0.68rem;
    font-weight: 700;
}

.site-nav {
    display: flex;
    grid-column: 2;
    gap: 32px;
}

.site-nav a {
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
    white-space: nowrap;
    transition: opacity 0.2s;
}

.site-nav a:hover {
    opacity: 0.65;
}

.header-x {
    display: grid;
    grid-column: 3;
    justify-self: end;
    place-items: center;

    width: 36px;
    height: 36px;

    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    color: var(--white);

    transition: background 0.2s, transform 0.2s;
}

.header-x svg {
    width: 16px;
    height: 16px;
}

.header-x:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}


/* ========================================
   3. メインコンテンツ
======================================== */

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 32px 120px;
}

/* Compilation一覧に戻るリンク */
.back-link {
    margin-bottom: 48px;
}

.back-link a {
    color: var(--light-blue);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s;
}

.back-link a:hover {
    color: var(--cyan);
}


/* ========================================
   4. アルバム紹介（左右2カラム）
======================================== */

.album-hero {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    align-items: center;
    gap: 70px;

    margin-bottom: 120px;
}

/* 左：ジャケット */
.album-art {
    position: relative;
    margin: 0;
    width: 100%;
    isolation: isolate;
}

/* ジャケットの後ろに淡い発光を置く */
.album-art::before {
    content: "";
    position: absolute;
    z-index: -1;

    left: 52%;
    top: 44%;
    transform: translate(-50%, -50%);

    width: 88%;
    height: 88%;
    border-radius: 50%;

    background: radial-gradient(
        circle,
        rgba(0, 153, 217, 0.30) 0%,
        rgba(0, 159, 228, 0.18) 28%,
        rgba(204, 234, 251, 0.10) 48%,
        rgba(204, 234, 251, 0.00) 72%
    );

    filter: blur(34px);
}

.album-art img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;

    border-radius: 6px;

    box-shadow:
        0 15px 50px rgba(0, 0, 0, 0.35),
        0 0 35px rgba(0, 153, 217, 0.12);
}

/* 右：アルバム情報 */
.album-details {
    min-width: 0;
}

.album-label {
    margin: 0 0 20px;
    color: var(--cyan);

    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.18em;
}


/* ========================================
   5. アルバムタイトル（極太明朝体）
======================================== */

.album-title {
    margin: 0 0 20px;

    font-family: var(--font-mincho);
    font-size: clamp(3rem, 5vw, 5.2rem);
    font-weight: 900;
    line-height: 1.35;
    letter-spacing: 0.04em;

    color: var(--white);

    text-shadow:
        0 3px 16px rgba(0, 0, 0, 0.25);
}

/* 「新」だけを水色にする */
.title-accent {
    color: var(--cyan);
}

.album-subtitle {
    margin: 0 0 32px;
    color: var(--light-blue);

    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.12em;
}

/* アルバム紹介文 */
.album-description {
    padding-top: 28px;
    border-top: 1px solid rgba(204, 234, 251, 0.3);

    font-family: var(--font-mincho);
    font-size: 1rem;
    font-weight: 500;
    line-height: 2.2;

    color: var(--white);
}

.album-description p {
    margin: 0 0 18px;
}


/* ========================================
   6. Track List
======================================== */

.track-section {
    max-width: 1000px;
    margin: 0 auto;
}

.track-heading {
    margin-bottom: 40px;
    text-align: center;
}

.track-heading h2 {
    margin: 0 0 14px;

    font-family: var(--font-mincho);
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    font-weight: 900;
    letter-spacing: 0.05em;

    color: var(--white);
}

.track-heading h2::after {
    content: "";
    display: block;

    width: 100px;
    height: 2px;
    margin: 22px auto 0;

    background: linear-gradient(
        90deg,
        transparent,
        var(--cyan),
        transparent
    );
}

.track-heading p {
    margin: 0;
    color: var(--light-blue);
    font-size: 0.9rem;
}


/* ========================================
   7. 楽曲一覧
======================================== */

.track-list {
    margin: 0;
    padding: 0;
    list-style: none;

    border-top: 1px solid rgba(204, 234, 251, 0.25);
}

.track-list li {
    border-bottom: 1px solid rgba(204, 234, 251, 0.25);
}

/* JavaScriptで追加する楽曲ボタン */
.track-list button {
    display: flex;
    align-items: center;
    gap: 24px;

    width: 100%;
    padding: 24px 20px;

    border: none;
    background: transparent;
    color: var(--white);

    font-family: var(--font-mincho);
    font-size: 1.2rem;
    font-weight: 700;
    text-align: left;

    cursor: pointer;
    transition: background 0.25s, color 0.25s;
}

.track-list button:hover {
    background: rgba(0, 153, 217, 0.12);
    color: var(--light-blue);
}

.track-list button:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: -2px;
}

/* 楽曲番号用：後からJSで使えるクラス */
.track-number {
    color: var(--cyan);
    font-family: sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* 楽曲がまだ登録されていない場合 */
.track-list-status {
    padding: 30px 0;
    color: var(--light-blue);
    text-align: center;
    font-size: 0.95rem;
}


/* ========================================
   8. 楽曲詳細モーダル
======================================== */


/* 楽曲詳細モーダル：ガラス風 */
.track-modal {
    width: min(620px, calc(100% - 32px));
    max-height: min(85vh, 800px);

    padding: 0;
    overflow-y: auto;

    /* 半透明の青いガラス */
    background: linear-gradient(
        135deg,
        rgba(40, 70, 105, 0.55),
        rgba(8, 20, 46, 0.40)
    );

    /* ガラスの背後をぼかす */
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);

    /* ガラスの縁 */
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;

    color: #ffffff;

    /* 外側の影と内側の光 */
    box-shadow:
        0 20px 70px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);

    overflow: hidden;
}


/* モーダルの背後を暗く、ぼかす */
.track-modal::backdrop {
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(3px);
}

.modal-content {
    padding: 36px 42px 48px;
    max-height: min(85vh, 800px);
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-right: 55px;
}

.modal-track-number {
    color: var(--cyan);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.modal-close {
    width: 36px;
    height: 36px;

    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);

    font-size: 1.4rem;
    cursor: pointer;
}

/* ×ボタンだけを右上に固定 */
.track-modal > #modal-close {
    position: absolute;

    top: 18px;
    right: 18px;
    left: auto;

    z-index: 20;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;
    padding: 0;
    margin: 0;

    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;

    background: rgba(8, 20, 46, 0.75);
    color: #ffffff;

    font-size: 24px;
    line-height: 1;

    cursor: pointer;
}

/* ボタンにマウスを乗せたとき */
.track-modal > #modal-close:hover {
    background: rgba(0, 153, 217, 0.6);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-track-title {
    margin: 20px 0 36px;

    font-family: var(--font-mincho);
    font-size: 2rem;
    font-weight: 900;
}

.modal-credits {
    margin-bottom: 40px;
}

.modal-credits h3,
.modal-lyrics h3 {
    margin: 0 0 20px;

    font-family: var(--font-mincho);
    font-size: 1.25rem;
    font-weight: 700;

    color: var(--light-blue);
}

.modal-credits dl {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 14px 20px;
    margin: 0;
}

.modal-credits dt {
    color: var(--cyan);
    font-size: 0.9rem;
    font-weight: 700;
}

.modal-credits dd {
    margin: 0;
    line-height: 1.8;
}

.modal-credits a {
    color: var(--light-blue);
}

.modal-lyrics {
    padding-top: 28px;
    border-top: 1px solid rgba(204, 234, 251, 0.25);
}

.modal-lyrics-text {
    font-family: var(--font-mincho);
    font-size: 0.95rem;
    line-height: 2.2;
    white-space: pre-wrap;
}


/* ========================================
   9. ページ表示時のアニメーション
======================================== */

.album-hero,
.track-section {
    animation: fadeInUp 0.8s ease-out both;
}

.track-section {
    animation-delay: 0.2s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ========================================
   10. スマートフォン対応
======================================== */

@media (max-width: 720px) {

    .site-header {
        grid-template-columns: 1fr;
        gap: 12px;
        min-height: 0;
        padding: 16px 20px;
    }

    .site-nav {
        grid-column: 1;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 12px 20px;
    }

    .site-nav a {
        font-size: 0.82rem;
    }

    .header-x {
        position: absolute;
        top: 16px;
        right: 20px;
    }

    main {
        padding: 28px 20px 80px;
    }

    .back-link {
        margin-bottom: 32px;
    }

    .album-hero {
        grid-template-columns: 1fr;
        gap: 36px;
        margin-bottom: 80px;
    }

    .album-art {
        max-width: 460px;
        margin: 0 auto;
    }

    .album-title {
        font-size: clamp(2.8rem, 9vw, 4.2rem);
    }

    .track-list button {
        padding: 20px 12px;
        font-size: 1rem;
    }

    .modal-content {
        padding: 24px 22px 36px;
    }

    .modal-credits dl {
        grid-template-columns: 80px 1fr;
    }
}


/* ========================================
   11. 動きを減らす設定への対応
======================================== */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    .album-hero,
    .track-section {
        animation: none;
    }
}


/* ========================================
   モーダルの開閉アニメーション
======================================== */

/* モーダルを開くとき */
.track-modal[open] {
    animation: modal-open 1.25s both;
    transform-origin: center center;
}

/* 背景を暗く・ぼかすアニメーション */
.track-modal[open]::backdrop {
    animation: backdrop-open 0.85s ease-out both;
}

/* モーダルを閉じるとき */
.track-modal.is-closing {
    animation: modal-close 0.22s ease-in forwards;
}

.track-modal.is-closing::backdrop {
    animation: backdrop-close 0.22s ease-in forwards;
}


/* 開くアニメーション */
/* 水面のようにゆっくり広がる */
@keyframes modal-open {

    /* 最初：すばやく広がり始める */
    0% {
        opacity: 0;
        transform: scale(0.65);

        animation-timing-function:
            cubic-bezier(0.16, 0.8, 0.25, 1);
    }

    /* 早い段階で最大サイズに到達 */
    30% {
        opacity: 1;
        transform: scale(1.07);

        animation-timing-function:
            cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* 残り70%の時間でゆっくり収束 */
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* 閉じるアニメーション */
@keyframes modal-close {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateY(10px) scale(0.97);
    }
}


/* 背景が徐々に暗くなる */
@keyframes backdrop-open {
    from {
        background: rgba(0, 0, 0, 0);
        backdrop-filter: blur(0);
    }

    to {
        background: rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(8px);
    }
}

/* 背景を元に戻す */
@keyframes backdrop-close {
    from {
        background: rgba(0, 0, 0, 0.65);
        backdrop-filter: blur(8px);
    }

    to {
        background: rgba(0, 0, 0, 0);
        backdrop-filter: blur(0);
    }
}


/* 動きを減らす設定への対応 */
@media (prefers-reduced-motion: reduce) {
    .track-modal[open],
    .track-modal[open]::backdrop,
    .track-modal.is-closing,
    .track-modal.is-closing::backdrop {
        animation: none;
    }
}


/* ========================================
   Disc 1 / Disc 2 の表示
======================================== */

/* Disc同士の間隔 */
.disc-list {
    display: grid;
    gap: 80px;
}

/* Disc見出し */
.disc-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 10px;
    padding-bottom: 20px;

    border-bottom: 1px solid rgba(204, 234, 251, 0.35);
}

.disc-heading h3 {
    margin: 0;

    font-family: var(--font-mincho);
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 0.06em;

    color: #ffffff;
}

/* Discごとの収録曲数 */
.disc-count {
    color: #0099d9;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

/* 見出しと線が重ならないように調整 */
.disc-section .track-list {
    border-top: none;
}


/* ========================================
   楽曲ごとの表示
======================================== */

.track-list button {
    gap: 24px;
    padding: 24px 18px;
}

/* 曲番号 */
.track-number {
    flex-shrink: 0;
    min-width: 2.5em;
}

/* Disc 1：薄い水色 */
.disc-section:nth-child(1) .track-number {
    color: #CCEAFB;
}

/* Disc 2：従来の水色 */
.disc-section:nth-child(2) .track-number {
    color: #0099D9;
}

/* 曲名と制作者名 */
.track-main {
    display: flex;
    flex-direction: column;
    gap: 7px;

    flex: 1;
    min-width: 0;
}

/* 曲名 */
.track-name {
    font-family: var(--font-mincho);
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

/* 制作者名 */
.track-artist {
    color: #cceafb;
    font-family: sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
}

/* 右側の矢印 */
.track-arrow {
    flex-shrink: 0;
    margin-left: auto;

    color: #0099d9;
    font-family: sans-serif;
    font-size: 2rem;
    line-height: 1;

    transition: transform 0.25s;
}

/* マウスを乗せたとき */
.track-list button:hover .track-arrow {
    transform: translateX(5px);
}

/* 曲が未登録の場合 */
.disc-empty {
    padding: 30px 18px;
    color: #cceafb;
    font-size: 0.9rem;
}


/* ========================================
   歌詞カードの読みやすさ
======================================== */

/* 長い制作者名やURLでも折り返す */
.modal-credits dd {
    overflow-wrap: anywhere;
}

/* 制作者へのリンク */
.modal-credits dd a {
    color: #cceafb;
    text-decoration-color: rgba(0, 153, 217, 0.65);
    text-underline-offset: 4px;

    transition: color 0.2s;
}

.modal-credits dd a:hover {
    color: #ffffff;
}

/* 歌詞の改行を維持 */
.modal-lyrics-text {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}


/* ========================================
   スマートフォン対応
======================================== */

@media (max-width: 720px) {

    .disc-list {
        gap: 60px;
    }

    .disc-heading h3 {
        font-size: 1.6rem;
    }

    .track-list button {
        gap: 14px;
        padding: 20px 10px;
    }

    .track-name {
        font-size: 1rem;
    }

    .track-artist {
        font-size: 0.75rem;
    }

    .track-arrow {
        font-size: 1.6rem;
    }
}