/* ========================================
   Naomi Gallery - The Largo Inspired Design
   ========================================

   DESIGN SYSTEM GUIDE
   ===================

   ## Color Usage
   - Backgrounds: --color-bg (primary), --color-bg-alt (sections), --color-bg-dark (emphasis)
   - Text: --color-text (body), --color-text-light (secondary info), --color-text-muted (metadata/labels)
   - Accent: --color-accent (headings, active states, CTAs), --color-accent-light (hover states)
   - Border: --color-border (dividers, subtle outlines)
   - Status: --color-status-sold (sold/gifted badges on postscript page)

   ## Typography
   - --font-serif: Headlines (h1-h6), nav links, category filters, artwork links, section links
   - --font-sans: Body text, action buttons (.btn), form controls, metadata
   - Weight 300-400 for most text; 500 only for emphasis (active states, counts)
   - Letter-spacing scale: 0.02em (body) → 0.05em (labels) → 0.1em (nav/titles) → 0.15em (page titles) → 0.2em (uppercase labels)

   ## Spacing Tokens
   - --spacing-xs  (0.5rem /  8px): Tight gaps, small padding
   - --spacing-sm  (1rem   / 16px): Standard inner padding, small gaps
   - --spacing-md  (2rem   / 32px): Section inner padding, standard gaps
   - --spacing-lg  (4rem   / 64px): Large section margins, generous gaps
   - --spacing-2xl (5rem   / 80px): Page title bottom margins, major section breaks
   - --spacing-xl  (8rem   / 128px): Hero/full-page section padding

   ## Buttons
   - Action buttons (.btn): --font-sans, solid bg or outline
   - Navigation/link buttons (.artwork-link, .category-filter__btn, .section-link): --font-serif, elegant style

   ## Transitions
   - Standard: 0.3s ease (links, colors, opacity)
   - Images: 0.5-0.6s ease (scale transforms)
   - Overlays: 0.3-0.4s ease (fade in/out)

   ======================================== */

/* CSS Variables */
:root {
  /* Base colors */
  --color-bg: #faf8f5;
  --color-bg-alt: #f5f3ef;
  --color-bg-dark: #e8e4dd;

  /* Text colors */
  --color-text: #2c2c2c;
  --color-text-light: #6b6b6b;
  --color-text-muted: #999;

  /* Accent colors */
  --color-accent: #1a1a2e;
  --color-accent-light: #3d3d5c;

  /* Border */
  --color-border: #e5e2dc;

  /* Status */
  --color-status-sold: #c00;
  --color-overlay-dark: #0a0a0a;

  /* Fonts */
  --font-serif: "Cormorant Garamond", "Noto Serif JP", serif;
  --font-sans: "Noto Sans JP", "Hiragino Sans", sans-serif;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-2xl: 5rem;
  --spacing-xl: 8rem;

  /* Container */
  --container-max: 1400px;
  --container-narrow: 900px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text);
  background-color: var(--color-bg);
  /* Washi paper texture using SVG noise */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.3;
  color: var(--color-accent);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: 0.02em;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  letter-spacing: 0.02em;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
}

p {
  margin-bottom: 1em;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.7;
}

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

/* Layout */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

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

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-sm) var(--spacing-md);
  max-width: var(--container-max);
  margin: 0 auto;
}

.site-logo a {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--color-accent);
  letter-spacing: 0.05em;
}

.main-nav ul {
  display: flex;
  gap: var(--spacing-md);
  list-style: none;
}

.main-nav a {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-light);
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-accent);
  transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.main-nav a.active {
  color: var(--color-accent);
}

/* Sound Toggle */
.sound-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: var(--spacing-sm);
  color: var(--color-text-muted);
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sound-toggle:hover {
  color: var(--color-text);
}

.sound-toggle .sound-icon {
  width: 22px;
  height: 22px;
}

.sound-toggle .sound-on {
  display: none;
}

.sound-toggle .sound-off {
  display: block;
}

.sound-toggle.playing .sound-on {
  display: block;
}

.sound-toggle.playing .sound-off {
  display: none;
}

/* Language Toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: var(--spacing-md);
}

.lang-toggle__btn {
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  transition: color 0.3s ease;
}

.lang-toggle__btn:hover {
  color: var(--color-text);
}

.lang-toggle__btn.active {
  color: var(--color-accent);
  font-weight: 500;
}

.lang-toggle__sep {
  color: var(--color-border);
  font-size: 0.8rem;
}

/* Language Visibility */
/* Default: English visible, Japanese hidden */
body.lang-en .lang-ja,
body:not(.lang-ja) .lang-ja {
  display: none;
}

body.lang-en .lang-en,
body:not(.lang-ja) .lang-en {
  display: inline;
}

body.lang-en p.lang-ja,
body.lang-en div.lang-ja,
body:not(.lang-ja) p.lang-ja,
body:not(.lang-ja) div.lang-ja {
  display: none;
}

body.lang-en p.lang-en,
body.lang-en div.lang-en,
body:not(.lang-ja) p.lang-en,
body:not(.lang-ja) div.lang-en {
  display: block;
}

/* When Japanese is selected */
body.lang-ja .lang-ja {
  display: inline;
}

body.lang-ja .lang-en {
  display: none;
}

body.lang-ja p.lang-ja,
body.lang-ja div.lang-ja {
  display: block;
}

body.lang-ja p.lang-en,
body.lang-ja div.lang-en {
  display: none;
}

/* Bilingual display for titles and series in Japanese mode */
/* Container for bilingual title/series */
.bilingual-title,
.bilingual-series {
  display: flex;
  flex-direction: column;
  gap: 0.15em;
}

.bilingual-title .lang-ja-primary,
.bilingual-series .lang-ja-primary {
  display: none;
}

.bilingual-title .lang-en-sub,
.bilingual-series .lang-en-sub {
  display: none;
}

/* English mode: show only lang-en (default behavior via lang-ja/lang-en classes) */

/* Japanese mode: show both Japanese (primary) and English (sub) for bilingual elements */
body.lang-ja .bilingual-title .lang-ja-primary,
body.lang-ja .bilingual-series .lang-ja-primary {
  display: inline;
}

body.lang-ja .bilingual-title .lang-en-sub,
body.lang-ja .bilingual-series .lang-en-sub {
  display: block;
  font-size: 0.8em;
  color: var(--color-text-muted);
  font-style: italic;
  margin-top: 0.1em;
}

/* Gallery item overlay - bilingual title styling */
.gallery-item__overlay .bilingual-title .lang-en-sub {
  font-size: 0.75em;
  opacity: 0.85;
}

body.lang-ja .gallery-item__overlay .bilingual-title .lang-en-sub {
  display: block;
  color: rgba(255, 255, 255, 0.8);
}

