.top-visual {
  position: relative;
  width: 100%;
  height: auto; /* 高さを自動調整 */
  overflow: hidden;
}

.top-visual-image {
  width: 100%;
  height: auto; /* 縦横比を維持 */
  display: block; /* 画像の余白を防ぐ */
  margin: 0 auto; /* 中央揃え */
}

.top-visual-title {
  position: absolute;
  top: 40%;
  left: 49%;
  transform: translate(-50%, -50%);
  color: #000000;
  font-size: 2.5rem;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  text-align: center;
  z-index: 1; /* 画像の上に表示 */
}

.grandprix-wrapper {
  max-width: 80%;
  margin: 0 auto;
  padding: 2rem 1rem;
  background-color: #fffefc;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
/* ヘッダーのスタイル */
.grandprix-header {
  padding: 2rem;
  border-radius: 10px;
  margin-bottom: 2rem;
  text-align: center;
}

.grandprix-header h1 {
  font-size: 2rem;
  margin: 0;
  line-height: 1.4;
}

/* ハイライトセクション */
.highlight {
  background-color: #fff3cd;
  border-left: 6px solid #ffc107;
  padding: 1.5rem;
  margin: 2rem 0;
  font-weight: bold;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: red;
}

/* セクションタイトル */
.section-title {
  font-size: 1.8rem;
  color: #cc6600;
  margin-top: 2rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid #cc6600;
  padding-bottom: 0.5rem;
}

/* コンテンツブロック */
.content-block {
  text-align: left;
  line-height: 1.8;
  background-color: #fdfdfd;
  padding: 1rem;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 1.5rem;
}

/* マップ画像のスタイル */
.grandprix-map {
  display: block; /* 画像をブロック要素として扱う */
  max-width: 100%; /* 画像の幅を親要素に収める */
  height: auto; /* 縦横比を維持 */
  margin: 1rem auto; /* 上下に余白を追加し、中央揃え */
  border: 2px solid #ccc; /* 枠線を追加 */
  border-radius: 10px; /* 角を丸くする */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 影を追加 */
}

/* スマホ (最大767px) */
@media (max-width: 767px) {
  .top-visual-title {
    font-size: 2.0rem; /* タイトルを小さく */
  }

  .grandprix-wrapper {
    padding: 1rem 0.5rem; /* パディングを調整 */
  }

  .grandprix-header h1 {
    font-size: 1.2rem; /* ヘッダーのフォントサイズを小さく */
  }

  .highlight {
    font-size: 0.9rem; /* ハイライトのフォントサイズを小さく */
    padding: 0.8rem; /* パディングを調整 */
  }

  .section-title {
    font-size: 1.2rem; /* セクションタイトルを小さく */
  }

  .content-block {
    font-size: 0.9rem; /* コンテンツのフォントサイズを小さく */
  }
}

/* タブレット (768px～991px) */
@media (min-width: 768px) and (max-width: 991px) {
  .top-visual-title {
    font-size: 3rem; /* タイトルを中間サイズに */
  }

  .grandprix-wrapper {
    padding: 1.5rem 1rem; /* パディングを調整 */
  }

  .grandprix-header h1 {
    font-size: 1.6rem; /* ヘッダーのフォントサイズを中間サイズに */
  }

  .highlight {
    font-size: 1rem; /* ハイライトのフォントサイズを調整 */
    padding: 1rem; /* パディングを調整 */
  }

  .section-title {
    font-size: 1.3rem; /* セクションタイトルを中間サイズに */
  }

  .content-block {
    font-size: 1rem; /* コンテンツのフォントサイズを調整 */
  }
}

/* PC (992px以上) */
@media (min-width: 992px) {
  .top-visual-title {
    font-size: 5rem; /* タイトルを大きく */
  }

  .grandprix-wrapper {
    padding: 2rem 1.5rem; /* パディングを広く */
  }

  .grandprix-header h1 {
    font-size: 1.8rem; /* ヘッダーのフォントサイズを大きく */
  }

  .highlight {
    font-size: 1.1rem; /* ハイライトのフォントサイズを調整 */
    padding: 1.2rem; /* パディングを調整 */
  }

  .section-title {
    font-size: 1.5rem; /* セクションタイトルを大きく */
  }

  .content-block {
    font-size: 1.1rem; /* コンテンツのフォントサイズを調整 */
  }
}
