/*will delete start*/

div[data-view="interior"] .img_num{
  display: block;
}
/*will delete end*/
.top .car_conversion .cta-btn--special{
  display: flex!important;
}
@media screen and (max-width: 767px) {
  .l_footer{
    margin-bottom: 120px;
  }
}
/* Title / copy utilities shared by every section on the top page. */
.top.l_main .main_ttl .icon {
  font-size: 18px;
  line-height: 1;
  font-weight: normal;
  letter-spacing: 0.02em;
}

.top.l_main .main_ttl .title {
  font-size: 44px;
  letter-spacing: -0.02em;
}
.top.l_main .main_ttl.design_A .title {
    background: none;
    color: #fff;
    -webkit-text-fill-color:#fff;
  }



.border-none { border: none !important; }
.border-bottom{
  border-bottom: 1px solid #717171;
}

.c-image {
  margin: 0;
  border-radius: 0;
}



/* --------------------------------------------------------------------------
   2. Main hero (first-view entrance animation)
   Black stage + gradient reveal mask + PAJERO logo + fade-in nav.
   Animation flow is driven by top.js using the data-hero* attributes.
   Contains its own prefers-reduced-motion override at the bottom.
   -------------------------------------------------------------------------- */
.main_hero {
  position: relative;
  width: 100%;
  height: 1070px;
  margin: 0;
  background: #000;
  overflow: hidden;
  isolation: isolate;
}

.main_hero__media {
  position: relative;
  inset: 0;
  z-index: 1;
  background: #000;
  --reveal: 0%;
  overflow: hidden;
  height: 100%;
}

/* Black gradient mask that slides out to the right, revealing the hero
   image from left to right. `--reveal` is animated by GSAP in top.js. */
