:root {
    --bg-color: #F5F7F7;
    --text-color: #333333;
    --accent-color: #9FBFC6;
    --link-hover-color: #7A9CA3;
    --font-en: 'Inter', sans-serif;
    --font-jp: 'Noto Sans JP', sans-serif;
    --sidebar-width: 250px;
    --section-spacing: 120px;
}

/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-en), var(--font-jp);
    font-weight: 300;
    line-height: 1.8;
    letter-spacing: 0.08em;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease, opacity 0.3s ease;
}

a:hover {
    color: var(--link-hover-color);
    opacity: 0.7;
}

ul {
    list-style: none;
}

/* Layout */
.container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Navigation */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 60px 40px;
    z-index: 100;
    background-color: #29A0AE;
    /* User requested color */
    color: #fff;
    /* Ensure text is readable */
}

.logo {
    font-family: var(--font-en);
    font-weight: 300;
    font-size: 24px;
    letter-spacing: 0.15em;
    margin-bottom: 60px;
    color: #fff;
}

.nav-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.nav-link {
    font-size: 14px;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    padding-left: 0;
    text-decoration: none;
    /* Remove default underline */
    transition: all 0.3s ease;
}

.nav-link.active,
.nav-link:hover {
    color: #fff;
    padding-left: 0;
    /* consistent padding */
}

/* White underline on hover / active */
.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 1px;
    background-color: #fff;
    transition: width 0.3s ease;
}

.nav-link.active::after,
.nav-link:hover::after {
    width: 100%;
}

/* Remove the old dot active style */
.nav-link.active::before,
.nav-link:hover::before {
    content: none;
}

.sidebar-footer {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    padding: 0 8vw;
}

.section {
    min-height: 80vh;
    padding-top: 100px;
    margin-bottom: var(--section-spacing);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-title {
    font-size: 18px;
    letter-spacing: 0.2em;
    margin-bottom: 60px;
    font-weight: 400;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background-color: var(--accent-color);
    margin-top: 15px;
}

/* Utility: Fade In Animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Specific Section Styles */

/* TOP */
.hero-section {
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    /* Full viewport height for hero */
    min-height: 100vh;
    margin-bottom: var(--section-spacing);
}

.hero-image-container {
    width: 100%;
    max-width: 900px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.02);
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    filter: brightness(0.95) contrast(0.95);
}

.latest-info {
    margin-top: 40px;
}

.latest-label {
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.latest-title {
    font-size: 28px;
    font-weight: 300;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}

.latest-date {
    font-size: 13px;
    color: #888;
}

/* NEWS */
.news-list {
    border-top: 1px solid #eee;
}

.news-item {
    padding: 25px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: baseline;
    gap: 40px;
}

.news-date {
    font-family: var(--font-en);
    font-size: 13px;
    color: #888;
    min-width: 100px;
}

.news-category {
    font-size: 11px;
    border: 1px solid #ddd;
    padding: 4px 12px;
    min-width: 80px;
    text-align: center;
    color: #666;
    border-radius: 20px;
}

.news-text {
    flex: 1;
}

/* LIVE */
.no-schedule {
    color: #999;
    font-style: italic;
    padding: 40px 0;
}

/* MOVIE */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
}

.video-container {
    width: 100%;
    aspect-ratio: 16/9;
}

.video-placeholder {
    width: 100%;
    height: 100%;
    background-color: #eef1f1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
}

/* DISCOGRAPHY */
/* DISCOGRAPHY Categories */
.disco-category-section {
    margin-bottom: 80px;
}

.disco-category-title {
    font-size: 14px;
    letter-spacing: 0.15em;
    color: var(--accent-color);
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    display: inline-block;
}

/* Main Discography Grid (matches main.js target) */
.discography-grid,
.disco-category-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: flex-start;
}


.disco-item {
    cursor: pointer;
    transition: transform 0.3s ease;
    flex: 0 0 250px;
    /* Rigid 250px */
    width: 250px;
}

.disco-item:hover {
    transform: translateY(-5px);
}

.disco-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.disco-title {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 8px;
}

.disco-date {
    font-size: 12px;
    color: #999;
}

/* LYRICS */
.lyrics-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.lyrics-item {
    margin-bottom: 60px;
}

.lyrics-item h3 {
    font-size: 16px;
    margin-bottom: 25px;
    color: var(--accent-color);
}

.lyrics-item p {
    font-size: 14px;
    line-height: 2.2;
    margin-bottom: 30px;
    white-space: pre-line;
    /* Handle line breaks */
}


/* SPECIAL */
#special {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
}


/* BIOGRAPHY */
.bio-content {
    max-width: 600px;
    line-height: 2.5;
}


/* WORKS */
.works-list li {
    padding: 15px 0;
    border-bottom: 1px dotted #ddd;
    color: #555;
}

/* CONTACT */
.contact-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-btn {
    font-size: 18px;
    text-decoration: underline;
    text-underline-offset: 5px;
}

.sns-links {
    margin-top: 20px;
    color: #888;
}

