.prfs-slider {
  position: relative;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
}

.prfs-viewport {
  position: relative;
  overflow: hidden;
  width: 100%;
  background: transparent;
}

.prfs-track {
  display: flex;
  align-items: stretch;
  width: max-content;
  transform: translateX(0);
  transition: transform 0.45s ease;
  will-change: transform;
}

.prfs-slide {
  flex: 0 0 clamp(240px, 72vw, 800px);
  width: clamp(240px, 72vw, 800px);
  max-width: none;
  aspect-ratio: 800 / 240;
  margin: 0 clamp(6px, 1.5vw, 16px);
  opacity: 0.78;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.prfs-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.prfs-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.prfs-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.prfs-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prfs-arrowbackup {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.82);
  color: #fff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

.prfs-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    padding: 0;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.82);
    color: #fff;
    line-height: 1;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
}

.prfs-prev::before {
    content: "‹";
    font-size: 34px;
    line-height: 1;
    transform: translateY(-5px);
}

.prfs-next::before {
    content: "›";
    font-size: 34px;
    line-height: 1;
    transform: translateY(-5px);
}

.prfs-prev {
  left: calc(50% - 430px);
}

.prfs-next {
  right: calc(50% - 430px);
}

.prfs-arrow:hover,
.prfs-arrow:focus {
  background: rgba(0, 0, 0, 0.95);
}

.prfs-dots {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 12px;
}

.prfs-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: #8a8a8a;
  cursor: pointer;
}

.prfs-dot.is-active {
  background: #111;
}



@media (max-width: 900px) {
  .prfs-slider {
    max-width: 100%;
  }

  .prfs-slide {
    flex-basis: 17%;
    width: 82%;
    margin: 0 8px;
  }

  .prfs-prev {
    left: 8px;
  }

  .prfs-next {
    right: 8px;
  }
}

@media screen and (max-width: 768px) {

  .prfs-arrow,
  .pfs-arrow {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50%;
    padding: 0 !important;
    border: none;
    background: rgba(0, 0, 0, 0.82);
    color: #fff;
    font-size: 0 !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 10;
  }

  .prfs-arrow::after,
  .pfs-arrow::after {
    display: none !important;
    content: none !important;
  }

  .prfs-arrow::before,
  .pfs-arrow::before {
    display: block !important;
    color: #fff;
    font-size: 31px;
    line-height: 1;
    font-weight: normal;
  }

  .prfs-prev::before,
  .pfs-prev::before {
    content: "‹";
  }

  .prfs-next::before,
  .pfs-next::before {
    content: "›";
  }

  .prfs-prev,
  .pfs-prev {
    left: 8px !important;
  }

  .prfs-next,
  .pfs-next {
    right: 8px !important;
  }


/* モバイルのスワイプ操作を安定させる */
.prfs-viewport {
  overflow: hidden;
  touch-action: pan-y;
}

.prfs-track {
  display: flex;
  transition: transform 0.35s ease;
  will-change: transform;
}

.prfs-slide {
  flex: 0 0 100%;
}


}


@media (max-width: 600px) {
  .prfs-slide {
    flex-basis: 88%;
    width: 88%;
  }

  .prfs-arrow {
    width: 36px;
    height: 36px;
    font-size: 28px;
  }

  .prfs-dots {
    gap: 10px;
  }
}

/* ==============================
   Mobile：スライダーを画面幅にfit
============================== */
@media screen and (max-width: 540px) {

    .prfs-slide {
    flex-basis: clamp(230px, 72vw, 320px);
    width: clamp(230px, 72vw, 320px);
    margin: 0 8px;
  }
  
}
