:root {
    --primary-color: #f4a261; /* Dawn Orange */
    --secondary-color: #e9c46a; /* Twilight Gold */
    --accent-color: #2a9d8f; /* Misty Green */
    --bg-dark: #264653; /* Deep Sea/Night Blue */
    --bg-light: #fdfcf0; /* Soft Paper */
    --text-dark: #264653;
    --text-light: #fdfcf0;
    --text-dim: #a8dadc;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition: all 0.4s ease;
}

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

body {
    font-family: 'Noto Serif JP', serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.8;
    overflow-x: hidden;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Scroll Reveal Animation */
.news-item, .disco-item, .live-item, .member-card, .history-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.news-item.revealed, .disco-item.revealed, .live-item.revealed, .member-card.revealed, .history-item.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Ensure sub-page items are visible immediately */
.sub-page .member-card,
.sub-page .history-item {
    opacity: 1;
    transform: none;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 25px 0;
    transition: var(--transition);
}

header.scrolled {
    background: rgba(29, 53, 87, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links a.active {
    color: var(--primary-color);
    opacity: 1;
    font-weight: 700;
}

/* Sub Pages */
.sub-page .page-header {
    padding-top: 150px;
    padding-bottom: 50px;
    background: linear-gradient(to bottom, var(--bg-dark), rgba(38, 70, 83, 0.8));
    text-align: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 35px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 1px;
    opacity: 0.7;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
#hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(38, 70, 83, 0.5) 0%, rgba(38, 70, 83, 0.2) 50%, rgba(244, 162, 97, 0.1) 100%);
}

.hero-content h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 4px;
    text-shadow: 0 0 20px rgba(0,0,0,0.8), 2px 2px 5px rgba(0,0,0,0.5);
    color: #fff;
}

.hero-content p {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 40px;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0,0,0,0.9), 1px 1px 3px rgba(0,0,0,0.5);
    font-weight: 400;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 0.8rem;
    cursor: pointer;
    border: none;
}

.btn.primary {
    background: var(--primary-color);
    color: white;
}

.btn.secondary {
    background: rgba(38, 70, 83, 0.6);
    backdrop-filter: blur(5px);
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.btn:hover {
    transform: translateY(-2px);
    opacity: 1;
    background: var(--secondary-color);
    color: var(--bg-dark);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.6;
}

.scroll-indicator span {
    font-size: 0.7rem;
    letter-spacing: 2px;
}

.mouse {
    width: 20px;
    height: 30px;
    border: 2px solid var(--text-light);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    width: 3px;
    height: 3px;
    background: var(--text-light);
    border-radius: 50%;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 10px); opacity: 0; }
}

/* Sections */
.section {
    padding: 80px 0;
}

.alt-bg {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 50px;
    letter-spacing: 2px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--primary-color);
}

.section-title.left {
    text-align: left;
}

.section-title.left::after {
    left: 0;
    transform: none;
}

/* News */
.news-list {
    display: flex;
    flex-direction: column;
}

.news-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.alt-bg .news-item {
    border-bottom-color: rgba(29, 53, 87, 0.1);
}

.news-item.has-link:hover {
    background: rgba(255, 255, 255, 0.03);
    padding-left: 10px;
    padding-right: 10px;
}

.alt-bg .news-item.has-link:hover {
    background: rgba(29, 53, 87, 0.03);
}

.news-item a {
    display: block;
}

.news-item-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
}

.news-item-img {
    width: 120px;
    min-width: 120px;
    overflow: hidden;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-item-img img {
    width: 100%;
    height: auto;
    max-height: 160px;
    object-fit: contain;
    transition: var(--transition);
}

.news-item.has-link:hover .news-item-img img {
    transform: scale(1.05);
}

.news-item-body {
    flex: 1;
}

.news-item-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 5px;
}

.news-item .date {
    font-size: 0.85rem;
    opacity: 0.6;
}

.news-item .category {
    font-size: 0.7rem;
    padding: 2px 8px;
    border: 1px solid currentColor;
    border-radius: 3px;
    letter-spacing: 1px;
}

.category.label-new {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white !important;
}

/* History */
.history-list {
    position: relative;
    padding-left: 20px;
}

