.mv {
  --mv-max: 1200px;
  --mv-ratio: 0.375;
  position: relative;
  margin: 0 auto;
  max-width: var(--mv-max);
}

.mv__viewport {
  position: relative;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: #f1f2f4;
}

.mv__viewport::before {
  content: "";
  display: block;
  padding-top: calc(var(--mv-ratio) * 100%);
}

/* アスペクト比維持 */

.mv__track {
  position: absolute;
  inset: 0;
  display: flex;
  transition: transform .5s ease;
  height: 100%;
}

.mv__slide {
  position: relative;
  min-width: 100%;
  height: 100%;
}

.mv__bg {
  position: absolute;
  inset: 0;
}

.mv__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mv__ph {
  width: 100%;
  height: 100%;
  background: #f5c400;
}

/* 画像なし時のダミー背景 */

.mv__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px;
  text-align: center;
  gap: 14px;
}

.mv__headline {
  margin: 0;
  font-size: clamp(20px, 3.2vw, 40px);
  font-weight: 800;
  letter-spacing: .02em;
}

.mv__text {
  margin: 0;
  max-width: 800px;
  line-height: 1.8;
  font-size: clamp(14px, 1.4vw, 18px);
}

.mv__btn {
  display: inline-block;
  margin-top: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  background: #1185d9;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}

/* 矢印 */
.mv__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  background: #fff;
  color: #222;
  font-size: 26px;
  line-height: 44px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}

.mv__prev {
  left: 10px;
}

.mv__next {
  right: 10px;
}

.mv[data-arrows="0"] .mv__arrow {
  display: none;
}

/* ドット */
.mv__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.mv__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  opacity: .6;
  border: 1px solid rgba(0, 0, 0, .15);
  cursor: pointer;
}

.mv__dot.is-active {
  opacity: 1;
  background: #1185d9;
}

.mv[data-dots="0"] .mv__dots {
  display: none;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .mv__arrow {
    width: 38px;
    height: 38px;
    line-height: 38px;
    font-size: 22px;
  }
}
