.ffts {
  --ffts-duration: 7000ms;
  --ffts-bar-color: #fff;
  --ffts-bar-track: rgba(255,255,255,.28);
  position: relative;
  left: 50%;
  width: 100vw;
  max-width: none !important;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
  color: #fff;
  padding-bottom: 34px;
  box-sizing: border-box;
}
.ffts__backgrounds {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.ffts__background-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform .72s cubic-bezier(.65,0,.35,1);
  will-change: transform;
}
.ffts__background {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}
.ffts-host {
  margin-top: 0 !important;
  padding-top: 0 !important;
  max-width: none !important;
}

.ffts__viewport {
  position: relative;
  z-index: 1;
  height: clamp(590px, 36vw, 690px) !important;
  overflow: hidden;
}
.ffts__track {
  display: flex;
  align-items: flex-start;
  width: 100%;
  transition: transform .72s cubic-bezier(.65,0,.35,1);
  will-change: transform;
}
.ffts__slide {
  position: relative;
  flex: 0 0 100%;
  min-width: 0;
  overflow: hidden;
  height: clamp(590px, 36vw, 690px);
}
.ffts__slide > *:not(.ffts__click-layer) { width: 100%; }
.ffts__legacy > .ff-hero,
.ffts__legacy > .ff-hero-SP { margin-top: 0 !important; }
.ffts__click-layer {
  position: absolute;
  inset: 0;
  z-index: 8;
}
.ffts__image-link {
  display: block;
  width: 100%;
  height: 100%;
  padding: 22px 3% 28px;
  box-sizing: border-box;
}
.ffts__image-link picture {
  display: block;
  width: 100%;
  height: 100%;
}
.ffts__custom {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  box-sizing: border-box;
}
.ffts__slide .rakko-wave-wrap { display: none !important; }
.ffts__custom--rakko { min-height: 0; }
.ffts__custom--rakko {
  display: block;
  overflow: hidden;
  font-size: 0;
  line-height: 0;
}
.ffts__custom--rakko .rakko-base-only {
  position: relative !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  overflow: hidden !important;
  font-size: 16px;
  line-height: normal;
}
.ffts__custom--rakko .rakko-base-inner {
  position: relative !important;
  left: 0 !important;
  width: 100% !important;
  max-width: 1200px !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 auto !important;
}
.ffts__custom--rakko .rakko-parent-group,
.ffts__custom--rakko .rakko-child-group {
  left: 50% !important;
}
.ffts__image-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
}
.ffts__controls {
  position: relative;
  z-index: 12;
  left: auto;
  bottom: auto;
  display: grid;
  grid-template-columns: repeat(var(--ffts-count, 2), minmax(95px, 1fr));
  gap: clamp(16px, 3vw, 42px);
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 8px max(3%, calc((100% - 920px) / 2)) 5px;
  box-sizing: border-box;
  transform: none;
  background: transparent;
}
.ffts__wave-wrap {
  position: absolute;
  z-index: 11;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 36px;
  overflow: hidden;
  pointer-events: none;
}
.ffts__wave {
  position: absolute;
  left: -10%;
  width: 120%;
  background-repeat: repeat-x;
  will-change: transform;
}
.ffts__wave--back {
  bottom: 4px;
  height: 34px;
  opacity: .34;
  background-image: radial-gradient(circle at 28px 34px,rgba(255,255,255,.55) 0 28px,transparent 28.5px);
  background-size: 56px 34px;
  animation: ffts-wave-back 7s linear infinite;
}
.ffts__wave--front {
  bottom: -2px;
  height: 40px;
  background-image: radial-gradient(circle at 24px 40px,#fff 0 24px,transparent 24.5px);
  background-size: 48px 40px;
  animation: ffts-wave-front 4.8s linear infinite;
}
@keyframes ffts-wave-back { to { transform: translateX(-56px); } }
@keyframes ffts-wave-front { to { transform: translateX(-48px); } }
.ffts__control {
  position: relative;
  appearance: none;
  padding: 7px 0 0;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.72);
  font: 600 clamp(10px, .9vw, 13px)/1.1 sans-serif;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: .04em;
  cursor: pointer;
  text-shadow: none;
}
.ffts__control.is-active { color: #fff; }
.ffts__number { margin-right: .3em; font-size: 1.3em; font-weight: 800; }
.ffts__bar {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 2px;
  overflow: hidden;
  background: var(--ffts-bar-track);
}
.ffts__bar-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--ffts-bar-color);
  transform: translateX(-100%);
}
.ffts__control.is-active .ffts__bar-fill {
  animation: ffts-progress var(--ffts-duration) linear forwards;
}
@keyframes ffts-progress { to { transform: translateX(0); } }

@media (max-width: 767px) {
  .ffts { padding-bottom: 30px; }
  .ffts__viewport { height: 640px !important; }
  .ffts__slide { height: 640px; }
  .ffts__image-link { height: 100%; padding: 18px 4% 24px; }
  .ffts__image-link img { border-radius: 0; }
  .ffts__custom { height:100%; min-height:0; padding:0; }
  .ffts__controls { bottom:auto; display:flex; width:100%; min-height:42px; padding:8px 6% 5px; gap:14px; overflow-x:auto; scrollbar-width:none; }
  .ffts__control { flex:0 0 42%; }
  .ffts__wave-wrap { bottom: 0; height: 32px; }
  .ffts__wave--back { height:26px;background-size:44px 26px;background-image:radial-gradient(circle at 22px 26px,rgba(255,255,255,.56) 0 22px,transparent 22.5px);animation-name:ffts-wave-back-sp; }
  .ffts__wave--front { height:30px;background-size:40px 30px;background-image:radial-gradient(circle at 20px 30px,#fff 0 20px,transparent 20.5px);animation-name:ffts-wave-front-sp; }
}
@keyframes ffts-wave-back-sp { to { transform:translateX(-44px); } }
@keyframes ffts-wave-front-sp { to { transform:translateX(-40px); } }

@media (prefers-reduced-motion: reduce) {
  .ffts__track { transition-duration: .01ms; }
  .ffts__bar-fill { animation: none !important; transform: translateX(0); }
}