/* Category filter - bilingual series styling */
.category-filter__btn .bilingual-series {
  display: inline-flex;
  flex-direction: row;
  gap: 0.5em;
  align-items: baseline;
}

body.lang-ja .category-filter__btn .bilingual-series .lang-en-sub {
  display: inline;
  font-size: 0.85em;
}

/* Artwork detail page - bilingual title */
.artwork-info__title .bilingual-title {
  gap: 0.25em;
}

body.lang-ja .artwork-info__title .bilingual-title .lang-en-sub {
  font-size: 0.6em;
  display: block;
}

/* Modal - bilingual title */
.artwork-modal__title .bilingual-title .lang-en-sub {
  font-size: 0.75em;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 44px;
  height: 44px;
  justify-content: center;
  align-items: center;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background-color: var(--color-text);
  transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
  transform-origin: center;
}

@media (max-width: 768px) {
  .header-inner {
    padding: var(--spacing-sm);
  }

  .site-logo {
    order: 0;
    flex: 0 0 auto;
  }

  .site-logo a {
    font-size: 1.25rem;
  }

  .lang-toggle {
    order: 1;
    margin-left: auto;
    margin-right: 0;
    z-index: 101;
    position: relative;
  }

  .sound-toggle {
    order: 2;
    margin-left: var(--spacing-sm);
    margin-right: var(--spacing-sm);
    z-index: 101;
    position: relative;
  }

  .menu-toggle {
    display: flex;
    order: 3;
    z-index: 101;
    position: relative;
  }

  .main-nav {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(250, 248, 245, 0.98) !important;
    display: none;
    z-index: 99;
    padding-top: 0;
    overflow-y: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .main-nav.active {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 1;
  }

  .main-nav ul {
    flex-direction: column;
    padding: var(--spacing-xl);
    gap: 0;
    text-align: center;
    width: 100%;
    max-width: 280px;
  }

  .main-nav li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  .main-nav li:first-child {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
  }

  .main-nav a {
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    display: block;
    padding: 20px 0;
    color: var(--color-text);
    transition: color 0.2s ease, background-color 0.2s ease;
  }

  .main-nav a:hover,
  .main-nav a.active {
    color: var(--color-accent);
    background-color: rgba(0, 0, 0, 0.02);
  }

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

  /* Hamburger animation when menu is open */
  .menu-toggle.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
  }
}

/* Main content */
main {
  padding-top: 80px;
}

/* Hero section (legacy) */
.hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--spacing-xl) var(--spacing-md);
}

.hero__title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 300;
  margin-bottom: var(--spacing-sm);
}

.hero__subtitle {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--color-text-light);
}

/* ========================================
   Fullscreen Hero (Top Page A案)
   ======================================== */

.hero-fullscreen {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--color-accent);
  margin-top: -80px; /* Offset header height */
  padding-top: 80px;
  overflow: hidden;
}

/* Hero slideshow container */
.hero-fullscreen__slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Desktop slideshow - show on desktop, hide on mobile */
.hero-fullscreen__slideshow--desktop {
  display: block;
}

.hero-fullscreen__slideshow--mobile {
  display: none;
}

@media (max-width: 768px) {
  .hero-fullscreen__slideshow--desktop {
    display: none;
  }

  .hero-fullscreen__slideshow--mobile {
    display: block;
  }
}

/* Individual slide */
.hero-fullscreen__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

/* Hide slides until JS is ready (prevents flash on mobile) */
.hero-fullscreen__slideshow:not(.animation-ready) .hero-fullscreen__slide.active {
  opacity: 0;
}

/* Show active slide after animation setup is complete */
.hero-fullscreen__slideshow.animation-ready .hero-fullscreen__slide.active {
  opacity: 1;
}

/* Hero Background Entrance Animation - Fade + Scale (first slide only) */
.hero-fullscreen__slide.entrance-animate {
  transform: scale(1.05);
  transition: none; /* Disable transition to let animation work cleanly */
  animation: heroBgFadeScale 1.5s ease-out forwards;
}

@keyframes heroBgFadeScale {
  from {
    opacity: 0;
    transform: scale(1.05);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hero-fullscreen__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(26, 26, 46, 0.4) 0%,
    rgba(26, 26, 46, 0.6) 50%,
    rgba(26, 26, 46, 0.75) 100%
  );
  pointer-events: none;
}

.hero-fullscreen__content {
  position: relative;
  z-index: 2;
  padding: var(--spacing-lg);
  max-width: 800px;
}

.hero-fullscreen__title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 8vw, 4rem);
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.08em;
  color: #fff;
  margin-bottom: var(--spacing-md);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
}

.hero-fullscreen__subtitle {
  font-family: var(--font-serif);
  font-size: clamp(0.75rem, 3.5vw, 1.35rem);
  font-weight: 300;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
  white-space: nowrap;
}

.hero-fullscreen__subtitle br {
  display: block;
  content: "";
}

/* Hero Text Animation - Blur Fade */
.hero-fullscreen__title,
.hero-fullscreen__subtitle {
  opacity: 0;
  filter: blur(20px);
  transform: scale(1.1);
}

.hero-fullscreen__title.animate {
  animation: heroBlurFade 1.2s ease-out forwards; /* No delay - synced with BG */
}

.hero-fullscreen__subtitle.animate {
  animation: heroBlurFade 1.2s ease-out 0.4s forwards;
}

@keyframes heroBlurFade {
  to {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
  }
}

