/* ============================================================
   ATATA Theme – Main Stylesheet
   Design base: thrive (Fraunces + Inter, sage/rose palette)
   Hero reference: americanmary.com (The National)
   ============================================================ */

/* ─── Design Tokens ─── */
:root {
    /* Colors */
    --color-bg:         #FAF8F4;
    --color-bg-dark:    #14110E;
    --color-surface:    #F2EDE6;
    --color-surface-dark:#1E1A16;
    --color-accent:     #0027ff;
    --color-accent-hover:#0020d6;
    --color-rose:       #D9806B;
    --color-rose-hover: #C46B56;
    --color-text:       #14110E;
    --color-text-secondary: #4A453D;
    --color-text-muted: #6B645A;
    --color-border:     #D8D3CB;
    --color-white:      #FFFFFF;

    /* Typography */
    --font-display: 'Work Sans', sans-serif;
    --font-serif:   'Fraunces', serif;
    --font-body:    'Inter', sans-serif;
    --font-mono:    'JetBrains Mono', monospace;

    /* Spacing */
    --space-xs:  0.25rem;
    --space-sm:  0.5rem;
    --space-md:  1rem;
    --space-lg:  2rem;
    --space-xl:  3rem;
    --space-2xl: 5rem;
    --space-3xl: 8rem;

    /* Layout */
    --container-width: 1200px;
    --container-narrow: 800px;

    /* Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    /* Transitions */
    --transition: 200ms ease;

    /* Animation */
    --anim-duration: 1000ms;
    --anim-easing: cubic-bezier(0.16, 1, 0.3, 1);
    --anim-distance: 50px;
    --anim-stagger: 120ms;
}

/* ─── Dark Mode Overrides ─── */
[data-theme="dark"] {
    --color-bg:             #14110E;
    --color-surface:        #1E1A16;
    --color-text:           #E8E4DF;
    --color-text-secondary: #B5AFA7;
    --color-text-muted:     #8A8379;
    --color-border:         #2E2A25;
    --color-white:          #1E1A16;
    --color-bg-dark:        #0A0908;
    --color-accent:         #6B8AFF;
    --color-accent-hover:   #8DA4FF;
}

/* Dark mode: elements that need true white regardless of theme */
[data-theme="dark"] .hero-next-live,
[data-theme="dark"] .hero-next-live:link,
[data-theme="dark"] .hero-next-live:visited,
[data-theme="dark"] .hero-next-live:hover,
[data-theme="dark"] .hero-next-live:focus,
[data-theme="dark"] .hero-next-live:focus-visible,
[data-theme="dark"] .hero-next-live:active,
[data-theme="dark"] .page-hero,
[data-theme="dark"] .page-hero-title {
    color: #fff;
}

[data-theme="dark"] .btn-primary,
[data-theme="dark"] .btn-primary:hover,
[data-theme="dark"] .btn-sm:hover,
[data-theme="dark"] .btn-secondary:hover,
[data-theme="dark"] .performer-youtube,
[data-theme="dark"] .performer-youtube:hover,
[data-theme="dark"] .live-status-badge,
[data-theme="dark"] .wpcf7 input[type="submit"] {
    color: #fff;
}

/* ─── Reset & Base ─── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
html.lenis, html.lenis body {
    height: auto;
}
.lenis.lenis-smooth {
    scroll-behavior: auto;
}
.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.7;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

a:hover {
    color: var(--color-accent);
}

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

/* ─── Layout ─── */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.container-narrow {
    max-width: var(--container-narrow);
}

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

/* ─── Typography ─── */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
}

.prose {
    font-size: 1rem;
    line-height: 2;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.prose p {
    margin-bottom: var(--space-md);
}

.prose h2 {
    font-size: 1.5rem;
    margin: var(--space-xl) 0 var(--space-md);
}

.prose h3 {
    font-size: 1.25rem;
    margin: var(--space-lg) 0 var(--space-sm);
}

.prose img {
    max-width: 100%;
    height: auto;
    cursor: pointer;
    border-radius: var(--radius-md);
    margin: var(--space-lg) 0;
}

.prose .video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    margin: var(--space-lg) 0;
}

.prose .video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-md);
}

.prose .wp-block-embed {
    margin: var(--space-lg) 0;
}

.prose .wp-block-embed__wrapper {
    position: relative;
}

.prose .wp-block-embed__wrapper iframe {
    width: 100% !important;
    border-radius: var(--radius-md);
}

.prose .wp-block-embed-youtube .wp-block-embed__wrapper {
    padding-bottom: 56.25%;
    height: 0;
}

.prose .wp-block-embed-youtube .wp-block-embed__wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
}

.prose hr {
    margin: 40px 0;
}

.prose ul,
.prose ol,
.prose li {
    list-style: none;
    padding-left: 0;
}

