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

:root {
  --bg: #f4f2ee;
  --ink: #1a1917;
  --muted: #1a1917;
  --line: #1a1917;
  --white: #ffffff;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Shippori Mincho', serif;
  --font-script: 'Kalam', cursive;
}

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

body {
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: var(--bg);
  border-bottom: 1px solid var(--line);
}

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

.logo {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.12em;
}

.main-nav {
  display: flex;
  gap: 40px;
}

.main-nav a {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  color: var(--muted);
  transition: color 0.25s;
}

.main-nav a:hover {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 24px;
  height: 20px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--ink);
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ===== Hero ===== */
.hero {
  padding-top: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding-bottom: 48px;
  min-height: 100svh;
}

.hero-image-wrap {
  display: flex;
  justify-content: center;
  /* reserve room for the fixed header, the tagline block and the bottom
     padding so the image and the text share one screen on desktop */
  height: calc((100svh - 300px) * 1.045);
  max-height: 752px;
  min-height: 251px;
}

.hero-img {
  width: auto;
  height: 100%;
  max-width: 47.5vw;
  object-fit: contain;
  display: block;
  filter: grayscale(15%);
}

.hero-text {
  margin-top: 36px;
  text-align: center;
}

.hero-tagline {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  color: var(--muted);
}

.hero-tagline-en {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--muted);
  line-height: 1.9;
  margin-top: 20px;
}

/* ===== Sections ===== */
.section {
  padding: 100px 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.section-label {
  margin-bottom: 56px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
}

.label-en {
  /* h1 / h2 として使うのでブロック既定値を打ち消す */
  margin: 0;
  font-weight: 400;
  display: inline-block;
  font-family: "Corinthia", cursive;
  font-size: 1.4rem;
  letter-spacing: 0.05em;
  color: var(--muted);
}

/* ===== Gallery ===== */
.gallery-section {
  padding-top: 100px;
  max-width: none;
}

.gallery-section .section-label {
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
}

/* one line that applies to every work, so it sits above the grid */
.gallery-note {
  max-width: 1320px;
  margin: -28px auto 36px;
  font-size: 0.8rem;
  line-height: 2.1;
  letter-spacing: 0.05em;
}

.gallery-note p {
  margin: 0;
}

.gallery-note-en {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 307px);
  gap: 60px;
  justify-content: center;
  padding: 40px 0;
}

.gallery-item {
  width: 307px;
  height: 410px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  display: block;
  font: inherit;
  color: inherit;
}

.gallery-item:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 4px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(15%);
  transition: filter 0.5s ease;
}

.gallery-item:hover img {
  filter: grayscale(0%);
}


/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
  background: rgba(26, 25, 23, 0.97);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.is-open {
  opacity: 1;
}

/* an author display value beats the UA [hidden] rule, so hide it explicitly —
   otherwise the closed overlay keeps covering the page and eats every click */
.lightbox[hidden] {
  display: none;
}

body.lb-open {
  overflow: hidden;
}

