@charset "UTF-8";
/* =========================================================
   Wealthflow Home V1 — top.css（index.html 専用）
   縦の並び：Figma Y座標の隣接ギャップ（全セクション間 140 / news→footer 32）
   ========================================================= */

/* ---------- shared layout ---------- */
.hero, .card-feature, .cta, .news {
  margin-inline: var(--space-page);
}
.products, .business, .testimonial {
  width: var(--w-inner);
  margin-inline: auto;
}
.products, .card-feature, .business, .cta, .testimonial, .news {
  margin-top: var(--space-section);
}

/* =========================================================
   01 Hero 15779:6608（1380×758 / r48 / #0A215D + image）
   ========================================================= */
.hero {
  position: relative;
  margin-top: 3rem;
  height: 75.8rem;
  border-radius: var(--radius-panel);
  background: var(--color-navy);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  z-index: -1;
}
.hero__content {
  position: absolute;
  left: 14.65rem;
  bottom: 9.645rem;
  width: 42.4rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero__title {
  width: 40.1rem;
  color: var(--color-white);
  font-size: var(--fs-display);
  font-weight: 600;
  line-height: var(--lh-tight);
}
.hero__text {
  width: 42.4rem;
  padding-top: 0.6rem;
  color: var(--color-page);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}
.hero__buttons {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  padding-top: 2.4rem;
}

/* =========================================================
   02 Product portfolio 15508:44557（1146×864）
   ========================================================= */
.products {
  display: flex;
  flex-direction: column;
  gap: 3.2rem;
}
.products__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.products__title { width: 44.9rem; }
.products__grid {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 1.8rem;
}
.products__col {
  width: 37rem;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}
.products__col--2 { padding-bottom: 3.2rem; }
.products__col--3 { padding-bottom: 6.4rem; }
.product-card {
  position: relative;
  height: 31.5rem;
  border-radius: var(--radius-card);
  background: var(--color-white);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.product-card__icon {
  position: absolute;
  left: 4rem;
  top: 4rem;
  width: 4rem;
  height: 4rem;
}
.product-card__btn {
  position: absolute;
  right: 4rem;
  top: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.6rem;
  height: 4.6rem;
  border-radius: var(--radius-pill);
  background: var(--color-page);
}
.product-card__btn img { width: 1.4rem; height: 1.4rem; }
.product-card__body {
  position: absolute;
  left: 4rem;
  top: 16.1rem;
  width: 27.7rem;
}
.product-card__title {
  font-size: var(--fs-h-md);
  font-weight: 600;
  line-height: var(--lh-heading);
  white-space: nowrap;
}
.product-card__text {
  padding-top: 0.4rem;
  color: var(--color-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

/* =========================================================
   03 Card feature 15533:370（1380×923 / r48 / white）
   ========================================================= */
.card-feature {
  height: 92.3rem;
  padding: 12rem 11.65rem 0 11.6rem;  /* 15542:289 x116 w1147.5 → 右 116.5 */
  border-radius: var(--radius-panel);
  background: var(--color-white);
  overflow: hidden;
}
.card-feature__inner {
  display: flex;
  align-items: center;
  gap: 7.8rem;
}
.card-feature__media {
  flex-shrink: 0;
  width: 66rem;
  height: 65.9rem;
  border-radius: var(--radius-card);
  background: var(--color-page);
  overflow: hidden;
}
.card-feature__media img { width: 100%; height: 100%; object-fit: cover; }
.card-feature__body {
  width: 40.95rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 19.7rem;
}
.card-feature__title { width: 37.6rem; }
.card-feature__list {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
}
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.feature-item__icon { display: block; padding-top: 0.4rem; flex-shrink: 0; }
.feature-item__icon img { width: 4rem; height: 4rem; }
.feature-item__title {
  font-size: var(--fs-h-sm);
  font-weight: 600;
  line-height: var(--lh-heading);
  white-space: nowrap;
}
.feature-item__text {
  width: 35.4rem;
  padding-top: 0.4rem;
  color: var(--color-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

/* =========================================================
   04 Business support 15508:44605（1146×614）
   ========================================================= */
.business {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.business__body {
  width: 43rem;
  height: 61.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.business__title { width: 32.15rem; }
.business__buttons { display: flex; gap: 1.6rem; padding-top: 1.6rem; }
.business__list {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
}
.biz-item__link {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--color-inactive);
  transition: color .2s;
}
.biz-item.is-active .biz-item__link,
.biz-item__link:hover { color: var(--color-text); }
.biz-item__num {
  display: block;
  padding-top: 0.4rem;
  font-size: var(--fs-h-xs);
  font-weight: 600;
  line-height: var(--lh-heading);
  text-align: center;
}
.biz-item__main {
  flex: 1 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.biz-item__label {
  display: block;
  padding-bottom: 0.2rem;
  font-size: var(--fs-h-lg);
  font-weight: 600;
  line-height: var(--lh-heading);
  white-space: nowrap;
}
.biz-item__arrow { width: 1.4rem; height: 1.4rem; flex-shrink: 0; }
.business__media {
  flex-shrink: 0;
  width: 60.1rem;
  height: 61.4rem;
  border-radius: var(--radius-card);
  background: var(--color-white);
  overflow: hidden;
}
.business__media img { width: 100%; height: 100%; object-fit: cover; }

/* =========================================================
   05 Account opening CTA 15508:44606（1380×532 / r48 / #001962 + 合成背景）
   ========================================================= */
.cta {
  position: relative;
  height: 53.2rem;
  padding: 13.6rem 0 0 89.35rem;
  border-radius: var(--radius-panel);
  background: var(--color-cta-navy);
  overflow: hidden;
  isolation: isolate;
}
.cta__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}
.cta__content {
  width: 36.95rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.cta__title { width: 36.95rem; color: var(--color-white); }
.cta__text {
  width: 36.5rem;
  padding-top: 0.6rem;
  color: var(--color-white);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}
.cta__buttons {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  padding-top: 1.6rem;
}

/* =========================================================
   06 Testimonial + stats 15504:660（1146×596）
   ========================================================= */
.testimonial {
  display: flex;
  flex-direction: column;
  gap: 3.2rem;
}
.testimonial__head {
  height: 11.4rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.testimonial__title { white-space: nowrap; }
.testimonial__text {
  width: 53.2rem;
  padding-top: 0.6rem;
  color: var(--color-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}
.testimonial__cards {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  height: 45rem;
}
.story-card {
  position: relative;
  flex-shrink: 0;
  width: 66.3rem;
  height: 45rem;
  border-radius: var(--radius-card);
  background: var(--color-white);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.story-card__label {
  position: absolute;
  left: 5rem;
  top: 5rem;
  color: var(--color-label);
  opacity: .7;
  font-size: var(--fs-label);
  line-height: var(--lh-heading);
  white-space: nowrap;
}
.story-card__controls {
  position: absolute;
  left: 51.9rem;
  top: 4rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.story-card__ctrl {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.6rem;
  height: 4.6rem;
  border-radius: var(--radius-pill);
}
.story-card__ctrl img { width: 1.4rem; height: 1.4rem; }
.story-card__ctrl--prev { background: var(--color-page); }
.story-card__ctrl--next { background: var(--color-text); }
.story-card__quote {
  position: absolute;
  left: 4rem;
  top: 21.1rem;
  width: 58.3rem;
  font-size: var(--fs-h-lg);
  font-weight: 600;
  line-height: var(--lh-heading);
}
.story-card__person {
  position: absolute;
  left: 3.95rem;
  bottom: 4rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.story-card__avatar { width: 4rem; height: 4rem; border-radius: 50%; object-fit: cover; }
.story-card__names { font-size: var(--fs-body); line-height: var(--lh-heading); white-space: nowrap; }
.story-card__name { font-weight: 600; color: var(--color-text); }
.story-card__handle { font-weight: 500; color: var(--color-body); }
.stats-card {
  position: relative;
  flex: 1 0 0;
  height: 45rem;
  border-radius: 4rem;
  background: var(--color-stats);
  color: var(--color-white);
  overflow: hidden;
}
.stats-card__label {
  position: absolute;
  left: 5rem;
  top: 5rem;
  color: var(--color-tag-bg);
  opacity: .5;
  font-size: var(--fs-label);
  line-height: var(--lh-heading);
  white-space: nowrap;
}
.stats-card__body {
  position: absolute;
  left: 5rem;
  bottom: 5rem;
  width: 29.7rem;
}
.stats-card__value {
  height: 11.5rem;
  font-size: var(--fs-stat);
  font-weight: 600;
  line-height: var(--lh-tight);
}
.stats-card__desc {
  font-size: var(--fs-label);
  line-height: var(--lh-heading);
}

/* =========================================================
   07 News + newsletter 15549:510（1380×1194 / r48 / white）
   ========================================================= */
.news {
  height: 119.4rem;
  padding: 12rem 0 0 11.7rem;
  border-radius: var(--radius-panel);
  background: var(--color-white);
  overflow: hidden;
}
.news__inner {
  width: var(--w-inner);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3.2rem;
}
.news__head {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.news__title { text-align: center; white-space: nowrap; }
.news__text {
  width: 42.4rem;
  padding-top: 0.6rem;
  color: var(--color-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  text-align: center;
}
.news__list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}
/* big card */
.news-feature {
  position: relative;
  height: 49rem;
  border-radius: var(--radius-card);
  background: var(--color-page);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.news-feature__media {
  position: absolute;
  right: 2rem;
  bottom: 2rem;
  width: 59.5rem;
  height: 45rem;
  border-radius: 2.4rem;
  background: var(--color-white);
  overflow: hidden;
}
.news-feature__media > img { width: 100%; height: 100%; object-fit: cover; }
.news-feature__btn {
  position: absolute;
  right: 2rem;
  top: 2rem;
}
.news-feature__content {
  position: absolute;
  left: 6rem;
  top: 6rem;
  width: 39.1rem;
  height: 39.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.news-feature__top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.6rem;
}
.news-feature__title {
  width: 39.1rem;
  font-size: var(--fs-h-md);
  font-weight: 600;
  line-height: var(--lh-heading);
}
.news-feature__summary {
  padding-top: 0.6rem;
  color: var(--color-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}
.news-feature__date { padding-top: 1.6rem; }
.news-feature__author {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.news-feature__avatar {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-card);
}
.news-feature__names { font-size: var(--fs-body); line-height: var(--lh-heading); white-space: nowrap; }
.news-feature__by { font-weight: 500; color: var(--color-body); }
.news-feature__name { font-weight: 600; color: var(--color-text); }
/* row */
.news__row {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}
.news-card {
  flex-shrink: 0;
  height: 30rem;
  padding: 3.2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  border-radius: var(--radius-card);
  background: var(--color-page);
  box-shadow: var(--shadow-card);
}
.news-card--1 { width: 32.3rem; }
.news-card--2 { width: 34.5rem; }
.news-card__top { align-self: stretch; }
.news-card__title {
  width: 25.9rem;
  font-size: var(--fs-h-sm);
  font-weight: 600;
  line-height: var(--lh-heading);
}
.news-card__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1.6rem;
}
.news-card__cal { width: 1.6rem; height: 1.6rem; }
.news-card__date {
  display: block;
  padding-bottom: 0.2rem;
  color: var(--color-body);
  font-size: var(--fs-body);
  font-weight: 600;
  line-height: var(--lh-heading);
  white-space: nowrap;
}
.newsletter-card {
  position: relative;
  flex: 1 0 0;
  height: 30rem;
  border-radius: var(--radius-card);
  background: var(--color-navy);
}
.newsletter-card__title {
  position: absolute;
  left: 4rem;
  top: 4rem;
  width: 28.1rem;
  color: var(--color-white);
  font-size: var(--fs-h-md);
  font-weight: 600;
  line-height: var(--lh-heading);
}
.newsletter-card__form {
  position: absolute;
  left: 3.2rem;
  bottom: 4rem;
  width: 37rem;
  height: 6.2rem;
  min-height: 4.8rem;
  padding: 0.8rem 0.8rem 0.8rem 2.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: var(--radius-pill);
  background: var(--color-white);
}
.newsletter-card__input {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--color-text);
  font-size: var(--fs-body);
  line-height: var(--lh-heading);
}
.newsletter-card__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.6rem;
  height: 100%;
  border-radius: var(--radius-pill);
  background: var(--color-primary);
  flex-shrink: 0;
}
.newsletter-card__submit img { width: 1.4rem; height: 1.4rem; }

/* =========================================================
   SP（〜1023px）: SPカンプ無し＝375基準の自前1カラム
   ========================================================= */
@media (max-width: 1023px) {
  .products, .business, .testimonial {
    width: auto;
    margin-inline: 2rem;
  }

  /* hero */
  .hero {
    margin-top: var(--space-page);
    height: auto;
    min-height: 64rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 12rem 2rem 4rem;
  }
  .hero__bg { object-position: 62% bottom; }
  .hero__content { position: static; width: 100%; }
  .hero__title { width: 100%; max-width: 30rem; }
  .hero__text { width: 100%; max-width: 42.4rem; }  /* PC 15779:6613 と同じ行幅（柱に掛けない） */
  .hero__bg { z-index: -2; }
  .hero::before {  /* SP: 白文字の下地（CTAと同方式・画像→グラデ→文字） */
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(to bottom, rgba(0, 25, 98, 0) 30%, rgba(0, 25, 98, 0.6) 60%, rgba(0, 25, 98, 0.85) 100%);
  }
  .hero__buttons { flex-wrap: wrap; gap: 1.2rem; }

  /* products */
  .products { gap: 2.4rem; }
  .products__head { flex-direction: column; align-items: flex-start; gap: 2rem; }
  .products__title { width: 100%; }
  .products__grid { flex-direction: column; align-items: stretch; gap: 1.6rem; }
  .products__col, .products__col--2, .products__col--3 { width: 100%; padding-bottom: 0; gap: 1.6rem; }
  .product-card { height: auto; padding: 2.8rem; }
  .product-card__icon { position: static; }
  .product-card__btn { right: 2.8rem; top: 2.8rem; }
  .product-card__body { position: static; width: 100%; padding-top: 4rem; }
  .product-card__title { white-space: normal; }

  /* card feature */
  .card-feature { height: auto; padding: 4rem 2rem; }
  .card-feature__inner { flex-direction: column; align-items: stretch; gap: 3.2rem; }
  .card-feature__media { width: 100%; height: auto; aspect-ratio: 660 / 659; }
  .card-feature__body { width: 100%; gap: 3.2rem; }
  .card-feature__title { width: 100%; }
  .feature-item__body { flex: 1; min-width: 0; }
  .feature-item__text { width: 100%; }

  /* business */
  .business { flex-direction: column; align-items: stretch; gap: 3.2rem; }
  .business__body { width: 100%; height: auto; gap: 4rem; }
  .business__title { width: 100%; }
  .biz-item__label { white-space: normal; }
  .biz-item__num { font-size: 1.6rem; }
  .business__media { width: 100%; height: auto; aspect-ratio: 601 / 614; }

  /* cta */
  .cta {
    height: auto;
    min-height: 56rem;
    padding: 4rem 2rem;
    display: flex;
    align-items: flex-end;
  }
  .cta__bg { object-position: 22% center; z-index: -2; }  /* ::before(-1) を画像の上に */
  .cta::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(to bottom, rgba(0, 25, 98, 0) 15%, rgba(0, 25, 98, 0.85) 45%, var(--color-cta-navy) 70%);
  }
  .cta__content, .cta__title, .cta__text { width: 100%; }
  .cta__buttons { flex-wrap: wrap; gap: 1.2rem; }

  /* testimonial */
  .testimonial { gap: 2.4rem; }
  .testimonial__head { height: auto; flex-direction: column; align-items: flex-start; gap: 2rem; }
  .testimonial__title { white-space: normal; }
  .testimonial__text { width: 100%; }
  .testimonial__cards { height: auto; flex-direction: column; align-items: stretch; gap: 1.6rem; }
  .story-card {
    width: 100%;
    height: auto;
    padding: 2.8rem;
    display: flex;
    flex-direction: column;
    gap: 3.2rem;
  }
  .story-card__label, .story-card__quote, .story-card__person { position: static; }
  .story-card__label { padding-right: 11rem; }
  .story-card__controls { left: auto; right: 2.8rem; top: 2.2rem; }
  .story-card__quote { width: 100%; }
  .stats-card {
    flex: none;
    height: 34rem;
    border-radius: 3.2rem;
  }
  .stats-card__label { left: 2.8rem; top: 2.8rem; }
  .stats-card__body { left: 2.8rem; bottom: 2.8rem; width: calc(100% - 5.6rem); }
  .stats-card__value { height: auto; }

  /* news */
  .news { height: auto; padding: 5.6rem 2rem 2rem; }
  .news__inner { width: 100%; gap: 2.4rem; }
  .news__title { white-space: normal; }
  .news__text { width: 100%; }
  .news__list { gap: 1.6rem; }
  .news-feature {
    height: auto;
    display: flex;
    flex-direction: column-reverse;
    padding: 1.2rem;
    gap: 2.4rem;
  }
  .news-feature__media { position: relative; right: auto; bottom: auto; width: 100%; height: auto; aspect-ratio: 595 / 450; }
  .news-feature__btn { right: 1.2rem; top: 1.2rem; width: 4.6rem; height: 4.6rem; }
  .news-feature__content { position: static; width: 100%; height: auto; gap: 3.2rem; padding: 1.6rem 1.6rem 0; }
  .news-feature__title { width: 100%; font-size: 2.4rem; }
  .news__row { flex-direction: column; align-items: stretch; gap: 1.6rem; }
  .news-card, .news-card--1, .news-card--2 { width: 100%; height: auto; padding: 2.8rem; gap: 2.4rem; }
  .news-card__title { width: 100%; }
  .news-card__meta { flex-wrap: wrap; }
  .newsletter-card {
    flex: none;
    height: auto;
    padding: 3.2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 3.2rem;
  }
  .newsletter-card__title, .newsletter-card__form { position: static; }
  .newsletter-card__title { width: 100%; max-width: 28.1rem; font-size: 2.4rem; }
  .newsletter-card__form { width: 100%; }
}

/* =========================================================
   PC（1024〜）: auto-width 部品の Figma 実寸（min-width）＋ 30px 見出しの行高
   ========================================================= */
@media (min-width: 1024px) {
  .c-tag { justify-content: center; }
  .news-feature .c-tag { min-width: 8.1rem; }    /* Guides 15549:570 */
  .news-card--1 .c-tag { min-width: 9.1rem; }    /* Updates 15549:594 */
  .news-card--2 .c-tag { min-width: 10.4rem; }   /* Resources 15549:615 */
  .biz-item__num { min-width: 2.4rem; }          /* 02/03 15508:44587/44596 */
  .business__list > .biz-item:first-child .biz-item__num { min-width: 2.1rem; } /* 01 15508:44578 */
  .product-card__title,
  .news-feature__title,
  .newsletter-card__title { line-height: 3.8rem; }
}