.main_hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(65deg, #000 calc(100% - var(--reveal) - 4%), transparent calc(100% - var(--reveal) + 6%));
  will-change: background;
}
.main_hero__media img {
  position: relative;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.main_hero__logo {
  position: absolute;
  inset: 0;
  z-index: 3;
  color: #fff;
  pointer-events: none;
  will-change: opacity, transform;
  width: 100%;
  max-width: 400px;
  top: 150px;
  margin: 0 auto;
}

.main_hero__logo figure {
  margin: 0 auto 30px;
}

.main_hero__logo figure:nth-child(1) { width: 141px; margin: 10px 0; }
.main_hero__logo figure:nth-child(2) { width: 386px; }
.main_hero__logo figure:nth-child(3) { width: 342px; }

/* car_header is the car-lineup nav rendered by common includes. */

/* ----- Main hero — prefers-reduced-motion override ----- */

@media (prefers-reduced-motion: reduce) {
  .main_hero__media {
    --reveal-x: -100%;
  }
}
@media screen and (min-width:1920px) {
  .main_hero{
    height: auto;
  }
  .main_hero__logo{
    top: calc(100px + 3vw);
  }
}
@media screen and (max-width: 767px) {
  .main_hero{
    height: auto;
  }
  .main_hero__logo{
    max-width: 314px;
    top: calc(80px + 24.61vw);
  }
}


/* --------------------------------------------------------------------------
   3. Section: Intro
   Quote copy block under the hero.
   Contains its own <=767px override at the bottom.
   -------------------------------------------------------------------------- */
.sec_intro{
  margin: 0;
  padding: 0;
  padding-left: 0px;
  padding-right: 0px;
  height: 100vh;
}
.sec_intro__copy {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  position: relative;
}
.sec_intro__copy img{
  width: 400px;
  height: auto;
  margin-bottom: 44px;
  display: block;
}
.sec_intro .m_full_inner{
  align-items: center;
  margin: 0;
  position: relative;
  padding-top: clamp(120px, 10.4vw, 200px);
  padding-bottom: clamp(120px, 10.4vw, 200px);
  height: 100vh;
  overflow: hidden;
}
.sec_intro .m_full_bg img{
  object-position: center;
}
.p0{
  position: absolute;
  top: -180px;
  left: 0;
}
@media screen and (max-width: 1023px) {
  .sec_intro{
    min-height: 640px;
  }
  .sec_intro__copy {
    align-items: flex-start;
  }
  .sec_intro__copy .big_text{
    height: 16px;
    margin-top: 10px;
}
  .sec_intro .m_full_inner {
    align-items: flex-start;
    padding-top: 80px;
    padding-bottom: 0px;
    width:100%;
  }
  .sec_intro .m_full_bg{
    z-index: 0;
    top: 0px;
    will-change: transform;
  }
  .sec_intro .m_full_bg img{
    object-position: 63%;
  }
}

@media screen and (max-width: 767px) {
  .sec_intro{
     height: calc(100vh)!important;
     max-height: 100vh!important;
  }
  .sec_intro .m_full_bg img{
    object-position: bottom;
    object-fit: cover;
  }
  .sec_intro__copy {
    height: auto;
    padding: 0;
  }
  .sec_intro__copy img{
    width: 100%;
    height: auto;
    margin-bottom:6vw;
  }
  .sec_intro__copy img.p5{
    margin-bottom:0vw;
  }
  .sec_intro .m_full_inner{
    height: auto;
    position: absolute;
    bottom: 91vw;
    left: 0;
    overflow: hidden;
  }
}
@media (orientation:landscape) and (max-height: 800px) {
.sec_intro .m_full_bg img{
  object-position: center 80%;
}
}
/* @media (orientation: portrait) and (max-height: 767px) {
}
 */

/* --------------------------------------------------------------------------
   4. Section: Design
   Header + video swiper (c-video-container / c-video-containerA) + image
   swiper (c-slider-containerC, arrows live in section 9) + detail CTA.
   Contains its own <=767px override at the bottom.
   -------------------------------------------------------------------------- */

.sec_design {
  padding-top:clamp(80px, 8vw, 160px);
  padding-bottom:clamp(80px, 8vw, 160px);
}

.sec_design__header {
  margin-bottom: 80px;
}

@media screen and (max-width: 1023px) {
  .top.l_main .main_ttl .title { font-size: 34px; }
  .sec_design {
    padding: 80px 0;
  }
  .sec_design__header { margin-bottom: 50px; }
}

/* ==========================================
   gallery_popup
   ========================================== */
.gallery_popup{
  display: flex;
  flex-direction: column;
  gap: 1.041vw;
  margin: 0 auto;
  padding-bottom: 80px;
}
.gallery_popup__row{
  display: flex;
  justify-content: space-between;
}
.gallery_popup .popup_item{
  margin: 0;
  cursor: pointer;
}
.gallery_popup .popup_item img{
  display: block;
  width: 100%;
  height: auto;
}
.popup .popup__inner{
  flex-direction:row;
}
@media screen and (min-width: 768px){
  .gallery_popup__row .popup_item{ flex-shrink: 0; }
  .gallery_popup__row--top{ align-items: flex-end; }
  .gallery_popup__row--bottom{ align-items: flex-start; }
  .gallery_popup__row--top .popup_item:nth-child(1){ width: 36.7708%; }
  .gallery_popup__row--top .popup_item:nth-child(2){ width: 21.5625%; }
  .gallery_popup__row--top .popup_item:nth-child(3){ width: 39.5833%; }
  .gallery_popup__row--bottom .popup_item:nth-child(1){ width: 29.3750%; }
  .gallery_popup__row--bottom .popup_item:nth-child(2){ width: 26.3542%; }
  .gallery_popup__row--bottom .popup_item:nth-child(3){ width: 20.1042%; }
  .gallery_popup__row--bottom .popup_item:nth-child(4){ width: 21.0417%; }
}
@media screen and (max-width: 767px){
  .gallery_popup{ gap: 10px; display: grid; grid-template-columns: 1fr 1fr; padding-bottom: 50px;}
  .gallery_popup__row{display: flex;gap: 10px;flex-direction: column;}
  .gallery_popup__row--top{justify-content:flex-start; align-items: flex-end; padding-bottom: 60px; }
  .gallery_popup__row--bottom{justify-content:flex-end; align-items: flex-start;}
  .gallery_popup__row--top .popup_item:nth-child(1){ width: 87.368%; } 
  .gallery_popup__row--top .popup_item:nth-child(3){ width: 81.05%; }
  .gallery_popup__row--bottom .popup_item:nth-child(1){ width:  81.05%; }
  .gallery_popup__row--bottom .popup_item:nth-child(3){ width: 87.368%; }
  .gallery_popup__row--bottom .popup_item:nth-child(4){ width: 75.263%; }
}

.popup__arrow{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2;
}
.popup__arrow--prev{ left: -48px;}
.popup__arrow--next{ right: -48px; }
.popup__arrow::before{
  content: '';
  display: block;
  width: 26px;
  height: 26px;
  margin: auto;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
}
.popup__arrow--prev::before{ transform: rotate(-135deg); }
.popup__arrow--next::before{ transform: rotate(45deg);  }
.popup__arrow.swiper-button-disabled{
  cursor: none;
  opacity: 0;
}
/* ライトボックス（class 管理・複数再利用可） */
/* .gallery-lightbox > .popup__close{
  position: absolute;
  top: clamp(16px, 5vw, 64px);
  right: clamp(16px, 5vw, 64px);
  z-index: 3;
} */
.gallery-lightbox .gallery-swiper{
  width: 100%;
  overflow: hidden;
}
.gallery-lightbox .gallery-swiper .swiper-slide{
  display: flex;
  justify-content: center;
  align-items: center;
  height: auto;
}
@media screen and (max-width: 1023px){
  .popup__arrow{ width: 40px; height: 40px; }
  .popup__arrow--prev{ left: 6px; }
  .popup__arrow--next{ right: 6px; }
}



/*c-swiper-containerA-gray start*/
.c-swiper-containerA-gray{
  background: rgba(81,81,81);
  padding-bottom: 0px;
}
.c-swiper-containerA-gray .c-swiper-content-inner{
  color: #fff;
}
.c-swiper-containerA-gray+.c-card-container-02{
      padding-top: clamp(80px, 8vw, 160px);
}
.c-swiper-containerA-gray+.c-card-container-02 .c-card .c-content-swiper{
  border-bottom: none;
}
@media (max-width: 1023px) {
      .c-swiper-containerA-gray .c-swiper-box+.c-swiper-content {
        padding: 20px;
    }
}
@media (max-width: 767px) {
  .c-swiper-containerA-gray+.c-card-container-02{
      padding-top: 30px;
  }
}
/*c-swiper-containerA-gray end*/
/*top grade section start*/
.grade .c-grade-section{
  padding-top: clamp(80px, 8vw, 160px);
  padding-bottom: clamp(80px, 8vw, 160px);
}
.grade .c-grade-section .main_ttl .sub_ttl{
  font-weight: 500;
}
.grade .c-grade-section .c-grade-nav {
  position: relative;
  top: 23px;
  width: 40%;
  z-index: 2;
}

.grade .c-grade-section .c-grade-tab {
  padding: 0 22px;
}

.grade .c-grade-section .c-grade-panel__top {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-top: 40px;
}

.grade .c-grade-section .c-grade-panel__left {
  display: flex;
  flex-direction: column;
  width: 320px;
  flex-shrink: 0;
}

.grade .c-grade-section .c-car-slider-wrap {
  width: 83%;
  margin-top: -11%;
  margin-left: -6%;

}

.grade .c-grade-section .c-car-slider,
.c-car-slider .swiper-wrapper,
.grade .c-grade-section .c-car-slider .swiper-slide,
.grade .c-grade-section .c-car-slider .swiper-slide img {
  max-height: 1000px;
}

.grade .c-color-section {
  margin-top: 16px;
  display: block;
}

.grade .c-grade-section .c-current-color-info {
  margin: 15px 0;
}

.grade .c-color-section:nth-child(2) {
  margin-top: 10px;
}

.grade .c-grade-section .c-color-section__title {
  margin-bottom: 5px;
}

.grade .c-grade-section .c-color-picker {
  gap: 6px;
}

.c-grade-footer {
  margin-top: calc(-5% - 70px);
  z-index: 2;
  position: relative;
}

.c-grade-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;

}

