:root {
    --color-primary: #2F4F2F;
    /* Deep Kakinoha Green */
    --color-secondary: #F9F7F2;
    /* Sushi Rice White */
    --color-accent: #D4AF37;
    /* Gold */
    --color-highlight: #E35D25;
    /* Persimmon Orange */
    --color-text: #333333;
    --color-text-light: #666666;
    --font-heading: 'Shippori Mincho', serif;
    --font-body: 'Noto Sans JP', sans-serif;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-secondary);
    color: var(--color-text);
    line-height: 1.8;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.4;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section {
    padding: var(--spacing-lg) 0;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: var(--spacing-md);
    color: var(--color-primary);
    position: relative;
    display: block;
    width: 100%;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background-color: var(--color-accent);
    margin: 10px auto 0;
}

.section-subtitle {
    text-align: center;
    margin-top: -1.5rem;
    margin-bottom: var(--spacing-lg);
    color: var(--color-text-light);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(249, 247, 242, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.2rem;
    color: var(--color-primary);
    font-weight: 800;
}

.nav-menu ul {
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-primary);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    position: absolute;
    transition: all 0.3s ease;
}

.mobile-menu-toggle span:nth-child(1) {
    top: 0;
}

.mobile-menu-toggle span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.mobile-menu-toggle span:nth-child(3) {
    bottom: 0;
}

/* Hero */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-bg img.active {
    opacity: 1;
}

.hero-content {
    padding: 2rem;
    animation: fadeIn Up 1s ease-out;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-title {
    margin-bottom: 2rem;
    /* text-shadow removed as it doesn't apply to img correctly, using filter on img instead */
    width: 100%;
    display: flex;
    justify-content: center;
}

.hero-logo {
    max-width: 600px;
    width: 90%;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    margin-left: 40px;
    /* Shift right to align leaf center with section below */
}

.hero-date {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.hero-date .day {
    font-size: 0.8rem;
    margin-left: 0.3rem;
    font-weight: 300;
}

.hero-location {
    font-size: 1rem;
    opacity: 0.9;
}

/* Intro */
.intro-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.intro-logo img {
    max-width: 100px;
    height: auto;
    margin: 0 auto;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.1));
}

.intro-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: justify;
}

.intro-text p {
    margin-bottom: 1.5rem;
}

/* Highlights */
.highlights {
    background-color: #fff;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.highlight-card {
    background-color: var(--color-secondary);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.card-icon-img {
    height: 100px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.card-icon-img img {
    height: 100%;
    width: auto;
    object-fit: cover;
    mix-blend-mode: multiply;
}

.highlight-card h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

/* Brands */
.brand-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.brand-list li {
    background-color: #fff;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid #eee;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    transition: border-color 0.3s ease;
}

.brand-list li:hover {
    border-color: var(--color-primary);
}

.brand-list .note {
    display: block;
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-top: 0.5rem;
    font-family: var(--font-body);
}

/* Timetable */
.timetable {
    background-color: var(--color-primary);
    color: #fff;
}

.timetable .section-title {
    color: #fff;
}

.timetable .section-title::after {
    background-color: var(--color-secondary);
}

.timetable-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.day-schedule h4 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 0.5rem;
}

.day-schedule ul li {
    display: flex;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.day-schedule .time {
    width: 80px;
    flex-shrink: 0;
    font-weight: 700;
    color: var(--color-accent);
}

.day-schedule .event small {
    display: block;
    margin-top: 0.3rem;
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Overview */
.overview-list {
    max-width: 800px;
    margin: 0 auto;
    border-top: 1px solid #ddd;
}

.overview-item {
    display: flex;
    border-bottom: 1px solid #ddd;
    padding: 1.5rem 0;
}

.overview-item dt {
    width: 120px;
    font-weight: 700;
    flex-shrink: 0;
}

.overview-item dd {
    flex-grow: 1;
}

/* Access */
.access-content {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.access-info h4 {
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

.access-info ul li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.access-info ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-highlight);
}

/* Footer */
.footer {
    background-color: #222;
    color: #aaa;
    padding: 4rem 0 2rem;
    text-align: center;
}

.footer-contact {
    margin-bottom: 3rem;
}

.footer-contact h4 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-contact p {
    margin-bottom: 0.5rem;
}

.copyright {
    font-size: 0.8rem;
    border-top: 1px solid #444;
    padding-top: 2rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .header-inner {
        width: 100%;
        padding: 0 1rem;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--color-secondary);
        padding: 5rem 2rem;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 1.5rem;
    }

    .hero-title-main {
        font-size: 2.5rem;
    }

    .overview-item {
        flex-direction: column;
    }

    .overview-item dt {
        margin-bottom: 0.5rem;
        color: var(--color-primary);
    }
}

/* Brands */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.brand-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.3s ease;
}

.brand-item:hover {
    transform: translateY(-5px);
}

.brand-logo-box {
    width: 100%;
    aspect-ratio: 3/2;
    background-color: #fff;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    padding: 1rem;
    border-radius: 8px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.brand-logo-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.brand-logo-box .hover-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Or cover, depending on preference. Contain is safer for logos/products */
    opacity: 0;
    padding: 1rem;
    /* Match padding of container */
    transform: scale(2);
}

.brand-item:hover .main-img {
    opacity: 0;
}

.brand-item:hover .hover-img {
    opacity: 1;
}

.brand-logo-box.text-only {
    background-color: #f9f9f9;
    color: #555;
    font-weight: bold;
    font-family: var(--font-serif);
    text-align: center;
    font-size: 0.9rem;
}

.brand-name {
    font-size: 0.9rem;
    font-weight: bold;
    text-align: center;
}

/* Sponsors */
.sponsors {
    background-color: #fff;
}

.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.sponsor-item {
    text-align: center;
}

.sponsor-logo-box {
    width: 100%;
    height: 150px;
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sponsor-logo-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.sponsor-logo-box.text-logo {
    background-color: #f9f9f9;
    color: #555;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
}

.sponsor-name {
    font-size: 0.9rem;
    color: var(--color-text-light);
    font-weight: 500;
}

.hero-actions {
    margin-top: 2rem;
}

.btn-flyer {
    display: inline-block;
    padding: 0.7rem 1.4rem;
    /* Reduced by ~30% */
    font-size: 0.9rem;
    /* Slightly smaller text */
    background-color: var(--color-highlight);
    color: #fff;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(227, 93, 37, 0.4);
}

.btn-flyer:hover {
    background-color: #d14d1d;
    transform: translateY(-2px);
    opacity: 1;
    /* Override general a:hover opacity */
}