@charset "utf-8";

/* ==========================================================================
   FV (First View) — PC基準 1440px / SP基準 375px (Figmaに準拠)
   AutoLayout相当の flex/grid を使用、絶対座標は最小限
   ========================================================================== */

.fv {
  position: relative;
  width: 100%;
  margin: 0 auto;
  padding-top: 80px;
  background: #fafaf2;
  overflow: hidden;
  font-family: var(--font-jp);
  color: var(--color-text);
}

/* ---- ヘッダー (ロゴ左 + CTA pill 右) — グローバル固定 ----------------- */
.fv__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 80px;
  padding: 0 30px;
  background: transparent;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.4s;
}
.fv__header.is-fixed {
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.fv__header-logo {
  display: block;
  flex-shrink: 0;
}
.fv__header-logo img {
  display: block;
  height: 48px;
  width: auto;
}
.fv__header-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 28px;
  background: var(--color-blue);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border-radius: 999px;
  border: 2px solid var(--color-text);
  white-space: nowrap;
}
.fv__header-cta::after {
  content: "";
  width: 0;
  height: 0;
  border: 4px solid transparent;
  border-left-color: #fff;
  margin-left: 4px;
}

/* ---- PC グローバルナビ (ヘッダー内中央に配置) ------------------------- */
.fv__nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(16px, 2vw, 32px);
  flex: 1 1 auto;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.6px;
  line-height: 1.4;
}
.fv__nav a {
  white-space: nowrap;
}

/* ---- 見出しブロック (eyebrow + sub + main) ----------------------------- */
.fv__head {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 50px 20px 0;
  gap: 12px;
}

.fv__eyebrow {
  position: absolute;
  /* 主見出し「どこでも相談会」の上方左に配置（中心から300px左） */
  top: 30px;
  left: 50%;
  transform: translateX(calc(-50% - 300px));
  width: 120px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-text);
  border-radius: 50%;
  color: #fff;
  font-weight: 900;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 1.6px;
  z-index: 3;
}
/* 吹き出しの矢印: 二等辺三角形, 頂点を右下に向ける (吹き出しと一部重ねて連結) */
.fv__eyebrow::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: -6px;
  width: 26px;
  height: 26px;
  background: var(--color-text);
  clip-path: polygon(0% 50%, 50% 0%, 100% 100%);
}
.fv__eyebrow span {
  display: block;
}

.fv__sub {
  font-weight: 900;
  font-size: 24px;
  line-height: 1.5;
  letter-spacing: 2.4px;
  color: var(--color-text);
}

.fv__main {
  font-weight: 900;
  font-size: 36px;
  line-height: 1.5;
  letter-spacing: 3.6px;
  color: var(--color-text);
  margin-top: 8px;
}
.fv__main .blue {
  color: var(--color-blue);
}

/* ---- レビューバッジ + ヒーロー画像 -------------------------------------- */
/* Figma: 画像下端 y=558, 黄色帯上端 y=529 → 約29px overlap                  */
.fv__hero {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin-top: 32px;
  padding: 0 20px;
  min-height: 220px;
}

.fv__badges {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: nowrap;
  filter: drop-shadow(8px 8px 0 rgba(0, 0, 0, 0.1));
}

.fv__badge {
  position: relative;
  width: 202px;
  min-height: 96px;
  background: #fff;
  border: 2px solid var(--color-text);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: 1.5px;
  text-align: center;
  padding: 12px 8px;
  z-index: 1; /* ヒーロー画像より前面に */
}
.fv__badge:nth-child(2),
.fv__badge:nth-child(4) {
  margin-top: 16px;
}
.fv__badge::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 14px;
  width: 14px;
  height: 12px;
  background: url("../images/fv/badge-quote.svg") no-repeat center / contain;
}

