/* トップ専用: 共通指定 / スマホ〜767px / タブレット768〜1023px / PC1024px〜。 */

body.p-home .p-top-features {
  background-color: var(--top-color-bg-gray-2);
  padding: 80px 0;
  overflow: hidden;
}

body.p-home .p-top-features__head {
  padding: 0 10.8335%;
  margin-bottom: 40px;
}

body.p-home .p-top-features__slider {
  position: relative;
}

body.p-home .p-top-features__swiper {
  width: 100%;
  overflow: visible;
}

body.p-home .p-top-features__slide {
  width: 78.334%;
  height: auto;
  display: flex;
}

body.p-home .p-top-features__card {
  flex: 1 1 auto;
  min-width: 0;
  background-color: var(--top-color-bg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

body.p-home .p-top-features__body {
  flex: 1 0 auto;
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

body.p-home .p-top-features__text {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

body.p-home .p-top-features__number {
  font-family: var(--top-font-en);
  font-weight: 700;
  font-size: 40px;
  line-height: 1;
  letter-spacing: 0.56px;
  color: #f9d2d2;
  margin: 0;
}

body.p-home .p-top-features__title {
  font-family: var(--top-font-ja);
  font-weight: 700;
  font-size: 24px;
  line-height: 36px;
  letter-spacing: 0.64px;
  color: var(--top-color-accent);
  margin: 0;
}

body.p-home .p-top-features__lead {
  font-family: var(--top-font-ja);
  font-weight: 700;
  font-size: 18px;
  line-height: 31.5px;
  letter-spacing: 0.64px;
  color: var(--top-color-text);
  margin: 0;
}

body.p-home .p-top-features__caption {
  font-family: var(--top-font-ja);
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: normal;
  color: var(--top-color-text);
  margin: 0;
}

body.p-home .p-top-features__note {
  font-family: var(--top-font-ja);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.75;
  letter-spacing: 0.04em;
  color: var(--top-color-text);
  margin: 0;
}

body.p-home .p-top-features__lead sup {
  font-size: 0.7em;
  vertical-align: super;
  line-height: 0;
}

body.p-home .p-top-features__caption sup {
  font-size: 0.7em;
  vertical-align: super;
  line-height: 0;
}

body.p-home .p-top-features__figure {
  flex: 0 0 auto;
  width: min(504px, 48%);
  aspect-ratio: 504 / 336;
  margin: 0;
}

body.p-home .p-top-features__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background-color: var(--top-color-bg-gray);
}

body.p-home .p-top-features__link {
  border-top: 1px solid var(--top-color-bg-gray);
  padding-top: 24px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  color: var(--top-color-text);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

body.p-home .p-top-features__link:hover {
  opacity: 0.8;
}

body.p-home .p-top-features__link-text {
  font-family: var(--top-font-ja);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.64px;
}

body.p-home .p-top-features__em {
  font-weight: 700;
  color: var(--top-color-accent);
}

body.p-home .p-top-features__link-more {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  font-family: var(--top-font-ja);
  font-weight: 700;
  font-size: 12px;
  line-height: 21px;
  white-space: nowrap;
}

body.p-home .p-top-features__link-icon {
  flex: 0 0 auto;
  width: 21px;
  height: 21px;
  display: block;
}

body.p-home .p-top-features__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

body.p-home .p-top-features__nav:hover {
  opacity: 0.8;
}

body.p-home .p-top-features__nav img {
  width: 100%;
  height: 100%;
  display: block;
}

body.p-home .p-top-features__nav--prev {
  left: calc(10.8335% - 33px);
}

body.p-home .p-top-features__nav--next {
  right: calc(10.8335% - 32px);
}

body.p-home .p-top-features__pagination {
  position: static;
  margin-top: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

body.p-home .p-top-features__pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  margin: 0;
  border-radius: 50%;
  background: #a7a7a7;
  opacity: 1;
  transition: background-color 0.3s ease;
}

body.p-home .p-top-features__pagination .swiper-pagination-bullet-active {
  background: var(--top-color-accent);
}

@media screen and (max-width: 767px) {
  body.p-home .p-top-features {
    padding: 40px 0;
  }

  body.p-home .p-top-features__head {
    padding: 0 20px;
    margin-bottom: 24px;
    width: var(--top-sp-content);
    margin-inline: auto;
    padding-inline: 0;
  }

  body.p-home .p-top-features__slide {
    width: min(560px, calc(100% - 48px));
  }

  body.p-home .p-top-features__card {
    padding: 20px;
    gap: 20px;
  }

  body.p-home .p-top-features__body {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  body.p-home .p-top-features__text {
    width: 100%;
    gap: 20px;
  }

  body.p-home .p-top-features__number {
    font-size: 40px;
    line-height: 40px;
  }

  body.p-home .p-top-features__title {
    font-size: 20px;
    line-height: 1.6;
  }

  body.p-home .p-top-features__lead {
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: 0.04em;
  }

  body.p-home .p-top-features__caption {
    font-size: 14px;
    line-height: 24px;
    letter-spacing: 0.56px;
  }

  body.p-home .p-top-features__figure {
    width: min(100%, 504px);
    aspect-ratio: 284 / 188;
  }

  body.p-home .p-top-features__link {
    padding-top: 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  body.p-home .p-top-features__link-text {
    font-size: 14px;
    letter-spacing: 0.64px;
  }

  body.p-home .p-top-features__link-more {
    width: 100%;
    flex: 0 0 auto;
  }

  body.p-home .p-top-features__nav {
    width: 20px;
    height: 20px;
  }

  body.p-home .p-top-features__nav--prev {
    left: max(12px, calc((100% - min(560px, calc(100% - 48px))) / 2 - 20px));
  }

  body.p-home .p-top-features__nav--next {
    right: max(12px, calc((100% - min(560px, calc(100% - 48px))) / 2 - 20px));
  }

  body.p-home .p-top-features__pagination {
    margin-top: 40px;
  }

  body.p-home .p-top-features__head .c-title__main {
    font-size: 24px;
    line-height: 36px;
    text-wrap: balance;
  }

  body.p-home .p-top-features__nav::before {
    content: "";
    position: absolute;
    inset: -12px;
  }
}

@media screen and (min-width: 768px) and (max-width: 1023px) {
  body.p-home .p-top-features {
    padding: 48px 0;
  }

  body.p-home .p-top-features__head {
    padding: 0 32px;
    margin-bottom: 32px;
  }

  body.p-home .p-top-features__slide {
    width: min(680px, calc(100vw - 128px));
  }

  body.p-home .p-top-features__card {
    padding: 32px;
    gap: 24px;
  }

  body.p-home .p-top-features__body {
    flex-direction: row;
    align-items: flex-start;
    gap: 32px;
  }

  body.p-home .p-top-features__text {
    width: 100%;
    gap: 20px;
  }

  body.p-home .p-top-features__number {
    font-size: 40px;
    line-height: 40px;
  }

  body.p-home .p-top-features__title {
    font-size: 20px;
    line-height: 1.6;
  }

  body.p-home .p-top-features__lead {
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: 0.04em;
  }

  body.p-home .p-top-features__caption {
    font-size: 14px;
    line-height: 24px;
    letter-spacing: 0.56px;
  }

  body.p-home .p-top-features__figure {
    aspect-ratio: 284 / 188;
    flex: 0 0 42%;
    width: 42%;
    max-width: none;
  }

  body.p-home .p-top-features__link {
    padding-top: 20px;
    gap: 0;
    flex-direction: row;
    align-items: center;
  }

  body.p-home .p-top-features__link-text {
    font-size: 14px;
    letter-spacing: 0.64px;
  }

  body.p-home .p-top-features__link-more {
    flex: 0 0 auto;
    width: auto;
  }

  body.p-home .p-top-features__nav {
    width: 32px;
    height: 32px;
  }

  body.p-home .p-top-features__nav--prev {
    left: 20px;
  }

  body.p-home .p-top-features__nav--next {
    right: 20px;
  }

  body.p-home .p-top-features__pagination {
    margin-top: 40px;
  }

  body.p-home .p-top-features__head .c-title__main {
    font-size: 24px;
    line-height: 1.5;
  }
}
