:root {
    --primary-dark: #0a0a0a;
    --secondary-dark: #1a1a1a;
    --tertiary-dark: #2a2a2a;
    --accent-color: #00ff88;
    --accent-secondary: #ff0080;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --gradient-primary: linear-gradient(135deg, #00ff88, #00d4aa);
    --gradient-secondary: linear-gradient(135deg, #ff0080, #8000ff);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    /* ヘッダー高さ + マージン */
}

body {
    background: var(--primary-dark);
    color: var(--text-primary);
    font-family: 'EB Garamond', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Background Animated Gradient */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 20%, rgba(0, 255, 136, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 0, 128, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(128, 0, 255, 0.05) 0%, transparent 50%);
    z-index: -2;
    animation: gradientShift 20s ease-in-out infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(1.1);
    }
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 0.8rem 0;
}

header.scrolled {
    background: rgba(10, 10, 10, 0.95);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.header-logo {
    height: 40px;
    width: auto;
    transition: all 0.3s ease;
    filter: brightness(1.1);
}

.header-logo:hover {
    transform: scale(1.05);
    filter: brightness(1.3);
}

.menu-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background: var(--glass-bg);
    color: var(--accent-color);
    transform: scale(1.1);
}

/* Sidebar Menu */
.sidebar-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--glass-border);
    z-index: 1001;
    transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    padding: 2rem;
    overflow-y: auto;
}

.sidebar-menu.open {
    right: 0;
}

.sidebar-close {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.sidebar-close:hover {
    color: var(--accent-secondary);
    transform: rotate(90deg);
}

.sidebar-logo {
    text-align: center;
    margin-bottom: 2rem;
    margin-top: 3rem;
}

.sidebar-logo img {
    width: 100%;
    height: auto;
}

.sidebar-nav {
    list-style: none;
    margin-bottom: 2rem;
}

.sidebar-nav li {
    margin: 1rem 0;
}

.sidebar-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.sidebar-nav a:hover {
    color: var(--text-primary);
    background: var(--glass-bg);
    border-color: var(--accent-color);
    transform: translateX(5px);
}

.sidebar-nav a.active {
    background: var(--gradient-primary);
    color: var(--primary-dark);
}

.sidebar-social {
    text-align: center;
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.sidebar-social a {
    color: var(--text-secondary);
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tertiary-dark);
    transition: all 0.3s ease;
    text-decoration: none;
}

.sidebar-social a:hover {
    color: var(--accent-color);
    background: var(--glass-bg);
    transform: scale(1.1);
}

.sidebar-banner {
    text-align: center;
    margin-bottom: 2rem;
}

.sidebar-banner img {
    transition: all 0.3s ease;
}

.sidebar-banner:hover img {
    transform: scale(1.05);
}

.sidebar-copyright {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3)),
        url('../images/nahcb_img01.webp') no-repeat center/cover;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg,
            rgba(0, 255, 136, 0.1) 0%,
            transparent 30%,
            transparent 70%,
            rgba(255, 0, 128, 0.1) 100%);
    animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% {
        opacity: 0.3;
    }

    100% {
        opacity: 0.7;
    }
}

.hero-content {
    text-align: center;
    z-index: 2;
    animation: heroFadeIn 2s ease-out;
}

@keyframes heroFadeIn {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    text-shadow: 0 0 50px rgba(0, 255, 136, 0.3);
}

.hero p {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--accent-color);
    animation: bounce 2s infinite;
    cursor: pointer;
    font-size: 2rem;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Sections */
