@charset "UTF-8";
/*
Theme Name: Artist Portfolio Momoka
Theme URI: 
Author: Antigravity
Author URI: 
Description: A minimalist and tranquil portfolio theme.
Version: 1.0.3
Text Domain: artist-portfolio
*/


/* ==========================================================================
   Variables
   ========================================================================== */
:root {
  --color-main: #FFFFFF;
  --color-sub: #F8F8F8;
  --color-accent: #222222;

  --font-family-en: 'Playfair Display', serif;
  --font-family-ja: 'Playfair Display', 'Noto Serif JP', serif;

  --spacing-base: 1rem;
  --spacing-section: 25vh;
  /* 1.5x normal spacing */
  --content-padding: 12vw;
  /* 10-15% margin */
}

/* ==========================================================================
   Reset
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body,
h1,
h2,
h3,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.8;
  font-family: var(--font-family-ja);
  background-color: var(--color-main);
  color: var(--color-accent);
  overflow-x: hidden;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

body.is-loaded {
  opacity: 1;
}

/* Thin scrollbar */
body::-webkit-scrollbar {
  width: 4px;
}

body::-webkit-scrollbar-track {
  background: var(--color-main);
}

body::-webkit-scrollbar-thumb {
  background: #e0e0e0;
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.6;
}

img,
picture {
  max-width: 100%;
  display: block;
}

/* ==========================================================================
   Global Styles
   ========================================================================== */
.l-container {
  padding: 0 var(--content-padding);
}

.c-section {
  margin-bottom: var(--spacing-section);
}

.l-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 4rem var(--content-padding) 2rem; /* Increased top padding from 2rem to 4rem */
  background-color: rgba(255, 255, 255, 0.8); /* White with higher transparency */
  backdrop-filter: blur(4px); /* Reduced blur for a lighter effect */
  z-index: 1000;
  transition: background-color 0.4s ease, color 0.4s ease, padding 0.4s ease;
}

.l-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.l-header__nav {
  flex: 1;
  display: flex;
  justify-content: center;
  margin: 0 2rem; /* Add horizontal margin to prevent touching logo/SNS */
}

.c-global-nav {
  display: flex;
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: var(--font-family-en);
  font-size: 0.9rem; /* Slightly reduced to fit on medium screens */
  letter-spacing: 0.15em; /* Reduced from 0.25em to save space */
  text-transform: uppercase;
  white-space: nowrap;
}

.l-header__sns {
  display: flex;
  gap: 1.5rem;
  font-family: var(--font-family-en);
  font-size: 1.0rem;
  flex-shrink: 0; /* Prevent icons from being crushed */
}

/* Header state on dark/light backgrounds */
.l-header.is-scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  padding: 1.5rem var(--content-padding);
}

.c-logo {
  font-family: var(--font-family-en);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  white-space: nowrap;
  color: var(--color-accent); /* Ensure color is set */
  z-index: 1001;
}

/* ==========================================================================
   Hamburger & Mobile Menu
   ========================================================================== */
.c-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1002;
  width: 24px;   /* Scaled down from 30px to 24px */
  height: 16px;  /* Scaled down from 20px to 16px */
  position: relative;
  padding: 0;
}

.c-hamburger span {
  display: block;
  width: 100%;
  height: 1.5px; /* Slightly thicker for better visibility */
  background-color: var(--color-accent);
  position: absolute;
  left: 0;
  transition: all 0.4s ease;
}

.c-hamburger span:nth-child(1) { top: 0; }
.c-hamburger span:nth-child(2) { bottom: 0; }

.l-header.is-menu-open .c-hamburger span:nth-child(1) {
  transform: translateY(7.25px) rotate(45deg); /* Recalculated for 16px height center */
}

.l-header.is-menu-open .c-hamburger span:nth-child(2) {
  transform: translateY(-7.25px) rotate(-45deg);
}

.p-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(255, 255, 255, 0.98);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.l-header.is-menu-open .p-mobile-menu {
  opacity: 1;
  pointer-events: auto;
}

.c-mobile-nav {
  list-style: none;
  padding: 0;
  text-align: center;
  font-family: var(--font-family-en);
  font-size: 1.25rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.c-mobile-nav li { margin-bottom: 2rem; }

.p-mobile-menu__sns {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
  margin-top: 2rem;
}

/* Footer */
.l-footer {
  padding: 8rem var(--content-padding) 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-family-en);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  border-top: 1px solid rgba(34, 34, 34, 0.05);
}

