@charset "UTF-8";

/* ============================================================
   イベント一覧 (archive-event)
   ============================================================ */
.event-columns {
    display: flex;
    align-items: flex-start;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.event-column-left {
    flex: 0 0 55%; 
    margin-left: calc(50% - 50vw); 
    overflow: visible; 
}

.event-column-left img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.event-column-right {
    flex: 1;
    padding: 20px 0 40px 40px;
    min-width: 0;
}

.event-table {
    width: 100%;
    border-collapse: separate; 
    border-spacing: 0;          
    margin: 20px 0 0;
    border-top: 1px solid #ccc;
    border-left: 1px solid #ccc;
    table-layout: fixed;
}

.event-table th,
.event-table td {
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid #ccc;
    border-right: 1px solid #ccc; 
    word-break: break-all;
    box-sizing: border-box;
}

/* 一覧テーブル列幅設定 */
.event-table th:nth-child(1) { width: 15%; }
.event-table th:nth-child(2) { width: 10%; }
.event-table th:nth-child(3) { width: 15%; }
.event-table th:nth-child(4) { width: 60%; }

.event-table th:nth-child(2),
.event-table td:nth-child(2),
.event-table th:nth-child(3),
.event-table td:nth-child(3),
.event-table thead th:nth-child(1),
.event-table thead th:nth-child(4) {
    text-align: center;
}

.event-image-link {
    text-decoration: none !important;
    transition: 0.3s;
}

.event-title-flex {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 5px;
    width: 100%;
}

/* 報告ボタン */
.report-btn {
    display: inline-block;
    padding: 4px 12px;
    background-color: var(--accent-color);
    color: #fff !important;
    font-size: 0.8rem;
    text-decoration: none !important;
    border-radius: 4px;
    white-space: nowrap;
    line-height: 1.4;
    flex-shrink: 0;
}

.report-btn i { margin-right: 5px; }
.report-btn:hover {
    background-color: var(--sub-color);
    color: var(--accent-color) !important;
}

/* 催事名リンク装飾（太字 & メインカラー） */
.event-image-link {
    text-decoration: none !important;
    transition: 0.3s;
}

.event-image-link:hover {
    opacity: 0.7;
    color: var(--main-color) !important;
}


/* ============================================================
   イベントレポート詳細 (single-event)
   ============================================================ */
.event-report-container {
    padding: 40px 0 80px;
}

.report-title {
    color: var(--main-color);
    margin-bottom: 20px;
    line-height: 1.4;
    font-weight: bold;
}

/* --- 上部：2カラムレイアウト --- */
.report-top-layout {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.report-main-info {
    flex: 1;
}

.report-side-eyecatch {
    width: 340px;
    flex-shrink: 0;
	margin:0 0 60px 60px;
}

/* --- 概要リストのデザイン --- */
.summary-list { margin-bottom: 20px; }
.summary-item { display: flex; padding: 4px 0; }
.summary-label {
    width: 120px;
    color: #666;
    font-weight: bold;
    flex-shrink: 0;
}


/* 活動レポート見出し */
.sub-title {
    margin-bottom: 20px;
    display: inline-block;
}

.report-text {
    line-height: 2;
}

/* --- 下部：ギャラリー (3カラム) --- */
.report-bottom-gallery {
    margin: 20px auto 80px;
}

.sub-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* --- 写真の共通設定 (角丸12px) --- */
.report-rounded-img,
.photo-item img,
.eyecatch-wrapper img {
	width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

/* アイキャッチ画像のみに枠線を追加 */
.eyecatch-wrapper img {
    border: 1px solid var(--accent-color);
    background-color: #fff;
}

.photo-item img {
    aspect-ratio: 4 / 3;
}

.event-report-lead {
    font-size: 1.2em;
    font-weight: bold;
    line-height: 1.8;
    color: #333;
    margin-bottom: 40px;
}



/* ============================================================
   スマホ表示 (768px以下共通)
   ============================================================ */
@media (max-width: 768px) {
    .event-table { font-size: 0.8rem !important; }
    .event-name  { font-size: 0.8rem !important; }
    .report-btn  { font-size: 0.65rem !important; }

.event-table th,
.event-table td {
    padding: 4px 5px;
}

	.event-columns {
        flex-direction: column;
        padding: 0;
    }

    .event-column-left {
        width: 100%;
        margin-left: 0;
    }

    .event-column-right {
        width: 100%;
        padding: 5px;
        box-sizing: border-box;
    }

    .event-table-wrapper {
        width: 100%;
        overflow-x: auto;
    }


    .event-table th:nth-child(1) { width: 20%; }
    .event-table th:nth-child(2) { width: 12%; }
    .event-table th:nth-child(3) { width: 12%; }
    .event-table th:nth-child(4) { width: 56%; }

    .event-title-flex {
        display: flex !important;
        flex-direction: column !important; /* 上下に並べる設定 */
        align-items: flex-start !important; /* ★ここが重要：子要素を左に寄せる */
        justify-content: flex-start !important;
        width: 100% !important;
	}

    .event-year-nav-list {
        justify-content: center;
        gap: 10px;
    }

    /* レポート詳細用 */
    .report-top-layout {
        flex-direction: column;
        gap: 10px;
    }

    .report-main-info { order: 1; }
    .report-side-eyecatch {
        width: 100%;
        order: 2;
    }

    .report-title {
        font-size: 1.5rem;
    }

    /* ギャラリーを1カラムに */
    .sub-photo-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .photo-item img {
        aspect-ratio: auto;
    }

    .summary-label {
        width: 100px;
        font-size: 0.95rem;
    }
	
    .event-report-lead {
        font-size: 1em;
        margin-bottom: 30px;
    }
}