


/* 関連ページセクション */
.smf-related {
  background-color: #002C6C;
  padding: 40px 0 20px 0;
  color: #fff;
}

.smf-related__container {
  width: 80%;
  max-width: 1200px;
  margin: 0 auto;
}

.smf-related__heading {
  font-family: "BIZ UDPGothic", sans-serif !important;
  font-size: 16px;
  font-weight: 400;
}

.smf-related__title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 40px;
  letter-spacing: 0.05em;
}

/* カードグリッド */
.smf-related-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 40px 0;
}

/* カード */
.smf-related-card {
  background-color: #fff;
  border-radius: 5px;
  overflow: hidden;
  display: flex;
  height: 140px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.3s ease; /* 影の変化をスムーズに */
}

/* ホバー時の影効果 */
.smf-related-card:hover {
  box-shadow: 0 8px 20px rgba(0, 44, 108, 0.2); /* 影を大きく、ブランドカラーを反映 */
}

/* カード画像エリア */
.smf-related-card__image-area {
  width: 35%;
  background-color: #f0f0f0;
  overflow: hidden; /* はみ出た部分を隠す - 画像拡大効果のため必要 */
}

.smf-related-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease; /* 画像ズームのためのトランジション */
}

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

/* カードコンテンツ */
.smf-related-card__content {
  width: 65%;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* カードテキストコンテナ */
.smf-related-card__text {
  margin-bottom: 10px;
}

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

.smf-related-card__subtitle {
  color: #002C6C;
  font-size: 14px;
  margin-bottom: 8px;
}

/* カードフッター */
.smf-card__footer {
  text-align: right;
  padding-top: 8px;
}

/* カードリンク */
.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: 6px;
  height: 6px;
  background-color: #FF6600;
  border-radius: 50%;
  margin-right: 8px;
  transition: transform 0.3s ease;
}

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

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

/* レスポンシブ対応 */
@media (max-width: 768px) {
  /* コンテナ幅を調整 */
  .smf-related__container {
    width: 90%;
  }
  
  .smf-related__title {
    font-size: 32px;
    margin-bottom: 30px;
  }
  
  /* グリッドを1列に変更 */
  .smf-related-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  /* カードサイズの調整（レイアウトは横並びのまま） */
  .smf-related-card {
    height: 120px; /* 必要に応じて高さを調整 */
  }
  
  /* カードパディングを調整 */
  .smf-related-card__content {
    padding: 16px;
  }
  
  /* フォントサイズを調整 */
  .smf-related-card__title {
    font-size: 16px;
  }
  
  .smf-related-card__subtitle {
    font-size: 12px;
  }
  
  /* リンクテキストのサイズ調整 */
  .smf-card__link {
    font-size: 12px;
  }
}





/* コンテナ設定 */
.smf-container {
  margin: 0 auto;
  padding: 20px 80px;
  background-color: var(--color-dark-blue);
}

/* グリッドレイアウト */
.smf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* 個別グリッドアイテム */
.smf-grid-item {
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.smf-grid-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* 画像設定 */
.smf-image {
  width: 100%;
  display: block;
}

/* レスポンシブ設定 */
@media (max-width: 992px) {
  .smf-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .smf-grid {
    grid-template-columns: 1fr;
  }
  
  .smf-container {
    padding: 10px;
  }
  
}