/* ============================================================
   TOPページ FV 新デザイン（2026-09 グレイン様ご依頼分）
   ------------------------------------------------------------
   ABテスト用に旧デザイン（.first-view 既存スタイル）はそのまま残し、
   front-page.php 冒頭の $grain_fv_variant トグルで新旧を切り替える。
   既存の style.css には一切手を加えず、専用ファイルとして分離。
   ============================================================ */

.first-view--new {
  margin-top: 79px; /* 固定ヘッダー(79px)の高さ分の余白。既存 .first-view と同じ考え方 */
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: #0b1830; /* 画像読み込み前のフォールバック色 */
}
@media screen and (width < 768px) {
  .first-view--new {
    margin-top: 53px; /* SPのヘッダー高さ(53px)に合わせる。79pxのままだと隙間ができる */
  }
}
.first-view--new__photo {
  position: relative;
  width: 100%;
  height: min(46.25vw, 666px);
  background-image: url('../img/top-fv-new_pc.jpg');
  background-size: cover;
  background-position: center top;
}
@media screen and (width > 1440px) {
  .first-view--new__photo {
    height: 666px;
  }
}
@media screen and (width < 768px) {
  .first-view--new__photo {
    height: 80vh;
    height: 80dvh; /* 対応ブラウザではアドレスバー等を考慮した高さで統一 */
    background-image: url('../img/top-fv-new_sp.jpg');
    background-position: center top;
  }
}

.first-view--new__overlay {
  position: absolute;
  top: min(4.1666666667vw, 60px);
  left: min(4.1666666667vw, 60px);
  width: min(45.8333333333vw, 660px);
}
@media screen and (width < 768px) {
  .first-view--new__overlay {
    top: 6.4vw;
    left: 5.3333333333vw;
    width: 89.3333333333vw;
  }
}

.first-view--new__heading {
  color: #12213F;
  font-size: min(3.4722222222vw, 50px);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.02em;
}
@media screen and (width < 768px) {
  .first-view--new__heading {
    font-size: min(9.3333333333vw, 44px);
    line-height: 1.4;
  }
}
.first-view--new__heading-accent {
  color: #0A5171;
}
.first-view--new__sp-br {
  display: none;
}
@media screen and (width < 768px) {
  .first-view--new__sp-br {
    display: block;
  }
}

.first-view--new__lead {
  margin-top: min(2.4305555556vw, 35px);
  color: #12213F;
  font-size: min(1.1111111111vw, 16px);
  font-weight: 500;
  line-height: 1.7;
  text-align: left;
}
@media screen and (width < 768px) {
  .first-view--new__lead {
    margin-top: 4vw;
    font-size: min(3.4666666667vw, 13px);
    line-height: 1.7;
  }
}

.first-view--new__cta {
  position: absolute;
  left: min(4.1666666667vw, 60px);
  bottom: min(11.1111111111vw, 160px);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #0653DD;
  color: #FFF;
  font-size: min(1.0416666667vw, 15px);
  font-weight: 600;
  padding: min(1.0416666667vw, 15px) min(1.6666666667vw, 24px);
  border-radius: 9999px;
  text-decoration: none;
  transition: opacity 0.3s ease;
}
.first-view--new__cta:hover {
  opacity: 0.85;
}
.first-view--new__cta-arrow {
  font-size: 1.1em;
}
@media screen and (width < 768px) {
  .first-view--new__cta {
    left: 5.3333333333vw;
    bottom: 14vw;
    font-size: 3.4666666667vw;
    padding: 3.2vw 4.8vw;
  }
}

/* ---------- 特徴バー（FV直下・4カラム） ---------- */
.first-view--new__features {
  /* 帯（背景色）は画面幅いっぱい、中身は既存セクション同様に最大1280pxで中央寄せ */
  background: #F5F7FC;
  padding: min(1.6666666667vw, 24px) min(2.7777777778vw, 40px);
}
.first-view--new__features-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(88.8888888889vw, 1280px);
  margin: 0 auto;
}
.first-view--new__feature {
  display: flex;
  align-items: center;
  gap: min(0.8333333333vw, 12px);
  padding: 0 min(1.3888888889vw, 20px);
  border-left: 1px solid #C9D3E6;
}
.first-view--new__feature:first-child {
  border-left: none;
  padding-left: 0;
}
.first-view--new__feature-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.2em;
  width: min(2.2222222222vw, 32px);
  color: #1A4591;
  font-size: min(1.3888888889vw, 20px);
}
@media screen and (width < 768px) {
  .first-view--new__feature-icon {
    width: 5.8666666667vw;
    font-size: 4.2666666667vw;
  }
}
.first-view--new__feature p {
  color: #12213F;
  font-size: min(0.8333333333vw, 12px);
  font-weight: 600;
  line-height: 1.5;
  margin: 0;
}
@media screen and (width < 768px) {
  .first-view--new__features {
    padding: 4vw 3.2vw;
  }
  .first-view--new__features-inner {
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
    gap: 2vw;
  }
  .first-view--new__feature {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.6vw;
    padding: 0 0 0 2.4vw;
  }
  .first-view--new__feature-icon {
    width: 5.8666666667vw;
    height: 5.8666666667vw;
  }
  .first-view--new__feature p {
    font-size: 2.1333333333vw;
    line-height: 1.4;
  }
}
