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

body.p-home .p-top-funds {
  padding: 40px 24px;
}

body.p-home .p-top-funds--offering {
  background-color: var(--top-color-bg-gray);
}

body.p-home .p-top-funds--operation {
  background-color: var(--top-color-bg);
  overflow: hidden;
}

body.p-home .p-top-funds .p-top-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

body.p-home .p-top-funds__heading {
  margin: 0;
  padding: 0;
  font-family: var(--top-font-ja);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.6;
  text-align: center;
  color: var(--top-color-text);
}

body.p-home .p-top-funds__list {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

body.p-home .p-top-funds__card {
  box-sizing: border-box;
  width: 900px;
  max-width: 100%;
  padding: 40px 64px;
}

body.p-home .p-top-funds--offering .p-top-funds__card {
  background-color: var(--top-color-bg);
}

body.p-home .p-top-funds--operation .p-top-funds__card {
  background-color: var(--top-color-bg-gray);
}

body.p-home .p-top-funds__card-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

body.p-home .p-top-funds__body {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

body.p-home .p-top-funds__head {
  box-sizing: border-box;
  width: 100%;
  min-height: 64px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

body.p-home .p-top-funds__title {
  margin: 0;
  font-family: var(--top-font-ja);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.45;
  color: var(--top-color-text);
}

body.p-home .p-top-funds__subtitle {
  margin: 0;
  font-family: var(--top-font-ja);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.45;
  color: var(--top-color-text);
}

body.p-home .p-top-funds__table {
  width: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.p-home .p-top-funds__row {
  display: flex;
  align-items: center;
  height: 38px;
}

body.p-home .p-top-funds__label {
  box-sizing: border-box;
  flex: 0 0 168px;
  width: 168px;
  align-self: stretch;
  margin: 0;
  padding-left: 4px;
  border-left: 4px solid var(--top-color-accent);
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-family: var(--top-font-ja);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--top-color-text);
}

body.p-home .p-top-funds__label-line {
  display: block;
  white-space: nowrap;
}

body.p-home .p-top-funds__label-line--sub {
  font-size: 14px;
}

body.p-home .p-top-funds__value {
  margin: 0 0 0 24px;
  display: flex;
  align-items: baseline;
  white-space: nowrap;
  color: var(--top-color-text);
}

body.p-home .p-top-funds__row.is-accent .p-top-funds__value {
  color: var(--top-color-accent);
}

body.p-home .p-top-funds__num {
  font-family: var(--top-font-en);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: 0.72px;
}

body.p-home .p-top-funds__num.is-empty {
  font-size: 20px;
  letter-spacing: 0;
}

body.p-home .p-top-funds__unit {
  font-family: var(--top-font-ja);
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  letter-spacing: 0;
}

body.p-home .p-top-funds__note {
  width: 100%;
  margin: 0;
  font-family: var(--top-font-ja);
  font-weight: 400;
  font-size: 12px;
  line-height: 18px;
  color: var(--top-color-text);
}

body.p-home .p-top-funds__link {
  margin: 0;
}

body.p-home .p-top-funds__link a {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: var(--top-color-text);
  transition: opacity 0.3s ease;
}

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

body.p-home .p-top-funds__link-text {
  font-family: var(--top-font-ja);
  font-weight: 700;
  font-size: 14px;
  line-height: 24.5px;
  letter-spacing: 0.56px;
}

body.p-home .p-top-funds__link img {
  display: block;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
}

body.p-home .p-top-funds__image {
  flex: 0 0 320px;
  width: 320px;
}

body.p-home .p-top-funds__image-link {
  position: relative;
  display: block;
  width: 320px;
  height: 320px;
  overflow: hidden;
  transition: opacity 0.3s ease;
}

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

body.p-home .p-top-funds__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

body.p-home .p-top-funds__ribbon {
  position: absolute;
  top: 0;
  left: 0;
  padding: 8px;
  background-color: var(--top-color-accent);
  color: #ffffff;
  font-family: var(--top-font-ja);
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

body.p-home .p-top-funds__carousel {
  position: relative;
  width: calc(100% + 48px);
  margin-left: -24px;
  margin-right: -24px;
}

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

body.p-home .p-top-funds__swiper .swiper-wrapper {
  align-items: flex-start;
}

body.p-home .p-top-funds__slide {
  box-sizing: border-box;
  width: 900px;
  max-width: 100%;
  height: auto;
}

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

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

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

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

body.p-home .p-top-funds__arrow--prev {
  left: max(0px, calc(50% - 481px));
}

body.p-home .p-top-funds__arrow--next {
  right: max(0px, calc(50% - 481px));
}

body.p-home .p-top-funds__arrow.swiper-button-disabled {
  opacity: 0.3;
  pointer-events: none;
}

body.p-home .p-top-funds__pagination {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  line-height: 0;
}

body.p-home .p-top-funds__pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  margin: 0;
  border-radius: 50%;
  background-color: #a7a7a7;
  opacity: 1;
  appearance: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

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

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

  body.p-home .p-top-funds .p-top-inner {
    gap: 20px;
    width: var(--top-sp-content);
  }

  body.p-home .p-top-funds--operation .p-top-inner {
    gap: 24px;
  }

  body.p-home .p-top-funds__heading {
    font-size: 24px;
  }

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

  body.p-home .p-top-funds__card {
    width: 100%;
    padding: 32px 20px;
  }

  body.p-home .p-top-funds__card-inner {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 20px;
  }

  body.p-home .p-top-funds__image {
    order: -1;
    flex: 0 0 auto;
    width: min(320px, 100%);
    margin-inline: auto;
  }

  body.p-home .p-top-funds__image-link {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  body.p-home .p-top-funds__ribbon {
    padding: 7px 8px;
    font-size: 10px;
  }

  body.p-home .p-top-funds__body {
    align-items: stretch;
    gap: 20px;
  }

  body.p-home .p-top-funds__head {
    min-height: 0;
    gap: 4px;
  }

  body.p-home .p-top-funds__value {
    margin-left: 12px;
  }

  body.p-home .p-top-funds__link {
    align-self: flex-start;
  }

  body.p-home .p-top-funds__carousel {
    margin-left: -20px;
    margin-right: -20px;
    width: calc(100% + 48px);
    margin-inline: -24px;
  }

  body.p-home .p-top-funds__slide {
    width: var(--top-sp-content);
  }

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

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

  body.p-home .p-top-funds__arrow--prev {
    left: 15px;
  }

  body.p-home .p-top-funds__arrow--next {
    right: 15px;
  }

  body.p-home .p-top-funds__subtitle {
    text-wrap: balance;
  }

  body.p-home .p-top-funds__subtitle-part {
    display: inline-block;
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: normal;
  }

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

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

  body.p-home .p-top-funds .p-top-inner {
    gap: 24px;
  }

  body.p-home .p-top-funds--operation .p-top-inner {
    gap: 24px;
  }

  body.p-home .p-top-funds__heading {
    font-size: 24px;
  }

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

  body.p-home .p-top-funds__card {
    width: min(900px, 100%);
    padding: 32px;
  }

  body.p-home .p-top-funds__card-inner {
    justify-content: flex-start;
    flex-direction: row;
    align-items: center;
    gap: 24px;
  }

  body.p-home .p-top-funds__image {
    order: 0;
    flex: 0 0 clamp(220px, 32vw, 280px);
    width: clamp(220px, 32vw, 280px);
  }

  body.p-home .p-top-funds__image-link {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }

  body.p-home .p-top-funds__ribbon {
    padding: 7px 8px;
    font-size: 10px;
  }

  body.p-home .p-top-funds__body {
    align-items: flex-start;
    gap: 16px;
  }

  body.p-home .p-top-funds__head {
    min-height: 64px;
    gap: 8px;
  }

  body.p-home .p-top-funds__value {
    margin-left: 16px;
  }

  body.p-home .p-top-funds__link {
    align-self: flex-start;
  }

  body.p-home .p-top-funds__carousel {
    width: calc(100% + 64px);
    margin-right: -32px;
    margin-left: -32px;
  }

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

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

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

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

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

  body.p-home .p-top-funds__label {
    flex-basis: 148px;
    width: 148px;
    font-size: 14px;
  }
}

@media (max-width: 359px) {
  body.p-home .p-top-funds__label {
    flex-basis: 148px;
    width: 148px;
    font-size: 14px;
  }

  body.p-home .p-top-funds__label-line--sub {
    font-size: 12px;
  }

  body.p-home .p-top-funds__value {
    margin-left: 10px;
  }

  body.p-home .p-top-funds__num {
    font-size: 24px;
  }

  body.p-home .p-top-funds__unit {
    font-size: 14px;
  }
}