.history-list::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: rgba(255,255,255,0.1);
}

.history-item {
    position: relative;
    padding-bottom: 40px;
    padding-left: 30px;
    transition: var(--transition);
}

.history-item.has-link:hover {
    transform: translateX(10px);
}

.history-item a {
    display: block;
    color: inherit;
}

.history-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 8px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-color);
    z-index: 2;
}

.history-year {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.history-flex {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: flex-start;
}

.history-text {
    flex: 1;
}

.history-event {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.history-desc {
    font-size: 0.85rem;
    opacity: 0.7;
}

.history-img {
    width: 120px;
    min-width: 120px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    background: rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.history-img img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
}

/* About */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.lead {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.band-concept {
    margin-top: 30px;
    padding: 20px;
    background: rgba(29, 53, 87, 0.05);
    border-left: 3px solid var(--accent-color);
}

.about-image .image-frame {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 10px 10px 0 var(--secondary-color);
}

.about-image img {
    width: 100%;
    display: block;
}

/* Members */
.members-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.member-card {
    text-align: center;
}

.member-img {
    width: 100%;
    max-width: 170px;
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    margin: 0 auto 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.member-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.member-card:hover .member-img {
    border-color: var(--secondary-color);
    transform: translateY(-5px);
}

.member-card:hover .member-img img {
    transform: scale(1.1);
}

.member-info h3 {
    font-size: 0.75rem;
    color: var(--secondary-color);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.member-info .name {
    font-size: 1.1rem;
    font-weight: 700;
}

.member-info .desc {
    font-size: 0.75rem;
    opacity: 0.6;
    margin-top: 5px;
    line-height: 1.2;
}

/* Discography */
.disco-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 30px;
}

.disco-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: var(--transition);
}

.disco-item:hover {
    transform: translateY(-10px);
}

.disco-cover {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
}

.disco-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(38, 70, 83, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    z-index: 2;
}

.overlay a {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transform: scale(0.8);
    transition: var(--transition);
}

.disco-item:hover .overlay {
    opacity: 1;
}

.disco-item:hover .overlay a {
    transform: scale(1);
}

.disco-item:hover .disco-cover img {
    transform: scale(1.1);
}

.disco-info {
    padding-top: 20px;
    text-align: center;
}

.disco-info .release-type {
    font-size: 0.7rem;
    color: var(--secondary-color);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.disco-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

.disco-info h3 a:hover {
    color: var(--primary-color);
}

/* Live */
.live-schedule {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.live-item {
    display: grid;
    grid-template-columns: 80px 120px 1fr auto;
    gap: 25px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    align-items: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.live-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.live-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-right: 1px solid rgba(255,255,255,0.1);
    padding-right: 15px;
}

.live-date .month {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 2px;
}

.live-date .day {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
    margin: 4px 0;
    font-family: 'Outfit', sans-serif;
}

.live-date .dow {
    font-size: 0.7rem;
    opacity: 0.6;
    letter-spacing: 1px;
}

.live-img {
    width: 120px;
    min-width: 120px;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.live-img a {
    display: block;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.live-img img {
    width: 100%;
    height: auto;
    max-height: 160px;
    object-fit: contain;
    transition: var(--transition);
}

.live-item:hover .live-img img {
    transform: scale(1.05);
}

.live-details h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.live-time {
    font-size: 0.8rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.live-time .label {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.6rem;
    color: var(--secondary-color);
    letter-spacing: 1px;
}

.live-time .time {
    font-family: 'Outfit', sans-serif;
    letter-spacing: 1px;
    opacity: 0.8;
}

.live-venue {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.map-link {
    display: block;
    width: fit-content;
}

.map-link:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.live-venue .location {
    font-size: 0.9rem;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.live-venue .address {
    font-size: 0.75rem;
    opacity: 0.5;
    padding-left: 20px;
}

.btn-ticket {
    padding: 10px 25px;
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    transition: var(--transition);
}

.btn-ticket:hover {
    background: var(--primary-color);
    color: white;
}

/* Contact */
.contact-section {
    margin: 0 auto;
}

.contact-sns-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.sns-card {
    flex: 1;
    min-width: 160px;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    transition: var(--transition);
}

.sns-card i {
    font-size: 2.5rem;
}

.sns-card span {
    font-size: 0.9rem;
    font-weight: 700;
}

.sns-card.x:hover {
    background: rgba(0, 0, 0, 0.5);
    border-color: #fff;
    transform: translateY(-5px);
}

.sns-card.instagram:hover {
    background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
    border-color: #fff;
    transform: translateY(-5px);
}

.sns-card.youtube:hover {
    background: rgba(187, 0, 0, 0.6);
    border-color: #fff;
    transform: translateY(-5px);
}

.mb-4 { margin-bottom: 2rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.flex-gap {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Footer */
footer {
    padding: 30px 0;
    text-align: center;
    font-size: 0.75rem;
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(29, 53, 87, 0.98);
        backdrop-filter: blur(15px);
        z-index: 999;
        transition: var(--transition);
        gap: 40px;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li a {
        font-size: 1.5rem;
    }

    .mobile-menu-btn {
        display: block;
        position: relative;
        z-index: 1001; /* Ensure button stays above the menu */
    }
    .grid-2 {
        grid-template-columns: 1fr;
    }
    .members-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 15px;
    }
    .live-item {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .live-date {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding-bottom: 10px;
    }

    .news-item-inner {
        gap: 15px;
    }

    .news-item-img {
        width: 100px;
        min-width: 100px;
    }

    .history-img {
        width: 100px;
        min-width: 100px;
    }

    .live-img {
        width: 100px;
        min-width: 100px;
    }
}

@media (max-width: 480px) {
    .news-item-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .news-item-img {
        width: 100%;
        min-width: 100%;
        max-height: 250px;
    }

    .history-flex {
        flex-direction: column-reverse;
        gap: 15px;
    }

    .history-img {
        width: 100%;
        min-width: 100%;
        max-height: 250px;
    }

    .live-item {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .live-img {
        width: 100%;
        min-width: 100%;
        max-height: 250px;
    }
}

/* Song Detail */
.song-detail {
    padding-top: 120px;
    padding-bottom: 100px;
}

.song-header {
    text-align: center;
    margin-bottom: 60px;
}

.song-header h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-family: 'Noto Serif JP', serif;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.song-credits {
    display: flex;
    justify-content: center;
    gap: 40px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.song-credits .credit-item span {
    color: var(--primary-color);
    font-weight: 700;
    margin-right: 5px;
}

.song-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.lyrics-section {
    font-family: 'Noto Serif JP', serif;
    line-height: 2.2;
    font-size: 1.1rem;
    white-space: pre-wrap;
}

.lyrics-section h2 {
    font-size: 0.8rem;
    letter-spacing: 4px;
    opacity: 0.5;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.song-media {
    position: sticky;
    top: 120px;
}

.media-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.media-link-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: var(--transition);
    text-decoration: none;
    color: white;
}

.media-link-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    transform: translateX(10px);
}

.media-link-btn i {
    font-size: 1.5rem;
    width: 30px;
    text-align: center;
}

.media-link-btn.youtube i { color: #FF0000; }
.media-link-btn.soundcloud i { color: #ff5500; }
.media-link-btn.apple i { color: #fff; }
.media-link-btn.spotify i { color: #1DB954; }

@media (max-width: 768px) {
    .song-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .song-media {
        position: static;
    }
    .song-credits {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
}

/* Other Songs Navigation in Detail Page */
.other-songs {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.other-songs h3 {
    font-size: 0.8rem;
    letter-spacing: 4px;
    opacity: 0.5;
    margin-bottom: 30px;
    text-transform: uppercase;
}

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

.song-nav-item a {
    font-size: 1rem;
    opacity: 0.6;
    transition: var(--transition);
    position: relative;
    padding-bottom: 5px;
}

.song-nav-item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-color);
    transition: var(--transition);
}

.song-nav-item a:hover {
    opacity: 1;
    color: var(--primary-color);
}

.song-nav-item a:hover::after {
    width: 100%;
}

.song-nav-item.active a {
    opacity: 1;
    color: var(--primary-color);
    font-weight: 700;
}

.song-nav-item.active a::after {
    width: 100%;
}

@media (max-width: 480px) {
    .song-nav-list {
        flex-direction: column;
        gap: 15px;
    }
}
