/* ============================================================
 * 黄泉戸村ARG R8：人物記録室
 * 証言を一つの結論に閉じないための、控えめな資料照合表示。
 * ============================================================ */
.case-locked {
  margin: 20px 0;
  padding: 24px;
  border: 1px dashed #6f6253;
  background: #f8f4ed;
  color: #44382c;
  line-height: 1.9;
}

.case-locked h2 { margin: 0 0 10px; color: #5f342f; font-size: 18px; }
.case-locked p:last-child { margin-bottom: 0; }
.case-locked a { color: #702e2a; font-weight: bold; }

.casefile-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin: 18px 0 0;
  padding: 14px 18px;
  border: 1px solid #364852;
  background: #25363e;
  color: #f1eadb;
}
.casefile-header strong { letter-spacing: .06em; }
.casefile-header small { color: #c6d1cf; }

.casefile-ledger {
  margin: 0 0 18px;
  padding: 24px 30px;
  border: 1px solid #b7aea1;
  background: #fffdf7;
  color: #3d352d;
  box-shadow: 2px 3px 10px rgba(57, 45, 31, .10);
  line-height: 1.9;
}
.casefile-ledger h2 { color: #3e555d; border-bottom: 1px solid #c3d0cf; padding-bottom: 8px; }
.casefile-ledger h3 { color: #65352e; margin: 24px 0 10px; font-size: 17px; }
.casefile-ledger blockquote {
  margin: 18px 0;
  padding: 13px 18px;
  border-left: 3px solid #6d8c8d;
  background: #f2f7f6;
  color: #40545a;
}

.casefile-meta {
  display: grid;
  grid-template-columns: 130px 1fr;
  margin: 16px 0;
  border-top: 1px solid #c8c0b4;
  border-left: 1px solid #c8c0b4;
}
.casefile-meta dt,
.casefile-meta dd { margin: 0; padding: 8px 10px; border-right: 1px solid #c8c0b4; border-bottom: 1px solid #c8c0b4; }
.casefile-meta dt { background: #edf2f0; color: #3b5557; font-weight: bold; }
.casefile-meta dd { background: #fffdf7; }

.casefile-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 13px; }
.casefile-table caption { caption-side: top; padding: 0 0 8px; color: #4e3c32; text-align: left; font-weight: bold; }
.casefile-table th,
.casefile-table td { padding: 9px 10px; border: 1px solid #bfc8c3; vertical-align: top; text-align: left; }
.casefile-table th { background: #dfe9e6; color: #2f4b4d; }
.casefile-table td { background: #fffdf7; }

.casefile-redaction { padding: 11px 14px; border-left: 3px solid #8b5148; background: #fbf2ee; color: #653f39; font-size: 13px; }
.casefile-note { margin: 20px 0 0; padding: 14px 16px; border: 1px dashed #8e7d69; background: #faf7f0; color: #58483a; font-size: 13px; }

.casefile-nav { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 28px; }
.casefile-nav a {
  display: inline-block;
  padding: 8px 11px;
  border: 1px solid #70898a;
  background: #edf3f1;
  color: #314b4e;
  font-size: 13px;
  text-decoration: none;
}
.casefile-nav a:hover { background: #d9e6e2; color: #592f2b; }
.casefile-nav a:focus-visible,
.casefile-ledger a:focus-visible,
.case-locked a:focus-visible {
  outline: 3px solid #a53e31;
  outline-offset: 3px;
  text-decoration: underline;
}

.casefile-status {
  display: inline-block;
  padding: 2px 7px;
  border: 1px solid #78908b;
  color: #345052;
  background: #e9f0ed;
  font-size: 11px;
  white-space: nowrap;
}
.casefile-status.pending { border-color: #a47661; color: #733d34; background: #fbf0ea; }

@media (max-width: 600px) {
  .casefile-ledger { padding: 18px 16px; }
  .casefile-meta { grid-template-columns: 92px 1fr; font-size: 13px; }
  .casefile-table { display: block; overflow-x: auto; white-space: normal; }
}

/* 記録者エンドへの導線（R-007の末尾） */
.casefile-handover {
  margin: 26px 0 8px;
  padding: 16px 18px;
  border: 1px dashed #7d9391;
  background: #f3f7f5;
  color: #345052;
  font-size: 13px;
  line-height: 1.9;
}
.casefile-handover p { margin: 0 0 10px; }
.casefile-handover-link {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid #456a6d;
  background: #e3efed;
  color: #22484b;
  font-weight: bold;
  text-decoration: none;
}
.casefile-handover-link:hover { background: #cfe5e1; }
.casefile-handover-link:focus-visible { outline: 3px solid #a53e31; outline-offset: 3px; }

/* ============================================================
 * フェーズ18：人物の足取り
 * ============================================================ */
.fs-section { margin: 24px 0 8px; }
.fs-section h2 { margin-bottom: 6px; }
.fs-lead { font-size: 13px; line-height: 1.9; color: #5a4d40; margin: 0 0 10px; }
.fs-counter { font-size: 12px; color: #6f6253; margin: 0 0 12px; }
.fs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 720px) { .fs-grid { grid-template-columns: minmax(0, 1fr); } }
.fs-person { border: 1px solid #b7aea1; background: #fffdf7; padding: 12px 14px; min-width: 0; }
.fs-name { margin: 0 0 8px; font-size: 15px; color: #25363e; border-bottom: 1px solid #d8d0c2; padding-bottom: 4px; }
.fs-rows { list-style: none; margin: 0; padding: 0; }
.fs-row { padding: 7px 0 7px 10px; border-left: 2px solid #c9bfae; margin-bottom: 4px; font-size: 12px; line-height: 1.8; color: #3d352d; overflow-wrap: anywhere; }
.fs-row.is-masked { color: #9a8f80; letter-spacing: .15em; }
.fs-row.is-last { border-left-color: #8e1d17; }
.fs-last-head { display: block; font-size: 11px; color: #8e1d17; letter-spacing: .1em; margin-bottom: 2px; }
.fs-meta { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 11px; color: #6f6253; }
.fs-date { font-family: monospace; }
.fs-text { margin: 2px 0; }
.fs-src { font-size: 11px; color: #8a7e6f; }
.fs-src a { color: #702e2a; }
.fs-error { font-size: 12px; color: #8e1d17; }