.lb-figure {
  margin: 0;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.lb-img {
  display: block;
  /* shrink inside the flex column so the caption always stays visible */
  min-height: 0;
  flex: 0 1 auto;
  max-width: min(90vw, 760px);
  max-height: 100%;
  object-fit: contain;
}

.lb-caption {
  flex: 0 0 auto;
  text-align: center;
  color: var(--bg);
}

.lb-caption p {
  margin: 0;
}

.lb-title {
  font-family: var(--font-sans);
  font-size: 0.86rem;
  letter-spacing: 0.12em;
  line-height: 1.9;
}

.lb-title-en {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  line-height: 1.8;
  opacity: 0.8;
}

.lb-size {
  font-family: var(--font-serif);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  line-height: 2;
  white-space: pre-line;
  opacity: 0.8;
}

.lb-count {
  font-family: var(--font-serif);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  margin-top: 10px !important;
  opacity: 0.5;
  font-variant-numeric: tabular-nums;
}

.lb-btn {
  position: absolute;
  background: none;
  border: none;
  color: var(--bg);
  cursor: pointer;
  padding: 0;
  line-height: 1;
  opacity: 0.65;
  transition: opacity 0.25s;
}

.lb-btn:hover,
.lb-btn:focus-visible {
  opacity: 1;
}

.lb-btn:focus-visible {
  outline: 1px solid var(--bg);
  outline-offset: 6px;
}

.lb-close {
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  font-size: 1.8rem;
}

.lb-prev,
.lb-next {
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  font-family: var(--font-serif);
  font-size: 2.6rem;
}

.lb-prev { left: 12px; }
.lb-next { right: 12px; }

/* on narrow screens the arrows would sit on top of the work, so move them
   below it and let swipe handle the rest */
@media (max-width: 560px) {
  .lb-prev,
  .lb-next {
    top: auto;
    bottom: 14px;
    transform: none;
    width: 48px;
    height: 48px;
    font-size: 2rem;
  }

  .lb-prev { left: 20px; }
  .lb-next { right: 20px; }

  .lightbox { padding: 56px 16px 76px; }
}

@media (prefers-reduced-motion: reduce) {
  .lightbox { transition: none; }
}

/* ===== Profile ===== */
.profile-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: start;
}

.profile-name-ja {
  font-family: var(--font-sans);
  font-size: 1.26rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  margin-bottom: 8px;
}

