@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Zen+Old+Mincho:wght@400;600&display=swap');

:root {
  --ink: #2a2a2a;
  --paper: #ffffff;
  --line: #e4e1db;
  --muted: #8a8580;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'EB Garamond', 'Zen Old Mincho', serif;
  font-size: 16px;
  letter-spacing: 0.05em;
  line-height: 1.8;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}

/* header */
header.site-header {
  padding: 40px 0 28px;
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.logo {
  font-size: 22px;
  letter-spacing: 0.12em;
  font-style: italic;
  font-weight: 500;
}

.logo img {
  display: block;
  height: 60px;
  width: auto;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

nav.main-nav a { border-bottom: 1px solid transparent; padding-bottom: 4px; }
nav.main-nav a:hover, nav.main-nav a.active { border-bottom-color: var(--ink); }

/* mobile nav toggle (hamburger) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--ink);
}

/* hero */
.hero {
  margin: 48px 0 88px;
}

.hero-media {
  position: relative;
}

.hero-image {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.hero-handwriting {
  position: absolute;
  top: 16%;
  right: 11%;
  width: 220px;
  z-index: 2;
  clip-path: inset(0 100% 0 0);
  filter: blur(1px);
  animation: handwriting-reveal 1.6s linear forwards;
  animation-delay: 0.6s;
}

@keyframes handwriting-reveal {
  to {
    clip-path: inset(0 0% 0 0);
    filter: blur(0);
  }
}

/* section titles */
.section-title {
  font-size: 23px;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin: 0 0 8px;
  margin-left: 40px;
}

.section-lede {
  color: var(--muted);
  margin: 0 0 56px;
}

.page-head {
  padding: 72px 0 40px;
}

.page-head-with-lang {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.page-head-with-lang .section-title {
  margin-bottom: 0;
}

.page-head-with-lang .lang-switch {
  margin-bottom: 0;
}

/* news list on HOME */
.news-list {
  border-top: 1px solid var(--line);
}

.news-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.news-item time { color: var(--muted); font-size: 14px; }

/* category tiles (WORKS top) */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-bottom: 96px;
}

.tile {
  display: block;
}

.tile img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin-bottom: 20px;
  background: #eee;
}

.tile h3 {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.08em;
  margin: 0;
  text-align: center;
}

.tile-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  margin-bottom: 20px;
  background: #f4f2ee;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* gallery grid (works / exhibitions list) */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 32px;
  padding-bottom: 96px;
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin-bottom: 16px;
  background: #eee;
}

.gallery-card .card-title {
  font-size: 15px;
  margin: 0 0 4px;
}

.gallery-card .card-meta {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

.gallery-card .card-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  margin-bottom: 16px;
  background: #f4f2ee;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.series-heading {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.08em;
  margin: 64px 0 24px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.series-heading:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

/* detail page */
.detail {
  max-width: 760px;
  margin: 0 auto;
  padding-top: 8px;
  padding-bottom: 120px;
}

.detail-title {
  font-size: 23px;
  font-weight: 500;
  margin: 0 0 48px;
  letter-spacing: 0.04em;
}

.detail-image {
  margin-bottom: 48px;
}

.detail-image img {
  width: 100%;
}

.detail-image .detail-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #f4f2ee;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.detail-text {
  max-width: 680px;
  margin: 0 auto 64px;
}

.detail-text.en {
  margin-bottom: 120px;
}

.detail-text .lang-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
  margin: 0 0 12px;
}

.detail-text.jp {
  font-family: 'Zen Old Mincho', serif;
  writing-mode: horizontal-tb;
}

.detail-text.jp .lede {
  font-size: 16px;
}

.detail-text.jp p {
  font-size: 15px;
}

.detail-text.zh {
  font-family: 'Songti SC', 'SimSun', 'Noto Serif SC', serif;
}

.detail-text.zh .lede {
  font-size: 16px;
}

.detail-text.zh p {
  font-size: 15px;
}

.detail-text p {
  margin: 0 0 20px;
}

.detail-meta {
  max-width: 680px;
  margin: 0 auto 64px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  display: grid;
  grid-template-columns: 120px 1fr;
  row-gap: 8px;
}

.other-photos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* about / contact text pages */
.text-page {
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: 120px;
}

.text-page h2 {
  font-size: 15px;
  font-weight: 500;
  margin: 48px 0 16px;
}

.text-page .lede {
  font-size: 17px;
}

.cv-list {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
}

.cv-list + .cv-list {
  margin-top: 40px;
}

.lang-switch {
  display: flex;
  justify-content: flex-end;
  gap: 28px;
  margin-bottom: 48px;
}

.lang-tab {
  background: none;
  border: none;
  padding: 8px 0;
  font: inherit;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--muted);
  cursor: pointer;
}

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

.lang-tab.active::before {
  content: "・";
}

.cv-list li {
  font-size: 15px;
  line-height: 1.9;
  padding-left: 1.2em;
  text-indent: -1.2em;
}

.cv-list li::before {
  content: "－ ";
  color: var(--muted);
}

.timeline {
  border-top: 1px solid var(--line);
}

.timeline-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.timeline-year {
  font-weight: 600;
  letter-spacing: 0.04em;
}

.timeline-item p {
  margin: 0;
  font-size: 15px;
}

.profile-photo {
  max-width: 480px;
  margin: 0 auto 64px;
}

.profile-photo img {
  width: 100%;
}

/* contact form */
form.contact-form {
  max-width: 560px;
  padding-bottom: 120px;
}

.field {
  margin-bottom: 28px;
}

.field label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.field input,
.field textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  padding: 8px 2px;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--ink);
}

.submit-btn {
  border: 1px solid var(--ink);
  background: none;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 36px;
  cursor: pointer;
}

.submit-btn:hover { background: var(--ink); color: var(--paper); }

/* fixed instagram link (right edge, vertical, stays while scrolling) */
.fixed-instagram {
  position: fixed;
  top: 38%;
  right: 20px;
  transform: translateY(-50%);
  z-index: 60;
  writing-mode: vertical-rl;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: lowercase;
  color: var(--ink);
}

.fixed-instagram svg {
  writing-mode: horizontal-tb;
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-block-end: 12px;
}

/* footer */
footer.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 64px;
}

footer.site-footer .wrap {
  display: flex;
  justify-content: flex-end;
}

footer.site-footer span {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

@media (max-width: 720px) {
  .tile-grid { grid-template-columns: 1fr; gap: 64px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
  .news-item { grid-template-columns: 1fr; gap: 6px; }
  .detail-meta { grid-template-columns: 100px 1fr; }
  .other-photos { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }

  .site-header .wrap { position: relative; }

  .fixed-instagram { display: none; }

  .nav-toggle { display: flex; }

  .nav-toggle span { transition: transform 0.2s ease, opacity 0.2s ease; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  nav.main-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--paper);
    padding: 110px 32px 40px;
    z-index: 50;
    overflow-y: auto;
  }

  nav.main-nav.open { display: block; }

  nav.main-nav ul {
    flex-direction: column;
    gap: 28px;
    font-size: 19px;
  }

  .lang-switch { gap: 20px; margin-bottom: 32px; }
  .cv-list li { font-size: 14px; }

  .page-head-with-lang {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .page-head-with-lang .lang-switch {
    justify-content: flex-start;
    margin-bottom: 0;
    margin-left: 40px;
  }

  .logo img { height: 52px; }

  .hero-handwriting { width: 130px; }
}
