/* ====== Columns　カテゴリー・タグ一覧CSS ====== */
.columns-archive {
    padding: 40px 0 60px;
}
.archive-head {
    max-width: 1080px;
    margin: 0 auto 20px;
    padding: 0 16px;
}
.archive-title {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin: 0 0 6px;
}
.archive-desc {
    color: #666;
    font-size: 14px;
    margin: 0;
}
.archive-list {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ★グリッドは既存のまま（変更しない） */
.card-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 1024px) {
  .card-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .card-list {
    grid-template-columns: 1fr;
  }
}

/* ====== カードデザイン（新スタイル） ====== */
.card {
    background: #fff;
    border: 1px solid #eee;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform .2s ease, box-shadow .2s ease;
}
.card__link {
    display: block;
    color: inherit;
    text-decoration: none;
}
.card__thumb {
    position: relative;
    aspect-ratio: 16/9;
    background: #f6f6f6;
    overflow: hidden;
}
.card__thumb img {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block;
}

/* 斜めNEWリボン */
.badge-new {
    font-family: sans-serif;
    position: absolute;
    top: -16px;
    left: -98px;
    z-index: 3;
    background: #A90A0A;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    padding: 29px 95px 5px;
    transform: rotate(-44deg);
}

/* 画像上タイトル（白帯） */
.card__title-wrap {
    position: absolute;
    bottom: 10px;
    left: 12px;
    z-index: 2;
    max-width: calc(100% - 24px);
    text-align: left;
    line-height: 2.5;
}
.card__title {
    margin: 0;
    line-height: 1.4;
}
.card__title--overlay {
    margin: 0;
    display: inline;
    background: #fff;
    color: #000;
    padding: 4px 10px;
    border: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 2px 8px rgba(0,0,0,.10);
    font-family: "Shippori Mincho", serif;
    font-weight: 700;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    word-break: break-word;
}
@media (max-width: 560px) {
    .card__title--overlay {
        font-size: 16px;
    }
}
@media (min-width: 561px) {
    .card__title--overlay {
        font-size: 18px;
    }
}

/* 本文 */
.card__body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: #777;
    font-size: 13px;
}

/* 時計アイコン */
.meta-icon {
    display: inline-flex;
    align-items: center;
}
.meta-icon img {
    width: 16px;
    height: 16px;
    display: block;
}

/* 日付 */
.card__date {
    font-size: 14px;
    color: #7a7a7a;
}

/* タグ（ピル形） */
.meta-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: bold;
    line-height: 1;
    background: #ededed;
    color: #666;
    border-radius: 999px;
    padding: 6px 10px;
    text-decoration: none;
    transition: background .2s, color .2s;
}
.meta-tag:hover {
    background: #A90A0A;
    color: #fff;
}

/* 抜粋 */
.card__textlink {
    display: block;
    color: inherit;
    text-decoration: none;
}
.card__excerpt {
    color: #333333;
    font-size: 14px;
    line-height: 1.9;
    min-height: 4.8em;
    font-weight: bold;
}

/* ホバー */
.card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,.08);
    transform: translateY(-2px);
}

/* ページネーション */
.pagination {
    text-align: center;
    margin-top: 28px;
}
.pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 2px;
    border: 1px solid #e5e5e5;
    text-decoration: none;
    color: #333;
    font-size: 14px;
}
.pagination .current {
    background: #111;
    color: #fff;
    border-color: #111;
}
.pagination .prev,
.pagination .next {
    font-weight: 700;
}

/* 空メッセージ */
.no-posts {
    color: #666;
    text-align: center;
}
