/* イベント詳細ページのスタイル */

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
}

.event-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.event-detail-container h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1a1a1a;
}

/* ナビゲーション */
.event-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e9ecef;
}

.event-nav a {
    padding: 12px 24px;
    text-decoration: none;
    color: #6c757d;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
}

.event-nav a:hover {
    color: #4285f4;
}

.event-nav a.active {
    border-bottom-color: #4285f4;
    color: #4285f4;
    font-weight: 600;
}

/* テーブル */
.event-detail-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.event-detail-table th {
    width: 220px;
    padding: 16px 20px;
    background: #f8f9fa;
    font-weight: 600;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
    vertical-align: top;
    color: #495057;
    font-size: 15px;
}

.event-detail-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #e9ecef;
    color: #212529;
    font-size: 15px;
}

.event-detail-table tr:last-child th,
.event-detail-table tr:last-child td {
    border-bottom: none;
}

.event-detail-table a {
    color: #4285f4;
    text-decoration: none;
    word-break: break-all;
}

.event-detail-table a:hover {
    text-decoration: underline;
}

/* 地図コンテナ */
.map-container {
    margin-top: 30px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.map-container h2 {
    font-size: 20px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.map-container iframe {
    border-radius: 8px;
}

/* 戻るリンク */
.back-link-container {
    margin-top: 30px;
    text-align: center;
}

.back-link {
    display: inline-block;
    padding: 12px 24px;
    background: #4285f4;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.back-link:hover {
    background: #3367d6;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .event-detail-container {
        padding: 15px;
    }
    
    .event-detail-container h1 {
        font-size: 22px;
    }
    
    .event-nav {
        gap: 5px;
    }
    
    .event-nav a {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .event-detail-table th {
        width: 100px;
        padding: 12px 10px;
        font-size: 13px;
    }
    
    .event-detail-table td {
        padding: 12px 10px;
        font-size: 14px;
    }
    
    .map-container {
        padding: 15px;
    }
}

/* 詳細ページのアンカーリンクスタイル */
.detail-link {
    color: #4285f4;
    text-decoration: none;
    transition: color 0.3s ease;
}

.detail-link:hover {
    color: #3367d6;
    text-decoration: underline;
}

/* (既存のスタイルはそのまま) */

/* ★★★ パンくずリストのスタイル ★★★ */
.detail-breadcrumbs {
    padding: 10px 0;
    margin-bottom: 15px;
    font-size: 14px;
}

.detail-breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.detail-breadcrumbs li {
    display: flex;
    align-items: center;
}

.detail-breadcrumbs li:not(:last-child)::after {
    content: '>';
    margin: 0 0.7em;
    color: #6c757d;
}

.detail-breadcrumbs a {
    color: #4285f4;
    text-decoration: none;
    transition: color 0.2s;
}

.detail-breadcrumbs a:hover {
    text-decoration: underline;
    color: #3367d6;
}

.detail-breadcrumbs [aria-current="page"] {
    color: #343a40;
    font-weight: normal;
}

/* テキストコンテンツとH2の間にスペースを追加 */
.event-text-content {
    margin-bottom: 2rem; /* または 30px、お好みのサイズに調整可能 */
}

/* H2見出しの上部余白も確保 */
.event-detail-container h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* 関連イベントセクション */
.related-events-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #e0e0e0;
}

.related-events-section h2 {
    font-size: 24px;
    margin-bottom: 30px;
    color: #333;
}

.related-events-section .event-item-horizontal-fixed {
    margin-bottom: 20px;
}

.related-events-section h3 {
    font-size: 18px;
    margin: 0 0 10px 0;
}

.related-events-section h3 a {
    color: #333;
    text-decoration: none;
}

.related-events-section h3 a:hover {
    color: #4285f4;
}

.related-events-cta {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
}

.view-all-related-button {
    display: inline-block;
    background: #4285f4;
    color: white !important;
    padding: 14px 32px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.view-all-related-button:hover {
    background: #3367d6;
    text-decoration: none !important;
}

@media (max-width: 768px) {
    .related-events-section h2 {
        font-size: 20px;
    }
    
    .view-all-related-button {
        width: 100%;
        max-width: 320px;
    }
}


.event-header-horizontal-fixed {
    margin-bottom: 12px;
}

.event-header-horizontal-fixed h3 {
    margin: 0;
    font-size: 23px;
    font-weight: 600;
    line-height: 1.4;
    word-wrap: break-word;
    max-width: 600px;
    overflow-wrap: break-word;
    color: #333;
    transition: color 0.3s ease;
}

/* 例：既存のH2リンクが#1a73e8の場合 */
.event-header-horizontal-fixed h3 a,
.facet-search-link,
.facet-internal-link {
    color: #1a73e8;
    text-decoration: none;
}

.event-header-horizontal-fixed h3 a:hover,
.facet-search-link:hover,
.facet-internal-link:hover {
    color: #0d47a1;
    text-decoration: underline;
}

.event-header-horizontal-fixed h3 a:focus,
.facet-search-link:focus,
.facet-internal-link:focus {
    outline: 2px solid #4285f4;
    outline-offset: 2px;
    border-radius: 2px;
}