/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Helvetica, Arial, sans-serif;
  background: #f3f3f3;
  color: #111;
  display: flex;
}

/* Sidebar */
.sidebar {
  position: fixed;
  width: 230px;
  height: 100vh;
  background: #eee;
  padding: 60px 30px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.logo h1 {
  font-size: 22px;
  font-family: "Cochin", "Times New Roman", serif;
  font-weight: 50;
  letter-spacing: 0.1em;
  color: #340e0e;
}

.logo p {
  font-size: 14px;
  color: #695353;
  margin-top: 5px;
  font-family: inherit;
  letter-spacing: 0.05em;
}

.logo a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.logo a:hover {
  opacity: 0.6;
  transition: 0.3s;
}

nav {
  margin-top: 60px;
}

nav ul { list-style: none; }
nav li { margin-bottom: 15px; }
nav a { text-decoration: none; color: #333; font-size: 14px; }

.nav-links {
  margin-top: 20vh;
  margin-bottom: auto;
}

.nav-links a {
  color: #340e0e;
  text-decoration: none;
  transition: 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  opacity: 0.6;
}

/* Main */
.main {
  margin-left: 240px;
  padding: 80px;
  width: 100%;
  animation: fadeInGallery 1.2s ease-out;
}

@keyframes fadeInGallery {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Gallery (Masonry) */
.gallery {
  width: 100%;
  margin: 0 auto;
}

.item {
  width: calc(33.333% - 40px);
  margin-bottom: 60px;
}

.item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

@media (min-width: 769px) {
  .item img {
    cursor: pointer;
  }
  .item img:hover {
    transform: scale(1.05);
  }
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.modal-content-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
}

.modal-img {
  all: unset !important;
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 900px !important;
  max-height: 85vh !important;
  object-fit: contain !important;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  z-index: 10000;
}

/* Footer (mobile only) */
.footer {
  display: none;
}

/* Hamburger button (mobile only) */
.menu-toggle {
  display: none;
}

/* Responsive */
@media (max-width: 1024px) {
  .gallery {
    column-count: 2;
    gap: 40px;
  }
  .item {
    width: calc(50% - 30px);
    margin-bottom: 40px;
  }
}

@media (max-width: 768px) {
  body {
    flex-direction: column;
    background-color: #ffffff;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    height: auto;
    padding: 20px;
    background-color: rgba(243, 243, 243, 0.9);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid #f0f0f0;
  }

  .sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .menu-toggle {
    display: block;
    cursor: pointer;
  }

  .menu-toggle:hover {
    opacity: 0.6;
    transition: 0.3s;
  }

  .bar {
    display: block;
    width: 25px;
    height: 2px;
    margin: 6px 0;
    background-color: #462c2c;
    transition: 0.3s;
  }

  .nav-links {
    display: none;
    width: 100%;
    padding-top: 20px;
    text-align: center;
    margin-top: 25px !important;
    margin-bottom: 0 !important;
  }

  .nav-links.active {
    display: block;
  }

  .nav-links li {
    list-style: none;
    margin-bottom: 20px;
  }

  .main {
    margin-left: 0;
    padding: 20px;
  }

  .gallery {
    column-count: 1;
    column-gap: 0;
  }

  .item {
    width: 100%;
  }

  .modal-img {
    max-width: 95vw !important;
  }

  .footer {
    display: block;
    margin-left: 0;
    margin-top: 750px;
    padding: 30px 20px;
    background: #f3f3f3;
    border-top: 1px solid #ddd;
    width: 100%;
  }

  .footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    color: #888;
    font-size: 12px;
    text-align: center;
  }
}

/* Artwork: alternating layout */
.artwork-list {
  max-width: 1200px;
  margin: 0 auto;
}

.artwork-section {
  display: flex;
  align-items: center;
  gap: 80px;
  margin-bottom: 200px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.artwork-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.artwork-section:nth-child(even) {
  flex-direction: row-reverse;
}

.artwork-photo {
  flex: 1.2;
}

.artwork-photo img {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.artwork-photo img:hover {
  transform: scale(1.05);
}

.artwork-text {
  flex: 1;
  padding: 0 20px;
}

.artwork-text p {
  line-height: 3.8;
  letter-spacing: 0.15em;
  color: #1e1e1e;
  font-family: 'Noto Serif JP', "Hiragino Mincho ProN", "MS Mincho", serif;
  font-size: 16px;
}

@media (max-width: 1024px) {
  .artwork-section,
  .artwork-section:nth-child(even) {
    flex-direction: column;
    gap: 50px;
    margin-bottom: 270px;
  }
}

/* About page */
.about-page {
  max-width: 960px;
  margin: 0 auto;
}

.about-hero {
  display: flex;
  align-items: center;
  gap: 70px;
  margin-bottom: 140px;
}

.about-portrait {
  flex: 1;
  max-width: 360px;
}

.about-portrait img {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.about-portrait img:hover {
  transform: scale(1.03);
}

.about-intro {
  flex: 1.1;
  font-family: 'Noto Serif JP', "Hiragino Mincho ProN", "MS Mincho", serif;
}

.about-name-en {
  font-family: "Cochin", "Times New Roman", serif;
  font-size: 13px;
  letter-spacing: 0.3em;
  color: #695353;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.about-name {
  font-family: 'Noto Serif JP', "Hiragino Mincho ProN", serif;
  font-size: 30px;
  font-weight: 400;
  color: #340e0e;
  letter-spacing: 0.15em;
  margin-bottom: 28px;
}

.about-tagline {
  font-size: 16px;
  line-height: 2.2;
  letter-spacing: 0.12em;
  color: #1e1e1e;
  margin-bottom: 26px;
}

.about-meta {
  font-size: 13px;
  letter-spacing: 0.15em;
  color: #695353;
}

.about-block {
  margin-bottom: 100px;
}

.about-heading {
  font-family: "Cochin", "Times New Roman", serif;
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.2em;
  color: #340e0e;
  margin-bottom: 32px;
  padding-bottom: 14px;
  border-bottom: 1px solid #d9d2d2;
}

.about-body p {
  font-family: 'Noto Serif JP', "Hiragino Mincho ProN", "MS Mincho", serif;
  font-size: 15px;
  line-height: 2.4;
  letter-spacing: 0.12em;
  color: #1e1e1e;
  margin-bottom: 28px;
}

.about-body p:last-child {
  margin-bottom: 0;
}

.about-exhibitions {
  list-style: none;
  padding: 0;
}

.about-exhibitions li {
  display: flex;
  align-items: baseline;
  gap: 40px;
  padding: 18px 4px;
  border-bottom: 1px dashed #d9d2d2;
  font-family: 'Noto Serif JP', "Hiragino Mincho ProN", serif;
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: 0.1em;
  color: #1e1e1e;
}

.about-exhibitions li:last-child {
  border-bottom: none;
}

.ex-year {
  flex: 0 0 90px;
  font-family: "Cochin", "Times New Roman", serif;
  font-size: 15px;
  letter-spacing: 0.2em;
  color: #695353;
}

.ex-detail {
  flex: 1;
}

.about-contact a {
  font-family: "Cochin", "Times New Roman", serif;
  font-size: 18px;
  letter-spacing: 0.12em;
  color: #340e0e;
  text-decoration: none;
  border-bottom: 1px solid #340e0e;
  padding-bottom: 3px;
  transition: opacity 0.3s ease;
}

.about-contact a:hover {
  opacity: 0.6;
}

@media (max-width: 1024px) {
  .about-hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 50px;
    margin-bottom: 100px;
  }

  .about-portrait {
    max-width: 100%;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .about-page {
    padding-bottom: 40px;
  }

  .about-hero {
    gap: 30px;
    margin-bottom: 70px;
  }

  .about-name {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .about-tagline {
    font-size: 14.5px;
    line-height: 2.1;
  }

  .about-block {
    margin-bottom: 60px;
  }

  .about-heading {
    font-size: 18px;
    margin-bottom: 24px;
    padding-bottom: 10px;
  }

  .about-body p {
    font-size: 14px;
    line-height: 2.2;
    margin-bottom: 22px;
  }

  .about-exhibitions li {
    flex-direction: column;
    gap: 6px;
    padding: 16px 4px;
    font-size: 14px;
  }

  .ex-year {
    flex: none;
    font-size: 13px;
  }

  .about-contact a {
    font-size: 16px;
  }
}
