/* 検索・ソートコントロール */
.search-sort-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding: 15px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.search-bar {
    display: flex;
    flex-grow: 1;
    max-width: 400px;
}

.search-bar input[type="text"] {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
}

.search-bar button {
    padding: 10px 15px;
    border: none;
    background-color: #28a745;
    color: white;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
    font-size: 16px;
    transition: background-color 0.2s;
}

.search-bar button:hover {
    background-color: #218838;
}

.sort-control label {
    font-weight: bold;
    margin-right: 10px;
}

.sort-control select {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

/* フィルタリングタブ */
.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 25px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
}

.tab {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-bottom: none;
    background-color: #f8f8f8;
    cursor: pointer;
    border-radius: 5px 5px 0 0;
    font-weight: bold;
    transition: background-color 0.2s, color 0.2s;
}

.tab:hover {
    background-color: #eee;
}

.tab.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
    border-bottom: 2px solid #007bff;
    position: relative;
    bottom: -2px;
    /* 境界線に被せる */
}

/* 講演者グリッドレイアウト */
.speaker-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

/* 講演者カードリンク */
.speaker-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

/* 講演者カード */
.speaker-card {
    background-color: #fff;
    border: 1px solid #d8d8d8;
    padding: 15px;
    display: flex;
    gap: 15px;
    transition: box-shadow 0.3s;
}

.speaker-card-link:hover .speaker-card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 講演者画像 */
.speaker-image {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* プレースホルダー（画像なしの場合） */
.speaker-image.placeholder .initials {
    font-size: 2.5rem;
    font-weight: bold;
    color: #fff;
}

/* 講演者情報 */
.speaker-info {
    flex-grow: 1;
    min-width: 0;
}

.speaker-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
    margin-top: 0;
    color: #316da2;
}

.speaker-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.speaker-meta p {
    margin: 3px 0;
}

.speaker-stats {
    font-size: 12px;
    color: #333;
}

.speaker-stats p {
    margin: 3px 0;
}

.speaker-stats strong {
    color: #316da2;
}

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

.page-btn {
    padding: 10px 15px;
    border: 1px solid #ccc;
    background-color: white;
    cursor: pointer;
    border-radius: 4px;
    font-size: 16px;
    transition: background-color 0.2s, color 0.2s;
}

.page-btn:hover:not(.active):not([disabled]) {
    background-color: #eee;
}

.page-btn.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.page-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.ellipsis {
    padding: 10px 5px;
    color: #666;
}

/* レスポンシブ対応 */

/* タブレット以上: 2列 */
@media (min-width: 768px) {
    .speaker-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* PC: 3列 */
@media (min-width: 992px) {
    .speaker-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 大画面: 4列、縦型カード */
@media (min-width: 1200px) {
    .speaker-list {
        grid-template-columns: repeat(4, 1fr);
    }

    .speaker-card {
        flex-direction: column;
    }

    .speaker-image {
        width: 100%;
        height: 0;
        padding-top: 100%;
        /* 1:1 aspect ratio */
    }

    .speaker-image img {
        position: absolute;
        top: 0;
        left: 0;
    }

    .speaker-image.placeholder .initials {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 3rem;
    }
}

/* モバイル対応 */
@media (max-width: 768px) {
    .search-sort-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .search-bar {
        max-width: none;
    }

    .sort-control {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .sort-control select {
        flex-grow: 1;
        max-width: 70%;
    }

    .filter-tabs {
        justify-content: center;
    }

    .tab {
        font-size: 0.9em;
        padding: 6px 10px;
    }
}

/* ========================================
   講演者詳細ページ用スタイル
   ======================================== */

/* タグクラウドのアクティブ状態 */
.content_tag_item.active {
    background-color: #316da2 !important;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* パンくずリスト */
.breadcrumb {
    padding: 15px 0;
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.breadcrumb a {
    color: #316da2;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb-separator {
    margin: 0 8px;
    color: #999;
}

/* 講演者詳細ヘッダー */
.speaker-detail-header {
    background-color: #fff;
    border: 1px solid #d8d8d8;
    padding: 30px;
    margin-bottom: 30px;
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.speaker-detail-image {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.speaker-detail-image.placeholder .initials {
    font-size: 4rem;
    font-weight: bold;
    color: #fff;
}

.speaker-detail-info {
    flex-grow: 1;
    min-width: 0;
}

.speaker-detail-name {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #212529;
    border-bottom: 3px solid #316da2;
    padding-bottom: 10px;
}

.speaker-detail-meta {
    margin-bottom: 20px;
    font-size: 16px;
    color: #333;
}

.speaker-detail-meta p {
    margin: 8px 0;
    display: flex;
    align-items: center;
}

.speaker-detail-meta .label {
    font-weight: bold;
    color: #666;
    min-width: 60px;
}

.speaker-detail-profile {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    padding: 15px;
    background-color: #f8f9fa;
    border-left: 4px solid #316da2;
}

/* 統計情報 */
.speaker-stats-bar {
    /* display: flex;
    gap: 20px;
    flex-wrap: wrap; */
}

.stat-box {
    text-align: left;
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-label {
    font-size: 12px;
    color: #666;
    /* margin-bottom: 8px; */
}

.stat-value {
    font-size: 32px;
    font-weight: bold;
    color: #316da2;
}

.stat-value-small {
    font-size: 16px;
    color: #999;
}

/* セクションタイトル */
.section-title {
    font-size: 22px;
    font-weight: bold;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #333;
}

/* イベントカード（詳細ページ用） */
.event-list {
    margin-top: 20px;
}

.event-card {
    background-color: #fff;
    border: 1px solid #d8d8d8;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.event-card-image {
    flex-shrink: 0;
    width: 180px;
    overflow: hidden;
}

.event-card-image img {
    width: 100%;
    max-height: 120px;
    object-fit: cover;
}

.event-card-info {
    flex-grow: 1;
    min-width: 0;
}

.speaker-event-card-info {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 8px;
}

.event-card .event-date {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.event-card .speaker-event-date {
    font-size: 14px;
    color: #666;
}

.event-card .speaker-event-organizers {
    font-size: 14px;
}

.event-card .event-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.event-card .event-title a {
    color: #316da2;
    text-decoration: none;
}

.event-card .event-title a:hover {
    text-decoration: underline;
}

.event-card .event-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.event-tag {
    display: inline-flex;
    align-items: center;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 2px;
    padding-bottom: 2px;
    color: #fff;
    background-color: #0b43a7ff;
    font-size: 14px;
    margin-right: 5px;
    border-radius: 3px;
    color: white;
}

.event-tag a {
    color: white;
}

/* 詳細ページのレスポンシブ */
@media (max-width: 768px) {
    .speaker-detail-header {
        flex-direction: column;
        align-items: center;
        padding: 20px;
        text-align: center;
    }

    .speaker-detail-image {
        width: 150px;
        height: 150px;
    }

    .speaker-detail-image.placeholder .initials {
        font-size: 3rem;
    }

    .speaker-detail-name {
        font-size: 24px;
    }

    .speaker-detail-meta p {
        justify-content: center;
    }

    .speaker-stats-bar {
        flex-direction: column;
    }

    .stat-box {
        min-width: auto;
    }

    /* イベントカードをモバイル対応 */
    .event-card {
        flex-direction: column;
    }

    .event-card-image {
        width: 100%;
    }

    .event-card-image img {
        max-height: 120px;
    }

    .speaker-event-card-info {
        display: block;
        gap: initial;
        align-items: initial;
    }

}