/* Scroll indicator */
.hero-fullscreen__scroll {
  position: absolute;
  bottom: var(--spacing-lg);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-fullscreen__scroll-arrow {
  width: 24px;
  height: 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  transform: rotate(45deg);
  animation: scrollArrow 2s ease-in-out infinite;
}

@keyframes scrollArrow {
  0%, 100% {
    opacity: 0.4;
    margin-top: 0;
  }
  50% {
    opacity: 1;
    margin-top: 12px;
  }
}

/* Featured Works section */
.featured-works {
  background: var(--color-bg);
  padding-top: var(--spacing-xl);
}

/* View All Button with arrow */
.btn--view-all {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  font-size: 1rem;
  letter-spacing: 0.05em;
}

.btn--view-all .btn__arrow {
  transition: transform 0.3s ease;
}

.btn--view-all:hover .btn__arrow {
  transform: translateX(4px);
}

/* Mobile adjustments for fullscreen hero */
@media (max-width: 768px) {
  .hero-fullscreen {
    min-height: 100svh; /* Use small viewport height for mobile */
  }

  .hero-fullscreen__title {
    font-size: clamp(1.75rem, 9vw, 3.5rem);
  }

  .hero-fullscreen__subtitle {
    font-size: 0.85rem;
    padding: 0 var(--spacing-sm);
  }

  .hero-fullscreen__scroll {
    bottom: var(--spacing-md);
    font-size: 0.65rem;
  }

  .hero-fullscreen__scroll-line {
    height: 30px;
  }

  .btn--view-all {
    padding: 0.875rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* Section */
.section {
  padding: var(--spacing-xl) 0;
}

@media (max-width: 768px) {
  .section {
    padding: var(--spacing-md) 0;
  }
}

/* Shared page title style — used by works, profile, contact, sns pages */
.page-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-align: center;
  margin-bottom: var(--spacing-2xl);
  color: var(--color-text);
}

@media (max-width: 768px) {
  .page-title {
    font-size: 2rem;
    margin-bottom: var(--spacing-lg);
  }
}

@media (max-width: 480px) {
  .page-title {
    font-size: 1.75rem;
    letter-spacing: 0.1em;
    margin-bottom: var(--spacing-md);
  }
}

.section__header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.section__header h1,
.section__header h2 {
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section__label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-xs);
}

/* Section Link (View All) */
.section-link-row {
  text-align: right;
  margin-top: var(--spacing-lg);
  padding-right: var(--spacing-sm);
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-style: italic;
  font-weight: 400;
  color: var(--color-text-light);
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
}

.section-link:hover {
  color: var(--color-accent);
  opacity: 1;
}

.section-link__arrow {
  font-style: normal;
  font-size: 1.1em;
  transition: transform 0.3s ease;
}

.section-link:hover .section-link__arrow {
  transform: translateX(4px);
}

/* Gallery Grid */
/* Category Filter */
.category-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
}

.category-filter__btn {
  padding: 0.5rem 1.5rem;
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--color-text-light);
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.category-filter__btn:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.category-filter__btn.active {
  color: var(--color-bg);
  background-color: var(--color-accent);
  border-color: var(--color-accent);
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--spacing-md);
}

@media (max-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
  }
}

.gallery-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
  background-color: var(--color-bg-alt);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.gallery-item.hidden {
  display: none;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.6s ease;
}

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

.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 26, 46, 0.8) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: var(--spacing-md);
}

.gallery-item:hover .gallery-item__overlay {
  opacity: 1;
}

.gallery-item__title {
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1.25rem;
}

.gallery-item__year {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

/* Artwork detail */
.artwork-detail {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(280px, 2fr);
  gap: var(--spacing-xl);
  padding: var(--spacing-lg) 0;
  align-items: start;
}

@media (max-width: 900px) {
  .artwork-detail {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  /* Reduce section padding on artwork detail page */
  .artwork-detail {
    padding: var(--spacing-sm) 0;
    gap: var(--spacing-md);
  }

  /* Remove aspect-ratio constraint and let image determine height */
  .artwork-images__main {
    aspect-ratio: unset;
    background-color: transparent;
  }

  .artwork-images__main img {
    width: 100%;
    height: auto;
    max-height: 50vh;
    object-fit: contain;
  }

  .artwork-images {
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
  }

  .artwork-images__thumbs {
    display: flex;
    flex-wrap: nowrap;
    gap: var(--spacing-xs);
    width: 100%;
    max-width: 100%;
    overflow-x: scroll;
    overflow-y: hidden;
    padding: 0 var(--spacing-sm) var(--spacing-sm);
    -webkit-overflow-scrolling: touch;
  }

  .artwork-images__thumb {
    width: 60px;
    min-width: 60px;
    height: 60px;
    flex: 0 0 60px;
  }

  .artwork-info {
    padding: 0;
  }

  .artwork-info__title {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  .artwork-info__specs {
    font-size: 0.85rem;
    gap: var(--spacing-xs) var(--spacing-sm);
  }

  .artwork-info__description {
    font-size: 0.9rem;
  }
}

.artwork-images {
  position: relative;
  width: 100%;
  min-width: 0; /* Allow grid item to shrink */
}

.artwork-images__main {
  background-color: var(--color-bg-alt);
  max-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.artwork-images__main img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
}

.artwork-images__thumbs {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--spacing-xs);
  margin-top: var(--spacing-sm);
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: var(--spacing-xs);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

/* Hide scrollbar on WebKit browsers but keep functionality */
.artwork-images__thumbs::-webkit-scrollbar {
  height: 4px;
}

.artwork-images__thumbs::-webkit-scrollbar-track {
  background: var(--color-bg-alt);
}

.artwork-images__thumbs::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 2px;
}

.artwork-images__thumb {
  width: 80px;
  min-width: 80px;
  height: 80px;
  flex-shrink: 0;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.artwork-images__thumb.active,
.artwork-images__thumb:hover {
  opacity: 1;
}

.artwork-images__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.artwork-info {
  padding: var(--spacing-md) 0;
}

.artwork-info__title {
  margin-bottom: var(--spacing-xs);
}

.artwork-info__meta {
  color: var(--color-text-light);
  font-size: 0.9rem;
  margin-bottom: var(--spacing-md);
}

.artwork-info__description {
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--color-border);
}

.artwork-info__specs {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--spacing-xs) var(--spacing-md);
  font-size: 0.9rem;
}

.artwork-info__specs dt {
  color: var(--color-text-muted);
}

.artwork-info__specs dd {
  color: var(--color-text);
}

/* Profile page */
.profile-hero {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: var(--spacing-lg);
  padding: var(--spacing-lg) 0;
  align-items: start;
}

@media (max-width: 900px) {
  .profile-hero {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
}

.profile-image {
  aspect-ratio: 3/4;
  overflow: hidden;
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 900px) {
  .profile-image {
    max-width: 280px;
  }
}

.profile-content h2 {
  margin-bottom: var(--spacing-md);
}

.profile-name {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.profile-name__ja {
  font-size: 2.5rem;
  font-weight: 400;
  letter-spacing: 0.15em;
}

.profile-name__en {
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  color: var(--color-text-light);
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .profile-name__ja {
    font-size: 1.8rem;
  }
  .profile-name__en {
    font-size: 0.85rem;
  }
}

.profile-bio {
  font-size: 1rem;
  line-height: 2;
  color: var(--color-text);
}

/* CV Section */
.cv-section {
  padding: var(--spacing-lg) 0;
}

.cv-category {
  margin-bottom: var(--spacing-lg);
}

.cv-category__title {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-xs);
  border-bottom: 1px solid var(--color-border);
}

.cv-list {
  list-style: none;
}

.cv-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--spacing-md);
  padding: var(--spacing-sm) 0;
}

.cv-item__year {
  font-family: var(--font-serif);
  color: var(--color-text-light);
}

.cv-item__title {
  font-weight: 500;
}

.cv-item__venue {
  color: var(--color-text-light);
  font-size: 0.9rem;
}

