:root {
  color-scheme: light;
  --ink: #20231f;
  --muted: #6e716a;
  --paper: #f4f0e8;
  --paper-deep: #e9e3d8;
  --panel: #fffdf8;
  --line: #d7d0c4;
  --line-dark: #b8afa1;
  --red: #d94a45;
  --green: #4c8b67;
  --blue: #2d8fbf;
  --series: #a16c25;
  --indigo: #263a55;
  --gold: #b28642;
  --shadow: 0 18px 46px rgba(48, 42, 34, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(38, 58, 85, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(38, 58, 85, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px;
  font-family: Inter, "Noto Sans SC", "Noto Sans JP", "Microsoft YaHei", sans-serif;
}

button, input, select { font: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

a { color: var(--indigo); }

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

.site-header,
main,
footer {
  width: min(1460px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.site-header p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.brand strong { font-size: 20px; }

.brand-kicker,
.eyebrow,
.filter-kicker {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
}

.hero {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.72fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding: 34px 0 30px;
}

.eyebrow { margin: 0 0 18px; }

h1, h2, p, dl, dd { margin-top: 0; }

h1 {
  max-width: 820px;
  margin-bottom: 14px;
  font-family: "Noto Serif SC", "Songti SC", SimSun, serif;
  font-size: clamp(32px, 3.5vw, 50px);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.lead {
  max-width: 730px;
  margin-bottom: 12px;
  color: #4f544e;
  font-size: 15px;
  line-height: 1.7;
}

.source-note {
  max-width: 760px;
  padding-left: 14px;
  border-left: 3px solid var(--gold);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line-dark);
  background: rgba(255, 253, 248, 0.78);
  box-shadow: 10px 10px 0 rgba(38, 58, 85, 0.05);
}

.hero-stats div {
  min-height: 92px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero-stats div:nth-child(even) { border-right: 0; }
.hero-stats div:nth-last-child(-n + 2) { border-bottom: 0; }

.hero-stats dt {
  margin-bottom: 6px;
  color: var(--indigo);
  font-family: Georgia, serif;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1;
}

.hero-stats dd { margin: 0; color: var(--muted); font-size: 13px; }

.catalogue {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
  padding: 34px 0 80px;
  border-top: 1px solid var(--line-dark);
}

.filters {
  position: sticky;
  top: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 7px 7px 0 rgba(38, 58, 85, 0.045);
}

.filter-heading,
.results-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.filter-heading { margin-bottom: 24px; }
.filter-heading h2 { margin: 3px 0 0; font-size: 24px; }
.filter-kicker { margin: 0; }

.text-button {
  padding: 0;
  border: 0;
  color: var(--indigo);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.search-field,
.select-field {
  display: grid;
  gap: 7px;
  margin-bottom: 22px;
}

.search-field span,
.select-field span,
legend {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

input[type="search"], select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line-dark);
  border-radius: 0;
  color: var(--ink);
  background: #fff;
}

input[type="search"] { padding: 0 12px; }
select { padding: 0 34px 0 10px; }

fieldset {
  min-width: 0;
  margin: 0 0 22px;
  padding: 0;
  border: 0;
}

legend { margin-bottom: 8px; }

.choice-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; }

.mark-choice {
  position: relative;
  min-height: 48px;
  display: grid;
  grid-template-columns: 10px 1fr;
  grid-template-rows: 1fr 1fr;
  column-gap: 7px;
  align-items: center;
  padding: 7px 8px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
}

.mark-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.mark-choice::before {
  content: "";
  grid-row: 1 / 3;
  width: 7px;
  height: 28px;
  background: currentColor;
}

.mark-choice span { align-self: end; color: var(--ink); font-size: 12px; }
.mark-choice b { align-self: start; color: var(--muted); font-size: 11px; }
.mark-choice.red { color: var(--red); }
.mark-choice.green { color: var(--green); }
.mark-choice.blue { color: var(--blue); }
.mark-choice.series { color: var(--series); }
.mark-choice:has(input:not(:checked)) { opacity: 0.36; filter: grayscale(1); }
.mark-choice:has(input:focus-visible) { outline: 2px solid var(--indigo); outline-offset: 2px; }

.segmented { display: flex; border: 1px solid var(--line-dark); }

.segmented button {
  flex: 1;
  min-height: 38px;
  padding: 0 8px;
  border: 0;
  border-right: 1px solid var(--line-dark);
  color: var(--muted);
  background: #fff;
  cursor: pointer;
  font-size: 12px;
}

.segmented button:last-child { border-right: 0; }
.segmented button[aria-pressed="true"] { color: #fff; background: var(--indigo); }

.scope-details {
  border-top: 1px solid var(--line);
  padding-top: 15px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.scope-details summary { cursor: pointer; color: var(--ink); }
.scope-details p { margin: 10px 0 0; }

.results { min-width: 0; }

.results-bar {
  min-height: 44px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.results-bar p { margin: 0; color: var(--muted); font-size: 13px; }

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.region-section { grid-column: 1 / -1; }

.region-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 24px 0 12px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line-dark);
}

.region-heading:first-child { margin-top: 0; }
.region-heading h2 { margin: 0; font-family: "Noto Serif SC", serif; font-size: 25px; }
.region-heading span { color: var(--muted); font-size: 12px; }

.region-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.work-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.work-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.work-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 2;
  width: 5px;
  background: var(--mark-color);
}

.work-card.red { --mark-color: var(--red); }
.work-card.green { --mark-color: var(--green); }
.work-card.blue { --mark-color: var(--blue); }
.work-card.series { --mark-color: var(--series); }

.work-card button {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: 166px auto;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.cover-frame {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--paper-deep), #fff);
}

.cover-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 220ms ease; }
.work-card:hover .cover-frame img { transform: scale(1.025); }

.media-label,
.mark-label {
  position: absolute;
  top: 10px;
  padding: 5px 8px;
  color: #fff;
  background: rgba(32, 35, 31, 0.82);
  font-size: 10px;
  letter-spacing: 0.05em;
}

.media-label { left: 12px; }
.mark-label { right: 10px; background: var(--mark-color); }

.work-card-body { display: flex; flex-direction: column; gap: 13px; padding: 16px 17px 17px 20px; }

.work-card h3 { margin: 0; font-size: 17px; line-height: 1.45; }
.original-title { min-height: 1.4em; margin: 3px 0 0; color: var(--muted); font-size: 11px; line-height: 1.4; }

.region-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.region-tags span { padding: 3px 6px; background: var(--paper); color: #5e615b; font-size: 10px; }

.card-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: auto;
}

.card-stats span { color: var(--muted); font-size: 10px; }
.card-stats b { display: block; margin-bottom: 1px; color: var(--ink); font-family: Georgia, serif; font-size: 17px; }

.empty-state {
  padding: 80px 20px;
  border: 1px dashed var(--line-dark);
  text-align: center;
}
.empty-state p { margin: 8px 0 0; color: var(--muted); }

.work-dialog {
  width: min(1240px, calc(100% - 30px));
  max-height: calc(100vh - 28px);
  margin: auto;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: var(--panel);
  box-shadow: 0 30px 100px rgba(20, 23, 20, 0.35);
}

.work-dialog::backdrop { background: rgba(25, 29, 27, 0.72); backdrop-filter: blur(4px); }

.dialog-shell { position: relative; min-height: 300px; }

.dialog-close {
  position: sticky;
  top: 12px;
  z-index: 20;
  float: right;
  margin: 12px 12px -52px 0;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(255,255,255,.5);
  color: #fff;
  background: rgba(32, 35, 31, 0.78);
  cursor: pointer;
}

.dialog-hero {
  min-height: 300px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 30px;
  padding: 42px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(22, 31, 42, 0.98), rgba(38, 58, 85, 0.88)),
    var(--indigo);
}

.dialog-cover { width: 100%; height: 216px; object-fit: cover; border: 1px solid rgba(255,255,255,.3); }
.dialog-kicker { margin: 0 0 12px; color: rgba(255,255,255,.66); font-size: 11px; letter-spacing: .12em; }
.dialog-hero h2 { margin: 0 0 8px; font-family: "Noto Serif SC", serif; font-size: clamp(30px, 4vw, 52px); line-height: 1.14; }
.dialog-original { margin: 0 0 22px; color: rgba(255,255,255,.7); }
.dialog-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.dialog-chips span { padding: 6px 9px; border: 1px solid rgba(255,255,255,.28); font-size: 11px; }
.dialog-links { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 23px; }
.dialog-links a { color: #fff; text-underline-offset: 4px; }

.dialog-body { padding: 34px 42px 48px; }

.live-photo {
  display: grid;
  grid-template-columns: minmax(280px, .85fr) 1fr;
  gap: 24px;
  margin-bottom: 34px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}
.live-photo img { width: 100%; max-height: 320px; object-fit: cover; background: var(--paper-deep); }
.live-photo-copy { align-self: center; }
.live-photo-copy .eyebrow { margin-bottom: 10px; }
.live-photo-copy h3 { margin: 0 0 9px; font-size: 23px; }
.live-photo-copy p { color: var(--muted); font-size: 13px; line-height: 1.75; }
.live-photo-copy a { text-underline-offset: 3px; }

.point-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}
.point-toolbar h3 { margin: 0 0 4px; font-size: 24px; }
.point-toolbar p { margin: 0; color: var(--muted); font-size: 12px; }
.point-toolbar label { display: grid; gap: 5px; color: var(--muted); font-size: 11px; }
.point-toolbar select { min-width: 180px; }

.point-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }

.point-card { min-width: 0; border: 1px solid var(--line); background: #fff; }
.scene-frame { aspect-ratio: 16 / 9; display: grid; place-items: center; overflow: hidden; background: #e9e6df; }
.scene-frame img { width: 100%; height: 100%; object-fit: cover; }
.scene-missing { color: var(--muted); font-size: 12px; }
.point-copy { padding: 14px; }
.point-copy h4 { margin: 0 0 5px; font-size: 15px; line-height: 1.45; }
.point-jp { min-height: 1.4em; margin: 0 0 9px; color: var(--muted); font-size: 11px; }
.point-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 9px; }
.point-meta span { padding: 3px 6px; background: var(--paper); color: #5e615b; font-size: 10px; }
.point-note { margin: 0 0 10px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.coordinates { margin: 0 0 10px; color: var(--muted); font-family: ui-monospace, monospace; font-size: 10px; }
.point-links { display: flex; flex-wrap: wrap; gap: 10px; }
.point-links a { font-size: 11px; text-underline-offset: 3px; }

.show-more {
  width: 100%;
  min-height: 48px;
  margin-top: 18px;
  border: 1px solid var(--line-dark);
  color: var(--indigo);
  background: var(--paper);
  cursor: pointer;
}

.dialog-disclaimer { margin: 28px 0 0; padding: 14px; background: var(--paper); color: var(--muted); font-size: 11px; line-height: 1.7; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 36px;
  border-top: 1px solid var(--line-dark);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}

footer p { margin: 0; }
.filing { display: flex; flex-wrap: wrap; gap: 18px; }
.filing a { display: inline-flex; align-items: center; gap: 5px; }
.filing img { width: 16px; height: 18px; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

@media (max-width: 1180px) {
  .work-grid, .region-grid, .point-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { grid-template-columns: 1fr minmax(360px, .7fr); gap: 50px; }
}

@media (max-width: 880px) {
  .site-header, main, footer { width: min(100% - 28px, 720px); }
  .site-header p { display: none; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding: 32px 0; }
  .hero-stats { max-width: 600px; }
  .catalogue { grid-template-columns: 1fr; }
  .filters { position: static; }
  .choice-row { max-width: 420px; }
  .dialog-hero { grid-template-columns: 180px 1fr; padding: 32px; }
  .dialog-cover { height: 180px; }
  .dialog-body { padding: 28px 32px 42px; }
  footer { flex-direction: column; }
}

@media (max-width: 620px) {
  .site-header { min-height: 68px; }
  .brand { align-items: flex-start; flex-direction: column; gap: 2px; }
  .hero { gap: 24px; padding-top: 28px; }
  h1 { font-size: 34px; }
  .lead { font-size: 15px; }
  .hero-stats div { min-height: 84px; padding: 15px; }
  .catalogue { padding-top: 24px; }
  .results-bar { align-items: flex-start; flex-direction: column; }
  .work-grid, .region-grid, .point-grid { grid-template-columns: 1fr; }
  .work-card button { grid-template-columns: 112px 1fr; grid-template-rows: auto; }
  .cover-frame { min-height: 180px; }
  .card-stats { gap: 3px; }
  .dialog-hero { grid-template-columns: 1fr; padding: 24px; }
  .dialog-cover { width: 150px; height: 190px; }
  .dialog-hero h2 { font-size: 32px; }
  .dialog-body { padding: 24px 18px 36px; }
  .live-photo { grid-template-columns: 1fr; }
  .point-toolbar { align-items: stretch; flex-direction: column; }
  .point-toolbar select { width: 100%; }
  footer { padding-bottom: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
