/* top.css */

/* カードナビゲーションコンテナ（トップ専用） */
.card-nav {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* トップ専用：円形カードのサイズ・レイアウト */
.card-nav .circle-bg-card {
  width: 300px;
  height: 300px;
  background-size: cover;
  background-position: center;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* 円形カード内の見出しを大きく */
.card-nav .circle-bg-card h3 {
  font-size: 1.5em;
  margin: 0;
  width: 100%; /* カード全体の幅に合わせる */
  text-align: center; /* テキストを中央寄せ */
  position: relative;
}

.card-nav .circle-bg-card h3::after {
  content: "";
  display: block;
  width: 80%; /* ここでカード幅の80%を指定 */
  margin: 10px auto 0; /* 上部に余白、中央揃え */
  border-top: 2px solid #fff;
}


/* 円形カード内の説明文（テキストを白に設定） */
.card-nav .circle-bg-card p {
  font-size: 1em;
  margin-top: 10px;
  padding: 0 10px;
  color: #fff;
  position: relative;
  z-index: 2;
}
