/* フェーズ16：受付簿（外部保全記録室）と、結末のページの追記・封筒・鏡の前の一段落 */

/* ---- 受付簿のページ（preservation.css の表の体裁に足す） ---- */
.ledger-head-row{display:flex;justify-content:space-between;align-items:baseline;gap:12px;flex-wrap:wrap;margin:0 0 6px}
.ledger-count{font-size:12px;color:#4a6670;letter-spacing:.06em;font-family:ui-monospace,SFMono-Regular,Consolas,monospace}
.ledger-table th:nth-child(1),.ledger-table td:nth-child(1){width:4.6em;white-space:nowrap}
.ledger-table th:nth-child(3),.ledger-table td:nth-child(3){width:5.6em}
.ledger-table td{overflow-wrap:anywhere;word-break:break-word}
.ledger-no{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;color:#5b4a3c}
.ledger-name{display:block;font-weight:bold;color:#2c444e}
.ledger-since{display:block;margin-top:3px;font-size:11px;color:#5d7178;letter-spacing:.04em}
.ledger-state{display:inline-block;padding:3px 7px;border:1px solid #8a9aa0;color:#4d5f66;background:#eef1f1;font-size:11px;white-space:nowrap}
.ledger-state[data-state="調査中"]{border-color:#a4793a;color:#6f4b13;background:#f8efd9}
.ledger-state[data-state="完了"]{border-color:#60828a;color:#2f5964;background:#e4f0ef}
.ledger-state[data-state="保留"]{border-style:dashed;border-color:#8b7c62;color:#5a5040;background:#f4f1ea}
.ledger-note{color:#283940}
.ledger-link{color:#2d5864;text-decoration:underline;text-underline-offset:2px}
.ledger-link:focus-visible,.ledger-open:focus-visible{outline:3px solid #b46c32;outline-offset:3px}
.ledger-open{margin-top:6px;border:1px solid #698b95;background:#eff7f5;color:#315762;padding:6px 10px;font-size:12px;font-family:inherit;cursor:pointer}
.ledger-open:hover{background:#d3e8e4;color:#213f48}
.ledger-finding h2{margin-bottom:10px}
.ledger-finding-meta{font-size:12px;color:#4a6670;margin:0 0 10px;letter-spacing:.04em}
.ledger-finding p{margin:0 0 10px}
.ledger-finding .ledger-finding-last{margin:16px 0 0;font-weight:bold;color:#3a2f26;letter-spacing:.06em}
.ledger-script-note{margin:12px 0;color:#42585d;font-size:13px}
@media(max-width:700px){
  .ledger-table th,.ledger-table td{padding:6px 5px}
  .ledger-table th:nth-child(1),.ledger-table td:nth-child(1){width:3.9em;font-size:13px}
  .ledger-table th:nth-child(3),.ledger-table td:nth-child(3){width:4.6em}
  .ledger-state{padding:2px 4px;font-size:10px}
}

/* ---- 結末のページの「外部保全記録室 追記」（既存の本文の後に足す、控えめな欄） ---- */
.pres-addendum{--pa-fg:#7a8794;--pa-label:#566470;--pa-bd:#2a333b;--pa-link:#9aa8b6;
  max-width:34em;margin:28px auto 0;padding:10px 14px;border:1px solid var(--pa-bd);border-left-width:3px;
  color:var(--pa-fg);font-size:12px;line-height:1.9;text-align:left;font-family:inherit;letter-spacing:.03em}
.pres-addendum .pres-addendum-label{display:block;margin-bottom:2px;font-size:10px;letter-spacing:.14em;color:var(--pa-label)}
.pres-addendum p{margin:0 0 2px;font-size:12px;line-height:1.9;color:var(--pa-fg)}
.pres-addendum a{color:var(--pa-link);text-decoration:underline;text-underline-offset:2px}
.pres-addendum a:hover,.pres-addendum a:focus-visible{color:#fff}
.pres-addendum a:focus-visible{outline:2px solid #b46c32;outline-offset:2px}

/* ---- 姉妹都市のページ：封筒の表書き（真エンドだけに着いた端末） ---- */
.ledger-envelope{position:relative;margin:14px 0 8px;padding:16px 18px 16px 18px;background:#f5f0e6;border:1px solid #d0c0a0;
  box-shadow:inset 0 0 0 5px #f5f0e6,inset 0 0 0 6px #d9ccb2;color:#2a2418;font-size:14px;line-height:2;overflow-wrap:anywhere}
.ledger-envelope span{display:block}
.ledger-env-kind{font-weight:bold;letter-spacing:.2em;color:#7a2a24}
.ledger-env-to{font-size:15px}
.ledger-env-note{margin-top:4px;font-size:12px;color:#5a4a34}
.ledger-env-link{font-size:13px;margin:6px 0 0}

/* ---- 鏡の間：記録者エンドの端末だけの1段落 ---- */
.ledger-kagami{margin:14px auto 4px;max-width:34em;text-align:center;font-size:13px;line-height:2.1;color:#7a7aa6;letter-spacing:.06em;padding:0 8px}

/* ---- フェーズ17：記録の再構成（受付簿の末尾。PR-07 が完了した後だけ） ---- */
.ledger-redo[hidden]{display:none}
.ledger-redo h2{margin-bottom:8px}
.ledger-redo-lead{margin:0 0 12px;font-size:14px;line-height:1.9;color:#283940}
.ledger-redo-list{list-style:none;margin:0;padding:0;border-top:1px solid #c3d0cf}
.ledger-redo-list li{padding:12px 4px;border-bottom:1px solid #c3d0cf}
.ledger-redo-row{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:8px}
.ledger-redo-label{font-weight:bold;color:#2c444e}
.ledger-redo-now{font-size:12px;color:#4a6670;letter-spacing:.04em}
.ledger-redo-btn{font:inherit;font-size:13px;min-height:44px;padding:8px 14px;border:1px solid #698b95;background:#eff7f5;color:#315762;cursor:pointer;border-radius:2px}
.ledger-redo-btn:hover:not(:disabled){background:#d3e8e4;color:#213f48}
.ledger-redo-btn:focus-visible{outline:3px solid #b46c32;outline-offset:3px}
.ledger-redo-btn:disabled{opacity:.5;cursor:not-allowed}
.ledger-redo-confirm{margin:12px 0 0;padding:12px 14px;border:1px solid #8e7d69;background:#f6efe2;color:#3d352d}
.ledger-redo-confirm-text{margin:0;font-weight:bold}
.ledger-redo-confirm-sub{margin:6px 0 0;font-size:13px;line-height:1.8}
.ledger-redo-confirm-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}
.ledger-redo-yes{background:#365d68;border-color:#365d68;color:#fff}
.ledger-redo-yes:hover:not(:disabled){background:#2b4b54;color:#fff}
.ledger-redo-msg{min-height:1.4em;margin:10px 0 0;font-size:13px;color:#2f5b45}
.ledger-redo-seen{margin:6px 0 0;font-size:12px;color:#4a6670;line-height:1.8}
@media(max-width:700px){.ledger-redo-btn{width:100%}}

/* ---- フェーズ28：鏡の間の追記の一行／受付簿の末尾の最終報告へのリンク ---- */
.ledger-kagami-echo{margin:4px auto 4px;max-width:34em;text-align:center;font-size:13px;line-height:2.1;color:#6a6a92;letter-spacing:.06em;padding:0 8px}
.ledger-final-link{margin:18px 0 0;padding:10px 14px;border-left:3px solid #637b87;background:#eef3f2;font-size:14px;line-height:1.9;color:#283940}
.ledger-final-link a{color:#2c5a6a;text-decoration:underline;text-underline-offset:3px}
/* フェーズ30：継続の業務（表の下の一行） */
.ledger-work-line{margin:8px 0 0;padding:6px 12px;border-top:1px solid #c9d3d2;font-size:13px;line-height:1.9;color:#3a4a4c;overflow-wrap:anywhere}
.ledger-work-label{display:inline-block;margin-right:.9em;padding:0 .55em;border:1px solid #8fa3a6;font-size:11px;letter-spacing:.14em;color:#4d6266}

/* ---- フェーズ28：第398号 最終報告（外部保全記録室の書式） ---- */
.fr-locked{margin:22px 0;padding:18px 20px;border:1px dashed #8b9aa0;background:#f4f6f5;color:#3a4a50;font-size:14px;line-height:1.9}
.fr-locked p{margin:0}
.fr-locked[hidden]{display:none}
.fr-sheet{margin:14px 0 18px;border:1px solid #9fb1b6;background:#fbfcfb;color:#26343a}
.fr-para{padding:12px 16px 12px;border-bottom:1px solid #d3dcdd}
.fr-para:last-child{border-bottom:0}
.fr-label{display:block;margin:0 0 2px;font-size:12px;letter-spacing:.12em;color:#52707a}
.fr-text{margin:0;font-size:14px;line-height:2;overflow-wrap:anywhere}
@media(max-width:560px){.fr-para{padding:10px 12px}}
