/* フォント */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700;900&family=Noto+Serif+JP:wght@400;700&family=Playfair+Display:ital,wght@0,700;1,400&family=IBM+Plex+Sans+JP:wght@400;700&display=swap');

/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* カラーパレット */
:root {
    --primary-green: #367C2B;
    --primary-yellow: #FFDE00;
    --primary-red: #e60012;
    --text-water-blue: #00BFFF;
    --white: #ffffff;
    --primary-color: #0e1c28;
    --secondary-color: #6a4027;
    --accent-color: #e6a65d;
    --light-color: #f8f3eb;
    --dark-color: #0e0e0e;
    --transition-speed: 0.6s cubic-bezier(0.33, 1, 0.68, 1);
    
    /* モバイルブラウザ対応のビューポート高さ */
    --vh: 1vh;
}

/* 基本スタイル */
body {
    font-family: 'IBM Plex Sans JP', sans-serif;
    margin: 0;
    min-height: 100vh;
    overflow: auto;
    color: var(--dark-color);
    background-color: var(--light-color);
    line-height: 1.6;
}

/* ==============================================
   ヘッダー
============================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(54, 124, 43, 0.1);
    transition: all 0.3s ease;
}

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

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.header-logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-green);
    letter-spacing: 0.5px;
}

.header-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.nav-link {
    font-family: 'IBM Plex Sans JP', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--dark-color);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: var(--primary-green);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--primary-green), var(--primary-yellow));
    transition: width 0.3s ease;
}

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

/* モバイルメニューボタン */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background: var(--primary-green);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* メニューが開いている時のハンバーガーアニメーション */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ==============================================
   ヘッダー - レスポンシブ対応
============================================== */

/* タブレット */
@media (max-width: 768px) {
    .header-container {
        padding: 0 1.5rem;
        height: 60px;
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    .nav-list {
        gap: 1.5rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
}

/* モバイル */
@media (max-width: 576px) {
    .header-container {
        padding: 0 1rem;
        height: 60px;
    }
    
    .logo-text {
        font-size: 0.95rem;
    }
    
    .header-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* モバイルナビゲーション */
    .header-nav.mobile-active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(54, 124, 43, 0.1);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }
    
    .header-nav.mobile-active .nav-list {
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
    }
    
    .header-nav.mobile-active .nav-link {
        display: block;
        padding: 1rem 2rem;
        border-bottom: 1px solid rgba(54, 124, 43, 0.05);
    }
    
    .header-nav.mobile-active .nav-link:last-child {
        border-bottom: none;
    }
    
    .header-nav.mobile-active .nav-link::after {
        display: none;
    }
}

/* ==============================================
   ヒーローセクション
============================================== */

/* レスポンシブ対応ヒーローセクション */
.hero-section {
    width: 100%;
    height: 100vh;
    position: relative;
    display: flex;
    overflow: hidden;
}

/* 全体背景画像（モザイク効果付き） */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/county.jpg');
    background-size: cover;
    background-position: center;
    /* モザイク効果 */
    filter: blur(3px) brightness(0.3);
    transform: scale(1.1); /* ブラー効果で縮んで見える部分を補正 */
    z-index: 1;
}

/* グラデーションオーバーレイ */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(54, 124, 43, 0.08) 0%, 
        rgba(14, 28, 40, 0.12) 50%, 
        rgba(54, 124, 43, 0.08) 100%);
    z-index: 2;
}

/* コンテンツエリア - レスポンシブ対応 */
.hero-content {
    position: relative;
    color: var(--light-color);
    z-index: 3;
    padding: 2rem;
    max-width: 1500px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    margin: 0 auto;
    height: 100vh;
    width: 100%;
}

/* 左側テキストエリア */
.hero-text-content {
    color: var(--white);
    flex: 1;
    max-width: 800px;
    text-align: center;
}

/* サブタイトル（100周年ページトレース） */
.hero-subtitle {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.5rem;
    color: var(--primary-yellow);
    margin-bottom: 0.5rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s var(--transition-speed) forwards;
    animation-delay: 0.5s;
    will-change: opacity, transform;
}

/* メインタイトル（100周年ページ完全トレース） */
.hero-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 900;
    font-size: clamp(2rem, 8vw, 5rem);
    white-space: nowrap;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: 0.01em;
    color: var(--white);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s var(--transition-speed) forwards;
    animation-delay: 0.8s;
    will-change: opacity, transform;
}

/* 年数表示（100周年ページトレース） */
.year {
    color: var(--primary-yellow);
    display: inline;
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: 3rem;
    margin-top: 5px;
    margin-left: 0.5rem;
}

/* サブタイトル（100周年ページトレース） */
.hero-title-sub {
    font-family: 'Noto Serif JP', serif;
    font-size: 2.2rem;
    color: var(--white);
    font-weight: normal;
    margin-bottom: 10px;
    opacity: 0.9;
    display: block;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s var(--transition-speed) forwards;
    animation-delay: 1.1s;
    will-change: opacity, transform;
}

/* 説明文（100周年ページトレース） */
.hero-description {
    max-width: 700px;
    margin: 0 auto 1rem auto;
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--white);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s var(--transition-speed) forwards;
    animation-delay: 1.4s;
    will-change: opacity, transform;
}

/* 日程情報（左下） - スタイリッシュバナー */
.hero-date-info {
    margin-top: 40px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s var(--transition-speed) forwards;
    animation-delay: 1.7s;
    will-change: opacity, transform;
    display: flex;           /* ← 追加 */
    justify-content: center; /* ← 追加 */
}

/* スタイリッシュな日付バナー */
.date-banner-improved {
    background: linear-gradient(135deg, #e60012 0%, #ff1e3d 100%);
    color: white;
    padding: 25px 35px;
    position: relative;
    overflow: hidden;
    max-width: 700px; /* hero-descriptionと同じ幅に調整 */
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 12px 35px rgba(230, 0, 18, 0.4);
}

.date-banner-improved::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 70px;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    transform: skewX(-20deg);
    transform-origin: top right;
}

