/**
 * 凍結ブロック（wp:html 化した旧 SMB ブロック）の layout support 補償
 *
 * WP はブロック描画時に layout support がコンテナへ is-layout-constrained を
 * 付与し、グローバル CSS の「先頭/末尾の子のマージン除去」を効かせている。
 * wp:html へ凍結した HTML は描画フィルタを通らないためこのクラスを失い、
 * コンテナ内の先頭/末尾に子要素のネイティブマージン分（p なら 16px）の
 * 余白が余分に出る（2026-07-18 に post 11422 の computed style で実測）。
 *
 * ここでは「is-layout-* を持たない SMB コンテナ」に限定して同じ
 * マージン除去だけを再現する。中間の間隔はネイティブマージンの相殺で
 * 元と一致するため触らない。max-width 100% の消失は視覚影響なし（実測）。
 *
 * 対象は Snow Monkey Blocks の constrained コンテナ全 16 種
 * （dist/blocks/ 配下の各 style-index.css の grep で確定・2026-07-18。
 *   注意: このコメント内にパスのグロブを書くと「アスタリスク+スラッシュ」が
 *   コメント終端と解釈され直後のルールが 1 つ死ぬ。実際に一度やった）。
 * 配信は inc/frozen-block-styles.php（wp:html を含む singular のみ）。
 */

.smb-accordion__item__body:not([class*="is-layout"]) > :first-child,
.smb-alert__body:not([class*="is-layout"]) > :first-child,
.smb-balloon__body:not([class*="is-layout"]) > :first-child,
.smb-box__body:not([class*="is-layout"]) > :first-child,
.smb-container__body:not([class*="is-layout"]) > :first-child,
.smb-faq__item__answer__body:not([class*="is-layout"]) > :first-child,
.smb-hero-header__body:not([class*="is-layout"]) > :first-child,
.smb-information__item__body:not([class*="is-layout"]) > :first-child,
.smb-items__item__body:not([class*="is-layout"]) > :first-child,
.smb-media-text__body:not([class*="is-layout"]) > :first-child,
.smb-panels__item__body:not([class*="is-layout"]) > :first-child,
.smb-read-more-box__content:not([class*="is-layout"]) > :first-child,
.smb-section__body:not([class*="is-layout"]) > :first-child,
.smb-spider-contents-slider__item:not([class*="is-layout"]) > :first-child,
.smb-step__item__summary:not([class*="is-layout"]) > :first-child,
.smb-tab-panel__body:not([class*="is-layout"]) > :first-child {
	margin-block-start: 0;
}

.smb-accordion__item__body:not([class*="is-layout"]) > :last-child,
.smb-alert__body:not([class*="is-layout"]) > :last-child,
.smb-balloon__body:not([class*="is-layout"]) > :last-child,
.smb-box__body:not([class*="is-layout"]) > :last-child,
.smb-container__body:not([class*="is-layout"]) > :last-child,
.smb-faq__item__answer__body:not([class*="is-layout"]) > :last-child,
.smb-hero-header__body:not([class*="is-layout"]) > :last-child,
.smb-information__item__body:not([class*="is-layout"]) > :last-child,
.smb-items__item__body:not([class*="is-layout"]) > :last-child,
.smb-media-text__body:not([class*="is-layout"]) > :last-child,
.smb-panels__item__body:not([class*="is-layout"]) > :last-child,
.smb-read-more-box__content:not([class*="is-layout"]) > :last-child,
.smb-section__body:not([class*="is-layout"]) > :last-child,
.smb-spider-contents-slider__item:not([class*="is-layout"]) > :last-child,
.smb-step__item__summary:not([class*="is-layout"]) > :last-child,
.smb-tab-panel__body:not([class*="is-layout"]) > :last-child {
	margin-block-end: 0;
}
