/**
 * NEOTEC Staff — アーカイブ／詳細の骨格スタイル
 */

.staff-archive {
    padding: calc(var(--header-height) + 40px) 0 80px;
}

.staff-archive__hero {
    margin-bottom: 48px;
    max-width: 40em;
}

.staff-archive__title {
    font-size: clamp(32px, 4vw, 48px);
    font-family: var(--font-main-medium);
    font-weight: var(--font-weight-medium);
    margin: 16px 0 20px;
}

.staff-archive__lead {
    font-size: 15px;
    line-height: 1.8;
    color: #4a4a4a;
}

.staff-archive__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.staff-archive__grid .people-card {
    width: 100%;
}

.people-card__image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 240px;
    background: #eae9e6;
    color: #8c8c8c;
    font-size: 12px;
}

/* 詳細ヒーロー（Figma PC 1942:2150 / SP 2069:2659） */
.staff-hero {
    position: relative;
    display: flex;
    align-items: stretch;
    /* 画像欄（幅50%）を正方形に保つ。上限は画面の高さ、テキストが長ければ伸びる */
    min-height: min(50vw, 100svh);
    background: #f1f9f6;
    color: #222;
}

.staff-hero__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 0 0 50%;
    width: 50%;
    min-width: 0;
    padding: calc(var(--header-height) + 32px) 48px 64px 40px;
}

.staff-hero__content {
    display: flex;
    flex-direction: column;
    gap: 56px;
    padding: 0 clamp(16px, 6vw, 80px);
}

.staff-hero__catch {
    margin: 0;
    font-size: 40px;
    font-family: var(--font-main-medium);
    font-weight: var(--font-weight-medium);
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: #222;
}

.staff-hero__profile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    width: 100%;
}

.staff-hero__identity {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
}

.staff-hero__names {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 6px;
}

.staff-hero__name {
    margin: 0;
    font-size: 24px;
    font-family: var(--font-main-medium);
    font-weight: var(--font-weight-medium);
    letter-spacing: -0.02em;
    line-height: 1.3;
    color: #222;
}

.staff-hero__name-en {
    margin: 0;
    padding-bottom: 4px;
    font-family: var(--font-en);
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    letter-spacing: 0.01em;
    line-height: 1;
    color: #a3a3a3;
}

.staff-hero__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.staff-hero__dept {
    margin: 0;
    font-size: 16px;
    font-family: var(--font-main-medium);
    font-weight: var(--font-weight-medium);
    letter-spacing: 0.02em;
    line-height: 1;
    color: var(--color-primary);
}

.staff-hero__role {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 13px;
    font-family: var(--font-main-medium);
    font-weight: var(--font-weight-medium);
    letter-spacing: 0.01em;
    line-height: 1.2;
    color: #737373;
}

.staff-hero__role-sep {
    width: 1px;
    height: 12px;
    background: #737373;
}

.staff-hero__lead {
    margin: 0;
    font-size: 14px;
    font-weight: var(--font-weight-regular);
    letter-spacing: 0.02em;
    line-height: 1.5;
    text-align: justify;
    color: #404040;
}

.staff-hero__media {
    position: relative;
    flex: 0 0 50%;
    width: 50%;
    overflow: hidden;
    background: #eae9e6;
}

.staff-hero__media > img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.staff-hero__breadcrumb {
    position: absolute;
    right: var(--side-padding);
    bottom: 20px;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 12px;
    font-family: var(--font-main-medium);
    font-weight: var(--font-weight-medium);
    letter-spacing: 0.02em;
    line-height: 1;
    color: #737373;
}

.staff-hero__breadcrumb a {
    color: #fff;
    text-decoration: none;
}

.staff-hero__breadcrumb a:hover {
    opacity: 0.8;
}

.staff-hero__chevron {
    display: block;
    width: 4px;
    height: 8px;
}

/* インタビュー本文（Figma PC 1942:2210 / SP 2069:2686） */
.staff-article {
    background: #fff;
}

.staff-article__inner {
    width: 100%;
    max-width: calc(794px + var(--side-padding) * 2);
    margin: 0 auto;
    padding: 100px var(--side-padding) 120px;
}

.staff-article__body {
    max-width: 794px;
    margin: 0 auto;
}

.staff-article__body > * {
    margin: 0;
}

.staff-article__body h2 {
    font-size: 32px;
    font-family: var(--font-main-medium);
    font-weight: var(--font-weight-medium);
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #222;
}

.staff-article__body h2:not(:first-child) {
    margin-top: 100px;
}

.staff-article__body h2 + p,
.staff-article__body h2 + .wp-block-image,
.staff-article__body h2 + figure {
    margin-top: 40px;
}

.staff-article__body p {
    font-size: 16px;
    font-weight: var(--font-weight-regular);
    line-height: 1.6;
    letter-spacing: 0.01em;
    color: #404040;
    text-align: justify;
}

