﻿:root {
    /* メインブランドゴールド */
    --primary-gold: #FFD700;
    /* メインブランドレッド */
    --primary-red: #e63946;
    /* ダーク背景色 */
    --dark-color: #121220;
    /* ライト背景色 */
    --light-color: #ffffff;
    /* グレー背景色 */
    --gray-color: #f5f5f5;
    /* 本文用ダークテキスト */
    --text-dark: #333333;
    /* ダーク上でのライトテキスト */
    --text-light: #ffffff;
    /* 補助テキスト色 */
    --text-muted: #767676;
    /* ダーク補助テキスト色 */
    --text-muted-dark: #a0a0a0;
    /* ゴールド系グラデーション */
    --gold-gradient: linear-gradient(135deg, #FFD700 0%, #ffc107 50%, #FFA500 100%);
    /* レッド→ピンク系グラデーション */
    --red-gradient: linear-gradient(135deg, #FF0000 0%, #e91e63 100%);
    /* アクセントパープル系グラデーション */
    --accent-gradient: linear-gradient(135deg, #FF00FF 0%, #b12a8b 100%);
    /* ヘッダー・フッター用背景色 */
    --header-footer-bg: rgba(20, 20, 40, 0.95);
    /* ダークカード背景 */
    --dark-card-bg: rgba(30, 30, 50, 0.8);
    /* ダークカードホバー */
    --dark-card-hover: rgba(40, 40, 70, 0.9);
    /* 影とエフェクト */
    --shadow-light: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 8px 16px rgba(0, 0, 0, 0.2);
    --shadow-heavy: 0 12px 24px rgba(0, 0, 0, 0.3);
    --shadow-gold: 0 8px 20px rgba(255, 215, 0, 0.2);
    /* トランジション */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-smooth: 0.1s cubic-bezier(0.4, 0, 0.2, 1);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* セクションヘッダー */
.judges-section {
    padding: 60px 0;
    background: var(--dark-color);
    position: relative;
    overflow: hidden;
}

    .judges-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at 20% 80%, rgba(255, 215, 0, 0.03) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.03) 0%, transparent 50%);
        pointer-events: none;
    }

.title-icon {
    font-size: 2rem;
    opacity: 0.8;
    animation: gentle-bounce 3s ease-in-out infinite;
}

@keyframes gentle-bounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-muted-dark);
    font-weight: 400;
    margin-top: 8px;
}

/* 審査グループ */
.judges-container {
    display: flex;
    flex-direction: column;
    gap: 50px;
    position: relative;
    z-index: 1;
}

.judge-group {
    position: relative;
}

.group-header {
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.group-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
    padding: 0 20px;
    background: var(--dark-color);
}

.group-divider {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 215, 0, 0.2) 20%, rgba(255, 215, 0, 0.8) 50%, rgba(255, 215, 0, 0.2) 80%, transparent 100%);
    border-radius: 1px;
    position: relative;
    margin-top: -24px;
}

    .group-divider::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 8px;
        height: 8px;
        background: var(--primary-gold);
        border-radius: 50%;
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.5), 0 0 20px rgba(255, 215, 0, 0.2);
        animation: pulse-glow 2s ease-in-out infinite;
    }

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.5), 0 0 20px rgba(255, 215, 0, 0.2);
    }

    50% {
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.7), 0 0 30px rgba(255, 215, 0, 0.3);
    }
}

/* 審査カテゴリー */
.judge-category {
    background: var(--dark-card-bg);
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

    .judge-category::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 1px;
        background: var(--gold-gradient);
        transition: left 0.6s ease;
    }

    .judge-category::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 215, 0, 0.02) 0%, transparent 50%);
        opacity: 0;
        transition: opacity var(--transition-normal);
        pointer-events: none;
    }

    .judge-category:hover::before {
        left: 0;
    }

    .judge-category:hover::after {
        opacity: 1;
    }

    .judge-category:last-child {
        margin-bottom: 0;
    }

    .judge-category:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-heavy);
        background: var(--dark-card-hover);
        border-color: rgba(255, 215, 0, 0.25);
    }

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    gap: 16px;
}

