@charset "utf-8";

/* =============================================================

Scroll Guide
横スクロール可能な要素に案内UIを表示する共通パーツ

============================================================= */

.scroll-guide {
  position: relative;
}

.scroll-guide__bubble {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  box-sizing: border-box;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  row-gap: 8px;
  width: fit-content;
  min-width: 0;
  max-width: none;
  padding: 20px;
  border-radius: 16px;
  color: #fff;
  background: rgba(0, 0, 0, 0.56);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%);
  visibility: hidden;
}

.scroll-guide__bubble .scroll-guide__icon {
  display: block;
  width: 80px !important;
  min-width: 80px;
  max-width: 80px;
  height: auto !important;
  flex: 0 0 auto;
}

.scroll-guide__text {
  display: block;
}

.scroll-guide.is-guide-active .scroll-guide__bubble {
  opacity: 1;
  visibility: visible;
}

.scroll-guide.is-guide-hidden .scroll-guide__bubble {
  opacity: 0;
  visibility: hidden;
}

@media (min-width: 961px) {
  .scroll-guide__bubble {
    display: none;
  }
}