.footer-sp {
    display: none;
}



/* Modal Styles */
.details-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(245, 247, 247, 0.95);
    /* High opacity background */
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    overflow-y: auto;
    /* Enable scrolling */
    -webkit-overflow-scrolling: touch;
    /* Smooth scroll on iOS */
    padding: 20px 0;
    /* Vertical padding */
}

.details-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    width: 90%;
    max-width: 1000px;
    background: transparent;
    position: relative;
    padding: 20px;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 32px;
    background: rgba(255, 255, 255, 0.8);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    color: #333;
    font-weight: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 1010;
    transition: background 0.3s;
}

.close-modal:hover {
    background: #fff;
}

.detail-flex {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.detail-left-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.detail-info {
    flex: 1;
}

.detail-img img {
    width: 100%;
    max-width: 450px;
    /* Constrain size as requested */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.detail-number {
    font-size: 13px;
    letter-spacing: 0.2em;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.detail-title {
    font-size: 36px;
    font-weight: 300;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}

.detail-date {
    font-size: 14px;
    color: #888;
    margin-bottom: 40px;
}

/* Updated Typography for Modal */
/* Updated Typography for Modal */
.meta-label {
    font-size: 16px;
    letter-spacing: 0.05em;
    color: var(--accent-color);
    margin-bottom: 5px;
    /* Reduced from 15px */
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
    font-weight: 300;
}

.detail-tracks ul,
.detail-credits ul {
    font-size: 13px;
    /* Slightly smaller or same */
    line-height: 1.8;
}

.detail-video {
    width: 100%;
    aspect-ratio: 16/9;
}

.detail-btn {
    display: inline-block;
    border: 1px solid #333;
    padding: 12px 40px;
    font-size: 13px;
    letter-spacing: 0.15em;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 40px;
    /* Spacing */
    background: transparent;
}

.detail-btn:hover {
    background: #333;
    color: #fff;
    opacity: 1;
}






/* Disco Overlay Hover Effect items */
.disco-img-wrapper {
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.disco-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.disco-overlay span {
    font-size: 11px;
    letter-spacing: 0.2em;
    color: #333;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
}

.disco-item:hover .disco-overlay {
    opacity: 1;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .detail-flex {
        flex-direction: column;
        gap: 30px;
    }

    .close-modal {
        position: fixed;
        /* Fix to viewport on mobile */
        top: 20px;
        right: 20px;
        background: rgba(255, 255, 255, 0.9);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    }

    .details-modal {
        align-items: flex-start;
        /* Start from top on mobile */
        padding-top: 60px;
        /* Space for close button */
    }

    .modal-content {
        width: 95%;
        padding: 10px;
        box-shadow: none;
        /* Reduce visual noise */
    }
}


/* Responsive Design (Tablet & Mobile) */
@media (max-width: 900px) {
    .lyrics-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --sidebar-width: 0px;
    }

    /* Mobile Discography Grid */
    .discography-grid,
    .disco-category-grid {
        justify-content: flex-start;
        /* Left align items on mobile */
        gap: 20px;
    }

    .disco-item {
        width: calc(50% - 10px);
        /* 2 items per row (gap 20px) */
        max-width: none;
        flex: 0 0 calc(50% - 10px);
    }

    /* Ensure Modal Stacks */
    .detail-flex {
        flex-direction: column;
    }

    .detail-left-col,
    .detail-info {
        width: 100%;
    }

    .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 20px;
        flex-direction: row;
        align-items: center;
        border-bottom: 1px solid #eee;
    }

    .logo {
        margin-bottom: 0;
        font-size: 20px;
    }

    .nav-list {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(41, 160, 174, 0.98);
        z-index: 2000;
        padding-top: 80px;
        text-align: center;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .nav-list.active {
        opacity: 1;
        pointer-events: auto;
    }

    .nav-list li {
        margin-bottom: 25px;
    }

    .nav-link {
        font-size: 18px;
        color: #fff;
    }

    /* Hamburger Button */
    .hamburger {
        display: block;
        position: fixed;
        top: 20px;
        right: 20px;
        width: 30px;
        height: 24px;
        z-index: 2100;
        cursor: pointer;
    }

    .hamburger span {
        display: block;
        position: absolute;
        height: 2px;
        width: 100%;
        background: #333;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .hamburger span:nth-child(1) {
        top: 0;
    }

    .hamburger span:nth-child(2) {
        top: 11px;
    }

    .hamburger span:nth-child(3) {
        top: 22px;
    }

    /* Hamburger Active State */
    .hamburger.active span:nth-child(1) {
        top: 11px;
        transform: rotate(45deg);
        background: #fff;
        /* White on menu open */
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        top: 11px;
        transform: rotate(-45deg);
        background: #fff;
    }

    .sidebar-footer {
        display: none;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 40px 20px;
    }

    .news-item {
        flex-direction: column;
        gap: 10px;
    }

    .footer-sp {
        display: block;
        padding: 40px 0;
        text-align: center;
        color: #aaa;
        font-size: 12px;
    }
}