.category-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.category-date {
    background: rgba(255, 215, 0, 0.12);
    color: var(--primary-gold);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 215, 0, 0.25);
    white-space: nowrap;
    min-width: fit-content;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .category-date::before {
        opacity: 0.8;
        font-size: 0.85em;
    }

    .category-date::after {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
        transition: left 0.5s ease;
    }

    .category-date:hover {
        background: rgba(255, 215, 0, 0.2);
        border-color: rgba(255, 215, 0, 0.5);
        transform: scale(1.05);
        cursor: default;
    }

        .category-date:hover::after {
            left: 100%;
        }

    /* 日付状態別スタイル */
    .category-date.past {
        background: rgba(128, 128, 128, 0.15);
        color: rgba(255, 255, 255, 0.5);
        border-color: rgba(128, 128, 128, 0.25);
    }

        .category-date.past::before {
            content: '✓';
            opacity: 0.6;
        }

    .category-date.current {
        background: rgba(255, 215, 0, 0.25);
        color: var(--primary-gold);
        border-color: rgba(255, 215, 0, 0.6);
        animation: current-glow 2s ease-in-out infinite alternate;
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
    }

        .category-date.current::before {
            animation: blink 1.5s ease-in-out infinite;
        }

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.category-date.future {
    background: rgba(255, 215, 0, 0.12);
    color: var(--primary-gold);
    border-color: rgba(255, 215, 0, 0.25);
}

    .category-date.future::before {
        opacity: 0.8;
    }

@keyframes current-glow {
    from {
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    }

    to {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    }
}

/* 審査員グリッド */
.judges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 8px;
}

.judge-card {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    transform-origin: center;
}

    .judge-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--gold-gradient);
        opacity: 0;
        transition: opacity var(--transition-normal);
        pointer-events: none;
    }

    .judge-card::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
        transform: translate(-50%, -50%);
        pointer-events: none;
    }

    .judge-card:hover {
        transform: translateY(-8px) scale(1.03);
        box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2), var(--shadow-gold);
        border-color: rgba(255, 215, 0, 0.4);
        background: rgba(255, 255, 255, 0.08);
    }

        .judge-card:hover::before {
            opacity: 0.06;
        }

        .judge-card:hover::after {
            width: 200px;
            height: 200px;
        }

    .judge-card:active {
        transform: translateY(-6px) scale(1.02);
        transition: all 0.5s ease;
    }

    .judge-card.touch-active {
        transform: translateY(-6px) scale(1.02);
    }

.judge-avatar {
    position: relative;
    width: 70px;
    height: 70px;
    margin: 0 auto 16px;
    z-index: 2;
}

    .judge-avatar img {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        object-fit: cover;
        box-shadow: var(--shadow-light);
    }

@keyframes avatar-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 25px rgba(255, 215, 0, 0.6);
    }
}

.judge-card:hover .judge-avatar img {
    transform: scale(1.1);
    box-shadow: var(--shadow-medium);
}

.judge-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    line-height: 1.3;
    z-index: 2;
    position: relative;
    margin: 0;
}

.judge-card:hover .judge-name {
    color: var(--primary-gold);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    transform: translateY(-2px);
}

/* モーダル */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(18, 18, 32, 0.92);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    padding: 20px;
}

    .modal-overlay.active {
        opacity: 1;
        visibility: visible;
    }

.modal-content {
    background: var(--dark-card-bg);
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform var(--transition-normal);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(30px);
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted-dark);
    cursor: pointer;
    z-index: 10;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    backdrop-filter: blur(10px);
}

    .modal-close:hover {
        color: var(--primary-red);
        background: rgba(255, 255, 255, 0.1);
        transform: rotate(90deg) scale(1.1);
    }

.modal-header {
    padding: 32px 32px 24px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

    .modal-header::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
        height: 1px;
        background: var(--gold-gradient);
    }

.modal-avatar {
    position: relative;
    width: 90px;
    height: 90px;
    margin: 0 auto 20px;
}

    .modal-avatar img {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        object-fit: cover;
        box-shadow: var(--shadow-medium);
    }

@keyframes modal-avatar-glow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
    }

    50% {
        box-shadow: 0 0 25px rgba(255, 215, 0, 0.5);
    }
}

.modal-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.modal-body {
    padding: 28px 32px 32px;
}

