.mypage-install-section {
  margin: 48px 0 0;
}

.mypage-install-section .mypage-section-title {
  margin-bottom: 25px;
}

.mypage-install-button {
  width: 100%;
  height: 61px;
  display: grid;
  place-items: center;
  position: relative;
  border: 0;
  border-radius: 16px;
  background: var(--color-brand);
  color: var(--color-on-brand);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  padding: 0 56px;
  text-align: center;
}

.mypage-install-icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  overflow: hidden;
  position: absolute;
  top: 50%;
  left: 18px;
  color: inherit;
  transform: translateY(-50%);
}

.mypage-install-icon svg {
  width: 22px;
  height: 22px;
  display: block;
  overflow: hidden;
}

.mypage-install-arrow {
  animation: mypage-install-arrow-loop 1.9s cubic-bezier(0.45, 0, 0.2, 1) infinite;
}

.mypage-install-button:active {
  filter: brightness(0.94);
}

.mypage-install-button:focus-visible {
  outline: 2px solid rgba(var(--color-brand-rgb), 0.45);
  outline-offset: 3px;
}

.mypage-install-ios {
  display: block;
}

/* iOS はブラウザから直接インストールを起動できないため、ボタン風の表示は出さない。 */
.mypage-install-ios .mypage-install-button.is-guide {
  display: none;
}

.mypage-install-note {
  margin: 0;
  color: var(--color-subtext);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.75;
}

.mypage-share-icon {
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  margin: 0 2px;
  border-radius: 4px;
  background: rgba(var(--color-brand-rgb), 0.12);
  color: var(--color-brand-dark);
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  vertical-align: -3px;
}

@keyframes mypage-install-arrow-loop {
  0%,
  18% {
    opacity: 1;
    transform: translateY(0);
  }

  38% {
    opacity: 1;
    transform: translateY(2.4px);
  }

  50% {
    opacity: 0;
    transform: translateY(5.7px);
  }

  58% {
    opacity: 0;
    transform: translateY(-8px);
  }

  75% {
    opacity: 1;
    transform: translateY(-2px);
  }

  90%,
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mypage-install-arrow {
    animation: none;
  }
}
