:root {
    --bg-color: #f9f8f6;
    --header-bg: rgba(249, 248, 246, 0.98);
    --text-color: #1a1a1a;
    --accent-color: #4a4a4a;
    --secondary-text: #666666;
    --border-color: #dcd7cc;
    --header-height: 80px;
    --header-height-scrolled: 60px;
    --container-width: 1100px;
    --side-padding: 25px;
    --font-en: 'EB Garamond', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Noto Serif JP', serif;
    line-height: 1.8;
    letter-spacing: 0.04em;
    -webkit-font-smoothing: antialiased;
    font-weight: 400;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
.logo,
nav ul li,
.category-name,
footer p,
.album-label {
    font-family: 'EB Garamond', serif;
    font-variant: small-caps;
    text-transform: none;
    font-weight: 600;
    letter-spacing: 0.15em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.4s ease;
}

a:hover {
    opacity: 0.6;
}

/* --- Scroll Reveal Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(50px) scale(0.97);
    transition: opacity 1.2s cubic-bezier(0.2, 0.8, 0.2, 1),
        transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform, opacity;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* --- Header --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--header-height);
    padding: 0 var(--side-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 3000;
    background-color: transparent;
    border-bottom: 1px solid transparent;
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        background-color 0.4s ease,
        border-bottom 0.4s ease;
    pointer-events: none;
    /* Initially allow clicks through to hero */
}

header.scrolled {
    height: var(--header-height-scrolled);
    background-color: var(--header-bg);
    border-bottom: 1px solid rgba(220, 215, 204, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    pointer-events: auto;
}

.logo {
    font-size: 1.4rem;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.5s ease;
}

.logo a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

.logo a:hover {
    opacity: 0.7;
}

header.scrolled .logo {
    opacity: 1;
    transform: translateY(0);
}

/* Desktop Navigation */
nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    opacity: 0;
    transition: all 0.5s ease;
}

header.scrolled nav ul {
    opacity: 1;
}

.nav-social-group {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-left: 15px;
}

.nav-social-group a {
    display: flex;
    transition: transform 0.3s ease;
}

.nav-social-group a:hover {
    transform: scale(1.1);
}

/* Hamburger Menu Icon */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 22px;
    height: 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 4000;
    padding: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: auto;
}

header.scrolled .hamburger {
    opacity: 1;
}

.hamburger span {
    width: 100%;
    height: 1.5px;
    background: var(--text-color);
    transition: all 0.3s ease;
}

/* --- Layout Structure --- */
section {
    width: 100%;
    padding: 60px 0;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--side-padding);
    width: 100%;
}

/* --- Hero Section --- */
#hero {
    padding: 0;
    text-align: center;
}

.hero-content {
    padding: 60px var(--side-padding) 60px;
    max-width: var(--container-width);
    margin: 0 auto;
}

.hero-content h1 {
    font-size: clamp(2.2rem, 8vw, 5rem);
    margin-bottom: 12px;
    font-variant: normal;
    font-weight: 500;
    white-space: nowrap;
}

.hero-content p {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5em;
    color: var(--secondary-text);
    font-family: 'EB Garamond', serif;
    font-variant: small-caps;
}