.info-section {
    margin-bottom: 28px;
}

    .info-section:last-child {
        margin-bottom: 0;
    }

    .info-section h4 {
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--text-light);
        margin-bottom: 12px;
        display: flex;
        align-items: center;
        gap: 8px;
        position: relative;
    }

        .info-section h4::before {
            content: '▸';
            color: var(--primary-gold);
            font-size: 0.9rem;
            transition: transform var(--transition-fast);
        }

    .info-section:hover h4::before {
        transform: translateX(2px);
    }

.career-content {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.95rem;
    padding: 16px;
}

    .career-content p {
        margin-bottom: 6px;
        transition: color var(--transition-fast);
    }

        .career-content p:hover {
            color: var(--text-light);
        }

        .career-content p:last-child {
            margin-bottom: 0;
        }

.group-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.group-tag {
    color: var(--text-light);
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

    .group-tag::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
        transition: left 0.5s ease;
    }

    .group-tag:hover {
        transform: scale(1.05) translateY(-1px);
        box-shadow: var(--shadow-light);
    }

        .group-tag:hover::before {
            left: 100%;
        }

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .judges-section {
        padding: 40px 0;
    }

    .container {
        padding: 0 16px;
    }

    .section-title {
        font-size: 2rem;
    }

    .judges-container {
        gap: 40px;
    }

    .group-header {
        margin-bottom: 24px;
    }

    .group-title {
        font-size: 1.5rem;
        padding: 0 16px;
    }

    .judge-category {
        padding: 24px;
        margin-bottom: 20px;
        border-radius: 14px;
    }

    .category-header {
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 20px;
    }

    .category-title {
        font-size: 1.1rem;
    }

    .category-date {
        font-size: 0.85rem;
        padding: 6px 14px;
        align-self: flex-start;
    }

    .judges-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .judge-card {
        padding: 16px;
        border-radius: 14px;
    }

        .judge-card:hover {
            transform: translateY(-4px) scale(1.02);
        }

    .judge-avatar {
        width: 60px;
        height: 60px;
        margin-bottom: 12px;
    }

    .judge-name {
        font-size: 0.9rem;
    }

    .modal-content {
        margin: 16px;
        max-height: calc(100vh - 32px);
        border-radius: 16px;
    }

    .modal-header,
    .modal-body {
        padding: 24px;
    }

    .modal-avatar {
        width: 80px;
        height: 80px;
        margin-bottom: 16px;
    }

    .modal-name {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.8rem;
        flex-direction: column;
        gap: 8px;
    }

    .judges-container {
        gap: 32px;
    }

    .group-title {
        font-size: 1.3rem;
        padding: 0 12px;
    }

    .judges-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .judge-card {
        padding: 14px;
    }

        .judge-card:hover {
            transform: translateY(-3px) scale(1.01);
        }

    .judge-avatar {
        width: 50px;
        height: 50px;
        margin-bottom: 10px;
    }

    .judge-name {
        font-size: 0.85rem;
    }

    .category-date {
        font-size: 0.8rem;
        padding: 5px 12px;
    }

    .modal-header,
    .modal-body {
        padding: 20px;
    }

    .info-section {
        margin-bottom: 24px;
    }

    .career-content {
        padding: 14px;
        font-size: 0.9rem;
    }

    .group-tags {
        gap: 6px;
    }

    .group-tag {
        padding: 5px 12px;
        font-size: 0.8rem;
    }
}

@media (max-width: 360px) {
    .judges-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .judge-card {
        padding: 12px;
    }

    .judge-avatar {
        width: 45px;
        height: 45px;
        margin-bottom: 8px;
    }

    .judge-name {
        font-size: 0.8rem;
    }

    .category-date {
        font-size: 0.75rem;
        padding: 4px 10px;
    }

    .modal-content {
        margin: 12px;
    }
}

/* アクセシビリティ: 動きを減らす設定 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* フォーカス管理 */
.judge-card:focus,
.modal-close:focus,
.group-tag:focus {
    outline: 2px solid var(--primary-gold);
    outline-offset: 2px;
}

/* 印刷用スタイル */
@media print {
    .judges-section {
        background: white !important;
        color: black !important;
    }

    .judge-card,
    .judge-category {
        background: white !important;
        border: 1px solid #ccc !important;
        break-inside: avoid;
    }

    .modal-overlay {
        display: none !important;
    }
}
