/* 共通：カラムを横並びにする基本 */
.wp-block-columns.is-layout-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem; /* お好みで余白調整 */
}

.wp-block-column.is-layout-flow {
  flex: 1 1 0;
}
.wp-block-button__link{
	text-align: center;
	/*background-color: #C30D23!important;*/
}
.wp-block-buttons.is-content-justification-center{
	text-align: center;
}
.wp-block-buttons{
	height: 4em !important;
}


/* youtubeの比率 */
.wp-block-embed-youtube,
.wp-block-embed__wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
}

.wp-block-embed-youtube iframe,
.wp-block-embed__wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.tall-btn .wp-block-button__link {
	padding: calc(1.5em + 2px) calc(1.533em + 2px) !important;
}



/* 782px未満では1カラムに積む（WP標準の挙動に近づける） */
@media (max-width: 781px) {
  .wp-block-columns.is-layout-flex {
    display: block;
  }

  .wp-block-column.is-layout-flow {
    margin-bottom: 1.5rem;
  }
}

.has-black-background-color.has-background { background-color: #000000 !important; }
.has-cyan-bluish-gray-background-color.has-background { background-color: #abb8c3 !important; }
.has-white-background-color.has-background { background-color: #ffffff !important; }
.has-pale-pink-background-color.has-background { background-color: #f78da7 !important; }
.has-vivid-red-background-color.has-background { background-color: #cf2e2e !important; }
.has-luminous-vivid-orange-background-color.has-background { background-color: #ff6900 !important; }
.has-luminous-vivid-amber-background-color.has-background { background-color: #fcb900 !important; }
.has-light-green-cyan-background-color.has-background { background-color: #7bdcb5 !important; }
.has-vivid-green-cyan-background-color.has-background { background-color: #00d084 !important; }
.has-pale-cyan-blue-background-color.has-background { background-color: #8ed1fc !important; }
.has-vivid-cyan-blue-background-color.has-background { background-color: #0693e3 !important; }



/* モバイル（600px未満）での強制横並び設定 */
@media (max-width: 781px) {
    /* 提供されたHTMLのクラスを指定 */
    .wp-block-columns.is-not-stacked-on-mobile {
        display: flex !important;
        flex-wrap: nowrap !important; /* 縦に落ちるのを防ぐ */
    }

    /* 各カラム（子要素）の最小幅を指定 */
    .wp-block-columns.is-not-stacked-on-mobile > .wp-block-column {
        flex-basis: 0 !important;
        flex-grow: 1 !important;
        min-width: 30% !important; /* 3つ並べる場合の最小幅の目安 */
        word-break: break-all; /* 文字がはみ出るのを防ぐ */
    }
}