/* ===== 活動記録：記事一覧と同じ“統一感” ===== */
:root{
  --card-bg:#fff;
  --ink:#3e3a2f;
  --muted:#6b6b6b;
  --brand:#7d6e57;
}

main.wrap{ max-width:1080px; margin:24px auto; padding:0 16px; }

.card{
  background:var(--card-bg);
  border-radius:16px;
  box-shadow:0 4px 12px rgba(0,0,0,0.06);
}

.lead .inner{ padding:24px 18px; text-align:center; }

.blocks-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(260px, 1fr));
  gap:24px;
  margin-top:24px;
}

.block.card{
  display:flex;
  flex-direction:column;
  height:420px; /* 記事一覧と合わせる */
  padding:16px; /* ← 端にベタ貼りしない */
  gap:12px;
  box-sizing:border-box;
}

/* サムネ：記事一覧のように“額縁” */
.block.card .thumb{
  width:100%;
  height:180px;
  border-radius:12px;
  background:#f5f2ea;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  box-sizing:border-box;
}

/* 重要：どこかで cover が当たっても勝つように強めに指定 */
.block.card .thumb img{
  width:100%;
  height:100%;
  object-fit:contain !important;  /* 切らずに収める */
  object-position:center center;
  display:block;
  padding:10px;                   /* 額縁の内側余白 */
  box-sizing:border-box;
}

/* テキスト部 */
.block .meta{
  padding:0;
  display:flex;
  flex-direction:column;
  gap:8px;
  flex:1;
  min-height:0;
}
.block .meta .date{ color:var(--muted); font-size:.9rem; }
.block .meta .title{ font-weight:700; }
.block .meta .text{
  line-height:1.6;
  word-break:break-word;
  overflow:hidden;
  display:-webkit-box;
  -webkit-line-clamp:6;
  -webkit-box-orient:vertical;
}

.skeleton{
  height:420px;
  background: linear-gradient(90deg, #f5f2ea 25%, #faf7f2 37%, #f5f2ea 63%);
  background-size:400% 100%;
  animation: shimmer 1.4s infinite;
  border-radius:16px;
}
@keyframes shimmer{
  0%{ background-position:100% 0; }
  100%{ background-position:-100% 0; }
}

@media (max-width:768px){
  .block.card{ height:auto; padding:14px; }
  .block.card .thumb{ height:160px; }
  .block.card .thumb img{ padding:8px; }
}