.l-footer__sns {
  display: flex;
  gap: 2rem;
}

/* ==========================================================================
   Front Page Styles (Hero Slider)
   ========================================================================== */
/* Force top page to be completely unscrollable on mobile and desktop */
.home,
.home body {
  overflow: hidden !important;
  height: 100% !important;
  height: 100vh !important;
  position: fixed;
  width: 100%;
}

.p-hero-slider {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: 1; /* Below header */
  background-color: var(--color-main);
}

.p-hero-slider__item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  padding: 18vh 20vw 15vh; /* Adjusted top padding to 18vh for balance */
  display: flex;
  align-items: center;
  justify-content: center;
}

.p-hero-slider__item.is-active {
  opacity: 1;
}

.p-hero-slider__image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ==========================================================================
   News Page Styles
   ========================================================================== */
.p-news {
  padding-bottom: 10rem;
}

.p-news-item {
  margin-bottom: 8rem;
  padding-bottom: 8rem;
  border-bottom: 1px solid rgba(34, 34, 34, 0.1);
  opacity: 1; /* TEMPORARY: Changed from 0 to 1 for debugging */
  transform: none; /* TEMPORARY: Removed translate for debugging */
  transition: opacity 1.5s ease, transform 1.5s ease;
}

.p-news-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

.p-news-item__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
}

.p-news-item__title {
  font-family: var(--font-family-ja);
  font-size: 2.0rem;
  font-weight: 400;
  max-width: 100%; /* Remove width restriction */
  line-height: 1.4;
}

.p-news-item__date {
  font-family: var(--font-family-en);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
}

@media (max-width: 1250px) {
  /* Header & Menu Switch - Maintain vertical position */
  .l-header {
    padding: 4rem var(--content-padding) 2rem; /* Exact match to desktop padding */
  }
  .l-header__nav, .l-header__sns {
    display: none !important;
  }
  .c-hamburger {
    display: block !important;
  }
  .c-logo {
    font-size: 1.5rem; /* Maintain original size */
  }
}

@media (max-width: 768px) {
  /* News Margins */
  .p-news-item {
    margin-bottom: 4rem;
    padding-bottom: 4rem;
  }
  
  .p-news-item__title {
    font-size: 1.5rem; /* Increased from 1.2rem */
  }

  .p-news-item__header {
    flex-direction: column;
    align-items: flex-start;
  }
  .p-news-item__title {
    max-width: 100%;
    margin-bottom: 1rem;
  }
  .p-news-item__date {
    align-self: flex-end;
  }

  /* Footer */
  .l-footer {
    padding: 4rem var(--content-padding) 2rem;
    flex-direction: column;
    gap: 2rem;
  }
}

.p-news-item__image-wrap {
  margin-bottom: 3rem;
  padding: 0 5vw; /* Extra padding for the frame effect */
}

.p-news-item__image {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.p-news-item__content {
  font-size: 1rem;
  line-height: 2;
}

.p-news-pagination {
  margin-top: 4rem;
  text-align: center;
}

.p-news-pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  font-family: var(--font-family-en);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
}

/* ==========================================================================
   Single Post & News Archive Content (Gutenberg alignment)
   ========================================================================== */
.p-entry__content,
.p-news-item__content,
.p-page-content,
.c-post-content {
  font-size: 1rem;
  line-height: 1.8;
}

.p-entry__content p,
.p-news-item__content p,
.p-page-content p,
.c-post-content p {
  margin-bottom: 1.8em !important; /* Force 1 blank line for 'Enter' */
}

.p-entry__content p:last-child,
.p-news-item__content p:last-child,
.p-page-content p:last-child,
.c-post-content p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Biography Page
   ========================================================================== */
.p-biography__profile {
  margin-bottom: 25vh;
}

.p-biography__profile-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10%;
}

.p-biography__name {
  font-family: var(--font-family-en);
  font-size: 1.5rem;
  letter-spacing: 0.2em;
  margin-bottom: 2rem;
}

.p-biography__photo {
  flex: 0 0 40%;
}

.p-biography__photo img {
  width: 100%;
  height: auto;
  display: block;
}

.p-biography__statement {
  flex: 1;
  padding-top: 5vh;
}

/* Timeline */
.p-biography__career {
  margin-bottom: 25vh;
}

.p-biography__section-title {
  font-family: var(--font-family-en);
  font-size: 1.25rem;
  letter-spacing: 0.2em;
  margin-bottom: 6rem;
  text-align: center;
}

