/* ==========================================================================
   カードリスト ブロック (tuuhan/card-list) — 2026-05-24
   ========================================================================== */

.tuuhan-card-list-wrap {
    margin: 2em 0;
}
.tuuhan-card-list-heading {
    font-size: 1.5em;
    font-weight: 800;
    margin: 0 0 16px;
    padding: 0 0 8px;
    border-bottom: 3px solid currentColor;
    display: inline-block;
}
.tuuhan-card-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.tuuhan-card-list.tcl-layout-grid2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.tuuhan-card-list.tcl-layout-vertical .tcl-card {
    flex-direction: column;
}
.tuuhan-card-list.tcl-layout-vertical .tcl-card__thumb {
    flex: none !important;
    max-width: none !important;
    width: 100% !important;
    aspect-ratio: 16/9;
}

/* カード本体 */
.tcl-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    text-decoration: none !important;
    color: inherit;
    background: var(--tcl-card-bg, #fff);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
/* radius */
.tcl-radius-none .tcl-card { border-radius: 0; }
.tcl-radius-s .tcl-card    { border-radius: 6px; }
.tcl-radius-m .tcl-card    { border-radius: 12px; }
.tcl-radius-l .tcl-card    { border-radius: 20px; }
/* shadow */
.tcl-shadow-none .tcl-card { box-shadow: none; }
.tcl-shadow-s .tcl-card    { box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.tcl-shadow-m .tcl-card    { box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.tcl-shadow-l .tcl-card    { box-shadow: 0 8px 24px rgba(0,0,0,.12); }
/* hover */
.tcl-hover-lift .tcl-card:hover  { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,.14); border-color: #cbd5e1; }
.tcl-hover-zoom .tcl-card:hover img { transform: scale(1.06); }
.tcl-hover-zoom .tcl-card__thumb { overflow: hidden; }
.tcl-hover-zoom .tcl-card img    { transition: transform .35s ease; }

/* dividers */
.tcl-dividers .tcl-card + .tcl-card { border-top: 0; }

/* サムネ */
.tcl-card__thumb {
    flex: 0 0 var(--tcl-thumb-w, 320px);
    max-width: var(--tcl-thumb-w, 320px);
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #f1f5f9;
}
.tcl-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 本文 */
.tcl-card__body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 18px 22px;
    min-width: 0;
}
.tcl-card__title {
    font-size: 1.2em;
    font-weight: 700;
    line-height: 1.45;
    color: var(--tcl-title-color, #0f172a);
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tcl-card__desc {
    font-size: 0.93em;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tcl-card__site {
    font-size: 0.78em;
    color: #94a3b8;
    font-weight: 600;
}

/* レスポンシブ */
@media (max-width: 640px) {
    .tuuhan-card-list.tcl-layout-horizontal .tcl-card,
    .tuuhan-card-list.tcl-layout-grid2 .tcl-card {
        flex-direction: column;
    }
    .tuuhan-card-list.tcl-layout-horizontal .tcl-card__thumb,
    .tuuhan-card-list.tcl-layout-grid2 .tcl-card__thumb {
        flex: none;
        max-width: none;
        width: 100%;
    }
    .tuuhan-card-list.tcl-layout-grid2 {
        grid-template-columns: 1fr;
    }
    .tcl-card__body { padding: 14px 16px; }
    .tcl-card__title { font-size: 1.05em; }
}