/* Footer */
.site-footer {
  background-color: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding: var(--spacing-lg) 0;
  margin-top: var(--spacing-xl);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.footer-nav ul {
  display: flex;
  gap: var(--spacing-md);
  list-style: none;
}

.footer-nav a {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-light);
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Footer mobile */
@media (max-width: 768px) {
  .site-footer {
    padding: var(--spacing-lg) 0;
  }

  .footer-inner {
    flex-direction: column;
    gap: var(--spacing-lg);
    text-align: center;
  }

  .footer-nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-sm) var(--spacing-lg);
    row-gap: var(--spacing-md);
  }

  .footer-nav a {
    font-size: 0.85rem;
    padding: 8px 4px;
  }

  .footer-copy {
    font-size: 0.75rem;
    margin-top: var(--spacing-sm);
  }

  .footer-music,
  .footer-copyright {
    display: block;
  }

  .footer-sep {
    display: none;
  }
}

@media (max-width: 480px) {
  .footer-nav ul {
    flex-direction: column;
    gap: var(--spacing-sm);
  }

  .footer-nav a {
    font-size: 0.9rem;
    padding: 10px 0;
    display: block;
  }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background-color: rgba(0, 0, 0, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox__close {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
  font-size: 2rem;
}

.lightbox__image {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.3);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: #fff;
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.lightbox__nav:hover {
  background: rgba(0, 0, 0, 0.6);
}

.lightbox__nav--prev {
  left: var(--spacing-sm);
}

.lightbox__nav--next {
  right: var(--spacing-sm);
}

/* Mobile: move nav buttons to bottom */
@media (max-width: 768px) {
  .lightbox__nav {
    top: auto;
    bottom: var(--spacing-lg);
    transform: none;
    background: rgba(255, 255, 255, 0.2);
  }

  .lightbox__nav--prev {
    left: var(--spacing-lg);
  }

  .lightbox__nav--next {
    right: var(--spacing-lg);
  }
}

/* Artwork Modal */
.artwork-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background-color: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md);
}

.artwork-modal.active {
  display: flex;
}

.artwork-modal__content {
  background-color: var(--color-bg);
  max-width: 1000px;
  max-height: 90vh;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  position: relative;
}

@media (max-width: 768px) {
  .artwork-modal__content {
    grid-template-columns: 1fr;
    max-height: 95vh;
    overflow-y: auto;
  }
}

.artwork-modal__close {
  position: absolute;
  top: var(--spacing-sm);
  right: var(--spacing-sm);
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  cursor: pointer;
  color: var(--color-text);
  font-size: 1.5rem;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.artwork-modal__close:hover {
  background: #fff;
}

.artwork-modal__image {
  background-color: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  position: relative;
  cursor: pointer;
}

.artwork-modal__image img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

@media (max-width: 768px) {
  .artwork-modal__image img {
    max-height: 50vh;
  }

  .artwork-modal__info {
    padding: var(--spacing-md);
  }
}

.artwork-modal__info {
  padding: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.artwork-modal__title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: var(--spacing-md);
  color: var(--color-text);
}

.artwork-modal__year {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--color-text-light);
  margin-bottom: var(--spacing-sm);
}

.artwork-modal__size {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-xs);
}

.artwork-modal__material {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-md);
}

.artwork-modal__caption {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--color-text);
  margin-top: var(--spacing-sm);
}

.artwork-modal__detail-link {
  margin-top: var(--spacing-lg);
}

.artwork-modal__image-hint {
  position: absolute;
  bottom: var(--spacing-sm);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.75rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.artwork-modal__image:hover .artwork-modal__image-hint {
  opacity: 1;
}

/* Button styles */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--color-accent);
  color: white;
  border: 2px solid var(--color-accent);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn:hover {
  background: var(--color-accent-light);
  border-color: var(--color-accent-light);
  opacity: 1;
}

.btn--small {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.btn--outline {
  background: transparent;
  color: var(--color-accent);
}

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

/* Minimal text links */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  color: var(--color-text-muted);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: lowercase;
  text-decoration: none;
  transition: color 0.3s ease, letter-spacing 0.3s ease;
}

.text-link:hover {
  color: var(--color-text);
  letter-spacing: 0.2em;
  opacity: 1;
}

.text-link__arrow {
  display: inline-block;
  transition: transform 0.3s ease;
  font-size: 0.9em;
}

.text-link:hover .text-link__arrow {
  transform: translateX(3px);
}

.text-link--back:hover .text-link__arrow {
  transform: translateX(-3px);
}

/* Artwork images hint on detail page */
.artwork-images__main {
  position: relative;
  cursor: pointer;
}

.artwork-images__hint {
  position: absolute;
  bottom: var(--spacing-sm);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.75rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.artwork-images__main:hover .artwork-images__hint {
  opacity: 1;
}

/* Utilities */
.text-center {
  text-align: center;
}

.mt-lg {
  margin-top: var(--spacing-lg);
}

.mb-lg {
  margin-bottom: var(--spacing-lg);
}

/* Fade in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

.fade-in-delay-1 { animation-delay: 0.1s; }
.fade-in-delay-2 { animation-delay: 0.2s; }
.fade-in-delay-3 { animation-delay: 0.3s; }

/* ========================================
   Artwork Links
   ======================================== */
.artwork-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: var(--spacing-md);
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--color-border);
}

.artwork-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: transparent;
  border: 1px solid var(--color-border);
  font-family: var(--font-serif);
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  color: var(--color-text);
  transition: all 0.3s ease;
}

.artwork-link:hover {
  background: var(--color-accent);
  color: white;
  border-color: var(--color-accent);
  opacity: 1;
}

.artwork-link__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
}

.artwork-link__icon svg {
  width: 16px;
  height: 16px;
}

.artwork-link__label {
  font-weight: 400;
}

/* ========================================
   Series Accordion Styles
   ======================================== */

/* All Works Button */
.all-works-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 1rem 2rem;
  margin-bottom: var(--spacing-md);
  background: transparent;
  border: 1px solid var(--color-border);
  font-family: var(--font-serif);
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--color-text);
  cursor: pointer;
  transition: all 0.3s ease;
}

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

.all-works-btn.active {
  background: var(--color-accent);
  color: white;
  border-color: var(--color-accent);
}

.all-works-btn__count {
  font-size: 0.875rem;
  opacity: 0.7;
}

/* Series List */
.series-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

/* Series Accordion Container */
.series-accordion {
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  transition: box-shadow 0.3s ease;
}

.series-accordion:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.series-accordion.expanded {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Series Banner (Button) */
.series-banner {
  display: flex;
  align-items: stretch;
  width: 100%;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.3s ease;
}

.series-banner:hover {
  background: var(--color-bg-alt);
}

.series-banner__image {
  width: 200px;
  aspect-ratio: 4 / 3;
  flex-shrink: 0;
  background: var(--color-bg-dark);
  overflow: hidden;
}

.series-banner__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

.series-banner:hover .series-banner__image img {
  transform: scale(1.05);
}

.series-banner__content {
  flex: 1;
  padding: var(--spacing-md);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
}

.series-banner__title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-accent);
  margin: 0;
}