.p-biography__timeline {
  max-width: 800px;
  margin: 0 auto;
}

.p-timeline-item {
  display: flex;
  margin-bottom: 4rem;
}

.p-timeline-item:last-child {
  margin-bottom: 0;
}

.p-timeline-item__year {
  flex: 0 0 150px;
  font-family: var(--font-family-en);
  font-size: 1.25rem;
  letter-spacing: 0.1em;
}

.p-timeline-item__content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.p-timeline-item__content li {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.p-timeline-item__content li:last-child {
  margin-bottom: 0;
}

/* Studio Gallery */
.p-biography__studio {
  margin-bottom: 10rem;
}

.p-biography__gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 5rem 0;
}

.p-biography__gallery-item {
  width: 100%;
}

.p-biography__gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}

.p-biography__gallery-item--wide {
  width: 100%;
}

.p-biography__gallery-item--square {
  width: 60%;
  margin-left: auto;
  margin-top: -10vh; /* Overlap effect */
}

/* Biography Media Queries */
@media (max-width: 768px) {
  .p-biography__profile-inner {
    flex-direction: column;
    gap: 4rem;
  }
  
  .p-biography__photo {
    width: 100%;
  }
  
  .p-timeline-item {
    flex-direction: column;
    margin-bottom: 3rem;
  }
  
  .p-timeline-item__year {
    margin-bottom: 1rem;
    flex: auto;
  }

  .p-biography__gallery-item--square {
    width: 80%;
    margin-top: -5vh;
  }
}

/* ==========================================================================
   Social Menu
   ========================================================================== */
.c-social-nav {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 1.5rem;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 auto !important;
  width: 100%;
}

.c-social-nav li {
  display: flex !important;
  justify-content: center !important;
}

.c-social-nav a {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

/* ==========================================================================
   Instagram Menu Item (Universal Fix for Primary & Social Menus)
   ========================================================================== */
li.menu-instagram {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
}

li.menu-instagram a {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

.c-menu-icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  display: inline-block !important;
  transition: opacity 0.3s ease;
  margin: 0 !important;
}

.c-menu-icon:hover {
  opacity: 0.6;
}

/* Screen reader text for accessibility */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* ==========================================================================
   Layout Containers
   ========================================================================== */
.l-content {
  padding: 15vh var(--content-padding) 0;
  min-height: 100vh;
}

.p-page-header {
  text-align: center;
  margin-bottom: 8rem;
}

.p-page-header__title {
  font-family: var(--font-family-en);
  font-size: 3rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text);
}

@media (max-width: 768px) {
  /* Reduce header vertical padding and logo size to prevent mobile overlaps */
  .l-header {
    padding: 2rem var(--content-padding) 1.5rem !important;
  }

  .c-logo {
    font-size: 1.15rem !important;
  }

  /* Standardize all page margins to 8vw on mobile and prevent double-padding */
  .l-content {
    padding-top: 130px !important; /* Secure sufficient top spacing to prevent header overlaps */
    padding-left: 8vw !important;
    padding-right: 8vw !important;
  }
  .l-content .l-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .l-container {
    padding-left: 8vw !important;
    padding-right: 8vw !important;
  }

  .p-page-header {
    margin-bottom: 4rem;
  }
  .p-page-header__title {
    font-size: 2.2rem;
  }
}

/* ==========================================================================
   Works Archive (Gallery)
   ========================================================================== */
.p-works-archive {
  padding-bottom: 10rem;
}

.p-works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 4rem 2rem; /* Large vertical gap, standard horizontal gap */
  align-items: start; /* Allows masonry-like varied heights */
}

.p-works-item {
  position: relative;
  display: block;
}

.p-works-item__link {
  display: block;
  overflow: hidden; /* For scale effect */
}

.p-works-item__figure {
  position: relative;
  margin: 0;
  background-color: #fcfcfc; /* Slight contrast for loading/empty */
}

.p-works-item__image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.8s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03); /* Subtle paper shadow */
}

.p-works-item__image--placeholder {
  aspect-ratio: 4/5;
}

.p-works-item__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.85); /* Frosty overlay */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.5s ease;
  padding: 2rem;
  text-align: center;
}

.p-works-item__link:hover .p-works-item__overlay {
  opacity: 1;
}

.p-works-item__link:hover .p-works-item__image {
  transform: scale(1.03);
}

