/* ==========================================================
   スタッフページ
   ========================================================== */

.p-staff {
    position: relative;
    padding: 80rem 0 160rem;
    background-color: #fff;
    overflow: hidden;
}

/* SVGフィルター */
.p-staff__svg-filters {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* テクスチャ */
.p-staff__texture {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    max-width: none;
}

.p-staff__texture--top {
    top: -650rem;
    right: -300rem;
    width: 1400rem;
    transform: rotate(45deg);
}

/* 見出し（PC） */
.p-staff__heading {
    position: relative;
    z-index: 1;
    padding-left: 120rem;
    margin-bottom: 40rem;
    font-family: var(--font-bask-old);
    font-size: var(--fs-24);
    font-weight: 100;
    letter-spacing: 0.3em;
    color: #333;
}

.p-staff__heading::after {
    content: '';
    display: block;
    width: 50%;
    height: 1rem;
    margin-top: 10rem;
    background-color: #333;
    transform: scaleX(var(--line-scale, 1));
    transform-origin: left center;
}

/* SP見出し（PCでは非表示） */
.p-staff__heading-sp {
    display: none;
}

/* ----------------------------------------------------------
   グリッド（子は .p-staff__item）
   ---------------------------------------------------------- */
.p-staff__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80rem 60rem;
    padding: 0 160rem;
}

/* SP 用ブロック（PC では非表示） */
.p-staff__stack {
    display: none;
}

/* ----------------------------------------------------------
   カード
   ---------------------------------------------------------- */
.p-staff__card-link {
    display: block;
    transition: opacity 0.3s ease;
}

.p-staff__card-link:hover {
    opacity: 0.7;
}

.p-staff__card-photo-wrap {
    position: relative;
    padding-top: 38rem; /* PEOPLE ラベル分を写真の上に出すための余白 */
}

/* バッジ（PEOPLE + 番号） */
.p-staff__card-badge {
    position: absolute;
    top: 0;
    right: -20rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    padding: 10rem;
    background-color: #fff;
    box-shadow: 4rem 8rem 20rem rgba(0, 0, 0, 0.15);
    min-width: 90rem;
    aspect-ratio: 1 / 1;
}

.p-staff__card-badge-label {
    font-family: var(--font-bask-old);
    font-size: var(--fs-10);
    letter-spacing: 0.2em;
    color: #333;
    line-height: 1;
}

.p-staff__card-badge-num {
    /* font-family: var(--font-bask-old); */
    font-size: var(--fs-40);
    font-weight: 300;
    color: #333;
    line-height: 1;
}

/* 写真 */
.p-staff__card-photo {
    width: 100%;
    height: 300rem;
    overflow: hidden;
    background-color: #333;
    box-shadow: 4rem 8rem 24rem rgba(0, 0, 0, 0.12);
}

.p-staff__card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* スタッフ情報 */
.p-staff__card-info {
    padding-top: 18rem;
    padding-left: 10rem;
}

.p-staff__card-name-ja {
    font-size: var(--fs-18);
    font-weight: 300;
    color: #333;
    letter-spacing: 0.05em;
    margin-bottom: 4rem;
}

.p-staff__card-name-en {
    font-size: var(--fs-12);
    font-weight: 400;
    color: #333;
    letter-spacing: 0.12em;
}

/* ==========================================================
   スタッフ SP（タイトルはニュース・施工事例等と統一）
   ========================================================== */
