/*!
Theme Name: syokudaikakkokai.com
Description: Official theme for 燭台（怪） - High-End Modern Renewal
Version: 0.4.0
Author: Lyuichi
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&family=Noto+Serif+JP:wght@300;500;700&display=swap');

:root {
    --bg-color: #ffffff;
    --text-color: #111111;
    --accent-color: #000000;
    /* High-end Black */
    --secondary-text: #666666;
    --border-color: #eeeeee;

    /* Fluid Spacing */
    --space-sm: clamp(1rem, 2vw, 2rem);
    --space-md: clamp(2rem, 4vw, 4rem);
    --space-lg: clamp(4rem, 8vw, 8rem);
    --space-xl: clamp(6rem, 15vw, 12rem);

    /* Fluid Typography */
    --font-size-base: 16px;
    --font-size-hero: clamp(3rem, 10vw, 8rem);
    --font-size-h2: clamp(2rem, 5vw, 4rem);
    --font-size-h3: clamp(1.2rem, 2.5vw, 2rem);

    --transition-bezier: cubic-bezier(0.16, 1, 0.3, 1);
    /* Ease Out Expo */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', 'Noto Serif JP', serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.8;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s var(--transition-bezier);
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

/* Button & Links */
.view-all-container {
    text-align: center;
    margin-top: 4rem;
}

.view-all-btn {
    display: inline-block;
    padding: 1rem 3rem;
    border: 1px solid var(--text-color);
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    color: var(--text-color);
}

.view-all-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--text-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s var(--transition-bezier);
    z-index: -1;
}

.view-all-btn:hover {
    color: white;
}

.view-all-btn:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* Layout Utilities */
.container {
    width: 90%;
    max-width: 1600px;
    margin: 0 auto;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4vw;
    z-index: 1000;
    mix-blend-mode: difference;
    color: white;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    position: relative;
    z-index: 1001;
}

/* Header Columns */
.header-left,
.header-right {
    flex: 1;
    display: flex;
    align-items: center;
}

.header-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.header-right {
    justify-content: flex-end;
}

.blog-link {
    font-size: 1.5rem;
    transition: opacity 0.3s;
    position: relative;
    z-index: 1001;
}

.blog-link:hover {
    opacity: 0.7;
}

/* Solid Header for Sub-pages */
header.solid-header {
    background-color: var(--bg-color);
    mix-blend-mode: normal;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
}

header.solid-header .menu-toggle {
    border-color: rgba(0, 0, 0, 0.2);
}

header.solid-header .menu-toggle span {
    background-color: var(--text-color);
}

/* Magnetic Button (Structure) */
.menu-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: transparent;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: transform 0.3s ease;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 1px;
    background-color: white;
    transition: all 0.4s var(--transition-bezier);
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Nav Overlay - High End Style */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #ffffff;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.8s var(--transition-bezier);
}

.nav-overlay.active {
    clip-path: inset(0 0 0 0);
}

.nav-links {
    list-style: none;
    text-align: center;
}

.nav-links li {
    overflow: hidden;
    margin: 10px 0;
}

.nav-links a {
    display: block;
    font-size: 4rem;
    font-weight: 300;
    color: #111;
    transform: translateY(110%);
    transition: transform 0.8s var(--transition-bezier), color 0.3s;
}

.nav-links a:hover {
    color: var(--secondary-text);
    font-style: italic;
    font-family: 'Noto Serif JP', serif;
}

.nav-overlay.active .nav-links a {
    transform: translateY(0);
}

/* Stagger delays handled in CSS for simplicity, or JS loop */
.nav-overlay.active li:nth-child(1) a {
    transition-delay: 0.1s;
}

.nav-overlay.active li:nth-child(2) a {
    transition-delay: 0.15s;
}

.nav-overlay.active li:nth-child(3) a {
    transition-delay: 0.2s;
}

.nav-overlay.active li:nth-child(4) a {
    transition-delay: 0.25s;
}

.nav-overlay.active li:nth-child(5) a {
    transition-delay: 0.3s;
}

.nav-overlay.active li:nth-child(6) a {
    transition-delay: 0.35s;
}

.nav-overlay.active li:nth-child(7) a {
    transition-delay: 0.4s;
}


/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    transform: scale(1.1);
    /* Space for parallax */
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    mix-blend-mode: difference;
    color: white;
    width: 100%;
    padding: 0 1rem;
}