.fv__hero-img {
  position: absolute;
  left: 50%;
  top: 24px;
  transform: translateX(-50%);
  width: 169px;
  aspect-ratio: 169 / 238;
  z-index: 0;
  pointer-events: none;
}
.fv__hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---- 黄色背景帯 (CTA + チャネル) ---------------------------------------- */
/* Figma: 上端が緩やかに上方凸のアーチ形状 (中央が約32px盛り上がる) */
.fv__bottom {
  position: relative;
  background: var(--color-yellow);
  padding: 24px 20px 56px;
  margin-top: 32px; /* アーチ分のスペース */
  z-index: 2;
}
.fv__bottom::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -32px;
  height: 32px;
  background: var(--color-yellow);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

/* ---- CTA キャプション + ボタン ------------------------------------------ */
.fv__cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.fv__cta-caption {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 1.8px;
  color: #000;
}
.fv__cta-caption::before,
.fv__cta-caption::after {
  content: "";
  display: block;
  width: 2px;
  height: 20px;
  background: #000;
}
.fv__cta-caption::before {
  transform: rotate(-25deg);
}
.fv__cta-caption::after {
  transform: rotate(25deg);
}

.fv__cta {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 600px;
  max-width: 100%;
  min-height: 88px;
  padding: 14px 60px 14px 24px;
  background: var(--color-blue);
  color: #fff;
  border: 2px solid var(--color-text);
  border-radius: 74px;
  text-align: center;
  font-weight: 700;
}
.fv__cta-sub {
  display: block;
  font-size: 16px;
  line-height: 1.4;
}
.fv__cta-main {
  display: block;
  font-size: 24px;
  line-height: 1.4;
}
.fv__cta-main small {
  font-size: 20px;
}
.fv__cta::after {
  content: "";
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 20px;
  background: url("../images/fv/cta-arrow.svg") no-repeat center / contain;
}

