a.ccm-block-page-list-rss-feed {
    position: absolute;
    top: 0;
    right: 0;
}

div.ccm-block-page-list-wrapper {
    position: relative;
}

/* 一覧全体 */
div.ccm-block-page-list-pages {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

/* 2列 */
@media (min-width: 768px) {
    div.ccm-block-page-list-pages {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* 3列 */
@media (min-width: 1024px) {
    div.ccm-block-page-list-pages {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* カード本体 */
article.ccm-block-page-list-page-entry,
article.ccm-block-page-list-page-entry-horizontal {
    position: relative;
    margin: 0;
    border: 1px solid #ddd;
    background: #fff;
    box-sizing: border-box;
    overflow: hidden;
    height: 100%;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

article.ccm-block-page-list-page-entry:hover,
article.ccm-block-page-list-page-entry-horizontal:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.10);
    transform: translateY(-2px);
}

/* カード全体リンク */
a.ccm-block-page-list-card-link {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: block;
    text-indent: -9999px;
    overflow: hidden;
    white-space: nowrap;
}

a.ccm-block-page-list-card-link:focus {
    outline: 3px solid #66afe9;
    outline-offset: -3px;
}

/* 見た目部分 */
div.ccm-block-page-list-card-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-height: 100%;
}

/* カード全体クリック時は中身に直接クリックさせない */
div.ccm-block-page-list-card-content.is-card-clickable {
    pointer-events: none;
}

/* ボタンは押せるように戻す */
div.ccm-block-page-list-page-entry-read-more,
div.ccm-block-page-list-page-entry-read-more * {
    pointer-events: auto;
}

/* サムネあり */
article.has-thumbnail div.ccm-block-page-list-page-entry-thumbnail {
    width: 36%;
    min-width: 150px;
    padding: 12px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

/* アイコンは切らない */
article.has-thumbnail div.ccm-block-page-list-page-entry-thumbnail img {
    display: block;
    max-width: 100%;
    max-height: 170px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* テキスト */
div.ccm-block-page-list-page-entry-text {
    flex: 1 1 auto;
    min-width: 0;
    padding: 16px 18px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

div.ccm-block-page-list-page-entry-text div.ccm-block-page-list-title {
    margin: 0;
    font-weight: bold;
    line-height: 1.6;
    font-size: 1.6rem;
    word-break: break-word;
}

div.ccm-block-page-list-page-entry-text div.ccm-block-page-list-date {
    margin-top: 8px;
    line-height: 1.5;
    font-size: 0.9rem;
    color: #666;
}

div.ccm-block-page-list-page-entry-text div.ccm-block-page-list-description {
    margin-top: 8px;
    margin-bottom: 0;
    line-height: 1.6;
    word-break: break-word;
}

div.ccm-block-page-list-page-entry-read-more {
    margin-top: 14px;
    position: relative;
    z-index: 6;
}

/* サムネなし */
article.no-thumbnail div.ccm-block-page-list-card-content {
    display: block;
}

article.no-thumbnail div.ccm-block-page-list-page-entry-text {
    width: 100%;
}

/* スマホ */
@media (max-width: 767px) {
    div.ccm-block-page-list-pages {
        gap: 16px;
    }

    div.ccm-block-page-list-card-content {
        flex-direction: column;
    }

    article.has-thumbnail div.ccm-block-page-list-page-entry-thumbnail {
        width: 100%;
        min-width: 0;
        padding: 20px 16px 8px;
    }

    article.has-thumbnail div.ccm-block-page-list-page-entry-thumbnail img {
        max-height: 220px;
    }

    div.ccm-block-page-list-page-entry-text {
        width: 100%;
        padding: 12px 16px 16px;
        text-align: center;
    }
}

div.ccm-block-page-list-page-entry-text div.ccm-block-page-list-title {
    color: #016f92;
}


div.ccm-block-page-list-page-entry-text div.ccm-block-page-list-date {
    font-size: 1.3rem;
}