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

body.p-home .p-top-fv {
  --fv-slide-w: min(1100px, calc(100vw - 128px));
  position: relative;
  width: 100%;
  padding: 40px 0 24px;
  background-color: var(--top-color-bg);
  overflow: hidden;
}

body.p-home .p-top-fv__carousel {
  width: 100%;
  max-width: var(--top-container);
  margin: 0 auto;
  overflow: hidden;
}

body.p-home .p-top-fv__carousel .swiper-wrapper {
  align-items: stretch;
}

body.p-home .p-top-fv__slide {
  width: var(--fv-slide-w);
  height: auto;
  aspect-ratio: 1100 / 618;
  overflow: hidden;
  background-color: var(--top-color-bg);
}

body.p-home .p-top-fv__slide-link {
  display: block;
  width: 100%;
  height: 100%;
  box-shadow: 2px 2px 10px 0 rgba(0, 0, 0, .15);
}

body.p-home a.p-top-fv__slide-link {
  transition: opacity .3s ease;
}

body.p-home a.p-top-fv__slide-link:hover {
  opacity: .8;
}

body.p-home .p-top-fv__slide-link picture {
  display: block;
  width: 100%;
  height: 100%;
}

body.p-home .p-top-fv__slide-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

body.p-home .p-top-fv__kv {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--top-color-bg);
}

body.p-home .p-top-fv__kv-deco {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

body.p-home .p-top-fv__kv-buildings {
  position: absolute;
  bottom: 0;
  left: -6.45%;
  width: 117.09%;
  z-index: 0;
}

body.p-home .p-top-fv__kv-buildings .p-kv-bg__buildings-wrapper {
  position: relative;
  width: 100%;
}

body.p-home .p-top-fv__kv-buildings figure {
  margin: 0;
  line-height: 0;
}

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

body.p-home .p-top-fv__kv-squares {
  position: absolute;
  inset: 0;
  z-index: 0;
}

body.p-home .p-top-fv__kv-squares svg {
  display: block;
  width: 100%;
  height: 100%;
}

body.p-home .p-top-fv__kv-squares .fv-sq {
  will-change: opacity;
}

body.p-home .p-top-fv__kv-squares .fv-sq--r {
  fill: var(--top-color-accent);
}

body.p-home .p-top-fv__kv-squares .fv-sq--d {
  fill: var(--top-color-text);
}

body.p-home .p-top-fv__kv-squares .fv-sq--g {
  fill: var(--top-color-bg-gray-2);
}

body.p-home .p-top-fv__kv-squares--sp {
  display: none;
}

body.p-home .p-top-fv__kv-inner {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: 400px 255px;
  grid-template-areas: "catch logo"
    "kpi   logo";
  column-gap: 140px;
  row-gap: 24px;
  align-content: center;
  justify-content: center;
  width: 1100px;
  height: 618px;
  padding-bottom: 86px;
  transform: scale(var(--fv-kv-scale, 1));
  transform-origin: top left;
}

body.p-home .p-top-fv__catch {
  grid-area: catch;
  margin: 0;
  font-family: var(--top-font-ja);
  font-weight: 700;
  font-size: 32px;
  line-height: 52px;
  letter-spacing: 3.84px;
  color: var(--top-color-text);
  background-color: var(--top-color-bg);
  box-shadow: 0 0 0 12px var(--top-color-bg);
}

body.p-home .p-top-fv__logo {
  grid-area: logo;
  align-self: center;
  margin: 0;
}

body.p-home .p-top-fv__logo img {
  display: block;
  width: 255px;
  height: 116px;
}

body.p-home .p-top-fv__kpi {
  grid-area: kpi;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 400px;
  font-family: var(--top-font-ja);
}

body.p-home .p-top-fv__kpi-lead {
  width: 100%;
  margin: 0;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.1;
  letter-spacing: 0.64px;
  text-align: center;
  color: var(--top-color-accent);
}

body.p-home .p-top-fv__kpi-lead-mark {
  margin-left: 4px;
  font-weight: 500;
  font-size: 10px;
  color: #000;
  vertical-align: top;
}

body.p-home .p-top-fv__kpi-cards {
  display: flex;
  gap: 8px;
  width: 100%;
}

body.p-home .p-top-fv__kpi-card {
  flex: 1 1 0;
  min-width: 0;
}

body.p-home .p-top-fv__kpi-head {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  margin: 0;
  padding: 6px 4px;
  border-radius: 4px 4px 0 0;
  background-color: var(--top-color-accent);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: 0.64px;
  color: #fff;
  white-space: nowrap;
}

body.p-home .p-top-fv__kpi-head--sm {
  font-size: 13px;
}

body.p-home .p-top-fv__kpi-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: 80px;
  border: 1px solid var(--top-color-accent);
  border-top: none;
  border-radius: 0 0 4px 4px;
  background-color: #fff;
  letter-spacing: 0.64px;
}