.prose a {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.prose a:hover {
    color: var(--color-accent-hover);
}

/* ─── Header ─── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    mix-blend-mode: difference;
}

.site-header .site-logo,
.site-header .nav-list a,
.site-header .nav-sns-icon {
    color: #fff;
}

.site-header .site-logo-img {
    filter: brightness(0) invert(1);
}

.has-hero-bg .site-header:not(.is-scrolled) {
    mix-blend-mode: normal;
}
.has-hero-bg .site-header:not(.is-scrolled) .site-logo,
.has-hero-bg .site-header:not(.is-scrolled) .nav-list a,
.has-hero-bg .site-header:not(.is-scrolled) .nav-sns-icon,
.has-hero-bg .site-header:not(.is-scrolled) .theme-toggle,
.has-hero-bg .site-header:not(.is-scrolled) .nav-toggle span {
    color: #fff;
}
.has-hero-bg .site-header:not(.is-scrolled) .site-logo-img {
    filter: brightness(0) invert(1);
}
.has-hero-bg .site-header:not(.is-scrolled) .nav-toggle span {
    background: #fff;
}

.header-inner {
    padding: 0 var(--space-xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}


.site-logo {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-white);
}

.site-logo:hover {
    color: var(--color-text);
}

.site-logo-img {
    height: 1.1rem;
    width: auto;
    display: block;
}

.site-nav {
    margin-left: auto;
}

.site-nav--mobile {
    display: none;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: var(--space-lg);
}

.nav-list a {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-white);
    position: relative;
}

.nav-list a::after {
    display: none;
}

.nav-list a:hover {
    opacity: 0.5;
}

.nav-list a:hover::after {
    display: none;
}

/* Nav SNS icons */
.nav-sns {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-left: var(--space-lg);
}

.nav-sns-icon {
    color: var(--color-white);
    display: inline-flex;
}

.nav-sns-icon:hover {
    color: var(--color-white);
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    margin-left: var(--space-md);
    color: #fff;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.theme-icon-sun { display: none; }
.theme-icon-moon { display: block; }

[data-theme="dark"] .theme-icon-sun { display: block; }
[data-theme="dark"] .theme-icon-moon { display: none; }

/* Hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 28px;
    height: 20px;
    position: relative;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-white);
    position: absolute;
    left: 0;
    transition: all var(--transition);
}

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

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

/* ─── Main ─── */
.site-main {
    padding-top: 64px; /* header height */
}

/* ─── Hero (thrive: photo-only, full bleed) ─── */
.hero {
    margin-top: -64px;
    background-color: var(--color-bg-dark);
    position: relative;
    overflow: hidden;
}

/* Custom cursor dot */
.cursor-dot {
    position: fixed;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    mix-blend-mode: difference;
    pointer-events: none;
    z-index: 10000;
    border: 1.5px solid transparent;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.2s ease, width 0.25s ease, height 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.cursor-dot.is-visible {
    transform: translate(-50%, -50%) scale(1);
}

.cursor-dot.is-hover {
    width: 56px;
    height: 56px;
}

.cursor-dot.is-hover-tagline {
    width: 120px;
    height: 120px;
}

.hero-slideshow {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.2s ease;
    will-change: transform;
    scale: 1;
}

.hero-slide.is-active {
    opacity: 1;
    animation: heroZoom 6s ease-out forwards;
}

@keyframes heroZoom {
    from { scale: 1; }
    to   { scale: 1.06; }
}

/* RGB Split ghost layers */
.hero-rgb-ghost {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    will-change: transform, opacity;
}

.hero-rgb-ghost--red {
    mix-blend-mode: screen;
    filter: saturate(0) brightness(0.8) sepia(1) hue-rotate(-30deg) saturate(3);
    opacity: 0;
}

.hero-rgb-ghost--cyan {
    mix-blend-mode: screen;
    filter: saturate(0) brightness(0.8) sepia(1) hue-rotate(140deg) saturate(3);
    opacity: 0;
}

/* Brief glitch flash */
.hero-rgb-ghost--red.is-glitch {
    animation: rgbGlitchRed 0.1s linear forwards;
}
.hero-rgb-ghost--cyan.is-glitch {
    animation: rgbGlitchCyan 0.1s linear forwards;
}

@keyframes rgbGlitchRed {
    0%   { transform: translate(0, 0); opacity: 0; }
    30%  { transform: translate(5px, -3px); opacity: 0.5; }
    70%  { transform: translate(-2px, 1px); opacity: 0.3; }
    100% { transform: translate(0, 0); opacity: 0; }
}
@keyframes rgbGlitchCyan {
    0%   { transform: translate(0, 0); opacity: 0; }
    30%  { transform: translate(-5px, 3px); opacity: 0.5; }
    70%  { transform: translate(2px, -1px); opacity: 0.3; }
    100% { transform: translate(0, 0); opacity: 0; }
}

/* Main split on transition */
.hero-rgb-ghost--red.is-splitting {
    animation: rgbSplitRed 1.2s linear forwards;
}
.hero-rgb-ghost--cyan.is-splitting {
    animation: rgbSplitCyan 1.2s linear forwards;
}

@keyframes rgbSplitRed {
    0%   { transform: translate(8px, -4px); opacity: 0.6; }
    20%  { transform: translate(3px, -2px); opacity: 0.5; }
    50%  { transform: translate(-1px, 0); opacity: 0.3; }
    75%  { transform: translate(0, 0); opacity: 0.12; }
    100% { transform: translate(0, 0); opacity: 0; }
}
@keyframes rgbSplitCyan {
    0%   { transform: translate(-8px, 4px); opacity: 0.6; }
    20%  { transform: translate(-3px, 2px); opacity: 0.5; }
    50%  { transform: translate(1px, 0); opacity: 0.3; }
    75%  { transform: translate(0, 0); opacity: 0.12; }
    100% { transform: translate(0, 0); opacity: 0; }
}

.hero-image {
    width: 100%;
    height: 100vh;
    height: 100svh;
    object-fit: cover;
    display: block;
}

.hero-placeholder {
    width: 100%;
    height: 100vh;
    height: 100svh;
    background: var(--color-bg-dark);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    pointer-events: none;
}

.hero-next-live {
    position: absolute;
    bottom: var(--space-2xl);
    left: var(--space-xl);
    z-index: 2;
    color: #fff;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    -webkit-tap-highlight-color: transparent;
}

.hero-next-live:hover,
.hero-next-live:active,
.hero-next-live:visited {
    color: #fff;
}

.hero-next-live-label {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.7;
}

.hero-next-live-date {
    font-family: 'Instrument Serif', serif;
    font-size: 1.5rem;
    font-weight: 400;
}

.hero-next-live-title {
    font-family: 'Instrument Serif', serif;
    font-size: 2rem;
    font-weight: 400;
}

.hero-next-live-venue {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* ─── Page Hero ─── */
.page-hero {
    background: var(--color-bg-dark);
    color: var(--color-white);
    margin-top: -64px;
    padding: calc(64px + var(--space-3xl)) 0 var(--space-2xl);
    text-align: center;
    position: relative;
}

.page-hero--light {
    background: transparent;
    color: var(--color-text);
}

.page-hero--light .page-hero-title::after {
    content: '';
    display: block;
    width: 24px;
    height: 1px;
    background: var(--color-text);
    margin: 40px auto 0;
}

.page-hero--has-bg {
    background-size: cover;
    background-position: center;
    padding: calc(64px + var(--space-3xl)) 0 var(--space-3xl);
    min-height: 640px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: calc(var(--space-3xl) + 4rem);
}

.page-hero--has-bg {
    --hero-overlay-opacity: 0.55;
    overflow: hidden;
}

.page-hero--has-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, var(--hero-overlay-opacity));
}

.page-hero--has-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 128px 128px;
    opacity: 0.25;
    pointer-events: none;
    z-index: 0;
}

.page-hero--has-bg .page-hero-inner {
    position: relative;
    z-index: 1;
}

.page-hero-title {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 400;
    letter-spacing: 0;
    text-transform: capitalize;
}

.page-hero-date {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0;
    margin-bottom: var(--space-sm);
    display: block;
}

.page-hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: var(--space-sm);
}