.hero-social-links {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.hero-social-links a {
    color: var(--text-color);
    display: flex;
    align-items: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hero-social-links a:hover {
    transform: scale(1.1);
    opacity: 0.7;
}

.hero-visual-container {
    position: relative;
    width: 100%;
    height: 85vh;
    overflow: hidden;
    background-color: #0b0c10;
}

.hero-visual {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    animation: heroSlideshow 24s ease-in-out infinite;
    filter: sepia(10%) contrast(0.9) brightness(1.0);
}

.slide-1 {
    background-image: url('./assets/images/hero/Header_01.JPG');
    animation-delay: 0s;
}

.slide-2 {
    background-image: url('./assets/images/hero/Header_02.JPG');
    animation-delay: 8s;
}

.slide-3 {
    background-image: url('./assets/images/hero/Header_03.JPG');
    animation-delay: 16s;
}

@keyframes heroSlideshow {
    0% {
        opacity: 0;
        transform: scale(1);
    }

    8% {
        opacity: 1;
    }

    33% {
        opacity: 1;
    }

    41% {
        opacity: 0;
        transform: scale(1.03);
    }

    100% {
        opacity: 0;
        transform: scale(1.03);
    }
}

/* --- Common Elements --- */
.section-title {
    font-size: 2.8rem;
    margin-bottom: 40px;
    text-align: center;
    font-weight: 500;
}

/* --- About Section --- */
.profile-photo {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
}

.profile-photo img {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid var(--border-color);
    filter: grayscale(20%) sepia(5%);
}

.about-cont.release-grid {
    display: grid;
    grid-template-columns: minmax(300px, 1fr) 1.5fr;
    gap: 60px;
    margin-top: 30px;
}

.release-nav-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 40px 0 20px 0;
    font-family: var(--font-en);
    font-variant: small-caps;
    text-transform: lowercase;
    letter-spacing: 0.1em;
    font-size: 1rem;
    color: var(--secondary-text);
}

.release-nav-links a {
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-mobile {
    display: none;
}

.release-nav-links a:hover {
    color: var(--accent-color);
}

.nav-prev {
    text-align: left;
    flex: 1;
}

.nav-next {
    text-align: right;
    flex: 1;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.about-text {
    font-size: 1rem;
    text-align: justify;
}

.about-text.en {
    font-family: 'EB Garamond', serif;
    font-size: 1.3rem;
    line-height: 1.6;
    text-align: left;
}

.credits-separator {
    letter-spacing: -2px;
    font-size: 0.70rem;
    color: var(--text-color);
}

.credits-label {
    font-size: 0.70rem;
    letter-spacing: 0.1em;
    color: var(--text-color);
}

.credits-text {
    display: block;
    margin-top: 5px;
    font-size: 0.70rem;
    line-height: 1.5;
    color: var(--text-color);
}

.featured-listen {
    max-width: 800px;
    margin: 0 auto 50px;
    text-align: center;
}

.featured-listen h3 {
    font-size: 0.85rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.player-container {
    border: 1px solid var(--border-color);
    line-height: 0;
}

/* --- Gear Section --- */
.gear-visual-container {
    width: 100%;
    margin-bottom: 40px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.gear-visual-container img {
    width: 100%;
    height: auto;
    display: block;
    filter: sepia(5%) contrast(0.95);
    transition: transform 1s ease;
}

.gear-description {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    text-align: left;
}

/* --- Works Section --- */
.disco-category {
    margin-bottom: 80px;
}

.category-name {
    font-size: 1.5rem;
    margin: 0 auto 40px;
    color: var(--accent-color);
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    width: fit-content;
    padding: 0 30px 8px;
}

.discography-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 60px 30px;
}

.album-art {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #f0ede9;
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.album-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: 0.8s ease;
    filter: sepia(5%);
}

.album-card:hover .album-art img {
    transform: scale(1.04);
    opacity: 1;
}

.album-info h3 {
    font-size: 1.3rem;
    margin-bottom: 6px;
    font-family: 'EB Garamond', serif;
    font-weight: 600;
    line-height: 1.2;
}

.album-meta {
    font-size: 0.85rem;
    color: var(--secondary-text);
    font-weight: 500;
    margin-bottom: 10px;
}

.album-label {
    font-size: 0.85rem;
    color: var(--accent-color);
    font-weight: 600;
}

/* Icons: Spotify, Apple Music, Bandcamp */
.album-links {
    display: flex;
    gap: 18px;
    align-items: center;
    margin-top: 15px;
}

.link-icon {
    width: 19px;
    height: 19px;
    fill: var(--accent-color);
    transition: 0.3s ease;
    cursor: pointer;
}

.link-icon:hover {
    fill: var(--text-color);
    transform: translateY(-2px);
}

/* --- Live Archive --- */
.live-list {
    list-style: none;
    display: grid;
    grid-template-columns: minmax(280px, 330px) 1fr;
    gap: 50px 40px;
}

.live-flyer {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #f0ede9;
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-bottom: 20px;
}

.live-flyer img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: sepia(10%) contrast(0.95);
    transition: 0.8s ease;
}

.live-details {
    text-align: left;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.live-date {
    font-family: 'EB Garamond', serif;
    color: var(--accent-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
}

/* --- Contact Section --- */
#contact {
    text-align: center;
}

.contact-instruction .jp {
    font-size: 0.9rem;
    margin-bottom: 6px;
    letter-spacing: 0.08em;
}

.contact-instruction .en {
    font-family: 'EB Garamond', serif;
    font-size: 1.05rem;
    color: var(--secondary-text);
    letter-spacing: 0.1em;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 30px 0 10px;
}

.social-icon {
    width: 22px;
    height: 22px;
    fill: var(--text-color);
    transition: 0.3s ease;
}

/* --- Footer --- */
footer {
    padding: 30px var(--side-padding);
    text-align: center;
    border-top: 1px solid var(--border-color);
}

footer p {
    font-size: 0.9rem;
    color: #888;
}

/* --- Mobile Responsive --- */
@media (max-width: 900px) {
    .hamburger {
        display: flex;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--header-bg);
        display: flex;
        justify-content: center;
        align-items: center;
        transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 3500;
        pointer-events: auto;
    }

    nav.open {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        text-align: center;
        gap: 40px;
        opacity: 1 !important;
    }

    nav ul li {
        font-size: 1.8rem;
    }

    /* Hamburger Open Animation */
    .hamburger.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.open span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.open span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .about-container,
    .gear-description {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .discography-grid,
    .live-list {
        grid-template-columns: 1fr 1fr;
        gap: 30px 15px;
    }

    .nav-social-group {
        margin-left: 0;
        justify-content: center;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .container {
        padding: 0 var(--side-padding);
    }

    .hero-content {
        padding-top: 60px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }
}

/* =========================================================================
   RELEASE PAGE STYLES
   ========================================================================= */
.release-detail {
    padding: 6rem 0;
    min-height: calc(100vh - 200px);
}

.back-button {
    display: inline-block;
    margin-bottom: 3rem;
    font-size: 1.1rem;
    color: var(--text-color);
    text-decoration: none;
    font-variant: small-caps;
    letter-spacing: 0.1em;
    font-family: var(--font-en);
    transition: opacity 0.3s ease;
}

.back-button:hover {
    opacity: 0.6;
}

.release-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.release-left {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.release-cover {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.buy-button {
    display: inline-block;
    text-align: center;
    padding: 1rem 2rem;
    background-color: var(--text-color);
    color: var(--bg-color);
    text-decoration: none;
    font-family: var(--font-en);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    border-radius: 4px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.buy-button:hover {
    background-color: #555;
    transform: translateY(-2px);
}

.release-right {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.release-title {
    font-family: var(--font-en);
    font-size: 2.5rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    margin: 0;
    line-height: 1.2;
}

.release-meta {
    font-family: var(--font-en);
    font-size: 1.1rem;
    color: #666;
    letter-spacing: 0.05em;
}

.release-embed {
    margin-top: 1rem;
    width: 100%;
    background-color: transparent;
}

@media screen and (max-width: 768px) {
    .release-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    /* Mobile Responsiveness for Next/Prev */
    .release-nav-links {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
        gap: 15px;
        margin: 10px 0 30px 0;
    }

    .nav-prev,
    .nav-next {
        display: block;
        font-size: 0.95rem;
        padding: 5px 0;
        width: 100%;
        text-align: center;
        line-height: 1.4;
    }
}