/* イベント・お知らせページ固有のスタイル */

/* ヒーローセクション */
.events-hero {
    margin-top: 80px;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
                url('https://shibetsu-jc.or.jp/images/events/2024yakyu.jpg') no-repeat center center/cover;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.events-hero .hero-content h1 {
    font-size: 80px;
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
    font-family: 'Noto Sans JP', 'Helvetica Neue', Arial, sans-serif;
}

/* フィルターセクション（削除済み） */

/* メインコンテンツ */
.main-content-section {
    padding: 80px 0;
    background-color: white;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

/* イベント・お知らせ一覧 */
.events-news-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.event-item {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.event-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.event-item.hidden {
    display: none;
}

/* イベント画像 */
.event-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

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

.event-date {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.event-date .day {
    display: block;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.event-date .month {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* イベントコンテンツ */
.event-content {
    padding: 30px;
}

.event-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.event-category {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-time {
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.event-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark-color);
    line-height: 1.3;
}

.event-excerpt {
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* イベント詳細 */
.event-details {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
}

.detail-item i {
    color: var(--primary-color);
    width: 16px;
}

/* ボタン */
.btn-small {
    padding: 10px 20px;
    font-size: 14px;
}

/* ページネーション */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.page-btn {
    padding: 10px 15px;
    background-color: white;
    color: var(--dark-color);
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.page-btn:hover,
.page-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* サイドバー */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* ウィジェット共通スタイル */
.widget {
    background-color: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}

.widget-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 10px;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Facebookウィジェット */
.facebook-widget {
    text-align: center;
}

.facebook-widget .fb-page {
    width: 100% !important;
}

/* カテゴリウィジェット */
.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 12px;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    color: var(--dark-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.category-list a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

.category-list span {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* 最新情報ウィジェット */
.recent-posts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.recent-post {
    display: flex;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.recent-post:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recent-image {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
}

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

.recent-content h4 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 5px;
}

.recent-content a {
    color: var(--dark-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.recent-content a:hover {
    color: var(--primary-color);
}

.recent-date {
    font-size: 12px;
    color: #999;
}

/* バナーウィジェット */
.banner-content {
    text-align: center;
}

.banner-content img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.banner-content h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.banner-content p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

/* お問い合わせCTAセクション */
.contact-cta-section {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                url('https://shibetsu-jc.or.jp/images/main/annai.jpg') no-repeat center center/cover !important;
    padding: 80px 0;
    text-align: center;
}

.contact-cta-section .cta-content h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.contact-cta-section .cta-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9) !important;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* レスポンシブデザイン */
@media (max-width: 1200px) {
    .content-grid {
        gap: 30px;
    }
}

@media (max-width: 992px) {
    .events-hero {
        height: 60vh;
    }

    .events-hero .hero-content h1 {
        font-size: 60px;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .sidebar {
        order: -1;
    }

    .filter-buttons {
        gap: 15px;
    }

    .filter-btn {
        padding: 10px 18px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .events-hero {
        height: 50vh;
    }

    .events-hero .hero-content h1 {
        font-size: 50px;
    }

    .main-content-section {
        padding: 60px 0;
    }

    .event-content {
        padding: 25px;
    }

    .event-title {
        font-size: 20px;
    }

    .event-details {
        flex-direction: column;
        gap: 10px;
    }

    .filter-buttons {
        justify-content: flex-start;
        overflow-x: auto;
        padding: 0 20px;
    }

    .filter-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }

    .widget {
        padding: 20px;
    }

    .facebook-widget .fb-page {
        min-height: 400px;
    }
}

@media (max-width: 576px) {
    .events-hero .hero-content h1 {
        font-size: 40px;
    }

    .event-image {
        height: 200px;
    }

    .event-content {
        padding: 20px;
    }

    .event-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 5px;
    }

    .page-btn {
        padding: 8px 12px;
        font-size: 14px;
    }

    .widget {
        padding: 15px;
    }

    .recent-post {
        gap: 10px;
    }

    .recent-image {
        width: 60px;
        height: 45px;
    }
}

/* アニメーション用の追加スタイル */
.event-item {
    transition: all 0.5s ease;
}

.event-item.fade-out {
    opacity: 0;
    transform: translateY(20px);
}

.event-item.fade-in {
    opacity: 1;
    transform: translateY(0);
}