/* スポンサーセクションのスタイル */
.sponsor {
    padding: 6rem 2rem;
    background-color: #EFFF2A;
    position: relative;
}

.sponsor-container {
    max-width: 1200px;
    margin: 0 auto;
}

.sponsor-section {
    margin-bottom: 5rem;
}

.sponsor-section:last-child {
    margin-bottom: 0;
}

.sponsor-sub-heading {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 2rem;
    color: #000;
    position: relative;
}

.sponsor-sub-heading::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: #EFFF2A;
    margin: 1rem auto;
}

.sponsor-heading {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 3rem;
    position: relative;
    text-align: center;
}

.sponsor-heading::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #EFFF2A;
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
}

.sponsor-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 0 auto;
    justify-content: center;
}

.sponsor-item {
    background-color: #fff;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    width: 100%;
    max-width: 180px;
}

.sponsor-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.sponsor-image img {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    margin: 0 auto;
    display: block;
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
    .sponsor {
        padding: 4rem 1.5rem;
    }
    
    .sponsor-grid {
        gap: 1.5rem;
    }
    
    .sponsor-item {
        flex: 0 0 calc(33.333% - 1rem);
        max-width: calc(33.333% - 1rem);
    }
    
    .sponsor-heading {
        font-size: 3rem;
        margin-bottom:3rem;
    }
    .sponsor-sub-heading {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .sponsor {
        padding: 3rem 1rem;
    }
    
    .sponsor-grid {
        gap: 1rem;
    }
    
    .sponsor-item {
        flex: 0 0 calc(50% - 0.5rem);
        max-width: calc(50% - 0.5rem);
        padding: 1rem;
        min-height: 120px;
    }
    
    .sponsor-heading {
        font-size: 3rem;
        margin-bottom: 3rem;
    }
    
    .sponsor-sub-heading {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .sponsor-section {
        margin-bottom: 3rem;
    }
}

@media (max-width: 480px) {
    .sponsor {
        padding: 2rem 0.8rem;
    }
    
    .sponsor-grid {
        gap: 0.8rem;
    }
    
    .sponsor-item {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 0.8rem;
        min-height: 100px;
    }
    
    .sponsor-heading {
        font-size: 3rem;
        margin-bottom: 3rem;
    }
    .sponsor-sub-heading {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .sponsor-section {
        margin-bottom: 2.5rem;
    }
}