body.p-home .p-top-fv__kpi-body--split {
  flex-direction: row;
  gap: 0;
}

body.p-home .p-top-fv__kpi-col {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
}

body.p-home .p-top-fv__kpi-label {
  display: block;
  font-weight: 700;
  font-size: 10px;
  line-height: 1.2;
  text-align: center;
  color: var(--top-color-text);
  white-space: nowrap;
}

body.p-home .p-top-fv__kpi-label--multi {
  font-size: 9px;
  white-space: normal;
}

body.p-home .p-top-fv__kpi-label-sub {
  display: block;
}

body.p-home .p-top-fv__kpi-body--aum .p-top-fv__kpi-label {
  font-size: 12px;
}

body.p-home .p-top-fv__kpi-num {
  display: flex;
  align-items: flex-end;
  gap: 1px;
  line-height: 1;
}

body.p-home .p-top-fv__kpi-num b {
  font-family: var(--top-font-en);
  font-weight: 700;
  font-size: 32px;
  line-height: 40px;
  color: var(--top-color-accent);
}

body.p-home .p-top-fv__kpi-num small {
  font-weight: 700;
  font-size: 12px;
  line-height: 24px;
  color: var(--top-color-text);
}

body.p-home .p-top-fv__kpi-body--aum .p-top-fv__kpi-num b {
  font-size: 36px;
  line-height: 36px;
  letter-spacing: 0.72px;
}

body.p-home .p-top-fv__kpi-body--aum .p-top-fv__kpi-num small {
  font-size: 14px;
  line-height: 20px;
}

body.p-home .p-top-fv__kpi-note {
  display: block;
  font-weight: 700;
  font-size: 7px;
  line-height: 8px;
  text-align: center;
  color: var(--top-color-text);
}

body.p-home .p-top-fv__kpi-col .p-top-fv__kpi-note {
  min-height: 16px;
}

body.p-home .p-top-fv__kpi-note--lg {
  font-size: 9px;
  white-space: nowrap;
}

body.p-home .p-top-fv__kpi-notes {
  margin: 0;
  font-weight: 500;
  font-size: 10px;
  line-height: 1.55;
  letter-spacing: 0.64px;
  color: #000;
}

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

body.p-home .p-top-fv__arrow:hover {
  opacity: .8;
}

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

body.p-home .p-top-fv__arrow--prev {
  right: auto;
  left: max(12px, calc((100% - var(--fv-slide-w)) / 2 - 43px));
}

body.p-home .p-top-fv__arrow--next {
  left: auto;
  right: max(12px, calc((100% - var(--fv-slide-w)) / 2 - 41px));
}

body.p-home .p-top-fv__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  height: 30px;
  margin-top: 24px;
}

body.p-home .p-top-fv__pagination {
  position: static;
  display: flex;
  align-items: flex-start;
  gap: 4px;
  width: auto;
  line-height: 0;
}

body.p-home .p-top-fv__bullet {
  position: relative;
  display: block;
  width: 80px;
  height: 1px;
  padding: 0;
  border: none;
  border-radius: 1px;
  background-color: #9397ac;
  appearance: none;
  cursor: pointer;
  transition: background-color .3s ease, height .3s ease;
}

body.p-home .p-top-fv__bullet::before {
  content: "";
  position: absolute;
  top: -8px;
  right: 0;
  bottom: -8px;
  left: 0;
}

body.p-home .p-top-fv__bullet.is-active {
  height: 2px;
  border-radius: 2px;
  background-color: var(--top-color-accent);
}

body.p-home .p-top-fv__autoplay {
  width: 30px;
  height: 30px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  transition: opacity .3s ease;
}

