/* ==========================================================================
   FV (First View) — v3 Redesign
   Scoped under .fv to avoid conflicts with existing styles.
   ========================================================================== */

/* ── Variables ── */
:root {
  --fv-navy: #16264a;
  --fv-navy-deep: #0a244d;
  --fv-gold: #c19a3e;
  --fv-gold-btn: #b57e15;
  --fv-gold-btn-dark: #a1690a;
  --fv-text-body: #3f4657;
  --fv-white: #ffffff;
  --fv-mincho: "Shippori Mincho", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
}

/* ── Hide global header bar on front page (keep mobile-nav overlay) ── */
.home .header {
  background: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  border: none !important;
  pointer-events: none;
  height: 0;
  min-height: 0;
  overflow: visible;
  padding: 0 !important;
}
.home .header-container { display: none !important; }
.home .mobile-nav { pointer-events: auto; }

/* ============ FV 全体 ============ */
.fv {
  position: relative;
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  aspect-ratio: 1680 / 945;
  min-height: 640px;
  overflow: hidden;
}

.fv__bg {
  position: absolute;
  inset: 0;
  background: url("../images/fvbg-v4.webp") center top/cover no-repeat;
}

/* 女性の切り抜きはPCでは非表示（背景v4に含まれるため） */
.fv__women { display: none; }

/* ハンバーガーはスマホのみ表示 */
.nav__burger { display: none; }

/* ============ ナビ ============ */
.fv .nav {
  position: absolute;
  top: 2.6%;
  left: 1.8%;
  right: 1.8%;
  z-index: 5;
  height: 9.2%;
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 2.2vw;
  padding: 0 .9vw 0 2.4vw;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(22, 38, 74, .08);
}

.nav__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.nav__logo img {
  height: clamp(28px, 2.8vw, 48px);
  width: auto;
  display: block;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 50px);
  margin-left: 1.2vw;
}
.nav__menu a {
  text-decoration: none;
  color: var(--fv-navy);
  font-family: var(--fv-mincho);
  font-size: clamp(13px, 1.05vw, 19px);
  font-weight: 600;
  white-space: nowrap;
  transition: color .2s;
}
.nav__menu a:hover { color: var(--fv-gold); }

