/* ------------------------
  variables
------------------------ */
/* :root {
} */

/* ------------------------
  utilities Classes
------------------------ */
.rj-font {
  font-family: "NouvelR";
}

.u-hidden {
  display: none !important;
  visibility: hidden;
}

@media (max-width: 767.98px) {
  .u-hidden-sm {
    display: none !important;
    visibility: hidden;
  }
}

.u-hidden-up-sm {
  display: none !important;
  visibility: hidden;
}

@media (max-width: 767.98px) {
  .u-hidden-down-sm {
    display: none !important;
    visibility: hidden;
  }
}

@media (min-width: 768px) and (max-width: 1279.98px) {
  .u-hidden-md {
    display: none !important;
    visibility: hidden;
  }
}

@media (min-width: 768px) {
  .u-hidden-up-md {
    display: none !important;
    visibility: hidden;
  }
}

@media (max-width: 1279.98px) {
  .u-hidden-down-md {
    display: none !important;
    visibility: hidden;
  }
}

@media (min-width: 1280px) {
  .u-hidden-lg {
    display: none !important;
    visibility: hidden;
  }
}

@media (min-width: 1280px) {
  .u-hidden-up-lg {
    display: none !important;
    visibility: hidden;
  }
}

.u-hidden-down-lg {
  display: none !important;
  visibility: hidden;
}

.u-visuallyhidden {
  overflow: hidden;
  clip: rect(0 0 0 0);
  position: absolute;
  margin: -1px;
  padding: 0;
  border: 0;
  width: 1px;
  height: 1px;
}

.u-visuallyhidden.focusable:active,
.u-visuallyhidden.focusable:focus {
  overflow: visible;
  clip: auto;
  position: static;
  margin: 0;
  width: auto;
  height: auto;
}

.u-invisible {
  visibility: hidden;
}

.clearfix::after {
  content: "";
  display: block;
  clear: both;
}

.u-text-center {
  text-align: center;
}

.u-bold {
  font-weight: bold;
}

.u-bg-white {
  background-color: #fff;
}

/* --------------------------------
  common components
-------------------------------- */
.l-container {
  position: relative;
}

/* ページメニュー */
.l-pagemenu {
  position: absolute;
  top: 0;
  height: auto;

  &.is-fixed {
    .l-pagemenu__fixed {
      position: fixed;
      top: 0;
    }
  }

  .l-pagemenu__ttl {
    @media (max-width: 767px) {
      top: 8px;
    }

    @media (min-width: 1280px) {
      padding-bottom: 2px;
    }
  }
}

/* セクション */
.flt-section {
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

.flt-container {
  max-width: calc(1280px + 20px * 2);
  padding-inline: 20px;
  margin-inline: auto;
}

/* ボタン */
.flt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "NouvelR";
  font-weight: bold;
  color: #fff;
  font-size: 1.6rem;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  min-width: 150px;
  min-height: 44px;
  box-sizing: border-box;
  padding: 0.2em 0.5em;
  border: 1px solid #fff;
  transition: background-color .3s ease-out, color .3s ease-out;

  &:hover {
    color: #000;
    background-color: #fff;
  }
}

/* スライダーの矢印 */
.flt-slider-arrow__wrapper {
  display: flex;
  column-gap: 24px;
}

.flt-slider-arrow {
  width: 32px;
  aspect-ratio: 1;
  background: url(/about/filante-record/img/icon_arrow_curved.svg) no-repeat center / contain;
  transition: opacity 0.3s;

  &.swiper-button-disabled {
    opacity: 0.3;
  }

  &:not(.swiper-button-disabled) {
    cursor: pointer;
  }
}

.flt-slider-arrow--prev {
  rotate: 180deg;
}

/* トップに戻る ボタン */
.flt-link-top {
  font-weight: 500;

  @media (max-width: 767px) {
    margin-block: 30px 15px;
    text-align: center;
    font-size: 1.2rem;
  }

  @media (min-width: 768px) {
    display: none;
  }

  .text-link.arrow:after {
    top: 3px;
    margin-left: 2px;
    background-position: -1em -3em;
    font-size: 1em;
  }
}