/* ─── Section Titles (thrive: understated, left-aligned) ─── */
.section-title {
    font-family: 'Instrument Serif', serif;
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: capitalize;
    color: var(--color-text);
    margin-bottom: var(--space-xl);
}

.section-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--color-accent);
    margin-bottom: var(--space-md);
}

.section-more {
    display: inline-block;
    margin-top: var(--space-xl);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-text-muted);
    letter-spacing: 0.04em;
    transition: color var(--transition);
}

.section-more:hover {
    color: var(--color-accent);
}

/* ─── Live List ─── */
.upcoming-empty {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.live-list {
    display: flex;
    flex-direction: column;
}

.live-item {
    display: grid;
    grid-template-columns: 160px 1fr auto;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--color-border);
    transition: color var(--transition);
}

.live-item:last-child {
    border-bottom: none;
}

.live-item:hover {
    color: var(--color-accent);
}

.live-item:hover .live-date,
.live-item:hover .live-date-year,
.live-item:hover .live-date-dow {
    color: var(--color-accent);
}

.live-date {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--color-text);
    transition: color var(--transition);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
}

.live-date-year {
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--color-text-muted);
    margin-bottom: 2px;
    transition: color var(--transition);
}

.live-date-md {
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.live-date-dow {
    font-size: 0.625rem;
    font-weight: 500;
    color: var(--color-text-muted);
    margin-top: 6px;
    text-transform: uppercase;
    transition: color var(--transition);
    background: rgba(128, 128, 128, 0.12);
    padding: 2px 6px;
    border-radius: 4px;
}

.live-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.live-venue {
    font-size: 0.875rem;
    font-weight: 500;
}

.live-organizer {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-weight: 500;
    letter-spacing: 0.02em;
}

.live-title {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.live-badge {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-rose);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.live-badge--cancelled {
    color: var(--color-text-muted);
}

.live-badge--new {
    display: inline-block;
    font-size: 0.5rem;
    font-weight: 700;
    color: #fff;
    background: var(--color-accent);
    padding: 2px 8px;
    border-radius: 999px;
    letter-spacing: 0.06em;
    line-height: 1.4;
    margin-bottom: 6px;
}

.live-item.has-thumb {
    grid-template-columns: 160px 1fr 80px;
}

.live-thumb {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-lg);
    background: #e5e5e5;
    flex-shrink: 0;
    overflow: hidden;
}

.live-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.live-item--past {
    opacity: 0.6;
}

.live-item--past:hover {
    opacity: 1;
}

/* ─── Live Detail ─── */
.live-detail {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: var(--space-sm) var(--space-lg);
    margin-bottom: var(--space-xl);
}

.live-detail dt {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
    padding-top: 3px;
}

.live-detail dd {
    font-size: 0.95rem;
}

.live-detail dd a:not(.btn-sm) {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Performers list */
.live-performers-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.performer {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.performer-youtube {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-white);
    background: #c4302b;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
}

.performer-youtube:hover {
    background: #a02520;
    color: var(--color-white);
}

.live-status-badge {
    display: inline-block;
    padding: var(--space-sm) var(--space-lg);
    background: var(--color-rose);
    color: var(--color-white);
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.08em;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-xl);
}

.live-status-badge--cancelled {
    background: var(--color-text-muted);
}

.live-flyer {
    margin-top: var(--space-xl);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.live-videos {
    margin-top: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.live-video-label {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-xs);
}

.video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.live-body {
    margin-top: var(--space-xl);
}

/* ─── Blog Cards ─── */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-xl);
}

.blog-card {
    transition: opacity var(--transition);
}

.blog-card:hover {
    opacity: 0.85;
}

/* Visual block — blurred thumbnail bg with title overlay */
.blog-card-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg);
    background: #3c3c3d;
    padding: var(--space-lg);
    text-decoration: none;
    overflow: hidden;
    position: relative;
}

.blog-card-visual-bg {
    position: absolute;
    inset: -20px;
    z-index: 0;
}

