/* ■ 審査員一覧 */



/*■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
■ Judge List (Grid Layout)
■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■*/

/* --- リスト部分 --- */
.jury_list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* スマホでは隙間を狭く */
    justify-content: flex-start; /* 左詰めで並べる */
}

/* カード全体 */
.jury_item {
    /* ★スマホで2列にする設定★ */
    width: calc(50% - 5px); /* 隙間(10px)の半分を引いて2等分 */
    
    background: var(--color-base-ivory);
    border-radius: 8px; /* 角丸は少し控えめに */
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    
    display: flex;
    flex-direction: column;
    margin-bottom: 10px; /* 下のマージン */
}

/* PC: 3列または4列 (画面幅に応じて調整) */
@media only screen and (min-width: 738px) {
    .jury_list {
        gap: 30px; /* PCでは隙間を広く */
    }
    .jury_item {
        /* (100% - gap*2) / 3列 */
        width: calc((100% - 60px) / 3); 
        border-radius: 12px;
        margin-bottom: 0;
    }
}

/* ホバー時の動き */
.jury_item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}
.jury_item:hover .jury_img img {
    transform: scale(1.05);
}
.jury_item:hover .jury_name {
    color: var(--color-accent-gold);
}


/* 写真エリア (3:4 縦長) */
.jury_item .jury_img {
    width: 100%;
    /* ★画像比率 3:4 (300x400)★ */
    aspect-ratio: 3 / 4;
    
    margin: 0;
    border-radius: 0;
    border: none;
    background: var(--color-base-ivory);
    overflow: hidden;
    position: relative;
}

.jury_item .jury_img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* エリアいっぱいにトリミング */
    transition: transform 0.5s ease;
}

/* 写真クレジット */
.jury_item .photo_credit {
    font-size: 9px; /* スマホ用に小さく */
    color: #999;
    margin: 4px 0 0;
    padding: 0 8px;
    text-align: right;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    letter-spacing: 0.05em;
    line-height: 1;
}

/* 名前エリア */
.jury_item .jury_info {
    width: 100%;
    padding: 10px 5px 15px; /* スマホ用にパディング調整 */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.jury_item .jury_name {
    font-size: 14px; /* スマホ2列だと狭いので少し小さく */
    font-weight: bold;
    margin-bottom: 0;
    line-height: 1.3;
    transition: color 0.3s ease;
    color: var(--color-primary-navy);
}

.jury_item .jury_name .en {
    display: block;
    font-size: 10px;
    font-family: 'Cinzel', serif;
    color: var(--color-accent-gold);
    margin-top: 3px;
    font-weight: normal;
}

/* PC用フォントサイズ調整 */
@media only screen and (min-width: 738px) {
    .jury_item .photo_credit {
        font-size: 10px;
        padding: 0 15px;
    }
    .jury_item .jury_info {
        padding: 15px 20px 25px;
    }
    .jury_item .jury_name {
        font-size: 20px;
    }
    .jury_item .jury_name .en {
        font-size: 13px;
        margin-top: 5px;
    }
}
















/*■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
■ Modal Window (No Close Button / Centered)
■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■*/

/* モーダル背景 */
.jury_modal_window {
    display: none;
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(22, 40, 79, 0.85); /* 濃いネイビー背景 */
    z-index: 9999;
    opacity: 0; transition: opacity 0.3s ease;
    
    /* 画面中央に配置 */
    align-items: center; 
    justify-content: center;
    
    /* 余白を均等にして「ど真ん中」にする */
    padding: 20px; 
    box-sizing: border-box;
}
.jury_modal_window.show {
    display: flex !important;
    opacity: 1;
}

/* --- 基準となるラッパー --- */
.modal_dialog {
    width: 100%;
    max-width: 600px; /* スマホ・タブレット標準幅 */
    margin: auto; /* フレックス内での中央配置を補強 */
    position: relative;
    display: flex;
    justify-content: center;
}

/* --- コンテンツ枠（白い箱） --- */
.jury_modal_window .jury_modal_content {
    width: 100%;
    height: auto;
    max-height: 60vh; /* 画面からはみ出さないように */
    margin: 0;
    padding: 0;
    border-radius: 8px;
    background: var(--color-base-ivory);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
}

/* --- モーダル内部レイアウト (スマホ・タブレット：縦並び) --- */
.jury_modal_body {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden; /* はみ出し防止 */
}

/* ヘッダーエリア */
.jury_modal_header {
    background: var(--color-pastel-beige);
    padding: 20px;
    flex-shrink: 0;
    border-bottom: 1px solid var(--color-accent-gold);
    display: flex;
    flex-direction: row; /* 横並び（写真＋名前） */
    align-items: center;
    gap: 20px;
    text-align: left;
}

/* 画像ボックス */
.jury_modal_header .header_inner_top {
    width: 120px;
    flex-shrink: 0;
}
.jury_modal_header .img_box {
    width: 100%; aspect-ratio: 3/4;
    border: 3px solid var(--color-base-ivory);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 0;
}
.jury_modal_header .img_box img {
    width: 100%; height: 100%; object-fit: cover; margin: 0;
}

/* クレジット */
.jury_modal_header .photo_credit {
    font-size: 10px; color: #999; 
    margin: 5px 0 0 0; 
    text-align: right; line-height: 1;
}

/* 名前エリア */
.jury_modal_header .txt_box {
    flex-grow: 1;
    display: flex; flex-direction: column; justify-content: center;
}
.jury_modal_header .name {
    margin: 0; font-size: 20px; 
    color: var(--color-primary-navy); line-height: 1.3;
}
.jury_modal_header .en_name {
    display: block; font-size: 13px; font-family: 'Cinzel', serif;
    color: var(--color-accent-gold); margin-top: 5px;
}

/* テキストエリア */
.jury_modal_text {
    padding: 30px;
    overflow-y: auto; /* スクロール */
    background: var(--color-base-ivory);
    flex-grow: 1;
    font-size: 15px; line-height: 1.8; text-align: justify;
}


/*■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
■ PC Layout (Large Screen Only: 1024px以上)
■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■*/
@media only screen and (min-width: 1024px) {

    .modal_dialog {
        max-width: 960px; /* PC幅 */
        height: 600px; /* 高さ固定 */
        display: flex;
        justify-content: center;
    }
    .jury_modal_window .jury_modal_content {
        height: 100%;
        max-height: none;
    }

    /* 左右分割 */
    .jury_modal_body {
        flex-direction: row;
    }

    /* 左サイドバー */
    .jury_modal_header {
        width: 320px; /* 固定幅 */
        border-bottom: none;
        border-right: 1px solid var(--color-accent-gold);
        flex-direction: column; /* 縦並び */
        padding: 40px 30px;
        justify-content: center; /* 縦方向中央 */
    }

    .jury_modal_header .header_inner_top {
        width: 100%; max-width: 200px; margin: 0 auto;
    }
    .jury_modal_header .img_box {
        border-width: 5px;
    }

    .jury_modal_header .txt_box {
        text-align: center;
        justify-content: center;
        margin-top: 20px;
        width: 100%;
    }
    .jury_modal_header .name { font-size: 24px; }
    .jury_modal_header .en_name { font-size: 14px; }

    /* 右テキストエリア */
    .jury_modal_text {
        width: calc(100% - 320px);
        padding: 50px;
        font-size: 16px;
    }
}