/* 
  De:LIRIUM ONLINE
  Main Style Sheet
*/

:root {
    /* Color Palette (Monotone & Dark) */
    --bg-color: #0a0a0a;
    --bg-darker: #050505;
    --text-main: #e0e0e0;
    --text-muted: #888888;
    --accent: #555555;
    --border-color: #333333;
    
    /* Typography */
    --font-jp: 'Noto Serif JP', serif;
    --font-en: 'Cinzel', serif;
    
    /* Layout */
    --header-height: 80px;
    --section-padding: 100px 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-jp);
    font-weight: 300;
    letter-spacing: 0.05em;
    overflow-x: hidden;
}

.sp-only {
    display: none;
}

/* Typography styles */
h1, h2, h3, .cinzel-text {
    font-family: var(--font-en);
    font-weight: 400;
    letter-spacing: 0.1em;
}

/* =========================================
   Header & Navigation
========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 100;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.header-inner {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.8rem;
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
    transition: all 0.3s;
}

.logo a:hover {
    text-shadow: 0 0 15px rgba(255,255,255,0.8);
}

/* Global Navigation (Desktop) */
.gnav .nav-list {
    display: flex;
    gap: 30px;
}

.gnav a {
    font-family: var(--font-en);
    font-size: 0.9rem;
    color: var(--text-main);
    position: relative;
    padding: 5px 0;
    transition: color 0.3s;
}

.gnav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #fff;
    transition: width 0.3s ease;
}

.gnav a:hover {
    color: #fff;
}

.gnav a:hover::after {
    width: 100%;
}

/* Hamburger Menu (Mobile) */
.hamburger {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 101;
}

.hamburger span {
    display: block;
    position: absolute;
    width: 100%;
    height: 1px;
    background: #fff;
    transition: all 0.3s ease;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger span:nth-child(3) { bottom: 0; }

.hamburger.active span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* =========================================
   Main Visual
========================================= */
.main-visual {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background: url('../images/main-visual.jpeg') no-repeat center center / cover;
}

.main-visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* 暗さを足して文字を見やすくするオーバーレイ */
    z-index: 1;
}

.mv-content {
    text-align: center;
    animation: fadeIn 3s ease forwards;
    opacity: 0;
    position: relative;
    z-index: 2;
}

.mv-title {
    font-size: 5rem;
    color: #fff;
    text-shadow: 0 0 20px rgba(255,255,255,0.2);
    margin-bottom: 20px;
}

.mv-subtitle {
    font-family: var(--font-en);
    font-size: 1.2rem;
    color: var(--text-muted);
    letter-spacing: 0.2em;
}

.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: var(--font-en);
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

.scroll-down::after {
    content: '';
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--text-muted), transparent);
    margin-top: 10px;
    animation: scrollDrop 2s infinite;
}

@keyframes scrollDrop {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    50.1% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* =========================================
   Sections (Common)
========================================= */
.section {
    padding: var(--section-padding);
}

.section.bg-darker {
    background-color: var(--bg-darker);
}

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

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    color: #fff;
    position: relative;
    padding-bottom: 15px;
}

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

.coming-soon {
    text-align: center;
    font-family: var(--font-en);
    color: var(--text-muted);
    font-style: italic;
    padding: 50px 0;
}

/* =========================================
   Components (Profile, links, etc.)
========================================= */

/* Profile */
.band-description {
    text-align: center;
    margin-bottom: 60px;
    line-height: 2;
    color: #ccc;
}

.member-list {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.member-card {
    width: 220px;
    text-align: center;
}

.member-image {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    background-color: #111;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
    transition: filter 0.3s, border-color 0.3s;
    filter: grayscale(80%);
}

.member-card:hover .member-image {
    filter: grayscale(0%);
    border-color: #555;
}

.member-name {
    font-family: var(--font-jp);
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 10px;
}

.member-info {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* =========================================
   Discography / Schedule
========================================= */
.disco-list, .schedule-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.disco-card {
    max-width: 350px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
}

.disco-card:hover {
    border-color: #555;
    background: rgba(255, 255, 255, 0.05);
}

.disco-image {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    margin-bottom: 20px;
    filter: grayscale(40%);
    transition: filter 0.3s;
}

.disco-card:hover .disco-image {
    filter: grayscale(0%);
}

.disco-desc h3 {
    font-family: var(--font-en);
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 10px;
}

.disco-desc p {
    color: #ccc;
    line-height: 1.8;
}

.schedule-card {
    width: 100%;
    max-width: 600px;
    padding: 30px;
    border-left: 2px solid var(--accent);
    background: rgba(255,255,255,0.02);
    text-align: left;
}

.schedule-date {
    font-family: var(--font-en);
    font-size: 1.2rem;
    color: var(--accent);
    margin-bottom: 10px;
}

.schedule-sub {
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 10px;
}

.schedule-desc {
    color: #ccc;
    margin-bottom: 20px;
}

.schedule-links {
    margin-top: 20px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-link-small {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: #fff;
    font-size: 0.9rem;
    font-family: var(--font-en);
    letter-spacing: 0.05em;
    transition: all 0.3s;
}

.btn-link-small:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
    transform: translateY(-2px);
}

/* =========================================
   Gallery (Memories)
========================================= */
.gallery-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding-bottom: 20px;
    -webkit-overflow-scrolling: touch;
}

.gallery-grid::-webkit-scrollbar {
    height: 8px;
}

.gallery-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.gallery-grid::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}