.p-works-item__title {
  font-family: var(--font-family-en);
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  transform: translateY(10px);
  transition: transform 0.5s ease;
}

.p-works-item__link:hover .p-works-item__title {
  transform: translateY(0);
}

.p-works-item__meta {
  font-family: var(--font-family-ja);
  font-size: 0.8rem;
  color: #666;
  transform: translateY(10px);
  transition: transform 0.5s ease;
  transition-delay: 0.1s;
}

.p-works-item__link:hover .p-works-item__meta {
  transform: translateY(0);
}

/* ==========================================================================
   Works Single
   ========================================================================== */
.p-works-single {
  padding-bottom: 10rem;
}

.p-works-detail {
  max-width: 1000px;
  margin: 0 auto;
}

.p-works-detail__figure {
  margin-bottom: 4rem;
  text-align: center;
}

.p-works-detail__image {
  max-width: 100%;
  height: auto;
  box-shadow: 0 4px 30px rgba(0,0,0,0.05);
}

.p-works-detail__header {
  text-align: center;
  margin-bottom: 4rem;
}

.p-works-detail__title {
  font-family: var(--font-family-en);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.p-works-detail__meta {
  font-family: var(--font-family-ja);
  font-size: 0.9rem;
  color: #666;
  letter-spacing: 0.05em;
}

.p-works-detail__content {
  max-width: 800px;
  margin: 0 auto 6rem;
}

.p-works-detail__nav {
  border-top: 1px solid rgba(34, 34, 34, 0.1);
  padding-top: 4rem;
}

.p-works-detail__nav-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-family-en);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-back a {
  opacity: 0.6;
}

.nav-back a:hover {
  opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
  .p-works-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .p-works-item__overlay {
    display: none !important; /* Hide title and meta on mobile as per user request */
  }
  
  .c-modal__close {
    top: -50px;
    right: 10px;
  }
  
  .c-modal__nav {
    font-size: 2rem;
    padding: 1rem;
    top: auto;
    bottom: 20px; /* Move arrows to the bottom area to avoid image overlap */
    transform: none;
    opacity: 0.6;
  }
  
  .c-modal__nav--prev {
    left: 20px;
  }
  
  .c-modal__nav--next {
    right: 20px;
  }

  .c-modal__nav--prev:hover,
  .c-modal__nav--next:hover {
    transform: none;
  }

  .c-modal__image {
    max-width: 90% !important; /* Reduce width to create side space */
    max-height: 60vh !important; /* Reduce height to create bottom space */
  }
  
  .p-works-detail__nav-links {
    flex-direction: column;
    gap: 2rem;
  }
}

/* ==========================================================================
   Modal (Lightbox)
   ========================================================================== */
.c-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.c-modal.is-active {
  opacity: 1;
  pointer-events: auto;
}

.c-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.95); /* More opaque */
  backdrop-filter: blur(8px); /* Stronger blur */
}

.c-modal__content {
  position: relative;
  z-index: 1;
  width: 90%;
  max-width: 1200px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.c-modal.is-active .c-modal__content {
  transform: translateY(0);
}

.c-modal__close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  font-size: 2.5rem;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  color: var(--color-accent);
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

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

.c-modal__figure {
  margin: 0;
  width: 100%;
  text-align: center;
}

.c-modal__image {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  box-shadow: 0 10px 50px rgba(0,0,0,0.1);
  margin: 0 auto;
}

.c-modal__caption {
  margin-top: 2rem;
  padding: 0 1rem;
}

.c-modal__title {
  font-family: var(--font-family-en);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.c-modal__meta {
  font-family: var(--font-family-ja);
  font-size: 0.9rem;
  color: #666;
}

@media (max-width: 768px) {
  .p-works-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .p-works-item__overlay {
    display: none !important;
  }
  
  .c-modal__close {
    top: -50px;
    right: 10px;
  }
  
  .c-modal__image {
    max-width: 90% !important;
    max-height: 60vh !important;
    margin: 0 auto !important;
  }
  
  .p-works-detail__nav-links {
    flex-direction: column;
    gap: 2rem;
  }
}

/* ==========================================================================
   Exhibition Archive
   ========================================================================== */
.p-exhibition-archive {
  padding-bottom: 10rem;
}

.p-exhibition-list {
  display: flex;
  flex-direction: column;
  gap: 12rem; /* Quiet rhythm: 1.5x normal spacing */
}

.p-exhibition-item {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 4rem;
}

.p-exhibition-item__info {
  flex: 0 0 35%;
  position: sticky;
  top: 15vh;
}

.p-exhibition-item__title {
  font-family: var(--font-family-ja);
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 0.8rem;
  line-height: 1.5;
  color: var(--color-text);
}

.p-exhibition-item__period {
  font-family: var(--font-family-en);
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: #666;
  margin-bottom: 2rem;
}

.p-exhibition-item__description {
  font-family: var(--font-family-ja);
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--color-text);
}

.p-exhibition-item__slider {
  flex: 0 0 60%;
  position: relative;
}

/* Slider Component */
.c-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  /* overflow: hidden; */ /* Remove this to show arrows outside */
}

