@charset "UTF-8";

/* =========================================
   FV (Hero Area)
   ========================================= */
.fv {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding-top: 10rem; /* ヘッダーの高さ分 */
  background-image: url('../images/fv_bg.jpg'); /* PC用背景画像 */
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* 
  PC表示 (1025px以上)
*/
.fv__inner {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto auto;
  grid-template-areas: 
    "title"
    "lead"
    "acts";
  align-items: center;
  padding: 4rem 2rem 4rem 6rem;
  transform: translateY(-5rem);
}

.fv__title {
  grid-area: title;
  color: var(--color-text-navy);
  font-size: 6.0rem;
  line-height: 1.3;
  font-weight: 700;
  margin-bottom: 4rem;
  align-self: end;
}

.fv__lead {
  grid-area: lead;
  color: var(--color-text-navy);
  font-size: 1.8rem;
  line-height: 1.8;
  font-weight: 500;
  margin-bottom: 5rem;
  max-width: 64rem;
}

/* リード文内の段落間余白（PC時は広め） */
.fv__spacer {
  display: block;
  height: 1.5em;
}

/* PCではインフォグラフィック用の要素を非表示 */
.fv__graphic {
  display: none;
}

.fv__actions {
  grid-area: acts;
  display: flex;
  gap: 2rem;
  align-self: start;
}

/* =========================================
   Responsive Settings
   ========================================= */
/* タブレット・スマホ共通表示 (1024px以下) */
@media (max-width: 1024px) {
  .fv {
    /* SP用背景画像へ切り替え */
    background-image: url('../images/fv_bg_sp.png');
    background-size: cover;
    background-position: center top;
    min-height: auto;
    padding-top: 8rem;
    padding-bottom: 3rem;
  }

  .fv__inner {
    grid-template-columns: 1fr;
    grid-template-areas: 
      "title"
      "lead"
      "graphic"
      "acts";
    row-gap: 1.2rem; /* ★全体的な要素と要素の間の余白をギュッと狭める */
    padding: 2rem;
    transform: none;
    justify-items: center; /* 全体を中央揃え */
  }

  .fv__title {
    font-size: clamp(2.8rem, 7vw, 4.2rem); /* ★文字サイズを少し大きく */
    margin-bottom: 0.8rem;
    text-align: center;
  }

  .fv__lead {
    font-size: 1.2rem; /* ★文字サイズを少し小さく */
    margin-bottom: 0;
    text-align: center;
  }

  /* ★リード文内の段落間余白を狭める */
  .fv__spacer {
    height: 0.5em;
  }

  /* SP/Tablet時のみインフォグラフィック画像を表示 */
  .fv__graphic {
    grid-area: graphic;
    display: block;
    width: 100%;
    max-width: 80%; /* ★タブレット時は80% */
    margin: 0 auto; /* ★上下の余白(margin)をなくし、row-gapの隙間だけに依存させる */
  }

  .fv__actions {
    flex-direction: column;
    align-items: center;
    max-width: 100%;
    width: 100%;
    gap: 1.6rem;
    margin-top: 0.8rem; /* ★画像とボタンの間の余白を微調整 */
  }
}

/* スマホ表示専用 (767px以下) */
@media (max-width: 767px) {
  .fv__graphic {
    max-width: 100%; /* ★スマホ時は100%に広げる */
  }
}