:root {
    --primary-color: #bd0000; 
    --secondary-color: #283841;
    --accent-color: #a27b50;
    --bg-color: #fff9f0;
    --trackstage-color: #fab35e;
    --matsuristage-color: #4dc870;
    --jctaikostage-color: #fc7878;
    --cont-color: #f8f6f3;
    --text-color: #333333;
    --font-main: 'Zen Maru Gothic', sans-serif;
    --font-pop: 'Mochiyopop One', sans-serif;
}

body {
    margin: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
}

.festival-schedule {
/*
    padding: 80px 20px;
*/
}

.container {
/*
    max-width: 1000px;
*/
    margin: 0 auto;
}

/* メインタイトル */
.section-title {
    font-family: var(--font-pop);
    font-size: clamp(2.5rem, 8vw, 3.5rem);
    text-align: center;
    color: var(--primary-color);
    text-shadow: 3px 3px 0px #fff, 6px 6px 0px rgba(0,0,0,0.1);
    margin-bottom: 80px;
    transform: rotate(-2deg);
}

.section-title span {
    display: block;
    font-size: 1.2rem;
    color: #666;
    margin-top: 10px;
}

/* センタリングレイアウト */
.schedule-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
}

/* カードの基本設定 */
.stage-card {
    background: #ffffff;
    border-radius: 24px;
    border: 4px solid #333;
    box-shadow: 12px 12px 0px #333;
    padding: 45px 35px 35px;
/*    width: 100%;*/
    width: 92%;
    max-width: 600px;
    box-sizing: border-box;
    position: relative;
    text-align: center; /* タイトルを中央に寄せるため */
}

/* メインステージの強調 */
.stage-card.main-stage {
    /*max-width: 850px;*/
    border-width: 2px;
}

/* ステージ名（タイトル部分） */
.stage-name {
    font-family: var(--font-pop);
    background: var(--primary-color);
    color: #ffffff !important;
    display: inline-block;
    padding: 10px 40px;
    border-radius: 50px;
    border: 3px solid #333;
    box-shadow: 4px 4px 0px #333;
    margin: -75px auto 30px; /* 中央配置と上部へのはみ出し */
    position: relative;
    z-index: 10;
    font-size: 1.4rem;
}

.trackstage-name {
    font-family: var(--font-pop);
    background: var(--primary-color);
    color: #ffffff !important;
    display: inline-block;
    padding: 10px 40px;
    border-radius: 50px;
    border: 3px solid #333;
    box-shadow: 4px 4px 0px #333;
    margin: -75px auto 30px; /* 中央配置と上部へのはみ出し */
    position: relative;
    z-index: 10;
    font-size: 1.4rem;
}

.matsuristage-name {
    font-family: var(--font-pop);
    background: var(--primary-color);
    color: #ffffff !important;
    display: inline-block;
    padding: 10px 40px;
    border-radius: 50px;
    border: 3px solid #333;
    box-shadow: 4px 4px 0px #333;
    margin: -75px auto 30px; /* 中央配置と上部へのはみ出し */
    position: relative;
    z-index: 10;
    font-size: 1.4rem;
}

.jctaikostage-name {
    font-family: var(--font-pop);
    background: var(--primary-color);
    color: #ffffff !important;
    display: inline-block;
    padding: 10px 40px;
    border-radius: 50px;
    border: 3px solid #333;
    box-shadow: 4px 4px 0px #333;
    margin: -75px auto 30px; /* 中央配置と上部へのはみ出し */
    position: relative;
    z-index: 10;
    font-size: 1.4rem;
}

/* 指定のサイズ 1.5rem */
.main-stage .stage-name {
    background: var(--primary-color);
    font-size: 1.5rem; 
}

/* 指定のサイズ 1.5rem */
.trackstage-name {
    background: var(--trackstage-color);
    font-size: 1.6rem; 
		line-height: 2rem;
}

/* 指定のサイズ 1.5rem */
.matsuristage-name {
    background: var(--matsuristage-color);
    font-size: 1.6rem; 
		line-height: 2rem;
}

/* 指定のサイズ 1.5rem */
.jctaikostage-name {
    background: var(--jctaikostage-color);
    font-size: 1.6rem; 
		line-height: 2rem;
}

/* トラックステージのリスト部分 */
.track-program-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left; /* リスト内テキストは左揃えで読みやすく */
}

