/*
Theme Name: Murabayashi Gallery 2025
Theme URI: https://masaomurabayashi.com/
Author: Shiho Kurosawa
Description: A minimal gallery theme with Polylang support.
Version: 1.0.6
License: GNU General Public License v2 or later
Text Domain: murabayashi-gallery-2025
*/

@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@300;400;500&family=Zen+Kaku+Gothic+New:wght@300;400;500;700&display=swap');

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

body {
  margin: 0;
  padding: 0;
  background: #ffffff;
  color: #1a1a1a;
  font-family: "Josefin Sans", "Zen Kaku Gothic New", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid #e5e5e5;
  padding: 10px 32px;
}

body.admin-bar .site-header {
  top: 20px !important;
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 30px !important;
  }
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.site-logo,
.site-logo a,
a.site-logo {
  font-family: "Josefin Sans", "Zen Kaku Gothic New", sans-serif !important;
  font-size: 1.125rem !important;
  font-weight: 400 !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
}

.nav-menu {
  display: flex;
  gap: 32px;
  list-style: none;
}

.site-header .nav-menu li,
.site-header .nav-menu a,
.site-header .nav-menu li a,
.site-header .menu-item a {
  font-family: "Josefin Sans", "Zen Kaku Gothic New", sans-serif !important;
  font-size: 0.8125rem !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  transition: opacity 0.3s ease;
}

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

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  padding-left: 16px;
  border-left: 1px solid #e5e5e5;
}

.site-header .lang-link,
.site-header .lang-item a {
  font-family: "Josefin Sans", "Zen Kaku Gothic New", sans-serif !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.05em !important;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.lang-link.active,
.lang-item.current-lang a {
  opacity: 1;
}

.lang-link:hover,
.lang-item a:hover {
  opacity: 1 !important;
}

.lang-divider {
  font-size: 0.7rem;
  color: #666666;
  opacity: 0.5;
}

.lang-item {
  display: inline-block;
  margin-left: 6px;
}

.menu-item-polylang-switcher {
  margin-left: 8px;
  padding-left: 16px;
  border-left: 1px solid #e5e5e5;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #1a1a1a;
  margin: 5px 0;
  transition: 0.3s;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid #e5e5e5;
    gap: 16px;
  }
  
  .nav-menu.active {
    display: flex;
  }
}

.site-main {
  padding-top: 60px;
}

.hero-section {
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 32px 32px 64px;
}

.hero-title {
  font-family: "Josefin Sans", "Zen Kaku Gothic New", sans-serif !important;
  font-size: clamp(2rem, 5vw, 3.5rem) !important;
  font-weight: 300 !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  margin-bottom: 4px !important;
}

.hero-subtitle {
  font-family: "Josefin Sans", "Zen Kaku Gothic New", sans-serif !important;
  font-size: 0.875rem !important;
  letter-spacing: 0.15em !important;
  text-transform: lowercase !important;
  color: #666666 !important;
  margin-bottom: 12px !important;
}

.hero-title-jp {
  font-family: "Josefin Sans", "Zen Kaku Gothic New", sans-serif !important;
  font-size: 1.25rem !important;
  font-weight: 400 !important;
  letter-spacing: 0.3em !important;
  margin-bottom: 2px !important;
}

.hero-subtitle-jp {
  font-family: "Josefin Sans", "Zen Kaku Gothic New", sans-serif !important;
  font-size: 0.875rem !important;
  color: #666666 !important;
  letter-spacing: 0.1em !important;
  margin-bottom: 0px !important;
}

.hero-image {
  max-width: 800px;
  width: 100%;
  margin: 0 auto 24px;
}

.hero-image img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  margin: 0 auto !important;
}

.hero-statement {
  max-width: 850px;
  margin: 24px auto;
  text-align: center;
}