@media (max-width: 768px) {
    .p-staff {
        padding: 60rem 0 80rem;
    }

    .p-staff__heading {
        display: none;
    }

    .p-staff__heading-sp {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        padding: 0 30rem;
        margin-bottom: 50rem;
        position: relative;
        z-index: 1;
    }

    .p-staff__heading-sp-ja {
        writing-mode: vertical-rl;
        font-family: var(--font-body);
        font-size: var(--fs-18);
        font-weight: 100;
        letter-spacing: 0.07em;
        color: #333;
    }

    .p-staff__heading-sp-right {
        display: flex;
        align-items: center;
        align-self: center;
        gap: 6rem;
    }

    .p-staff__heading-sp-line {
        display: block;
        width: 30rem;
        height: 1rem;
        background-color: #333;
    }

    .p-staff__heading-sp-en {
        font-family: var(--font-bask-old);
        font-size: var(--fs-18);
        letter-spacing: 0.3em;
        color: #333;
    }

    .p-staff__texture--top {
        top: -300rem;
        left: -100rem;
        width: 900rem;
        transform: rotate(45deg);
    }

    /* PC カード非表示・SP は縦積み詳細 */
    .p-staff__grid {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 0 30rem;
    }

    .p-staff__card {
        display: none;
    }

    .p-staff__stack {
        display: block;
        padding-bottom: 80rem;
        margin-bottom: 60rem;
        border-bottom: 1rem solid #e8e8e8;
    }

    .p-staff__item:last-child .p-staff__stack {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

    .p-staff__stack-head {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 20rem;
        margin-bottom: 24rem;
    }

    /* PEOPLE + 番号は横並び（正方形バッジは使わない） */
    .p-staff__stack-badge {
        flex-shrink: 0;
        display: inline-flex;
        flex-direction: row;
        align-items: baseline;
        justify-content: flex-start;
        gap: 10rem;
        padding: 0;
        background: transparent;
        box-shadow: none;
        min-width: 0;
    }

    .p-staff__stack-badge-label {
        font-family: var(--font-bask-old);
        font-size: var(--fs-11);
        font-weight: 500;
        letter-spacing: 0.18em;
        color: #333;
        line-height: 1;
    }

    .p-staff__stack-badge-num {
        font-family: var(--font-bask-old);
        font-size: var(--fs-16);
        font-weight: 900;
        color: #333;
        line-height: 1;
        letter-spacing: 0.02em;
    }

    .p-staff__stack-names {
        flex: 1;
        text-align: right;
        padding-top: 2rem;
        min-width: 0;
    }

    .p-staff__stack-name-ja {
        font-family: var(--font-body);
        font-size: var(--fs-20);
        font-weight: 700;
        color: #333;
        letter-spacing: 0.05em;
    }

    .p-staff__stack-name-en {
        font-family: var(--font-bask-old);
        font-size: var(--fs-14);
        font-weight: 400;
        color: #333;
        line-height: 1.35;
    }

    .p-staff__stack-career {
        font-family: var(--font-body);
        font-size: var(--fs-13);
        line-height: 1.6;
        color: #555;
        margin-bottom: 28rem;
        padding-left: 0;
    }

    .p-staff__stack-career li {
        list-style: none;
    }

    /* 偶数番目: 画像より上（名前・PEOPLE・経歴）を左右反転 */
    .p-staff__stack--even .p-staff__stack-head {
        flex-direction: row-reverse;
    }

    .p-staff__stack--even .p-staff__stack-names {
        text-align: left;
    }

    .p-staff__stack--even .p-staff__stack-career {
        text-align: right;
    }

    /* 写真は左右いっぱい（グリッド左右 padding 30rem 分を幅に足して左にずらす） */
    .p-staff__stack-photo {
        width: calc(100% + 60rem);
        max-width: none;
        margin-left: -30rem;
        overflow: hidden;
        margin-bottom: 32rem;
        background-color: #333;
    }

    .p-staff__stack-photo img {
        width: 100%;
        height: auto;
        display: block;
    }

    .p-staff__stack-heading {
        margin-bottom: 28rem;
    }

    .p-staff__stack-catch {
        font-family: var(--font-body);
        font-size: var(--fs-18);
        font-weight: 300;
        line-height: 1.8;
        color: #333;
        letter-spacing: 0.08em;
        margin-bottom: 12rem;
    }

    .p-staff__stack-catch:last-child {
        margin-bottom: 0;
    }

    .p-staff__stack-body {
        font-family: var(--font-body);
        font-size: var(--fs-14);
        line-height: 2.4;
        color: #333;
    }
}