.c-grade-footer__inner+.c-grade-detail-btn {
  gap: 40px;
}


.c-grade-price-info {
  display: flex;
  width: calc(100% - 430px);
}

.c-grade-price-item {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  padding-left: 36px;
  padding-right: 36px;

}

.c-grade-price-item:first-child {
  padding-left: 0;
  padding-right: 44px;
}
.c-grade-price-item:nth-child(2){
  position: relative;
}
  .c-grade-price-item:nth-child(2)::before,
  .c-grade-price-item:nth-child(2)::after{
    content: "";
    height: calc(100% - 24px);
    width: 0;
    border-left: 1px solid #aeaeae;
    position: absolute;
    top: 0;
  }
  .c-grade-price-item:nth-child(2)::before{
    left: 0;
  }
  .c-grade-price-item:nth-child(2)::after{
    right: 0;
  }


.c-grade-price-item:last-child {
  padding-right: 0;
  border-right: none;
}

.c-grade-price-label {
  font-size: 16px;
  color: #515151;
}

.c-grade-price-value {
  font-size: 48px;
  font-weight: 500;
  line-height: 1;
  display: flex;
  align-items: end;
}

.c-grade-price-value span {
  font-size: 20px;
  margin-bottom: 0.1em;
}

.c-grade-tax-note {
  font-size: 14px;
  color: #515151;
  text-align: right;
  margin-right: -0.5em;
}