.statement-line {
  font-family: "Josefin Sans", "Zen Kaku Gothic New", sans-serif !important;
  font-size: 0.9375rem !important;
  color: #555555 !important;
  line-height: 1.0 !important;
  margin-bottom: 0px !important;
  text-align: center !important;
}

.more-btn {
  font-family: "Josefin Sans", sans-serif !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.05em !important;
  color: #666666 !important;
  margin-left: 8px !important;
  padding: 2px 8px !important;
  border: 1px solid #e5e5e5 !important;
  border-radius: 2px !important;
  transition: all 0.3s ease !important;
}

.more-btn:hover {
  background: #1a1a1a !important;
  color: #ffffff !important;
  border-color: #1a1a1a !important;
}

.page-header {
  text-align: center;
  padding: 32px 32px 40px;
}

.page-header h1,
.page-title,
h1.page-title,
.gallery-wrapper h1,
.site-main h1 {
  font-family: "Josefin Sans", "Zen Kaku Gothic New", sans-serif !important;
  font-size: clamp(1.5rem, 4vw, 2.5rem) !important;
  font-weight: 300 !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  margin-bottom: 16px !important;
}

.page-title-jp {
  font-family: "Josefin Sans", "Zen Kaku Gothic New", sans-serif !important;
  font-size: 1rem !important;
  font-weight: 400 !important;
  color: #666666 !important;
  letter-spacing: 0.2em !important;
}

/* Gallery Wrapper - allows full-width carousel */
.gallery-wrapper {
  width: 100%;
  overflow-x: hidden;
}

.gallery-wrapper > *:not(.stk-block-carousel):not(.alignfull):not([class*="stk-"]) {
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 32px;
  padding-right: 32px;
  box-sizing: border-box;
}

.gallery-wrapper > .wp-block-image,
.gallery-wrapper > figure {
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 32px;
  padding-right: 32px;
  box-sizing: border-box;
}

.gallery-wrapper > .wp-block-image img,
.gallery-wrapper > figure img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 0 20px 0 !important;
  display: block !important;
}

.gallery-wrapper > .wp-block-code,
.gallery-wrapper > pre {
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 32px;
  padding-right: 32px;
  box-sizing: border-box;
  font-family: "Josefin Sans", "Zen Kaku Gothic New", sans-serif !important;
  font-size: 0.8125rem !important;
  color: #666666 !important;
  line-height: 1.7 !important;
  text-align: center !important;
  background: none !important;
  border: none !important;
  white-space: pre-wrap !important;
  margin-bottom: 48px !important;
}

.gallery-wrapper > p {
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 32px;
  padding-right: 32px;
  box-sizing: border-box;
  font-family: "Josefin Sans", "Zen Kaku Gothic New", sans-serif !important;
  font-size: 0.8125rem !important;
  color: #666666 !important;
  line-height: 1.7 !important;
  text-align: center !important;
  margin-bottom: 48px !important;
}

.gallery-wrapper > h3 {
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 32px;
  padding-right: 32px;
  box-sizing: border-box;
  font-family: "Josefin Sans", "Zen Kaku Gothic New", sans-serif !important;
  font-size: 1rem !important;
  font-weight: 400 !important;
  text-align: center !important;
}

/* Stackable Carousel - full width */
.gallery-wrapper > .stk-block-carousel,
.gallery-wrapper > [class*="stk-"],
.gallery-wrapper > .alignfull {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;
  margin-bottom: 64px !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Legacy gallery-container support */
.gallery-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 32px;
  overflow: hidden;
}

.gallery-container img,
.gallery-container .wp-block-image img,
.gallery-container figure img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 0 20px 0 !important;
  display: block !important;
}

.gallery-container figure,
.gallery-container .wp-block-image {
  margin: 0 0 20px 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}

.gallery-container pre {
  font-family: "Josefin Sans", "Zen Kaku Gothic New", sans-serif !important;
  font-size: 0.8125rem !important;
  color: #666666 !important;
  line-height: 1.7 !important;
  text-align: center !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 0 48px 0 !important;
  background: none !important;
  border: none !important;
  white-space: pre-wrap !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
}