/* --------------------------------
  top
-------------------------------- */

.flt {
  :where(img) {
    max-width: 100%;
  }

  sup {
    font-size: 0.6em;
    margin-right: 0.1em;
  }

  /* メイン */
  .flt-main {
    background-color: #000;
    color: #fff;
  }

  /* MV */
  .flt-mv {
    position: relative;
    margin-top: 44px;

    @media (min-width: 1280px) {
      margin-top: 64px;
    }

    &:before {
      content: "";
      width: 100%;
      height: 20%;
      position: fixed;
      bottom: 0;
      inset-inline: 0;
      z-index: 1;
      background: linear-gradient(transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    }

    &.is-hidden {
      opacity: 0;
    }
  }

  .flt-mv__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-color: rgba(0, 0, 0, .5);
    animation: .6s ease-out forwards mmfadeOut;

    &.is-show {
      animation: .6s ease-out forwards mmfadeIn;
    }
  }

  .flt-mv__bg {
    position: fixed;
    top: 44px;
    width: 100%;
    height: calc(100vh - 44px - 72px);
    object-fit: cover;

    @media (min-width: 768px) {
      height: max(calc(100vh - 72px - 44px), 45.1388888889vw);
      top: calc(44px + 88px);
    }

    @media (min-width: 1280px) {
      top: 64px;
      height: max(calc(100vh - 64px), 45.1388888889vw);
    }
  }

  .flt-mv-ttl__wrapper {
    position: relative;
    z-index: 1;
    height: calc(100vh - 44px - 72px);

    @media (min-width: 768px) {
      height: max(calc(100vh - 72px - 44px), 45.1388888889vw);
    }

    @media (min-width: 1280px) {
      height: max(calc(100vh - 64px), 45.1388888889vw);
    }
  }

  .flt-mv-ttl {
    position: fixed;
    inset-inline: 0;
    display: grid;
    row-gap: 4px;
    line-height: 0.8;
    top: 38%;

    @media (min-width: 768px) {
      row-gap: 16px;
      top: 40%;
    }
  }

  .flt-mv-ttl__sub {
    font-size: 2rem;
    font-weight: 600;
    opacity: 0;
    animation: 1.7s cubic-bezier(.645,.045,.355,1) forwards manifest-animline;

    @media (min-width: 768px) {
      font-size: min(3.2rem, 2.2222222222vw);
    }
  }

  .flt-mv-ttl__main {
    font-size: 5.3rem;
    font-weight: bold;
    padding-inline: 5.3333333333vw;
    opacity: 0;
    animation: 1.2s cubic-bezier(.645,.045,.355,1) .5s forwards manifest-animline;

    @media (min-width: 768px) {
      font-size: min(16rem, 11.1111111111vw);
      margin-top: -0.05em;
      padding-inline: 20px;
      padding-inline: 20px;
    }
  }

  .flt-mv__scroll {
    position: fixed;
    bottom: calc(15px + 72px);
    inset-inline: 0;
    display: grid;
    row-gap: 6px;
    justify-items: center;
    font-size: 1.2rem;
    line-height: 1;
    font-weight: bold;
    opacity: 0;
    animation: 0.4s ease-in-out forwards mmfadeIn;

    img {
      width: 16px;
      animation: 3s linear .6s infinite forwards manifestscroll-animarrow;
    }

    @media (min-width: 768px) {
      font-size: min(1.6rem, 1.1111111111vw);
      bottom: calc(35px + 72px);
    }

    @media (min-width: 1280px) {
      bottom: 35px;
    }

    &.is-hidden {
      animation: 0.4s ease-in-out forwards mmfadeOut;
    }
  }

  .flt-mv-content {
    position: relative;
    z-index: 1;
    padding: 330px 34px 120px;

    @media (min-width: 768px) {
      padding: 60vw 10vw 200px;
    }
  }

  .flt-mv-content__inner {
    @media (min-width: 768px) {
      max-width: 1050px;
      margin-inline: auto;
    }
  }

  .flt-mv-content__text {
    display: grid;
    row-gap: 1.0967741935em;
    font-size: 3.1rem;
    line-height: 1.0967741935;
    font-weight: bold;

    @media (min-width: 768px) {
      row-gap: 1.1538461538em;
      font-size: min(7.8rem, 5.4166666667vw);
      line-height: 1.1538461538;
    }

    :where(.rj-font:not(sup)) {
      font-size: 1.0769230769em;
    }

    :where(p) {
      opacity: 0.3;
      transition: opacity .5s cubic-bezier(.645,.045,.355,1);

      &:first-child {
        opacity: 1;
      }
    }
  }

  .flt-mv-content__caption {
    font-size: 1.6rem;
    line-height: 1.625;
    font-weight: 500;
    opacity: 0.7;
    margin-top: 40px;
  }


  /* 動画に遷移するセクション */
  .flt-video {
    position: relative;
    height: min(100vh, 188.888vw);
    text-align: center;

    @media (min-width: 768px) {
      height: 100vh;
    }
  }

  .flt-video__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .flt-video__ttl {
    position: absolute;
    inset-inline: 23px;
    top: min(33.8235294118%, 63.8888888889vw);
    font-size: 4rem;
    line-height: 0.95;
    font-weight: bold;
    text-wrap: balance;

    @media (min-width: 768px) {
      inset-block: 0;
      margin-block: auto;
      height: fit-content;
      font-size: 5.1rem;
    }

    span {
      display: inline-block;
    }
  }

  .flt-video__btn {
    position: absolute;
    inset-inline: 0;
    bottom: 40px;
    margin-inline: auto;
    max-width: 150px;

    @media (min-width: 768px) {
      bottom: 30px;
      right: 45px;
      left: auto;
    }
  }

  /* 文字だけのエリア */
  .flt-text {
    padding-block: 50px;
    font-size: 2.2rem;
    line-height: 1.4545454545;
    font-weight: bold;

    @media (min-width: 768px) {
      font-size: 2.5rem;
      line-height: 1.6;
    }

    :where(.rj-font:not(sup)) {
      font-size: 1.1363636364em;
      font-weight: 600;
    }
  }

  /* design */
  .flt-design {
    display: grid;

    @media (min-width: 768px) {
      grid-template-columns: 1fr 1fr;
      align-items: center;
    }

    @media (min-width: 1280px) {
      height: 100vh;
    }
  }

  .flt-design__inner {
    padding: 16px 16px 80px;

    @media (min-width: 768px) {
      width: 60%;
      max-width: 440px;
      padding: 80px 0;
      margin-inline: auto;
    }
  }

  .flt-design__ttl {
    font-size: 4rem;
    font-weight: bold;
    line-height: .95;

    @media (min-width: 1280px) {
      font-size: 5.1rem;
    }
  }

  .flt-design__content {
    display: grid;
    row-gap: 1.8em;
    font-size: 1.4rem;
    line-height: 1.6;
    margin-top: 24px;

    @media (min-width: 1280px) {
      font-size: 1.6rem;
      line-height: 1.8;
    }
  }

  .flt-design__bg {
    order: -1;
    width: 100%;

    @media (min-width: 768px) {
      order: 0;
      height: 100%;
    }

    img {
      width: 100%;
      object-fit: cover;

      @media (min-width: 768px) {
        height: 100%;
      }
    }
  }

  /* 機能紹介セクション */
  .flt-feature {
    position: relative;
    padding: 32px 10.6666666667vw;
    font-size: 1.4rem;
    line-height: 1.6666666667;
    aspect-ratio: 2 / 3;
    background: no-repeat center / cover;

    @media (min-width: 768px) {
      font-size: 1.6rem;
      line-height: 1.5;
      padding: 40px 0;
      aspect-ratio: 16 / 9;
      padding: 5.5555555556vw 0;
    }

    &:before {
      content: "";
      position: absolute;
      top: 0;
      inset-inline: 0;
      height: 300px;
      background: linear-gradient(rgba(0, 0, 0, .3) 0%, transparent 100%);
    }
  }

  .flt-feature__inner {
    position: relative;

    @media (min-width: 768px) {
      max-width: min(81.9444444444vw, 1600px);
      margin-inline: auto;

      .flt-feature--reverse & {
        display: grid;
        justify-content: end;
      }
    }

    @media (min-width: 1280px) {
      max-width: min(81.9444444444vw, 1600px);
    }
  }

  .flt-feature__ttl {
    font-size: 2.4rem;
    line-height: .8;
    font-weight: bold;

    @media (max-width: 767px) {
      padding-right: 1em;
    }

    @media (min-width: 768px) {
      font-size: min(6.4rem, 6.25vw);
      max-width: min(480px, 38vw);
    }
  }

  .flt-feature__content {
    display: grid;
    row-gap: 10px;
    margin-top: 16px;

    @media (min-width: 768px) {
      max-width: min(480px, 38vw);
      row-gap: 12px;
      margin-top: 24px;
    }
  }

  .flt-feature__note {
    opacity: 0.7;

    @media (min-width: 768px) {
      font-size: 1rem;
    }
  }

  /* 機能紹介セクション セクションごとの上書き */
  .flt-feature--energy {
    background-image: url(/about/filante-record/img/energy_bg_sp.jpg);

    @media (min-width: 768px) {
      background-image: url(/about/filante-record/img/energy_bg_pc.jpg);
    }

    @media (min-width: 1280px) {
      background-image: url(/about/filante-record/img/energy_bg_ex.jpg);
    }
  }

  .flt-feature--record {
    margin-top: 60px;
    background-image: url(/about/filante-record/img/record_bg_sp.jpg);

    @media (min-width: 768px) {
      margin-top: 160px;
      background-image: url(/about/filante-record/img/record_bg_pc.jpg);
    }

    @media (min-width: 1280px) {
      background-image: url(/about/filante-record/img/record_bg_ex.jpg);
    }
  }

  .flt-feature--electric {
    margin-top: 60px;
    background-image: url(/about/filante-record/img/electric_bg_sp.jpg);

    @media (min-width: 768px) {
      margin-top: 160px;
      background-image: url(/about/filante-record/img/electric_bg_pc.jpg);
    }

    @media (min-width: 1280px) {
      background-image: url(/about/filante-record/img/electric_bg_ex.jpg);
    }
  }

  /* ギャラリー */
  .flt-design-gallery {
    position: relative;
    padding: 80px 20px 140px;

    @media (max-width: 767px) {
      display: grid;
      justify-items: center;
    }

    @media (min-width: 768px) {
      padding: min(176px, 12.2222222222vw) 0 min(260px, 18.0555555556vw);
    }
  }

  .flt-design-gallery-slider__wrapper {
    @media (max-width: 767px) {
      /* NOTE: SPでは縦並びなので、Swiperが貫通しないように、スライド2枚分で高さ制限 */
      height: calc(59.55vw * 2 + 2.4rem * 2 + 16px * 2 + 72px);
      overflow: hidden;

      .swiper-wrapper {
        flex-direction: column;
        row-gap: 72px;
      }
    }
  }

  .flt-design-gallery-slider {
    @media (min-width: 768px) {
      padding-inline: 15vw;
    }
  }

  .flt-design-gallery-slider__btn {
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
    color: #fff;
    font-weight: 700;

    picture {
      display: block;
      overflow: hidden;
      aspect-ratio: 3/2;
    }

    img {
      width: 100%;
      height: 100%;
      will-change: scale;
      transition: scale 0.6s;
    }

    &:hover {
      img {
        scale: 1.02;
      }
    }
  }

  .flt-design-gallery-slider__slide {
    @media (max-width: 767px) {
      width: 89.3333333333vw !important;
      height: auto;
    }

    @media (min-width: 768px) {
      width: 45vw;
    }
  }

  .flt-design-gallery-slider__caption {
    font-size: 2.4rem;
    font-weight: 600;
    line-height: 0.95;
    text-align: left;
    margin-top: 16px;

    @media (min-width: 768px) {
      margin-top: 20px;
    }
  }

  .flt-design-gallery-slider__arrows {
    position: absolute;
    bottom: min(130px, 9.0277777778vw);
    left: 15vw;
  }

  .flt-design-gallery-slider__trigger {
    background: transparent;
    display: block;
    position: relative;
    padding: 0;
    margin-top: 64px;
    margin-right: 18px;
    border: none;
    color: #fff;
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1;

    &:before {
      content: "";
      display: block;
      position: absolute;
      right: -20px;
      top: -24px;
      width: 8px;
      height: 8px;
      border: solid #fff;
      border-width: 0 2px 2px 0;
      rotate: 45deg;
      margin: 25px 0 0;
    }
  }

  /* ギャラリーのモーダル */
  .flt-modal {
    display: none;

    &.is-open {
      display: block;
    }

    &[aria-hidden="false"] {
      .flt-modal-slider__overlay {
        animation: mmfadeIn 0.5s cubic-bezier(0, 0, 0.2, 1);
      }

      .flt-modal-slider__wrapper {
        animation: mmfadeIn 0.5s cubic-bezier(0, 0, 0.2, 1);
      }
    }

    &[aria-hidden="true"] {
      .flt-modal-slider__overlay {
        animation: mmfadeOut 0.5s cubic-bezier(0, 0, 0.2, 1);
      }

      .flt-modal-slider__wrapper {
        animation: mmfadeOut 0.5s cubic-bezier(0, 0, 0.2, 1);
      }
    }
  }

  .flt-modal-slider__overlay {
    position: fixed;
    inset: 0;
    background-color: #000;
    z-index: 8001; /* NOTE: 固定サイドナビより上 */
    will-change: transform;
  }

  .flt-modal-slider__wrapper {
    will-change: transform;
    height: 100%;
  }

  .flt-modal-slider {
    height: 100%;
  }

  .flt-modal-slider__slide {
    display: grid;
    place-content: center;
    text-align: center;
    box-sizing: border-box;

    @media (min-width: 768px) {
      padding: 10vw;
      max-height: 100vh;
    }

    img {
      object-fit: cover;

      @media (min-width: 768px) {
        max-height: 80vh;
        min-width: 90vw;
      }

      @media (min-width: 1280px) {
        max-height: 80vh;
        min-width: 72.0138888889vw;
      }
    }
  }

  .flt-modal-slider__figure {
    position: relative;
  }

  .flt-modal-slider__caption {
    position: absolute;
    bottom: 0;
    inset-inline: 0;
    color: #fff;
    font-size: 2.4rem;
    font-weight: 700;
    line-height: .95;
    text-align: left;
    background-color: rgba(0,0,0,.35);
    padding: 4px 20px 8px;

    @media (min-width: 1280px) {
      padding: 16px 0 0 1px;
      background-color: #000;
    }
  }

  .flt-modal-slider__pagination {
    --swiper-pagination-bullet-size: 12px;
    --swiper-pagination-color: #efdf00;
    --swiper-pagination-bullet-inactive-color: #fff;
    --swiper-pagination-bullet-inactive-opacity: 1;

    position: absolute;
    z-index: 1;
    inset-inline: 0;
    bottom: 20px;
    text-align: center;

    .swiper-pagination-bullet {
      position: relative;
      scale: 1;
      transition: scale 0.3s;

      &::before {
        content: "";
        position: absolute;
        inset: -5px;
        border-radius: 50%;
        border: 2px solid #efdf00;
        opacity: 0;
        transition: opacity 0s;
      }
    }

    .swiper-pagination-bullet-active {
      scale: 0.7;

      &::before {
        opacity: 1;
        transition: opacity 0.3s 0.3s;
      }
    }
  }

  .flt-modal-slider__arrows {
    position: absolute;
    z-index: 1;
    inset: 0;
    height: fit-content;
    margin: auto 5vw;
    text-align: center;
    justify-content: space-between;
  }

  .flt-modal-close {
    position: absolute;
    z-index: 100;
    top: 20px;
    right: 20px;
    cursor: pointer;
    background: transparent;
    border: 0;
    height: 32px;
    aspect-ratio: 1;
    padding: 0;

    @media (min-width: 768px) {
      display: flex;
      align-items: center;
      aspect-ratio: unset;
    }

    img {
      width: 32px;
    }
  }

  .flt-modal-close__text {
    color: #fff;
    font-size: 1.6rem;
  }

  /* ギャラリー */
  .flt-gallery {
    position: relative;
    padding-block: 40px 100px;
    background-color: #000;

    @media (max-width: 767px) {
      margin-top: 60px;
    }
  }

  .flt-gallery-slider {
    padding-inline: 16px;

    @media (min-width: 1280px) {
      padding-inline: calc(50vw - 640px);
    }
  }

  .flt-gallery-slider__slide {
    width: 290px !important;
    height: 400px;

    @media (min-width: 768px) {
      width: min(500px, 34.7222222222vw) !important;
      height: auto;
      aspect-ratio: 1 / 1.3;
    }

    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }

  .flt-gallery-slider__arrows {
    position: absolute;
    bottom: 30px;
    left: 16px;

    @media (min-width: 1280px) {
      left: calc(50vw - 640px);
    }
  }

  /* also discover */
  .flt-discover {
    padding-block: 16px;

    @media (max-width: 767px) {
      .flt-container {
        padding-inline: 0;
      }
    }

    @media (min-width: 768px) {
      padding-block: 32px;
    }
  }

  .flt-discover__ttl{
    text-align: center;
    font-weight: bold;
    font-size: 4.8rem;
    line-height: 1;

    @media (min-width: 768px) {
      font-size: 6.4rem;
    }

    @media (min-width: 1280px) {
      font-size: 10.4rem;
    }
  }

  .flt-discover__list {
    display: grid;
    row-gap: 32px;
    margin-top: 32px;

    @media (min-width: 768px) {
      grid-template-columns: repeat(2, 1fr);
      gap: 30px;
    }

    @media (min-width: 1280px) {
      margin-top: 64px;
    }
  }

  .flt-discover__item {
    border: 1px solid #fff;

    @media (min-width: 768px) {
      display: grid;
      align-items: center;

      &.flt-discover__item--col2 {
        grid-column: span 2;
        grid-template-columns: 49.453125% 50.546875%;

        .flt-discover__textContent {
          order: -1;
          grid-column: 2;
          padding-inline: 64px;
        }

        .flt-discover__img {
          width: 100%;
        }
      }
    }
  }

  .flt-discover__textContent {
    padding: 32px;

    @media (min-width: 768px) {
      position: relative;
      grid-area: 1/1;
    }
  }

  .flt-discover__subttl {
    font-size: 2.8rem;
    font-weight: 600;
    line-height: .95;

    @media (min-width: 768px) {
      font-size: 3.6rem;
      line-height: 0.8888888889;
    }
  }

  .flt-discover__btn {
    margin-top: 16px;
    padding-inline: 15px;

    @media (min-width: 768px) {
      margin-top: 19px;
    }
  }

  .flt-discover__img {
    img {
      width: 100%;
    }

    @media (min-width: 768px) {
      grid-area: 1/1;
      width: 59.68%;
      margin-left: auto;
    }
  }

  .flt-discover__note {
    font-size: 1rem;
    opacity: 0.7;
    margin-top: 6px;
  }
}


/* --------------------------------
  keyframes
-------------------------------- */
/* NOTE: https://www.renault.co.uk/electric-vehicles/r5-turbo-3e.html から流用 */
@keyframes manifest-animline {
  0% {
    opacity: 0;
    transform: translateY(150px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

@keyframes manifestscroll-animarrow {
  0% {
    opacity: 0;
    transform: translateY(-10px)
  }

  10% {
    opacity: 1;
    transform: translate(0, 0)
  }

  90% {
    opacity: 1;
    transform: translate(0, 0)
  }

  to {
    opacity: 0;
    transform: translateY(10px)
  }
}

/* NOTE: https://gist.github.com/ghosh/4f94cf497d7090359a5c9f81caf60699#file-micromodal-css から流用 */
@keyframes mmfadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes mmfadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
