/**
 * File Name: service-certifications.css
 * 2026-07-16 | Final Check (2-Cards Layout)
 */

/**
 * 各種認証・SDGsセクション全体コンテナ
 */
.p-certifications-section {
  width: 100%;
  padding: 50px 20px;
  background-color: #eeeeee;
  box-sizing: border-box;
  font-family: "Helvetica Neue", Arial, "BIZ UDPGothic", "Meiryo", sans-serif;
}

.p-certifications-section *,
.p-certifications-section *::before,
.p-certifications-section *::after {
  box-sizing: border-box;
}

.p-certifications-section__container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

/* カードを包むコンテナ（スマホ時は縦並び） */
.p-certifications-cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

/* 独立したカードのスタイル */
.p-certifications-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  background-color: #ffffff;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.p-certifications-card__logo-col {
  width: 100%;
  max-width: 220px; /* 横長の2個一画像に対応するため少し広げました */
  display: flex;
  justify-content: center;
  align-items: center;
}

.p-certifications-card__img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.p-certifications-card__text-col {
  width: 100%;
  text-align: center; /* スマホ時は中央寄せ */
}

.p-certifications-card__title {
  font-size: 1rem;
  font-weight: bold;
  color: #333333;
  margin: 0 0 8px 0;
}

.p-certifications-card__desc {
  font-size: 0.85rem;
  color: #555555;
  line-height: 1.6;
  margin: 0;
  text-align: justify;
}

/* ==============================================================================
 * MEDIA QUERIES
 * ============================================================================== */

/* タブレット・標準PCサイズ（2カラム横並び） */
@media screen and (min-width: 768px) {
  .p-certifications-section {
    padding: 60px 40px;
  }

  /* 横並びに変更 */
  .p-certifications-cards {
    flex-direction: row;
    align-items: stretch; /* 高さを揃える */
    gap: 24px;
  }

  /* カードを均等2分割に */
  .p-certifications-card {
    flex: 1;
    width: calc(50% - 12px); /* 隙間を考慮した2カラム化 */
    flex-direction: column; /* カード内は上画像・下テキスト */
    justify-content: flex-start;
    padding: 30px 24px;
  }

  .p-certifications-card__logo-col {
    height: 100px; /* 画像の高さを揃えて統一感を出す */
    margin-bottom: 10px;
  }

  .p-certifications-card__text-col {
    text-align: left; /* PCでは左寄せ */
  }

  .p-certifications-card__desc {
    font-size: 0.85rem;
  }
}

/* 大型デスクトップサイズ */
@media screen and (min-width: 1024px) {
  .p-certifications-section {
    padding: 70px 40px;
  }
  .p-certifications-cards {
    gap: 30px;
  }
  .p-certifications-card {
    width: calc(50% - 15px);
  }
}
