.top-container {
    max-width: 95%;
    margin: 0 auto;
}

div.top-container > section {
    margin: 60px 0;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    backdrop-filter: blur(5px);
}

/* Common h2 styles for all sections */
div.top-container > section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--nature-blue);
    font-size: 2.2em;
    position: relative;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

div.top-container > section h2::after {
    content: '';
    display: block;
    width: 0;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    margin: 15px auto;
    border-radius: 2px;
    transition: width 0.8s ease-out;
    transition-delay: 0.3s;
}

div.top-container > section h2.fade-in-section::after {
    width: 80px;
}

div.top-container > section h2:hover {
    transform: translateY(-2px);
}

div.top-container > section h2:hover::after {
    width: 120px;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    div.top-container > section h2 {
        font-size: 1.5em;
        padding: 10px 0;
    }
}

div.top-container > section:nth-of-type(3n+1) {
    background-color: var(--bg-color-1);
}

div.top-container > section:nth-of-type(3n+2) {
    background-color: var(--bg-color-2);
}

div.top-container > section:nth-of-type(3n) {
    background-color: var(--bg-color-3);
}

@media (max-width: 768px) {
    .top-container {
        max-width: 100%;
        padding: 10px;
    }
    div.top-container > section {
        padding: 20px;
        margin: 30px 0;
    }
}

/* Main Visual */
.main-visual {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    text-align: center;
    max-width: 90%;
    margin: 2rem auto;
    margin-top: 20px;
    border-radius: 10px;
}

.main-visual picture {
    width: 100%;
    height: 100%;
    display: block;
}

.main-visual img,
.responsive-banner {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 1023px) {
    .main-visual {
        height: 100%;
        padding: 0;
    }
}

@media (max-width: 768px) {
    .main-visual {
        height: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
        border-radius: 0;
    }
}

.top-button-container {
    text-align: center;
    margin-top: 2rem;
}

/* Highlights Slideshow */
#highlights-slideshow.highlights-section.section  {
    width: 90%;
    margin: 0 auto;
    padding: 60px 0;
    text-align: center;
    background-color: transparent;
    box-shadow: none;
}

.highlights-section h2 {
    font-size: 2.4em;
    color: var(--primary-color);
    margin-bottom: 40px;
}

.slideshow-container {
    max-width: 90%;
    position: relative;
    margin: auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    aspect-ratio: 16/9;
}

@media (max-width: 768px) {
    .slideshow-container {
        border-radius: 10px;
        margin: 10px auto;
        aspect-ratio: 3/4;
        max-width: 100%;
    }
}

.slide {
    display: none;
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.slide.fade {
    animation: fadeEffect 0.5s ease-in-out;
}

/* Ken Burns effect for active slide */
.slide.active img {
    animation: kenBurns 8s ease-out forwards;
}

@keyframes kenBurns {
    0% {
        transform: scale(1) translate(0);
    }
    100% {
        transform: scale(1.1) translate(-2%, -2%);
    }
}

@keyframes fadeEffect {
    from {
        opacity: 0.4;
    }
    to {
        opacity: 1;
    }
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.slide-content h3 {
    font-size: 2em;
    margin-bottom: 15px;
    color: white;
    text-align: left;
}

.slide-content p {
    color: white;
    font-size: 1.1em;
    line-height: 1.6;
    margin: 0;
    text-align: left;
}

/* Navigation Arrows */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 12px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.3s ease;
    border-radius: 50%;
    user-select: none;
    background: rgba(0, 0, 0, 0.3);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 2;
}

.next {
    right: 10px;
}

.prev {
    left: 10px;
}

.prev:hover, .next:hover {
    background: rgba(0, 0, 0, 0.6);
}

/* Dots */
.dots-container {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 2;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.dot.active, .dot:hover {
    background-color: white;
}

/* Fade Animation */
.fade {
    animation-name: fade;
    animation-duration: 1s;
}

@keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}

@media (max-width: 1023px) {
    .slideshow-container {
        aspect-ratio: auto;
    }
}
/* Mobile Responsive */
@media (max-width: 767px) {
    .slide-content {
        padding: 30px 20px;
    }

    .slide-content h3 {
        font-size: 1.6em;
        margin-bottom: 15px;
        line-height: 1.4;
    }

    .slide-content p {
        font-size: 1em;
        line-height: 1.6;
    }

    /* ナビゲーション矢印を非表示に */
    .prev, .next {
        display: none;
    }

    /* ドットインジケーターの調整 */
    .dots-container {
        bottom: 15px;
        right: 15px;
    }

    .dot {
        height: 8px;
        width: 8px;
        margin: 0 4px;
        background-color: rgba(255, 255, 255, 0.6);
    }

    .dot.active {
        background-color: white;
        transform: scale(1.2);
    }

    .slideshow-container {
        aspect-ratio: 3/4;
    }
}

/* Enhanced Schedule Table Styles */
.schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px auto;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    max-width: 600px;
}

.schedule-table thead {
    background: linear-gradient(135deg, var(--nature-blue), var(--primary-color));
}

.schedule-table th {
    padding: 20px 15px;
    text-align: center;
    color: white;
    font-weight: 600;
    font-size: 1.1em;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.schedule-table tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f4f8;
}

