/**
 * 健康フェアページスタイル
 * Health Fair Page Styles
 */

/* ページバナー */
.health-event-page .page-banner {
    position: relative;
    text-align: center;
    padding: 200px 0 var(--spacing-xl);
    margin-bottom: -15px;
    background-color: #4aade5;
}

.health-event-page .page-banner::before {
    content: '';
    position: absolute;
    top: auto;
    bottom: 0;
    left: 14%;
    width: 350px;
    height: 180px;
    background-image: url('../images/trees-left.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    pointer-events: none;
    z-index: 1;
}

.health-event-page .page-banner::after {
    content: '';
    position: absolute;
    top: auto;
    bottom: 0;
    right: 14%;
    width: 350px;
    height: 180px;
    background-image: url('../images/trees-right.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    pointer-events: none;
    z-index: 1;
}

.health-event-page .banner-bg {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-image: url('../images/bg_title.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    position: relative;
    min-width: 550px;
    min-height: 170px;
    z-index: 2;
}

.health-event-page .banner-title {
    color: var(--color-white);
    font-size: 26px;
    font-weight: var(--font-weight-bold);
    margin: 0 0 var(--spacing-xs);
    line-height: 1;
    white-space: nowrap;
}

.health-event-page .banner-subtitle {
    color: var(--color-white);
    font-size: var(--font-size-sm);
    margin: 0;
    opacity: 0.95;
}

/* パンくず */
.health-event-page .breadcrumb-wrapper {
    background-color: var(--color-white);
    padding: var(--spacing-md) 0;
    width: 100%;
}

/* コンテンツ */
.health-event-page {
    padding: 0;
    background-color: var(--color-white);
}

.health-event-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: var(--spacing-3xl) var(--spacing-md);
}

.health-event-intro {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
    font-size: var(--font-size-base);
    color: var(--color-text-primary);
    line-height: 1.8;
}


/* イベントテーブル */
.health-event-table-wrapper {
    overflow-x: auto;
}

.health-event-table {
    width: 100%;
    border-collapse: collapse;
}

.health-event-table thead {
    display: none;
}

.health-event-table tbody tr {
    display: flex;
    align-items: center;
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid #e0e0e0;
    gap: var(--spacing-md);
}

.health-event-table tbody tr:first-child {
    border-top: 2px solid #4aade5;
}

.col-date {
    flex: 0 0 200px;
    font-size: var(--font-size-base);
    color: var(--color-text-primary);
    white-space: nowrap;
}

.col-time {
    flex: 0 0 130px;
    font-size: var(--font-size-base);
    color: var(--color-text-primary);
    white-space: nowrap;
}

.col-shop {
    flex: 0 0 140px;
}

.col-shop .shop-link {
    color: #4aade5;
    text-decoration: underline;
    font-weight: var(--font-weight-medium);
}

.col-shop .shop-link:hover {
    text-decoration: none;
}

.col-category {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.event-tag {
    display: inline-block;
    padding: 4px 16px;
    border-radius: 4px;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    border: 1px solid #4aade5;
    color: #4aade5;
    white-space: nowrap;
}

.col-detail {
    flex: 0 0 auto;
    text-align: right;
}

.btn-detail {
    display: inline-block;
    background-color: #4aade5;
    color: var(--color-white);
    padding: 8px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    white-space: nowrap;
    transition: background-color 0.3s ease;
}

.btn-detail:hover {
    background-color: #3a9ad5;
}

.no-events {
    text-align: center;
    padding: var(--spacing-2xl) 0;
    color: var(--color-text-secondary);
}

/* ページネーション */
.health-event-pagination {
    text-align: center;
    margin-top: var(--spacing-2xl);
}

.health-event-pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 4px;
    border-radius: 4px;
    text-decoration: none;
    color: var(--color-text-primary);
    border: 1px solid #e0e0e0;
}

.health-event-pagination .page-numbers.current {
    background-color: #4aade5;
    color: var(--color-white);
    border-color: #4aade5;
}

/* 個別ページ */
.health-event-single-title {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
    margin: 0 0 var(--spacing-xl);
}

.health-event-single-meta {
    background-color: #f8f8f8;
    border-radius: var(--border-radius-md);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
}

.health-event-single-meta dl {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: var(--spacing-sm) var(--spacing-lg);
    margin: 0;
}

.health-event-single-meta dt {
    font-weight: var(--font-weight-semibold);
    color: #4aade5;
}

.health-event-single-meta dd {
    margin: 0;
}

.health-event-single-thumbnail {
    margin-bottom: var(--spacing-2xl);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.health-event-single-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.health-event-single-body {
    font-size: var(--font-size-base);
    line-height: 1.8;
    margin-bottom: var(--spacing-3xl);
}

.health-event-single-body p {
    margin: 0 0 var(--spacing-md);
}

.health-event-back {
    text-align: center;
    margin-top: var(--spacing-2xl);
}

/* レスポンシブ */
@media (max-width: 767px) {
    .health-event-page .page-banner {
        padding: 15px 0;
        overflow: hidden;
    }

    .health-event-page .page-banner::before,
    .health-event-page .page-banner::after {
        display: none;
    }

    .health-event-page .banner-bg {
        min-width: auto;
    }

    .health-event-page .banner-title {
        font-size: 24px;
    }

    .health-event-table tbody tr {
        flex-wrap: wrap;
        gap: var(--spacing-xs) var(--spacing-md);
        padding: var(--spacing-md) var(--spacing-sm);
    }

    .col-date {
        flex: 1 1 100%;
        font-weight: var(--font-weight-semibold);
    }

    .col-time {
        flex: 0 0 auto;
    }

    .col-shop {
        flex: 0 0 auto;
    }

    .col-category {
        flex: 1 1 100%;
    }

    .col-detail {
        flex: 1 1 100%;
        text-align: left;
    }

    .health-event-single-meta dl {
        grid-template-columns: 80px 1fr;
    }
}
