@charset "UTF-8";
/*
    Template: swell
    Theme Name: SWELL CHILD
    Theme URI: https://swell-theme.com/
    Description: SWELLの子テーマ
    Version: 1.0.0
    Author: LOOS WEB STUDIO
    Author URI: https://loos-web-studio.com/

    License: GNU General Public License
    License URI: http://www.gnu.org/licenses/gpl.html
*/

  p,
    figure,
    table,
    .wp-block-image,
    .wp-block-table
) {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* 見出し内部の上下余白も0にする */
body.single-post .post_content :is(h2, h3, h4) {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* H2見出しの上下余白をなくす */
body.single-post .post_content h2 {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* H2直前の要素との余白をなくす */
body.single-post .post_content > h2 {
    margin-block-start: 0 !important;
}

/* H2直後の見出しの余白をなくす */
body.single-post .post_content h2 + h3,
body.single-post .post_content h2 + h4 {
    margin-top: 0 !important;
}
/* H2見出しの上下余白を完全に0pxにする */
body.single-post .post_content h2.wp-block-heading {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    margin-block-start: 0 !important;
    margin-block-end: 0 !important;
}