.c-slider__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  overflow: hidden; /* Add this here to contain the image */
  transition: opacity 1.2s ease-in-out;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 50px; /* Space for arrows */
}

.c-slider__slide.is-prev {
  opacity: 1;
  z-index: 1;
}

.c-slider__slide.is-active {
  opacity: 1;
  z-index: 2;
}

.c-slider__image {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Don't crop, show full image */
}

.c-slider__nav {
  position: absolute;
  top: 50% !important; /* Force to 50% of the aspect-ratio container */
  left: 0;
  right: 0;
  transform: translateY(-50%) !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  pointer-events: none;
}

.c-slider__button {
  background: none;
  border: none;
  color: var(--color-accent);
  opacity: 0.5;
  cursor: pointer;
  pointer-events: auto;
  transition: opacity 0.3s ease, transform 0.3s ease;
  padding: 10px;
}

.c-slider__button:hover {
  opacity: 1;
}

.c-slider__button--prev:hover {
  transform: translateX(-5px);
}

.c-slider__button--next:hover {
  transform: translateX(5px);
}

.c-slider__button svg {
  width: 20px;
  height: 34px;
}

@media (max-width: 768px) {
  .p-exhibition-archive .l-container {
    padding: 0 35px !important; /* Consistent margin for arrows to sit in */
  }

  .p-exhibition-list {
    gap: 5rem !important;
  }
  
  .p-exhibition-item {
    flex-direction: column !important;
    gap: 2.5rem !important;
  }
  
  .p-exhibition-item__info,
  .p-exhibition-item__slider {
    width: 100% !important;
    flex: none !important;
    position: static !important; /* Disable sticky for mobile */
  }

  .c-slider {
    aspect-ratio: 4/3 !important;
    background-color: transparent !important;
  }

  .c-slider__slide {
    padding: 0 !important; /* Image fills the container width! */
  }
  
  .c-slider__nav {
    left: -35px !important; /* Move arrows outside into the container padding */
    right: -35px !important;
  }

  .c-slider__button {
    padding: 10px !important;
  }

  .c-slider__button svg {
    width: 14px !important;
    height: 24px !important;
    stroke-width: 1.2 !important;
  }

  .p-exhibition-item__title {
    font-size: 1.4rem !important;
    line-height: 1.4 !important;
  }
}

/* ==========================================================================
   Contact Page
   ========================================================================== */
.p-contact {
  padding-bottom: 10rem;
}

/* Prevent double padding issues on Contact page */
.p-contact .l-container {
  padding: 0;
}

.p-contact-form-wrapper {
  max-width: 800px;
  margin: 0 auto 5rem;
  position: relative;
}

.p-contact-form__field {
  margin-bottom: 4rem;
}

.p-contact-form__field label {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
}

.p-contact-form__label-en {
  font-family: var(--font-family-en);
  font-size: 1.1rem;
}

.p-contact-form__label-ja {
  font-family: var(--font-family-ja);
  color: #666;
  font-size: 0.8rem;
}

.c-badge--required {
  font-family: var(--font-family-en);
  font-size: 0.7rem;
  color: #a00;
  border: 1px solid rgba(170, 0, 0, 0.3);
  padding: 0.1rem 0.4rem;
  border-radius: 2px;
  margin-left: auto; /* Push to right */
}

.p-contact-form__field input[type="text"],
.p-contact-form__field input[type="email"],
.p-contact-form__field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(34, 34, 34, 0.2);
  padding: 0.5rem 0;
  font-family: var(--font-family-ja);
  font-size: 1rem;
  color: var(--color-accent);
  transition: border-color 0.3s ease;
  border-radius: 0;
  outline: none;
  -webkit-appearance: none;
}

