/* 全体のスタイル */
:root {
    --primary-color: #e83a5c;
    --secondary-color: #33a3dc;
    --accent-color: #f8b500;
    --text-color: #333;
    --light-gray: #f6f6f6;
    --dark-gray: #666;
    --white: #ffffff;
    --black: #000000;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'M PLUS Rounded 1c', 'Kosugi Maru', 'Noto Sans JP', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

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

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    opacity: 0.8;
}

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

.section {
    padding: 80px 0;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    font-family: 'M PLUS Rounded 1c', sans-serif;
    letter-spacing: 0.05em;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 15px auto 0;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #c93350;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

.time-place {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.time-place p {
    margin: 10px 0;
}

.time-place i {
    color: var(--primary-color);
    margin-right: 8px;
}

/* ヘッダー */
.header {
    position: fixed;
    top: -100px;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
    transition: all 0.5s ease;
    backdrop-filter: blur(10px);
}

.header-visible {
    top: 0;
}

.header-scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-flags {
    height: 15px;
    width: 100%;
    background-image: url('../images/flags.png');
    background-repeat: repeat-x;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    padding: 0 30px;
}

.logo {
    width: 180px;
}

.nav-list {
    display: flex;
    list-style: none;
}

.nav-list li {
    margin-left: 25px;
}

.nav-list a {
    font-weight: 500;
    color: var(--text-color);
    position: relative;
}

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

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


.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--text-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* メインビジュアル */
.main-visual {
    height: 100vh;
    min-height: 700px;
    background-image: url('../images/main-visual.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--black);
    padding: 0 20px;
    position: relative;
    overflow: hidden;
}


.main-visual-inner {
    position: relative;
    z-index: 2; /* オーバーレイよりも上に表示 */
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 80px 20px;
}

.main-title {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-family: 'Montserrat', sans-serif;
    letter-spacing: -1px;
}

.main-subtitle {
    font-size: 1.6rem;
    margin-bottom: 30px;
    color: var(--black);
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
    font-weight: 700;
    font-family: 'M PLUS Rounded 1c', sans-serif;
    letter-spacing: 0.05em;
}

.main-logo {
    margin-bottom: 30px;
}

.main-logo img {
    max-width: 1000px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.15));
    /* animation: logoFloat 3s ease-in-out infinite; 削除 */
}

.event-info {
    margin-bottom: 30px;
}

.date {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
}

.date span {
    font-size: 1.2rem;
    margin-left: 5px;
    color: var(--accent-color);
}

.place, .admission {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.countdown {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.countdown-item {
    text-align: center;
    margin: 0 10px;
    min-width: 80px;
}

.countdown-item span {
    display: block;
}

.countdown-item span:first-child {
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 181, 0, 0.9) 100%);
    color: var(--primary-color);
    border-radius: 15px;
    padding: 15px 5px;
    font-family: 'M PLUS Rounded 1c', sans-serif;
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.15),
        0 0 0 3px rgba(248, 181, 0, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(248, 181, 0, 0.6);
    display: block;
    position: relative;
}

.countdown-item span:first-child::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color), var(--secondary-color));
    border-radius: 20px;
    z-index: -1;
    opacity: 0.3;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        opacity: 0.3;
        transform: scale(1);
    }
    to {
        opacity: 0.6;
        transform: scale(1.02);
    }
}

.countdown-item .label {
    font-size: 1rem;
    margin-top: 8px;
    color: var(--black);
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
    font-weight: 700;
    font-family: 'M PLUS Rounded 1c', sans-serif;
    letter-spacing: 0.1em;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


/* 紙吹雪アニメーション */
/* 基本の紙吹雪スタイル */
.confetti {
    position: fixed;
    width: 12px;
    height: 12px;
    background-color: var(--primary-color);
    opacity: 0.8;
    z-index: 5;
    pointer-events: none;
    will-change: transform;
}

/* 紙吹雪の形状バリエーション */
.confetti.round {
    border-radius: 50%;
}

.confetti.square {
    border-radius: 2px;
}

.confetti.oval {
    border-radius: 50%;
    width: 8px;
    height: 16px;
}

/* 初期爆発アニメーション（中央から放射状） */
.confetti.burst {
    animation: burstExplosion 6s ease-out forwards;
}

/* 継続落下アニメーション（上からひらひら） */
.confetti.falling {
    animation: gentleFalling 6s linear infinite;
}

/* 爆発アニメーション */
@keyframes burstExplosion {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(0);
        opacity: 1;
    }
    0% {
        transform: translate(var(--dx), var(--dy)) rotate(280deg) scale(1.2);
        opacity: 1;
    }
    100% {
        transform: translate(calc(var(--dx) * 8), calc(var(--dy) * 8 + 100px)) rotate(720deg) scale(0.3);
        opacity: 0;
    }
}

