/**
 * CTA（誘導ボタン）ブロック用スタイル
 * フロント・ブロックエディタ共通で読み込む。
 * .btn-sausage はテーマ本体のCSSにも定義があるが、エディタでは
 * テーマ本体CSSが読み込まれないため、ブロック内に同等の見た目を同梱する。
 */

.cta-block {
  margin: 2em auto 2.5em;
  text-align: center;
}

.cta-block .cta-text {
  margin: 0 0 0.5em;
  line-height: 1.8;
  font-size: 1.4rem;
  color: #777;
}
@media (min-width: 768px) {
  .cta-block .cta-text {
    font-size: 1.5rem;
  }
}

.cta-block .cta-button-wrap {
  display: flex;
  justify-content: center;
}

/* ===== .btn-sausage（エディタ用フォールバック / フロントと同値） ===== */
.cta-block .btn-sausage {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-right: 0.5em;
  width: 260px;
  height: 36px;
  border-radius: 1.8rem;
  background: #FF914D;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: filter 0.3s ease-in-out;
  font-size: 1.4rem;
}

@media (min-width: 768px) {
  .cta-block .btn-sausage {
    width: 308px;
    height: 45px;
    border-radius: 2.3rem;
    font-size: 1.6rem;
  }
}

.cta-block .btn-sausage:hover {
  filter: brightness(1.2);
}

.cta-block .btn-sausage::after {
  content: "";
  display: block;
  position: absolute;
  top: calc(50% - 0.4rem);
  right: 1em;
  width: 0.8rem;
  height: 0.8rem;
  border: 1px solid #fff;
  border-width: 1px 1px 0 0;
  transform: rotate(45deg);
}

@media (min-width: 768px) {
  .cta-block .btn-sausage::after {
    top: calc(50% - 0.5rem);
    right: 1em;
    width: 1rem;
    height: 1rem;
  }
}

/* エディタで空ボタンでも形が見えるように最小幅を確保 */
.cta-block .btn-sausage:empty::before {
  content: "\200b";
}