.staff-article__body p + p {
    margin-top: 20px;
}

.staff-article__body ul,
.staff-article__body ol {
    margin-top: 20px;
    padding-left: 1.5em;
    font-size: 16px;
    line-height: 1.6;
    color: #404040;
}

.staff-article__body a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.staff-article__body .wp-block-image,
.staff-article__body figure {
    width: 100%;
    margin-top: 40px;
    margin-right: 0;
    margin-bottom: 0;
    margin-left: 0;
}

.staff-article__body .wp-block-image img,
.staff-article__body figure img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 794 / 490;
    object-fit: cover;
    border-radius: 8px;
}

.staff-article__body figcaption {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.6;
    color: #8c8c8c;
}

/* 関連社員（Figma 1959:4218 / SPは TOP #people と同じチラ見せ） */
.staff-others {
    background: #f1f9f6;
}

.staff-others__inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    padding-top: 64px;
    padding-bottom: 64px;
}

.staff-others__head {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
}

.staff-others .section-label {
    margin: 0;
    font-size: 14px;
    letter-spacing: 0.01em;
    color: var(--color-primary);
}

.staff-others__title {
    margin: 0;
    font-size: 16px;
    font-family: var(--font-main-medium);
    font-weight: var(--font-weight-medium);
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: #222;
}

.staff-others__profiles {
    flex: unset;
    min-width: 0;
}

.staff-others__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 294px));
    gap: 8px;
    width: auto;
    height: auto;
    margin-left: auto;
    transform: none;
}

.staff-others .people-card {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Swiper CSS が PC でも flex + width:100% を当てると1枚しか見えない */
@media (min-width: 1025px) {
    .staff-others .swiper {
        overflow: visible;
        margin: 0;
    }

    .staff-others .swiper-wrapper.staff-others__grid {
        display: grid;
        width: auto;
        height: auto;
        transform: none;
    }

    .staff-others .swiper-slide.people-card {
        width: 100%;
        height: auto;
        flex-shrink: 1;
    }
}

@media (max-width: 1024px) {
    .staff-archive__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .staff-others__inner {
        flex-direction: column;
        gap: 32px;
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .staff-others__profiles {
        width: calc(100% + var(--side-padding) * 2);
        margin-left: calc(var(--side-padding) * -1);
        margin-right: calc(var(--side-padding) * -1);
        overflow: hidden;
    }

    .staff-others__grid {
        display: flex;
        grid-template-columns: none;
        gap: 0;
        width: 100%;
    }

    .staff-others .people-card {
        width: 278px;
    }

    .staff-others .people-pagination {
        display: flex;
    }

    .staff-article__inner {
        padding: 64px var(--side-padding) 80px;
    }

    /* Figma SP: 小見出し24px・行の高さ1.3。文末1〜2文字だけの行ができないよう行の長さを揃えて折り返す */
    .staff-article__body h2 {
        font-size: 24px;
        line-height: 1.3;
        text-wrap: balance;
        word-break: auto-phrase;
    }

    .staff-article__body h2:not(:first-child) {
        margin-top: 64px;
    }

    .staff-article__body h2 + p,
    .staff-article__body h2 + .wp-block-image,
    .staff-article__body h2 + figure,
    .staff-article__body p + .wp-block-image,
    .staff-article__body p + figure,
    .staff-article__body .wp-block-image,
    .staff-article__body figure {
        margin-top: 32px;
    }
}

/* ヘッダーのモバイル切替（base.css 768px）と揃える */
@media (max-width: 768px) {
    .staff-hero {
        flex-direction: column;
        min-height: 0;
        padding-top: var(--header-height);
    }

    .staff-hero__media {
        order: -1;
        flex: none;
        width: 100%;
        min-height: 0;
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .staff-hero__body {
        flex: none;
        width: 100%;
        padding: 40px var(--side-padding) 56px;
    }

    .staff-hero__content {
        gap: 40px;
        padding: 0;
    }

    .staff-hero__catch {
        font-size: 32px;
        letter-spacing: -0.02em;
    }

    .staff-hero__profile {
        gap: 32px;
    }

    .staff-hero__name {
        font-size: 20px;
        letter-spacing: -0.02em;
        line-height: 1.3;
    }

    .staff-hero__dept {
        font-size: 15px;
        letter-spacing: 0.02em;
    }

    .staff-hero__role {
        letter-spacing: 0.02em;
        line-height: 1;
    }

    .staff-hero__lead {
        font-size: 15px;
        letter-spacing: 0.02em;
        line-height: 1.55;
    }

    .staff-hero__breadcrumb {
        top: 12px;
        right: auto;
        bottom: auto;
        left: var(--side-padding);
        font-weight: var(--font-weight-regular);
        letter-spacing: 0.01em;
        line-height: 1.2;
    }

    .staff-archive__grid {
        grid-template-columns: 1fr;
    }
}
