/* カードコンテナスタイル */
.smf-cards {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: 94%;
  margin: 0 auto 80px;
}

/* カードリンクスタイル */
.smf-card-link {
  display: block;
  width: calc(33.33% - 14px); /* 3つのカードが均等に並ぶように調整 */
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease;
}

/* カード基本スタイル */
.smf-card {
  background-color: #fff;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  height: 100%;
  transition: box-shadow 0.3s ease;
}

/* ホバー時の影効果を強調 */
.smf-card-link:hover .smf-card {
  box-shadow: 0 8px 20px rgba(0, 44, 108, 0.2);
}

/* カード画像コンテナ - 4:3比率に固定 */
.smf-card__image {
  width: 100%;
  position: relative;
  /* モダンブラウザ向け */
  aspect-ratio: 4/3;
  /* 古いブラウザ向け代替手段 */
  padding-top: 75%; /* 4:3比率 = 3÷4×100 = 75% */
  overflow: hidden;
}

/* カード画像 */
.smf-card__image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 0.5s ease;
}

/* ホバー時に画像を拡大 */
.smf-card-link:hover .smf-card__image img {
  transform: scale(1.1);
}

/* カードコンテンツ */
.smf-card__content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* カードタイトル */
.smf-card__title {
  color: #002C6C;
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 16px;
  line-height: 1.4;
}

/* カードテキスト */
.smf-card__text {
  font-size: 14px;
  line-height: 1.6;
  color: #000000;
  margin-bottom: 24px;
}

/* カードフッター */
.smf-card__footer {
  margin-top: auto;
  border-top: 1px solid #E0E0E0;
  padding-top: 16px;
  text-align: right;
}

/* カードリンク - aタグからspanに変更 */
.smf-card__link {
  display: inline-flex;
  align-items: center;
  color: #002C6C;
  font-size: 14px;
  transition: color 0.3s ease;
}

/* ドット */
.smf-card__dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #FF6600; /* オレンジ色のドット */
  border-radius: 50%;
  margin-right: 8px;
  transition: transform 0.3s ease;
}

/* カード全体ホバー時のリンクとドットのアニメーション */
.smf-card-link:hover .smf-card__link {
  color: #FF6600; /* ドットと同じオレンジ色に変更 */
}

.smf-card-link:hover .smf-card__dot {
  transform: translateX(5px); /* ドットを右に移動 */
}

/* レスポンシブ対応: 768px以下 */
@media (max-width: 768px) {
  .smf-cards {
    flex-direction: column; /* 縦並びに変更 */
    gap: 30px; /* 縦方向の間隔を少し広げる */
  }
  
  .smf-card-link {
    width: 100%; /* リンクの幅を100%に */
  }
  
  /* 画像のアスペクト比は維持 */
  .smf-card__image {
    /* 高さ指定は削除し、アスペクト比のみで制御 */
  }
  
  /* コンテンツ部分のパディングを調整 */
  .smf-card__content {
    padding: 20px;
  }
}