/* Sponsor List Styles */
.sponsor-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
}

.sponsor-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.sponsor-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    width: 100%;
    overflow: hidden;
    margin-bottom: 10px;
}

.sponsor-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.sponsor-title {
    font-size: 1.7em; /* h2のサイズを調整 */
    margin-bottom: 10px;
    font-weight: bold !important;
}

.sponsor-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* space-betweenで上下に分散 */
}

.sponsor-links {
  margin-top: 15px; /* 上の要素との間にスペースを確保 */
  margin-bottom: 15px;
  display: flex;
  justify-content: center;
  gap: 15px;
  align-items: center;
}

.sponsor-links .link-icon {
  display: inline-block;
  transition: opacity 0.2s;
}

.sponsor-links .link-icon:hover {
  opacity: 0.7;
}

.sponsor-links .icon-website img {
  width: 40px;
  height: 40px;
}

.sponsor-links .icon-x img {
  width: 30px;
  height: 30px;
}

.sponsor-description {
    margin-top: auto; /* 残りのスペースをすべてマージンとして上にとることで下揃えに */
}

.sponsor-description p {
    font-size: 1.4rem;
    line-height: 1.6;
    text-align: left;
    margin: 0;
}

/* レスポンシブ対応 */
@media (max-width: 900px) {
    .sponsor-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .sponsor-list {
        grid-template-columns: repeat(1, 1fr);
    }
}