:root {
  --paper: #fbf8f2;
  --panel: #f5efe5;
  --ink: #241d17;
  --muted: #756a5d;
  --soft: #9a8872;
  --line: rgba(70, 53, 37, 0.17);
  --line-strong: rgba(70, 53, 37, 0.34);
  --tile: #eee7dc;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Palatino Linotype", Palatino, "Noto Serif SC", "Songti SC", serif;
  font-size: 17px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
img { display: block; max-width: 100%; }
.wrap { width: min(var(--max), calc(100% - 44px)); margin: 0 auto; }

.utility {
  min-height: 54px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.utility .wrap { display: flex; justify-content: flex-end; }
.langs { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 18px; }
.langs button,
.tabs button,
.subnav button,
.years button,
.card,
.detail-bar button,
.inquire button {
  border: 0;
  background: transparent;
  cursor: pointer;
}
.langs button {
  position: relative;
  padding: 13px 0 10px;
  color: var(--soft);
  font-size: 0.88rem;
}
.langs button.is-on { color: var(--ink); }
.langs button.is-on::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 1px;
  background: currentColor;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(270px, 0.82fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
  padding: clamp(50px, 8vw, 104px) 0 clamp(42px, 6vw, 78px);
}
.hero-work { margin: 0; min-width: 0; }
.hero-visual {
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual img { width: 100%; max-height: 500px; object-fit: contain; }
.hero-cap { margin-top: 14px; text-align: center; }
.hero-cap p { margin: 0; }
.hero-cap .title { color: var(--muted); font-size: 0.88rem; }
.hero-cap .meta { color: var(--soft); font-size: 0.78rem; }
.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.3rem, 5vw, 5rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.1;
}
.name-en {
  margin: 14px 0 0;
  color: var(--soft);
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.hero-meta { margin: 28px 0 0; color: var(--muted); font-size: 0.96rem; }

.nav-row { border-bottom: 1px solid var(--line); }
.tabs {
  display: flex;
  gap: clamp(24px, 4vw, 52px);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar,
.years::-webkit-scrollbar { display: none; }
.tabs button {
  flex: 0 0 auto;
  position: relative;
  padding: 14px 0 16px;
  color: var(--muted);
  white-space: nowrap;
}
.tabs button:hover,
.tabs button.is-on { color: var(--ink); }
.tabs button.is-on::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--ink);
}

.section { min-height: 430px; }
.panel { padding: clamp(34px, 5vw, 66px) 0 90px; }
.subnav { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.subnav button {
  min-height: 38px;
  padding: 6px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.26);
}
.subnav button:hover,
.subnav button.is-on { color: var(--paper); border-color: var(--ink); background: var(--ink); }
.years {
  display: flex;
  gap: 8px 26px;
  overflow-x: auto;
  margin: 0 0 32px;
  padding-bottom: 1px;
  scrollbar-width: none;
}
.years button {
  flex: 0 0 auto;
  position: relative;
  padding: 5px 0 9px;
  color: var(--soft);
  white-space: nowrap;
}
.years button:hover,
.years button.is-on { color: var(--ink); }
.years button.is-on::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 1px;
  left: 0;
  height: 1px;
  background: currentColor;
}
.years em { margin-left: 3px; font-size: 0.75em; font-style: normal; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
  gap: clamp(24px, 3.2vw, 42px) clamp(18px, 2.4vw, 30px);
}
.card { min-width: 0; padding: 0; text-align: left; }
.frame {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--tile);
}
.frame img { width: 100%; height: 100%; object-fit: contain; transition: transform 220ms ease; }
.card:hover .frame img { transform: scale(1.018); }
.cap { display: block; margin-top: 11px; }
.cap .title,
.cap .meta { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cap .title { color: var(--ink); font-size: 0.97rem; line-height: 1.45; }
.cap .meta { margin-top: 2px; color: var(--soft); font-size: 0.78rem; line-height: 1.45; }
.ph { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: var(--soft); }
.empty { margin: 30px 0; color: var(--soft); }

.prose,
.cv-block,
.facts,
.contact-lead,
.contact,
.contact-meta { max-width: 830px; }
.prose p { margin: 0 0 1em; }
.prose p:last-child { margin-bottom: 0; }
.statement { margin-bottom: 34px; font-size: 1.03rem; }
.cv-block { padding: 26px 0; border-top: 1px solid var(--line); }
.cv-block:first-child { padding-top: 0; border-top: 0; }
.cv-block h3 { margin: 0 0 16px; font-size: 1.1rem; font-weight: 500; }
.cv-list { margin: 0; padding: 0; list-style: none; }
.cv-list li {
  display: grid;
  grid-template-columns: minmax(72px, 110px) minmax(0, 1fr);
  gap: 22px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.cv-list li:first-child { border-top: 0; }
.cv-list li > span { color: var(--soft); }
.cv-list strong { display: block; font-weight: 500; }
.cv-list em { display: block; color: var(--muted); font-size: 0.9rem; font-style: normal; }
.cv-list p { margin: 4px 0 0; color: var(--muted); font-size: 0.9rem; }
.facts { margin: 34px 0 0; border-top: 1px solid var(--line); }
.facts > div {
  display: grid;
  grid-template-columns: minmax(100px, 160px) minmax(0, 1fr);
  gap: 20px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.facts dt { color: var(--soft); }
.facts dd { margin: 0; }
.facts a,
.contact a { color: inherit; text-underline-offset: 3px; }
.contact-lead { margin: 0 0 24px; }
.contact { margin: 0 0 18px; font-size: clamp(1.2rem, 2.4vw, 1.75rem); }
.contact-meta { color: var(--soft); }
.contact-line { max-width: 830px; margin: 18px 0 0; }
.contact-line span { display: block; margin-bottom: 4px; color: var(--soft); font-size: 0.78rem; letter-spacing: 0.06em; }
.contact-line a, .contact-line strong { color: inherit; font-size: 1rem; font-weight: 500; }
.contact-line a { text-underline-offset: 3px; }
.plate-cap .sale { margin-top: 0; }

.detail-main { min-height: calc(100vh - 55px); }
.detail-main > .wrap { width: min(920px, calc(100% - 44px)); }
.detail { padding: 20px 0 86px; }
.detail-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 32px;
  padding: 10px 0 18px;
  border-bottom: 1px solid var(--line);
}
.detail-bar button { padding: 0; color: var(--muted); }
.detail-bar button:hover { color: var(--ink); }
.pager { display: flex; align-items: center; gap: 16px; white-space: nowrap; }
.pager span { color: var(--soft); font-size: 0.85rem; }
.stage {
  display: grid;
  justify-items: center;
  gap: 0.85rem;
  margin: 0;
}
.stage-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.stage-visual img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(100%, 720px);
  max-height: min(72vh, 780px);
  object-fit: contain;
}
.detail-thumbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
}
.detail-thumb {
  flex: 0 0 3.4rem;
  width: 3.4rem;
  height: 3.4rem;
  padding: 0;
  border: 1px solid transparent;
  background: var(--tile);
  opacity: 0.72;
  cursor: pointer;
}
.detail-thumb img { width: 100%; height: 100%; object-fit: cover; }
.detail-thumb:hover,
.detail-thumb.is-on { border-color: var(--ink); opacity: 1; }
.plate-cap {
  display: grid;
  gap: 0.28rem;
  justify-items: center;
  max-width: 36rem;
  margin: 0.15rem 0 0;
  text-align: center;
}
.plate-cap p { margin: 0; }
.plate-cap .title {
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1.4;
}
.plate-cap .meta,
.plate-cap .sale {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}
.inquire { margin: 0.15rem 0 0; }
.inquire button {
  min-height: 0;
  padding: 0;
  border: 0;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.inquire button:hover { color: var(--ink); background: transparent; }
.detail-statement {
  max-width: 720px;
  margin: 48px auto 0;
  padding-top: 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.detail-statement p { margin: 0 0 1em; }
.detail-statement p:last-child { margin-bottom: 0; }

.foot {
  padding: 24px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--soft);
  font-size: 0.78rem;
  text-align: center;
}
.load-error { padding: 80px 0; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap,
  .detail-main > .wrap { width: min(100% - 28px, var(--max)); }
  .utility { min-height: 48px; }
  .langs { gap: 2px 13px; }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; padding: 32px 0 38px; }
  .hero-visual { min-height: 180px; }
  .hero-visual img { max-height: 58vh; }
  .hero-copy h1 { font-size: clamp(2.15rem, 13vw, 3.7rem); }
  .name-en { margin-top: 10px; }
  .hero-meta { margin-top: 18px; }
  .tabs { gap: 28px; }
  .panel { padding-top: 30px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 14px; }
  .cap { margin-top: 9px; }
  .facts > div,
  .cv-list li { grid-template-columns: 1fr; gap: 2px; }
  .detail { padding-top: 12px; }
  .detail-bar { align-items: flex-start; }
  .pager { gap: 10px; font-size: 0.88rem; }
  .detail-thumb { flex-basis: 3rem; width: 3rem; height: 3rem; }
  .detail-statement { margin-top: 34px; padding-top: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .frame img { transition: none; }
}
