/* 非会員TOP 画面下部フローティング導線
 * Figma: floating-button 4165:21352 / appバー(content 4051:8819 + ダウンロード 4051:8823)
 * スクロールでアプリ誘導バー ↔ 登録CTA を切り替える(ブライダルネット相当)。
 * 1080px以上では非表示。 */

.guest-fixed {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  /* header(10000)より下、MV内 mv-apps などより上 */
  z-index: 1100;
  pointer-events: none;
}

.guest-fixed__btn {
  display: none;
  position: absolute;
  left: 50%;
  bottom: 0;
  width: calc(100% - 40px);
  max-width: 480px;
  transform: translateX(-50%);
  pointer-events: auto;
  animation-duration: 0.5s;
  animation-fill-mode: forwards;
  animation-name: guest-fixed-btn-off;
}

.guest-fixed__btn.is-active {
  display: block;
  animation-name: guest-fixed-btn-on;
}

/* --- 登録CTA (Figma 4165:21352) --- */
.guest-fixed__cta {
  padding: var(--spacing-3, 12px);
  box-sizing: border-box;
}

.guest-fixed__cta .guest-accent-button--floating {
  width: 100%;
  max-width: 480px;
}

/* --- アプリ誘導バー (初期表示) --- */
.guest-fixed__app {
  width: 100%;
  max-width: none;
  margin-bottom: 0;
  border-top: solid 2px var(--guest-color-border-white, #fff);
  transform: none;
  left: 0;
}

.guest-fixed__app.is-active {
  display: block;
}

.guest-fixed__app-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-2, 8px);
  box-sizing: border-box;
  width: 100%;
  min-height: 52px;
  padding: 8px var(--spacing-3, 12px);
  background: var(--guest-color-background-pale-orange, #FFFDFA);
  color: inherit;
  text-decoration: none;
}

.guest-fixed__app-content {
  display: flex;
  align-items: center;
  gap: var(--spacing-2, 8px);
  min-width: 0;
}

.guest-fixed__app-icon {
  display: block;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-1, 4px);
  object-fit: cover;
}

.guest-fixed__app-text {
  font-family: var(--guest-font-family);
  font-size: var(--guest-font-size-xs, 12px);
  font-weight: var(--guest-font-weight-bold);
  line-height: var(--guest-line-height-heading, 1.4);
  color: var(--guest-color-text-default, #5C5647);
}

/* Figma primary-button small (4051:8823): 高さ32px・角丸40 */
.guest-fixed__app-download {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 32px;
  padding: 0 var(--spacing-4, 16px);
  border-radius: var(--radius-10, 40px);
  background: var(--guest-color-button-default, #F89641);
  color: var(--guest-color-text-white, #fff);
  font-family: "Noto Sans JP", var(--guest-font-family), sans-serif;
  font-size: var(--guest-font-size-xs, 12px);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

@keyframes guest-fixed-btn-on {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes guest-fixed-btn-off {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.guest-fixed__app.is-active,
.guest-fixed__app {
  animation-name: guest-fixed-app-on;
}

@keyframes guest-fixed-app-on {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes guest-fixed-app-off {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.guest-fixed__app:not(.is-active) {
  animation-name: guest-fixed-app-off;
}

@media (min-width: 1080px) {
  .guest-fixed__cta .guest-accent-button--floating {
    max-width: 720px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .guest-fixed__btn,
  .guest-fixed__app {
    animation: none;
  }
}
