/* Shared by the block editor and the public page. Legacy links stay unchanged. */
.bn-button {
  display: flex;
  justify-content: center;
  width: 100%;
  min-width: 0;
  margin: 16px auto;
}
.bn-button--style1 { --bn-button-bg: #fff; --bn-button-fg: #000; }
.bn-button--style2 { --bn-button-bg: #000; --bn-button-fg: #fff; }
.bn-button.bn-button--style1 > :is(a, span).bn-button__link,
.bn-button.bn-button--style2 > :is(a, span).bn-button__link {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4.8px;
  width: 480px;
  max-width: 100%;
  min-height: 0;
  margin: 0;
  padding: 12px 20px;
  border: 0;
  border-radius: 4px;
  background: var(--bn-button-bg);
  color: var(--bn-button-fg);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  text-align: center;
  text-decoration: none;
  transition: opacity .2s ease;
}
.bn-button__text { min-width: 0; overflow-wrap: anywhere; }
.bn-button__link > img {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  max-width: 20px;
  margin: 0;
  object-fit: contain;
}
.bn-button > a.bn-button__link:hover { opacity: .75; }
.bn-button > a.bn-button__link:focus-visible { outline: 3px solid #34aae1; outline-offset: 4px; }
.bn-button__link--unset { opacity: .6; }
@media (prefers-reduced-motion: reduce) {
  .bn-button.bn-button > .bn-button__link { transition: none; }
}

/* The image label scales independently of the trailing arrow. */
.bn-button .bn-button__link > img.bn-button__label-image {
  flex: 0 1 180px;
  width: 180px;
  max-width: 100%;
  height: auto;
  max-height: 38px;
  object-fit: contain;
}
.bn-button--style1 .bn-button__label-image { filter: brightness(0); }