.gallery-container p,
.gallery-container figcaption {
  font-family: "Josefin Sans", "Zen Kaku Gothic New", sans-serif !important;
  font-size: 0.8125rem !important;
  color: #666666 !important;
  line-height: 1.7 !important;
  text-align: center !important;
  margin-bottom: 48px !important;
}

.gallery-container h3 {
  font-family: "Josefin Sans", "Zen Kaku Gothic New", sans-serif !important;
  font-size: 1rem !important;
  font-weight: 400 !important;
  margin: 32px 0 16px 0 !important;
  text-align: center !important;
}

.gallery-item {
  margin-bottom: 48px;
}

.gallery-item img {
  width: 100%;
  margin-bottom: 20px;
}

.gallery-caption {
  font-family: "Josefin Sans", "Zen Kaku Gothic New", sans-serif !important;
  font-size: 0.8125rem;
  color: #666666;
  line-height: 1.7;
  text-align: left;
}

.site-footer {
  border-top: 1px solid #e5e5e5;
  padding: 48px 32px;
  text-align: center;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-copyright {
  font-family: "Josefin Sans", "Zen Kaku Gothic New", sans-serif !important;
  font-size: 0.75rem;
  color: #666666;
  letter-spacing: 0.05em;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.3s; }
.fade-in:nth-child(4) { animation-delay: 0.4s; }
.fade-in:nth-child(5) { animation-delay: 0.5s; }

.news-bar {
  background: #ffffff;
  color: #1a1a1a;
  padding: 12px 24px;
  margin-bottom: 24px;
  max-width: 800px;
  width: 100%;
  text-align: center;
}

.news-bar .news-label {
  font-family: "Josefin Sans", "Zen Kaku Gothic New", sans-serif !important;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-right: 12px;
  opacity: 0.5;
}

.news-bar .news-text {
  font-family: "Josefin Sans", "Zen Kaku Gothic New", sans-serif !important;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 1.75rem !important;
  }
  
  .site-header .nav-menu li,
  .site-header .nav-menu a,
  .site-header .nav-menu li a {
    font-size: 0.7rem !important;
  }
  
  .site-header .lang-item a {
    font-size: 0.65rem !important;
  }
  
  .menu-item-polylang-switcher {
    padding-left: 10px;
    margin-left: 4px;
  }
}

.biography-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 32px;
}

.biography-container h3 {
  font-family: "Josefin Sans", "Zen Kaku Gothic New", sans-serif !important;
  font-size: 1.125rem !important;
  font-weight: 500 !important;
  margin: 48px 0 16px 0 !important;
}

.biography-container p {
  font-family: "Josefin Sans", "Zen Kaku Gothic New", sans-serif !important;
  font-size: 0.9375rem !important;
  color: #1a1a1a !important;
  line-height: 1.9 !important;
  margin-bottom: 16px !important;
}

.biography-container pre {
  font-family: "Josefin Sans", "Zen Kaku Gothic New", sans-serif !important;
  font-size: 0.875rem !important;
  color: #1a1a1a !important;
  line-height: 1.8 !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 0 32px 0 !important;
  white-space: pre-wrap !important;
}

.series-statement {
  max-width: 750px;
  margin: 0 auto;
  padding: 0 32px;
  text-align: center;
}

.series-statement p {
  font-family: "Josefin Sans", "Zen Kaku Gothic New", sans-serif !important;
  font-size: 0.9375rem !important;
  color: #555555 !important;
  line-height: 1.8 !important;
}

@media (min-width: 1024px) {
  .gallery-container {
    max-width: 500px;
  }
}

.more-btn-wrapper {
  text-align: center !important;
  margin-top: 12px !important;
}

@media (min-width: 1024px) {
  .hero-image {
    max-width: 720px;
  }
}