@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700;900&family=Montserrat:wght@300;400;600;800&display=swap');

:root {
    --bg-color: #f7f6f2;
    --text-main: #1a1a1a;
    --text-sub: #666666;
    --accent: #b82323;
    --border-color: #e0ded8;
    --card-bg: #ffffff;
}

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

body {
    font-family: 'Montserrat', 'Noto Sans JP', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.8;
    letter-spacing: 0.05em;
}

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

/* Header / Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 48px;
    background-color: rgba(247, 246, 242, 0.9);
    backdrop-filter: blur(8px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo img.custom-logo {
    max-height: 40px;
    width: auto;
}

.logo span {
    color: var(--accent);
    margin-right: 8px;
}

nav.primary-nav ul {
    display: flex;
    list-style: none;
    gap: 28px;
}

nav.primary-nav a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.3s;
}

nav.primary-nav a:hover {
    color: var(--accent);
}

.entry-btn-nav {
    background-color: var(--text-main);
    color: #fff;
    padding: 10px 24px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-decoration: none;
    transition: background-color 0.3s;
}

.entry-btn-nav:hover {
    background-color: var(--accent);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-main);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 0 20px;
    overflow: hidden;
    background-color: #111;
}

/* Hero background slideshow (random images / videos crossfade) */
.hero-slideshow {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(1.08);
    transition: opacity 1.4s ease, transform 6s ease;
    will-change: opacity, transform;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

.hero-slide img,
.hero-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7));
    z-index: 1;
}

.hero-content {
    position: relative;
    max-width: 1000px;
    z-index: 2;
}

.hero-content h1 {
    font-size: clamp(2.8rem, 5vw, 5rem);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
    text-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.hero-content h1 span {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    color: #ff6b6b;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.hero-content p {
    font-size: 1.2rem;
    color: #e5e5e5;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    background-color: var(--accent);
    color: #fff;
    padding: 18px 48px;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.1em;
    font-size: 1rem;
    transition: background-color 0.3s, transform 0.3s;
    box-shadow: 0 4px 15px rgba(184, 35, 35, 0.4);
}

.hero-cta:hover {
    background-color: #d32f2f;
    transform: translateY(-2px);
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 48px;
}

section.site-section {
    border-bottom: 1px solid var(--border-color);
    padding: 100px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.section-title span {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.2em;
    margin-bottom: 8px;
}

/* About / Concept */
.concept-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

.concept-text h3 {
    font-size: 1.8rem;
    line-height: 1.5;
    font-weight: 700;
    margin-bottom: 24px;
}

.concept-text p {
    font-size: 1.05rem;
    color: var(--text-sub);
    margin-bottom: 24px;
}

.stats-box {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 40px;
}

.stat-item {
    margin-bottom: 30px;
}

.stat-item:last-child {
    margin-bottom: 0;
}

.stat-label {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--text-sub);
    text-transform: uppercase;
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-main);
}

/* Categories / Awards */
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.category-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 40px;
    transition: transform 0.3s, border-color 0.3s;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--text-main);
}

.category-card h4 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.category-card .category-subtitle {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-sub);
    display: block;
    margin-top: 4px;
}

.category-card p {
    font-size: 0.95rem;
    color: var(--text-sub);
    margin: 16px 0 24px;
}

.prize {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--accent);
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

/* Judges & Producer shared card style */
.judges-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.judge-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    margin-bottom: 16px;
    filter: grayscale(30%);
}

.judge-card h5 {
    font-size: 1.1rem;
    font-weight: 700;
}

.judge-card p {
    font-size: 0.85rem;
    color: var(--text-sub);
}

.judge-card .judge-role {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

/* Producer card reuses the exact same visual language as .judge-card,
   but uses a flexible column count so 1〜2名でもカード幅いっぱいに広がる */
.producer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.producer-grid .judge-card .btn-profile-link {
    display: inline-block;
    margin-top: 12px;
    background-color: var(--text-main);
    color: #fff;
    padding: 8px 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: background-color 0.3s;
}

.producer-grid .judge-card .btn-profile-link:hover {
    background-color: var(--accent);
}

/* Performers / Teams Section */
.performers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.performer-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: transform 0.3s;
}

.performer-card:hover {
    transform: translateY(-5px);
}

