/*----------------------------------------


c-btn


----------------------------------------*/
.c-btn {
  max-width: 300px;
  width: 80%;

  a {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
    text-align: center;
    color: #fff;
    font-size: 1.8rem;
    line-height: 1.2;
    text-decoration: none;

    span {
      position: relative;
      top: -10px;
      display: inline-block;
      width: 40px;
      padding-right: 20px;

      img {
        position: relative;
        width: 100%;
        z-index: 2;
      }
    }
  }

  .arrow {
    padding-right: 40px;
  }
}

.c-btn._long {
  max-width: fit-content;

  a {
    padding-left: 10px;
  }
}

.c-btn._middle {
  a {
    height: 50px;
    font-size: 1.6rem;
  }
}

.c-btn._red {
  a {
    background: #b74d3b;
  }
}

.c-btn._blue {
  a {
    background: #1c4295;
  }
}

.c-btn._l {
  margin: 0;
}

.c-btn._c {
  margin: 0 auto;
}

.c-btn a span:before {
  position: absolute;
  content: "";
  top: 10px;
  left: 10px;
  background: #fff;
  width: 20px;
  height: 20px;
  z-index: 1;
}

.c-btn-arrow {
  width: fit-content;

  a {
    position: relative;
    font-size: 1.6rem;
    line-height: 1.4;
    letter-spacing: 0.04em;
    text-decoration: none;
    white-space: nowrap;
    padding-left: 24px;

    /* アイコンは疑似要素で表示（ビジュアルエディタ保存でspanが消えるため） */
    /* 丸 */
    &::before {
      content: "";
      position: absolute;
      top: 50%;
      left: 0;
      translate: 0 -50%;
      width: 20px;
      height: 20px;
      background: #1c4295;
      border-radius: 50%;
    }

    /* 三角 */
    &::after {
      content: "";
      position: absolute;
      top: 50%;
      left: 7px;
      translate: 0 -50%;
      width: 6px;
      aspect-ratio: 1/1;
      background: #fff;
      clip-path: polygon(0% 0%, 100% 50%, 0% 100%);
    }

    /* 旧マークアップのspanが残っていても二重表示しない */
    .c-btn-arrow-icon {
      display: none;
    }
  }
}

@media only screen and (max-width:767px) {
  .c-btn {
    a {
      display: flex;
      justify-content: center;
      align-items: center;
      height: 60px;
      text-align: center;
      color: #fff;
      font-size: 1.6rem;
      line-height: 1.2;
      text-decoration: none;

      span {
        position: relative;
        top: -10px;
        display: inline-block;
        width: 40px;
        padding-right: 20px;

        img {
          position: relative;
          width: 100%;
          z-index: 2;
        }
      }
    }

  }
  .c-btn._long {
    width: auto;
    max-width: fit-content;
  
    a {
      padding-left: 10px;
    }
  }
  .c-btn._middle {
    a {
      height: 50px;
      font-size: 1.4rem;
    }
  }
  
  .c-btn._red {
    a {
      background: #b74d3b;
    }
  }

  .c-btn._blue {
    a {
      background: #1c4295;
    }
  }

  .c-btn._l {
    margin: 0;
  }

  .c-btn._c {
    margin: 0 auto;
  }

  .c-btn a span:before {
    position: absolute;
    content: "";
    top: 10px;
    left: 10px;
    background: #fff;
    width: 20px;
    height: 20px;
    z-index: 1;
  }


  .c-btn-arrow {
  
    a {
      font-size: 1.4rem;
      padding-left: 24px;
  
      &::before {
        width: 18px;
        height: 18px;
      }

      &::after {
        left: 6px;
      }
    }
  }
}