.hero-title {
    font-size: var(--font-size-hero);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.02em;
    word-break: break-word;
    /* Prevent overflow on mobile */
}

section {
    padding: calc(var(--space-xl) / 2) 0;
}

/* --- Top Banners Section --- */
#top-banners {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.banner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.banner-item {
    display: block;
    overflow: hidden;
    position: relative;
    aspect-ratio: 3 / 1;
    background: #fafafa;
    border: 1px solid var(--border-color);
}

.banner-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--transition-bezier);
}

.banner-item:hover img {
    transform: scale(1.02);
}

@media (max-width: 992px) {
    .banner-grid {
        grid-template-columns: 1fr;
    }

    .banner-item {
        aspect-ratio: 21 / 9;
    }
}

.section-title h2 {
    font-size: var(--font-size-h2);
    font-weight: 300;
    text-transform: uppercase;
    margin-bottom: var(--space-md);
    position: relative;
    display: inline-block;
}

/* Live Schedule - Broken Grid */
.live-container {
    display: block;
    position: relative;
}

.live-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: var(--space-lg);
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s var(--transition-bezier);
}

.live-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Asymmetry */
.live-item:nth-child(odd) {
    flex-direction: row;
}

.live-item:nth-child(even) {
    flex-direction: row-reverse;
}

.live-img-wrapper {
    width: 55%;
    position: relative;
    overflow: hidden;
}

.live-img-wrapper img {
    width: 100%;
    transition: transform 1.2s var(--transition-bezier);
}

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

.live-content {
    width: 45%;
    padding: 0 var(--space-md);
}

.live-date {
    display: block;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    position: relative;
}

.live-date::before {
    content: '';
    display: inline-block;
    width: 30px;
    height: 1px;
    background: currentColor;
    margin-right: 10px;
    vertical-align: middle;
}

.live-title {
    font-size: var(--font-size-h3);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

/* Goods - Minimal Grid */
.goods-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
}

.goods-item {
    position: relative;
    cursor: pointer;
}

.goods-img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    margin-bottom: 10px;
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}

.goods-item:hover .goods-img,
.goods-item.in-view-center .goods-img {
    filter: grayscale(0%);
}

.goods-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

/* Info List */
.info-item {
    border-top: 1px solid #eee;
    padding: 2rem 0;
    display: flex;
    align-items: baseline;
    transition: padding 0.3s ease;
}

.info-item:hover {
    padding-left: 1rem;
    border-top-color: #111;
}

.info-date {
    width: 150px;
    font-family: 'Inter', sans-serif;
    color: #999;
}

.info-text {
    font-size: 1.2rem;
    font-weight: 500;
}

/* Members - Simple Row */
.member-list {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
}

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

.member-img {
    width: 25vw;
    height: 35vw;
    max-width: 300px;
    max-height: 400px;
    object-fit: cover;
    margin-bottom: 1rem;
    filter: brightness(0.9) contrast(1.1);
}

.member-name {
    font-size: 1.5rem;
    font-family: 'Noto Serif JP', serif;
}

.member-part {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: #999;
    margin-bottom: 0.5rem;
}


/* Footer */
footer {
    padding: var(--space-lg) 0;
    text-align: center;
    border-top: 1px solid #111;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
}

/* Mobile Adjustments */
@media (max-width: 768px) {

    .live-item,
    .live-item:nth-child(even) {
        flex-direction: column;
        align-items: flex-start;
    }

    .live-img-wrapper,
    .live-content {
        width: 100%;
    }

    .live-img-wrapper {
        margin-bottom: 1.5rem;
    }

    .goods-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

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

/* Banner Grid */
.banner-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.banner-item {
    display: block;
    width: 100%;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    /* Subtle depth */
}

.banner-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/5;
    /* Wide banner aspect ratio */
    object-fit: cover;
    transition: transform 0.8s var(--transition-bezier), filter 0.5s ease;
    filter: brightness(0.95);
}

.banner-item:hover img {
    transform: scale(1.05);
    filter: brightness(1.05);
}

/* Footer Specifics */
#footer-banners {
    margin-bottom: var(--space-xl);
}

