.ledger-page { background: var(--ground); }

.ledger-top {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  width: min(1280px, calc(100% - 72px)); min-height: 84px; margin: 0 auto;
  border-bottom: 1px solid var(--rule);
}
.ledger-back {
  color: var(--bone-dim); font-size: 14px;
  border-bottom: 1px solid var(--rule); padding-bottom: 3px;
}
.ledger-back:hover { color: var(--bone); border-bottom-color: var(--gold); }

.ledger-wrap {
  width: min(1280px, calc(100% - 72px)); margin: 0 auto; padding: 70px 0 90px;
}
.ledger-head { max-width: 760px; }
.ledger-head h1 {
  margin: 0; font-size: 58px; line-height: 1; font-weight: 400; letter-spacing: .08em;
}
.ledger-head p {
  margin: 20px 0 0; font-size: 16px; line-height: 1.9; color: var(--bone-dim);
}
.ledger-key { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }

.mini-tag {
  display: inline-flex; align-items: center; min-height: 26px; padding: 3px 8px;
  border: 1px solid var(--rule); font-size: 12px; white-space: nowrap;
}
.is-evidence { color: var(--gold); }
.is-restore { color: var(--bone); border-color: rgba(232,227,214,.3); }
.is-art { color: #d08a7e; border-color: rgba(139,30,30,.55); }
.is-gap { color: var(--bone-dim); border-style: dashed; }

.ledger-table-wrap { margin-top: 58px; overflow-x: auto; }
.ledger-table {
  width: 100%; border-collapse: collapse; table-layout: fixed;
}
.ledger-table th {
  padding: 0 14px 14px 0; text-align: left;
  font-size: 13px; font-weight: 400; letter-spacing: .08em; color: var(--gold);
  border-bottom: 1px solid var(--rule);
}
.ledger-table td {
  padding: 18px 14px 18px 0; vertical-align: top;
  font-size: 15px; line-height: 1.75; color: var(--bone-dim);
  border-bottom: 1px solid var(--faint);
}
.ledger-table th:nth-child(1), .ledger-table td:nth-child(1) { width: 120px; }
.ledger-table th:nth-child(2), .ledger-table td:nth-child(2) { width: 230px; }
.ledger-table th:nth-child(3), .ledger-table td:nth-child(3),
.ledger-table th:nth-child(4), .ledger-table td:nth-child(4) { width: 180px; }
.ledger-table td:first-child a {
  color: var(--bone); font-size: 17px;
  border-bottom: 1px solid var(--rule); padding-bottom: 3px;
}
.ledger-table td:first-child a:hover { color: var(--gold); border-bottom-color: var(--gold); }

@media (prefers-reduced-motion: no-preference) {
  .ledger-head { animation: ledger-head 620ms cubic-bezier(.16,1,.3,1) both; }
  .ledger-table tbody tr { animation: ledger-row 520ms cubic-bezier(.16,1,.3,1) both; }
  .ledger-table tbody tr:nth-child(1) { animation-delay: 100ms; }
  .ledger-table tbody tr:nth-child(2) { animation-delay: 140ms; }
  .ledger-table tbody tr:nth-child(3) { animation-delay: 180ms; }
  .ledger-table tbody tr:nth-child(4) { animation-delay: 220ms; }
  .ledger-table tbody tr:nth-child(5) { animation-delay: 260ms; }
  .ledger-table tbody tr:nth-child(6) { animation-delay: 300ms; }
  .ledger-table tbody tr:nth-child(7) { animation-delay: 340ms; }
  .ledger-table tbody tr:nth-child(8) { animation-delay: 380ms; }
  .ledger-table tbody tr:nth-child(9) { animation-delay: 420ms; }
  .ledger-table tbody tr:nth-child(10) { animation-delay: 460ms; }
  @keyframes ledger-head { from { transform: translateY(12px); } }
  @keyframes ledger-row { from { transform: translateY(10px); } }
}

@media (max-width: 900px) {
  .ledger-top, .ledger-wrap { width: calc(100% - 40px); }
  .ledger-top { min-height: 72px; }
  .ledger-wrap { padding: 46px 0 64px; }
  .ledger-head h1 { font-size: 42px; }
  .ledger-table-wrap { margin-top: 38px; overflow: visible; }
  .ledger-table, .ledger-table tbody, .ledger-table tr, .ledger-table td { display: block; width: 100%; }
  .ledger-table thead { display: none; }
  .ledger-table tr { padding: 20px 0; border-top: 1px solid var(--rule); }
  .ledger-table td {
    display: grid; grid-template-columns: 110px minmax(0,1fr); gap: 12px;
    padding: 5px 0; border: 0;
  }
  .ledger-table td:before {
    content: attr(data-label); color: var(--gold); font-size: 12px;
  }
  .ledger-table td:first-child { margin-bottom: 6px; }
  .ledger-table td:first-child:before { display: none; }
}
