/* =============================================== */
/* 【組織ページ専用】: organization.css            */
/* =============================================== */

/* --- 1. 組織図 --- */
.organization-chart-container {
    padding: 1rem;
    background-color: #f8f9fa; /* わずかに背景色をつけて枠を表現 */
    border: 1px solid var(--border-color);
    border-radius: 4px;
}
.organization-chart-link {
    display: block;
    position: relative;
    cursor: pointer;
    overflow: hidden; /* 中の要素をマスクするため */
    border-radius: 4px;
}
.organization-chart-link img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease-out;
}
.organization-chart-link:hover img {
    transform: scale(1.03); /* ホバー時に画像を少し拡大 */
}

/* 組織図上の拡大アイコン */
.magnify-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 43, 71, 0.5); /* --base-text-colorの半透明 */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease-out;
}
.organization-chart-link:hover .magnify-overlay {
    opacity: 1;
}
.magnify-icon {
    font-size: 50px;
    color: #fff;
    font-weight: 100; /* 細いプラス記号にする */
    transform: scale(0.8);
    transition: transform 0.3s ease-out;
}
.organization-chart-link:hover .magnify-icon {
    transform: scale(1);
}

/* --- 2. 役員テーブル --- */
.officer-table {
    width: 100%;
    border-collapse: collapse; /* 罫線を一本線に */
    margin-top: 1rem;
}
.officer-table th,
.officer-table td {
    border: 1px solid #e0e0e0;
    padding: 1rem 1.5rem;
    text-align: left;
}
.officer-table th {
    background-color: #f8f9fa;
    font-weight: bold;
    width: 30%; /* 役職欄の幅を固定 */
}

/* --- 3. 協賛企業グリッド --- */
.sponsor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
    padding: 0;
    list-style: none;
}
.sponsor-grid li {
    background-color: #f8f9fa;
    padding: 1rem 1.5rem;
    border: 1px solid var(--border-color); 
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
    transition: transform 0.2s, box-shadow 0.2s;
}
.sponsor-grid li:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}


/* --- 4. 画像拡大モーダル (ライトボックス) --- */
.lightbox-modal {
    display: none; /* 初期状態は非表示 */
    position: fixed;
    z-index: 2000; /* ヘッダーより手前に */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); /* 背景を暗くする */
    justify-content: center;
    align-items: center;
    overflow: auto;
}
.lightbox-modal.is-visible {
    display: flex; /* 表示するときはflexに */
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}
.lightbox-close:hover,
.lightbox-close:focus {
    color: #bbb;
    text-decoration: none;
}
.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
}

/* --- レスポンシブ対応 (スマホ) --- */
@media (max-width: 768px) {
    .officer-table th,
    .officer-table td {
        padding: 0.75rem 1rem;
    }
    .officer-table th {
        width: 35%;
    }
    .sponsor-grid {
        grid-template-columns: 1fr; /* スマホでは1列に */
    }
}