.nav__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: .8vw;
}
.nav__btn {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  text-decoration: none;
  font-family: var(--fv-mincho);
  font-size: clamp(12px, 1vw, 17px);
  font-weight: 600;
  white-space: nowrap;
  border-radius: 999px;
  padding: .8em 1.6em;
  transition: all .2s;
}
.nav__btn--ghost {
  color: var(--fv-navy);
  border: 1px solid rgba(22, 38, 74, .3);
  background: rgba(255, 255, 255, .85);
}
.nav__btn--ghost:hover { border-color: var(--fv-navy); background: #fff; }
.nav__btn--navy {
  color: #fff;
  background: linear-gradient(180deg, #1d3057, var(--fv-navy));
  box-shadow: 0 6px 16px rgba(22, 38, 74, .28);
}
.nav__btn--navy:hover { filter: brightness(1.12); }
.nav__btn--gold {
  color: #fff;
  background: linear-gradient(180deg, #cd9730, var(--fv-gold-btn) 70%, var(--fv-gold-btn-dark));
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, .35), 0 6px 16px rgba(161, 105, 10, .3);
}
.nav__btn--gold:hover { filter: brightness(1.07); }

/* ============ ヒーローコピー ============ */
.fv .fv-hero {
  position: absolute;
  z-index: 3;
  left: 7.7%;
  top: 21%;
  max-width: 52%;
}

.fv-hero__lead {
  display: flex;
  align-items: center;
  font-family: var(--fv-mincho);
  font-size: clamp(16px, 1.9vw, 33px);
  font-weight: 600;
  letter-spacing: .14em;
  margin-bottom: .55em;
}
.fv-hero__lead-text {
  color: #c9994a;
  padding-bottom: .06em;
}
.fv-hero__lead-dash {
  display: inline-flex;
  align-items: center;
  margin-right: .7em;
}
.fv-hero__lead-dash::before {
  content: "";
  width: clamp(28px, 2.9vw, 50px);
  height: 3px;
  background: #c9994a;
}

.fv-hero__title { line-height: 1.02; margin-bottom: .4em; }
.fv-hero__title-ja {
  display: block;
  color: var(--fv-navy-deep);
  font-family: var(--fv-mincho);
  font-size: clamp(28px, 4.4vw, 72px);
  font-weight: 700;
  letter-spacing: .01em;
  white-space: nowrap;
  margin-bottom: .1em;
}
.fv-hero__title-en {
  display: block;
  color: var(--fv-navy-deep);
  font-family: "Shippori Mincho", Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: clamp(58px, 7.9vw, 134px);
  letter-spacing: .05em;
  line-height: .95;
}

.fv-hero__desc {
  color: var(--fv-text-body);
  font-size: clamp(13px, 1.2vw, 21px);
  font-weight: 500;
  letter-spacing: .05em;
  line-height: 1.85;
  margin-bottom: 1.6em;
}

.fv-hero__cta {
  display: flex;
  gap: 1.2vw;
  flex-wrap: wrap;
}
.fv .cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1em;
  text-decoration: none;
  font-family: var(--fv-mincho);
  font-size: clamp(14px, 1.22vw, 21px);
  font-weight: 700;
  letter-spacing: .04em;
  padding: .95em 1.55em;
  border-radius: 999px;
  transition: all .2s;
}
.fv .cta__arrow { font-weight: 500; }
.fv .cta--gold {
  color: #fff;
  background: linear-gradient(180deg, #cd9730, var(--fv-gold-btn) 72%, var(--fv-gold-btn-dark));
  border: 2px solid rgba(255, 255, 255, .9);
  box-shadow: inset 0 1px 3px rgba(255, 255, 255, .35), 0 12px 26px rgba(161, 105, 10, .35);
}
.fv .cta--gold:hover { filter: brightness(1.06); transform: translateY(-1px); }
.fv .cta--ghost {
  color: var(--fv-navy-deep);
  background: rgba(255, 255, 255, .82);
  border: 1.5px solid rgba(19, 34, 75, .85);
}
.fv .cta--ghost:hover { border-color: var(--fv-navy-deep); background: #fff; }

/* ============ 専門家チーム連携バッジ ============ */
.fv-hero__trust {
  display: inline-flex;
  align-items: center;
  gap: clamp(14px, 1.4vw, 24px);
  margin-top: 1.8em;
  padding: clamp(8px, .8vw, 13px) clamp(28px, 3.4vw, 58px) clamp(8px, .8vw, 13px) clamp(16px, 1.6vw, 26px);
  background: rgba(247, 245, 242, .68);
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 18px;
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 30px rgba(22, 38, 74, .08);
}
.fv-hero__trust-emblem { flex: none; display: grid; place-items: center; }
.fv-hero__trust-emblem img { height: clamp(44px, 4.6vw, 76px); width: auto; display: block; }
.fv-hero__trust-small {
  display: block;
  color: var(--fv-navy);
  font-family: var(--fv-mincho);
  font-size: clamp(13px, 1.2vw, 20px);
  font-weight: 600;
  letter-spacing: .1em;
}
.fv-hero__trust-main {
  display: block;
  color: var(--fv-navy-deep);
  font-family: var(--fv-mincho);
  font-weight: 700;
  font-size: clamp(19px, 2.25vw, 38px);
  letter-spacing: .05em;
  line-height: 1.2;
  margin-top: 2px;
}

/* ============ タブレット横 (1024px〜1200px) ============ */
@media (max-width: 1200px) {
  .fv .nav { gap: 1vw; padding: 16px 20px; }
  .nav__btn { padding: .7em 1em; font-size: 13px; }
  .nav__menu a { font-size: 13px; }
}

/* ============ タブレット縦 (769px〜1024px) ============ */
@media (max-width: 1024px) {
  .nav__menu { display: none; } /* メニューテキストを隠す */
  .nav__actions { gap: 12px; }
  .nav__btn--ghost { display: none; } /* お問合せは隠す */
  /* バーガーメニューを表示 */
  .nav__burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    margin-left: 20px;
    width: 40px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
  }
  .nav__burger span { display: block; height: 2px; width: 28px; background: var(--fv-navy); border-radius: 2px; transition: .3s; }
}

/* ============ スマホ (600px以下) ============ */
@media (max-width: 600px) {
  .fv {
    aspect-ratio: auto;
    min-height: 0;
    display: block;
    position: relative;
    background: linear-gradient(180deg, #eef1f6 62%, #e6ebf3);
  }

  /* 画像をFVセクションの最下部まで敷く（coverでロゴ上の隙間をなくす） */
  .fv__bg {
    position: absolute;
    inset: 0;
    height: auto;
    background: url("../images/fvbg-v4.webp") 58% top / cover no-repeat;
  }
  .fv__bg::after {
    content: none;
  }

  .fv__women { display: none; }

  /* バッジ SP */
  .fv-hero__trust {
    position: static;
    display: flex;
    width: 100%;
    margin-top: 1.6em;
    flex-direction: row;
    align-items: center;
    gap: 13px;
    padding: 11px 20px 11px 16px;
    border-radius: 16px;
    background: rgba(250, 248, 245, .72);
  }
  .fv-hero__trust-emblem img { height: 46px; }
  .fv-hero__trust-small { font-size: 12px; letter-spacing: .06em; }
  .fv-hero__trust-main { font-size: clamp(18px, 5.2vw, 23px); margin-top: 2px; }

  /* ナビ SP */
  .fv .nav {
    position: absolute;
    top: 12px; left: 12px; right: 12px;
    z-index: 5;
    margin: 0;
    width: auto;
    height: auto;
    min-height: 0;
    padding: 12px 16px;
  }
  .nav__menu,
  .nav__actions { display: none; }
  .nav__logo img { height: 30px; }
  .nav__burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    margin-left: auto;
    width: 40px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
  }
  .nav__burger span {
    display: block;
    height: 2.5px;
    width: 30px;
    margin-left: auto;
    border-radius: 2px;
    background: var(--fv-navy);
  }
  .nav__burger span:nth-child(2) { width: 30px; }

  /* コピー SP（テキスト全体をやや上に配置） */
  .fv .fv-hero {
    position: relative;
    z-index: 3;
    left: auto;
    top: auto;
    max-width: 100%;
    padding: 118px 5% 24px;
    margin-top: 0;
  }
  .fv-hero__lead { max-width: 68%; font-size: clamp(11px, 3.1vw, 15px); letter-spacing: .02em; margin-bottom: .6em; white-space: nowrap; }
  .fv-hero__lead-dash { margin-right: .5em; }
  .fv-hero__lead-dash::before { width: 20px; height: 2px; }
  .fv-hero__title { max-width: 60%; }
  .fv-hero__title-ja { font-size: clamp(15px, 4.7vw, 28px); }
  .fv-hero__title-en { font-size: clamp(40px, 12.5vw, 66px); margin-bottom: .2em; }
  /* 説明文は女性と重ならない幅に抑え、重なる部分も白シャドウで可読性を確保 */
  .fv-hero__desc {
    max-width: 63%;
    font-size: clamp(10px, 2.95vw, 12.5px);
    line-height: 1.75;
    letter-spacing: 0;
    text-shadow:
      0 1px 6px rgba(255, 255, 255, .95),
      0 0 12px rgba(255, 255, 255, .85),
      0 0 20px rgba(255, 255, 255, .7);
  }
  .fv-hero__desc br { display: none; }

  .fv-hero__cta {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 1.6em;
    max-width: 72%;
  }
  .fv .cta {
    width: 100%;
    max-width: none;
    justify-content: center;
    white-space: nowrap;
    font-size: clamp(12px, 3.3vw, 15px);
    padding: .95em .9em;
    gap: .7em;
  }
}

/* ==========================================================================
   LP全体 — FVに合わせたタイポグラフィ統一
   styles-lp.css の後に読み込まれるため、確実にオーバーライドされる
   ========================================================================== */

/* ── すべてのセクション見出し・タイトルを明朝体化 ── */
.section-title,
.sec-title,
.sec-title--light,
.nayami-title,
.feat-title,
.feat-card-title,
.feat-loan-title,
.feat-ltv-box-title,
.reasons-title,
.service-title,
.usecase-title,
.rates-title,
.risk-title,
.flow-card-title,
.risk-card-title,
.company-card-title,
.company-page-header .page-title,
.thanks-title,
.cta-content h2 {
  font-family: var(--fv-mincho) !important;
}

/* ── セクションeyebrow・leadも明朝体で統一 ── */
.sec-eyebrow,
.sec-eyebrow--light,
.sec-lead,
.sec-lead--light,
.section-subtitle {
  font-family: var(--fv-mincho) !important;
}

/* ── body本文は読みやすいゴシック体のまま維持 ── */
/* ── ボタンだけ明朝体に統一 ── */
.btn-primary,
.btn-outline,
.btn-large,
.btn-text,
.btn-contact-cta,
.btn-consultation,
.btn-contact-header,
.btn-contact-mobile {
  font-family: var(--fv-mincho) !important;
}

/* ── ネイビー背景上のアウトライン系ボタンの視認性確保 ── */
.bottom-cta .btn-outline,
.bottom-cta .btn-contact-cta {
  color: #fff !important;
  background: transparent !important;
  border: 1.5px solid rgba(255, 255, 255, .7) !important;
}
.bottom-cta .btn-outline:hover,
.bottom-cta .btn-contact-cta:hover {
  background: rgba(255, 255, 255, .15) !important;
  border-color: #fff !important;
}

/* ── トップページのみ：モバイルメニュー閉じるボタン表示 ── */
.mobile-nav-close {
  display: block;
}

/* ==========================================================================
   Trust Logos Section — FVとnayamiの間
   ========================================================================== */
.trust-logos {
  position: relative;
  z-index: 2;
  background: #fff;
  border-top: 1px solid rgba(22, 38, 74, .06);
  border-bottom: 1px solid rgba(22, 38, 74, .06);
}

.trust-logos__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px;
}

.trust-logos__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-evenly;
  gap: 32px 48px;
}

.trust-logos__item {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: opacity .25s;
}

.trust-logos__item img {
  display: block;
  height: 48px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  transition: transform .3s;
}

.trust-logos__item:hover img {
  transform: scale(1.06);
}

/* ── Tablet ── */
@media (max-width: 1024px) {
  .trust-logos__inner {
    padding: 32px 24px;
  }
  .trust-logos__grid {
    gap: 24px 32px;
  }
  .trust-logos__item img {
    height: 38px;
    max-width: 140px;
  }
}

/* ── SP ── */
@media (max-width: 600px) {
  .trust-logos__inner {
    padding: 16px 16px;
  }
  .trust-logos__grid {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-evenly;
    gap: 0;
  }
  .trust-logos__item img {
    height: 24px;
    max-width: 80px;
  }
}
