:root {
  color-scheme: light;
  --paper: #ffffff;
  --panel: #f6f8fb;
  --line: #c2cad4;
  --ink: #1a232c;
  --muted: #5b6874;
  --link: #1d4d87;
  --accent: #194f86;
  --accent-soft: #d8e5f4;
  --notice: #fff4df;
  --notice-line: #d6b36a;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: "Yu Gothic", "Hiragino Sans", Meiryo, sans-serif; color: var(--ink); background: var(--paper); line-height: 1.6; }
a { color: var(--link); text-decoration: underline; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 20; }
.skip-link:focus { left: 12px; }
.utility-inner { width: min(1180px, calc(100% - 24px)); margin: 0 auto; }
.utility-bar { border-bottom: 1px solid var(--line); background: #f3f5f7; font-size: 12px; }
.utility-links { display: flex; gap: 14px; padding: 8px 0; flex-wrap: wrap; }
.page-header { border-bottom: 2px solid var(--line); padding: 16px 0 20px; }
.header-topline, .section-head, .record-topline, .footer-grid { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.social-links, .search-guides, .footer-links, .lang-switch, .vote-widget { display: flex; gap: 10px; flex-wrap: wrap; }
.lang-switch button, .search-button, .vote-widget button { border: 1px solid #335a84; background: var(--accent); color: #fff; padding: 8px 14px; cursor: pointer; }
.lang-switch button[aria-pressed="false"] { background: #fff; color: var(--link); }
.search-button-secondary { background: #fff; color: var(--link); }
.eyebrow { margin: 18px 0 4px; font-size: 12px; letter-spacing: 0.08em; }
h1 { margin: 0; font-size: clamp(32px, 5vw, 52px); line-height: 1.1; font-weight: 700; }
.lede { max-width: 980px; margin: 12px 0 0; font-size: 15px; }
.search-shell, .record-card, .news-block, .usage-block, .contents-block, .status-box { border: 1px solid var(--line); background: #fff; padding: 16px; }
.search-shell { margin-top: 22px; background: var(--panel); }
.search-shell h2, .section-head h2, .contents-block h2, .news-block h2, .usage-block h2 { margin: 0; font-size: 22px; }
.search-heading p { margin: 6px 0 0; font-size: 14px; }
.search-form { display: grid; grid-template-columns: minmax(240px, 1fr) auto auto; gap: 10px; align-items: end; margin-top: 14px; }
.search-field { display: grid; gap: 6px; font-size: 13px; }
.search-field input { border: 1px solid var(--line); padding: 10px 12px; min-width: 0; background: #fff; }
.search-guides { margin-top: 12px; font-size: 13px; }
.page-main { padding: 20px 0 40px; }
.status-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.status-box { display: grid; gap: 4px; font-size: 13px; }
.content-grid { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(260px, 0.9fr); gap: 18px; margin-top: 16px; }
.section-head { align-items: end; border-bottom: 2px solid var(--line); padding-bottom: 8px; margin-bottom: 14px; }
.breadcrumb, .result-count { font-size: 12px; color: var(--muted); }
.record-alert { background: var(--notice); border: 1px solid var(--notice-line); padding: 10px 12px; font-size: 13px; }
.record-badge { border: 1px solid #58789a; padding: 3px 9px; font-size: 12px; background: var(--accent-soft); }
.record-card h3 { margin: 10px 0 10px; font-size: 28px; line-height: 1.25; }
.record-copy { margin: 0; }
.record-body { display: grid; grid-template-columns: minmax(200px, 250px) minmax(0, 1fr); gap: 16px; margin-top: 16px; }
.image-panel { border: 1px solid var(--line); padding: 12px; background: var(--panel); font-size: 13px; }
.meta-table, .holdings-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.meta-table th, .meta-table td, .holdings-table th, .holdings-table td { border: 1px solid var(--line); padding: 8px 10px; vertical-align: top; }
.meta-table th, .holdings-table th { width: 28%; background: #f4f7fa; text-align: left; font-weight: 700; }
.holding-block { margin-top: 16px; }
.holding-block h4 { margin: 0 0 8px; font-size: 18px; }
.vote-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; margin-top: 18px; border-top: 1px solid var(--line); padding-top: 16px; align-items: center; }
.vote-label { margin: 0 0 4px; font-size: 12px; letter-spacing: 0.08em; }
.vote-panel h4 { margin: 0 0 6px; font-size: 20px; }
.vote-panel p { margin: 0; }
.vote-widget { align-items: center; justify-content: flex-end; }
.vote-widget em { font-size: 12px; color: var(--muted); }
.contents-block { margin-top: 18px; }
.contents-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.contents-grid article { border: 1px solid var(--line); background: var(--panel); padding: 12px; }
.contents-grid h3 { margin: 0 0 8px; font-size: 17px; }
.contents-grid p, .news-list, .usage-list { margin: 0; padding: 0; }
.news-list, .usage-list { list-style: none; }
.news-list li, .usage-list li { border-top: 1px solid var(--line); padding: 10px 0; font-size: 14px; }
.news-list li:first-child, .usage-list li:first-child { border-top: 0; padding-top: 0; }
.news-list span { display: inline-block; width: 86px; font: 700 12px/1.2 "Courier New", monospace; color: var(--muted); }
.page-footer { margin-top: 30px; border-top: 2px solid var(--line); background: #f3f5f7; padding: 20px 0; }
@media (max-width: 920px) {
  .status-row, .content-grid, .record-body, .contents-grid, .footer-grid, .vote-panel, .search-form { grid-template-columns: 1fr; }
  .vote-widget { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .utility-inner { width: min(100% - 16px, 1180px); }
  .section-head { align-items: start; flex-direction: column; }
  .record-card h3 { font-size: 24px; }
  .meta-table, .holdings-table { font-size: 13px; }
  .meta-table th, .meta-table td, .holdings-table th, .holdings-table td { display: block; width: 100%; }
}
