/* --- メインビジュアル --- */
.c-mv {
  background-image: url(/-/media/tfc/ts3web/file/assets/img/lp/ts/application/mv_b_bg_sp.webp);
  background-repeat: no-repeat;
  background-size: cover;
}

.c-mv__inner {
  display: grid;
  overflow: hidden;
}

.c-mv__car-image {
  z-index: 0;
  margin-left: auto;
}

.c-mv__car-img {
  display: block;
  width: 375px;
  height: auto;
  min-width: 0;
  max-width: 100%;
}

.c-mv__title-image {
  z-index: 10;
  margin-left: 5%;
  margin-top: -21px;
}

.c-mv__title-img {
  display: block;
  width: 341px;
  height: auto;
  min-width: 0;
  max-width: 100%;
}

.c-mv__subtitle-image {
  z-index: 5;
  margin-top: 27px;
  margin-bottom: 20px;
  margin-right: 5%;
  margin-left: auto;
}

.c-mv__subtitle-img {
  display: block;
  width: 336px;
  height: auto;
  min-width: 0;
  max-width: 100%;
}

/* フェードインアニメーション（MV用） */
.c-mv-fadeIn--topRight {
  animation-duration: 800ms;
  animation-fill-mode: both;
  animation-timing-function: ease-out;
  animation-delay: 0ms;
  animation-name: fadeInTopRight;
}

@keyframes fadeInTopRight {
  0% {
    opacity: 0;
    transform: translateY(-100px) translateX(100px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) translateX(0);
  }
}

.c-mv-fadeIn {
  animation-duration: 500ms;
  animation-fill-mode: both;
  animation-timing-function: ease-out;
  animation-delay: 800ms;
  animation-name: fadeIn;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ユーザーが動きの削減を好む場合の設定 */
@media (prefers-reduced-motion: reduce) {
  .c-mv-fadeIn,
  .c-mv-fadeIn--topRight {
    animation: none;
    opacity: 1;
  }
}

/* ========== レスポンシブ設定 ========== */

@media screen and (min-width: 768px) {
  /* --- メインビジュアル（PC） --- */
  .c-mv {
    background-image: url(/-/media/tfc/ts3web/file/assets/img/lp/ts/application/mv_b_bg_pc.webp);
    background-size: contain;
    background-position: top center;
  }

  .c-mv__inner {
    margin: 0 auto;
    max-width: 1500px;
    grid-template-columns: 343fr 407fr;
    grid-template-rows: 1fr 1fr;
  }

  .c-mv__car-image {
    grid-column: 2/3;
    grid-row: 1/3;
  }

  .c-mv__car-img {
    width: 100%;
    max-width: 814px;
  }

  .c-mv__title-image {
    grid-column: 1/2;
    grid-row: 1/2;
    margin-left: 9%;
    margin-top: auto;
  }

  .c-mv__title-img {
    width: 100%;
    max-width: 614px;
  }

  .c-mv__subtitle-image {
    grid-column: 1/2;
    grid-row: 2/3;
    margin-top: auto;
    margin-bottom: 10px;
    margin-left: 6%;
    margin-right: -15%;
  }

  .c-mv__subtitle-img {
    width: 100%;
    max-width: 748px;
  }
}

/* ユーザーが動きの削減を好む場合の設定 */
@media (min-width: 768px) and (prefers-reduced-motion: reduce) {
  .c-mv-fadeIn--pc {
    animation: none;
    opacity: 1;
  }
}