section {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-container {
    padding: 5rem 0;
    position: relative;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    text-align: left;
    margin-bottom: 3rem;
    background: var(--gradient-secondary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 5rem;
}

/* 見出し行：タイトル（左）＋罫線＋件数メタ（右） — Z字動線 */
.section-heading {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.2rem;
}

.section-heading .section-title {
    margin-bottom: 0;
    white-space: nowrap;
}

.section-heading-rule {
    flex: 1 1 auto;
    min-width: 1rem;
    height: 1px;
    background: var(--glass-border);
}

.section-heading-meta {
    flex-shrink: 0;
    margin-left: auto;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-secondary);
    white-space: nowrap;
}

.section-heading-meta strong {
    color: var(--accent-color);
    font-weight: 700;
}

@media (max-width: 576px) {
    .section-heading {
        gap: 1rem;
    }

    .section-heading .section-title {
        white-space: normal;
    }

    .section-heading-rule {
        display: none;
    }

    .section-heading-meta {
        font-size: 0.72rem;
        letter-spacing: 1px;
    }
}

/* News Section */
.news-container {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin-bottom: 3rem;
    transition: all 0.3s ease;
}

.news-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 255, 136, 0.1);
}

.news-scroll {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.news-scroll::-webkit-scrollbar,
.album-modal-body::-webkit-scrollbar {
    width: 6px;
}

.news-scroll::-webkit-scrollbar-track,
.album-modal-body::-webkit-scrollbar-track {
    background: var(--tertiary-dark);
}

.news-scroll::-webkit-scrollbar-thumb,
.album-modal-body::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
}

.news-scroll::-webkit-scrollbar-thumb:hover,
.album-modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-secondary);
}

/* Firefox（ニュース・モーダルの内側スクロール） */
.news-scroll,
.album-modal-body {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) var(--tertiary-dark);
}

.news-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item:hover {
    background: var(--glass-bg);
    padding-left: 1rem;
    padding-right: 1rem;
    transform: translateX(5px);
}

.news-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.news-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.news-item:hover .news-icon::before {
    opacity: 1;
}

.news-icon.release {
    background: var(--accent-color);
}

.news-icon.soundtrack {
    background: #8000ff;
}

.news-icon.live {
    background: #ff4081;
}

.news-icon.collab {
    background: #00d4aa;
}

.news-icon.youtube {
    background: #ff0000;
}

.news-icon.info {
    background: var(--accent-secondary);
}

.news-icon i {
    position: relative;
    z-index: 1;
}

.news-content {
    flex: 1;
    min-width: 0;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.news-date {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    font-family: 'Monaco', 'Menlo', monospace;
}

.news-category {
    display: inline-block;
    background: var(--accent-color);
    color: var(--primary-dark);
    font-size: 0.8rem;
    padding: 0.3rem 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-category.release {
    background: var(--accent-color);
}

.news-category.soundtrack {
    background: #8000ff;
    color: white;
}

.news-category.live {
    background: #ff4081;
    color: white;
}

.news-category.collab {
    background: #00d4aa;
}

.news-category.youtube {
    background: #ff0000;
    color: white;
}

.news-category.info {
    background: var(--accent-secondary);
    color: white;
}

.news-title {
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.5;
    font-size: 1rem;
}

.news-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.news-title a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.news-title a:hover {
    color: var(--accent-color);
}

.news-title a:hover::after {
    width: 100%;
}

.news-item:hover .news-icon {
    transform: scale(1.1) rotate(5deg);
}

/* About Section */
.about-content {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    text-align: left;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.about-text {
    flex: 1;
    min-width: 0;
}

.about-portrait {
    flex-shrink: 0;
    width: clamp(200px, 28%, 300px);
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border: 1px solid var(--glass-border);
}

.about-content:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 255, 136, 0.1);
}

.about-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0;
}

/* Discography Grid */
.music-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.music-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.music-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

.music-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.4s ease;
    /* 装飾オーバーレイがクリックを横取りしないように（下のリンク・画像を操作可能に） */
    pointer-events: none;
}

.music-card:hover::before {
    opacity: 0.05;
}

.card-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: all 0.4s ease;
    /* アートワークをクリックすると詳細モーダルが開く */
    cursor: pointer;
}

.music-card:hover .card-image {
    transform: scale(1.1);
    filter: brightness(1.2);
}

.card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.85rem;
    padding-bottom: 0.6rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--glass-border);
    transition: border-color 0.4s ease;
}

.music-card:hover .card-title {
    border-bottom-color: var(--accent-color);
}

/* リリース日 + ジャンルタグ（モーダルのメタ表示とトーンを統一） */
.card-meta {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin-bottom: 1.5rem;
}