.profile-name-en {
  font-family: var(--font-serif);
  font-size: 0.77rem;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.profile-statement {
  font-size: 0.86rem;
  line-height: 2;
  margin-bottom: 40px;
  letter-spacing: 0.05em;
}

.text-muted {
  color: var(--muted);
  font-family: var(--font-serif);
  font-style: italic;
}

.profile-list {
  display: grid;
  grid-template-columns: 3em 1fr;
  gap: 8px 24px;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  line-height: 1.9;
  margin-bottom: 48px;
}

.profile-list dt {
  color: var(--muted);
  padding-top: 1px;
  white-space: nowrap;
}

.profile-list dd {
  color: var(--ink);
}

.profile-bio {
  font-size: 0.77rem;
  line-height: 2.2;
  letter-spacing: 0.05em;
  color: var(--ink);
}

.profile-en-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--muted);
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.profile-block-en {
  margin-top: 44px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.profile-block-en .profile-statement,
.profile-block-en .profile-bio {
  font-family: var(--font-serif);
  font-style: italic;
}

.profile-block-en .profile-bio {
  font-size: 0.85rem;
  line-height: 2.1;
}

/* ===== Info (Upcoming / Exhibitions / Stockists / Collections / Press) ===== */
.info-section {
  padding-top: 0;
}

.info-block {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: start;
  padding-top: 44px;
  margin-top: 44px;
  border-top: 1px solid var(--line);
}

.info-heading {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.2em;
}

/* Contact matches the Works / Profile section labels */
.info-heading-script {
  font-family: "Corinthia", cursive;
  font-size: 1.4rem;
  letter-spacing: 0.05em;
}

/* Contact carries its label above the rule, like the Works / Profile
   section labels, while its body stays in the right-hand column */
.info-block-contact {
  border-top: none;
  padding-top: 0;
  margin-top: 140px;
  row-gap: 0;
}

.info-block-contact .info-heading {
  grid-column: 1 / -1;
  padding-bottom: 4px;
  margin-bottom: 44px;
  border-bottom: 1px solid var(--line);
}

.info-block-contact .info-body {
  grid-column: 2;
}

.info-list {
  list-style: none;
  font-size: 0.77rem;
  line-height: 2.2;
  letter-spacing: 0.05em;
}

.info-timeline {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0 32px;
  font-size: 0.77rem;
  line-height: 2.2;
  letter-spacing: 0.05em;
}

.info-timeline dt {
  font-family: var(--font-serif);
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.info-group + .info-group {
  margin-top: 32px;
}

.info-subheading {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}

/* ===== Privacy Policy page ===== */
.sub-page {
  padding-top: 64px;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

/* keeps the footer at the bottom on a short page */
.sub-page .policy-section {
  flex: 1 0 auto;
}

.policy-section {
  max-width: 900px;
}

.policy-block {
  font-size: 0.8rem;
  line-height: 2.1;
  letter-spacing: 0.04em;
}

.policy-block-en {
  margin-top: 64px;
  padding-top: 56px;
  border-top: 1px solid var(--line);
  font-family: var(--font-serif);
  font-size: 0.92rem;
  line-height: 1.95;
}

.policy-intro {
  margin-bottom: 44px;
}

.policy-heading {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  margin-bottom: 10px;
}

.policy-block p + .policy-heading,
.policy-block .policy-list + .policy-heading {
  margin-top: 40px;
}

.policy-list {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 28px;
  margin: 16px 0;
}

.policy-list dt {
  font-family: var(--font-serif);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.policy-list dd {
  margin: 0;
}

.policy-date {
  margin-top: 56px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 40px;
}

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

/* line-art mark, inherits the link colour so hover carries it too */
.icon-instagram {
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.icon-instagram .ig-dot {
  fill: currentColor;
  stroke: none;
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 28px;
}

.footer-link {
  font-family: var(--font-serif);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  transition: opacity 0.25s;
}

.footer-link:hover {
  opacity: 0.6;
}

.footer-copy {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* ===== Contact (block on the main page) ===== */
.contact-lead {
  font-size: 0.77rem;
  line-height: 2.2;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}

.contact-lead-en {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.85rem;
  line-height: 2.1;
  letter-spacing: 0.03em;
  margin-bottom: 32px;
}

.btn-contact {
  display: inline-block;
  background: none;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  padding: 14px 48px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

.btn-contact:hover {
  background: var(--ink);
  color: var(--bg);
}

.contact-note {
  margin-top: 20px;
  line-height: 2;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* second, secondary route — a rule keeps it from reading as an afterthought */
.contact-social {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-top: 32px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.contact-social a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-serif);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  transition: opacity 0.25s;
}

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

.icon-shop {
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linejoin: round;
}

/* clears the fixed header when jumping in from the nav */
#contact {
  scroll-margin-top: 80px;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .header-inner {
    padding: 0 24px;
  }

  .nav-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    width: 100%;
    text-align: center;
    padding: 18px 0;
    border-top: 1px solid var(--line);
  }

  .hero {
    padding-top: 160px;
    padding-bottom: 40px;
    min-height: unset;
  }

  .hero-image-wrap {
    width: 61.75vw;
    height: auto;
    max-height: none;
    min-height: 0;
  }

  .hero-img {
    width: 100%;
    height: auto;
    max-width: none;
  }

  .hero-text {
    left: 24px;
    right: 24px;
    bottom: 40px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 32px 24px;
  }

  .gallery-item {
    width: 100%;
    min-width: 0;
    height: auto;
    aspect-ratio: 3 / 4;
  }

  .section {
    padding: 80px 24px;
  }

  .profile-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .info-block {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 36px;
    margin-top: 36px;
  }

  .info-block-contact {
    padding-top: 0;
    margin-top: 96px;
  }

  .info-block-contact .info-heading {
    margin-bottom: 24px;
  }

  .info-block-contact .info-body {
    grid-column: 1;
  }

  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer-meta {
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 560px) {
  .btn-contact {
    display: block;
    text-align: center;
    padding: 14px 16px;
    letter-spacing: 0.15em;
  }

  .logo {
    font-size: 0.86rem;
    letter-spacing: 0.06em;
    white-space: nowrap;
  }

  .main-nav {
    gap: 16px;
  }

  .main-nav a {
    font-size: 0.78rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 24px 16px;
  }

  .gallery-item {
    min-width: 0;
  }

  .hero-tagline {
    font-size: 0.72rem;
  }

  .section {
    padding: 64px 20px;
  }
}