.p-contact-form__field textarea {
  resize: vertical;
  line-height: 1.6;
}

.p-contact-form__field input[type="text"]:focus,
.p-contact-form__field input[type="email"]:focus,
.p-contact-form__field textarea:focus {
  border-bottom: 1px solid var(--color-accent);
}

.p-contact-form__field input::placeholder,
.p-contact-form__field textarea::placeholder {
  color: rgba(34, 34, 34, 0.2);
  font-family: var(--font-family-en);
}

.p-contact-form__submit-wrap {
  text-align: center;
  margin-top: 6rem;
}

.p-contact-form__submit {
  background: transparent;
  border: 1px solid var(--color-accent);
  padding: 1rem 4rem;
  cursor: pointer;
  transition: all 0.4s ease;
  display: inline-block;
  text-align: center;
  color: var(--color-accent);
}

.p-contact-form__submit-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
}

.p-contact-form__submit:hover:not(:disabled) {
  background: rgba(34, 34, 34, 0.03);
}

.p-contact-form__submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.p-contact-form__submit-en {
  font-family: var(--font-family-en);
  font-size: 1.1rem;
  letter-spacing: 0.2em;
}

.p-contact-form__submit-ja {
  font-family: var(--font-family-ja);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: #666;
}

.p-contact-message--success,
.p-contact-message--error {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  text-align: center;
  font-family: var(--font-family-ja);
  line-height: 2;
  transition: opacity 0.5s ease;
}

.p-contact-message--success {
  color: var(--color-accent);
  font-size: 1.1rem;
  padding: 4rem 0;
}

.p-contact-message__text {
  margin-bottom: 4rem;
  font-family: var(--font-family-ja);
  font-size: 1.1rem;
  line-height: 2;
}

.p-contact-message__btn-wrap {
  margin-top: 3rem;
}

.c-btn-back {
  display: inline-block;
  border: 1px solid var(--color-accent);
  padding: 1rem 4rem;
  cursor: pointer;
  transition: all 0.4s ease;
  text-align: center;
  color: var(--color-accent);
  text-decoration: none;
}

.c-btn-back:hover {
  background: rgba(34, 34, 34, 0.03);
  opacity: 0.8;
}

.c-btn-back__en {
  display: block;
  font-family: var(--font-family-en);
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.c-btn-back__ja {
  display: block;
  font-family: var(--font-family-ja);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: #666;
  margin-top: 0.2rem;
}

.p-contact-message--error {
  position: static; /* Errors sit above the form */
  color: #a00;
  font-size: 0.9rem;
  margin-bottom: 2rem;
  padding: 1rem;
  background: rgba(170, 0, 0, 0.05);
  border: 1px solid rgba(170, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .p-contact-form-wrapper {
    margin: 0 auto 3rem;
  }
  .p-contact-form__field {
    margin-bottom: 3rem;
  }
  .p-contact-form__submit {
    padding: 1rem 3rem; /* Compact padding for mobile to keep it elegant and centered */
  }
  .c-btn-back {
    padding: 1rem 3rem; /* Compact padding for mobile to keep it elegant and centered */
  }
}

/* ==========================================================================
   Animations
   ========================================================================== */
.js-fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.0s cubic-bezier(0.2, 0, 0.2, 1), transform 1.0s cubic-bezier(0.2, 0, 0.2, 1);
}

.js-fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.p-page-header.js-fade-in {
  transition-delay: 0.2s;
}

.c-empty-message {
  text-align: center;
  padding: 5rem 0;
  font-family: var(--font-family-ja);
  color: #999;
  letter-spacing: 0.1em;
}

/* ==========================================================================
   Exhibition Image Modal
   ========================================================================== */
.c-exhibition-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.c-exhibition-modal.is-active {
  opacity: 1;
  pointer-events: auto;
}

.c-exhibition-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.c-exhibition-modal__content {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: scale(0.95);
  transition: transform 0.4s ease;
}

.c-exhibition-modal.is-active .c-exhibition-modal__content {
  transform: scale(1);
}

.c-exhibition-modal__image {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  display: block;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.12);
}

.c-exhibition-modal__close {
  position: absolute;
  top: -3rem;
  right: 0;
  background: none;
  border: none;
  font-size: 2.2rem;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  color: var(--color-accent);
  opacity: 0.4;
  transition: opacity 0.3s ease;
  padding: 0.5rem;
}

.c-exhibition-modal__close:hover {
  opacity: 1;
}