/*
Theme Name: Hello Elementor Child
Template: hello-elementor
Version: 1.0.0
*/

/* ===== note風 3列グリッドレイアウト ===== */
.note-feed-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.note-feed-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}

.note-feed-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.note-feed-item a {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* サムネ */
.note-feed-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f5f5f5;
}

.note-feed-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* テキスト部分 */
.note-feed-text {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.note-feed-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.5;
    color: #333;
}

.note-feed-date {
    color: #999;
    font-size: 0.8em;
    margin-top: auto;
}

/* タブレット：2列 */
@media (max-width: 900px) {
    .note-feed-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

/* スマホ：1列 */
@media (max-width: 600px) {
    .note-feed-list {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .note-feed-thumb {
        aspect-ratio: 16 / 9;
    }
}