/**
 * School カード前払い: 使えるカードブランドのアイコン (2026-10-02)
 * 支払方法の欄の下に luna-card-payment.js が差し込む。カード決済が有効なときだけ読み込む。
 * 振込を選んでいる間は控えめに、カードを選ぶとはっきり見せる (.is-active)。
 */
.luna-card-brands {
  margin: 0.4rem 0 1.2rem;
  padding: 0.8rem 1rem 0.9rem;
  border: 1px solid #e6ddd5;
  border-radius: 8px;
  background: #fbf8f5;
  opacity: 0.6;
  transition: opacity 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.luna-card-brands.is-active {
  opacity: 1;
  border-color: #c9b29f;
  background: #fff;
}
.luna-card-brands__caption {
  margin: 0 0 0.6rem;
  font-size: 0.8rem;
  line-height: 1.5;
  letter-spacing: 0.05em;
  color: #7a6a60;
}
/* 6 枚を 1 行に収める (狭い画面では各列が 48px から縮む。ブランドを絞ったときは左詰め) */
.luna-card-brands__list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 48px));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.luna-card-brands__item {
  margin: 0;
  padding: 0;
  line-height: 0;
}
.luna-card-brands__item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 750 / 471;
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
}
@media (max-width: 480px) {
  .luna-card-brands {
    padding: 0.7rem 0.8rem 0.8rem;
  }
  .luna-card-brands__list {
    gap: 6px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .luna-card-brands {
    transition: none;
  }
}