.date-banner-improved .year-vertical {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    writing-mode: vertical-rl;
    font-size: 35px;
    font-weight: 900;
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.date-banner-improved .main-dates {
    margin-left: 75px;
    margin-right: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.date-banner-improved .date-item {
    text-align: center;
    position: relative;
    flex: 1;
}

.date-banner-improved .date-number {
    font-size: 48px;
    font-weight: 900;
    line-height: 1;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
    letter-spacing: -1px;
}

.date-banner-improved .date-day {
    font-size: 18px;
    font-weight: bold;
    margin-top: 8px;
    letter-spacing: 2px;
    opacity: 0.95;
}

.date-banner-improved .separator {
    font-size: 32px;
    font-weight: 900;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
    flex-shrink: 0;
}

.date-banner-improved .venue {
    margin-top: 20px;
    margin-left: 75px;
    margin-right: 20px;
    font-size: 18px;
    font-weight: bold;
    border-top: 2px solid rgba(255, 255, 255, 0.9);
    padding-top: 18px;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    text-align: center;
}

/* 右側ロゴエリア */
.hero-logo-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 2rem;
    max-width: 600px;
}

/* 100周年記念ロゴ - 100周年サイト完全トレース */
.anniversary-logo {
    width: 100%;
    max-width: 500px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(255, 255, 255, 0.2));
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s var(--transition-speed) forwards;
    animation-delay: 2.0s;
    will-change: opacity, transform;
}

/* カンティフェアロゴプレースホルダー（記念ロゴがない場合のフォールバック） */
.county-fair-logo {
    width: 100%;
    max-width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px dashed rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    padding: 2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s var(--transition-speed) forwards;
    animation-delay: 2.0s;
    will-change: opacity, transform;
}

/* 装飾要素 */
.hero-decoration {
    position: absolute;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, var(--primary-yellow) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0.3;
    animation: pulse 3s infinite;
}

/* スクロールインジケーター */
.scroll-indicator {
    position: absolute;
    bottom: 5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--white);
    animation: fadeIn 1s ease forwards;
    animation-delay: 2.3s;
    opacity: 0;
}

.scroll-indicator p {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
    opacity: 0.8;
}

.scroll-arrow {
    width: 30px;
    height: 50px;
    border: 2px solid var(--white);
    border-radius: 15px;
    position: relative;
    opacity: 0.8;
}

.scroll-arrow::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    width: 6px;
    height: 6px;
    background-color: var(--white);
    border-radius: 50%;
    transform: translateX(-50%);
    animation: scrollAnim 2s infinite;
}

/* 古いスタイルをフォールバック用に残す */
.date-main {
    font-size: 2.2rem;
    font-weight: bold;
    color: var(--primary-yellow);
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.02em;
}

.date-venue {
    font-size: 1.2rem;
    color: var(--white);
    font-weight: 400;
    opacity: 0.9;
}

/* ==============================================
   ヒーローセクション - レスポンシブ対応
============================================== */

/* デスクトップ大 */
@media (max-width: 1200px) {
    .hero-content {
        flex-direction: column-reverse;
        justify-content: center;
        padding: 2rem 1.5rem;
    }
    
    .hero-text-content {
        max-width: 100%;
        text-align: center;
    }
    
    .hero-logo-wrapper {
        padding-left: 0;
        margin-bottom: 1rem;
        max-width: 400px;
    }
    
    .anniversary-logo {
        max-width: 300px;
    }
}

