/* 幅広・全幅ブロック以外にデフォルトコンテンツ幅を指定 */
.entry-content>*:not(.alignwide):not(.alignfull) {
  max-width: var(--wp--style--global--content-size);
}

/* 幅広ブロックに幅広コンテンツ幅を指定 */
.entry-content>*.alignwide {
  max-width: var(--wp--style--global--wide-size);
}

/* 全幅ブロックを除いて左右にオートマージンを付与する */
.entry-content>*:not(.alignfull) {
  margin-right: auto;
  margin-left: auto;
}

/* 共通 */
.entry-content,
.editor-styles-wrapper {
  padding-left: var(--wp--custom--gutter);
  padding-right: var(--wp--custom--gutter);
}


.editor-styles-wrapper h2,
h2[class="wp-block-heading"] {
  border-top: 1px solid var(--wp--preset--color--my-black);
  border-bottom: 1px solid var(--wp--preset--color--my-black);
  font-size: 2.2rem;
  padding: 1.5rem 0;
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.editor-styles-wrapper h2,
h3[class="wp-block-heading"] {
  font-size: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
}

.editor-styles-wrapper h3:before,
h3[class="wp-block-heading"]::before {
  content: "";
  display: block;
  border-radius: 2px;
  background-color: var(--color_primary);
  width: 4px;
  height: 1.2em;
}

.editor-styles-wrapper h4,
h4[class="wp-block-heading"] {
  font-size: 2rem;
  margin-top: 25px;
  margin-bottom: 15px;
}


.wp-block-button .wp-block-button__link {
  background-color: var(--wp--preset--color--primary);
  border: 1px solid var(--wp--preset--color--primary);
  border-radius: 100vmax;
  color: #fff;
  font-size: 15px;
  padding: 5px 35px;
  min-width: 200px;
  text-decoration: none;
  position: relative;
  transition: background-color 0.3s;
}

.wp-block-button__link::after {
  content: "";
  width: 7px;
  height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg) translateY(-50%);
  position: absolute;
  top: 47%;
  right: 20px;
  transition: border-color 0.3s;
}

.wp-block-button__link:hover {
  opacity: 1;
  background-color: #fff;
  color: var(--wp--preset--color--primary);
}
