/* スタッフ紹介 */
#fv { --fv-bg: url(../_img/about/staff/staff-fv.webp); }

.title-line::after { bottom: -5px; }

.bubble {
    --bubble-w: fit-content;
    padding: 1rem;
}

#staff-introduction .bubble { left: 200px; }

.staff-introduction {
    padding-block: calc(var(--pad-7) * 2);
}

.staff-introduction h3 + p {
    margin-top: var(--space-4);
    line-height: 2;
}

.staff-item {
    --staff-color: var(--main-color);
    --staff-pen: url(../_img/about/staff/staff-pen-green.svg);
    --staff-bracket: url(../_img/about/staff/icon-bracket-green.svg);
    --staff-bracket-rotate: none;
    --staff-bracket-after: url(../_img/about/staff/icon-bracket-yellow.svg);
    --staff-a: url(../_img/about/staff/staff-a-green.svg);
    background-color: #ececef;
    border-radius: calc(var(--radius) * 2.5);
    padding: var(--pad-4) var(--pad-2) var(--pad-4) var(--pad-5);
    grid-template-columns: 30% 65%;
    margin-top: var(--space-8);
    gap: var(--gap-6);
}
.staff-item:nth-of-type(even) {
    --staff-color: var(--color-pink);
    --staff-pen: url(../_img/about/staff/staff-pen-pink.svg);
    --staff-bracket: url(../_img/about/staff/icon-bracket-yellow.svg);
    --staff-bracket-rotate: rotate(180deg);
    --staff-bracket-after: url(../_img/about/staff/icon-bracket-pink.svg);
    --staff-a: url(../_img/about/staff/staff-a-pink.svg);
}
.staff-item h4 + p {
    margin-top: var(--space-2);
    width: 100%;
}
.staff-item h4 + p span {
    --bgc: var(--staff-color);
    display: block;
    width: 90%;
    font-weight: 900;
    margin-bottom: var(--space-1);
}
.staff-item h4 + p span::after {
    border-radius: 0;
    width: calc(100% - 35px);
    bottom: -8px;
}
.staff-item h4 + p span::before {
    content: '';
    display: block;
    width: 28px;
    height: 39px;
    background-image: var(--staff-pen);
    background-repeat: no-repeat;
    background-size: contain;
    position: absolute;
    right: 0;
    bottom: -6px;
}
.staff-item h4 + p + figure img {
    object-fit: contain;
}

.staff-item header {
    --bracket-size: 50px;
    position: relative;
    display: block;
    box-sizing: border-box;
    width: fit-content;
    max-width: 100%;
    padding-inline: calc(var(--bracket-size) * 0.7);
    font-weight: 900;
    font-size: 23px;
    margin-top: calc(var(--space-2) * 0.8);
    white-space: normal;
}
.staff-item header > span {
    display: block;
    max-width: 100%;
}
.staff-item header::before,
.staff-item header::after {
    content: '';
    display: block;
    position: absolute;
    width: var(--bracket-size);
    height: var(--bracket-size);
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
}
.staff-item header::before {
    background-image: var(--staff-bracket);
    transform: var(--staff-bracket-rotate);
    top: calc(-1 * var(--bracket-size) + 20px);
    left: 0;
}
.staff-item header::after {
    background-image: var(--staff-bracket-after);
    bottom: calc(-0.4 * var(--bracket-size));
    right: 0;
}

.staff-item h4,
.staff-item h4 span {
    --size: 50px;
    height: var(--size);
    background-color: var(--color-white);
    border: 2px solid var(--color-black);
    border-radius: 5px;
}
.staff-item h4 {
    width: 120px;
    margin-top: calc(-1 * var(--space-2) - 20px);
    left: var(--space-2);
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.1em;
    align-self: flex-start !important;
}
.staff-item h4::before { 
    content: '';
    display: block;
    background-color: var(--color-black);
    width: 2px;
    height: 25px;
    border-radius: 50rem;
    position: absolute;
    left: -2px;
    z-index: 1;
}
.staff-item h4 span {
    width: var(--size);
    position: absolute;
    left: calc(-1 * var(--size));
    isolation: isolate;
    font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", sans-serif;
    font-weight: bold;
}
.staff-item h4 span::before {
    content: '';
    display: block;
    --size: 40px;
    width: var(--size);
    height: var(--size);
    background-color: var(--staff-color);
    position: absolute;
    inset: 0;
    margin: auto;
    z-index: -1;
}
.staff-item h4 span::after {
    content: '';
    display: block;
    width: 4px;
    height: 41px;
    background-color: var(--color-white);
    clip-path: path("M 0 0 Q 2 9 6 -2 L 5 41 Q 2 33.5 0 41 Z");
    position: absolute;
    right: -3px;
    inset-block: 0;
    margin: auto;
}

.staff-item h5 {
    width: 113px;
    display: inline-block;
    padding-bottom: calc(var(--pad-1) * 0.5);
    border-bottom: 2px solid var(--color-black);
}
.staff-item h5 img {
    aspect-ratio: 113 / 13;
}
.staff-item h5 + dl > div {
    padding-block: var(--pad-3);
    border-bottom: 5px dotted var(--color-black);
    margin-top: 0;
}
.staff-item h5 + dl > div:first-of-type {
    padding-top: var(--pad-2);
}
.staff-item h5 + dl > div:last-of-type {
    border-bottom: 0;
}
.staff-item h5 + dl > div :is(dt, dd) {
    display: inline-block;
    font-size: 14px;
    letter-spacing: 0;
    line-height: 1.2;
    border: var(--border-base);
    border-width: 2px;
    border-radius: 0.5em;
    background-color: var(--color-white);
    padding-block: 4px 3px;
    padding-inline: var(--space-4) var(--space-1);
    margin-left: var(--space-1);
}
.staff-item h5 + dl > div :is(dt, dd) > span {
    display: inline-block;
    width: 55px;
    height: 41px;
    position: absolute;
    left: -1.5em;
    top: -2px;
}
.staff-item h5 + dl > div dt span img {
    width: 100%;
    height: 100%;
}
.staff-item h5 + dl > div dd .staff-a {
    background: var(--staff-a) no-repeat center / contain;
}
.staff-item h5 + dl > div dt {
    width: fit-content;
    min-height: 34px;
    padding-left: calc(var(--space-2) * 2) !important;
    line-height: 23px;
}
.staff-item h5 + dl > div dd {
    margin-top: var(--space-2);
    margin-left: var(--space-3);
}

.staff-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--gap-2);
    padding-block: var(--pad-4);
}

.staff-footer .footer-logo {
    display: block;
    width: min(240px, 60vw);
}

@media (max-width: 920px) {
    #staff-introduction > .width-limiter > .title-line {
        display: block;
        width: fit-content;
    }

    #staff-introduction .bubble {
        left: 50%;
        transform: translateX(-50%);
        top: unset;
    }

    .staff-item {
        padding-inline: var(--pad-2) !important;
    }

    .staff-item.grid {
        grid-template-columns: 1fr;
    }
    .staff-item.grid figure, .staff-item.grid figure.wide-figure {
        width: 50%;
        margin: 0 auto !important;
    }
    .staff-item header {
        text-align: center;
        margin-inline: auto;
    }

    .staff-footer {
        flex-direction: column;
        text-align: center;
    }
}


@media (max-width: 520px) {
    .staff-item h4 {
        margin-top:-50px;
    }

    .staff-item.grid figure, .staff-item.grid figure.wide-figure {
        width: 100%;
    }
    .staff-item header {
        --bracket-size: 40px;
        font-size: 16px;
        overflow-wrap: anywhere;
    }
}
