@charset "UTF-8";
/* page-about.css — CHESTとは？（page-about.php / section#page-about 配下） */

section#page-about {

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

    div#about-lead {
        max-width: calc(var(--bw) + 48px);
        margin: 0 auto;
        padding: 120px 24px;
        background: url(../img/map.svg) calc(50% + 280px) center / 360px 480px no-repeat;

        @media (max-width: 768px) {
            padding: 56px 16px;
            background-size: 280px;
            background-position: calc(50% + 120px) center;
        }

        p {
            font-size: 1.5rem;
            line-height: 2.5;
            font-weight: 800;
            letter-spacing: 0.1em;

            @media (max-width: 960px) {
                font-size: 1.25rem;
            }

            @media (max-width: 768px) {
                font-size: 1rem;
                line-height: 2;
            }

            @media (max-width: 480px) {
            }

            span.db{
                font-weight: 800;
                display: block;
            }
        }
    }

    div#purpose {
        background: var(--c-lightgrey);
        padding: 80px 24px;

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

        div.inner {
            max-width: var(--bw);
            margin: 0 auto;

            p.explain {
                margin-top: 40px;
                font-size: 1.25rem;
                position: relative;
                line-height: 1.75;
                letter-spacing: 0.1em;

                span.db{
                    display: block;

                    @media (max-width: 768px){
                        display: inline-block;
                    }
                    @media (max-width: 480px){
                        display: inline;
                    }
                }

                &::before,
                &::after{
                    content: '';
                    display: flex;
                    width: 300px;
                    height: 200px;
                    background-position: center;
                    background-repeat: no-repeat;
                    background-size: contain;
                    border-top-right-radius: 40px;
                    border-bottom-left-radius: 40px;
                    position: absolute;
                }

                &::before{
                    background-image: url(../img/about_purpose-1.jpg);
                    top: -24px;
                    right: 0;
                }
                &::after{
                    background-image: url(../img/about_purpose-2.jpg);
                    top: 140px;
                    right: 148px;
                }

                @media (max-width: 960px) {
                    font-size: 1.125rem;

                    &::before,
                    &::after {
                        width: 220px;
                        height: auto;
                        aspect-ratio: 3 / 2;
                    }
                    &::after {
                        top: 100px; right: 100px;
                    }
                }

                @media (max-width: 768px) {
                    font-size: 16px;
                    padding-top: 220px;

                    &::before,
                    &::after {
                        width: 200px;
                        height: auto;
                        aspect-ratio: 3 / 2;
                    }
                    &::before {
                        top: 0;
                        left: 220px;
                    }
                    &::after {
                        top: 72px;
                        right: auto;
                        left: 0;
                    }
                }
                @media (max-width: 480px) {
                    

                    &::before,
                    &::after {
                        
                    }
                    &::before {
                        top: 0;
                        right: 0;
                        left: auto;
                    }
                    &::after {
                        top: 72px;
                        right: auto;
                        left: 0;
                    }
                }
            }
        }
    }

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

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

        #participant-list {
            margin-top: 40px;
                display: flex;
                flex-wrap: wrap;
                gap: 24px;

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

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

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

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



            h3 {
                font-size: 1.05rem;
            }

            a.company-link {
                display: inline-block;
                margin-top: 8px;
                font-size: .85rem;
                color: var(--c-blue);
                text-decoration: underline;

                &:hover { text-decoration: none; }
            }

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

    /* ---------- 詳細モーダル（position:fixed の全画面オーバーレイ／中央寄せ） ---------- */
    #voice-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: 640px;
                margin: 0;
                background: #fff;
                border-radius: var(--radius);
                padding: 40px;
                text-align: center;

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

        figure {
            width: 140px;
            aspect-ratio: 1 / 1;
            margin: 0 auto 16px;
            border-radius: 50%;
            overflow: hidden;

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

        h3 {
            font-size: 1.3rem;
        }

        div + p {
            margin-top: 16px;   /* プロフィール(div)直後＝コメントの上に余白 */
        }

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

        p.comment{
            margin-top: 12px;
        }
    }
}
