/* =========================
   Query Loop タイトル調整
========================= */
.wp-block-query .wp-block-post-title {
    margin-top: -12px !important;
    margin-bottom: 12px !important;
    font-size: 15px !important;
    line-height: 1.2 !important;
}

/* =========================
   個別作品ページ本文
========================= */
.wp-block-post-content p,
.wp-block-post-content p *,
.wp-block-post-content h4,
.wp-block-post-content h4 * {
    font-size: 14px !important;
    line-height: 1.3 !important;
}

/* =========================
   Query Loop ページ送り
========================= */
.wp-block-query-pagination {
    margin-top: 32px;
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.4;
    justify-content: center;
    gap: 12px;
}

.wp-block-query-pagination a,
.wp-block-query-pagination span {
    font-size: 14px;
    text-decoration: none;
}

/* =========================
   Query Loop カード間隔
========================= */
.wp-block-post-template {
    gap: 24px;
}

/* =========================
   タイトルと画像の余白
========================= */
.wp-block-post-featured-image {
    margin-bottom: 12px;
}

/* =========================
   Query Loop 高さを内容に追従
========================= */
.wp-block-query,
.wp-block-post-template {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

/* =========================
   Query Loop 下部の余白
========================= */
.wp-block-query {
    clear: both;
    margin-bottom: 40px !important;
}

/* =========================
   Query Loop直後のコンテンツを
   確実に表示
========================= */
.wp-block-query + * {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    clear: both !important;
}

/* =========================
   ページ全体を内容に合わせて伸ばす
========================= */
.wp-site-blocks,
main,
.wp-block-post-content {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

/* =========================
   Jetpack共有ボタンを確実に非表示
   ※最後に置くことが重要
========================= */
.sharedaddy,
.sd-sharing-enabled,
div.sharedaddy {
    display: none !important;
    visibility: hidden !important;
}