/*========================================
  スタッフ紹介（詳細）ページ
  デザイン幅 1600px
  ページ見出し（.staff-head）は一覧と共用するので common.css 側にある
========================================*/
.breadcrumb {
    background: #fcf5e3;
}
.staff-detail {
    padding-bottom: 100px;
}

/*----------------------------------------
  クリーム色の帯（ページ見出し＋どのスタッフか）
----------------------------------------*/
.staff-detail__head-band {
    padding-bottom: 55px;
    background: #fcf5e3;
}

.staff-detail__person {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 19px;
    margin-top: 20px;
}

.staff-detail__figure {
    display: block;
    flex: 0 0 74px;
    width: 74px;
    height: 74px;
    overflow: hidden;
    border-radius: 50%;
    background: #eae8e9;
}

.staff-detail__figure img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.staff-detail__role {
    display: block;
    font-size: 13px;
    letter-spacing: 0.06em;
    line-height: 1;
}

.staff-detail__name {
    display: inline-block;
    margin-top: 12px;
    padding: 0 4px 7px;
    border-bottom: 1px solid #efb09e;
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 0.08em;
    line-height: 1;
}

/*----------------------------------------
  本文
  1項目＝1セクション。区切りは点線で、最後の欄には引かない
----------------------------------------*/
.staff-detail__body {
    max-width: 900px;
    margin: 76px auto 0;
}

.staff-detail__section {
    padding-bottom: 26px;
    border-bottom: 1px dotted #b5b5b5;
}

.staff-detail__section + .staff-detail__section {
    margin-top: 33px;
}

.staff-detail__section--voice {
    border-bottom: none;
}

.staff-detail__section-title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.4;
}

/* 見出しの頭の■。文字として持たせると読み上げに混ざるのでCSSで置く */
.staff-detail__section-title::before {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 9px;
    background: #333;
    content: "";
}

.staff-detail__text {
    margin-top: 24px;
    font-size: 16px;
    letter-spacing: 0.02em;
    line-height: 1.7;
}

/*----------------------------------------
  すきなこと欄の写真
  縦長・横長が混ざるので高さをそろえて横に並べる
----------------------------------------*/
/* 写真は最大6枚。枚数にかかわらず1行に均等に並べ、高さをそろえる */
.staff-detail__photos {
    display: flex;
    gap: 16px;
    margin-top: 39px;
}

.staff-detail__photo {
    /* 幅は均等割り。高さは一番縦が短い写真に合わせる
       （--photos-ratio ＝ その写真の 横 ÷ 縦。blade から渡す）。
       極端に縦長の写真ばかりのときに崩れないよう、上限だけ設けている */
    flex: 1 1 0;
    min-width: 0;
    max-height: 480px;
    padding: 0;
    overflow: hidden;
    border: none;
    background: none;
    aspect-ratio: var(--photos-ratio, 1);
    transition: opacity 0.3s;
}

/* モーダルがオンのときだけ、押せる見た目にする（ボタンで出力される） */
button.staff-detail__photo {
    cursor: zoom-in;
}

@media (hover: hover) {
    button.staff-detail__photo:hover {
        opacity: 0.7;
    }
}

.staff-detail__photo img {
    display: block;
    width: 100%;
    height: 100%;
    /* 枠の中に長辺を合わせて全体を見せる（切り抜かない）。
       一番縦が短い写真は枠いっぱい、縦長の写真は左右に余白ができる */
    object-fit: contain;
}

/*----------------------------------------
  写真を大きく見るモーダル。
  施工実例などと違い、ここはPC幅でも開く（中身は common.css で共用）
----------------------------------------*/
.image-modal {
    display: flex;
}

/*----------------------------------------
  ◯◯ボイス
----------------------------------------*/
/* スライダー本体。左右の矢印はこの枠の外側に置く */
.staff-voice__slider {
    position: relative;
    margin-top: 24px;
}

/* スライド同士の間隔（.slick-list の負マージンで両端は詰める） */
.staff-voice__list .slick-list {
    margin: 0 -9px;
}

.staff-voice__list .slick-slide {
    height: auto;
    padding: 0 9px;
}