.schedule-table tbody tr:hover {
    background-color: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.schedule-table tbody tr:nth-child(even) {
    background-color: #fafbfc;
}

.schedule-table tbody tr:nth-child(even):hover {
    background-color: #f1f5f9;
}

.schedule-table td {
    padding: 18px 15px;
    text-align: center;
    font-size: 1.1em;
    font-weight: 500;
    color: var(--text-color);
    border: none;
}

.schedule-table tbody tr:last-child {
    border-bottom: none;
}

.schedule-table tbody tr:last-child td {
    font-weight: 600;
    color: var(--primary-color);
    background-color: #fef7f0;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .schedule-table {
        margin: 20px auto;
        font-size: 0.9em;
        border-radius: 8px;
        max-width: 100%;
    }
    
    .schedule-table th {
        padding: 15px 10px;
        font-size: 1em;
        letter-spacing: 0.3px;
    }
    
    .schedule-table td {
        padding: 15px 10px;
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .schedule-table {
        margin: 15px auto;
        font-size: 0.85em;
    }
    
    .schedule-table th {
        padding: 12px 8px;
        font-size: 0.9em;
    }
    
    .schedule-table td {
        padding: 12px 8px;
        font-size: 0.9em;
    }
    
    /* Make the table more compact on very small screens */
    .schedule-table th,
    .schedule-table td {
        white-space: nowrap;
    }
}

/* Tablet Styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .schedule-table {
        max-width: 700px;
    }
    
    .schedule-table th {
        padding: 18px 20px;
        font-size: 1.15em;
    }
    
    .schedule-table td {
        padding: 16px 20px;
        font-size: 1.1em;
    }
}

/* Large Desktop Styles */
@media (min-width: 1200px) {
    .schedule-table {
        max-width: 800px;
    }
    
    .schedule-table th {
        padding: 25px 30px;
        font-size: 1.2em;
    }
    
    .schedule-table td {
        padding: 20px 30px;
        font-size: 1.15em;
    }
}

/* Parking Map Image Styles */
.parking-map-image {
    border: 3px solid #2b6cb0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(43, 108, 176, 0.3);
    transition: all 0.3s ease;
    max-width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .parking-map-image {
        width: 100%;
        height: auto;
        border-width: 2px;
    }
}

/* Special Thanks Section */
.special-thanks-section {
    text-align: center;
}

.special-thanks-section h4 {
    color: var(--nature-blue);
    font-size: 1.5em;
    margin: 40px 0 30px;
    font-weight: 600;
}

.special-thanks-section .note {
    font-size: 0.9em;
    color: #666;
    margin-top: 40px;
    font-style: italic;
}

/* Logo Grid Styles */
.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    margin: 30px auto;
    padding: 0;
}

.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    min-height: 120px;
}

.logo-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.logo-item img {
    max-width: 100%;
    height: 120px;
    width: 400px;
    object-fit: contain;
    transition: opacity 0.3s ease;
    display: block;
    margin: 0 auto;
}

.logo-item a:hover img {
    opacity: 0.8;
}

/* Special Cooperation Grid - 2 items */
.special-cooperation-grid {
    width: 700px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Cooperation Grid - 3 items */
.cooperation-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}



/* Endorsement section text styling */
.logo-item {
    justify-content: center;
}

.logo-item p {
    color: var(--text-color);
    text-align: center;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .special-thanks-section h4 {
        font-size: 1.2em;
        margin: 30px 0 20px;
    }

    .logo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin: 20px auto;
        padding: 0;
    }

    .logo-item {
        padding: 15px;
        min-height: 80px;
    }

    .logo-item img {
        height: 80px;
        max-width: 100%;
    }

    .special-cooperation-grid {
        width: 100%;
    }

    .cooperation-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .special-thanks-section .note {
        font-size: 0.8em;
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .logo-grid {
        gap: 15px;
    }

    .logo-item {
        padding: 12px;
        min-height: 60px;
    }

    .logo-item img {
        height: 60px;
        max-width: 100%;
    }
}

/* Link to terms */
.special-thanks-section > div:last-child {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.special-thanks-section > div:last-child a {
    color: var(--nature-blue);
    text-decoration: none;
    font-size: 0.95em;
    transition: color 0.3s ease;
}

.special-thanks-section > div:last-child a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Image Modal Styles */
.image-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.image-modal-content {
    position: relative;
    margin: 2% auto;
    padding: 0;
    width: 95%;
    height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-modal-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 3001;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.image-modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Mobile responsive for image modal */
@media (max-width: 768px) {
    .image-modal-content {
        width: 98%;
        height: 95%;
        margin: 1% auto;
    }
    
    .image-modal-close {
        top: 10px;
        right: 15px;
        font-size: 30px;
        width: 40px;
        height: 40px;
    }
}

/* Event Ended Notice Styles */
.event-ended-notice {
    background-color: #9B2226;
    color: white;
    text-align: center;
    padding: 40px 20px;
    margin: 0;
    width: 100%;
}

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

.event-ended-notice h2 {
    margin: 0;
    font-size: 2.2em;
    font-weight: bold;
    line-height: 1.4;
    margin-bottom: 20px;
}

.event-ended-notice p {
    margin: 0;
    font-size: 1.3em;
    opacity: 0.95;
    line-height: 1.8;
}

/* Responsive styles for Event Ended Notice */
@media (max-width: 768px) {
    .event-ended-notice {
        padding: 30px 15px;
    }
    
    .event-ended-notice h2 {
        font-size: 1.6em;
        margin-bottom: 15px;
    }
    
    .event-ended-notice p {
        font-size: 1.1em;
        line-height: 1.7;
    }
}

@media (max-width: 480px) {
    .event-ended-notice {
        padding: 25px 10px;
    }
    
    .event-ended-notice h2 {
        font-size: 1.4em;
        margin-bottom: 12px;
    }
    
    .event-ended-notice p {
        font-size: 1em;
        line-height: 1.6;
    }
}