.card-date {
    display: inline-flex;
    align-items: center;
    align-self: flex-end;
    gap: 0.45rem;
    color: var(--text-secondary);
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    font-variant-numeric: tabular-nums;
}

.card-date i {
    color: var(--accent-color);
    font-size: 0.8rem;
}

.card-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.card-genres .genre-tag {
    font-size: 0.68rem;
    padding: 0.25rem 0.65rem;
    background: var(--tertiary-dark);
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.music-card:hover .card-genres .genre-tag {
    border-color: rgba(0, 255, 136, 0.4);
    color: var(--accent-color);
}

/* 配信停止中の注記 */
.card-status {
    margin-top: auto;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-style: italic;
}

/* 配信中アルバムの視聴リンク（カード下部にプラットフォームのアイコンを並べる） */
.card-links {
    margin-top: auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.card-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--tertiary-dark);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.card-link:hover {
    background: var(--gradient-primary);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

/* Platform Links */
.platform-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.platform-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--tertiary-dark);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.platform-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: all 0.3s ease;
}

.platform-link:hover::before {
    opacity: 1;
}

.platform-link:hover {
    transform: translateY(-3px) scale(1.1);
    color: var(--primary-dark);
    box-shadow: 0 10px 25px rgba(0, 255, 136, 0.3);
}

.platform-link i {
    position: relative;
    z-index: 1;
    font-size: 1.2rem;
}

/* Footer */
footer {
    background: var(--secondary-dark);
    border-top: 1px solid var(--glass-border);
    padding: 2rem 0;
    text-align: center;
}

.footer-socials {
    margin-bottom: 1.5rem;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    margin: 0 0.5rem;
    background: var(--glass-bg);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--glass-border);
}

.footer-social-link:hover {
    background: var(--gradient-secondary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 0, 128, 0.3);
}

.footer-copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-logo {
        height: auto;
        width: 240px;
    }

    .sidebar-menu {
        width: 80%;
        right: -80%;
        padding: 1.5rem;
    }

    .sidebar-menu.open {
        right: 0;
    }

    .sidebar-logo {
        margin-top: 2rem;
        margin-bottom: 1.5rem;
    }

    .sidebar-nav {
        margin-bottom: 1.5rem;
    }

    .sidebar-nav a {
        font-size: 0.9rem;
        padding: 0.6rem 0.8rem;
    }

    .sidebar-social {
        margin-bottom: 1.5rem;
    }

    .sidebar-social a {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .music-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    /* スマホ・タブレットではアートワークのみ表示（詳細はタップ→モーダル） */
    .card-content {
        display: none;
    }

    .about-content {
        padding: 2rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }

    .about-portrait {
        width: 100%;
        max-width: 320px;
        align-self: center;
    }

    .platform-links {
        gap: 0.5rem;
    }

    .platform-link {
        width: 40px;
        height: 40px;
    }

    .footer-socials {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .footer-social-link {
        width: 45px;
        height: 45px;
    }

    /* Mobile News */
    .news-container {
        padding: 1.5rem;
    }

    .news-item {
        padding: 1rem 0;
        gap: 0.8rem;
    }

    .news-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .news-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .news-title {
        font-size: 0.9rem;
    }

    .news-scroll {
        max-height: 350px;
    }
}

@media (max-width: 480px) {
    .sidebar-menu {
        width: 90%;
        right: -90%;
        padding: 1rem;
    }

    .platform-links {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--gradient-primary);
    z-index: 1002;
    transition: width 0.1s ease;
}

/* Loading Animation */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 50%, var(--tertiary-dark) 100%);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.8s ease;
    overflow: hidden;
}

.loading-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loading-container {
    text-align: center;
    color: var(--text-primary);
    position: relative;
    z-index: 2;
}

.loading-logo {
    margin-bottom: 2rem;
    position: relative;
}

.logo-circle {
    width: 120px;
    height: 120px;
    background: var(--glass-bg);
    border: 3px solid var(--glass-border);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    position: relative;
    animation: logoRotate 3s linear infinite;
    backdrop-filter: blur(10px);
}