/* 左右の矢印 */
.staff-voice__arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 14px;
    height: 58px;
    transform: translateY(-50%);
    transition: opacity 0.3s;
}

.staff-voice__arrow img {
    display: block;
    width: 100%;
    height: 100%;
}

.staff-voice__arrow--prev {
    left: -34px;
}

.staff-voice__arrow--next {
    right: -34px;
}

@media (hover: hover) {
    .staff-voice__arrow:hover {
        opacity: 0.7;
    }
}

.staff-voice__item {
    display: block;
    transition: opacity 0.3s;
}

.staff-voice__figure {
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    background: #eae8e9;
}

.staff-voice__figure img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.staff-voice__date {
    display: block;
    margin-top: 12px;
    color: #b5b5b5;
    font-size: 13px;
    letter-spacing: 0.04em;
    line-height: 1;
}

.staff-voice__title {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    letter-spacing: 0.02em;
    line-height: 2;
}

/* 担当施工実例のカードは日付が無いので、そのぶん余白を足して
   ボイスのカードと同じ見え方にそろえる */
.staff-voice__title--work {
    margin-top: 22px;
}

@media (hover: hover) {
    a.staff-voice__item:hover {
        opacity: 0.7;
    }
}

/*----------------------------------------
  スタッフ一覧へ戻るボタン
----------------------------------------*/
.staff-detail__back {
    margin-top: 60px;
    text-align: center;
}

.staff-detail__back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 300px;
    height: 46px;
    border-radius: 6px;
    background: #f4c773;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.1em;
    line-height: 1;
    text-indent: 0.1em;
    transition: opacity 0.3s;
}

@media (hover: hover) {
    .staff-detail__back-btn:hover {
        opacity: 0.7;
    }
}

/*========================================
  SP / タブレット（1023px 以下）
========================================*/
@media screen and (max-width: 1023px) {
    .staff-detail {
        padding-bottom: 56px;
    }

    .staff-detail__head-band {
        padding-bottom: 28px;
    }

    .staff-detail__person {
        gap: 14px;
    }

    .staff-detail__figure {
        flex-basis: 60px;
        width: 60px;
        height: 60px;
    }

    .staff-detail__role {
        font-size: 12px;
    }

    .staff-detail__name {
        margin-top: 10px;
        padding-bottom: 6px;
        font-size: 18px;
    }

    .staff-detail__body {
        max-width: none;
        margin-top: 32px;
        padding: 0 16px;
    }

    .staff-detail__section {
        padding-bottom: 20px;
    }

    .staff-detail__section + .staff-detail__section {
        margin-top: 24px;
    }

    .staff-detail__section-title {
        font-size: 16px;
    }

    .staff-detail__section-title::before {
        width: 9px;
        height: 9px;
        margin-right: 7px;
    }

    .staff-detail__text {
        margin-top: 16px;
        font-size: 14px;
        line-height: 1.9;
    }

    /* 写真は高さを下げて2枚ずつ並ぶようにする */
    /* SPでは1枚が小さくなりすぎるので、3枚ずつの折り返しにする */
    .staff-detail__photos {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        margin-top: 20px;
    }

    .staff-detail__photo {
        max-height: 320px;
    }

    .staff-voice__slider {
        margin-top: 16px;
    }

    .staff-voice__list .slick-list {
        margin: 0 -6px;
    }

    .staff-voice__list .slick-slide {
        padding: 0 6px;
    }

    /* SPは一覧の幅いっぱいを使うので、矢印は画像に少しかぶせる */
    .staff-voice__arrow {
        width: 10px;
        height: 42px;
    }

    .staff-voice__arrow--prev {
        left: -14px;
    }

    .staff-voice__arrow--next {
        right: -14px;
    }

    .staff-voice__date {
        margin-top: 8px;
        font-size: 12px;
    }

    .staff-voice__title {
        margin-top: 6px;
        font-size: 13px;
        line-height: 1.8;
    }

    .staff-voice__title--work {
        margin-top: 14px;
    }

    .staff-detail__back {
        margin-top: 32px;
    }

    .staff-detail__back-btn {
        width: min(100%, 280px);
        height: 44px;
        font-size: 15px;
    }
}