body.p-home .p-top-fv__autoplay:hover {
  opacity: .8;
}

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

body.p-home .p-top-fv__cta {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

body.p-home .p-top-fv__cta-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 69px;
  padding: 20px 80px;
  border-radius: 4px;
  background-color: var(--top-color-accent);
  text-decoration: none;
  transition: opacity .3s ease;
}

body.p-home .p-top-fv__cta-button:hover {
  opacity: .8;
}

body.p-home .p-top-fv__cta-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 29px;
  padding: 0 8px;
  border-radius: 120px;
  background-color: #fff;
  font-family: var(--top-font-ja);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  color: var(--top-color-accent);
  white-space: nowrap;
}

body.p-home .p-top-fv__cta-text {
  font-family: var(--top-font-ja);
  font-weight: 700;
  font-size: 20px;
  line-height: 24px;
  color: #fff;
  white-space: nowrap;
}

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

body.p-home .p-top-fv--single .p-top-fv__carousel {
  overflow: visible;
}

body.p-home .p-top-fv--single .p-top-fv__slide {
  overflow: visible;
}

body.p-home .p-top-fv--single .p-top-fv__kv {
  overflow: visible;
}

body.p-home .p-top-fv--single .p-top-fv__kv-deco {
  left: 50%;
  right: auto;
  width: 100vw;
  transform: translateX(-50%);
}

body.p-home .p-top-fv--single .p-top-fv__kv-buildings-img {
  height: calc(var(--fv-slide-w) * 1.1709 * 350 / 2760);
}

@media screen and (max-width: 767px) {
  body.p-home .p-top-fv {
    padding: 0 0 20px;
    --fv-slide-w: min(560px, calc(100% - 48px));
  }

  body.p-home .p-top-fv__slide-link {
    box-shadow: none;
  }

  body.p-home .p-top-fv__slide-link img {
    object-fit: cover;
  }

  body.p-home .p-top-fv__slide {
    aspect-ratio: auto;
  }

  body.p-home .p-top-fv__kv {
    height: auto;
    min-height: 0;
    padding: 12px 0;
  }

  body.p-home .p-top-fv__kv-buildings {
    display: none;
  }

  body.p-home .p-top-fv__kv-squares--pc {
    display: none;
  }

  body.p-home .p-top-fv__kv-squares--sp {
    display: block;
  }

  body.p-home .p-top-fv__kv-inner {
    position: relative;
    width: 100%;
    height: auto;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "catch"
        "logo"
        "kpi";
    column-gap: 0;
    row-gap: 16px;
    justify-items: center;
    padding-bottom: 0;
    transform: none;
  }

  body.p-home .p-top-fv__catch {
    font-size: 20px;
    line-height: 34px;
    letter-spacing: 2.4px;
  }

  body.p-home .p-top-fv__logo img {
    width: 221px;
    height: 94px;
  }

  body.p-home .p-top-fv__kpi {
    align-items: center;
    width: 264px;
    max-width: calc(100% - 24px);
  }

  body.p-home .p-top-fv__kpi-cards {
    flex-wrap: wrap;
  }

  body.p-home .p-top-fv__kpi-card--wide {
    flex: 0 0 100%;
  }

  body.p-home .p-top-fv__kpi-head {
    height: 36px;
    font-size: 14px;
  }

  body.p-home .p-top-fv__kpi-head--sm {
    height: 36px;
    font-size: 14px;
  }

  body.p-home .p-top-fv__kpi-body {
    height: 71px;
  }

  body.p-home .p-top-fv__kpi-col {
    display: grid;
    grid-template-rows: 12px 34px 16px;
    justify-items: center;
    gap: 0;
  }

  body.p-home .p-top-fv__kpi-col .p-top-fv__kpi-num b {
    line-height: 34px;
  }

  body.p-home .p-top-fv__kpi-card:not(.p-top-fv__kpi-card--wide) .p-top-fv__kpi-body {
    height: 73px;
  }

  body.p-home .p-top-fv__kpi-body--aum .p-top-fv__kpi-label {
    font-size: 14px;
  }

  body.p-home .p-top-fv__kpi-body--aum .p-top-fv__kpi-num b {
    font-size: 32px;
    line-height: 34px;
  }

  body.p-home .p-top-fv__kpi-label--multi {
    font-size: 10px;
  }

  body.p-home .p-top-fv__kpi-label-sub {
    display: none;
  }

  body.p-home .p-top-fv__kpi-notes {
    align-self: flex-start;
    line-height: 1.5;
    white-space: nowrap;
  }

  body.p-home .p-top-fv__arrow {
    width: 24px;
    height: 24px;
  }

  body.p-home .p-top-fv__arrow img {
    width: 24px;
    height: 24px;
  }

  body.p-home .p-top-fv__arrow--prev {
    right: auto;
    left: calc(50% - var(--fv-slide-w) / 2 - 20px);
  }

  body.p-home .p-top-fv__arrow--next {
    left: auto;
    right: calc(50% - var(--fv-slide-w) / 2 - 20px);
  }

  body.p-home .p-top-fv__controls {
    height: 24px;
    margin-top: 20px;
    gap: 16px;
  }

  body.p-home .p-top-fv__bullet {
    width: 40px;
  }

  body.p-home .p-top-fv__autoplay {
    width: 24px;
    height: 24px;
  }

  body.p-home .p-top-fv__autoplay img {
    width: 24px;
    height: 24px;
  }

  body.p-home .p-top-fv__cta {
    margin-top: 20px;
    padding: 0 28px;
    padding-inline: 24px;
  }

  body.p-home .p-top-fv__cta-button {
    gap: 5px;
    max-width: 640px;
    padding: 20px;
    width: min(490px, 100%);
    margin-inline: auto;
  }

  body.p-home .p-top-fv__cta-badge {
    letter-spacing: 0;
  }

  body.p-home .p-top-fv__cta-text {
    letter-spacing: 0;
  }
}