.gallery-item {
    flex: 0 0 85%;
    max-width: 400px;
    scroll-snap-align: center;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.5);
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
    filter: grayscale(40%);
}

.gallery-item:hover img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

/* Movie Link (YouTube Thumbnail) */
.movie-link {
    max-width: 800px;
    margin: 0 auto 50px;
    position: relative;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s, border-color 0.3s;
    overflow: hidden;
}

.movie-link:hover {
    transform: scale(1.02);
    border-color: #fff;
}

.movie-thumbnail {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    filter: brightness(60%);
    transition: filter 0.3s;
    display: block;
}

.movie-link:hover .movie-thumbnail {
    filter: brightness(90%);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-family: var(--font-en);
    border: 2px solid #fff;
    border-radius: 4px;
    pointer-events: none;
}

/* Movie Wrapper (Iframe) */
.movie-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
}
.movie-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* =========================================
   Movie Gallery (Archive Page)
========================================= */
.movie-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.movie-gallery-item {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    background: #000;
}

.movie-gallery-item iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.movie-card {
    display: flex;
    flex-direction: column;
}

.movie-title {
    margin-top: 15px;
    font-size: 1.1rem;
    color: #fff;
    text-align: center;
    letter-spacing: 0.05em;
    font-family: var(--font-en);
}

/* Links */
.link-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 400px;
    margin: 0 auto;
}

.btn-link {
    display: block;
    padding: 20px;
    text-align: center;
    border: 1px solid var(--border-color);
    background: rgba(255,255,255,0.02);
    font-family: var(--font-en);
    letter-spacing: 0.1em;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.btn-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.1);
    transition: left 0.3s;
}

.btn-link:hover {
    border-color: #fff;
    color: #fff;
}

.btn-link:hover::before {
    left: 0;
}

/* =========================================
   Footer
========================================= */
.footer {
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-darker);
}

.copyright {
    font-family: var(--font-en);
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* =========================================
   Responsive Menu
========================================= */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .gnav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(5, 5, 5, 0.95);
        backdrop-filter: blur(10px);
        display: flex;
        justify-content: center;
        align-items: center;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    }
    
    .gnav.active {
        right: 0;
    }
    
    .gnav .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
    
    .gnav a {
        font-size: 1.2rem;
    }

    .mv-title {
        font-size: 3rem;
    }
}

/* =========================================
   Image Protection & Lightbox
========================================= */
img {
    user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
}

#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

#lightbox img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

#lightbox.active img {
    transform: scale(1);
}

#lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 3rem;
    font-family: var(--font-en);
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

#lightbox-close:hover {
    color: var(--accent);
}

#lightbox-prev, #lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 3rem;
    font-family: var(--font-en);
    cursor: pointer;
    transition: color 0.3s;
    user-select: none;
    padding: 20px;
    z-index: 1001;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

#lightbox-prev {
    left: 20px;
}

#lightbox-next {
    right: 20px;
}

#lightbox-prev:hover, #lightbox-next:hover {
    color: var(--accent);
    background: rgba(0, 0, 0, 0.6);
}

/* Goods Image on Top Page */
.goods-main-image {
    max-width: 100%;
    width: 400px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin-bottom: 40px;
    filter: grayscale(100%);
    transition: filter 0.4s ease, transform 0.4s ease;
    display: inline-block; /* Ensure text-align: center works */
    cursor: pointer;
}

.goods-main-image:hover {
    filter: grayscale(0%);
    transform: scale(1.02);
}

/* =========================================
   Archive & Subpages (Gallery, Movie, Goods)
========================================= */
.archive-header {
    padding: 150px 0 50px;
    text-align: center;
}

.archive-title {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 20px;
    font-family: var(--font-en);
    letter-spacing: 0.1em;
}

.back-link {
    display: inline-block;
    margin-top: 40px;
}

/* Common Grid for Archive Gallery */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.archive-item {
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: #000;
    aspect-ratio: 4/3;
    position: relative;
}

.archive-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease, filter 0.4s ease;
    filter: grayscale(30%);
}

.archive-item:hover img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

/* Goods Specific Grid */
.goods-showcase {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 80px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.goods-showcase img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.goods-showcase img:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
}

@media (max-width: 768px) {
    .main-visual {
        height: 80vh; 
        background: url('../images/main-visual-sp.png') no-repeat center center / cover !important;
    }
    .mv-title {
        font-size: 2.5rem; /* 高さの減少に合わせてタイトルも少し小ぶりに */
    }
    .mv-subtitle {
        font-size: 0.9rem;
    }
    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    .archive-title {
        font-size: 2rem;
    }
    .goods-showcase {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .sp-only {
        display: block;
    }
}
