/* =========================================================
   アンバサダー紹介ページ（ambassadors.html）だけで読む CSS（2026-10-23）
   クラスは tools/gen_ambassadors.mjs が出す。色はサイトの変数（style.css の :root）を使う。
   ========================================================= */

.amb {
  max-width: 1080px;
}

.amb-block {
  margin-bottom: 56px;
}

/* 見出し：上に小さな英字、下に日本語 */
.amb-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin: 0 0 12px;
  font-family: var(--font-jp);
  font-weight: 800;
  font-size: clamp(20px, 2.4vw, 28px);
  color: var(--text-on-light);
  text-align: center;
}

.amb-heading__en {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--color-pink);
}

.amb-lead {
  margin: 0 0 24px;
  text-align: center;
  color: var(--text-on-light-sub);
}

/* 一覧：PC は 4〜5 列、スマホは 2 列 */
.amb-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 20px;
}

/* 1人のカード：白地に、ピンクから青のグラデーションの縁 */
.amb-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 12px 16px;
  text-align: center;
  border: 2px solid transparent;
  border-radius: 16px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, var(--color-pink), var(--color-blue)) border-box;
  box-shadow: 0 6px 18px rgba(13, 78, 163, 0.10);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.amb-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(13, 78, 163, 0.18);
}

/* 全身像の枠：縦長の枠に、絵柄を切らずに収める */
.amb-card__img {
  width: 100%;
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  border-radius: 12px;
  background: radial-gradient(circle at 50% 35%, #fff 0%, #fde6f1 55%, #ecdcf7 100%);
}

.amb-card__img img {
  width: auto;
  height: auto;
  max-width: 92%;
  max-height: 94%;
  object-fit: contain;
}

.amb-card__name {
  margin: 12px 0 10px;
  font-family: var(--font-jp);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-on-light);
  overflow-wrap: anywhere;
}

.amb-card__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: auto 0 0;
}

.amb-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.amb-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.amb-link:hover {
  opacity: 0.85;
}

.amb-link--yt {
  background: #e1251b;
}

.amb-link--x {
  background: #111;
}

/* グローバルアンバサダー：一覧の下に、ほかのカードと同じ大きさで1枚（2026-10-23 代表）。
   一覧のカードは PC で 190px（minmax の最小）なので、それに合わせる */
.amb-grid--global {
  grid-template-columns: minmax(0, 190px);
  justify-content: center;
}

/* ステージのページへの案内 */
.amb-stage {
  margin-top: 8px;
  text-align: center;
  color: var(--text-on-light);
}

.amb-stage__actions {
  margin-top: 16px;
}

@media (max-width: 480px) {
  .amb-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .amb-grid--global {
    grid-template-columns: minmax(0, 165px);
  }

  .amb-card {
    padding: 10px 8px 12px;
  }

  .amb-card__name {
    font-size: 14px;
  }

  .amb-card__links {
    gap: 6px;
  }

  .amb-link {
    gap: 4px;
    padding: 5px 8px;
    font-size: 13px;
  }

  .amb-link svg {
    width: 14px;
    height: 14px;
  }
}
