/* rde-catalog デザインシステム (DESIGN.md)。CSS変数は :root に集約し、セレクタは1階層まで。 */
:root {
  --paper: #ffffff;
  --field: #eef1f4;
  --field-2: #f7f9fa;
  --ink: #16232f;
  --ink-2: #4d616f;
  --ink-3: #7b8c98;
  --rule: #ccd6de;
  --rule-hair: #e2e8ed;
  --mark: #a5123c;
  --d0: #f2f5f8;
  --d1: #cfdde9;
  --d2: #a2bed4;
  --d3: #6f9bbd;
  --d4: #42749f;
  --d5: #1d4b76;
  --chip-key: #9fb3c2;
  --on-ink-dim: #c8d4dd;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic Medium", "Noto Sans JP", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
img { display: block; }
:focus-visible { outline: 2px solid var(--mark); outline-offset: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* マストヘッド */
.mast { border-bottom: 1px solid var(--ink); background: var(--paper); position: relative; z-index: 5; }
.mast .wrap { padding-top: 26px; padding-bottom: 20px; }
/* タブと検索窓の帯がある画面では、帯をマストヘッドの下端に密着させる (DESIGN.md §4.1) */
.mast .wrap.has-nav { padding-bottom: 0; }
.brand h1 { margin: 0; font-size: 25px; font-weight: 700; letter-spacing: -0.015em; }
.brand h1 a { display: inline-flex; align-items: center; gap: 12px; }
.brand a { text-decoration: none; }
.brand .logo { height: 40px; width: auto; display: block; }
/* 右上: 管理画面へのリンク (管理者だけ。docs/02 §5.8) とログアウト */
.brand { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 18px; }
.account { display: inline-flex; gap: 18px; align-items: baseline; font-size: 13px; }
.account .adminlink { text-decoration: underline; color: var(--ink-2); }
.tally { margin: 9px 0 0; display: flex; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); }
.tally span { padding-right: 16px; margin-right: 16px; border-right: 1px solid var(--rule-hair); }
.tally span:last-child { border-right: 0; }
.tally b { font-weight: 700; color: var(--ink); }

/* 検索窓と型付きサジェスト (DESIGN.md §5.1) */
.searchwrap { position: relative; max-width: 680px; margin: 16px 0 0; }
/* タブ (左) と検索窓 (右端) の帯 */
.navband { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 10px 24px; margin-top: 18px; }
.navband .searchwrap { flex: 0 1 420px; margin: 0 0 8px; }
.navband .searchbar input { padding: 9px 12px; }
.searchbar { display: flex; border: 1px solid var(--ink); }
.searchbar input { flex: 1; border: 0; padding: 12px 13px; font: inherit; background: var(--paper); min-width: 0; }
.searchbar input:focus { outline: 0; background: var(--field-2); }
.searchbar button { border: 0; border-left: 1px solid var(--ink); background: var(--ink); color: #fff; padding: 0 20px; cursor: pointer; font-weight: 700; font-size: 14px; }
.suggest { position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); border: 1px solid var(--ink); border-top: 0; max-height: 62vh; overflow-y: auto; z-index: 20; }
.suggest[hidden] { display: none; }
.sgroup { margin: 0; font-size: 12px; color: var(--ink-3); padding: 9px 13px 4px; border-top: 1px solid var(--rule-hair); }
.sgroup.first { border-top: 0; padding-top: 11px; }
.sitem { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: baseline; width: 100%; padding: 6px 13px; cursor: pointer; font-size: 14px; text-decoration: none; }
.sitem .en { display: block; font-size: 12px; color: var(--ink-2); }
.sitem .n { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.sitem[aria-selected="true"], .sitem:hover { background: var(--ink); color: #fff; }
.sitem[aria-selected="true"] .en, .sitem[aria-selected="true"] .n, .sitem:hover .en, .sitem:hover .n { color: var(--on-ink-dim); }
.sfree { display: block; border-top: 1px solid var(--rule); padding: 9px 13px; width: 100%; cursor: pointer; font-size: 13.5px; text-decoration: none; }
.sfree .n { color: var(--ink-3); font-size: 12.5px; }
.sfree[aria-selected="true"], .sfree:hover { background: var(--ink); color: #fff; }
.sfree[aria-selected="true"] .n, .sfree:hover .n { color: var(--on-ink-dim); }
.snone { padding: 12px 13px; font-size: 13px; color: var(--ink-3); margin: 0; }

/* セクション */
section { padding: 32px 0; }
section + section { border-top: 1px solid var(--rule-hair); }
.shead { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 5px; }
.shead h2 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.shead .n { font-size: 13px; color: var(--ink-3); }
.lede { margin: 0 0 20px; font-size: 13.5px; color: var(--ink-2); max-width: 66ch; }
.hint { font-size: 12.5px; color: var(--ink-2); margin: 0; }
.crumb { padding: 18px 0 0; margin: 0; font-size: 13px; color: var(--ink-2); }

/* タブ (DESIGN.md §5.5) */
.tabs { display: flex; border-bottom: 1px solid var(--rule); margin-top: 28px; flex-wrap: wrap; }
/* マストヘッドの中では、下端の --ink の線がタブの線を兼ねる */
.navband .tabs { border-bottom: 0; margin-top: 0; }
.tabs a { padding: 11px 16px 9px; cursor: pointer; font-size: 14.5px; border-bottom: 2px solid transparent; margin-bottom: -1px; display: flex; gap: 8px; align-items: baseline; white-space: nowrap; text-decoration: none; }
.tabs a:first-child { padding-left: 0; }
.tabs a .n { font-size: 12.5px; color: var(--ink-3); }
.tabs a:hover { background: var(--field-2); }
.tabs a[aria-selected="true"], .tabs a[aria-current="page"] { border-bottom-color: var(--ink); font-weight: 700; }
.panel { padding-top: 30px; }
.panel section:first-child { padding-top: 0; border-top: 0; }

/* 計測手法 */
.tech-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; }
.tech { display: block; text-decoration: none; }
.tech .im { display: block; width: 100%; aspect-ratio: 3 / 2; background: var(--field); overflow: hidden; }
.tech .im img { width: 100%; height: 100%; object-fit: cover; }
.tech .nm { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 2px 0; gap: 8px; }
.tech b { font-size: 14.5px; }
.tech .n { font-size: 12.5px; color: var(--ink-3); }
.tech:hover b { text-decoration: underline; }

/* 索引の列とファセットボタン (DESIGN.md §5.3) */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.idx h3 { margin: 0 0 8px; font-size: 14px; font-weight: 700; }
.idx .lede { margin-bottom: 10px; }
.idxfilter { border: 1px solid var(--rule); padding: 6px 9px; font: inherit; font-size: 13px; width: 100%; max-width: 260px; margin-bottom: 10px; }
.idx ul { list-style: none; margin: 0; padding: 0; }
.idx li { margin-bottom: 1px; }
.fbtn { display: flex; width: 100%; justify-content: space-between; gap: 12px; align-items: baseline; border: 0; background: transparent; padding: 5px 7px 5px 0; cursor: pointer; text-align: left; font-size: 14px; text-decoration: none; }
.fbtn .en { display: block; font-size: 12px; color: var(--ink-2); }
.fbtn:hover { background: var(--field); }
.fbtn .n { color: var(--ink-3); font-size: 12.5px; white-space: nowrap; }
.fbtn[aria-pressed="true"] { background: var(--ink); color: #fff; padding-left: 7px; }
.fbtn[aria-pressed="true"] .n, .fbtn[aria-pressed="true"] .en { color: var(--on-ink-dim); }
.fbtn:disabled { color: var(--ink-3); opacity: 0.45; cursor: default; }
.fbtn:disabled:hover { background: transparent; }
.idxmore { font-size: 12.5px; color: var(--ink-3); padding: 6px 0 0; margin: 0; }
.facets .idx { margin-bottom: 24px; }

/* 研究者 */
.people { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; }
.person { display: grid; grid-template-columns: 1fr auto 108px; gap: 16px; align-items: center; width: 100%; text-align: left; cursor: pointer; padding: 10px 6px 10px 0; border-bottom: 1px solid var(--rule-hair); text-decoration: none; }
.person:hover { background: var(--field-2); }
.person .who b { font-size: 14.5px; display: block; }
.person .who span { font-size: 12.5px; color: var(--ink-2); }
.mix { display: block; width: 104px; height: 9px; }
.mix-0 { fill: var(--d5); }
.mix-1 { fill: var(--d4); }
.mix-2 { fill: var(--d3); }
.mix-3 { fill: var(--d2); }
.mix-4 { fill: var(--d1); }
.mix-5 { fill: #8fa6b5; }
.person .ims { display: flex; gap: 2px; }
.person .ims span { width: 34px; height: 23px; background: var(--field); overflow: hidden; display: block; }
.person .ims img { width: 100%; height: 100%; object-fit: cover; }

/* 一覧のツールバー */
.results { padding-top: 12px; border-top: 0; }
.toolbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 0; border-bottom: 1px solid var(--ink); }
.count { font-size: 14px; font-weight: 700; white-space: nowrap; }
.count em { font-style: normal; font-weight: 400; color: var(--ink-2); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; min-width: 200px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 7px; background: var(--ink); color: #fff; border: 0; padding: 4px 8px 4px 10px; font-size: 12.5px; cursor: pointer; text-decoration: none; }
.chip .k { color: var(--chip-key); }
.chip .x { font-weight: 700; }
.chip.clear { background: transparent; color: var(--mark); text-decoration: underline; padding-left: 2px; }
.nofilter { font-size: 13px; color: var(--ink-3); }
.sortform { display: inline-flex; gap: 6px; }
.sortsel { border: 1px solid var(--rule); background: var(--paper); padding: 6px 8px; font-size: 13px; font-family: inherit; }
.seg { display: flex; border: 1px solid var(--ink); }
.seg a { padding: 6px 13px; font-size: 13px; cursor: pointer; border-right: 1px solid var(--rule); text-decoration: none; }
.seg a:last-child { border-right: 0; }
.seg a[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* 共起条件 (要件書 §4.1.1) */
.cooc { background: var(--field); padding: 12px 16px; display: flex; gap: 10px 16px; flex-wrap: wrap; align-items: baseline; }
.cooc .cap { font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }
.cooc a { border: 1px solid var(--rule); background: var(--paper); cursor: pointer; font-size: 13px; padding: 3px 9px; display: inline-flex; gap: 8px; align-items: baseline; text-decoration: none; }
.cooc a:hover { border-color: var(--ink); }
.cooc a .k { font-size: 11.5px; color: var(--ink-3); }
.cooc a .n { font-size: 12px; color: var(--ink-3); }

/* 一覧の行 (DESIGN.md §5.6) */
.row { border-bottom: 1px solid var(--rule-hair); }
.rowhead { display: grid; grid-template-columns: 20px 92px 1fr auto; gap: 16px; align-items: start; width: 100%; text-align: left; background: transparent; border: 0; padding: 14px 6px 14px 0; cursor: pointer; }
.rowhead:hover { background: var(--field-2); }
.caret { color: var(--ink-3); font-size: 12px; padding-top: 3px; }
.thumb { width: 92px; height: 62px; background: var(--field); display: block; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.ph { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: var(--ink-3); background: var(--field); }
.rname { display: block; margin: 0 0 3px; font-size: 15.5px; font-weight: 700; letter-spacing: -0.005em; }
.rmeta { font-size: 12.5px; color: var(--ink-2); display: flex; flex-wrap: wrap; }
.rmeta span { padding-right: 13px; margin-right: 13px; border-right: 1px solid var(--rule-hair); }
.rmeta span:last-child { border-right: 0; }
.rwhy { margin-top: 5px; font-size: 12.5px; color: var(--mark); display: block; }
.rtiles { text-align: right; white-space: nowrap; padding-left: 8px; }
.rtiles b { font-size: 19px; font-weight: 700; display: block; line-height: 1.2; }
.rtiles small { font-size: 11.5px; color: var(--ink-3); }
.tagline { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 6px; }
.tag { font-size: 11.5px; border: 1px solid var(--rule); padding: 1px 7px; color: var(--ink-2); text-decoration: none; background: transparent; }
.expand { padding: 4px 0 20px 128px; background: var(--field-2); border-top: 1px solid var(--rule-hair); }
.expand[hidden] { display: none; }
.expand-in { padding: 16px 18px 4px 0; }
.mtable { border-collapse: collapse; width: 100%; max-width: 720px; font-size: 13px; }
.mtable th { text-align: left; font-weight: 500; color: var(--ink-3); font-size: 12px; border-bottom: 1px solid var(--rule); padding: 0 14px 6px 0; }
.mtable td { padding: 5px 14px 5px 0; border-bottom: 1px solid var(--rule-hair); vertical-align: top; }
.mtable td.en { color: var(--ink-2); }
.mtable td.unit { color: var(--ink-2); white-space: nowrap; }
.mtable tr[hidden] { display: none; }
/* 詳細ページの全件の表は、コンテナ幅いっぱいに広げて字を大きくする (DESIGN.md §5.6a) */
.expand-in.expand-full { padding-right: 0; }
.mtable.mtable-full { max-width: none; font-size: 14.5px; }
.mtable.mtable-full th:last-child, .mtable.mtable-full td:last-child { padding-right: 0; }
.mtable.mtable-full th { font-size: 13px; padding-bottom: 8px; }
.mtable.mtable-full td { padding-top: 7px; padding-bottom: 7px; }
.mlink { text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--rule); }
.mlink:hover { text-decoration-color: var(--mark); }
.more { margin-top: 12px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.linkout { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* 画像一覧 (DESIGN.md §4.3) */
.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 2px; margin-top: 2px; }
.tile { position: relative; background: var(--field); cursor: pointer; aspect-ratio: 3 / 2; overflow: hidden; display: block; text-decoration: none; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile .cap { position: absolute; inset: auto 0 0 0; background: rgba(22, 35, 47, 0.93); color: #fff; padding: 7px 8px; font-size: 11.5px; line-height: 1.35; text-align: left; opacity: 0; transform: translateY(100%); }
.tile:hover .cap, .tile:focus-visible .cap { opacity: 1; transform: translateY(0); }
.tile .ph { font-size: 17px; }

/* マトリクス (DESIGN.md §5.7) */
.matrix-scroll { overflow-x: auto; }
table.matrix { border-collapse: collapse; font-size: 13px; }
table.matrix th { font-weight: 500; color: var(--ink-2); text-align: left; padding: 0 10px 8px 0; white-space: nowrap; }
table.matrix tbody th { padding-right: 14px; color: var(--ink); font-weight: 700; font-size: 13.5px; }
table.matrix td { padding: 0 3px 3px 0; }
.cell { width: 82px; height: 46px; display: flex; align-items: center; justify-content: center; cursor: pointer; background: var(--d0); color: var(--ink-3); font-size: 14px; font-weight: 700; text-decoration: none; }
.cell.d1 { background: var(--d1); color: var(--ink); }
.cell.d2 { background: var(--d2); color: var(--ink); }
.cell.d3 { background: var(--d3); color: #fff; }
.cell.d4 { background: var(--d4); color: #fff; }
.cell.d5 { background: var(--d5); color: #fff; }
.cell.empty { background: var(--paper); border: 1px dashed var(--rule); color: var(--ink-3); font-weight: 400; cursor: default; }
/* ホバーは背景色を変えない (濃度の意味が壊れるため)。内側の枠線で示す */
a.cell:hover { outline: 2px solid var(--mark); outline-offset: -2px; }
.legend { margin-top: 14px; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-2); }
.legend i { display: inline-block; width: 26px; height: 11px; }
.legend .d1 { background: var(--d1); }
.legend .d2 { background: var(--d2); }
.legend .d3 { background: var(--d3); }
.legend .d4 { background: var(--d4); }
.legend .d5 { background: var(--d5); }
.legend .empty { background: var(--paper); border: 1px dashed var(--rule); }

/* ページ送り */
.pager { display: flex; gap: 4px; align-items: center; padding: 22px 0; font-size: 13px; flex-wrap: wrap; }
.pager a, .pager .disabled { border: 1px solid var(--rule); background: var(--paper); padding: 5px 11px; text-decoration: none; }
.pager .disabled { color: var(--ink-3); }
.pager a[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.pager .gap { color: var(--ink-3); padding: 0 4px; }
.pager .note { margin-left: 12px; color: var(--ink-3); }

/* 詳細 (DESIGN.md §5.8) */
.dhead { display: grid; grid-template-columns: 1fr 300px; gap: 36px; padding: 16px 0 30px; border-bottom: 1px solid var(--ink); }
.dhead h2 { margin: 0 0 10px; font-size: 27px; line-height: 1.3; font-weight: 700; letter-spacing: -0.02em; }
.dfacts { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; font-size: 13.5px; margin: 16px 0 0; }
.dfacts dt { color: var(--ink-3); }
.dfacts dd { margin: 0; }
.dthumb { background: var(--field); width: 100%; aspect-ratio: 3 / 2; overflow: hidden; }
.dthumb img { width: 100%; height: 100%; object-fit: cover; }
.dthumb .ph { font-size: 20px; }
.cta { display: inline-block; margin-top: 20px; background: var(--mark); color: #fff; padding: 8px 14px; font-size: 13.5px; font-weight: 700; text-decoration: none; }
.cta:hover { background: #7d0e2e; }
.mfilter { border: 1px solid var(--rule); padding: 7px 10px; font: inherit; font-size: 13px; width: 260px; margin-bottom: 14px; }
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.rel { text-align: left; cursor: pointer; text-decoration: none; display: block; }
.rel .t { width: 100%; aspect-ratio: 3 / 2; background: var(--field); overflow: hidden; display: block; }
.rel .t img { width: 100%; height: 100%; object-fit: cover; }
.rel .h4 { display: block; margin: 8px 0 2px; font-size: 13.5px; font-weight: 700; }
.rel .p { display: block; font-size: 12px; color: var(--ink-2); }
.rel:hover .h4 { text-decoration: underline; }

/* 空状態 (DESIGN.md §8) */
.empty-state { padding: 36px 0; max-width: 60ch; }
.empty-state h2, .empty-state h3 { margin: 0 0 8px; font-size: 16px; }
.empty-state p { margin: 0 0 14px; color: var(--ink-2); font-size: 13.5px; }
.relax { display: inline-block; border: 1px solid var(--ink); background: var(--paper); padding: 6px 12px; cursor: pointer; font-size: 13px; margin: 0 8px 8px 0; text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
@media (max-width: 980px) {
  .tech-row { grid-template-columns: repeat(3, 1fr); }
  .two, .people { grid-template-columns: 1fr; gap: 0; }
  .dhead, .related { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .wrap { padding: 0 16px; }
  /* 狭い画面では検索窓を幅いっぱいで先に置き、タブを下端に残す */
  .navband .searchwrap { order: -1; flex-basis: 100%; margin: 0; }
  /* タブは折り返さず横に送る (下端の線に下線を揃えたまま) */
  .navband .tabs { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; }
  .rowhead { grid-template-columns: 16px 68px 1fr; gap: 10px; }
  .thumb { width: 68px; height: 46px; }
  .rtiles { grid-column: 2 / -1; text-align: left; padding-left: 0; }
  .expand { padding-left: 0; }
  .tech-row { grid-template-columns: repeat(2, 1fr); }
  .person { grid-template-columns: 1fr auto; }
  .person .ims { display: none; }
}

/* 管理プレーン (docs/02 §5.8)。利用者向けと同じ部品で、フォームだけ足す */
.flash { margin: 18px 0 0; padding: 10px 14px; background: var(--field); font-size: 13.5px; }
.flash.error { border-left: 3px solid var(--mark); }
.inline-form { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin: 12px 0; font-size: 13.5px; }
.inline-form input[type="text"], .inline-form input[type="email"] { border: 1px solid var(--rule); padding: 6px 9px; font: inherit; font-size: 13px; }
.inline-form button, .admin form button { border: 1px solid var(--ink); background: var(--paper); padding: 6px 12px; cursor: pointer; font-size: 13px; }
.inline-form button:hover, .admin form button:hover { background: var(--ink); color: #fff; }
.inline-form button:disabled { opacity: 0.45; cursor: default; }
.admin textarea { width: 100%; max-width: 900px; border: 1px solid var(--rule); padding: 10px 12px; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12.5px; line-height: 1.5; }
.admin .mtable { max-width: none; }
.admin .mtable th[scope="row"] { color: var(--ink-3); font-weight: 500; white-space: nowrap; }
.admin .mtable td.n { text-align: right; }
.admin .mtable td.err { color: var(--ink-2); font-size: 12px; word-break: break-all; }
.state { padding: 1px 8px; font-size: 12px; }
.state.on { background: var(--d4); color: #fff; }
.state.off { border: 1px dashed var(--rule); color: var(--ink-3); }
.admin .tabs { margin-top: 18px; }

/* ログイン (docs/03 §6) */
.logout { display: inline-flex; gap: 10px; align-items: baseline; font-size: 13px; }
.logout .who { color: var(--ink-2); }
.logout button { border: 1px solid var(--rule); background: var(--paper); padding: 3px 10px; cursor: pointer; font-size: 12.5px; }
.login form { display: grid; gap: 12px; max-width: 420px; }
.login label { display: grid; gap: 4px; font-size: 13.5px; }
.login input { border: 1px solid var(--rule); padding: 8px 10px; font: inherit; }
.login button { border: 1px solid var(--ink); background: var(--ink); color: #fff; padding: 9px 14px; cursor: pointer; font-size: 14px; justify-self: start; }
.login-reset { display: grid; gap: 8px; max-width: 420px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--rule); }

/* 詳細ページのカタログ情報 (DESIGN.md §5.10)。値は pre-wrap で改行と字下げを保つ */
.cfields { display: grid; grid-template-columns: 11em minmax(0, 1fr); margin: 0; border-top: 1px solid var(--rule-hair); }
.cfields dt, .cfields dd { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--rule-hair); }
.cfields dt { padding-right: 18px; font-size: 13px; color: var(--ink-2); }
.cfields dd { font-size: 14px; color: var(--ink); }
.cfields .cval { white-space: pre-wrap; overflow-wrap: anywhere; }
.cfields summary { cursor: pointer; font-size: 13px; color: var(--ink-2); text-decoration: underline; }
.cfields details[open] summary { margin-bottom: 8px; }
@media (max-width: 620px) {
  .cfields { grid-template-columns: minmax(0, 1fr); }
  .cfields dt { padding-bottom: 2px; border-bottom: 0; }
  .cfields dd { padding-top: 0; }
}