.blog-card-visual-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(16px) brightness(0.7);
    transition: filter 500ms ease;
}

.blog-card-visual:hover .blog-card-visual-bg img {
    filter: blur(0) brightness(0.7);
}

.blog-card-visual-title {
    position: relative;
    z-index: 1;
    font-family: 'Instrument Serif', serif;
    font-size: clamp(1.25rem, 2.2vw, 1.75rem);
    font-weight: 400;
    line-height: 1.35;
    color: #fff;
    text-align: center;
    word-break: auto-phrase;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Info row — date + title + small thumb right */
.blog-card-info {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.blog-card-date {
    font-size: 0.6875rem;
    color: var(--color-text-muted);
    letter-spacing: 0.06em;
    font-family: var(--font-display);
    flex-shrink: 0;
}

.blog-card-thumb {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    margin-left: auto;
    order: 1;
}

.blog-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card-title {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.45;
    min-width: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-title a:hover {
    color: var(--color-accent);
}


/* ─── Release Cards ─── */
.release-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--space-xl);
}

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

/* Top page: horizontal scroll carousel */
.release-carousel {
    display: flex;
    gap: var(--space-lg);
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    padding: var(--space-md) 0 var(--space-lg);
    scrollbar-width: none;
}

.release-carousel::-webkit-scrollbar {
    display: none;
}

.release-carousel .release-card {
    flex: 0 0 240px;
}

.carousel-wrapper {
    position: relative;
}

.carousel-arrow {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    color: var(--color-text);
    font-size: 1.125rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    z-index: 2;
}

.carousel-arrow:hover {
    background: var(--color-text);
    color: var(--color-bg);
}

.carousel-arrow--prev {
    left: -22px;
}

.carousel-arrow--next {
    right: -22px;
}

.release-card-image {
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.release-card-image img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
    border-radius: var(--radius-lg);
    transition: transform var(--transition);
}

.release-card:hover .release-card-image img {
    transform: scale(1.02);
}

.release-card-body {
    padding-top: var(--space-md);
}

.release-card-title {
    font-size: 1rem;
    font-weight: 600;
}

.release-card-title a:hover {
    color: var(--color-accent);
}

.release-card-format {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.release-card-date {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    display: block;
    margin-top: var(--space-xs);
}

/* ─── Release Detail ─── */
.release-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-xl);
}

.release-artwork img {
    border-radius: var(--radius-lg);
    width: 100%;
}

.release-meta {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: var(--space-xs) var(--space-md);
    margin-bottom: var(--space-lg);
}

.release-meta dt {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
}

.release-meta dd {
    font-size: 0.9rem;
}

.tracklist {
    margin-bottom: var(--space-lg);
}

.tracklist h3 {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: var(--space-sm);
    color: var(--color-text-muted);
}

.tracklist ol {
    list-style: none;
    counter-reset: track;
}

.tracklist li {
    counter-increment: track;
    display: flex;
    justify-content: space-between;
    padding: var(--space-xs) 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.9rem;
}

.tracklist li::before {
    content: counter(track) ".";
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-right: var(--space-sm);
    min-width: 24px;
}

.track-duration {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.release-links-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
}
.release-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-surface);
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color var(--transition-base);
}
.release-link-icon:hover {
    color: var(--color-text);
}

.release-body {
    margin-top: var(--space-xl);
}

/* ─── Video Grid ─── */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: var(--space-xl);
}

.video-embed {
    position: relative;
    padding-bottom: 56.25%;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.video-card-title {
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: var(--space-sm);
}

/* ─── Download List ─── */
.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--space-xl);
}

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

.download-card-image {
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.download-card-image img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

.download-card-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: #2a2a2a;
    border-radius: var(--radius-md);
}

.download-card-body {
    padding-top: var(--space-md);
}

.download-card-title {
    font-size: 1rem;
    font-weight: 600;
}

.download-link {
    display: inline-block;
    font-size: 0.8125rem;
    color: var(--color-accent);
    margin-top: var(--space-xs);
    margin-right: var(--space-sm);
    transition: color var(--transition);
}

.download-link:hover {
    color: var(--color-accent-hover);
}

.download-desc {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    margin-top: var(--space-xs);
}

.download-card-actions {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    margin-top: var(--space-md);
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-surface);
    color: var(--color-text-muted);
    border: none;
    transition: background var(--transition), color var(--transition);
}

.download-btn:hover {
    background: var(--color-border);
    color: var(--color-text);
}

.download-btn svg {
    display: block;
}

/* ─── Tabs (chips) ─── */
.tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.tab {
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 0.4rem 1.2rem;
    transition: all var(--transition);
    text-transform: capitalize;
    letter-spacing: 0.02em;
}

.tab:hover {
    color: var(--color-text);
    border-color: var(--color-text);
}

.tab.is-active {
    background: var(--color-text);
    color: var(--color-bg);
    border-color: var(--color-text);
}

.tab-panel {
    display: none;
}

.tab-panel.is-active {
    display: block;
}

/* ─── Members ─── */
.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--space-xl);
}

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

.member-photo img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto var(--space-md);
}

.member-name {
    font-size: 0.875rem;
    font-weight: 400;
}

.member-name-en {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    letter-spacing: 0.04em;
    display: block;
}

.member-role {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    font-weight: 400;
    display: block;
    margin-top: var(--space-xs);
}

.member-bio {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    margin-top: var(--space-sm);
    line-height: 1.6;
}

.member-sns {
    margin-top: var(--space-sm);
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
}

.member-sns-icon {
    color: var(--color-text-muted);
    transition: color var(--transition);
}