.series-banner__title-main {
  display: block;
}

.series-banner__title-sub {
  display: block;
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--color-text-light);
  margin-top: 0.25rem;
  font-family: var(--font-serif);
  font-style: italic;
}

.series-banner__description {
  font-size: 0.875rem;
  color: var(--color-text-light);
  line-height: 1.8;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.series-banner__count {
  font-family: var(--font-serif);
  font-size: 0.875rem;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
}

.series-banner__arrow {
  display: flex;
  align-items: center;
  padding: 0 var(--spacing-md);
  color: var(--color-text-muted);
  transition: transform 0.3s ease;
}

.series-accordion.expanded .series-banner__arrow {
  transform: rotate(180deg);
}

/* Series Accordion Content */
.series-accordion__content {
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.series-accordion__content[hidden] {
  display: block;
  max-height: 0;
  visibility: hidden;
}

.series-accordion__content:not([hidden]) {
  max-height: none;
  visibility: visible;
}

.series-accordion__content .gallery-grid {
  padding: var(--spacing-md);
  padding-top: 0;
  border-top: 1px solid var(--color-border);
}

/* All Works Section */
.all-works-section {
  margin-top: var(--spacing-md);
}

.all-works-section[hidden] {
  display: none;
}

/* Responsive */
@media (max-width: 768px) {
  .series-accordion {
    position: relative;
  }

  .series-banner {
    flex-direction: column;
    padding-bottom: var(--spacing-sm);
  }

  .series-banner__image {
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .series-banner__content {
    padding: var(--spacing-sm);
    padding-right: 2.5rem;
  }

  .series-banner__title {
    font-size: 1.125rem;
  }

  .series-banner__title-sub {
    font-size: 0.75rem;
  }

  .series-banner__description {
    font-size: 0.8rem;
    -webkit-line-clamp: 2;
  }

  .series-banner__count {
    font-size: 0.75rem;
  }

  .series-banner__arrow {
    position: absolute;
    right: var(--spacing-sm);
    bottom: var(--spacing-sm);
    top: auto;
    transform: none;
    padding: 0;
  }

  .series-accordion.expanded .series-banner__arrow {
    transform: rotate(180deg);
  }

  .all-works-btn {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }

  .series-accordion__content .gallery-grid {
    padding: var(--spacing-sm);
  }
}

/* ========================================
   Filter Bar Styles
   ======================================== */

.filter-bar {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.filter-bar__row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 140px;
  flex: 1;
}

.filter-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.filter-select {
  padding: 0.5rem 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: border-color 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b6b6b' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2rem;
}

.filter-select:hover,
.filter-select:focus {
  border-color: var(--color-accent);
  outline: none;
}

.filter-bar__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--spacing-sm);
  border-top: 1px solid var(--color-border);
}

.filter-reset {
  padding: 0.5rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--color-text-light);
  background: transparent;
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.filter-count {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.filter-count__num {
  font-weight: 500;
  color: var(--color-accent);
}

/* Filter animation for gallery items */
.gallery-item.filter-hidden {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* No results message */
.no-results {
  text-align: center;
  padding: var(--spacing-lg);
  color: var(--color-text-muted);
  font-family: var(--font-serif);
  font-size: 1.1rem;
}

.no-results[hidden] {
  display: none;
}

/* Filter Bar Mobile */
@media (max-width: 768px) {
  .filter-bar {
    padding: var(--spacing-sm);
  }

  .filter-bar__row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xs);
  }

  .filter-group {
    min-width: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
  }

  .filter-label {
    min-width: auto;
    flex-shrink: 0;
    font-size: 0.65rem;
  }

  .filter-select {
    width: 100%;
    padding: 0.4rem 0.5rem;
    font-size: 0.75rem;
    padding-right: 1.5rem;
    background-position: right 0.5rem center;
  }

  .filter-bar__actions {
    padding-top: var(--spacing-xs);
    margin-top: var(--spacing-xs);
  }

  .filter-reset {
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
  }

  .filter-count {
    font-size: 0.8rem;
  }
}

/* Filter Bar Very Small Mobile */
@media (max-width: 400px) {
  .filter-bar__row {
    grid-template-columns: 1fr;
  }

  .filter-group {
    flex-direction: row;
    align-items: center;
    gap: var(--spacing-xs);
  }

  .filter-label {
    min-width: 60px;
    flex-shrink: 0;
  }

  .filter-select {
    flex: 1;
  }
}

/* ========================================
   Process Page (制作風景)
   ======================================== */

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--spacing-lg);
}

.process-item {
  background: var(--color-bg-alt);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.process-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.process-item__thumbnail {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--color-border);
  overflow: hidden;
}

.process-item__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.process-item__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-border) 0%, var(--color-bg-alt) 100%);
}

.process-item__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: background 0.2s ease, transform 0.2s ease;
}

.process-item:hover .process-item__play {
  background: rgba(0, 0, 0, 0.85);
  transform: translate(-50%, -50%) scale(1.1);
}

.process-item__play svg {
  margin-left: 4px;
}

.process-item__info {
  padding: var(--spacing-md);
}

.process-item__title {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  margin: 0;
  color: var(--color-text);
}

.process-item__description {
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin: var(--spacing-xs) 0 0;
  line-height: 1.6;
}

.process-empty {
  text-align: center;
  padding: var(--spacing-xl) var(--spacing-md);
  color: var(--color-text-light);
}

/* Video Modal */
.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-modal[hidden] {
  display: none;
}

.video-modal__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
}

.video-modal__content {
  position: relative;
  width: 90%;
  max-width: 960px;
  z-index: 1;
}

.video-modal__close {
  position: absolute;
  top: -40px;
  right: 0;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.video-modal__close:hover {
  opacity: 1;
}

.video-modal__player {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  background: black;
  border-radius: 4px;
}

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

/* Process Page Mobile */
@media (max-width: 640px) {
  .process-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .process-item__play {
    width: 48px;
    height: 48px;
  }

  .process-item__play svg {
    width: 32px;
    height: 32px;
  }

  .video-modal__content {
    width: 95%;
  }

  .video-modal__close {
    top: -36px;
    right: -4px;
  }
}

/* ========================================
   Archive Page
   ======================================== */

.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--spacing-lg);
}

.archive-item {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.archive-item:hover {
  transform: translateY(-4px);
}

.archive-item__thumbnail {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--color-bg-alt);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.archive-item__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.archive-item__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
}

.archive-item__badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  border-radius: 3px;
}

.archive-item__info {
  padding: var(--spacing-sm) 0;
}

