@charset "UTF-8";

/* mv */
@keyframes zoomIn {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.05);
  }
}
.top-mv {
  position: relative;
}
.top-mv .splide__slide {
  overflow: hidden;
  position: relative;
}
.top-mv .splide__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  display: block;
}
.top-mv .splide__slide.is-active img {
  animation: zoomIn 5s linear forwards;
}
.top-mv .text-box {
  position: absolute;
  top: 0px;
  padding-top: 50px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.top-mv .lead-en {
  color: var(--text-accent);
  font-size: 6rem;
  letter-spacing: 6px;
  font-weight: initial;
  text-shadow: 3px 3px 3px rgba(0, 0, 0, 0.5);
}
.top-mv .lead-ja {
  font-size: 10rem;
  font-weight: 900;
  color: var(--text-on-light);
  margin-bottom: 40px;
  text-shadow: 5px 5px 5px rgba(0, 0, 0, 0.8);
}
.top-mv .lead-tx {
  font-size: 4rem;
  color: var(--text-on-light);
  font-weight: bold;
  text-shadow: 5px 5px 5px rgba(0, 0, 0, 0.8);
}
@media screen and (max-width: 1280px) {
  .top-mv .lead-en {
    font-size: 5rem;
  }
  .top-mv .lead-ja {
    font-size: 7vw;
  }
  .top-mv .lead-tx {
    font-size: 3vw;
  }
}
@media screen and (max-width: 1024px) {
  .top-mv .text-box {
    padding-top: 20px;
  }
  .top-mv .lead-en {
    font-size: 4rem;
  }
  .top-mv .lead-ja {
    margin-bottom: 20px;
  }
}
@media screen and (max-width: 600px) {
  .top-mv .text-box {
    padding: 60px 15px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    left: 0;
    width: 100%;
  }
  .top-mv .lead-en {
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.5);
    font-size: 4rem;
  }
  .top-mv .lead-ja {
    text-shadow: 3px 3px 3px rgba(0, 0, 0, 0.8);
    font-size: 10vw;
  }
  .top-mv .lead-tx {
    text-shadow: 3px 3px 3px rgba(0, 0, 0, 0.8);
    font-size: 5vw;
  }
}
@media screen and (max-width: 430px) {
  .top-mv .text-box {
    padding: 20px 15px 40px;
  }
  .top-mv .lead-en {
    font-size: 3rem;
  }
  .top-mv .lead-tx {
    font-size: 5vw;
  }
}

/*---------------------*/
/* 共通　画像ギャラリー */
.cs-gallery {
  display: flex;
  width: 100%;
  height: 350px;
  overflow: hidden;
  margin-bottom: 20px;
}
.cs-gallery .item {
  position: relative;
  width: calc(100% / 3 + 6%);
  height: 100%;
}
.cs-gallery .item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cs-gallery .item:nth-child(1) {
  clip-path: polygon(0 0, 100% 0, 86% 100%, 0 100%);
  z-index: 3;
}
.cs-gallery .item:nth-child(2) {
  clip-path: polygon(14% 0, 100% 0, 86% 100%, 0 100%);
  margin-left: -6%;
  z-index: 2;
}
.cs-gallery .item:nth-child(3) {
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
  margin-left: -6%;
  z-index: 1;
}
@media screen and (max-width: 960px) {
  .cs-gallery {
    height: 300px;
  }
}
@media screen and (max-width: 767px) {
  .cs-gallery {
    flex-direction: column;
    height: auto;
    overflow: visible;
    max-width: 500px;
    margin: 0 auto 20px;
  }
  .cs-gallery .item {
    width: 100%;
    height: 270px;
    margin-left: 0 !important;
    margin-bottom: -35px;
    z-index: auto;
    clip-path: polygon(0 10%, 100% 0, 100% 90%, 0 100%) !important;
  }
  .cs-gallery .item:first-child {
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%) !important;
  }
  .cs-gallery .item:last-child {
    margin-bottom: 0 !important;
    clip-path: polygon(0 10%, 100% 0, 100% 100%, 0 100%) !important;
  }
  .cs-gallery .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}
@media screen and (max-width: 430px) {
  .cs-gallery .item {
    height: 230px;
  }
}

/*---------------------*/
/* カーライフ carlife */
.p-carlife {
  padding-top: 0;

  .grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    list-style: none;
    margin-top: 50px;
  }
  .box {
    display: flex;
    gap: 20px;
    align-items: flex-start;
  }
  .num-box {
    background-color: var(--bg-primary);
    color: var(--bg-secondary);
    width: 110px;
    height: auto;
    padding: 15px 0;
    text-align: center;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .txt {
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: 1px;
    line-height: 1;
  }
  .digit {
    font-size: 5rem;
    font-weight: bold;
    color: var(--text-accent);
    line-height: 1.1;
  }
  .body {
    flex-grow: 1;
  }
  .ttl {
    position: relative;
    font-size: 2.6rem;
    color: var(--bg-primary);
    font-weight: 600;
    margin: 0 0 15px;
    padding-bottom: 8px;

    &::after {
      content: "";
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      height: 5px;
      background-color: var(--bg-secondary);
    }
  }
  .text {
    line-height: 1.6;
    margin: 0;
  }
  @media screen and (max-width: 1024px) {
    .grid {
      gap: 50px 40px;
    }
    .num-box {
      width: 85px;
    }
    .txt {
      font-size: 1.6rem;
    }
    .digit {
      font-size: 4rem;
    }
    .ttl {
      font-size: 2.2rem;
      margin-bottom: 10px;
    }
    .text {
      font-size: 1.6rem;
    }
  }
  @media screen and (max-width: 767px) {
    .grid {
      grid-template-columns: 1fr;
      row-gap: 40px;
    }
    .box {
      gap: 15px;
    }
    .num-box {
      width: 65px;
      padding: 10px 0;
    }
    .txt {
      font-size: 1.4rem;
    }
    .digit {
      font-size: 3rem;
    }
    .ttl {
      font-size: 2rem;
      margin-bottom: 8px;
    }
  }
  @media screen and (max-width: 430px) {
    .box {
      flex-direction: column;
      gap: 10px;
    }
    .num-box {
      width: auto;
      flex-direction: row;
      padding: 10px;
      align-items: center;
      column-gap: 5px;
    }
  }
}

/* マイガレージ mygarage */
.p-mygarage {
  padding-top: 0;
}