.member-sns-icon:hover {
    color: var(--color-text);
}

/* ─── Video Showcase (scroll-expand) ─── */
.video-showcase-section {
    padding: var(--space-3xl) 0;
    overflow: hidden;
}

.video-showcase {
    max-width: 70%;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    transition: max-width 0.1s linear, border-radius 0.1s linear;
    will-change: max-width, border-radius;
}

.video-showcase-inner {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    background: #000;
}

.video-showcase-inner iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-showcase-info {
    padding: var(--space-lg) 0;
    text-align: center;
}

.video-showcase-title {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
}

/* ─── Goods Banner ─── */
.goods-banner {
    display: block;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--transition);
}

.goods-banner:hover {
    transform: translateY(-2px);
}

.goods-banner img {
    width: 100%;
}

.goods-banner-text {
    background: var(--color-surface);
    padding: var(--space-xl);
    text-align: center;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: var(--radius-lg);
}

/* ─── Streaming Grid ─── */
.streaming-section {
    border-top: 1px solid var(--color-border);
}

.streaming-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-lg);
}

.streaming-card {
    display: inline-flex;
    transition: transform var(--transition), opacity var(--transition);
}

.streaming-card:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

/* ─── Buttons ─── */
.btn {
    display: inline-block;
    padding: var(--space-sm) var(--space-xl);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    text-decoration: none;
}

.live-actions {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    margin-top: var(--space-sm);
}

.btn-sm {
    display: inline-block;
    padding: 6px 16px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    border-radius: 9999px;
    transition: background var(--transition), color var(--transition);
    text-decoration: none;
}

.btn-sm:hover {
    background: var(--color-accent);
    color: var(--color-white);
    text-decoration: none;
}

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

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

.btn-secondary {
    background: var(--color-surface);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background: var(--color-accent);
    color: var(--color-white);
    border-color: var(--color-accent);
}

/* ─── Thanks Page ─── */
.thanks-content {
    text-align: center;
    padding: var(--space-2xl) 0;
}

.thanks-content--no-gap {
    padding-top: 0;
}

.thanks-heading {
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-lg);
}

.thanks-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
}

.thanks-content--white p,
.thanks-content--white .thanks-note {
    color: #fff;
    font-size: 1rem;
}

.thanks-note {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.thanks-action {
    margin-top: var(--space-xl);
}

/* ─── Post Navigation ─── */
.post-navigation {
    display: flex;
    justify-content: space-between;
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--color-border);
}

.post-nav-link {
    flex: 1;
}

.post-nav-next {
    text-align: right;
}

.post-nav-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    display: block;
    margin-bottom: var(--space-xs);
}

.post-nav-title {
    font-size: 0.9rem;
    font-weight: 500;
}

/* ─── Pagination ─── */
.pagination {
    margin-top: var(--space-2xl);
    text-align: center;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: var(--space-xs);
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition);
}

.pagination .page-numbers.current {
    background: var(--color-text);
    color: var(--color-bg);
}

.pagination .page-numbers:hover:not(.current) {
    background: var(--color-surface);
}

/* ─── Single Post ─── */
.single-post-thumbnail {
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: var(--space-xl);
}

.single-post-content {
    margin-top: var(--space-lg);
}


/* ─── Special Contents ─── */
.special-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.special-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: #fff;
    overflow: hidden;
}

.special-card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms ease;
}

.special-card:hover {
    color: #fff;
}

.special-card:hover .special-card-img {
    transform: scale(1.05);
}

.special-card-content {
    position: relative;
    z-index: 1;
    padding: var(--space-lg);
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
}

.special-card-label {
    display: block;
    font-family: var(--font-display);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    opacity: 0.8;
    margin-bottom: var(--space-xs);
}

.special-card-title {
    display: block;
    font-family: 'Instrument Serif', serif;
    font-size: 1.25rem;
    line-height: 1.3;
}

/* ─── Footer (thrive: quiet, warm) ─── */
.site-footer {
    border-top: 1px solid var(--color-border);
    padding: 0 0 var(--space-2xl);
    overflow: hidden;
}

.footer-tagline {
    padding: clamp(4rem, 10vw, 8rem) var(--space-lg);
    text-align: center;
}

.footer-tagline p {
    font-family: 'Instrument Serif', serif;
    font-size: 13vw;
    font-weight: 400;
    line-height: 0.95;
    color: var(--color-text);
    margin: 0;
    white-space: nowrap;
}

.footer-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
}

.footer-sns,
.footer-streaming {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
}

.footer-sns a {
    color: var(--color-text-muted);
    transition: color var(--transition);
    display: inline-flex;
    align-items: center;
}

.sns-icon-wordmark {
    display: inline-flex;
    align-items: center;
}

.sns-icon-wordmark svg {
    height: 20px;
    width: auto;
}

.footer-streaming a {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    transition: color var(--transition);
}

.footer-sns a:hover,
.footer-streaming a:hover {
    color: var(--color-accent);
}

.footer-theme-toggle {
    display: none;
}

.footer-nav-mobile {
    display: none;
}

@media (max-width: 768px) {
    .footer-nav-mobile {
        display: block;
        width: 100%;
        margin-left: 20px;
    }

    .footer-nav-list {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .footer-nav-list li a {
        font-family: 'Instrument Serif', serif;
        font-size: 1.5rem;
        font-weight: 400;
        color: #fff;
        text-decoration: none;
        transition: color var(--transition);
    }

    .footer-nav-list li a:hover,
    .footer-nav-list li a:active {
        color: #6B8AFF;
    }

    .footer-theme-toggle {
        display: inline-flex;
        margin-top: 6px;
        padding: 0;
        color: #fff;
    }

    .footer-theme-toggle:hover,
    .footer-theme-toggle:active {
        color: #6B8AFF;
    }
}

.footer-copyright {
    font-size: 0.6875rem;
    color: var(--color-text-muted);
    letter-spacing: 0.04em;
}

/* ─── Contact Form (CF7) ─── */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 select,
.wpcf7 textarea {
    width: 100%;
    padding: var(--space-md) var(--space-md);
    font-family: var(--font-body);
    font-size: 0.9rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-white);
    color: var(--color-text);
    transition: border-color var(--transition);
}

