@charset "UTF-8";
/*
  /rakurakucloud/gwtg/asset/css/layout/l-fixed-cta.css
  スクロール追従の固定CTAバナー（事例セクション以降で出現）
*/
.l-fixed-cta {
  position: fixed;
  right: 40px;
  bottom: 40px;
  z-index: var(--z-index-pagetop);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0.3s ease;
  @media screen and (max-width: 840px) {
    right: 0;
    left: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    padding: 0 16px 16px;
  }
}
.l-fixed-cta.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.l-fixed-cta.is-target-reached {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.l-fixed-cta.is-page-bottom {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.l-fixed-cta__button {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  width: 160px;
  padding: 12px;
  border-radius: 10px;
  background-color: var(--rcloud-cta);
  text-decoration: none;
  box-shadow: var(--rcloud-cta-shadow);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  @media screen and (max-width: 840px) {
    width: 90%;
    max-width: 480px;
    gap: 10px;
    padding: 12px;
  }
}
.l-fixed-cta__button:hover {
  box-shadow: none;
}

/* --- 上段：キャッチコピー --- */
.l-fixed-cta__catch {
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.05em;
  text-align: center;
  @media screen and (max-width: 840px) {
    font-size: 20px;
    white-space: nowrap;
  }
}

/* --- 下段：白背景アクションボックス --- */
.l-fixed-cta__action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  background-color: var(--white);
  border-radius: 8px;
  padding: 8px 12px;
  @media screen and (max-width: 840px) {
    padding: 6px 16px;
  }
}

.l-fixed-cta__text {
  flex-grow: 1;
  white-space: nowrap;
  text-align: left;
  color: var(--rcloud-cta);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.4;
  @media screen and (max-width: 840px) {
    font-size: 16px;
  }
}

/* --- アイコン周りのスタイル --- */
.l-fixed-cta__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--rcloud-cta);
  color: var(--white);
  flex-shrink: 0;
  border: 1px solid transparent;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
  @media screen and (max-width: 840px) {
    width: 32px;
    height: 32px;
  }
}
.l-fixed-cta__icon svg {
  width: 18px;
  height: 18px;
}

/* ★ hover時に〇と→の色を反転（PCのみ） */
@media screen and (min-width: 841px) {
  .l-fixed-cta__button:hover .l-fixed-cta__icon {
    background-color: var(--white);
    color: var(--rcloud-cta);
    border: 1px solid var(--rcloud-cta);
  }
}

.l-fixed-cta__icon svg path {
  stroke: currentColor;
  transition: stroke 0.2s ease;
}