.archive-item__type {
  display: block;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.archive-item__title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--color-accent);
  margin-bottom: 4px;
}

.archive-item__year {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-right: var(--spacing-xs);
}

.archive-item__description {
  font-size: 0.85rem;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-top: var(--spacing-xs);
}

.archive-item__pages {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.archive-empty {
  text-align: center;
  padding: var(--spacing-xl) 0;
  color: var(--color-text-muted);
}

/* PDF Viewer Modal */
.pdf-viewer-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pdf-viewer-modal[hidden] {
  display: none;
}

.pdf-viewer-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
}

.pdf-viewer-modal__content {
  position: relative;
  width: 95%;
  max-width: 1000px;
  max-height: 90vh;
  background: var(--color-bg);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 1;
}

.pdf-viewer-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
}

.pdf-viewer-modal__title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--color-accent);
}

.pdf-viewer-modal__close {
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  color: var(--color-text);
  font-size: 1.75rem;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.pdf-viewer-modal__close:hover {
  opacity: 1;
}

.pdf-viewer-modal__toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-xs) var(--spacing-md);
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
}

.pdf-toolbar__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  color: var(--color-text);
  cursor: pointer;
  transition: all 0.2s ease;
}

.pdf-toolbar__btn:hover:not(:disabled) {
  background: var(--color-bg-dark);
}

.pdf-toolbar__btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.pdf-toolbar__page {
  font-size: 0.9rem;
  color: var(--color-text-light);
  min-width: 80px;
  text-align: center;
}

.pdf-toolbar__sep {
  width: 1px;
  height: 24px;
  background: var(--color-border);
  margin: 0 var(--spacing-xs);
}

.pdf-toolbar__zoom {
  font-size: 0.85rem;
  color: var(--color-text-light);
  min-width: 50px;
  text-align: center;
}

.pdf-viewer-modal__viewer {
  flex: 1;
  overflow: auto;
  display: flex;
  justify-content: center;
  padding: var(--spacing-md);
  background: #525659;
  -webkit-user-select: none;
  user-select: none;
}

.pdf-viewer-modal__viewer canvas {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  height: auto;
}

/* Archive Page Mobile */
@media (max-width: 640px) {
  .archive-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
  }

  .archive-item__thumbnail {
    aspect-ratio: 3 / 4;
  }

  .archive-item__title {
    font-size: 0.95rem;
  }

  .pdf-viewer-modal__content {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    border-radius: 0;
  }

  .pdf-viewer-modal__toolbar {
    flex-wrap: wrap;
    gap: var(--spacing-xs);
  }

  .pdf-toolbar__sep {
    display: none;
  }
}

/* ========================================
   Home Page Sections (Series, Profile)
   ======================================== */

.home-section {
  padding: var(--spacing-2xl) 5%;
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-md);
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.section-title {
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0;
}

.view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.view-all-link:hover {
  color: var(--color-text);
}

.view-all-link svg {
  transition: transform 0.3s ease;
}

.view-all-link:hover svg {
  transform: translateX(4px);
}

/* Series Carousel */
.series-section {
  background: var(--color-bg-alt);
}

.series-carousel {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 16px;
  margin: 0 -5%;
  padding-left: 5%;
  padding-right: 5%;
}

.series-carousel::-webkit-scrollbar {
  height: 4px;
}

.series-carousel::-webkit-scrollbar-track {
  background: transparent;
}

.series-carousel::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 2px;
}

.series-carousel {
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
}

.series-carousel.dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.series-carousel.dragging .series-card {
  pointer-events: none;
}

.series-card {
  flex: 0 0 280px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease;
}

.series-card:hover {
  transform: translateY(-4px);
}

.series-card__image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 4px;
  background: var(--color-bg-dark);
  margin-bottom: 12px;
}

.series-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.series-card__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-bg-dark) 0%, var(--color-bg-alt) 100%);
}

.series-card__info {
  text-align: center;
}

.series-card__name {
  font-size: 1rem;
  font-weight: 400;
  margin: 0 0 4px;
  letter-spacing: 0.02em;
}

.series-card__count {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* Profile Section */
.profile-section {
  background: var(--color-bg);
}

.profile-excerpt {
  max-width: 700px;
  margin: 0 auto;
  text-align: left;
  line-height: 1.8;
  font-size: 1rem;
  color: var(--color-text-light);
}

.profile-excerpt p {
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .home-section {
    padding: var(--spacing-lg) 5%;
  }

  .section-header-row {
    margin-bottom: 24px;
  }

  .section-title {
    font-size: 1.25rem;
  }

  .section__header h1,
  .section__header h2 {
    font-size: 1.25rem;
  }

  .series-card {
    flex: 0 0 220px;
  }

  .series-carousel {
    gap: 16px;
  }

  .profile-excerpt {
    font-size: 0.95rem;
    line-height: 1.8;
  }
}

@media (max-width: 480px) {
  .home-section {
    padding: var(--spacing-md) 5%;
  }

  .section-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-sm);
  }

  .series-card {
    flex: 0 0 180px;
  }
}

/* ===================================
   Contact Page Styles
   =================================== */
.contact-page {
  padding: 140px 5% 120px;
  min-height: 70vh;
}

.contact-container {
  max-width: 600px;
  margin: 0 auto;
}

.contact-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.contact-block {
  /* Clean block styling */
}

.contact-list {
  margin: 0;
  padding: 0;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 0;
  border-bottom: 1px solid var(--color-border);
}

.contact-item:first-child {
  padding-top: 0;
}

.contact-item dt {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.contact-item dd {
  margin: 0;
}

.contact-item dd a {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: opacity 0.3s ease;
}

.contact-item dd a:hover {
  opacity: 0.7;
}

.contact-heading {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0 0 16px;
}

.contact-gallery-item a,
.contact-shop-item a {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: opacity 0.3s ease;
}

.contact-gallery-item a:hover,
.contact-shop-item a:hover {
  opacity: 0.7;
}

/* Contact Page Responsive */
@media (max-width: 768px) {
  .contact-page {
    padding: 120px 8% 100px;
  }

  .contact-content {
    gap: var(--spacing-md);
  }

  .contact-item {
    padding: 20px 0;
  }
}

@media (max-width: 480px) {
  .contact-page {
    padding: 100px 6% 80px;
  }

  .contact-item dd a,
  .contact-gallery-item a,
  .contact-shop-item a {
    font-size: 1.05rem;
  }
}

/* ===================================
   SNS Page Styles
   =================================== */
.sns-page {
  padding: 140px 5% 120px;
  min-height: 70vh;
}

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

.sns-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.sns-section {
  /* Section wrapper */
}

.sns-section__title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0 0 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
}

/* Instagram Widget Container */
.instagram-widget {
  width: 100%;
}