.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

.wpcf7 select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23999' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-md) center;
    padding-right: var(--space-xl);
}

.wpcf7 textarea {
    min-height: 160px;
    resize: vertical;
}

.wpcf7 input[type="submit"] {
    display: inline-block;
    padding: var(--space-md) var(--space-lg);
    background: var(--color-accent);
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: background var(--transition);
}

.wpcf7 input[type="submit"]:hover {
    background: var(--color-accent-hover);
}

.wpcf7 p {
    margin-bottom: var(--space-md);
}

.wpcf7 label {
    font-size: 0.875rem;
    font-weight: 500;
    display: block;
    margin-bottom: var(--space-lg);
}

.wpcf7 label br {
    display: block;
    content: '';
    margin-top: var(--space-sm);
}

.wpcf7 label .required {
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--color-accent);
    background: rgba(0, 39, 255, 0.08);
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 6px;
    vertical-align: middle;
}

/* CF7 Validation */
.wpcf7-not-valid {
    border-color: #d94040 !important;
}

.wpcf7-not-valid-tip {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #fff;
    background: #d94040;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    margin-top: var(--space-xs);
}

.wpcf7 form .wpcf7-response-output {
    font-size: 0.875rem;
    font-weight: 500;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    margin: var(--space-lg) 0 0;
    border: none;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output {
    color: #fff;
    background: #d94040;
}

.wpcf7 form.sent .wpcf7-response-output {
    color: #fff;
    background: #2e7d32;
}

/* ─── Live Card Embed (shortcode / block) ─── */
.live-card-embed-wrap {
    margin: var(--space-lg) 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}

.live-card-embed-wrap .live-item {
    border-bottom: none;
    padding: 24px !important;
    text-decoration: none;
    color: var(--color-text);
}

.live-card-embed-wrap .live-item:hover {
    background: var(--color-white);
}

.live-card-embed-wrap .live-item:hover,
.live-card-embed-wrap .live-item:hover .live-date,
.live-card-embed-wrap .live-item:hover .live-date-year,
.live-card-embed-wrap .live-item:hover .live-date-md,
.live-card-embed-wrap .live-item:hover .live-date-dow,
.live-card-embed-wrap .live-item:hover .live-venue,
.live-card-embed-wrap .live-item:hover .live-organizer,
.live-card-embed-wrap .live-item:hover .live-title {
    color: var(--color-accent);
}

.live-card-embed-wrap .live-info {
    gap: 0;
    line-height: 1.5;
}



/* ─── No Posts ─── */
.no-posts {
    text-align: center;
    color: var(--color-text-muted);
    padding: var(--space-2xl) 0;
}

/* ─── About ─── */
.about-hero-section {
    padding-top: calc(64px + var(--space-xl));
}

.about-hero-image {
    margin-bottom: var(--space-xl);
}

.about-hero-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-lg);
}

.about-content {
    font-size: 0.9375rem;
    line-height: 2;
}

/* ─── Touch Improvements ─── */
@media (pointer: coarse) {
    .live-item {
        padding: var(--space-md) var(--space-sm);
    }

    .streaming-card {
        padding: var(--space-md) var(--space-lg);
    }

    .btn {
        padding: var(--space-md) var(--space-xl);
    }

    .section-more {
        padding: var(--space-sm) var(--space-xs);
    }

    .tab {
        padding: var(--space-md) var(--space-lg);
    }

    .cursor-dot {
        display: none !important;
    }

    .blog-card:hover {
        opacity: 1;
    }

    .blog-card-visual:hover .blog-card-visual-bg img {
        filter: blur(16px) brightness(0.7);
    }
}

/* Touch feedback */
a, button, .btn, .tab, .streaming-card, .live-item {
    -webkit-tap-highlight-color: rgba(94, 120, 85, 0.15);
}

.btn:active {
    transform: scale(0.97);
}

.live-item:active {
    background: var(--color-surface);
}

.streaming-card:active {
    color: var(--color-accent);
}

.section-more:active {
    color: var(--color-accent);
}