/* Mobile Adjustments for Banners are handled in the existing media query block or I can add a specific one here */
@media (max-width: 768px) {
    .banner-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Single Page Templates --- */
.single-page {
    margin-top: 120px !important;
    /* Force push down below fixed header */
    padding-top: 2rem;
    min-height: 80vh;
    position: relative;
    z-index: 1;
}

.single-content {
    max-width: 800px;
    margin: 0 auto;
}

.single-header {
    /* Reset generic header styles */
    position: static;
    height: auto;
    width: auto;
    background: transparent;
    padding: 0;
    mix-blend-mode: normal;
    color: inherit;
    display: block;

    /* Original single-header styles */
    margin-bottom: var(--space-md);
    text-align: center;
    border-bottom: 1px solid #eee;
    padding-bottom: var(--space-sm);
}

.post-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--secondary-text);
}

.category-label {
    padding: 0.2rem 0.8rem;
    background: #000;
    color: #fff;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
}

.cat-live {
    background-color: #000;
}

.cat-news {
    background-color: #666;
}

.cat-goods {
    background-color: #333;
}

.single-title {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.venue-info {
    font-size: 1.1rem;
    font-weight: 300;
}

.event-details {
    margin-top: 1.5rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.post-body {
    line-height: 2;
    font-size: 1rem;
    margin-bottom: var(--space-lg);
}

.post-body h3 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    border-left: 4px solid #000;
    padding-left: 1rem;
}

.post-body p {
    margin-bottom: 1.5rem;
}

.post-body img.aligncenter {
    margin: 2rem auto;
    display: block;
    max-width: 100%;
}

.single-footer {
    text-align: center;
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid #eee;
}

/* Goods Detail Layout */
.goods-detail .single-content {
    max-width: 1000px;
    /* Wider for 2 cols */
}

.goods-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    align-items: start;
}

.goods-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.goods-thumbnails img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.goods-thumbnails img:hover {
    opacity: 1;
}

.goods-price {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    display: block;
}

.post-body .note {
    font-size: 0.8rem;
    color: #999;
    border: 1px solid #eee;
    padding: 1rem;
}

/* Member Detail Layout */
.member-profile-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.artist-photo {
    width: 40%;
    max-width: 300px;
    aspect-ratio: 3/4;
    object-fit: cover;
    filter: brightness(0.95);
}

.profile-info {
    text-align: left;
}

.member-part-label {
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    color: var(--secondary-text);
    margin-bottom: 0.5rem;
}

.member-name-large {
    font-size: clamp(2rem, 5vw, 4rem);
    font-family: 'Noto Serif JP', serif;
    margin-bottom: 1rem;
}

.sns-links {
    list-style: none;
    display: flex;
    gap: 1rem;
    font-size: 1.5rem;
}

.sns-links a:hover {
    color: var(--secondary-text);
}


/* Mobile for Single Pages */
@media (max-width: 768px) {
    .goods-layout {
        grid-template-columns: 1fr;
    }

    .member-profile-header {
        flex-direction: column;
        text-align: center;
    }

    .profile-info {
        text-align: center;
    }

    .artist-photo {
        width: 80%;
    }

    .sns-links {
        justify-content: center;
    }
}

/* --- Archive Grid & Cards --- */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem 2rem;
    margin-bottom: 5rem;
}

@media (max-width: 992px) {
    .archive-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .archive-grid {
        grid-template-columns: 1fr;
    }
}

.card-item a {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.card-item:hover a {
    transform: translateY(-5px);
}

.card-image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    margin-bottom: 1.5rem;
    background: #f0f0f0;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}

.card-item:hover .card-image img,
.card-item.in-view-center .card-image img {
    filter: grayscale(0%);
}

.no-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #999;
    letter-spacing: 0.2rem;
}

.card-date-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    background: #000;
    color: #fff;
    padding: 0.5rem 1rem;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.1em;
}

.card-title {
    font-size: 1.1rem;
    line-height: 1.4;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.card-venue {
    font-size: 0.8rem;
    opacity: 0.6;
    font-weight: 300;
}

/* Pagination Styling */
.pagination {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.pagination .page-numbers {
    padding: 0.5rem 1rem;
    border: 1px solid #eee;
    font-size: 0.8rem;
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
}

.pagination .page-numbers.current {
    background: #000;
    color: #fff;
    border-color: #000;
}

.pagination .page-numbers:hover:not(.current) {
    background: #f8f8f8;
}