@media screen and (min-width: 768px) and (max-width: 1023px) {
  body.p-home .p-top-fv {
    --fv-slide-w: min(920px, calc(100vw - 64px));
    padding: 32px 0 24px;
  }

  body.p-home .p-top-fv__cta-button {
    min-height: 56px;
    padding: 16px 56px;
  }
}

@media screen and (min-width: 1024px) {
  /* CTA下端までを表示域に収めるため、スライドのみを等比で縮小する。 */
  body.p-home .p-top-fv {
    /* 720px未満の高さでは可読性を優先し、スクロールでCTAを表示する。 */
    --fv-viewport-height: max(720px, 100svh);
    --fv-top-space: 16px;
    --fv-controls-margin: 16px;
    --fv-controls-height: 30px;
    --fv-control-space: calc(var(--fv-controls-margin) + var(--fv-controls-height));
    --fv-cta-margin: 16px;
    --fv-cta-height: 69px;
    --fv-bottom-space: 16px;
    --fv-crop: 0px;
    --fv-slide-w: min(1100px, calc(100vw - 128px), calc((var(--fv-viewport-height) - var(--top-header-height) - var(--fv-top-space) - var(--fv-control-space) - var(--fv-cta-margin) - var(--fv-cta-height) - var(--fv-bottom-space) + var(--fv-crop)) * 1100 / 618));
    padding-top: var(--fv-top-space);
    padding-bottom: var(--fv-bottom-space);
  }

  body.p-home .p-top-fv__controls {
    height: var(--fv-controls-height);
    margin-top: var(--fv-controls-margin);
  }

  body.p-home .p-top-fv__cta {
    margin-top: var(--fv-cta-margin);
  }

  body.p-home .p-top-fv__cta-button {
    min-height: var(--fv-cta-height);
  }

  body.p-home .p-top-fv.p-top-fv--single {
    --fv-top-space: 0px;
    --fv-control-space: 0px;
    --fv-crop: 48px;
  }

  body.p-home .p-top-fv--single .p-top-fv__slide {
    height: calc(var(--fv-slide-w) * 618 / 1100 - var(--fv-crop));
  }

  body.p-home .p-top-fv--single .p-top-fv__kv-inner {
    top: calc(var(--fv-crop) * -1);
  }
}

@media screen and (max-width: 374px) {
  body.p-home .p-top-fv__cta-button {
    padding-right: 16px;
    padding-left: 16px;
  }

  body.p-home .p-top-fv__cta-text {
    font-size: 16px;
  }

  body.p-home .p-top-fv__cta-badge {
    font-size: 11px;
  }
}