.tab:active {
    color: var(--color-text);
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    /* Spacing optimization */
    html {
        font-size: 15px;
    }

    .header-inner {
        padding: 0 24px;
    }

    .container {
        padding: 0 24px;
    }

    .section {
        padding: var(--space-xl) 0;
    }

    .live-card-embed-wrap .live-item {
        padding: 24px !important;
    }

    .live-card-embed-wrap .live-item.has-thumb {
        grid-template-columns: 1fr;
        padding-right: 140px !important;
    }

    .live-card-embed-wrap .live-thumb {
        position: absolute;
        top: 50%;
        right: 24px;
        width: 100px;
        height: 100px;
        border-radius: var(--radius-md);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        overflow: hidden;
        transform: translateY(-50%);
    }

    .live-card-embed-wrap .live-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .page-hero {
        padding: calc(70px + var(--space-xl)) 0 var(--space-lg);
    }

    .page-hero--has-bg {
        padding: calc(64px + var(--space-xl)) 0 calc(var(--space-xl) + 40px);
        min-height: 430px;
        align-items: center;
    }

    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
        z-index: 1002;
        margin-left: auto;
        margin-right: 0;
        flex-shrink: 0;
    }

    .live-item,
    .live-item.has-thumb {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        gap: var(--space-xs) var(--space-sm);
    }

    .live-date {
        grid-column: 1;
        grid-row: 1;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: baseline;
        gap: var(--space-xs);
    }

    .live-date-year {
        width: 100%;
        margin-bottom: 0;
    }

    .live-date-md {
        font-size: 1.25rem;
    }

    .live-date-dow {
        margin-top: 0;
        background: none;
        padding: 0;
    }

    .live-thumb {
        grid-column: 2;
        grid-row: 1;
        width: 56px;
        height: 56px;
        border-radius: var(--radius-sm);
    }

    .live-info {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .live-badge {
        grid-column: 1 / -1;
    }

    .nav-toggle span {
        width: 14px;
        height: 1px;
        background: #fff;
    }

    .nav-toggle span:nth-child(1) { top: 7px; }
    .nav-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
    .nav-toggle span:nth-child(3) { bottom: 7px; }

    .nav-toggle.is-active span:nth-child(1) {
        top: 50%; transform: translateY(-50%) rotate(45deg);
    }
    .nav-toggle.is-active span:nth-child(3) {
        bottom: 50%; transform: translateY(50%) rotate(-45deg);
    }

    .site-header {
        mix-blend-mode: difference;
    }

    #site-nav-desktop,
    .header-inner > .theme-toggle {
        display: none;
    }

    .site-nav--mobile {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--color-bg);
        display: flex;
        padding: var(--space-xl);
        z-index: 1001;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        clip-path: circle(0% at calc(100% - 40px) 32px);
        transition: clip-path 500ms cubic-bezier(0.22, 1, 0.36, 1);
        pointer-events: none;
    }

    .site-nav--mobile.is-open {
        clip-path: circle(150% at calc(100% - 40px) 32px);
        pointer-events: auto;
    }

    .nav-close {
        position: absolute;
        top: var(--space-md);
        right: var(--space-md);
        background: none;
        border: none;
        cursor: pointer;
        color: var(--color-text);
        padding: var(--space-xs);
    }

    .nav-list {
        flex-direction: column;
        gap: var(--space-xs);
        align-items: center;
    }

    .nav-list a {
        font-family: 'Instrument Serif', serif;
        font-size: 2rem;
        font-weight: 400;
        letter-spacing: 0;
        text-transform: capitalize;
        color: var(--color-text);
    }

    .nav-list a::after {
        display: none;
    }

    /* SNS icons inside mobile nav */
    .nav-sns {
        display: flex;
        margin-top: var(--space-xl);
        gap: var(--space-lg);
    }

    .nav-sns-icon {
        color: var(--color-text-muted);
    }

    .nav-sns-icon:hover {
        color: var(--color-accent);
    }

    /* Theme toggle inside mobile nav */
    .theme-toggle {
        margin-left: 0;
        margin-top: var(--space-xl);
        color: #fff;
        padding: 10px 0;
    }

    /* Tab touch improvement */
    .tab {
        font-size: 0.6875rem;
        padding: 0.3rem 0.8rem;
    }

    .live-item {
        grid-template-columns: 1fr;
        gap: var(--space-xs);
    }

    .live-title {
        white-space: normal;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-card-visual {
        aspect-ratio: 16 / 9;
    }

    .blog-card-visual-bg img {
        filter: blur(8px) brightness(0.8);
    }

    .blog-card-info {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        gap: 2px var(--space-sm);
        align-items: start;
    }

    .blog-card-date {
        grid-column: 1;
        grid-row: 1;
    }

    .blog-card-title {
        grid-column: 1;
        grid-row: 2;
    }

    .blog-card-thumb {
        grid-column: 2;
        grid-row: 1 / 3;
        margin-left: 0;
        align-self: start;
    }

    .release-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }

    .special-grid {
        grid-template-columns: 1fr;
    }

    .special-card {
        aspect-ratio: 16 / 9;
    }

    .release-detail-layout {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    .download-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }

    .members-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }

    .post-navigation {
        flex-direction: column;
    }

    .post-nav-next {
        text-align: left;
    }

    .hero-slideshow,
    .hero-image,
    .hero-placeholder {
        height: 100vh;
        height: 100svh;
    }

    .hero-next-live {
        bottom: var(--space-lg);
        left: 24px;
        right: 24px;
        gap: 2px;
    }

    .hero-next-live-title {
        font-size: 1.5rem;
    }

    .hero-next-live-date {
        font-size: 1.25rem;
    }

    .footer-tagline {
        padding-bottom: 0;
        margin-bottom: -6px;
    }

    .footer-tagline p {
        font-size: 11vw;
        word-break: break-word;
    }

    .site-footer {
        border-top: none;
        padding: 0;
    }

    .footer-inner {
        max-width: none;
        padding: 80px 24px;
        align-items: flex-start;
        background-color: #000;
        color: #fff;
        transform-origin: top right;
        transform: rotate(-8deg);
        will-change: transform;
    }

    .footer-sns a {
        color: rgba(255, 255, 255, 0.6);
    }

    .footer-copyright {
        color: rgba(255, 255, 255, 0.4);
    }

    .footer-nav-list li a {
        color: #fff;
    }

    .footer-sns {
        justify-content: flex-start;
        margin-left: 20px;
    }

    .footer-copyright {
        margin-left: 20px;
    }

    /* Video showcase full width on tablet */
    .video-showcase {
        max-width: 95%;
        border-radius: 12px;
    }

    /* Carousel arrows inside on mobile */
    .carousel-arrow--prev {
        left: 8px;
    }

    .carousel-arrow--next {
        right: 8px;
    }

    .carousel-arrow {
        width: 36px;
        height: 36px;
        font-size: 0.875rem;
        background: rgba(255, 255, 255, 0.9);
    }

    /* Carousel cards narrower */
    .release-carousel .release-card {
        flex: 0 0 200px;
    }

    /* Prose width on mobile */
    .prose {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="url"],
    input[type="number"],
    input[type="search"],
    select,
    textarea {
        font-size: 16px !important;
    }

    .section {
        padding: var(--space-lg) 0;
    }

    .page-hero {
        padding: calc(70px + var(--space-lg)) 0 var(--space-md);
    }

    .page-hero--has-bg {
        padding: calc(64px + var(--space-lg)) 0 calc(var(--space-lg) + 40px);
        min-height: 390px;
        align-items: center;
    }

    .hero-slideshow,
    .hero-image,
    .hero-placeholder {
        height: 100vh;
        height: 100svh;
    }

    .hero-next-live-title {
        font-size: 1.5rem;
    }

    .hero-next-live-date {
        font-size: 1.25rem;
    }

    .release-grid,
    .download-grid {
        grid-template-columns: 1fr;
    }

    .members-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .video-showcase {
        max-width: 100%;
        border-radius: 0;
    }

    .release-carousel .release-card {
        flex: 0 0 180px;
    }

    .carousel-arrow {
        display: none;
    }

    .goods-banner-text {
        font-size: 1.125rem;
        padding: var(--space-lg);
    }

    /* Live detail stacking */
    .live-detail {
        grid-template-columns: 1fr;
        gap: var(--space-xs);
    }

    .live-detail dt {
        font-size: 0.6875rem;
        padding-top: var(--space-sm);
    }

    .live-detail dd {
        padding-bottom: var(--space-sm);
        border-bottom: 1px solid var(--color-border);
    }

    .live-detail dd:last-of-type {
        border-bottom: none;
    }

    /* Footer spacing */
    .footer-inner {
        padding: 80px var(--space-sm);
    }
}

