@charset "UTF-8";
/*
    Template: swell
    Theme Name: SWELL CHILD
    Theme URI: https://swell-theme.com/
    Description: SWELLの子テーマ
    Version: 1.0.0
    Author: LOOS WEB STUDIO
    Author URI: https://loos-web-studio.com/

    License: GNU General Public License
    License URI: http://www.gnu.org/licenses/gpl.html
*/

.member-list-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.member-card {
    width: calc(33.333% - 40px); /* 3列レイアウト */
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column; /* フレックスボックスでボタンを下に配置 */
    justify-content: space-between; /* コンテンツを均等に配置 */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.member-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.member-card img {
    width: 100%;
    aspect-ratio: 1; /* アスペクト比を1:1に設定 */
    border-radius: 8px;
    margin-bottom: 15px;
    object-fit: cover; /* 画像を中央でカット */
    object-position: center top; /* 上付き・左右中央 */
}


.member-card h3 {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 10px;
}

.member-card p {
    font-size: 1em;
    color: #666;
    margin-bottom: 8px;
}

.member-card p strong {
    font-weight: bold;
}

.member-card .button {
    display: inline-block;
    background-color: #0073aa;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-align: center;
    margin-top: auto; /* これでボタンをボックスの一番下に固定 */
}

.member-card .button:hover {
    background-color: #005a85;
}

.member-card a {
    color: #0073aa;
    text-decoration: none;
    font-weight: bold;
}

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

/* 特定の項目を太字に */
.member-card p:contains('所属部活'), .member-card p:contains('役職') {
    font-weight: bold;
}

/* レスポンシブ対応 */
@media screen and (max-width: 900px) {
    .member-card {
        width: calc(50% - 40px); /* 2列レイアウト */
    }
}

@media screen and (max-width: 600px) {
    .member-card {
        width: 100%; /* 1列レイアウト */
    }
}





/* モーダル全体のスタイル */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

/* モーダルのコンテンツ部分 */
.modal-content {
    position: relative;
    margin: 5% auto;
    padding: 20px;
    width: 80%;
    background-color: white;
}

/* モーダルを閉じるボタン */
.close {
    position: absolute;
    top: 10px;
    right: 25px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}
