@charset "UTF-8";
/*
  /rakurakucloud/seisan/base/css/object/component/c-cta.css
  CTAコンポーネント用CSS
  種類：デフォルト（グラデーション塗り）/ ボーダー / 大 / ドキュメント有
*/

/*
  CTAベース（グラデーション塗り）
  ※グラデーションの色は u-common.css の --rseisan-cta-edge / --rseisan-cta-gradation を使用
*/
.c-cta {
  position: relative;
  width: 256px;
  max-width: 100%;
  transition: transform 0.2s ease;
  margin: 0 auto;
  @media screen and (max-width: 600px) {
    width: 100%;
  }
  .c-cta__link {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 60px;
    border: 2px solid transparent;
    border-radius: 50px;
    background-image: linear-gradient(94deg, #ff6f2c 0.26%, #ff7f16 17%, #ff7f16 49%, #ff7f16 82%, #ff6f2c 100%);
    background-origin: border-box;
    background-color: var(--rseisan-cta);
    color: var(--white);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: var(--letter-spacing-5percent);
    text-align: center;
    transition: var(--transition);
    @media screen and (max-width: 600px) {
      height: 50px;
      font-size: 16px;
    }
    &:hover {
      box-shadow: var(--btn-new-shadow-hover);
      transform: translate3d(0, -2px, 0);
      border-color: var(--rseisan-cta);
      background-image: none;
      background-color: var(--white);
      color: var(--rseisan-cta);
    }
  }
  .c-cta__text {
    display: block;
    width: 100%;
  }

  /*
    ボーダー
  */
  &.c-cta--border {
    .c-cta__link {
      border-color: var(--rseisan-cta);
      background-image: none;
      background-color: var(--white);
      /* ホバー用のグラデーション塗り（background-imageは補間されないため、opacityでフェードさせる） */
      &::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        background-image: linear-gradient(94deg, #ff6f2c 0.26%, #ff7f16 17%, #ff7f16 49%, #ff7f16 82%, #ff6f2c 100%);
        opacity: 0;
        transition: var(--transition);
      }
    }
    .c-cta__text {
      position: relative;
      background-image: linear-gradient(94deg, #ff6f2c 0.26%, #ff7f16 17%, #ff7f16 49%, #ff7f16 82%, #ff6f2c 100%);
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
      color: transparent;
      transition: var(--transition);
    }
    &:hover {
      .c-cta__link::before {
        opacity: 1;
      }
      .c-cta__text {
        -webkit-text-fill-color: var(--white);
        color: var(--white);
      }
    }
  }

  /*
    大
  */
  &.c-cta--large {
    width: 400px;
    .c-cta__link {
      height: auto;
      min-height: 80px;
      padding: 0 40px;
      font-size: 22px;
      line-height: 1;
      @media screen and (max-width: 840px) {
        min-height: 60px;
        font-size: 18px;
      }
    }
    .c-cta__text-sub {
      display: block;
      width: 100%;
      margin: 0 0 8px;
      font-size: 12px;
      letter-spacing: var(--letter-spacing-5percent);
    }
    @media screen and (max-width: 600px) {
      width: 100%;
    }
  }

  /*
    ドキュメント有
  */
  &.c-cta--document {
    width: 316px;
    .c-cta__link {
      padding: 0 0 0 30px;
    }
    .c-cta__image {
      position: absolute;
      top: 3px;
      left: -22px;
      width: 73px;
      height: auto;
      @media screen and (max-width: 600px) {
        display: none;
      }
    }
    @media screen and (max-width: 840px) {
      width: 100%;
      .c-cta__link {
        padding: 0;
      }
    }
  }
}