/* 継続落下アニメーション */
@keyframes gentleFalling {
    0% {
        transform: translateX(0) translateY(-100px) rotate(0deg);
        opacity: 0.8;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateX(var(--swing)) translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .confetti {
        width: 10px;
        height: 10px;
    }
    
    .confetti.oval {
        width: 6px;
        height: 12px;
    }
}

@media (max-width: 576px) {
    .confetti {
        width: 8px;
        height: 8px;
    }
    
    .confetti.oval {
        width: 5px;
        height: 10px;
    }
}

/* イベント概要 */
.about-section {
    background-color: var(--white);
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 50px;
    align-items: center;
}

.about-text {
    flex: 1;
    min-width: 300px;
    padding-right: 30px;
}

.about-image {
    flex: 1;
    min-width: 300px;
}

.event-summary {
    margin-bottom: 30px;
}

.event-summary dl {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.event-summary dt {
    width: 120px;
    font-weight: 700;
    margin-bottom: 10px;
}

.event-summary dd {
    width: calc(100% - 120px);
    margin-bottom: 10px;
}

.concept h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.theme-text {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.6;
}

.schedule-summary h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

.timeline {
    list-style: none;
    margin-bottom: 30px;
    position: relative;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 100px;
    height: 100%;
    width: 2px;
    background-color: var(--primary-color);
    opacity: 0.3;
}

.timeline li {
    position: relative;
    margin-bottom: 15px;
    padding-left: 130px;
}

.timeline li .time {
    position: absolute;
    left: 0;
    width: 90px;
    font-weight: 700;
    color: var(--primary-color);
}

.schedule-summary .btn {
    display: block;
    max-width: 300px;
    margin: 0 auto;
}

/* コンテンツ紹介 */
.content-overview {
    background-color: var(--light-gray);
    padding: 80px 0;
}

.content-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.content-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    width: calc(33.333% - 20px);
    min-width: 300px;
    transition: transform 0.3s ease;
}

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

.content-image {
    height: 200px;
    overflow: hidden;
}

.content-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.content-card:hover .content-image img {
    transform: scale(1.05);
}

.content-info {
    padding: 20px;
}

.content-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.content-info .time {
    font-weight: 600;
    margin-bottom: 15px;
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    background-color: var(--light-gray);
}

.content-info p {
    margin-bottom: 20px;
}

.content-info .btn {
    display: block;
    text-align: center;
}

/* お知らせセクション */
.news-section {
    padding: 80px 0;
    background-color: var(--white);
}

.news-list {
    max-width: 800px;
    margin: 0 auto 40px;
}

.news-item {
    display: flex;
    border-bottom: 1px solid #eee;
    padding: 20px 0;
}

.news-date {
    width: 120px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.news-content {
    flex: 1;
}

.news-content h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.banner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.banner img {
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.banner img:hover {
    transform: scale(1.02);
}

/* たかさごお祭り横丁 */
.matsuri-section {
    background-color: var(--light-gray);
}

.matsuri-map {
    margin-bottom: 40px;
    text-align: center;
}

.booth-categories {
    margin-bottom: 50px;
}

.booth-category {
    margin-bottom: 40px;
}

.booth-category h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    border-left: 5px solid var(--primary-color);
    padding-left: 15px;
}

.booth-info {
    display: flex;
    flex-wrap: wrap;
}

.booth-image {
    flex: 1;
    min-width: 300px;
}

.booth-text {
    flex: 2;
    min-width: 300px;
    padding: 0 0 0 30px;
}

.booth-text .place {
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark-gray);
}

.booth-experience h3 {
    font-size: 1.4rem;
    text-align: center;
    margin-bottom: 30px;
}

.experience-points {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.point {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    width: calc(33.333% - 20px);
    min-width: 250px;
}

.point i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.point h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* 高砂メモリアルステージ */
.stage-section {
    background-color: var(--white);
}

.stage-map {
    margin-bottom: 40px;
    text-align: center;
}

.timetable {
    margin-bottom: 50px;
}

.timetable h3 {
    font-size: 1.4rem;
    text-align: center;
    margin-bottom: 30px;
}

.timetable-container {
    max-width: 800px;
    margin: 0 auto;
}

.timetable-item {
    display: flex;
    margin-bottom: 20px;
    background-color: var(--light-gray);
    border-radius: 5px;
    overflow: hidden;
}

.timetable-item.highlight {
    background-color: rgba(248, 181, 0, 0.1);
    border-left: 5px solid var(--accent-color);
}

.timetable-item .time {
    width: 120px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    text-align: center;
}

.timetable-item .program {
    flex: 1;
    padding: 15px;
}

.timetable-item .program h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.performers {
    margin-bottom: 50px;
}

.performers h3 {
    font-size: 1.4rem;
    text-align: center;
    margin-bottom: 30px;
}

.performers-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.performer {
    width: calc(16.666% - 17px);
    min-width: 150px;
    text-align: center;
}

.performer-image {
    width: 100%;
    height: 150px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.performer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.performer h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.performer p {
    font-size: 0.9rem;
    color: var(--dark-gray);
}

.tiger-stage h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

.tiger-stage-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    background-color: var(--light-gray);
    border-radius: 10px;
    overflow: hidden;
    padding: 30px;
}

.tiger-image {
    flex: 1;
    min-width: 300px;
}

.tiger-text {
    flex: 1;
    min-width: 300px;
    padding: 0 0 0 30px;
}

.tiger-text p {
    margin-bottom: 20px;
}

/* 展示ブースエリア */
.exhibition-section {
    background-color: var(--light-gray);
}

.exhibition-map {
    margin-bottom: 40px;
    text-align: center;
}

.exhibition-areas {
    margin-bottom: 50px;
}

.exhibition-area {
    margin-bottom: 40px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.exhibition-image {
    flex: 1;
    min-width: 300px;
}

.exhibition-text {
    flex: 1;
    min-width: 300px;
    padding: 0 0 0 30px;
}

.exhibition-text h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.exhibition-gallery h3 {
    font-size: 1.4rem;
    text-align: center;
    margin-bottom: 30px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    height: 200px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* ギャラリーモーダル */
.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.gallery-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.gallery-modal-img {
    max-width: 100%;
    max-height: 90vh;
    display: block;
    margin: 0 auto;
    border: 5px solid var(--white);
}

.gallery-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: var(--white);
    font-size: 30px;
    cursor: pointer;
}

/* 参加申込 */
.entry-section {
    background-color: var(--white);
}

.entry-overview {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.entry-image {
    flex: 1;
    min-width: 300px;
}

.entry-text {
    flex: 1;
    min-width: 300px;
    padding: 0 0 0 30px;
}

.entry-text h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.entry-details {
    margin-top: 20px;
}

.entry-details dt {
    font-weight: 700;
    margin-bottom: 5px;
}

.entry-details dd {
    margin-bottom: 15px;
    padding-left: 15px;
}

.entry-form {
    max-width: 800px;
    margin: 0 auto 50px;
    background-color: var(--light-gray);
    padding: 30px;
    border-radius: 10px;
}

.entry-form h3 {
    font-size: 1.4rem;
    margin-bottom: 30px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.required {
    color: var(--primary-color);
    font-size: 0.8rem;
    margin-left: 5px;
}

.form-check {
    margin-bottom: 20px;
}

.form-check input {
    margin-right: 10px;
}

.form-submit {
    text-align: center;
}

.entry-notes {
    max-width: 800px;
    margin: 0 auto;
}

.entry-notes h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.entry-notes ul {
    padding-left: 20px;
}

.entry-notes li {
    margin-bottom: 10px;
}

/* アクセス・来場案内 */
.access-section {
    background-color: var(--light-gray);
}

.access-map {
    margin-bottom: 40px;
}

.access-info {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.access-public,
.access-car {
    flex: 1;
    min-width: 300px;
    background-color: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.access-info h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.access-info ul {
    padding-left: 20px;
}

.access-info li {
    margin-bottom: 15px;
}

.parking-info {
    margin-bottom: 40px;
}

.parking-info h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-align: center;
}

.parking-details {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
}

/* .parking-map スタイルを削除 */

.parking-text {
    max-width: 600px;
    margin: 0 auto;
    padding: 0;
}

.parking-text ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 0;
    margin-bottom: 20px;
    list-style: none;
}

.parking-text li {
    background-color: var(--light-gray);
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 1.1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    text-align: center;
}

.parking-text strong {
    display: block;
    color: var(--primary-color);
    font-size: 1rem;
    margin-bottom: 5px;
}

.parking-text ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.parking-text li {
    margin-bottom: 10px;
}

.parking-note {
    font-size: 0.9rem;
    color: var(--dark-gray);
}

.visitor-notes h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-align: center;
}

.notes-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.note-item {
    background-color: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    width: calc(25% - 15px);
    min-width: 220px;
}

.note-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.note-item h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

/* よくある質問 */
.faq-section {
    background-color: var(--white);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-category {
    margin-bottom: 40px;
}

.faq-category h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid #eee;
    border-radius: 5px;
    overflow: hidden;
}

.faq-question {
    padding: 15px 20px;
    background-color: var(--light-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question h4 {
    font-size: 1.1rem;
    margin: 0;
}

.toggle-icon {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-item.active .toggle-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 15px 20px;
    max-height: 500px;
}

/* CONTACT */
.contact-section {
    background-color: var(--light-gray);
    padding: 80px 0;
}

.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.contact-wrapper h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
}

.contact-lead {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.contact-text {
    margin-bottom: 20px;
}

.contact-tel {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 30px;
    font-family: 'Montserrat', sans-serif;
}

/* SNS */
.sns-section {
    background-color: var(--white);
    padding: 80px 0;
}

.sns-wrapper {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.sns-wrapper h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
}

.sns-lead {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 30px;
}

.sns-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.sns-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: 50px;
    border-radius: 50px;
    font-weight: 600;
    color: var(--white);
    transition: transform 0.3s ease;
}

.sns-link:hover {
    transform: translateY(-3px);
    opacity: 1;
}

.sns-link i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.twitter {
    background-color: #1DA1F2;
}

.instagram {
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
}

.facebook {
    background-color: #4267B2;
}

.hashtag {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Montserrat', sans-serif;
}

/* フッター */
.footer {
    background-color: #333;
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-main {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-logo {
    width: 200px;
}

.footer-logo p {
    font-size: 0.9rem;
    margin-top: 10px;
}

.footer-info {
    text-align: right;
}

.footer-info p {
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.organizer {
    font-weight: 600;
}

.footer .footer-info .organizer {
    font-weight: 600;
    font-size: 1.15rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

.footer-nav ul,
.footer-policy ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

.footer-nav li {
    margin-right: 20px;
    margin-bottom: 10px;
}

.footer-policy li {
    margin-left: 20px;
    margin-bottom: 10px;
}

.footer a {
    color: var(--white);
    font-size: 0.9rem;
}

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

.page-top {
    position: fixed;
    left: 20px;  /* right から left に変更 */
    bottom: 20px;
    z-index: 100; /* z-indexを10から100に変更（ポップアップより上に表示） */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.page-top.visible {
    opacity: 1;
    visibility: visible;
}

.page-top a {
    display: block;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.page-top a:hover {
    background-color: #c93350;
    transform: translateY(-3px);
}

/* ページローダー */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    width: 200px;
    margin-bottom: 30px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.loader {
    width: 60px;
    height: 60px;
    border: 5px solid var(--light-gray);
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* アニメーション */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
    opacity: 0;
}

/* アニメーションの遅延 */
.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

.delay-4 {
    animation-delay: 0.8s;
}

/* ===============================
   モバイルメニュー（完全修正版）
   =============================== */

/* オーバーレイ */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* サイドバー */
.mobile-nav-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background-color: var(--white);
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
}

/* ヘッダー部分 */
.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--light-gray);
    background-color: var(--light-gray);
}

.mobile-logo {
    height: 40px;
    width: auto;
}

/* 閉じるボタン */
.mobile-close-btn {
    width: 40px;
    height: 40px;
    border: none;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    transition: all 0.2s ease;
}

.mobile-close-btn:hover {
    background-color: #c93350;
    transform: scale(1.1);
}

.mobile-close-btn span {
    display: block;
    transform: translateY(-1px);
}

/* メニュー本体 */
.mobile-nav-body {
    padding: 20px 0;
    height: calc(100vh - 81px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* メニューリスト */
.mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.mobile-menu-list li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-menu-list a {
    display: block;
    padding: 20px 25px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    font-family: 'M PLUS Rounded 1c', sans-serif;
    transition: all 0.2s ease;
}

.mobile-menu-list a:hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
    padding-left: 35px;
}


/* レスポンシブ対応 */
@media (max-width: 480px) {
    .mobile-nav-sidebar {
        width: 280px;
    }
}

@media (max-width: 320px) {
    .mobile-nav-sidebar {
        width: 100%;
        max-width: 100vw;
    }
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
    .main-title {
        font-size: 4rem;
    }

    .section {
        padding: 60px 0;
    }

    .performer {
        width: calc(25% - 15px);
    }
}

@media (max-width: 768px) {
    .header-container {
        height: 70px;
    }

    .logo {
        width: 150px;
    }

    .nav {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .main-visual {
        min-height: 600px;
    }

    .main-title {
        font-size: 3rem;
    }

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

    .date {
        font-size: 1.6rem;
    }

    .countdown-item {
        min-width: 60px;
    }

    .countdown-item span:first-child {
        font-size: 2rem;
    }

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

    .about-text,
    .about-image {
        flex: 100%;
    }

    .about-image {
        margin-top: 30px;
    }

    .booth-text,
    .tiger-text,
    .exhibition-text {
        padding: 20px 0 0 0;
    }

    .performer {
        width: calc(33.333% - 14px);
    }

    .note-item {
        width: calc(50% - 10px);
    }
}

@media (max-width: 576px) {
    .main-title {
        font-size: 2.5rem;
    }

    .main-subtitle {
        font-size: 1rem;
    }

    .date {
        font-size: 1.3rem;
    }

    .countdown-item {
        min-width: 50px;
    }

    .countdown-item span:first-child {
        font-size: 1.5rem;
        padding: 8px 0;
    }

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

    .timeline li {
        padding-left: 100px;
    }

    .timeline::before {
        left: 80px;
    }

    .timeline li .time {
        width: 70px;
    }

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

    .timetable-item .time {
        width: 100%;
        padding: 10px;
    }

    .performer {
        width: calc(50% - 10px);
    }

    .sns-link {
        width: 100%;
    }

    .footer-main,
    .footer-links {
        flex-direction: column;
    }

    .footer-logo,
    .footer-info,
    .footer-nav,
    .footer-policy {
        width: 100%;
        text-align: center;
        margin-bottom: 20px;
    }

    .footer-nav ul,
    .footer-policy ul {
        justify-content: center;
    }

    .footer-policy li {
        margin: 0 10px 10px;
    }
}
/* ポップアップバナー - 修正版 */
.popup-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
    max-width: 300px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.5s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    overflow: hidden;
}

.popup-banner.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.popup-banner img {
    width: 100%;
    height: auto;
    display: block;
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    transition: all 0.3s ease;
    z-index: 101; /* 🔧 追加: ポップアップより上に表示 */
}

.popup-close:hover {
    background-color: rgba(0, 0, 0, 0.9);
    transform: scale(1.05); /* 🔧 追加: ホバー時に少し大きく */
}

@media (max-width: 768px) {
    /* 既存のコード... */
    
    .popup-banner {
        max-width: 250px;
        bottom: 15px;
        right: 15px;
    }
}

@media (max-width: 576px) {
    /* 既存のコード... */
    
    .popup-banner {
        max-width: 200px;
        bottom: 10px;
        right: 10px;
    }

    .popup-close {
        width: 25px;
        height: 25px;
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .main-visual {
        background-attachment: scroll; /* モバイルでfixedを無効化 */
        min-height: 80vh; /* モバイルでは少し小さく */
    }
    
    .main-visual-inner {
        padding: 60px 15px;
    }
}

@media (max-width: 768px) {
    .page-top {
        left: 15px;
        bottom: 15px;
    }
}

@media (max-width: 576px) {
    .page-top {
        left: 10px;
        bottom: 10px;
    }
    
    .page-top a {
        width: 45px;
        height: 45px;
    }
}

/* 画像が正常に読み込まれた場合はグラデーションを上書き */
.main-visual[style*="background-image"] {
    background-image: url('../images/main-visual.jpg') !important;
}

/* 代替案：複数の画像パスを試す */
.main-visual.method-2 {
    background-image: 
        url('../images/main-visual.jpg'),
        url('./images/main-visual.jpg'),
        url('images/main-visual.jpg'),
        linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* 代替案：JavaScriptで動的に設定する場合 */
.main-visual.js-bg {
    /* JavaScriptで背景を設定する場合の基本スタイル */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}