@charset "UTF-8";

.feature {
  position: relative;

  z-index: 3;

  margin: 0 0 -98px;
  padding: 220px 0 100px;
  background: #eaebe6 url("/car/spacia_base/teaser/asset/img/feature/feature_bg.png") center top / cover no-repeat;
  color: #231815;
  font-family: "Noto Sans JP", sans-serif;
  font-feature-settings: "halt" 1;

  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - 98px),
    calc(100% - 100px) 100%,
    100px 100%,
    0 calc(100% - 98px)
  );
}

.feature__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 38px;
  margin: 68px 0 0;
  padding: 0;
  list-style: none;
}

.feature__item {
  position: relative;
  min-height: 422px;
  padding: 30px 32px 40px;
  background-color: #fffeee;
  background-image:
    linear-gradient(90deg, rgba(173, 201, 255, 0.3) 1px, transparent 1px),
    linear-gradient(rgba(173, 201, 255, 0.3) 1px, transparent 1px);
  background-position: 28px 15px;
  background-size: 30px 30px;
  box-shadow: 2px 4px 20px rgba(92, 92, 92, 0.15);
}

.feature__item::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 50%;
  width: 81px;
  height: 44px;
  margin-left: -38px;
  background: url("/car/spacia_base/teaser/asset/img/feature/feature_tape.png") 0 0 / 100% 100% no-repeat;
}

.feature__item.is-ready {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.feature__item.is-ready.is-show {
  opacity: 1;
  transform: none;
}

.feature__badge {
  display: block;
  width: auto;
  height: 25px;
}

.feature__title {
  margin: 8px 0 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.03em;
}

.feature__photo {
  position: relative;
  margin-top: 12px;
}

.feature__photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 324 / 193;
  object-fit: cover;
}

.feature__zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  cursor: default;
}

.feature-modal {
  display: none;
}

.feature__text {
  margin: 16px 0 0;
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: 0.03em;
}

@media screen and (min-width: 961px) {
  .feature__item.is-ready:nth-child(2) {
    transition-delay: 0.15s;
  }

  .feature__item.is-ready:nth-child(3) {
    transition-delay: 0.3s;
  }
}

@media screen and (max-width: 960px) {
  .feature__list {
    grid-template-columns: 1fr;
    gap: 31px;
    margin-top: 51px;
  }

  .feature__item {
    display: grid;
    grid-template-columns: 120px 1fr;
    grid-template-areas:
      "head head"
      "photo text";
    gap: 12px 10px;
    min-height: 0;
    padding: 20px 16px;
    background-position: 2px 19px;
  }

  .feature__item::before {
    top: -15px;
    width: 53px;
    height: 29px;
    margin-left: -25px;
  }

  .feature__head {
    display: flex;
    grid-area: head;
    gap: 8px;
    align-items: center;
  }

  .feature__badge {
    flex-shrink: 0;
    height: 18px;
  }

  .feature__title {
    margin: 0;
    font-size: 15px;
  }

  .feature__photo {
    grid-area: photo;
    align-self: start;
    margin: 0;
  }

  .feature__photo img {
    aspect-ratio: 1;
  }

  .feature__photo::after {
    content: "";
    position: absolute;
    right: 5px;
    bottom: 5px;
    box-sizing: border-box;
    width: 20px;
    height: 20px;
    border: 1px solid #fff;
    border-radius: 50%;
    background:
      linear-gradient(#fff, #fff) center / 8px 1px no-repeat,
      linear-gradient(#fff, #fff) center / 1px 8px no-repeat;
    pointer-events: none;
    }

  .feature__zoom {
    cursor: pointer;
  }

  .is-feature-open {
    overflow: hidden;
  }

  .feature-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s;
  }

  .feature-modal.is-open {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.3s ease, visibility 0s;
  }

  .feature-modal__overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.8);
  }

  .feature-modal__body {
    position: relative;
    width: 100%;
    max-width: 335px;
    padding-top: 46px;
    transform: scale(0.9);
    transition: transform 0.3s ease;
  }

  .feature-modal.is-open .feature-modal__body {
    transform: none;
  }

  .feature-modal__photo img {
    display: block;
    width: 100%;
    height: auto;
  }

  .feature-modal__close {
    position: absolute;
    top: 0;
    right: 0;
    width: 36px;
    height: 36px;
    padding: 23px 0 0;
    border: 0;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 9px;
    line-height: 1;
    cursor: pointer;
  }

  .feature-modal__close::before,
  .feature-modal__close::after {
    content: "";
    position: absolute;
    top: 12px;
    left: 8px;
    width: 20px;
    height: 2px;
    border-radius: 1px;
    background-color: #fff;
    transform: rotate(45deg);
  }

  .feature-modal__close::after {
    transform: rotate(-45deg);
  }

  .feature__text {
    grid-area: text;
    margin: 0;
    font-size: 13px;
  }
}

@media screen and (max-width: 750px) {
  .feature {
    margin: 0 0 -26px;
    padding: 86px 0 40px;
    background-color: #d3d2c4;
    background-image: url("/car/spacia_base/teaser/asset/img/feature/feature_bg_sp.png");
    clip-path: polygon(
      0 0,
      100% 0,
      100% calc(100% - 26px),
      calc(100% - 26px) 100%,
      26px 100%,
      0 calc(100% - 26px)
    );
  }
}

@media (prefers-reduced-motion: reduce) {
  .feature-modal,
  .feature-modal.is-open,
  .feature-modal__body {
    transition: none;
  }
}