/* LightWidget iframe */
.instagram-widget iframe {
  width: 100% !important;
  border: none !important;
  height: 800px;
}

/* Fallback when widget not configured */
.instagram-fallback {
  text-align: center;
  padding: var(--spacing-lg) var(--spacing-sm);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
}

.instagram-fallback__text {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

/* Instagram link button inherits .btn from base definition */
.btn--outline svg {
  transition: stroke 0.3s ease;
}

.btn--outline:hover svg {
  stroke: white;
}

/* SNS Page Responsive */
@media (max-width: 768px) {
  .sns-page {
    padding: 120px 8% 100px;
  }

  .sns-content {
    gap: var(--spacing-md);
  }

  .instagram-fallback {
    padding: 48px 20px;
  }

  .instagram-widget iframe {
    height: 1750px;
  }
}

@media (max-width: 480px) {
  .sns-page {
    padding: 100px 6% 80px;
  }

  .sns-section__title {
    font-size: 1rem;
  }

  .instagram-fallback {
    padding: 40px 16px;
  }

  .instagram-fallback__text {
    font-size: 1rem;
  }

  .instagram-widget {
    margin: 0;
    width: 100%;
  }

  .instagram-widget iframe {
    height: 1500px;
  }

  .btn {
    padding: 10px 24px;
    font-size: 0.9rem;
  }
}

/* ========================================
   Postscript Page Styles
   ======================================== */

.ps-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.section__title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  margin-bottom: 24px;
}

.ps-description {
  font-size: 1rem;
  color: var(--color-text-light);
  max-width: 800px;
  margin: 0 auto 16px;
  line-height: 1.8;
  text-align: left;
  white-space: pre-line;
}

.ps-count {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* Exhibition Carousel Section */
.ps-exhibition {
  margin-bottom: var(--spacing-2xl);
}

.ps-exhibition__main {
  width: 100%;
  max-width: 720px;
  margin: 0 auto 20px;
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
  background: var(--color-bg-alt);
  border-radius: 4px;
}

.ps-exhibition__main img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
  cursor: pointer;
}

.ps-exhibition__main img.active {
  opacity: 1;
}

.ps-exhibition__thumbs-wrapper {
  max-width: 720px;
  margin: 0 auto;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
}

.ps-exhibition__thumbs-wrapper::-webkit-scrollbar {
  height: 4px;
}

.ps-exhibition__thumbs-wrapper::-webkit-scrollbar-track {
  background: transparent;
}

.ps-exhibition__thumbs-wrapper::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 2px;
}

.ps-exhibition__thumbs {
  display: flex;
  gap: 8px;
  padding: 8px 0;
}

.ps-exhibition__thumb {
  flex-shrink: 0;
  width: 80px;
  height: 60px;
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.ps-exhibition__thumb:hover,
.ps-exhibition__thumb.active {
  opacity: 1;
}

.ps-exhibition__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Calendar Section */
.ps-calendar-section {
  margin-top: var(--spacing-2xl);
}

.ps-calendar-section--collapsed .ps-calendar {
  display: none;
}

.ps-calendar-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: var(--spacing-lg);
}

.ps-calendar-header__line {
  flex: 1;
  max-width: 200px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--color-border), transparent);
}

.ps-calendar-header__title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  color: var(--color-text-light);
  white-space: nowrap;
  margin: 0;
}

.ps-calendar-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  color: var(--color-text-light);
  transition: color 0.2s;
}

.ps-calendar-toggle:hover {
  color: var(--color-text);
}

.ps-calendar-toggle__icon {
  font-size: 0.7rem;
  transition: transform 0.3s;
}

/* Calendar Grid */
.ps-calendar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ps-calendar__row {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  padding: 10px 0;
}

.ps-calendar__month {
  width: 60px;
  flex-shrink: 0;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--color-text);
  position: sticky;
  left: 0;
  background: var(--color-bg);
  z-index: 10;
  padding-right: 6px;
}

.ps-calendar__month span {
  font-size: 0.8rem;
  vertical-align: middle;
}

.ps-calendar__cells-wrapper {
  flex: 1;
  overflow-x: auto;
  overflow-y: hidden;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.ps-calendar__cells-wrapper::-webkit-scrollbar {
  display: none;
}

.ps-calendar__cells-wrapper:active {
  cursor: grabbing;
}

.ps-calendar__cells {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
  padding: 10px 0;
  width: max-content;
}

/* Empty day cell - just shows day number */
.ps-calendar__cell {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  position: relative;
  flex-shrink: 0;
}

/* Day cell with artwork */
.ps-calendar__cell--has-artwork {
  width: 100px;
  height: 100px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ps-calendar__cell--has-artwork:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  z-index: 10;
}

/* Day number overlay for artwork cells */
.ps-calendar__cell--has-artwork .ps-calendar__day {
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.7rem;
  color: #fff;
  text-shadow: 0 0 3px rgba(0,0,0,0.8);
  z-index: 3;
}

/* Artwork thumbnail */
.ps-calendar__thumb {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border: 1px solid var(--color-border);
  transition: transform 0.3s ease;
}

.ps-calendar__thumb--sold {
  opacity: 0.7;
}

/* Status badge - red dot for sold/gifted */
.ps-calendar__status-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  z-index: 5;
  background: var(--color-status-sold);
}

.ps-calendar__status-badge--sold,
.ps-calendar__status-badge--gifted {
  background: var(--color-status-sold);
}

.ps-calendar__legend {
  display: flex;
  justify-content: flex-end;
  padding: 12px 0 0;
}

.ps-calendar__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
}

.ps-calendar__legend-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-status-sold);
}

/* Postscript Lightbox */
.ps-lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.ps-lightbox.active {
  display: flex;
}

.ps-lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  background: transparent;
  border: none;
  color: white;
  font-size: 32px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.ps-lightbox__close:hover {
  opacity: 1;
}

.ps-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.ps-lightbox__nav:hover {
  opacity: 1;
}

.ps-lightbox__nav--prev {
  left: 20px;
}

.ps-lightbox__nav--next {
  right: 20px;
}

.ps-lightbox__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 90vw;
  max-height: 90vh;
}

.ps-lightbox__image {
  max-width: 100%;
  max-height: calc(90vh - 100px);
  object-fit: contain;
}

.ps-lightbox__info {
  text-align: left;
}

.ps-lightbox__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 300;
  color: white;
  margin-bottom: 12px;
}

.ps-lightbox__title-ja {
  display: block;
  margin-bottom: 4px;
}

.ps-lightbox__title-en {
  display: block;
  font-size: 0.95rem;
  opacity: 0.7;
}

.ps-lightbox__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: white;
  font-size: 0.9rem;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.ps-lightbox__link:hover {
  opacity: 1;
}

.ps-lightbox__link-arrow {
  transition: transform 0.3s ease;
}

