/*
 * トップのスライダー（Smart Slider 3 Pro の slider 2＝PC・slider 3＝スマホ の置き換え）
 * 寸法は現状（有料版）を Edge で実測して合わせた（report-paid-plugins.md「JS 試作」）
 *  PC  : 幅いっぱい・高さ = min(幅×2/3, 800px)。文字画像は幅 min(855px, 幅−160px)・上 30px／下 70px の間で上下中央
 *  スマホ: 縦向き 700px 以下・横向き 900px 以下（Smart Slider の mobileportrait と同じ条件）。高さ = 幅×2・文字画像は幅 250px・上に 100px ずらす
 */
.hero-slider { position: relative; width: 100%; aspect-ratio: 3 / 2; max-height: 800px; overflow: hidden; background: #000; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s cubic-bezier(.25, .46, .45, .94); }
.hero-slide.is-active { opacity: 1; z-index: 2; }
.hero-slide.is-leaving { z-index: 1; }
.hero-bg img {
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos-pc, 50% 50%);
  transform: scale(var(--kb-from, 1)); transform-origin: 50% 50%;
}
/* Ken Burns（Smart Slider の設定値: 拡大 1.2⇄1.5 × 強さ superSoft 0.3 → 1.06⇄1.15、速さ slow = 10 秒） */
.hero-slide.is-active .hero-bg img,
.hero-slide.is-leaving .hero-bg img { animation: hero-kb 10s cubic-bezier(.25, .46, .45, .94) forwards; }
@keyframes hero-kb { from { transform: scale(var(--kb-from, 1)); } to { transform: scale(var(--kb-to, 1)); } }

.hero-text { position: absolute; inset: 30px 80px 70px; z-index: 3; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.hero-text img { display: block; width: 100%; max-width: 855px; height: auto; }

@media (orientation: portrait) and (max-width: 700px), (orientation: landscape) and (max-width: 900px) {
  .hero-slider { aspect-ratio: 1 / 2; max-height: none; }
  .hero-bg img { object-position: var(--pos-sp, 50% 50%); }
  .hero-text { inset: 30px 20px 70px; }
  .hero-text img { width: 250px; margin-top: -100px; }
}