/* ---- チャネルグリッド --------------------------------------------------- */
.fv__channels {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.fv__channels-title {
  font-weight: 900;
  font-size: 24px;
  line-height: 1.4;
  letter-spacing: 2.4px;
  color: var(--color-text);
}

.fv__channel-list {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
}

.fv__channel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 144px;
  flex-shrink: 0;
}
.fv__channel-icon {
  width: 144px;
  height: 144px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.fv__channel-icon img {
  max-width: 60%;
  max-height: 60%;
  object-fit: contain;
}
.fv__channel-icon--zoom img {
  max-width: 70%;
}
.fv__channel-label {
  font-weight: 900;
  font-size: 20px;
  line-height: 1.4;
  letter-spacing: 2px;
  color: var(--color-text);
}

/* OR: 80px高さ固定 + margin-topでアイコン中心(=144/2=72)と OR中心 を揃える */
.fv__channel-or {
  flex: 0 0 32px;
  width: 32px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  margin-top: 32px; /* (144 - 80) / 2 = 32 → アイコン中心とOR中心が一致 */
  list-style: none;
}
.fv__channel-or img {
  width: 32px;
  height: 80px;
  flex: none;
  object-fit: contain;
}

/* ==========================================================================
   タブレット〜PC small : 750px 〜 1440px をfluidに調整
   ========================================================================== */
@media (max-width: 1440px) and (min-width: 751px) {
  .fv__nav {
    font-size: clamp(13px, 1.04vw, 15px);
    gap: clamp(12px, 1.4vw, 20px);
  }
  .fv__sub {
    font-size: clamp(18px, 1.67vw, 24px);
  }
  .fv__main {
    font-size: clamp(28px, 2.5vw, 36px);
    letter-spacing: clamp(2px, 0.3vw, 3.6px);
  }
  .fv__channels-title {
    font-size: clamp(20px, 1.67vw, 24px);
  }
}

/* ==========================================================================
   SP (~750px以下) — Figma SP版 (375px) に基づく 2x2 グリッド構成
   ========================================================================== */
@media (max-width: 750px) {
  .fv {
    padding-top: 56px;
  }
  .fv__nav {
    display: none;
  }
  .fv__header {
    height: 56px;
    padding: 0 14px;
  }
  .fv__header-logo img {
    height: 32px;
  }
  .fv__header-cta {
    font-size: 12px;
    padding: 8px 14px;
  }

  .fv__head {
    padding: 28px 20px 0;
    gap: 0;
    align-items: center;
  }

  .fv__eyebrow {
    width: 75px;
    height: 59px;
    top: 18px;
    left: 11px;
    transform: none;
    font-size: 10px;
    letter-spacing: 0.8px;
    line-height: 1.3;
  }
  .fv__eyebrow::after {
    width: 16px;
    height: 16px;
    bottom: -4px;
    right: 6px;
  }

  .fv__sub {
    font-size: 14px;
    letter-spacing: 1.4px;
    line-height: 1.5;
    margin-top: 30px;
  }
  .fv__main {
    font-size: 24px;
    letter-spacing: 1.6px;
    line-height: 1.5;
    margin-top: 14px;
  }

  /* ---- バッジ 2x2 + 中央オーバーラップのヒーロー画像 -------------------- */
  /* Figma SP: 画像下端 y=499, 黄色帯上端 y=483 → 約16px overlap */
  .fv__hero {
    position: relative;
    margin-top: 24px;
    padding: 0 20px 0;
    min-height: 200px;
  }

  .fv__badges {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 20px;
    row-gap: 16px;
    width: 100%;
    max-width: 335px;
    margin: 0 auto;
    filter: drop-shadow(4px 4px 0 rgba(0, 0, 0, 0.1));
  }

  .fv__badge {
    width: auto;
    min-height: 71px;
    font-size: 12px;
    letter-spacing: 0.6px;
    padding: 10px 6px;
  }
  .fv__badge:nth-child(2),
  .fv__badge:nth-child(4) {
    margin-top: 0;
  }
  .fv__badge::before {
    width: 10px;
    height: 9px;
    top: -2px;
    left: 8px;
  }

  .fv__hero-img {
    top: auto;
    bottom: -16px;
    width: 99px;
    aspect-ratio: 99 / 140;
  }

  /* ---- 黄色背景帯 (SPは曲率小さく) ------------------------------------- */
  .fv__bottom {
    padding: 14px 20px 40px;
    margin-top: 16px; /* SP用アーチ高さ */
  }
  .fv__bottom::before {
    top: -16px;
    height: 16px;
    /* Figma準拠: 上端は左右ベースライン上で中央が約16px盛り上がる緩やかなアーチ */
  }

  /* ---- CTA -------------------------------------------------------------- */
  .fv__cta-wrap {
    gap: 16px;
  }
  .fv__cta-caption {
    font-size: 14px;
    letter-spacing: 1px;
    line-height: 1.6;
    text-align: center;
    align-items: center;
  }
  .fv__cta-caption::before,
  .fv__cta-caption::after {
    height: 36px; /* 2行分の高さに合わせる */
  }

  .fv__cta {
    width: 100%;
    max-width: 335px;
    min-height: 72px;
    padding: 10px 40px 10px 16px;
    border-radius: 999px;
  }
  .fv__cta-sub {
    font-size: 12px;
  }
  .fv__cta-main {
    font-size: 18px;
  }
  .fv__cta-main small {
    font-size: 14px;
  }
  .fv__cta::after {
    right: 16px;
    width: 12px;
    height: 14px;
  }

  /* ---- チャネル 2x2 (各タイル: アイコン+ラベル横並び) ------------------ */
  .fv__channels {
    margin-top: 36px;
    gap: 20px;
  }
  .fv__channels-title {
    font-size: 20px;
    letter-spacing: 1.6px;
    line-height: 1.5;
  }
  .fv__channel-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 16px;
    row-gap: 16px;
    width: 100%;
    max-width: 335px;
  }
  .fv__channel {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    width: auto;
  }
  .fv__channel-icon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
  }
  .fv__channel-label {
    font-size: 14px;
    letter-spacing: 1px;
  }
  .fv__channel-or {
    display: none;
  }
}
