#main, #contents, body {
    background-color: #fff !important;
    color: #333;
}

.hero-section {
    width: 100%;
    height: 60vh;
    min-height: 300px;
    max-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 40px;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15);
}

.hero-title {
    position: relative;
    z-index: 2;
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: clamp(1.5rem, 5vw, 3rem);
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-style: italic;
    color: #fff;
    text-shadow: 0 4px 20px rgba(0,0,0,0.6);
    text-align: center; /* 追加：スマホで改行された時のために中央揃え */
}

/* ギャラリーレイアウト（タイル状に敷き詰め） */
.gallery-container {
    padding: 0 20px 100px;
    max-width: 1600px; 
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    list-style: none;
    padding: 0;
}

/* PC・タブレットサイズ */
@media (max-width: 1024px) { 
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* スマホサイズ（600px以下）の調整 */
@media (max-width: 600px) { 
    /* メイン画像を横長に表示 */
    .hero-section {
        height: 45vw;
        min-height: 180px;
    }
    /* ギャラリーを2列に */
    .gallery-grid { 
        grid-template-columns: repeat(2, 1fr);
        gap: 10px; /* 2列用に隙間を少し狭く */
    }
    /* ギャラリーの余白を少し詰める */
    .gallery-container {
        padding: 0 10px 60px;
    }
}

.gallery-item {
    width: 100%;
    background: #f8f8f8;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.gallery-item img {
    width: 100%;        
    aspect-ratio: 3 / 2; 
    object-fit: contain; 
    display: block;
    transition: transform 0.8s ease;
}

.gallery-item:hover img {
    transform: scale(1.06);
}

/* =========================================
   スポンサーエリア（16列）の設定
========================================= */
.sponsor-section {
    max-width: 1600px;
    margin: 0 auto 80px;
    padding: 0 20px;
}
.sponsor-section .section-title {
    text-align: center;
    border-bottom: none;
    margin-bottom: 5px;
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 24px;
    font-weight: bold;
}
.sponsor-section .section-note {
    text-align: center;
    margin-bottom: 20px;
    font-size: 12px;
    color: #666;
}

/* 16列グリッド */
.sponsor-grid.grid-16 {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 10px;
}

/* 画像の設定（独立して見栄えを整える） */
.sponsor-grid.grid-16 a img {
    width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0;
    display: block;
    transition: opacity 0.3s ease;
}

/* ホバー時に少し明るくする */
.sponsor-grid.grid-16 a:hover img {
    opacity: 0.7;
}

/* 画面幅に合わせた列数の自動調整 */
@media (max-width: 1024px) { 
    .sponsor-grid.grid-16 { grid-template-columns: repeat(8, 1fr); gap: 8px; } 
}
@media (max-width: 600px) { 
    .sponsor-grid.grid-16 { grid-template-columns: repeat(4, 1fr); gap: 5px; } 
}