/* トップページ FV（template-parts/front-fv.php） */

#front_fv {
  --fv-main: #4e2584;
  --fv-dark: #300766;
  --fv-header: 80px; /* テーマのヘッダーがFVに重なる分 */
  position: relative;
  overflow: hidden;
  background-color: #5b3a8c;
  background-image: var(--fv-bg, linear-gradient(120deg, #6a45a0 0%, #4e2584 55%, #300766 100%));
  background-size: cover;
  background-position: center;
}

#front_fv .fv_inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  grid-template-areas:
    "head    visual"
    "buttons visual";
  grid-template-rows: auto 1fr;
  column-gap: 40px;
  align-items: center;
  max-width: 1700px; /* 下のコンテンツ（.cb_free_space など）と同じ幅・左右余白 */
  margin: 0 auto;
  padding: calc(var(--fv-header) + 60px) 100px 80px;
  box-sizing: border-box;
}

/* 見出し（画像。文字・ロゴ・メリット3つを含む） */
#front_fv .fv_head { grid-area: head; align-self: end; }
#front_fv .fv_title { margin: 0; line-height: 0; }
#front_fv .fv_title img { display: block; width: 100%; height: auto; }

/* ボタン */
#front_fv .fv_buttons {
  grid-area: buttons;
  align-self: start;
  display: flex;
  gap: 20px;
  width: 100%; /* 左の見出し画像と同じ幅 */
  margin-top: 40px;
}
#front_fv .fv_button {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 0;
  height: 72px;
  padding: 0 24px;
  border: 2px solid transparent;
  border-radius: 36px;
  box-shadow: inset 0 0 0 50px rgba(26, 26, 26, 0), 0 8px 20px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: box-shadow 0.5s ease, border-color 0.5s ease, background-color 0.5s ease, color 0.5s ease;
}
/* ホバーで黒へなめらかに変わる（ヘッダーのボタンと同じ動き）。ピンクは内側の影で黒を重ねる */
#front_fv .fv_button_primary:hover { border-color: #1a1a1a; box-shadow: inset 0 0 0 50px rgba(26, 26, 26, 1), 0 8px 20px rgba(0, 0, 0, 0.3); }
/* ボタン左のアイコン（SVGをマスクにして文字色で塗る）。資料請求＝ファイル、お問い合わせ＝封筒 */
#front_fv .fv_button::before {
  content: "";
  flex: none;
  width: 1.3em;
  height: 1.3em;
  margin-right: 8px;
  background-color: currentColor;
  -webkit-mask: var(--fv-icon) center / contain no-repeat;
  mask: var(--fv-icon) center / contain no-repeat;
}
#front_fv .fv_button_primary { --fv-icon: url(../img/icons/icon-file.svg); }
#front_fv .fv_button_secondary { --fv-icon: url(../img/icons/icon-envelope-question.svg); }
/* 資料請求＝ヘッダーのCTAと同じピンク、お問い合わせ＝白地に青文字（青はヘッダーのCTAグラデーションの右端色） */
#front_fv .fv_button_primary { background-image: linear-gradient(120deg, #f857a6 10%, #ef3f6e 100%); color: #fff; }
#front_fv .fv_button_secondary { background: #fff; color: #3f78e0; }
#front_fv .fv_button_secondary:hover { background: #1a1a1a; color: #fff; }

/* 画像 */
#front_fv .fv_visual { grid-area: visual; }
#front_fv .fv_visual img { display: block; width: 100%; height: auto; }

/* 超ワイド（1921px〜）：背景写真は元の幅（1920px）より拡大しない。左右は同じ写真をぼかして敷き、境目をなじませる */
@media screen and (min-width: 1921px) {
  #front_fv { isolation: isolate; background-image: none; }
  #front_fv::before,
  #front_fv::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    background: var(--fv-bg, linear-gradient(120deg, #6a45a0 0%, #4e2584 55%, #300766 100%)) center / cover no-repeat;
  }
  #front_fv::before { left: 0; right: 0; z-index: -2; filter: blur(40px); transform: scale(1.15); }
  #front_fv::after { left: 50%; width: 1920px; margin-left: -960px; z-index: -1; }
}

@media screen and (max-width: 1391px) {
  #front_fv { --fv-header: 60px; }
  #front_fv .fv_inner { padding-left: 60px; padding-right: 60px; } /* 下のコンテンツの余白に合わせる */
}

/* タブレット */
@media screen and (max-width: 1100px) {
  #front_fv .fv_inner { column-gap: 24px; padding: calc(var(--fv-header) + 40px) 40px 60px; }
  #front_fv .fv_buttons { margin-top: 28px; }
  #front_fv .fv_button { height: 64px; font-size: 20px; }
}

/* スマホ：見出し画像 → モックアップ → ボタン の縦並び */
@media screen and (max-width: 767px) {
  #front_fv { background-image: var(--fv-bg-sp, var(--fv-bg, linear-gradient(120deg, #6a45a0 0%, #4e2584 55%, #300766 100%))); }
  #front_fv .fv_inner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "head"
      "visual"
      "buttons";
    grid-template-rows: auto;
    padding: calc(var(--fv-header) + 28px) 20px 40px;
    text-align: center;
  }
  #front_fv .fv_visual { margin-top: 28px; }
  #front_fv .fv_buttons { flex-direction: column; gap: 20px; margin-top: 28px; }
  #front_fv .fv_button { flex: none; width: 100%; height: 60px; }
}