/* ─── Page Load Animation ─── */
.site-main {
    opacity: 0;
    transition: opacity var(--anim-duration) var(--anim-easing);
}
.site-main.is-loaded {
    opacity: 1;
}

/* ─── Scroll Reveal ─── */
[data-reveal] {
    opacity: 0;
    transition:
        opacity var(--anim-duration) var(--anim-easing),
        transform var(--anim-duration) var(--anim-easing);
}
[data-reveal="up"] {
    transform: translateY(var(--anim-distance));
}
[data-reveal="fade"] {
    transform: none;
}
[data-reveal="scale"] {
    transform: scale(0.95);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Stagger delays */
[data-delay="1"] { transition-delay: calc(var(--anim-stagger) * 1); }
[data-delay="2"] { transition-delay: calc(var(--anim-stagger) * 2); }
[data-delay="3"] { transition-delay: calc(var(--anim-stagger) * 3); }
[data-delay="4"] { transition-delay: calc(var(--anim-stagger) * 4); }
[data-delay="5"] { transition-delay: calc(var(--anim-stagger) * 5); }


/* ─── Reduced Motion ─── */
@media (prefers-reduced-motion: reduce) {
    .site-main,
    [data-reveal] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    [data-delay] {
        transition-delay: 0ms !important;
    }
}

/* ─── Newsletter (Kit) ─── */
.newsletter-signup {
    border-top: 1px solid var(--color-border);
    padding: var(--space-2xl) var(--space-lg);
}

.newsletter-inner {
    max-width: var(--container-narrow);
    margin: 0 auto;
    text-align: center;
}

.newsletter-heading {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 400;
    line-height: 1.1;
    margin: 0 0 var(--space-sm);
    color: var(--color-text);
}

.newsletter-description {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin: 0 0 var(--space-lg);
    line-height: 1.6;
}

.newsletter-form {
    margin: 0 auto;
    max-width: 480px;
}

.newsletter-field {
    display: flex;
    gap: var(--space-sm);
    align-items: stretch;
}

.newsletter-field input[type="email"] {
    flex: 1 1 auto;
    min-width: 0;
    padding: var(--space-md);
    font-family: var(--font-body);
    font-size: 0.9rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-white);
    color: var(--color-text);
    transition: border-color var(--transition);
}

.newsletter-field input[type="email"]:focus {
    outline: none;
    border-color: var(--color-accent);
}

.newsletter-submit {
    flex: 0 0 auto;
    padding: 0 var(--space-lg);
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-white);
    background: var(--color-text);
    border: 1px solid var(--color-text);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
}

.newsletter-submit:hover:not(:disabled) {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

.newsletter-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.newsletter-message {
    margin: var(--space-md) 0 0;
    min-height: 1.4em;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.newsletter-message.is-success {
    color: var(--color-accent);
}

.newsletter-message.is-error {
    color: var(--color-rose);
}

.newsletter-signup.is-submitted .newsletter-field {
    display: none;
}

@media (max-width: 480px) {
    .newsletter-field {
        flex-direction: column;
    }
    .newsletter-submit {
        padding: var(--space-md);
    }
}

/* CF7 reservation form: opt-in checkbox */
.newsletter-optin-row {
    margin: var(--space-md) 0;
    text-align: left;
}

.newsletter-optin-label {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--color-text-secondary);
    cursor: pointer;
}

.newsletter-optin-label input[type="checkbox"] {
    flex: 0 0 auto;
    margin-top: 0.2em;
    width: 16px;
    height: 16px;
    accent-color: var(--color-accent);
    cursor: pointer;
}
