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

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

body.p-home .p-top-results__inner {
  width: min(1128px, 100% - 80px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

body.p-home .p-top-results__heading {
  order: 1;
}

body.p-home .p-top-results__slider {
  order: 2;
  position: relative;
  margin-top: 64px;
}

body.p-home .p-top-results__note {
  order: 3;
  margin-top: 18px;
  font-size: 12px;
  line-height: 21px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

body.p-home .p-top-results__pagination {
  order: 4;
  margin-top: 40px;
  position: static;
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 10px;
  width: 100%;
  --swiper-pagination-bullet-width: 8px;
  --swiper-pagination-bullet-height: 8px;
  --swiper-pagination-bullet-horizontal-gap: 5px;
  --swiper-pagination-bullet-inactive-color: #a7a7a7;
  --swiper-pagination-bullet-inactive-opacity: 1;
  --swiper-pagination-bullet-opacity: 1;
  --swiper-pagination-color: var(--top-color-accent);
}

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

body.p-home .p-top-results__swiper .swiper-slide {
  height: auto;
}

body.p-home .p-top-results__card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

body.p-home .p-top-results__head {
  position: relative;
  z-index: 0;
  width: 57.58%;
  padding: 39px 48px;
  background-color: var(--top-color-text);
  color: #fff;
  letter-spacing: 0.04em;
}

body.p-home .p-top-results__status {
  font-size: 12px;
  line-height: 12px;
  font-weight: 500;
}

body.p-home .p-top-results__name {
  margin-top: 1.75px;
  font-size: 22px;
  line-height: 38.5px;
  font-weight: 500;
  white-space: nowrap;
}

body.p-home .p-top-results__name .en {
  font-family: var(--top-font-en);
  font-weight: 500;
}

body.p-home .p-top-results__body {
  flex: 1 1 auto;
  min-height: 471px;
  padding: 39px 48px 40px;
  background-color: #fff;
}

body.p-home .p-top-results__label {
  font-size: 12px;
  line-height: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

body.p-home .p-top-results__target {
  margin-top: 3.5px;
  font-size: 22px;
  line-height: 33px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

body.p-home .p-top-results__scheme {
  margin-top: 4.5px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

body.p-home .p-top-results__row {
  display: flex;
  align-items: flex-start;
  margin: 24px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--color_line, #c8c7c6);
}

body.p-home .p-top-results__row:first-of-type {
  margin-top: 40px;
}

body.p-home .p-top-results__row-title {
  flex: 0 0 120px;
  width: 120px;
  margin: 0 8px 0 0;
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

body.p-home .p-top-results__row-body {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

body.p-home .p-top-results__row-body .sub {
  display: block;
  margin-top: 4.5px;
  font-size: 12px;
  line-height: 18px;
}

body.p-home .p-top-results__photo {
  position: absolute;
  top: 0;
  left: 51.85%;
  z-index: 1;
  width: 185px;
  margin: 0;
  padding: 0;
}

body.p-home .p-top-results__photo img {
  display: block;
  width: 185px;
  height: 271px;
  object-fit: cover;
}

body.p-home .p-top-results__photo figcaption {
  margin-top: 8px;
  text-align: right;
  font-size: 12px;
  line-height: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

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

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

body.p-home .p-top-results__arrow--prev {
  left: calc(-1 * max(-15px, min(100px, (100vw - 100%) / 2 - 48px)));
}

body.p-home .p-top-results__arrow--next {
  right: calc(-1 * max(-15px, min(100px, (100vw - 100%) / 2 - 48px)));
}

body.p-home .p-top-results__arrow img {
  display: block;
  width: 40px;
  height: 40px;
}

body.p-home .p-top-results__arrow .is-sp {
  display: none;
}

body.p-home .p-top-results__pagination .swiper-pagination-bullet {
  margin: 0;
}

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

  body.p-home .p-top-results__inner {
    width: 100%;
  }

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

  body.p-home .p-top-results__note {
    padding: 0 24px;
    order: 4;
    margin-top: 24px;
    font-size: 11px;
    line-height: 19.25px;
    width: var(--top-sp-content);
    margin-inline: auto;
    padding-inline: 0;
  }

  body.p-home .p-top-results__slider {
    margin-top: 24px;
  }

  body.p-home .p-top-results__pagination {
    order: 3;
    margin-top: 24px;
    --swiper-pagination-bullet-width: 12px;
    --swiper-pagination-bullet-height: 12px;
    --swiper-pagination-bullet-horizontal-gap: 5px;
    --swiper-pagination-bullet-inactive-color: #d9d9d9;
  }

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

  body.p-home .p-top-results__head {
    width: 57.48%;
    padding: 25px 27px 24px;
  }

  body.p-home .p-top-results__name {
    margin-top: 0;
    font-size: 18px;
    line-height: 31.5px;
  }

  body.p-home .p-top-results__body {
    min-height: 382px;
    padding: 25px 32px 25px 22px;
  }

  body.p-home .p-top-results__target {
    margin-top: 3px;
    font-size: 18px;
    line-height: 27px;
  }

  body.p-home .p-top-results__scheme {
    margin-top: 3.5px;
    font-size: 14px;
    line-height: 21px;
  }

  body.p-home .p-top-results__row {
    margin-top: 16px;
    padding-top: 16px;
  }

  body.p-home .p-top-results__row:first-of-type {
    margin-top: 30.5px;
  }

  body.p-home .p-top-results__row-title {
    flex: 0 0 70px;
    width: 70px;
    font-size: 14px;
    line-height: 21px;
  }

  body.p-home .p-top-results__row-body {
    font-size: 14px;
    line-height: 21px;
  }

  body.p-home .p-top-results__row-body .sub {
    margin-top: 2px;
  }

  body.p-home .p-top-results__photo {
    left: 57.48%;
    width: 119px;
  }

  body.p-home .p-top-results__photo img {
    width: 119px;
    height: 174px;
  }

  body.p-home .p-top-results__photo figcaption {
    margin-top: 5px;
  }

  body.p-home .p-top-results__arrow {
    top: 50%;
    width: 20px;
    height: 20px;
  }

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

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

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

  body.p-home .p-top-results__arrow .is-pc {
    display: none;
  }

  body.p-home .p-top-results__arrow .is-sp {
    display: block;
  }

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

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

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

  body.p-home .p-top-results__inner {
    width: 100%;
  }

  body.p-home .p-top-results__heading {
    padding: 0 32px;
  }

  body.p-home .p-top-results__note {
    order: 4;
    margin-top: 24px;
    font-size: 11px;
    line-height: 19.25px;
    padding: 0 32px;
  }

  body.p-home .p-top-results__slider {
    margin-top: 24px;
  }

  body.p-home .p-top-results__pagination {
    order: 3;
    margin-top: 24px;
    --swiper-pagination-bullet-width: 12px;
    --swiper-pagination-bullet-height: 12px;
    --swiper-pagination-bullet-horizontal-gap: 5px;
    --swiper-pagination-bullet-inactive-color: #d9d9d9;
  }

  body.p-home .p-top-results__swiper .swiper-slide {
    width: min(620px, calc(100vw - 128px));
  }

  body.p-home .p-top-results__head {
    width: 57.48%;
    padding: 32px 40px;
  }

  body.p-home .p-top-results__name {
    margin-top: 0;
    font-size: 18px;
    line-height: 31.5px;
  }

  body.p-home .p-top-results__body {
    min-height: 430px;
    padding: 32px 40px;
  }

  body.p-home .p-top-results__target {
    margin-top: 3px;
    font-size: 18px;
    line-height: 27px;
  }

  body.p-home .p-top-results__scheme {
    margin-top: 3.5px;
    font-size: 14px;
    line-height: 21px;
  }

  body.p-home .p-top-results__row {
    margin-top: 16px;
    padding-top: 16px;
  }

  body.p-home .p-top-results__row:first-of-type {
    margin-top: 30.5px;
  }

  body.p-home .p-top-results__row-title {
    flex: 0 0 70px;
    font-size: 14px;
    line-height: 21px;
    flex-basis: 96px;
    width: 96px;
  }

  body.p-home .p-top-results__row-body {
    font-size: 14px;
    line-height: 21px;
  }

  body.p-home .p-top-results__row-body .sub {
    margin-top: 2px;
  }

  body.p-home .p-top-results__photo {
    left: 57.48%;
    width: 150px;
  }

  body.p-home .p-top-results__photo img {
    width: 150px;
    height: auto;
  }

  body.p-home .p-top-results__photo figcaption {
    margin-top: 5px;
  }

  body.p-home .p-top-results__arrow {
    top: 50%;
    width: 32px;
    height: 32px;
  }

  body.p-home .p-top-results__arrow--prev {
    left: 24px;
  }

  body.p-home .p-top-results__arrow--next {
    right: 24px;
  }

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

  body.p-home .p-top-results__arrow .is-pc {
    display: none;
  }

  body.p-home .p-top-results__arrow .is-sp {
    display: block;
  }

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

@media screen and (min-width: 1024px) {
  body.p-home .p-top-results__head {
    padding: clamp(24px,3vw,39px) clamp(24px,3.52vw,48px);
  }

  body.p-home .p-top-results__body {
    padding: clamp(24px,3vw,39px) clamp(24px,3.52vw,48px) 40px;
  }

  body.p-home .p-top-results__name {
    font-size: clamp(18px,1.61vw,22px);
  }

  body.p-home .p-top-results__target {
    font-size: clamp(18px,1.61vw,22px);
  }

  body.p-home .p-top-results__photo {
    width: clamp(120px, calc(19.005vw - 74.61px), 185px);
  }

  body.p-home .p-top-results__photo img {
    width: 100%;
    height: auto;
    aspect-ratio: 185/271;
  }
}
