.custom-buttons {
  text-align: center;
}

.custom-button,
.custom-button-wrapper{
    width: fit-content;
    max-width: 500px !important;
    margin: 0 auto !important;
}

.custom-button__text,
.custom-button__link {
    display: block;
    text-decoration: none;
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    min-height: 64px;
    margin: 0 auto;
    text-align: center;
    align-content: center;
	color:var(--button-color,#08DAFF);
	text-align: center;
	font-family: 'Noto Sans JP', sans-serif;
	font-size: 18px;
	font-weight: bold;
	line-height: 175%; /* 29.75px */
	letter-spacing: 0.68px;
  border-radius: 32px;
  background-color: var(--button-bg, #fff);
  border: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}
.custom-button__text {
    width: fit-content;
    padding: 0px 54px;
    box-shadow: none;
    min-width: 180px;
}
/* ホバー時に文字色を変えたいなら両方セレクタに入れる */
.custom-button__text:hover,
.custom-button__link:hover {
  color: var(--button-color-hover, #fff) !important;
  background-color: var(--button-bg-hover, #08DAFF) !important;
	opacity:1;
}

/* 疑似要素の背景を skew する */
.custom-button__text::before{
    content: '';
}
.custom-button__link::before {
    content: "";
    position: absolute;
    z-index: 2;
    top: 50%;
    right: 20px;
    width: 30px;
    height: 30px;
    background: var(--button-color,#08DAFF);
    border-radius: 15px;
    transform: translate(0, -50%);
    pointer-events: none;
}
/* .custom-button__text:hover::before, */
.custom-button__link:hover::before {
  background-color: var(--button-color-hover, #fff);
  border:none;
}

.custom-button-wrapper{
padding-top   : var(--container-padding-top   ,0);
	padding-right : var(--container-padding-right ,0);
	padding-bottom: var(--container-padding-bottom,0);
	padding-left  : var(--container-padding-left  ,0);
}
.dli-arrow-right {
  display: inline-block;
    vertical-align: middle;
    color:var(--button-bg, #fff);
    line-height: 1;
    position: absolute;
    width: 11px;
    height: 0.1em;
    background: var(--button-bg, #fff);
    z-index: 2;
    right: 29px;
    top: 49%;
    transition: transform 0.6s ease-out;
}

.custom-button__link:hover .dli-arrow-right {
    color:var(--button-bg-hover, #08DAFF);
    background: var(--button-bg-hover, #08DAFF);
    transform: rotate(360deg);
}
 .dli-arrow-right:hover {
    color:var(--button-bg-hover, #08DAFF);
    background: var(--button-bg-hover, #08DAFF);
    transform: rotate(360deg);
}
.dli-arrow-right::before {
  content: '';
    width: 8px;
    height: 8px;
    border: 0.1em solid currentColor;
    border-left: 0;
    border-bottom: 0;
    transform: rotate(45deg);
    transform-origin: top right;
    position: absolute;
    top: 50%;
    right: -0.05em;
    box-sizing: border-box;
}
/* a.custom-button__link の下層に ::after を置く */
.custom-button__link {
  position: relative; /* 既にあると思いますが念のため */
  overflow: hidden;   /* はみ出し防止 */
  z-index: 1;
}

/* 擬似要素を背景として用意 */
.custom-button__link::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(
    120deg,
    var(--button-bg-hover, #08DAFF),
    var(--button-color-hover, #ffffff)
  );
  transform: translateX(-100%); /* 左から隠しておく */
  transition: transform 0.5s cubic-bezier(0.75, 0, 0.125, 1);
  z-index: 0; /* テキスト／矢印の下層 */
}

/* ホバーで擬似要素をスライドイン */
.custom-button__link:hover::after {
  transform: translateX(0);
}





@media screen and (max-width: 768px) {
	.custom-button__text,
	.custom-button__link {
		min-width:180px !important;
		font-size: 16px;
        letter-spacing: 0.56px;
	}
	/* .custom-button__text::before,
	.custom-button__link::before {
		min-width:240px;
	} */
  .custom-button-wrapper{
    padding-top   : var(--container-padding-mobile-top   ,0);
		padding-right : var(--container-padding-mobile-right ,0);
		padding-bottom: var(--container-padding-mobile-bottom,0);
		padding-left  : var(--container-padding-mobile-left  ,0);
  }
}