.ps-lightbox__link:hover .ps-lightbox__link-arrow {
  transform: translateX(4px);
}

/* Postscript Responsive */
@media (max-width: 768px) {
  .ps-header {
    margin-bottom: var(--spacing-md);
  }

  .section__title {
    font-size: 1.4rem;
    letter-spacing: 0.1em;
  }

  .ps-description {
    font-size: 0.9rem;
  }

  .ps-exhibition {
    margin-bottom: var(--spacing-lg);
  }

  .ps-calendar-section {
    margin-top: var(--spacing-lg);
  }

  .ps-calendar-header {
    gap: 16px;
    margin-bottom: var(--spacing-md);
  }

  .ps-calendar-header__line {
    max-width: 80px;
  }

  .ps-calendar-header__title {
    font-size: 0.95rem;
    letter-spacing: 0.15em;
  }

  .ps-exhibition__main {
    max-width: 100%;
    aspect-ratio: 3/2;
  }

  .ps-exhibition__thumbs-wrapper {
    max-width: 100%;
  }

  .ps-calendar__month {
    width: 45px;
    font-size: 1.3rem;
  }

  .ps-calendar__cell {
    width: 18px;
    height: 18px;
    font-size: 0.6rem;
  }

  .ps-calendar__cell--has-artwork {
    width: 70px;
    height: 70px;
  }

  .ps-calendar__thumb {
    width: 70px;
    height: 70px;
  }

  .ps-lightbox__nav {
    width: 40px;
    height: 40px;
  }

  .ps-lightbox__nav--prev {
    left: 10px;
  }

  .ps-lightbox__nav--next {
    right: 10px;
  }

  .ps-lightbox__title {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .ps-page {
    padding: 90px 3% 50px;
  }

  .ps-title {
    font-size: 1.5rem;
  }

  .ps-exhibition__thumb {
    width: 60px;
    height: 45px;
  }

  .ps-calendar__cell {
    width: 14px;
    height: 14px;
    font-size: 0.5rem;
  }

  .ps-calendar__cell--has-artwork {
    width: 56px;
    height: 56px;
  }

  .ps-calendar__thumb {
    width: 56px;
    height: 56px;
  }

  .ps-calendar__cell--has-artwork .ps-calendar__day {
    font-size: 0.5rem;
  }

  .ps-calendar__status-badge {
    width: 6px;
    height: 6px;
    top: 2px;
    right: 2px;
  }

  .ps-calendar__month {
    width: 36px;
    font-size: 1rem;
  }
}

/* ========================================
   Scenes Page Styles
   ======================================== */

/* Scene section sub-header (title + caption above slideshow) */
.scenes-section-header {
  text-align: center;
  margin-bottom: var(--spacing-md);
}

.scenes-section-header__title {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--color-text);
  margin-bottom: 0.4em;
}

.scenes-section-header__caption {
  font-size: clamp(0.8rem, 1.5vw, 0.95rem);
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
}

/* Slideshow */
.scenes-slideshow {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}

.scenes-slideshow__track {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin-bottom: 2.4em;
}

.scenes-slideshow__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 0;
}

.scenes-slideshow__slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.scenes-slideshow__slide--image {
  cursor: pointer;
  background: #000;
}

.scenes-slideshow__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Title slide — black background with text reveal */
.scenes-slideshow__slide--title {
  cursor: default;
  background: var(--color-overlay-dark);
  align-items: center;
  padding-top: 3%;
  padding-bottom: 0;
}

.scenes-slide-title {
  text-align: center;
  padding: var(--spacing-md) var(--spacing-lg);
  max-width: 700px;
}

/* Text reveal animation elements */
.scenes-slide-title__name,
.scenes-slide-title__caption,
.scenes-slide-title__year {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.scenes-slideshow__slide--title.active .scenes-slide-title__name {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}

.scenes-slideshow__slide--title.active .scenes-slide-title__caption {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.7s;
}

.scenes-slideshow__slide--title.active .scenes-slide-title__year {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 1.0s;
}

.scenes-slide-title__link {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  transition: color 0.3s ease;
}

.scenes-slide-title__link:hover {
  color: #fff;
}

.scenes-slide-title__name {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 300;
  color: rgba(230, 230, 230, 0.9);
  letter-spacing: 0.12em;
  line-height: 1.4;
  margin-bottom: var(--spacing-sm);
}

.scenes-slide-title__caption {
  font-size: clamp(0.8rem, 1.3vw, 0.95rem);
  color: rgba(200, 200, 200, 0.55);
  margin-bottom: var(--spacing-sm);
  line-height: 1.9;
  letter-spacing: 0.04em;
  font-style: italic;
}

.scenes-slide-title__year {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: rgba(200, 200, 200, 0.45);
  letter-spacing: 0.25em;
}

/* Caption below slideshow track */
.scenes-slideshow__caption {
  text-align: center;
  padding: 8px 0;
  font-family: var(--font-serif);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  font-weight: 300;
  color: var(--color-text-muted);
}

.scenes-slideshow__caption-text {
  display: inline;
}

/* lang-ja/lang-en visibility is handled by body class toggle in global styles */

/* Navigation arrows — minimal */
.scenes-slideshow__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.6);
  color: var(--color-text-light);
  border: none;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.3rem;
  font-weight: 300;
  transition: background 0.3s ease, opacity 0.3s ease;
  z-index: 2;
  opacity: 0;
  border-radius: 50%;
}

.scenes-slideshow:hover .scenes-slideshow__nav {
  opacity: 1;
}

.scenes-slideshow__nav:hover {
  background: rgba(255, 255, 255, 0.85);
  color: var(--color-text);
}

.scenes-slideshow__nav--prev {
  left: var(--spacing-sm);
}

.scenes-slideshow__nav--next {
  right: var(--spacing-sm);
}

/* Progress bar indicator */
.scenes-slideshow__dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: var(--spacing-md) 0 var(--spacing-sm);
}

.scenes-slideshow__dot {
  width: 20px;
  height: 1px;
  border-radius: 0;
  background: var(--color-border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.4s ease, transform 0.3s ease;
}

.scenes-slideshow__dot.active {
  background: var(--color-text);
  transform: scaleY(2);
}

/* Hide nav on single image */
.scenes-slideshow[data-count="1"] .scenes-slideshow__nav,
.scenes-slideshow[data-count="1"] .scenes-slideshow__dots {
  display: none;
}

@media (max-width: 640px) {
  .scenes-slideshow {
    max-width: 100%;
  }

  .scenes-slideshow__nav {
    display: none;
  }

  .scenes-slideshow__dots {
    gap: 8px;
    padding: var(--spacing-sm) 0 var(--spacing-xs);
  }

  .scenes-slideshow__dot {
    width: 14px;
  }
}