.logo-circle::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: conic-gradient(from 0deg, var(--accent-color), var(--accent-secondary), var(--accent-color));
    animation: logoGlow 2s linear infinite;
    opacity: 0.8;
}

.loading-logo-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: brightness(1.2);
    animation: logoFloat 2s ease-in-out infinite alternate;
    position: relative;
    z-index: 1;
}

@keyframes logoRotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes logoGlow {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes logoFloat {
    0% {
        transform: translateY(-5px) scale(0.95);
    }

    100% {
        transform: translateY(5px) scale(1.05);
    }
}

.loading-text {
    margin-bottom: 3rem;
    animation: textFadeIn 1.5s ease-in-out;
}

.loading-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titlePulse 2s ease-in-out infinite alternate;
}

.loading-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    opacity: 0.9;
    color: var(--text-secondary);
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

@keyframes textFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes titlePulse {
    0% {
        opacity: 0.8;
        filter: blur(0px);
    }

    100% {
        opacity: 1;
        filter: blur(0.5px);
    }
}

.loading-progress {
    width: 300px;
    margin: 0 auto;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: var(--glass-bg);
    overflow: hidden;
    margin-bottom: 1.5rem;
    position: relative;
    border: 1px solid var(--glass-border);
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    animation: progressLoad 2.5s ease-in-out infinite;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progressShine 2s ease-in-out infinite;
}

@keyframes progressLoad {
    0% {
        width: 0%;
        transform: translateX(-100%);
    }

    50% {
        width: 100%;
        transform: translateX(0%);
    }

    100% {
        width: 100%;
        transform: translateX(100%);
    }
}

@keyframes progressShine {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.loading-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.dot {
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    animation: dotBounce 1.4s ease-in-out infinite;
    box-shadow: 0 0 10px var(--accent-color);
}

.dot:nth-child(2) {
    animation-delay: 0.2s;
    background: var(--accent-secondary);
    box-shadow: 0 0 10px var(--accent-secondary);
}

.dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotBounce {

    0%,
    80%,
    100% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

.loading-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.bg-particle {
    position: absolute;
    background: var(--accent-color);
    animation: particleFloat 6s ease-in-out infinite;
    opacity: 0.1;
}

.bg-particle:nth-child(1) {
    width: 20px;
    height: 20px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    background: var(--accent-color);
}

.bg-particle:nth-child(2) {
    width: 15px;
    height: 15px;
    top: 60%;
    left: 80%;
    animation-delay: 1s;
    background: var(--accent-secondary);
}

.bg-particle:nth-child(3) {
    width: 25px;
    height: 25px;
    top: 30%;
    left: 70%;
    animation-delay: 2s;
    background: #8000ff;
}

.bg-particle:nth-child(4) {
    width: 18px;
    height: 18px;
    top: 80%;
    left: 20%;
    animation-delay: 3s;
    background: var(--accent-color);
}

.bg-particle:nth-child(5) {
    width: 12px;
    height: 12px;
    top: 10%;
    left: 60%;
    animation-delay: 4s;
    background: var(--accent-secondary);
}

.bg-particle:nth-child(6) {
    width: 22px;
    height: 22px;
    top: 70%;
    left: 40%;
    animation-delay: 2.5s;
    background: #00d4aa;
}

@keyframes particleFloat {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.1;
    }

    50% {
        transform: translateY(-30px) rotate(180deg);
        opacity: 0.3;
    }
}

/* Loading Sound Wave Effect */
.loading-soundwave {
    display: flex;
    justify-content: center;
    gap: 3px;
    margin-top: 1rem;
}

.soundwave-bar {
    width: 3px;
    height: 20px;
    background: var(--accent-color);
    animation: soundwave 1.2s ease-in-out infinite;
}

.soundwave-bar:nth-child(1) {
    animation-delay: 0s;
}

.soundwave-bar:nth-child(2) {
    animation-delay: 0.1s;
}

.soundwave-bar:nth-child(3) {
    animation-delay: 0.2s;
}

.soundwave-bar:nth-child(4) {
    animation-delay: 0.3s;
}

.soundwave-bar:nth-child(5) {
    animation-delay: 0.4s;
}

@keyframes soundwave {

    0%,
    100% {
        height: 20px;
        background: var(--accent-color);
    }

    50% {
        height: 40px;
        background: var(--accent-secondary);
    }
}

/* Mobile Loading */
@media (max-width: 768px) {
    .loading-title {
        font-size: 2rem;
    }

    .loading-subtitle {
        font-size: 1rem;
    }

    .logo-circle {
        width: 100px;
        height: 100px;
    }

    .loading-logo-img {
        width: 50px;
        height: 50px;
    }

    .progress-bar {
        width: 300px;
    }
}

/* ===== Album Detail Modal ===== */
.album-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
}

