/* =========================
   Donations Page (Warm)
======================== */
.wrap { max-width: 980px; margin: 0 auto; padding: 2rem 1rem; }
header.page { text-align: center; margin-bottom: 3rem; }
h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 0 0 10px; color: var(--brand); }
p.lead { color: var(--text-subtle); }

.bc { display: flex; justify-content: center; gap: .5rem; color: var(--muted); margin-bottom: 1rem; font-size: .9rem; }
.bc a { color: var(--text); text-decoration: none; }

/* Grid Cards */
.grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(12, 1fr); }
.card {
  grid-column: span 12; 
  background: #fff; border-radius: 1.5rem;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(0,0,0,0.03);
  padding: 1.5rem;
  position: relative; overflow: hidden;
}
/* Card Background Decoration */
.card::after {
  content: ""; position: absolute; right: -10px; bottom: -10px;
  width: 80px; height: 80px; background: var(--accent-light);
  border-radius: 50%; opacity: 0.3; pointer-events: none;
}

@media(min-width: 820px) {
  .card.sm-4 { grid-column: span 4; }
  .card.sm-6 { grid-column: span 6; }
  .card.sm-8 { grid-column: span 8; }
}

.kv { font-size: 1rem; color: var(--text-subtle); margin-bottom: .2rem; }
.big { font-size: 2.2rem; font-weight: 700; color: var(--accent-warm); line-height: 1.2; }
.note { font-size: .85rem; color: var(--muted); margin-top: .4rem; }

/* Data Table (Soft Design) */
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; margin-top: 1rem; }
.tbl th, .tbl td {
  padding: 1rem; text-align: left;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.tbl th { 
  background: var(--accent-light); /* ベージュ背景 */
  font-weight: 700; color: var(--brand); 
  first-child { border-top-left-radius: 12px; }
  last-child { border-top-right-radius: 12px; }
}
.tbl tr:last-child td { border-bottom: none; }
.tbl tr:hover td { background: rgba(255,250,240,0.5); }
.tag {
  display: inline-block; padding: .2rem .6rem; border-radius: 99px;
  font-size: .75rem; font-weight: 700; background: #eee; color: #555;
}

/* Callout */
.callout {
  border-left: 5px solid var(--accent);
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  padding: 1.5rem; border-radius: 12px;
}

/* 明細テーブルのスクロール対応 */
.table-wrapper {
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 12px;
  background: #fff;
  margin-top: 1rem;
}

/* スクロール時もテーブルヘッダーを固定 */
.table-wrapper .tbl {
  margin-top: 0;
}
.table-wrapper .tbl th {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--accent-light);
  border-bottom: 2px solid rgba(0,0,0,0.05);
}

/* カスタムスクロールバー */
.table-wrapper::-webkit-scrollbar {
  width: 8px;
}
.table-wrapper::-webkit-scrollbar-track {
  background: transparent;
}
.table-wrapper::-webkit-scrollbar-thumb {
  background: var(--accent-light);
  border-radius: 10px;
}
