/* page-child-list.css */
.child-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    /* ← auto-fillに変更 */
    gap: 1.5rem;
    margin-top: 2rem;
    justify-content: center;
    /* 中央寄せ */
    max-width: 1000px;
    /* 最大幅を制限（任意） */
    margin-left: auto;
    margin-right: auto;
}

.child-page-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.child-page-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.child-page-card .card-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    /* 比率を固定（4/3, 1/1などでも可） */
    overflow: hidden;
    border-radius: 8px;
    /* 角丸が欲しい場合 */
}

.child-page-card .card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 中央を切り抜き */
    display: block;
}

.card-link {
    color: inherit;
    text-decoration: none;
    display: block;
    height: 100%;
}

.card-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.card-content {
    padding: 1rem;
}

.card-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.card-excerpt {
    font-size: 0.95rem;
    color: #555;
}