/* タブレット */
@media (max-width: 768px) {
    .hero-section {
        height: 100svh; /* モバイルブラウザのUIを考慮 */
        min-height: 600px; /* 最小高さを保証 */
    }
    
    .hero-content {
        padding: 1.5rem 1rem;
        height: auto;
        min-height: auto;
        justify-content: flex-start;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .year {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-title-sub {
        font-size: 1.6rem;
    }
    
    .hero-description {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .anniversary-logo {
        max-width: 200px;
    }
    
    .scroll-indicator {
        bottom: 3rem; /* スマホでも表示するが位置調整 */
    }
    
    /* 日付バナーのモバイル調整 */
    .date-banner-improved {
        padding: 20px 25px;
        max-width: 100%;
    }
    
    .date-banner-improved .main-dates {
        margin-left: 60px;
        margin-right: 15px;
        gap: 20px;
    }
    
    .date-banner-improved .date-number {
        font-size: 36px;
    }
    
    .date-banner-improved .date-day {
        font-size: 16px;
    }
    
    .date-banner-improved .separator {
        font-size: 28px;
    }
    
    .date-banner-improved .venue {
        margin-left: 60px;
        margin-right: 15px;
        font-size: 16px;
    }
    
    .date-banner-improved .year-vertical {
        font-size: 16px;
        left: 15px;
    }
}

/* モバイル */
@media (max-width: 576px) {
    .hero-content {
        padding: 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .year {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-title-sub {
        font-size: 1.4rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .anniversary-logo {
        max-width: 180px;
    }
    
    /* 極小画面での日付バナー調整 */
    .date-banner-improved {
        padding: 18px 20px;
    }
    
    .date-banner-improved .main-dates {
        margin-left: 50px;
        margin-right: 10px;
        gap: 15px;
    }
    
    .date-banner-improved .date-number {
        font-size: 32px;
    }
    
    .date-banner-improved .date-day {
        font-size: 14px;
    }
    
    .date-banner-improved .separator {
        font-size: 24px;
    }
    
    .date-banner-improved .venue {
        margin-left: 50px;
        margin-right: 10px;
        font-size: 15px;
    }
    
    .date-banner-improved .year-vertical {
        font-size: 14px;
        letter-spacing: 2px;
    }
}

/* ==============================================
   お知らせセクション
============================================== */

.section.news {
    background: var(--white);
    border-top: 1px solid rgba(54, 124, 43, 0.1);
}

.news-container {
    max-width: 900px;
    margin: 0 auto;
}

.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.news-item {
    display: flex;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item:hover {
    background: linear-gradient(135deg, 
        var(--light-color) 0%, 
        rgba(54, 124, 43, 0.03) 100%);
    transform: translateX(5px);
}

.news-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, 
        var(--primary-green), 
        var(--primary-yellow));
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.news-item:hover::before {
    transform: scaleY(1);
}

.news-date {
    font-family: 'IBM Plex Sans JP', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--secondary-color);
    min-width: 120px;
    margin-right: 1.5rem;
    letter-spacing: 0.5px;
    position: relative;
}

.news-date::after {
    content: '●';
    position: absolute;
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(54, 124, 43, 0.3);
    font-size: 0.6rem;
}

.news-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.news-category {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    color: var(--white);
    text-align: center;
    min-width: 70px;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.category-important {
    background: linear-gradient(135deg, var(--primary-red), #ff1e3d);
}

.category-event {
    background: linear-gradient(135deg, var(--primary-green), #4a9c3e);
}

.category-update {
    background: linear-gradient(135deg, #007bff, #0056b3);
}

.category-info {
    background: linear-gradient(135deg, var(--secondary-color), #8b5a3c);
}

.news-title {
    color: var(--dark-color);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.4;
    transition: color 0.3s ease;
    flex: 1;
}

.news-title:hover {
    color: var(--primary-green);
}

.news-more {
    text-align: center;
    margin-top: 2rem;
}

.news-more-link {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-green), #4a9c3e);
    color: var(--white);
    padding: 1rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(54, 124, 43, 0.3);
    position: relative;
    overflow: hidden;
}

.news-more-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    transition: left 0.6s ease;
}

.news-more-link:hover::before {
    left: 100%;
}

.news-more-link:hover {
    background: linear-gradient(135deg, #4a9c3e, var(--primary-green));
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(54, 124, 43, 0.4);
}

/* ==============================================
   お知らせセクション - レスポンシブ対応
============================================== */

/* タブレット */
@media (max-width: 768px) {
    .news-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem;
        gap: 1rem;
    }
    
    .news-date {
        min-width: auto;
        margin-right: 0;
        font-size: 0.9rem;
        align-self: flex-start;
    }
    
    .news-date::after {
        display: none;
    }
    
    .news-content {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .news-category {
        align-self: flex-start;
        margin-bottom: 0.5rem;
    }
    
    .news-title {
        font-size: 1rem;
    }
    
    .news-more-link {
        padding: 0.8rem 2rem;
        font-size: 0.9rem;
    }
}

/* モバイル */
@media (max-width: 576px) {
    .news-list {
        margin: 0 -1rem;
        border-radius: 0;
    }
    
    .news-item {
        padding: 1.25rem;
    }
    
    .news-title {
        font-size: 0.95rem;
    }
    
    .news-more-link {
        width: 100%;
        max-width: 300px;
    }
}

/* ==============================================
   メインコンテンツエリア
============================================== */

.main-content {
    background-color: var(--white);
    position: relative;
    z-index: 10;
}

/* 共通セクションスタイル */
.section {
    padding: 4rem 0;
    position: relative;
}

.section:nth-child(even) {
    background-color: var(--light-color)
}

/* イベント概要セクション */
.section.about {
    background: var(--primary-yellow);
}

/* イベント概要セクション */
.section.organizers {
    background: var(--primary-green);
}

/* イベント概要セクション */
.section.program {
    background: var(--primary-red);
}

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

.section-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-green), var(--primary-yellow));
    display: block;
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* ==============================================
   メインコンテンツエリア - レスポンシブ対応
============================================== */

/* タブレット */
@media (max-width: 768px) {
    .section {
        padding: 2rem 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .container {
        padding: 0 1.5rem;
    }
}

/* モバイル */
@media (max-width: 576px) {
    .container {
        padding: 0 1rem;
    }
}

/* ==============================================
   イベント概要セクション
============================================== */

.section.about {
    /* 背景画像を指定 */
    background:
        linear-gradient(rgba(255, 222, 0, 0.92), rgba(255, 222, 0, 0.92)), /* より濃い半透明の黄色で文字を見やすく */
        url('../images/county.jpg') center center/cover no-repeat;
}

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

.about-text h3 {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

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

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

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

.stat-number {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

.stat-text {
    font-size: 1.1rem;
    color: var(--dark-color);
    font-weight: 500;
}

/* ==============================================
   イベント概要セクション - レスポンシブ対応
============================================== */

/* デスクトップ大 */
@media (max-width: 1200px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* タブレット */
@media (max-width: 768px) {
    .about-stats {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .stat-item {
        flex: 1;
        min-width: 150px;
    }
}

/* ==============================================
   開催情報セクション
============================================== */

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

.detail-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--primary-green);
}

.detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.detail-card h3 {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.detail-card p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.detail-card strong {
    color: var(--primary-color);
    font-weight: 700;
}

/* 宿泊案内カード用スタイル */
.accommodation-card {
    grid-column: span 1; /* 2列分の幅を使用 */
    color: var(--dark-color);
}

.accommodation-card h3 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.accommodation-subtitle {
    font-size: 1.1rem;
    color: var(--primary-green);
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

.accommodation-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.accommodation-item h4 {
    color: var(--primary-green);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.accommodation-item p {
    color: rgba(0, 0, 0, 0.9);
    font-size: 0.95rem;
    line-height: 1.5;
}

.accommodation-link {
    display: inline-block;
    background: var(--primary-green);
    color: var(--light-color);
    padding: 1rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s ease;
    margin: 0 auto;
    display: block;
    width: fit-content;
}

.accommodation-link:hover {
    background: var(--primary-green);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* アクセスカード用スタイル */
.access-card {
    grid-column: span 2; /* 2列分の幅を使用 */
    color: var(--dark-color);
}

.access-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.access-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.access-map {
    width: 100%;
}

.access-map iframe {
    width: 100%;
    min-height: 250px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* ==============================================
   開催情報セクション - レスポンシブ対応
============================================== */

/* タブレット */
@media (max-width: 768px) {
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .accommodation-card {
        grid-column: span 1;
    }
    
    .accommodation-options {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .accommodation-card,
    .access-card {
        grid-column: span 1;
    }
    
    .accommodation-options {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .access-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .access-map iframe {
        min-height: 200px;
    }
}

/* ==============================================
   波状セクション境界スタイル
============================================== */

/* プログラムセクション - 上部に赤い波で開催情報に食い込む */
.section.program {
    overflow: visible; 
    margin-top: 100px; 
}

.section.program::before {
    content: '';
    position: absolute;
    top: -299px; 
    left: 0;
    width: 100%;
    height: 300px;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='%23e60012'%3E%3C/path%3E%3C/svg%3E") no-repeat;
    background-size: cover;
    transform: rotate(180deg);
    z-index: 1;
}
/* ==============================================
   プログラムセクション
============================================== */

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

.program-category {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.program-category:hover {
    transform: translateY(-5px);
}

.program-category h3 {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-yellow);
}

.program-category ul {
    list-style: none;
}

.program-category li {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: var(--dark-color);
    position: relative;
    padding-left: 1.5rem;
}

.program-category li::before {
    content: '●';
    color: var(--primary-yellow);
    position: absolute;
    left: 0;
    top: 0;
}

.program-note {
    text-align: center;
    margin-top: 3rem;
    font-style: italic;
    color: var(--secondary-color);
    font-size: 1rem;
}

/* プログラムセクション - 新デザイン */
.program-container {
    width: 100%;
    padding: 15px;
}

.program-note {
    text-align: center;
    margin-top: 3rem;
    font-style: italic;
    color: #666;
    font-size: 1rem;
    padding: 0 2rem;
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    width: 100%;
}

/* ホバー時に他のカードに白いカバーをかける効果 */
.program-grid .program-card {
    position: relative;
}

.program-grid .program-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0);
    transition: background-color 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
    z-index: 1;
}

.program-grid:hover .program-card:not(:hover)::after {
    background-color: rgba(255, 255, 255, 0.4);
}

.program-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.program-card:hover {
    transform: scale(1.02);
    z-index: 10;
    opacity: 1;
}

/* 斜めのデザイン要素 */
.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-top: 50px solid rgba(255, 255, 255, 0.1);
    z-index: 2;
    transition: all 0.3s ease;
}

.program-card:hover::before {
    border-left: 80px solid transparent;
    border-top: 80px solid rgba(255, 255, 255, 0.2);
}

.program-card-image {
    width: 100%;
    aspect-ratio: 4/5;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

/* 画像に微細なオーバーレイ効果 */
.program-card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg, 
        rgba(54, 124, 43, 0.1) 0%, 
        transparent 30%, 
        transparent 70%, 
        rgba(0, 0, 0, 0.2) 100%
    );
    transition: all 0.3s ease;
    pointer-events: none;
}

.program-card:hover .program-card-image::after {
    background: linear-gradient(
        135deg, 
        rgba(54, 124, 43, 0.15) 0%, 
        transparent 25%, 
        transparent 75%, 
        rgba(0, 0, 0, 0.3) 100%
    );
}

.program-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    color: var(--white);
    padding: 3rem 2rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.program-card:hover .program-card-content {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    padding: 3.5rem 2rem 2.5rem;
}

.program-card-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 0.8rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.5px;
    position: relative;
}

/* タイトル下の装飾ライン */
.program-card-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(45deg, var(--primary-yellow), var(--primary-green));
    border-radius: 2px;
    transition: width 0.3s ease;
}

.program-card:hover .program-card-title::after {
    width: 60px;
}

.program-card-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.program-card-button {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    padding: 1rem 2.5rem;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.program-card-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.program-card-button:hover::before {
    left: 100%;
}

.program-card-button:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.8));
    color: var(--primary-color);
    border-color: rgba(255, 255, 255, 0.9);
    text-shadow: none;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* ==============================================
   プログラムセクション - レスポンシブ対応
============================================== */

/* タブレット */
@media (max-width: 768px) {
    .program-content {
        grid-template-columns: 1fr;
    }
    
    .program-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .program-card-content {
        padding: 2rem 1.5rem 1.5rem;
    }
    
    .program-card-title {
        font-size: 1.2rem;
    }
}

/* モバイル */
@media (max-width: 576px) {
    .program-card-content {
        padding: 2rem 1.25rem 1.25rem;
    }
    
    .program-card-title {
        font-size: 1.1rem;
    }
    
    .program-card-button {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* ==============================================
   出展の案内セクション - 完全版
============================================== */

.exhibition-content {
    display: block; /* グリッドレイアウトを解除 */
}

.exhibition-main {
    background: var(--white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.exhibition-main h3 {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 1.5rem;
}

.exhibition-main p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark-color);
}

/* 出展案内テーブル */
.exhibition-table-container {
    margin: 2rem 0;
    overflow-x: auto;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.exhibition-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
}

.exhibition-table thead {
    background: linear-gradient(135deg, var(--primary-green), #4a9c3e);
    color: var(--white);
}

.exhibition-table th {
    padding: 1.5rem 1rem;
    text-align: left;
    font-weight: 700;
    font-size: 1.1rem;
    border-bottom: 3px solid var(--primary-yellow);
}

.exhibition-table td {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    vertical-align: top;
}

.exhibition-table tbody tr:hover {
    background: var(--light-color);
}

.exhibition-table tbody tr:last-child td {
    border-bottom: none;
}

.category-name {
    font-weight: 700;
    color: var(--primary-green);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.category-description {
    font-size: 0.9rem;
    color: var(--secondary-color);
    line-height: 1.4;
}

.download-link {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-green), #4a9c3e);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-align: center;
}

.download-link:hover {
    background: linear-gradient(135deg, #4a9c3e, var(--primary-green));
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(54, 124, 43, 0.3);
}

.exhibition-note {
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-yellow);
    margin-top: 2rem;
}

.exhibition-note p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: var(--dark-color);
}

.exhibition-note p:last-child {
    margin-bottom: 0;
}

/* ==============================================
   出展の案内セクション - レスポンシブ対応（カード変換版修正）
============================================== */

.section.exhibition {
    margin-top: 70px; /* ヘッダーの高さ分のマージン */
}

.exhibition-content {
    display: block;
}

.exhibition-main {
    background: var(--white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.exhibition-main h3 {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 1.5rem;
}

.exhibition-main p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark-color);
}

/* 出展案内テーブル */
.exhibition-table-container {
    margin: 2rem 0;
    overflow-x: auto;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    -webkit-overflow-scrolling: touch;
}

.exhibition-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
}

.exhibition-table thead {
    background: linear-gradient(135deg, var(--primary-green), #4a9c3e);
    color: var(--white);
}

.exhibition-table th {
    padding: 1.5rem 1rem;
    text-align: left;
    font-weight: 700;
    font-size: 1.1rem;
    border-bottom: 3px solid var(--primary-yellow);
}

.exhibition-table td {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    vertical-align: top;
}

.exhibition-table tbody tr:hover {
    background: var(--light-color);
}

.exhibition-table tbody tr:last-child td {
    border-bottom: none;
}

.category-name {
    font-weight: 700;
    color: var(--primary-green);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.category-description {
    font-size: 0.9rem;
    color: var(--secondary-color);
    line-height: 1.4;
}

.download-link {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-green), #4a9c3e);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-align: center;
}

.download-link:hover {
    background: linear-gradient(135deg, #4a9c3e, var(--primary-green));
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(54, 124, 43, 0.3);
}

/* モバイル用カードをデフォルトで非表示 */
.exhibition-cards {
    display: none;
}

.exhibition-note {
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-yellow);
    margin-top: 2rem;
}

.exhibition-note p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: var(--dark-color);
}

.exhibition-note p:last-child {
    margin-bottom: 0;
}

/* 申し込み方法スタイル */
.application-method {
    background: var(--white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
}

.application-method h3 {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 2rem;
    text-align: center;
}

.application-steps {
    margin-bottom: 2rem;
}

.application-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    position: relative;
}

.application-step:last-child {
    margin-bottom: 0;
}

.application-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 24px;
    top: 60px;
    width: 2px;
    height: calc(100% - 10px);
    background: linear-gradient(to bottom, var(--primary-green), var(--primary-yellow));
    z-index: 1;
}

.step-number {
    background: linear-gradient(135deg, var(--primary-green), #4a9c3e);
    color: var(--white);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    margin-right: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(54, 124, 43, 0.3);
    z-index: 2;
    position: relative;
}

.step-content {
    flex: 1;
}

.step-content h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.step-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.note-text {
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-style: italic;
}

.contact-info {
    background: var(--light-color);
    padding: 1rem;
    border-radius: 10px;
    margin-top: 0.5rem;
    border-left: 4px solid var(--primary-green);
}

.email-address {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.email-address strong {
    color: var(--primary-green);
    font-family: 'IBM Plex Sans JP', monospace;
    letter-spacing: 0.5px;
}

.contact-label {
    font-size: 0.9rem;
    color: var(--secondary-color);
    line-height: 1.4;
}

.application-notes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--light-color);
}

.application-note-item {
    background: rgba(54, 124, 43, 0.05);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-yellow);
}

.application-note-item h5 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.email-examples {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.email-example {
    background: var(--white);
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    font-family: 'IBM Plex Sans JP', monospace;
    font-size: 0.85rem;
    color: var(--primary-green);
    border: 1px solid rgba(54, 124, 43, 0.2);
}

.application-note-item p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--dark-color);
    margin: 0;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .section.exhibition {
        margin-top: 60px; /* タブレット時のヘッダー高さに対応 */
    }

    .application-method {
        padding: 2rem;
    }
    
    .application-method h3 {
        font-size: 1.5rem;
    }
    
    .application-notes {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-right: 1rem;
    }
    
    .application-step:not(:last-child)::after {
        left: 19px;
        top: 50px;
    }
    
    .step-content h4 {
        font-size: 1.1rem;
    }
    
    .step-content p {
        font-size: 0.95rem;
    }
}

/* デスクトップ大 */
@media (max-width: 1200px) {
    .exhibition-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* タブレット */
@media (max-width: 768px) {
    .exhibition-main {
        padding: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .exhibition-main h3 {
        font-size: 1.5rem;
    }
    
    .exhibition-main p {
        font-size: 1rem;
    }
    
    .exhibition-table-container {
        margin: 1.5rem 0;
        border-radius: 10px;
    }
    
    .exhibition-table {
        font-size: 0.9rem;
        min-width: 700px;
    }
    
    .exhibition-table th,
    .exhibition-table td {
        padding: 1rem 0.75rem;
    }
    
    .category-name {
        font-size: 1rem;
    }
    
    .category-description {
        font-size: 0.85rem;
    }
    
    .download-link {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
    
    /* タブレットでもカードは非表示のまま */
    .exhibition-cards {
        display: none;
    }
}

/* モバイル - テーブルをカード形式に変換 */
@media (max-width: 576px) {
    .section.exhibition {
        margin-top: 60px; /* モバイル時のヘッダー高さに対応 */
    }
 
    .application-method {
        padding: 1.5rem;
    }
    
    .application-method h3 {
        font-size: 1.3rem;
    }
    
    .application-step {
        flex-direction: column;
        text-align: center;
        margin-bottom: 2.5rem;
    }
    
    .application-step:not(:last-child)::after {
        display: none;
    }
    
    .step-number {
        margin: 0 auto 1rem auto;
    }
    
    .contact-info {
        text-align: left;
    }
    
    .application-note-item {
        padding: 1.25rem;
    }
    
    .email-examples {
        gap: 0.3rem;
    }
    
    .email-example {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
 
    .exhibition-main {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .exhibition-main h3 {
        font-size: 1.3rem;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .exhibition-main p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    /* テーブルコンテナの背景・影を削除 */
    .exhibition-table-container {
        background: none;
        box-shadow: none;
        border-radius: 0;
        margin: 1.5rem 0;
        overflow: visible;
    }
    
    /* テーブルを非表示 */
    .exhibition-table {
        display: none;
    }
    
    /* カード形式を表示 */
    .exhibition-cards {
        display: block;
    }
    
    .exhibition-card {
        background: var(--white);
        border-radius: 15px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
        margin-bottom: 1.5rem;
        padding: 1.5rem;
        border-left: 4px solid var(--primary-green);
    }
    
    .exhibition-card:last-child {
        margin-bottom: 0;
    }
    
    .card-category {
        margin-bottom: 1rem;
    }
    
    .card-category-name {
        font-size: 1.1rem;
        font-weight: 700;
        color: var(--primary-green);
        margin-bottom: 0.5rem;
        line-height: 1.3;
    }
    
    .card-category-description {
        font-size: 0.9rem;
        color: var(--secondary-color);
        line-height: 1.4;
        margin-bottom: 1rem;
    }
    
    .card-details {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        margin-bottom: 1rem;
    }
    
    .card-detail-item {
        text-align: center;
    }
    
    .card-detail-label {
        font-size: 0.75rem;
        color: var(--secondary-color);
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 0.3rem;
    }
    
    .card-detail-value {
        font-size: 0.9rem;
        color: var(--dark-color);
        font-weight: 500;
    }
    
    .card-download {
        text-align: center;
        padding-top: 1rem;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .card-download .download-link {
        font-size: 0.85rem;
        padding: 0.6rem 1.5rem;
        display: inline-block;
        background: linear-gradient(135deg, var(--primary-green), #4a9c3e);
        color: var(--white);
        border-radius: 25px;
        text-decoration: none;
        font-weight: 600;
        transition: all 0.3s ease;
    }
    
    .card-download .download-link:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(54, 124, 43, 0.3);
    }
 
    .card-download2 {
        text-align: center;
        padding-top: 1rem;
        /* border-topを削除して区切り線重複を解決 */
    }
    
    .card-download2 .download-link {
        font-size: 0.85rem;
        padding: 0.6rem 1.5rem;
        display: inline-block;
        background: linear-gradient(135deg, var(--primary-green), #4a9c3e);
        color: var(--white);
        border-radius: 25px;
        text-decoration: none;
        font-weight: 600;
        transition: all 0.3s ease;
    }
    
    .card-download2 .download-link:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(54, 124, 43, 0.3);
    }
    
    .exhibition-note {
        padding: 1.5rem;
        margin-top: 1.5rem;
    }
    
    .exhibition-note p {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
    }
 }
 
 /* 極小画面対応 */
 @media (max-width: 480px) {
    .exhibition-main {
        padding: 1.25rem;
    }
    
    .exhibition-card {
        padding: 1.25rem;
    }
    
    .card-category-name {
        font-size: 1rem;
    }
    
    .card-category-description {
        font-size: 0.85rem;
    }
    
    .card-details {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .card-download .download-link,
    .card-download2 .download-link {
        font-size: 0.8rem;
        padding: 0.5rem 1.2rem;
    }
    
    .exhibition-note {
        padding: 1.25rem;
    }
 }

/* ==============================================
   広告の募集セクション - レスポンシブ対応
============================================== */

/* タブレット */
@media (max-width: 768px) {
    .advertisement-types {
        grid-template-columns: 1fr;
    }
    
    .advertisement-main {
        padding: 2rem;
    }
    
    .advertisement-main h3 {
        font-size: 1.5rem;
    }
    
    .advertisement-main p {
        font-size: 1rem;
    }
    
    .ad-type h4 {
        font-size: 1.2rem;
    }
    
    .ad-type p {
        font-size: 0.95rem;
    }
}

/* モバイル */
@media (max-width: 576px) {
    .advertisement-main {
        padding: 1.5rem;
    }
    
    .ad-type {
        padding: 1.5rem;
    }
}

/* ==============================================
   ボランティア募集セクション
============================================== */

.volunteer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
}

.volunteer-main {
    background: var(--white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.volunteer-main h3 {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 1.5rem;
}

.volunteer-main p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark-color);
}

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

.volunteer-role {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
    border-top: 3px solid var(--primary-green);
}

.volunteer-role:hover {
    transform: translateY(-3px);
}

.volunteer-role h4 {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.volunteer-role p {
    font-size: 1rem;
    color: var(--dark-color);
}

/* ==============================================
   ボランティア募集セクション - レスポンシブ対応
============================================== */

/* デスクトップ大 */
@media (max-width: 1200px) {
    .volunteer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* タブレット */
@media (max-width: 768px) {
    .volunteer-roles {
        grid-template-columns: 1fr;
    }
    
    .volunteer-main {
        padding: 2rem;
    }
    
    .volunteer-main h3 {
        font-size: 1.5rem;
    }
    
    .volunteer-main p {
        font-size: 1rem;
    }
    
    .volunteer-role h4 {
        font-size: 1.2rem;
    }
    
    .volunteer-role p {
        font-size: 0.95rem;
    }
    
    .volunteer-role {
        padding: 1.5rem;
    }
}

/* モバイル */
@media (max-width: 576px) {
    .volunteer-main {
        padding: 1.5rem;
    }
    
    .volunteer-role {
        padding: 1.5rem;
    }
}

/* ==============================================
   フォトギャラリーセクション - 最適化版
============================================== */

/* インタラクティブ・マソナリーグリッド */
.section.gallery-masonry {
    background: linear-gradient(135deg, #f7ecd7 0%, #f3e3c3 100%);
    padding: 5rem 0;
    overflow: hidden;
    position: relative;
}

/* セクション背景の微細なテクスチャ効果 */
.section.gallery-masonry::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

/* マソナリーグリッドコンテナ */
.masonry-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-auto-rows: 200px;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* マソナリーアイテム - 滑らかなアニメーション最適化 */
.masonry-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    /* 滑らかなトランジション設定 - 統一されたイージング */
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 1px 8px rgba(0, 0, 0, 0.2);
    /* GPU加速を有効化してパフォーマンス向上 */
    will-change: transform;
    transform: translateZ(0); /* 3D変形コンテキストを作成 */
}

/* ホバー時のアイテム変形 - よりスムーズに */
.masonry-item:hover {
    transform: translateY(-8px) translateZ(0);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.4),
        0 8px 16px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

/* サイズバリエーション */
.masonry-tall {
    grid-row: span 2;
}

.masonry-wide {
    grid-column: span 2;
}

/* 画像スタイル - 滑らかな拡大効果 + 遅延読み込み対応 */
.masonry-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 画像の滑らかなスケール変形 */
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.4s ease;
    /* GPU加速とパフォーマンス最適化 */
    will-change: transform;
    transform: translateZ(0);
    /* 画像の品質向上 */
    image-rendering: optimizeQuality;
    /* 遅延読み込み用の初期状態 */
    opacity: 0;
}

/* ホバー時の画像拡大 - 適度なスケール */
.masonry-item:hover img {
    transform: scale(1.05) translateZ(0);
}

/* オーバーレイ効果 */
.masonry-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.1) 40%,
        rgba(0, 0, 0, 0.7) 100%
    );
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    pointer-events: none;
}

/* ホバー時のオーバーレイ表示 */
.masonry-item:hover .masonry-overlay {
    opacity: 1;
}

/* オーバーレイコンテンツ */
.masonry-content h3 {
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    transform: translateY(10px);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.masonry-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    line-height: 1.4;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    transform: translateY(10px);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ホバー時のテキストアニメーション */
.masonry-item:hover .masonry-content h3,
.masonry-item:hover .masonry-content p {
    transform: translateY(0);
}

/* ==============================================
   ギャラリーモーダル - 改良版
============================================== */

.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(0px);
}

.gallery-modal.active {
    opacity: 1;
    visibility: visible;
    backdrop-filter: blur(5px);
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    height: 90%;
    margin: 5% auto;
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 8px 16px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(50px);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-modal.active .modal-content {
    transform: scale(1) translateY(0);
}

/* モーダルコントロールボタン */
.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.modal-prev,
.modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    font-size: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

.modal-prev:hover,
.modal-next:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

/* モーダル画像エリア */
.modal-image-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #000;
    position: relative;
}

.modal-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
    transition: opacity 0.3s ease;
}

/* モーダル情報エリア */
.modal-info {
    background: var(--white);
    padding: 2rem;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.modal-description {
    font-size: 1rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.modal-counter {
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-weight: 600;
    background: var(--light-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: inline-block;
}

/* ==============================================
   マソナリーアイテムのフェードインアニメーション
============================================== */

.masonry-fade-in {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    animation: fadeInUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

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

/* 遅延読み込み完了時の表示 */
.masonry-item img.loaded {
    opacity: 1;
}

/* ==============================================
   フォトギャラリーセクション - レスポンシブ対応
============================================== */

/* タブレット */
@media (max-width: 992px) {
    .masonry-gallery {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .masonry-wide {
        grid-column: span 1; /* タブレットでは wide クラスを無効化 */
    }
}

/* タブレット */
@media (max-width: 768px) {
    .section.gallery-masonry {
        padding: 3rem 0;
    }
    
    .masonry-gallery {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 12px;
    }
    
    .masonry-tall,
    .masonry-wide {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .gallery-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    /* モーダルのレスポンシブ */
    .modal-content {
        width: 95%;
        height: 95%;
        margin: 2.5% auto;
    }
    
    .modal-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .modal-prev,
    .modal-next {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .modal-prev {
        left: 10px;
    }
    
    .modal-next {
        right: 10px;
    }
    
    .modal-info {
        padding: 1rem;
    }
    
    .modal-title {
        font-size: 1.2rem;
    }
    
    .modal-description {
        font-size: 0.9rem;
    }
}

/* モバイル */
@media (max-width: 576px) {
    .masonry-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .masonry-overlay {
        padding: 1rem;
    }
    
    .masonry-content h3 {
        font-size: 1.1rem;
    }
    
    .masonry-content p {
        font-size: 0.8rem;
    }
}

/* ==============================================
   アクセシビリティとパフォーマンス
============================================== */

/* 動きを減らしたい設定のユーザー向け */
@media (prefers-reduced-motion: reduce) {
    .masonry-item,
    .masonry-item img,
    .masonry-overlay,
    .masonry-content h3,
    .masonry-content p,
    .gallery-modal,
    .modal-content {
        transition: none;
    }
    
    .masonry-item:hover {
        transform: none;
    }
    
    .masonry-item:hover img {
        transform: none;
    }
    
    .masonry-fade-in {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* フォーカス状態の改善 */
.masonry-item:focus-visible {
    outline: 3px solid var(--primary-yellow);
    outline-offset: 2px;
}

.modal-close:focus-visible,
.modal-prev:focus-visible,
.modal-next:focus-visible {
    outline: 3px solid var(--primary-yellow);
    outline-offset: 2px;
}

/* 高解像度ディスプレイ対応 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .masonry-item img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: optimize-contrast;
    }
}

/* ==============================================
   主催団体セクション
============================================== */

.organizers-list {
    background: var(--white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.organizers-list ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.organizers-list li {
    font-size: 1.2rem;
    color: var(--dark-color);
    padding: 1rem;
    background: var(--light-color);
    border-radius: 8px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.organizers-list li a {
    color: var(--dark-color); /* 青文字を無効化 */
    text-decoration: none; /* 下線を削除 */
    display: block; /* ブロック要素にしてクリック範囲を広げる */
    width: 100%;
    margin: -1rem; /* 親のpaddingを相殺 */
    padding: 1rem; /* 同じpaddingを再適用 */
}

.organizers-list li:hover {
    background: var(--primary-green);
    color: var(--white);
}

.organizers-list li:hover a {
    color: var(--white);
}

/* リンクのないアイテム（NPO法人ポール・ラッシュの会）は別色でホバー */
.organizers-list li:nth-child(4):hover {
    background: var(--secondary-color);
}

.organizers-list li a:focus-visible {
    outline: 3px solid var(--primary-yellow);
    outline-offset: 2px;
}
/* ==============================================
   主催団体セクション - レスポンシブ対応
============================================== */

/* タブレット */
@media (max-width: 768px) {
    .organizers-list {
        padding: 2rem;
    }
    
    .organizers-list li {
        font-size: 1.1rem;
        padding: 0.8rem;
    }
}

/* モバイル */
@media (max-width: 576px) {
    .organizers-list {
        padding: 1.5rem;
    }
    
    .organizers-list li {
        font-size: 1rem;
        padding: 0.8rem;
    }
}

/* ==============================================
   フッター
============================================== */

.footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    color: var(--white);
    padding: 3rem 0 1rem;
}

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

.footer-title h3 {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-yellow);
}

.footer-title p {
    font-size: 1rem;
    color: var(--white);
    opacity: 0.9;
}

.footer-info p {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom p {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ==============================================
   フッター - レスポンシブ対応
============================================== */

/* デスクトップ大 */
@media (max-width: 1200px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* タブレット */
@media (max-width: 768px) {
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-title h3 {
        font-size: 1.5rem;
    }
    
    .footer-title p,
    .footer-info p {
        font-size: 0.9rem;
    }
}

/* モバイル */
@media (max-width: 576px) {
    .footer {
        padding: 1.5rem 0 1rem;
    }
    
    .footer-content {
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .footer-title h3 {
        font-size: 1.3rem;
    }
    
    .footer-bottom {
        padding-top: 1.5rem;
    }
    
    .footer-bottom p {
        font-size: 0.8rem;
    }
}

/* ==============================================
   アニメーション
============================================== */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.9;
    }
}

@keyframes scrollAnim {
    0% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateX(-50%) translateY(25px);
        opacity: 0;
    }
}

/* ==============================================
   レスポンシブ対応の追加・統合
============================================== */

/* モバイルでのホバーエフェクト軽減 */
@media (max-width: 768px) {
    .section.exhibition::before,
    .section.advertisement::before,
    .section.volunteer::before {
        opacity: 0.5;
    }
    
    .section.exhibition .exhibition-item:hover,
    .section.advertisement .ad-type:hover,
    .section.volunteer .volunteer-role:hover {
        transform: none; /* モバイルではホバーエフェクトを軽減 */
    }
    
    .detail-card:hover,
    .program-category:hover,
    .exhibition-main:hover,
    .advertisement-main:hover,
    .volunteer-main:hover,
    .organizers-list:hover {
        transform: none; /* モバイルでホバー変形を無効化 */
    }
}

/* 共通のカード要素のモバイル調整 */
@media (max-width: 576px) {
    .detail-card,
    .program-category,
    .exhibition-main,
    .advertisement-main,
    .volunteer-main,
    .organizers-list {
        padding: 2rem;
    }
    
    .stat-item,
    .exhibition-item,
    .ad-type,
    .volunteer-role {
        padding: 1.5rem;
    }
}

/* ==============================================
   アクセシビリティ強化
============================================== */

@media (prefers-reduced-motion: reduce) {
    .section.exhibition .exhibition-main,
    .section.exhibition .exhibition-item,
    .section.advertisement .advertisement-main,
    .section.advertisement .ad-type,
    .section.volunteer .volunteer-main,
    .section.volunteer .volunteer-role,
    .detail-card,
    .program-category,
    .organizers-list li,
    .news-item,
    .news-more-link,
    .stat-item {
        transition: none;
    }
    
    .section.exhibition .exhibition-item:hover,
    .section.advertisement .ad-type:hover,
    .section.volunteer .volunteer-role:hover,
    .detail-card:hover,
    .program-category:hover,
    .organizers-list li:hover,
    .news-item:hover,
    .stat-item:hover {
        transform: none;
    }
    
    /* アニメーションを無効化 */
    .hero-subtitle,
    .hero-title,
    .hero-title-sub,
    .hero-description,
    .hero-date-info,
    .anniversary-logo,
    .county-fair-logo,
    .scroll-indicator {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* フォーカス状態の改善 */
.section.exhibition .exhibition-main:focus-within,
.section.advertisement .advertisement-main:focus-within,
.section.volunteer .volunteer-main:focus-within,
.detail-card:focus-within,
.program-category:focus-within,
.organizers-list:focus-within,
.news-item:focus-within {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

.news-more-link:focus-visible,
.accommodation-link:focus-visible,
.download-link:focus-visible,
.program-card-button:focus-visible {
    outline: 3px solid var(--primary-yellow);
    outline-offset: 2px;
}

/* ==============================================
   印刷スタイル
============================================== */

@media print {
    .hero-section,
    .scroll-indicator,
    .news-more-link,
    .accommodation-link,
    .download-link,
    .program-card-button {
        display: none;
    }
    
    .section {
        padding: 2rem 0;
        page-break-inside: avoid;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    .section-title {
        color: #000;
        font-size: 1.5rem;
    }
    
    .detail-card,
    .program-category,
    .exhibition-main,
    .advertisement-main,
    .volunteer-main,
    .organizers-list {
        box-shadow: none;
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }
}

/* ==============================================
   高解像度ディスプレイ対応
============================================== */

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-section::before {
        background-image: url('../images/county.jpg'), url('../images/county.jpg');
    }
    
    .section.about {
        background:
            linear-gradient(rgba(255, 222, 0, 0.92), rgba(255, 222, 0, 0.92)),
            url('../images/county.jpg') center center/cover no-repeat,
            url('../images/county.jpg') center center/cover no-repeat;
    }
}

/* ==============================================
   ダークモード対応（オプション）
============================================== */

@media (prefers-color-scheme: dark) {
    /* ダークモード時の調整が必要な場合はここに追加 */
    /* 現在のデザインは既に暗い背景を使用しているため、必要に応じて調整 */
}

/* ==============================================
   IE11サポート（オプション）
============================================== */

/* CSS Grid のフォールバック */
@supports not (display: grid) {
    .details-grid,
    .program-content,
    .advertisement-types,
    .volunteer-roles,
    .masonry-gallery,
    .program-grid {
        display: flex;
        flex-wrap: wrap;
    }
    
    .detail-card,
    .program-category,
    .ad-type,
    .volunteer-role,
    .masonry-item,
    .program-card {
        flex: 1 1 300px;
        margin: 1rem;
    }
}

/* CSS Custom Properties のフォールバック */
@supports not (color: var(--primary-green)) {
    .hero-title,
    .section-title,
    .detail-card h3,
    .program-category h3 {
        color: #367C2B;
    }
    
    .hero-subtitle,
    .year,
    .footer-title h3 {
        color: #FFDE00;
    }
}

/* ==============================================
   パフォーマンス最適化
============================================== */

/* GPU レイヤーの最適化 */
.hero-section,
.masonry-item,
.modal-content,
.program-card {
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    -o-transform: translateZ(0);
    transform: translateZ(0);
}

/* スクロールパフォーマンスの向上 */
.hero-section,
.section.gallery-masonry {
    -webkit-overflow-scrolling: touch;
}

/* フォントレンダリングの最適化 */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}