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

.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: 8rem 8rem 0 rgba(40, 40, 40, 0.07),
    10rem 10rem 20rem rgba(0, 0, 0, 0.28);;
}

.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 — 一覧：PCカードを縦並び／詳細：.p-staff-detail .p-staff__stack のみ適用
   ========================================================== */
@media (max-width: 768px) {
    .p-staff {
        padding: 100rem 0 80rem;
    }

    .p-staff__heading {
        display: none;
    }

    /* 見出し：カンプ（右寄せ・左に細線＋Staff） */
    .p-staff__heading-sp {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        gap: 10rem;
        padding: 0 30rem;
        margin-bottom: 48rem;
        position: relative;
        z-index: 1;
    }

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

    .p-staff__heading-sp-title {
        font-family: var(--font-bask-old);
        font-size: var(--fs-18);
        font-weight: 400;
        letter-spacing: 0.3em;
        line-height: 1.35;
        color: #333;
    }

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

    /* 一覧のみ：グリッド＝縦並びカード（PC と同コンポーネント） */
    .p-staff .p-staff__grid {
        display: flex;
        flex-direction: column;
        gap: 45rem;
        padding: 0 30rem;
        align-items: stretch;
    }

    .p-staff .p-staff__item {
        width: 100%;
        max-width: 100%;
    }

    .p-staff .p-staff__stack {
        display: none !important;
    }

    .p-staff .p-staff__card {
        display: block;
        max-width: 100%;
    }

    .p-staff .p-staff__card-photo-wrap {
        padding-top: 22rem;
    }

    .p-staff .p-staff__card-badge {
        top: -2rem;
        min-width: 0;
        width: 62rem;
        padding: 5rem 6rem;
        gap: 2rem;
        border: 1rem solid rgba(0, 0, 0, 0.06);
        box-shadow: 3rem 6rem 16rem rgba(0, 0, 0, 0.1);
    }

    .p-staff .p-staff__card-badge-label {
        font-size: var(--fs-8);
        letter-spacing: 0.16em;
    }

    .p-staff .p-staff__card-badge-num {
        font-size: var(--fs-22);
        font-weight: 400;
    }

    .p-staff .p-staff__card-photo {
        height: auto;
        min-height: 0;
        max-height: 228rem;
        aspect-ratio: 3 / 2;
    }

    .p-staff .p-staff__card-info {
        padding-left: 0;
        padding-top: 20rem;
    }

    .p-staff .p-staff__card-name-ja {
        font-weight: 700;
    }

    /* ---- スタッフ詳細ページ（.p-staff-detail）の .stack 用（一覧と切り離し） ---- */
    .p-staff-detail .p-staff__stack {
        display: block;
        padding-bottom: 0;
        margin-bottom: 0;
        border-bottom: none;
    }

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

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

    .p-staff-detail .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-detail .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-detail .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-detail .p-staff__stack-names {
        flex: 1;
        text-align: right;
        padding-top: 2rem;
        min-width: 0;
    }

    .p-staff-detail .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-detail .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-detail .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-detail .p-staff__stack-career li {
        list-style: none;
    }

    .p-staff-detail .p-staff__stack-photo {
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        margin: 0 auto 32rem;
        overflow: hidden;
        background-color: #333;
    }

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

    .p-staff-detail .p-staff__stack-heading {
        margin-bottom: 28rem;
        text-align: right;
        width: 100%;
        box-sizing: border-box;
    }

    .p-staff-detail .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;
        text-align: right;
    }

    .p-staff-detail .p-staff__stack-catch:last-child {
        margin-bottom: 0;
        font-size: var(--fs-14);
    }

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