/* ============================================================= *

index

* ============================================================= */

/* p-index-mv
============================== */
.p-index-mv{
  position: relative;
  width: 100cqi;
  margin-inline: calc(50% - 50cqi);
}

.p-index-mv:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(51, 51, 51, 0) 55%, var(--base-color) 100%);
  pointer-events: none; 
  /* z-index: 1; */
}

@media screen and (max-width: 560px) {
  .p-index-mv{
    width: 100vw;
    margin-inline: calc(50% - 50vw);
    overflow: hidden;
    position: relative;
  }
}

@media screen and (max-width: 560px) {
  .p-index-mv-slide{
    display: flex;
      width: 630vw;
      animation: mvslider 35s linear infinite;
  }
}

/* p-index-mv-bg
============================== */
.p-index-mv-bg[mv-hidden="true"] {
  display: none;
}

.p-index-mv-bg {
  position: relative;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(4, 1fr);
  grid-column-gap: 0px;
  grid-row-gap: 0px;
  width: 100%;
}

@media screen and (max-width: 560px) {
  .p-index-mv-bg{
    width: 315vw;
    aspect-ratio: 1366 / 620;
    flex-shrink: 0;
  }
  .p-index-mv-bg[mv-hidden="true"] {
    display: grid;
  }
}

@keyframes mvslider {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.p-index-mv-bg__item-01 { grid-area: 1 / 1 / 2 / 2; }
.p-index-mv-bg__item-02 { grid-area: 1 / 2 / 2 / 4; }
.p-index-mv-bg__item-03 { grid-area: 1 / 4 / 3 / 6; }
.p-index-mv-bg__item-04 { grid-area: 1 / 6 / 2 / 7; }
.p-index-mv-bg__item-05 { grid-area: 1 / 7 / 3 / 9; }
.p-index-mv-bg__item-06 { grid-area: 2 / 1 / 3 / 3; }
.p-index-mv-bg__item-07 { grid-area: 2 / 3 / 3 / 4; }
.p-index-mv-bg__item-08 { grid-area: 2 / 6 / 3 / 7; }
.p-index-mv-bg__item-09 { grid-area: 3 / 1 / 4 / 3; }
.p-index-mv-bg__item-10 { grid-area: 3 / 3 / 5 / 5; }
.p-index-mv-bg__item-11 { grid-area: 3 / 5 / 5 / 7; }
.p-index-mv-bg__item-12 { grid-area: 3 / 7 / 4 / 9; }
.p-index-mv-bg__item-13 { grid-area: 4 / 1 / 5 / 3; }
.p-index-mv-bg__item-14 { grid-area: 4 / 7 / 5 / 9; }

.p-index-mv-bg > div img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* p-index-mv__inner
============================== */
.p-index-mv__inner{
  width: calc(100% - var(--inner-padding) * 2);
  max-width: var(--inner-width-px);
  margin-inline: auto;
}

/* p-index-mv__title
============================== */
.p-index-mv__title{
  font-family: "Montserrat", sans-serif;
  font-size: min(calc(100cqi * (76 / 1366)), 76px);
  font-weight: bold;
  white-space: nowrap;
  position: absolute;
  bottom: 13%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: .39em;
}

@media screen and (max-width: 560px) {
  .p-index-mv__title{
    font-size: calc(100cqi * (33 / 375));
  }
}

.p-index-mv__title p{
  letter-spacing: -0.76px;
  display: flex;
  gap: .13158em;
}

@media screen and (max-width: 560px) {
  .p-index-mv__title p{
    gap: 0.2424241em;
  }
}

.p-index-mv__title p span{
  font-family: "Noto Sans JP", sans-serif;
  font-size:  min(calc(100cqi * (59 / 1366)), 59px);
  font-weight: 900;
  position: relative;
  top: 0.085em;
}

@media screen and (max-width: 560px) {
  .p-index-mv__title p span{
    font-size: calc(100cqi * (30 / 375));
    top: 0;
  }
}

.p-index-mv__title em{
  font-size: min(calc(100cqi * (140 / 1366)), 140px);
  font-family: var(--base-font-family);
}

@media screen and (max-width: 560px) {
  .p-index-mv__title em{
    font-size: calc(100cqi * (72 / 375));
  }
}

.p-index-mv__title em span{
  position: relative;
  right: .3em;
}

/* p-index-mv-image
============================== */
.p-index-mv-image{
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}

.p-index-mv-image img{
  object-fit: cover;
  width: 100%;
}

/* p-index-mv-lead
============================== */
.p-index-mv-lead{
  font-family: var(--base-font-family);
  font-size: calc(16px + var(--slope-1px-desktop) * 4);
  --text-width: calc(25em + 26px);
}

.p-index-mv-lead__body{
  position: relative;
  padding-block: calc(3px + var(--slope-1px) * 19) min(calc(100cqi * (80 / 1366)), 80px);
}

@media screen and (max-width: 768px) {
  .p-index-mv-lead__body{
    padding-bottom: 4em;
  }
}

.p-index-mv-lead__title{
  font-size: calc(24px + var(--slope-1px-desktop) * 8);
  margin-bottom: calc(22.4px + var(--slope-1px-desktop) * 7.6);
  width: 57%;
}

@media screen and (max-width: 768px) {
  .p-index-mv-lead__title{
    width: 100%;
  }
}

@media screen and (max-width: 560px) {
  .p-index-mv-lead__title{
    white-space: nowrap;
  }
}

.p-index-mv-lead p{
  line-height: 2.2;
  max-width: var(--text-width);
}

@media screen and (max-width: 768px) {
  .p-index-mv-lead p{
    line-height: 2.2;
    width: 100%;
  }
}

@media screen and (max-width: 560px) {
  .p-index-mv-lead p{
    font-size: calc(100cqi * (16 / 375));
  }
}

/* p-index-mv-map
============================== */
.p-index-mv-map{
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 2;
    width: min(calc(100% - var(--text-width)), 670px);
    margin-inline: calc(50% - 50cqi);
}
@media screen and (max-width: 1000px) {
  .p-index-mv-map{
    bottom: 50%;
    transform: translateY(40%);
  }
}

@media screen and (max-width: 768px) {
  .p-index-mv-map{
    position: static;
    width: 100cqi;
    padding-top: 2em;
    padding-left: 1em;
    transform: none;
  }
  .p-index-mv-map img{
    width: 100%;
  }
}

/* p-index-showroom-section
============================== */
.p-index-showroom-section {
  --scroll-progress: 0;
  position: relative;
  width: 100cqi;
  margin-inline: calc(50% - 50cqi);
  height: 120vh; 
  transition-delay: 0.5s;
}

@media screen and (max-width: 768px) {
  .p-index-showroom-section {
    height: 100%;
    transition-delay: 0s;
  }
}

/* p-index-showroom-wrapper
============================== */
.p-index-showroom-wrapper {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media screen and (max-width: 768px) {
  .p-index-showroom-wrapper{
    height: 100%;
  }
}

/* p-index-showroom
============================== */
.p-index-showroom{
  background: linear-gradient(90deg,rgba(25, 118, 199, 1) 0%, rgba(132, 31, 88, 1) 50%, rgba(212, 24, 24, 1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(85% + (15% * var(--scroll-progress)));
  border-radius: 40px;
  padding-block: calc(32px + var(--slope-1px) * 24);
  margin-inline: 0;
  transition: border-radius 0.1s linear;
}

@media screen and (max-width: 768px) {
  .p-index-showroom{
    background: linear-gradient(0deg,rgba(212, 24, 24, 1) 0%, rgba(132, 31, 88, 1) 50%, rgba(25, 118, 199, 1) 100%);
    width: 100%;
    height: 100%;
  }
}

/* p-index-showroom__inner
============================== */
.p-index-showroom__inner{
  width: calc(100% - var(--inner-padding) * 2);
  max-width: var(--inner-width-px);
  margin-inline: auto;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@media screen and (max-width: 768px) {
  .p-index-showroom__inner{
    width: calc(100% - var(--inner-padding) * 0);
    opacity: 1;
    transform: none;
  }
}

/* p-index-showroom__container
============================== */
.p-index-showroom__container{
  background-image: url(../img/bg_showroom.png);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  padding: calc(15px + var(--slope-1px) * 5);
}

@media screen and (max-width: 768px) {
  .p-index-showroom__container{
    background-image: url(../img/bg_showroom_sp.png);
    /* background-size: cover; */
  }
}

/* p-index-showroom__body
============================== */
.p-index-showroom__body{
  display: flex;
  justify-content: center;
  gap: calc(24px + var(--slope-1px) * 16);
}

@media screen and (max-width: 768px) {
  .p-index-showroom__body{
    flex-direction: column;
  }
}

.p-index-showroom-section.is-scrolled .p-index-showroom__inner {
  opacity: 1;
  transform: translateY(0);
}

/* p-index-showroom__block
============================== */
.p-index-showroom__block{
  background-color: var(--white);
  background-image: url(../img/map_matsumotominami.png);
  background-repeat: no-repeat;
  background-size: 48%;
  background-position: 46% 51%;
  width: 48.276%;
  height: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  container-type: inline-size;
}

.p-index-showroom__block.--yamagatahigashi{
  background-image: url(../img/map_yamanashihigashi.png);
  background-size: 58%;
  background-position: 59.5% 65%;
}

@media screen and (max-width: 768px) {
  .p-index-showroom__block{
    width: 100%;
  }
  .p-index-showroom__block.--yamagatahigashi{
    background-size: 64%;
    background-position: 59.5% 60%;
  }
}

/* p-index-showroom__item
============================== */
.p-index-showroom__item{
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  width: calc(100cqi / 560 * 367);
  margin-inline: auto;
  padding-top: min(calc(100cqi * 0.2143), 120px);
}

@media screen and (max-width: 560px) {
  .p-index-showroom__item{
    width: calc(100cqi / 345 * 226);
    padding-top: calc(100cqi / 345 * 79);
  }
  .--yamagatahigashi .p-index-showroom__item{
    padding-top: calc(100cqi / 345 * 42);
  }
}

/* p-index-showroom__head
============================== */
.p-index-showroom__head{
  margin-bottom: calc(100cqi / 560 * 32);
  width: calc(100cqi / 560 * 283);
}

@media screen and (max-width: 768px) {
  .p-index-showroom__head{
    width: 59.2%;
  }
}

@media screen and (max-width: 560px) {
  .p-index-showroom__head{
    width: calc(100cqi / 345 * 180);
    margin-bottom: calc(100cqi / 345 * 24);
  }
}

/* p-index-showroom__foot
============================== */
.p-index-showroom__foot{
  display: flex;
  gap: calc(12px + var(--slope-1px) * 12);
  width: 100%;
}

/* p-index-showroom__counter
============================== */
.p-index-showroom__counter{
  font-size: calc(100cqi / 560 * 26);
  font-family: var(--base-font-family);
  border: 1px solid var(--border-color);
  border-radius: var(--base-border-radius);
  color: var(--base-color);
  font-weight: bold;
  padding-block: calc(100cqi / 560 * 24);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: calc(2px + var(--slope-1px) * 2);
  white-space: nowrap;
  width: calc(100cqi / 560 * 166);
}

@media screen and (max-width: 560px) {
  .p-index-showroom__counter{
    width: calc(100cqi / 345 * 88);
    padding-block: calc(100cqi / 345 * 28);
  }
}

.p-index-showroom__counter em{
  font-family: var(--en-font-family);
  font-size: calc(100cqi / 560 * 80);
  font-weight: var(--base-font-weight);
  line-height: .78;
}

@media screen and (max-width: 560px) {
  .p-index-showroom__counter em{
    font-size: calc(100cqi / 345 * 48);
  }
}

/* p-index-showroom__nav
============================== */
.p-index-showroom__nav{
  display: flex;
  flex-direction: column;
  gap: calc(8px + var(--slope-1px) * 8);
  width: 50%;
}

.p-index-showroom__nav .c-button{
  font-size: calc(100cqi / 560 * 15);
}

@media screen and (max-width: 560px) {
  .p-index-showroom__nav .c-button{
    font-size: calc(100cqi / 345 * 14);
    width: 9em;
    height: 3em;
  }
}

/* p-index-showroom__button
============================== */
.p-index-showroom__button{
  width: 100%;
  margin-top: calc(100cqi / 560 * 24);
  padding-top: calc(100cqi / 560 * 24);
  border-top: 1px solid var(--border-color);
}

@media screen and (max-width: 560px) {
  .p-index-showroom__button{
    margin-top: calc(100cqi / 345 * 16);
    padding-top: calc(100cqi / 345 * 16);
  }
}

.p-index-showroom__button a{
  width: calc(100cqi / 560 * 367);
  font-size: calc(100cqi / 560 * 15);
}

@media screen and (max-width: 560px) {
  .p-index-showroom__button a{
    font-size: calc(100cqi / 345 * 14);
    height: 3em;
  }
  .p-index-showroom__button a:after{
    right: 16px;
  }
}

/* p-index-car
============================== */
.p-index-car{
  padding-block: calc(72px + var(--slope-1px) * 24) calc(40px + var(--slope-1px) * 8);
  transition-delay: 0.5s;
}

/* p-index-car-slider
============================== */
.p-index-car-slider__list{
  max-width: 405px;
}

@media screen and (max-width: 560px) {
  .p-index-car-slider__list{
    max-width: 240px;
  }
}

.p-index-car-slider .slick-list{
  overflow: visible;
}

.p-index-car-slider__item{
  padding-inline: 8px;
}

.p-index-car-slider__item a img{
  border-radius: var(--base-border-radius);
  transition: all .3s;
}

.p-index-car-slider__item a:hover img{
  border-radius: 40px;
}

/* p-index-company
============================== */
.p-index-company{
  padding-block: calc(24px + var(--slope-1px) * 24) calc(24px + var(--slope-1px) * 40);
  transition-delay: 0.5s;
}

/* p-index-company-title
============================== */
.p-index-company-title{
  position: relative;
  font-size: calc(28px + var(--slope-1px) * 12);
  font-family: var(--base-font-family);
  font-weight: bold;
  text-align: center;
  padding-bottom: calc(30px + var(--slope-1px) * 15);
  z-index: 0;
}

.p-index-company-title:before{
  content: attr(data-en);
  display: block;
  font-family: var(--en-font-family);
  font-size: calc(72px + var(--slope-1px) * 56);
  font-weight: var(--title-font-weight);
  color: var(--point-color);
  position: relative;
  z-index: -1;
}

.p-index-company-title:after{
  content: "";
  border: 1px solid var(--point-color);
  display: block;
  width: 590px;
  margin-inline: auto;
  position: absolute;
  right: 0;
  left: 0;
  bottom: 46%;
}

@media screen and (max-width: 560px) {
  .p-index-company-title:after{
    width: 333px;
    bottom: 50%;
  }
}

/* p-index-company__body
============================== */
.p-index-company__body{
  width: calc(100% - var(--inner-padding) * 2);
  max-width: 836px;
  margin-inline: auto;
}

@media screen and (max-width: 560px) {
  .p-index-company__body{
    max-width: 100%;
    width: 100%;
  }
}

/* p-index-company-profile
============================== */
.p-index-company-profile{
  font-size: calc(14px + var(--slope-1px) * 2);
  font-family: var(--base-font-family);
  border-collapse: collapse;
  width: 100%;
}

.p-index-company-profile th{
  font-weight: 500;
  width: 8.75em;
  line-height: 1.2;
}

@media screen and (max-width: 560px) {
  .p-index-company-profile th{
    width: 7em;
  }
}

.p-index-company-profile td{
  padding-left: calc(24px + var(--slope-1px) * 8);
  font-weight: var(--base-font-weight);
  line-height: 1.75;
}

@media screen and (max-width: 560px) {
  .p-index-company-profile td{
    letter-spacing: 0;
  }
}

.p-index-company-profile th, .p-index-company-profile td{
  padding-block: calc(16.75px + var(--slope-1px) * 7.25);
  border-top: 1px solid var(--border-color);
}

.p-index-company-profile tr:last-of-type th,
.p-index-company-profile tr:last-of-type td{
  border-bottom: 1px solid var(--border-color);
}

/* p-index-recruit
============================== */
.p-index-recruit{
  padding-block: calc(24px + var(--slope-1px) * 40);
  transition-delay: 0.3s;
}

/* p-index-recruit-title
============================== */
.p-index-recruit-title{
  position: relative;
  font-size: calc(28px + var(--slope-1px) * 12);
  font-family: var(--base-font-family);
  font-weight: bold;
  padding-bottom: calc(28px + var(--slope-1px) * -13);
  z-index: 0;
}

.p-index-recruit-title:before{
  content: attr(data-en);
  display: block;
  font-family: var(--en-font-family);
  font-size: calc(72px + var(--slope-1px) * 56);
  font-weight: var(--title-font-weight);
  color: var(--point-color);
  position: relative;
  z-index: -1;
}

.p-index-recruit-title:after{
  content: "";
  border: 1px solid var(--point-color);
  display: block;
  width: 464px;
  margin-inline: auto;
  position: absolute;
  left: 0;
  bottom: 37.5%;
}

@media screen and (max-width: 560px) {
  .p-index-recruit-title:after{
    width: 264px;
    bottom: 50%;
  }
}

/* p-index-recruit__body
============================== */
.p-index-recruit__body{
  font-family: var(--base-font-family);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

@media screen and (max-width: 768px) {
  .p-index-recruit__body{
    flex-direction: column;
    align-items: flex-start;
  }
}

/* p-index-recruit__lead
============================== */
.p-index-recruit__lead{
  font-size: calc(14px + var(--slope-1px) * 2);
  font-weight: var(--base-font-weight);
  line-height: 1.75;
}

@media screen and (max-width: 560px) {
  .p-index-recruit__lead{
    letter-spacing: .05px;
  }
}

/* p-index-recruit__button
============================== */
.p-index-recruit__button{
  display: flex;
  justify-content: flex-end;
  gap: 16px;
}

@media screen and (max-width: 768px) {
  .p-index-recruit__button{
    justify-content: flex-start;
    width: 100%;
  }
}

.p-index-recruit__button a{
  line-height: 1.4;
  text-align: center;
  width: 12em;
  height: 4.734em;
}

@media screen and (max-width: 560px) {
  .p-index-recruit__button a{
    width: 11.715em;
  }
}

/* p-index-recruit-slider
============================== */
.p-index-recruit-slider{
  padding-top: calc(48px + var(--slope-1px) * 24);
}

.p-index-recruit-slider__list{
  max-width: calc(350px * 3);
  width: 100%;
}

@media screen and (max-width: 560px) {
  .p-index-recruit-slider{
    max-width: 240px;
  }
}

.p-index-recruit-slider .slick-list{
  overflow: visible;
}

.p-index-recruit-slider__item{
  padding-inline: 8px;
  width: 350px;
}

@media screen and (max-width: 560px) {
  .p-index-recruit-slider__item{
    width: 240px;
  }
}

.p-index-recruit-slider__item img{
  border-radius: var(--base-border-radius);
}