.performer-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.performer-card-body {
    padding: 24px;
}

.performer-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.performer-genre {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: block;
}

.performer-card p {
    font-size: 0.9rem;
    color: var(--text-sub);
    margin-bottom: 16px;
}

/* Section recruit button (見出し直下に配置する募集ボタン) */
.recruit-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--accent);
    color: #fff;
    padding: 12px 32px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-decoration: none;
    margin-top: -32px;
    margin-bottom: 40px;
    box-shadow: 0 4px 12px rgba(184, 35, 35, 0.3);
    transition: background-color 0.3s, transform 0.3s;
}

.recruit-btn:hover {
    background-color: #d32f2f;
    transform: translateY(-2px);
}

/* Marche Exhibitors Section (出店者紹介: 4列×複数段 + ジャンル別タブ切替) */
.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 48px;
}

.filter-tab {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 10px 28px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.filter-tab:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.filter-tab.is-active {
    background-color: var(--text-main);
    border-color: var(--text-main);
    color: #fff;
}

.exhibitors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.exhibitor-card.is-hidden {
    display: none;
}

.exhibitor-card img {
    height: 180px;
}

.exhibitor-card .performer-card-body {
    padding: 18px;
}

.exhibitor-card h4 {
    font-size: 1.05rem;
}

/* House Makers Section (協賛ハウスメーカー ロゴ紹介) */
.house-makers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 40px;
    align-items: center;
    justify-items: center;
}

.house-maker-logo {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.house-maker-logo a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.house-maker-logo img {
    max-height: 90px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(35%);
    opacity: 0.85;
    transition: filter 0.3s, opacity 0.3s, transform 0.3s;
}

.house-maker-logo a:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: translateY(-2px);
}

.house-maker-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-sub);
}

/* Schedule / Timeline */
.timeline {
    border-left: 2px solid var(--border-color);
    padding-left: 30px;
    margin-top: 20px;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -37px;
    top: 6px;
    width: 12px;
    height: 12px;
    background-color: var(--accent);
    border-radius: 50%;
}

.timeline-date {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.1em;
    margin-bottom: 4px;
}

.timeline-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.timeline-desc {
    font-size: 0.95rem;
    color: var(--text-sub);
}

/* Organization & Producer Section */
.org-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.org-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 40px;
}

.org-card h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 10px;
    display: inline-block;
}

.org-detail-table {
    width: 100%;
    margin-top: 16px;
    border-collapse: collapse;
}

.org-detail-table th, .org-detail-table td {
    padding: 12px 0;
    text-align: left;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border-color);
}

.org-detail-table th {
    width: 35%;
    color: var(--text-sub);
    font-weight: 600;
}

.org-detail-table td {
    color: var(--text-main);
}

.producer-quote {
    font-size: 0.9rem;
    color: var(--text-sub);
    margin-top: 24px;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

/* SNS Links Section */
.sns-grid {
    display: flex;
    gap: 16px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.sns-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 12px 24px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s;
}

.sns-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

/* Access & Venue Section */
.access-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.access-info h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.access-info p {
    color: var(--text-sub);
    margin-bottom: 20px;
    font-size: 1rem;
}

.access-map-placeholder,
.access-map-embed {
    width: 100%;
    height: 350px;
    background-color: #e5e5df;
    border: 1px solid var(--border-color);
}

.access-map-embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.access-map-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-sub);
    font-weight: 600;
    text-align: center;
    padding: 20px;
}

/* Footer */
footer.site-footer {
    background-color: #111;
    color: #fff;
    padding: 80px 48px;
    text-align: center;
}

footer.site-footer p {
    font-size: 0.85rem;
    color: #888;
    letter-spacing: 0.1em;
}

@media (max-width: 1100px) {
    .exhibitors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .concept-grid, .category-grid, .judges-grid, .producer-grid, .performers-grid, .org-grid, .access-grid, .exhibitors-grid {
        grid-template-columns: 1fr;
    }
    header {
        padding: 20px 24px;
    }
    .menu-toggle {
        display: flex;
    }
    nav.primary-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-color);
        border-bottom: 1px solid var(--border-color);
        padding: 20px 24px;
    }
    nav.primary-nav.is-open {
        display: block;
    }
    nav.primary-nav ul {
        flex-direction: column;
        gap: 16px;
    }
}