.c-grade-model-name {
  margin-top: 24px;
  margin-bottom: 24px;
  height: 100px;
}

.c-grade-model-name__text {
  font-size: 48px;
  color: #4e4e4e;
  font-family: var(--font_MMC);
  font-weight: bold;
}

.grade .c-grade-price-btn {
  margin-top: 0px;
  display: flex;
}

@media (max-width: 1239px) {
  .grade .c-grade-section .c-grade-nav {
    right: 0px;
    width: 43%;
  }

  .grade .c-grade-section .c-car-slider-wrap {
    width: 70%;
  }

  .c-grade-model-name__text {
    font-size: 30px;
  }

  .c-grade-price-value {
    font-size: 30px;
  }

  .c-grade-price-info {
    width: auto;
    padding-right: 60px;
  }

  .c-grade-footer {
    margin-top: calc(-2% - 70px);
  }
  .c-grade-model-name {
    height: 80px;
}


}

@media (max-width: 1023px) {
  .grade .c-grade-section .c-grade-nav {
    width: 100%;
  }

  .grade .c-grade-section .c-grade-tab {
    padding: 0 15px;
  }

  .grade .c-grade-section .c-grade-nav {
    height: 46px;
  }

  .grade .c-grade-section .c-grade-tab {
    height: 34px;
    line-height: 34px;
  }

  .grade .c-grade-section .c-grade-panel__left {
    order: 2;
    margin-top: -55px;
  }

  .grade .c-grade-section .c-car-slider-wrap {
    width: 80%;
    margin-top: -10%;
    margin-left: 10%;
  }

  .grade .c-grade-section .c-grade-panel__top .c-color-section {
    order: 0;
  }

  .grade .c-grade-section .c-grade-panel__top {
    gap: 0;
  }

  .grade .c-grade-section .c-color-section__title {
    margin-bottom: 3px;
    font-size: 15px;
  }

  .c-grade-footer {
    margin-top: 0px;
    display: flex;
    flex-direction: column;
  }

  .c-grade-footer .c-grade-footer__inner {
    order: 1;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 5px;
    margin-bottom: 36px;
  }

  .c-grade-footer .c-grade-price-btn {
    order: 2;
    display: block !important;
  }

  .c-grade-footer .c-grade-detail-btn {
    order: 3;
    display: block !important;
  }

  .c-grade-price-info {
    width: 100%;
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .c-grade-model-name {
    margin-top: -6px;
    margin-bottom: 0px;
    height: auto;
  }

  .c-grade-model-name__text {
    font-size: 33px;
  }

  .c-grade-price-item:first-child {
    width: auto;
  }

  .c-grade-price-item:nth-child(2) {
    width: auto;
    padding-left: 20px;
  }

  .c-grade-price-item:nth-child(3) {
    width: auto;
    padding-left: 20px;
  }

  .c-grade-price-item:first-child .c-grade-price-value {
    margin-top: 0px;
  }

  .c-grade-price-value {
    font-size: 42px;
    margin-top: 5px;
  }

  .c-grade-tax-note {
    text-align: left;
    font-size: 18px;
    margin-top: 5px;
  }

  .grade .c-grade-section .c-grade-nav {
    top: 0;
  }

  .c-grade-price-value span {
    font-size: 25px;
  }

  .grade .c-grade-price-btn .btn-cut,
  .grade .c-grade-detail-btn .btn-cut {
    width: calc(100% - 30px);
    margin: 0 auto 18px;
    max-width: 338px;
  }

  .grade .c-grade-detail-btn .btn-cut:last-child {
    margin-bottom: 0px;
  }

  .c-grade-price-info {
    padding-right: 0px;
  }
    .c-grade-price-item:nth-child(2)::after,
    .c-grade-price-item:nth-child(2)::before{
    height: 100%;
  }
}

@media (max-width: 767px) {
  .c-grade-price-item:first-child {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #aeaeae;
    padding-bottom: 20px;
  }

  .c-grade-price-item:nth-child(2) {
    width: auto;
    padding-left: 0px;
    margin-top: 15px;
    padding-right: 20px;
  }
  .c-grade-price-item:nth-child(2)::before{
    content: none;
  }

  .c-grade-price-item:nth-child(3) {
    width: auto;
    padding-left: 20px;
    margin-top: 15px;
  }

  .grade .c-grade-section .c-car-slider-wrap {
    width: 130%;
    margin-top: -15%;
    margin-left: -15%;
  }
    .c-grade-price-info {
    align-items: flex-end;
  }

}

/*top grade section end*/

