@charset "UTF-8";
/* archive-mentor.css — メンター一覧（archive-mentor.php / section#page-mentor 配下） */

section#page-mentor {

    hgroup.common-cover{
        background-image: url(../img/mentor_cover.jpg);
    }

    div#mentor-archive {
        max-width: calc(var(--bw) + 48px);
        margin-inline: auto;
        padding: 80px 24px;

        @media (max-width: 768px) {
            padding: 56px 16px;
        }

        #mentor-list {
            ul {
                display: flex;
                flex-wrap: wrap;
                gap: 24px;
            }

            li {
                position: relative;
                width: calc((100% - 72px) / 4);

                @media (max-width: 960px) { width: calc((100% - 48px) / 3); }

                a {
                    display: block;
                }

                figure img { transition: opacity .25s; }

                &:hover figure img { opacity: .6; }
            }

            figure {
                position: relative;
                margin: 0 0 12px;
                aspect-ratio: 1 / 1;
                background: var(--c-grey);
                overflow: hidden;
                border-radius: 8px;

                &::after {
                    content: "+";
                    position: absolute;
                    right: 10px;
                    bottom: 10px;
                    width: 30px;
                    height: 30px;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    background: var(--c-navy);
                    color: #fff;
                    border-radius: 50%;
                    font-size: 1.1rem;
                    line-height: 1;
                }

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

            .cname {
                font-size: .8rem;
                color: #666;
            }

            h3 {
                font-size: 1.05rem;
            }

            @media (max-width: 768px) {
                li {
                    width: calc((100% - 24px) / 2);
                }
            }
        }
    }

    /* ---------- 詳細モーダル（position:fixed の全画面オーバーレイ／中央寄せ） ---------- */
    #mentor-detail {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 1000;
        background: rgba(0, 0, 0, .7);
        padding: 40px 24px;
        overflow-y: auto;
        justify-content: center;
        align-items: flex-start;

        li.detail {
            display: none;

            &.disp {
                display: block;
            }

            section {
                position: relative;
                max-width: 760px;
                margin: 0;
                background: #fff;
                border-radius: var(--radius);
                padding: 40px;

                @media (max-width: 768px) {
                    padding: 28px 20px;
                }
            }
        }

        .upper {
            display: flex;
            gap: 28px;

            .right {
                flex: 1;
            }

            .ib {
                width: 200px;
                flex-shrink: 0;
                margin: 0;
                border-radius: 8px;
                overflow: hidden;

                img {
                    width: 100%;
                }
            }

            @media (max-width: 768px) {
                flex-direction: column;

                .ib {
                    width: 60%;
                    margin: 0 auto;
                    order: -1;          /* SP：写真をプロフィールの上に */
                }
            }
        }

        h3 {
            font-size: 1.4rem;
        }

        .kana {
            color: #888;
            font-size: .85rem;
        }

        .cname {
            color: var(--c-blue);
            margin-top: 8px;
        }

        h4 {
            color: var(--c-navy);
            margin: 20px 0 8px;
            font-size: .95rem;
        }

        .sns {
            display: flex;
            gap: 12px;
            margin-top: 12px;

            img {
                width: 28px;
                height: 28px;
                object-fit: contain;
            }
        }

        .lower {
            margin-top: 24px;
        }

        .close {
            display: block;
            width: fit-content;
            margin: 32px auto 0;
            color: #888;
            font-weight: 700;
            font-size: .85rem;
        }
    }
}
