/* 2カラムレイアウトのコンテナ */
.bridge-projects-row {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 30px;
  font-family: "Noto Sans JP", sans-serif;
}

/* カード全体のスタイル */
.bridge-card {
  flex: 1;
  min-width: 300px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.bridge-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* ヘッダー（国名部分） */
.bridge-card-header {
  background-color: #f0f6fb;
  border-bottom: 2px solid #003f8e;
}

.bridge-card-header a {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  text-decoration: none;
  color: #003f8e;
  font-weight: bold;
  font-size: 1.125rem;
}

/* コンテンツ部分 */
.bridge-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* イラスト・画像部分 */
.bridge-figure {
  text-align: center;
  margin-bottom: 15px;
}

.bridge-figure img {
  max-width: 150px;
  height: auto;
}

/* 説明文 */
.bridge-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #333;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* MOREボタン（既存の共通クラスを想定しつつ微調整） */
.bridge-more-btn {
  text-align: center;
  margin-top: auto;
}

.bridge-more-btn a {
  display: inline-block;
  padding: 10px 40px;
  background-color: #003f8e;
  color: #fff;
  text-decoration: none;
  border-radius: 25px;
  font-size: 0.875rem;
  font-weight: bold;
  transition: background-color 0.3s;
  position: relative;
}

.bridge-more-btn a:hover {
  background-color: #002a60;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .bridge-projects-row {
    flex-direction: column;
  }

  .bridge-card-header a {
    font-size: 0.95rem;
    padding: 12px 15px;
  }

  .bridge-text {
    font-size: 0.875rem;
  }

  .bridge-more-btn a {
    padding: 8px 24px;
    font-size: 0.8rem;
  }
}

/* ==========================================================================
   11. コンテンツ要素：国別リンクカード（事業実施国一覧など）
   ========================================================================== */

/* カードを並べるグリッドコンテナ */
.c-country-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

/* 各国のリンクカード */
.c-country-card {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 15px 20px;
  text-decoration: none;
  color: #333;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.c-country-card:hover {
  border-color: var(--jilaf);
  box-shadow: 0 4px 12px rgba(22, 88, 160, 0.1);
  transform: translateY(-2px);
  color: var(--jilaf);
}

/* 国旗画像のエリア */
.c-country-card__flag {
  width: 48px; /* 画像の比率に合わせて少し横幅を広めにとる */
  height: 32px;
  margin-right: 15px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #eee; /* タイ国旗の白い部分が背景に溶けないようにする枠線 */
  background-color: #fff;
}

.c-country-card__flag img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 枠いっぱいに表示 */
  margin: 0 !important;
}

/* 国名のテキスト */
.c-country-card__name {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}

/* スマホ対応（768px以下） */
@media screen and (max-width: 768px) {
  .c-country-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .c-country-card {
    padding: 10px 12px;
  }

  .c-country-card__flag {
    width: 36px;
    height: 24px;
    margin-right: 10px;
  }

  .c-country-card__name {
    font-size: 0.9rem;
  }
}
