/* リセットとベーススタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

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

/* メインビジュアル */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, #ff9f0a 0%, #ff3b30 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 2;
    position: relative;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.scroll-indicator span {
    font-size: 1rem;
    opacity: 0.8;
}

.scroll-arrow {
    width: 2px;
    height: 30px;
    background: white;
    position: relative;
    animation: bounce 2s infinite;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -3px;
    width: 8px;
    height: 8px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(45deg);
}

/* ヒーロー背景コラージュ */
.hero-background {
    position: absolute;
    inset: 0;
}

.hero-collage {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 18vh;
    gap: 8px;
    padding: 8px;
    opacity: 0.9;
    /* 文字の可読性を担保 */
    filter: saturate(110%) contrast(95%);
}

.hero-collage .tile {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    transform: translateX(-30px);
    opacity: 0;
    animation: tileFloatUp 1.1s ease-out forwards;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.45) 60%, rgba(0, 0, 0, 0.65) 100%);
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    z-index: 2;
}

@keyframes tileFloatUp {
    0% {
        transform: translateX(-30px);
        opacity: 0;
    }

    60% {
        transform: translateX(0) translateY(-6px);
        opacity: 1;
    }

    100% {
        transform: translateX(0) translateY(0);
        opacity: 1;
    }
}

/* セクション共通スタイル */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #333;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #ff9f0a, #ff3b30);
    border-radius: 2px;
}

/* 概要セクション */
.overview {
    padding: 5rem 0;
    background: #f8f9fa;
}

.overview-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.overview-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.overview-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.stat-item.animate {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: #ec6c00;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: #666;
}

/* グルメ紹介セクション */
.gourmet-showcase {
    padding: 5rem 0;
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #fff;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.filter-btn.active {
    background: linear-gradient(90deg, #ff9f0a, #ff3b30);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 10px 24px rgba(255, 92, 51, 0.3);
}

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

.gourmet-item {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    opacity: 0;
    transform: translateY(50px);
}

/* スクロールアニメーション用のクラス */
.gourmet-item.animate {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* 各アイテムに遅延を設定 */
.gourmet-item:nth-child(1).animate {
    transition-delay: 0.1s;
}

.gourmet-item:nth-child(2).animate {
    transition-delay: 0.2s;
}

.gourmet-item:nth-child(3).animate {
    transition-delay: 0.3s;
}

.gourmet-item:nth-child(4).animate {
    transition-delay: 0.4s;
}

.gourmet-item:nth-child(5).animate {
    transition-delay: 0.5s;
}

.gourmet-item:nth-child(6).animate {
    transition-delay: 0.6s;
}

.gourmet-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.gourmet-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.gourmet-info {
    padding: 1.5rem;
}

.gourmet-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.product-name {
    font-size: 1rem;
    color: #666;
    margin-bottom: 0.8rem;
    font-style: italic;
}

.booth-number {
    display: inline-block;
    background: linear-gradient(90deg, #ff9f0a, #ff3b30);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

/* モーダル */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #333;
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.modal-image {
    position: relative;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px 0 0 20px;
    display: block;
}

/* Carousel controls */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    z-index: 1002;
    transition: background 0.2s ease;
}

.nav-btn:hover {
    background: rgba(0, 0, 0, 0.6);
}

.nav-btn.prev {
    left: 12px;
}

.nav-btn.next {
    right: 12px;
}

.indicators {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 1002;
}

.indicator-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    border: none;
    cursor: pointer;
}

.indicator-dot.active {
    background: #fff;
}

.modal-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #333;
}

.modal-details {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.booth-number,
.region {
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
}

.booth-number {
    background: linear-gradient(90deg, #ff9f0a, #ff3b30);
    color: white;
}

.region {
    background: #f0f0f0;
    color: #666;
}

.description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.modal-details .region {
    background: linear-gradient(135deg, #009FE8, #4fc3f7);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.modal-details .first-time {
    background: linear-gradient(135deg, #e70100, #ff6b6b);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 0.5rem;
    display: none;
}

.modal-details .sales-type {
    background: linear-gradient(135deg, #6fb92c, #8bc34a);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 0.5rem;
    display: none;
}

/* アニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }

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

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

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

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-collage {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 12vh;
    }

    .overview-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .modal-body {
        grid-template-columns: 1fr;
    }

    .modal-image img {
        border-radius: 20px 20px 0 0;
        height: 250px;
    }

    .gourmet-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .container {
        padding: 0 15px;
    }

    .nav-btn {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }
}