.album-modal[hidden] {
    display: none;
}

.album-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
}

.album-modal-panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 540px;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--secondary-dark);
    border: 1px solid var(--glass-border);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    animation: albumModalIn 0.3s ease;
}

@keyframes albumModalIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.album-modal-body {
    overflow-y: auto;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
}

.album-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 5;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.album-modal-close:hover {
    background: var(--accent-secondary);
    color: #fff;
    transform: rotate(90deg);
}

.album-modal-art {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.album-modal-content {
    padding: 1.5rem 2rem 2rem;
}

.album-modal-title {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
}

.album-modal-meta {
    color: var(--accent-color);
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.album-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 2rem;
    margin-bottom: 1.5rem;
}

.album-date-row {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.album-date-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

.album-date-value {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-family: 'Monaco', 'Menlo', monospace;
}

.album-modal-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.album-genre-tag {
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
    background: var(--tertiary-dark);
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.album-section {
    margin-bottom: 1.5rem;
}

.album-section:last-child {
    margin-bottom: 0;
}

.album-section-heading {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.album-section-heading i {
    color: var(--accent-color);
}

.album-description {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.95rem;
}

.album-tracklist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.album-track {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--glass-border);
}

.album-track:last-child {
    border-bottom: none;
}

.album-track-num {
    color: var(--accent-color);
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.85rem;
    min-width: 1.6rem;
}

.album-track-title {
    flex: 1;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.album-track-duration {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-family: 'Monaco', 'Menlo', monospace;
}

.album-credits {
    list-style: none;
    margin: 0;
    padding: 0;
}

.album-credit {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.35rem 0;
    font-size: 0.9rem;
}

.album-credit-role {
    color: var(--text-secondary);
}

.album-credit-name {
    color: var(--text-primary);
    text-align: right;
}

.album-status-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-style: italic;
    font-size: 0.9rem;
}

.album-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.album-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--tertiary-dark);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.album-link:hover {
    background: var(--gradient-primary);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

/* ゲームページへのリンク（OSTモーダル内） */
.album-game-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1.1rem;
    background: var(--tertiary-dark);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.album-game-link:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: var(--primary-dark);
    transform: translateY(-3px);
}

.album-game-link-ext {
    font-size: 0.75rem;
    opacity: 0.7;
}

.album-share {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
}

.album-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: var(--tertiary-dark);
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
    text-decoration: none;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.album-share-btn:hover {
    background: var(--glass-bg);
    color: var(--accent-color);
    transform: translateY(-3px);
}

/* はてなブックマークの「B!」テキストアイコン */
.share-texticon {
    font-weight: 800;
    font-size: 0.95rem;
    font-style: normal;
    line-height: 1;
    letter-spacing: -0.5px;
}

.album-share-copied {
    color: var(--accent-color);
    font-size: 0.85rem;
    margin-left: 0.25rem;
}

@media (max-width: 768px) {
    .album-modal {
        padding: 2.5rem 1.5rem;
    }

    .album-modal-panel {
        max-width: 400px;
        max-height: 82vh;
    }

    .album-modal-content {
        padding: 1.25rem 1.25rem 1.75rem;
    }
}

/* ===== Custom Scrollbar（ページ全体） ===== */
/* Firefox */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) var(--secondary-dark);
}

/* WebKit（Chrome / Edge / Safari） */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--secondary-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border: 2px solid var(--secondary-dark);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-secondary);
}

::-webkit-scrollbar-corner {
    background: var(--secondary-dark);
}