.wp-block-group{
	margin-top: 0 !important;
}

/* ▼ タブレット・PC（768px以上から） */
@media (min-width: 768px) {
    :root {
        --wp--style--global--content-size: 1100px !important;
        --wp--style--global--wide-size: 1400px !important;
    }
}

:root {
    --wp--preset--spacing--60: 0 !important;
    }

/* 本文エリア配下：左右auto margin と max-width を無効化してフル幅化 */
.entry-content.is-layout-constrained
  > :where(:not(.alignleft):not(.alignright):not(.alignfull)){
  max-width: none!important;
  width: auto !important;
  margin-left: auto !important;
  margin-right: auto !important;
}


.wp-block-post-title{
	margin: 0 !important;
	width: 80% !important;
}

/* 幅50%の箱自体も中央に寄せる（margin:0!important を上書き） */
body.single h1.wp-block-post-title{
  margin-left: auto !important;
  margin-right: auto !important;
}

body.single h1.wp-block-post-title{
  max-width: inherit !important;
}

.is-layout-constrained {
	background: #eee !important;
  background-image:
    linear-gradient(#d1dbe8 1px, transparent 1px) !important;
  background-size: 100% 28px, 100% 100% !important;
  background-position: 0 !important;
}

.wp-block-template-part{
	margin-top: 0 !important;
		background: #eee !important;
  background-image:
    linear-gradient(#d1dbe8 1px, transparent 1px) !important;
  background-size: 100% 28px, 100% 100% !important;
  background-position: 0 !important;
}

.wp-block-custom-html {
    max-width: 100% !important;
    width: 100% !important;
}

.entry-content {
	  max-width: 100% !important;
    width: 100% !important;
}

.entry-content.alignfull{
  width: auto !important;
  max-width: none !important;
}



.block-editor-plain-text {
    min-height: 500px;
}

header {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  left: 0 !important;
  right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* 投稿ナビゲーション（例の「妊娠・出産…」リンクの親） */
.wp-block-post-navigation-link,
.post-navigation-link-previous,
.post-navigation-link-next .taxonomy-category .wp-block-post-terms {
  display: none !important;
}

/* コメント一式 */
.wp-block-comments,
.comments-area,
.comment-respond {
  display: none !important;
}

/* 見出し「投稿をさらに読み込む」自体 */
h2.wp-block-heading.alignwide.has-small-font-size {
  display: none !important;
}

/* その直後の投稿一覧（クエリループ） */
h2.wp-block-heading.alignwide.has-small-font-size + .wp-block-query {
  display: none !important;
}


:root{
  --wp--preset--spacing--60: 0px !important;
  --wp--preset--spacing--40: 0px !important;
  --wp--preset--spacing--70: 0px !important;
}

.wp-block-post-title{
	padding-top: 150px;
}
/* タイトル直下の「執筆者・カテゴリ」行を丸ごと非表示 */
body.single h1.wp-block-post-title + .wp-block-group:has(.wp-block-post-author-name):has(.wp-block-post-terms){
  display: none !important;
}

/* ▼ スマホ（768px未満）：投稿本文を画面端まで */
@media (max-width: 767px){
  /* テーマ側の左右余白（root padding）を0にする */
  :root{
    --wp--style--root--padding-left: 0px !important;
    --wp--style--root--padding-right: 0px !important;
    /* テーマによっては外側余白がカスタム変数のことがあるので保険 */
    --wp--custom--spacing--outer: 0px !important;
  }

  /* 投稿本文の外側ラッパー類の左右余白・幅制限を外す */
  body.single :where(.wp-site-blocks, main, .wp-block-post-content, .entry-content, .has-global-padding){
    max-width: none !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* 既存の is-layout-constrained の「中央寄せ」挙動をスマホでは無効化 */
  body.single .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)){
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* タイトルが 70% 固定になっているのでスマホでは全幅に戻す */
  body.single .wp-block-post-title{
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

figure.wp-block-post-featured-image {
  aspect-ratio: 1200 / 630 !important;
}