@charset "utf-8";

/* =========================================================
   CTAショートコード [cta id="1"]
   ========================================================= */

.cta-block {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 32px 0;
}

.cta-block__button {
  position: relative;
  display: flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 84px;
  padding: 18px 44px 18px 24px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
  text-decoration: none !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.cta-block__button:hover,
.cta-block__button:focus {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
  opacity: 0.92;
  text-decoration: none;
}

.cta-block__button:focus-visible {
  outline: 3px solid rgba(0, 0, 0, 0.35);
  outline-offset: 2px;
}

.cta-block__text {
  display: block;
}

/* 右端の「›」 */
.cta-block__arrow {
  position: absolute;
  top: 50%;
  right: 20px;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

/* ボタンが1つだけのときは横幅を広げすぎない */
.cta-block--1 .cta-block__button {
  flex: 0 1 420px;
  margin: 0 auto;
}

@media screen and (max-width: 767px) {
  .cta-block {
    gap: 12px;
    margin: 24px 0;
  }

  .cta-block__button {
    flex: 1 1 100%;
    min-height: 68px;
    padding: 16px 40px 16px 20px;
    font-size: 16px;
  }

  .cta-block--1 .cta-block__button {
    flex: 1 1 100%;
  }
}