.track-program-list li, 
.matsuri-program-list li, 
.jctaiko-program-list li {
    border-bottom: 2px solid #ddd;
    margin: 0px -25px 0px -25px;
    padding: 30px 0px 30px 0px;
    display: flex;
/*
    align-items: center;
*/
		flex-direction: column; /* 全体を縦に並べる */
    gap: 8px;               /* 行間の余白 */    
    }


.track-program-list li.event_card, 
.matsuri-program-list li.event_card, 
.jctaiko-program-list li.event_card {
    display: flex;
    flex-direction: column; /* 3つの要素を縦に並べる */
    gap: 6px;               /* 各段の間の余白 */
		padding: 20px 0px; 
		margin: 0 auto;
    border-bottom: 1px solid #ddd;
    position: relative; /* 必要に応じて装飾を追加するため */}

.track-program-list span.time, 
.matsuri-program-list span.time, 
.jctaiko-program-list span.time {
    align-self: flex-start; /* 左寄せ */
    font-weight: bold;
		margin: 0;
}

.track-program-list span.content, 
.matsuri-program-list span.content, 
.jctaiko-program-list span.content {
    width: 100%;            /* 横幅いっぱい使ってテキストを表示 */
		display: block;
    word-break: break-all;  /* 長い単語でも強制改行して枠外へのはみ出しを防ぐ */
		line-height: 1.8rem;
}

.track-program-list span.event_images, 
.matsuri-program-list span.event_images, 
.jctaiko-program-list span.event_images {
    align-self: flex-end;   /* 右寄せ */
    max-width: 80%;         /* 画像が大きすぎないように調整（お好みで） */
}

.track-program-list span.event_images img, 
.matsuri-program-list span.event_images img, 
.jctaiko-program-list span.event_images img {
    display: block;
    width: 200px;           /* 任意の横幅 */
    height: auto;
    border-radius: 12px;    /* 角を丸くする */
    box-shadow: 0 2px 8px rgba(0,0,0,0.1); /* 少し影をつけると浮かび上がって綺麗です */
}


/*
.track-program-list li img {
    margin: 0 0 0 auto;
}
*/

.track-program-list .time  {
    color: var(--trackstage-color);
}

/* まつり宮崎ステージのリスト部分 */
.matsuri-program-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left; /* リスト内テキストは左揃えで読みやすく */
}

.matsuri-program-list li {
    border-bottom: 2px solid #ddd;
    margin: 0px -25px 0px -25px;
    padding: 30px 0px 30px 0px;
    display: flex;
    align-items: center;
    
    }
/*
.matsuri-program-list li img {
    margin: 0 0 0 auto;
}
*/

.matsuri-program-list .time  {
    color: var(--matsuristage-color);
}

/* JC太鼓のリスト部分 */
.jctaiko-program-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left; /* リスト内テキストは左揃えで読みやすく */
}

.jctaiko-program-list li {
    border-bottom: 2px solid #ddd;
    margin: 0px -25px 0px -25px;
    padding: 30px 0px 30px 0px;
    display: flex;
    align-items: center;
    
    }
/*
.matsuri-program-list li img {
    margin: 0 0 0 auto;
}
*/

.jctaiko-program-list .time  {
    color: var(--jctaikostage-color);
}

.time {
    font-weight: 900;
    color: var(--primary-color);
    font-size: 1.3rem;
    margin: 0px 30px 0px 10px;
    width: 7rem;
}

.content {
    font-weight: 700;
    font-size: 1.1rem;
    width: 20rem;
}

.event_images {
    width: 10rem;
    margin: 0 0 0 auto;
}

.event_images img {
    display: block;
    width: 100%;
    border-radius: 8px;     /* 角を少し丸くするとお洒落です */
}

.highlight {
    background: rgba(255, 202, 40, 0.15);
    border-radius: 12px;
    padding-left: 10px !important;
    padding-right: 10px !important;
}

.badge {
    background: var(--accent-color);
    color: white;
    font-size: 0.8rem;
    padding: 3px 10px;
    border-radius: 6px;
    margin-left: 10px;
}

/* ブルブルアニメーション (1回のみ) */
@keyframes buruburu-once {
    0% { transform: rotate(0deg) scale(1); }
    15% { transform: rotate(-4deg) scale(1.1); }
    35% { transform: rotate(4deg) scale(1.1); }
    55% { transform: rotate(-4deg) scale(1.1); }
    75% { transform: rotate(2deg) scale(1.05); }
    100% { transform: rotate(0deg) scale(1); }
}

.stage-name.is-active {
    animation: buruburu-once 0.6s ease-in-out forwards;
}

/* フェードイン用の初期状態 */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
}

.is-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}