@charset "UTF-8";

/* ============================================================ */
/* === 下層ページ共通（style.css の後に読み込む） ================ */
/* ============================================================ */

:root {
    --friend-bg-label:   #F7F7F7; /* 定義リストのラベル列 */
    --friend-bg-subhead: #F6F5FA; /* 「本社」「営業所一覧」の帯 */
    --friend-bg-tag:     #F0EDF7; /* タグ */
}

/* ============================================================ */
/* === Layout: ページタイトル ================================ */
/* ============================================================ */

.l-friend-pagehead {
    position: relative;
    height: 12.5rem; /* 200 */
    overflow: hidden;
    background-color: var(--friend-pagehead-bg, var(--friend-bg-about));
}

/* ページタイトル帯の色はページごとに異なる */
.friend[data-page="company"]     { --friend-pagehead-bg: #FEF5F5; }
.friend[data-page="work"]        { --friend-pagehead-bg: #EDFAFC; }
.friend[data-page="environment"] { --friend-pagehead-bg: #FFFAF2; }
.friend[data-page="people"]      { --friend-pagehead-bg: #F0EDF7; }
.friend[data-page="recruit"]     { --friend-pagehead-bg: #EDF9FA; }
.friend[data-page="faq"]         { --friend-pagehead-bg: #EDF5FB; }

/* 右側の菱形の装飾（帯の角丸で切り抜かれる） */
.l-friend-pagehead::after {
    content: "";
    position: absolute;
    top: -22.803875rem;
    left: 50.1203125rem;
    width: 47.6499375rem;  /* 762.399 */
    height: 44.9456875rem; /* 719.131 */
    background: url("/friend/common/img/deco_pagehead.svg") no-repeat center / 100% 100%;
}

.l-friend-pagehead__breadcrumb {
    position: relative;
    z-index: var(--friend-z-content);
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    padding: 1.3125rem 1.25rem 0;
    font-size: 0.75rem; /* 12 */
    line-height: 1.5;
}

.l-friend-pagehead__crumb-link {
    transition: color var(--friend-duration) var(--friend-ease);
}

.l-friend-pagehead__crumb-link:hover {
    color: var(--friend-purple);
}

.l-friend-pagehead__title {
    position: relative;
    z-index: var(--friend-z-content);
    margin-top: 2.1875rem;
    font-size: 2.125rem; /* 34 */
    font-weight: normal;
    line-height: 1.5;
    text-align: center;
}

@media (max-width: 768px) {
    .l-friend-pagehead::after {
        top: -14.7643125rem;
        left: 9rem;           /* 144 */
        width: 28.786625rem;  /* 460.586 */
        height: 32.46875rem;  /* 519.5 */
        background-image: url("/friend/common/img/deco_pagehead_sp.svg");
    }

    .l-friend-pagehead__breadcrumb {
        padding-top: 1rem;
    }

    .l-friend-pagehead__title {
        margin-top: 2.9375rem;
        font-size: 1.75rem; /* 28 */
    }
}

/* ============================================================ */
/* === Layout: 本文（左サイドナビ＋右コンテンツ） ================ */
/* ============================================================ */

.l-friend-main {
    display: flex;
    gap: 3.5rem;
    padding: 5.125rem 9.375rem 0;
}

.l-friend-main__side {
    width: 15.25rem; /* 244 */
    flex-shrink: 0;
}

.l-friend-main__body {
    width: 52.5rem; /* 840 */
    min-width: 0;
}

@media (max-width: 768px) {
    .l-friend-main {
        display: block;
        padding: 3.75rem 1.25rem 0;
    }

    .l-friend-main__side,
    .l-friend-main__body {
        width: auto;
    }

    /* ページ内ナビと本文の間隔 */
    .l-friend-main__body {
        margin-top: 3.8125rem;
    }
}

/* ============================================================ */
/* === Component: ページ内ナビ ================================ */
/* ============================================================ */

.c-friend-pagenav {
    position: sticky;
    /* 追随時にヘッダー(97)へ潜り込まないよう下げる */
    top: 7.3125rem; /* 97 + 20 */
    margin-top: 0.1875rem;
    padding-block: 1.25rem;
    border-radius: var(--friend-radius-card);
    background-color: var(--friend-white);
    box-shadow: 0 0 0.9375rem rgba(0, 0, 0, 0.16); /* 0 0 15px */
}

.c-friend-pagenav__link {
    position: relative;
    display: flex;
    align-items: center;
    /* 2行になる項目があるので高さは可変（1行時40 / 2行時60） */
    min-height: 2.5rem; /* 40 */
    padding-block: 0.375rem;
    padding-inline: 0.9375rem 2.5rem;
    font-size: 1rem;
    line-height: 1.5;
    transition: background-color var(--friend-duration) var(--friend-ease);
}

.c-friend-pagenav__link:hover {
    background-color: var(--friend-bg-label);
}

/* 表示中のセクション（スクロールに追従して切り替わる） */
.c-friend-pagenav__link[aria-current="true"] {
    background-color: var(--friend-pagehead-bg);
}

/* 右端の下向き矢印 */
.c-friend-pagenav__link::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 1.25rem;
    width: 0.408375rem;  /* 5.94 × 1.1 */
    height: 0.81606875rem; /* 11.87 × 1.1 */
    background-color: var(--friend-purple);
    -webkit-mask: url("/friend/common/img/icon_arrow.svg") no-repeat center / contain;
    mask: url("/friend/common/img/icon_arrow.svg") no-repeat center / contain;
    transform: translateY(-50%) rotate(90deg);
}

@media (max-width: 768px) {
    .c-friend-pagenav {
        position: static;
    }

    .c-friend-pagenav__link::after {
        right: 0.9375rem;
    }
}

/* ============================================================ */
/* === Component: セクション見出し ============================ */
/* ============================================================ */

.c-friend-sectionhead {
    position: relative;
    padding-bottom: 0.25rem;
    border-bottom: 0.0625rem solid var(--friend-line);
    font-size: 1.75rem; /* 28 */
    font-weight: normal;
    line-height: 1.5;
}

/* 左端 60px だけ紫のアクセント（424〜427 の3px。グレー線より上下に1pxずつ出る） */
.c-friend-sectionhead::after {
    content: "";
    position: absolute;
    bottom: -0.125rem;
    left: 0;
    width: 3.75rem; /* 60 */
    height: 0.1875rem; /* 3 */
    border-radius: 0.09375rem; /* 両端を丸く（太さの半分） */
    background-color: var(--friend-purple);
}

/* h2の下の余白は見出し側で持つ（下に来る要素の上マージンは打ち消す） */
.l-friend-section > .c-friend-sectionhead {
    margin-bottom: 2.5rem; /* 40 */
}

.l-friend-section > .c-friend-sectionhead ~ * {
    margin-top: 0;
}

.l-friend-section + .l-friend-section {
    margin-top: 5rem; /* 80 */
}

.l-friend-section__inner {
    margin-top: 2.625rem;
}

@media (max-width: 768px) {
    .c-friend-sectionhead {
        padding-bottom: 0.375rem;
        font-size: 1.5rem; /* 24 */
    }

    .l-friend-section > .c-friend-sectionhead {
        margin-bottom: 1.875rem; /* 30 */
    }

    .l-friend-section + .l-friend-section {
        margin-top: 3.75rem; /* 60 */
    }

    .l-friend-section__inner {
        margin-top: 1.875rem; /* 30 */
    }
}

/* ============================================================ */
/* === Component: リード文・注釈 ============================== */
/* ============================================================ */

.c-friend-lead {
    color: var(--friend-purple);
    font-size: 1.5rem; /* 24 */
    font-weight: normal;
    line-height: 1.5;
}

.c-friend-minihead {
    color: var(--friend-purple);
    font-size: 1.25rem; /* 20 */
    font-weight: normal;
    line-height: 1.5;
}

.c-friend-note {
    display: flex;
    gap: 0.375rem;
    font-size: 0.8125rem; /* 13 */
    line-height: 1.83;
}

.c-friend-note__mark {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .c-friend-lead {
        font-size: 1.25rem; /* 20 */
    }

    .c-friend-minihead {
        font-size: 1.0625rem;
    }

    .c-friend-note {
        font-size: 0.75rem;
    }
}

/* ============================================================ */
/* === Component: 定義リスト（会社概要・沿革） ================== */
/* ============================================================ */

.c-friend-deflist {
    border-top: 0.0625rem solid var(--friend-line);
}

.c-friend-deflist__row {
    display: flex;
    border-bottom: 0.0625rem solid var(--friend-line);
}

.c-friend-deflist__label {
    width: 12.9375rem; /* 207 */
    flex-shrink: 0;
    padding: 1rem 1.25rem; /* 行高57 = 上16 + 文字24 + 下16 + 罫線1 */
    background-color: var(--friend-bg-label);
    font-size: 1rem;
    font-weight: normal;
    line-height: 1.5;
}

.c-friend-deflist__value {
    padding: 0.875rem 1.25rem; /* ラベルと文字位置をそろえる（上14 + 27.2 + 下14 + 罫線1）*/
    font-size: 1rem;
    line-height: 1.7;
}

/* 沿革は年月の列を少し狭く */
@media (min-width: 769px) {
    .c-friend-deflist--history .c-friend-deflist__label {
        width: 12.9375rem;
    }
}

@media (max-width: 768px) {
    .c-friend-deflist__row {
        display: block;
    }

    .c-friend-deflist__label {
        width: auto;
        /* 帯41 = 上10 + 文字21 + 下10 */
        padding: 0.625rem 0.9375rem;
        font-size: 0.875rem;
    }

    .c-friend-deflist__value {
        /* 上8 + 文字23.8 + 下8 + 罫線1 */
        padding: 0.5rem 0.9375rem;
        font-size: 0.875rem;
    }
}

/* ============================================================ */
/* === Component: 小見出しの帯（本社／営業所一覧） ============== */
/* ============================================================ */

.c-friend-subhead {
    display: flex;
    align-items: center;
    height: 3.125rem; /* 50 */
    padding-inline: 1.875rem;
    background-color: var(--friend-bg-subhead);
    font-size: 1.5rem; /* 24 */
    font-weight: normal;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .c-friend-subhead {
        height: 3.125rem; /* 50 */
        padding-inline: 1.25rem;
        font-size: 1.25rem; /* 20 */
    }
}

/* ============================================================ */
/* === Component: 拠点カード ================================= */
/* ============================================================ */

.c-friend-officelist {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.875rem;
}

.c-friend-officelist--single {
    grid-template-columns: 25.3125rem; /* 405 */
}

.c-friend-office {
    display: flex;
    flex-direction: column;
    padding: 1.8125rem; /* 罫線1px分を差し引く */
    border: 0.0625rem solid var(--friend-line);
    border-radius: var(--friend-radius-band); /* 10 */
    background-color: var(--friend-white);
}

.c-friend-office__name {
    position: relative;
    padding-left: 0.8125rem;
    font-size: 1.375rem; /* 22 */
    font-weight: bold;
    line-height: 1.5;
}

/* 左のアクセント（左端ではなく3px内側に3px幅で置く） */
.c-friend-office__name::before {
    content: "";
    position: absolute;
    top: 0.0625rem;
    left: 0.1875rem;
    width: 0.1875rem;  /* 3 */
    height: 1.5625rem; /* 25 */
    border-radius: 0.09375rem; /* 両端を丸く（太さの半分） */
    background-color: var(--friend-purple);
}

.c-friend-office__address {
    margin-top: 1.25rem;
    font-size: 1rem;
    line-height: 1.7;
}

.c-friend-office__tel {
    margin-top: 0.75rem;
    font-size: 1rem;
    line-height: 1.7;
}

.c-friend-office__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    margin-top: 1rem;
}

.c-friend-office__tag {
    display: flex;
    align-items: center;
    height: 1.625rem; /* 26 */
    padding-inline: 0.75rem;
    border-radius: 0.8125rem;
    background-color: var(--friend-bg-tag);
    color: var(--friend-text);
    font-size: 0.8125rem; /* 13 */
    line-height: 1.5;
}

.c-friend-office__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 12.5625rem; /* 201 */
    height: 2.4375rem; /* 39 */
    margin-top: auto;
    border-radius: 0.3125rem; /* 5 */
    background-color: var(--friend-purple);
    box-shadow: 0 0 0.375rem rgba(0, 0, 0, 0.16);
    color: var(--friend-white);
    font-size: 1rem;
    line-height: 1.5;
    transition: background-color var(--friend-duration) var(--friend-ease);
}

.c-friend-office__btn:hover {
    background-color: var(--friend-purple-hover);
}

.c-friend-office__btn .l-friend-footer__blank {
    width: 0.75rem;
    height: 0.75rem;
}

/* カード内の余白（見出し〜住所〜ボタン） */
.c-friend-office__body {
    margin-bottom: 0.9375rem; /* 15 */
}

@media (max-width: 768px) {
    .c-friend-officelist,
    .c-friend-officelist--single {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .c-friend-office {
        /* 罫線1px込みで 上16 / 左右15 / 下15 */
        padding: 0.9375rem 0.875rem 0.875rem;
    }

    .c-friend-office__name {
        font-size: 1.125rem; /* 18 */
    }

    .c-friend-office__address {
        margin-top: 0.9375rem;
        font-size: 0.875rem;
    }

    .c-friend-office__tel {
        margin-top: 0.625rem;
        font-size: 0.875rem;
    }

    .c-friend-office__name {
        margin-left: 0.3125rem; /* 見出しだけ本文より5内側 */
    }

    .c-friend-office__name::before {
        height: 1.25rem; /* 20 */
    }

    .c-friend-office__tags {
        margin-top: 0.625rem;
    }

    .c-friend-office__tag {
        height: 1.5rem; /* 24 */
        padding-inline: 0.75rem;
        border-radius: 0.75rem;
        font-size: 0.75rem; /* 12 */
    }

    .c-friend-office__btn {
        width: 11.4375rem; /* 183 */
        height: 2.25rem; /* 36 */
        font-size: 0.875rem; /* 14 */
    }
}

/* ============================================================ */
/* === Component: 小さめのボタン（矢印付き） ==================== */
/* ============================================================ */
/* 高さ38 / 左右パディング20 / 文字とのアイコン間隔10 /
   角丸5 / ドロップシャドウ blur6 opacity0.16 */

.c-friend-smallbtn {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem; /* 10 */
    /* SPの幅が足りないラベル（例：職場見学・体験実習の詳細を見る）は
       文字を切らずに折り返せるよう、高さは min-height で持たせる */
    min-height: 2.375rem; /* 38 */
    padding: 0.3125rem 1.25rem; /* 左右20 */
    border-radius: 0.3125rem; /* 5 */
    background-color: var(--friend-purple);
    box-shadow: 0 0 0.375rem rgba(0, 0, 0, 0.16);
    color: var(--friend-white);
    font-size: 1rem;
    line-height: 1.5;
    transition: background-color var(--friend-duration) var(--friend-ease);
}

.c-friend-smallbtn:hover {
    background-color: var(--friend-purple-hover);
}

/* 中央寄せで置くときの行 */
.c-friend-btnrow {
    display: flex;
    justify-content: center;
}

@media (max-width: 768px) {
    .c-friend-smallbtn {
        min-height: 2.1875rem; /* 35 */
        font-size: 0.875rem; /* 14 */
    }

    .c-friend-smallbtn .c-friend-arrow {
        width: 0.3392125rem;  /* 4.934 × 1.1 */
        height: 0.7473125rem; /* 10.87 × 1.1 */
    }
}

/* ============================================================ */
/* === Component: ステップカード ============================== */
/* ============================================================ */

.c-friend-step {
    position: relative;
    display: flex;
    gap: 1.25rem; /* 20（バッジ右端530 → 本文550） */
    padding: 1.1875rem 1.25rem; /* 罫線込みでバッジ上下20（カード高100） */
    border: 0.0625rem solid var(--friend-line);
    border-radius: var(--friend-radius-band); /* 10 */
    background-color: var(--friend-white);
}

.c-friend-step + .c-friend-step {
    margin-top: 1.25rem; /* 20 */
}

/* カード間をつなぐ縦線（バッジの中心＝カード左から50） */
.c-friend-step:not(:last-child)::after {
    content: "";
    position: absolute;
    bottom: -1.25rem;
    left: 3.125rem; /* 50 */
    width: 0.1875rem; /* 3 */
    height: 1.25rem;  /* 20 */
    transform: translateX(-50%);
    background-color: var(--friend-accent-04);
}

.c-friend-step__badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 3.75rem; /* 60 */
    height: 3.75rem;
    /* 文字が上に寄って見えるぶんを下げる */
    padding-top: 0.25rem;
    flex-shrink: 0;
    border-radius: 50%;
    background-color: var(--friend-accent-04);
    color: var(--friend-white);
}

.c-friend-step__badge-label {
    font-size: 0.5625rem; /* 9 */
    font-weight: bold;
    line-height: 1;
}

.c-friend-step__badge-num {
    margin-top: 0.25rem;
    font-size: 1.5rem; /* 24 */
    font-weight: bold;
    line-height: 1;
}

.c-friend-step__body {
    flex: 1;
    min-width: 0;
    padding-top: 0.125rem;
}

.c-friend-step__title {
    color: var(--friend-purple);
    font-size: 1.25rem; /* 20 */
    font-weight: normal;
    line-height: 1.5;
}

.c-friend-step__text {
    font-size: 1rem;
    line-height: 1.7;
}

.c-friend-step__note {
    margin-top: 0.3125rem; /* 5 */
}

.c-friend-step__btn {
    margin-top: 0.5rem;
}

.c-friend-step__extra {
    margin-top: 0.6875rem; /* 11 */
}

@media (max-width: 768px) {
    .c-friend-step {
        gap: 0.9375rem; /* 15 */
        padding: 0.9375rem 0.9375rem 1.1875rem;
    }

    .c-friend-step:not(:last-child)::after {
        left: 2.5rem; /* 15 + 25 */
    }

    .c-friend-step__badge {
        width: 3.125rem; /* 50 */
        height: 3.125rem;
    }

    .c-friend-step__badge-label { font-size: 0.5rem; }  /* 8 */
    .c-friend-step__badge-num   { font-size: 1.25rem; } /* 20 */

    .c-friend-step__title { font-size: 1.125rem; } /* 18 */

    .c-friend-step__text {
        margin-top: 0.3125rem; /* 5 */
        font-size: 0.875rem;   /* 14 */
    }
}

/* ============================================================ */
/* === Component: 中黒つきリスト ============================== */
/* ============================================================ */

.c-friend-dotlist__item {
    position: relative;
    padding-left: 1.3125rem; /* 中黒16 + 間隔5 */
    font-size: 1rem;
    line-height: 1.7;
}

.c-friend-dotlist__item::before {
    content: "・";
    position: absolute;
    top: 0;
    left: 0;
    width: 1rem;
}

.c-friend-dotlist__item + .c-friend-dotlist__item {
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .c-friend-dotlist__item {
        font-size: 0.875rem;
    }

    .c-friend-dotlist__item + .c-friend-dotlist__item {
        margin-top: 0.625rem;
    }
}

/* ============================================================ */
/* === Component: 本文中のリンク ============================== */
/* ============================================================ */

.c-friend-textlink {
    color: var(--friend-purple);
    text-decoration: underline;
    transition: color var(--friend-duration) var(--friend-ease);
}

.c-friend-textlink:hover {
    color: var(--friend-purple-hover);
}

/* ============================================================ */
/* === Component: Q&Aアコーディオン =========================== */
/* ============================================================ */

.c-friend-faq__item {
    overflow: hidden;
    border: 0.0625rem solid #D9D9D9;
    border-radius: var(--friend-radius-band); /* 10 */
    background-color: var(--friend-white);
}

.c-friend-faq__item + .c-friend-faq__item {
    margin-top: 1rem; /* 16 */
}

.c-friend-faq__head {
    font-size: inherit;
    font-weight: normal;
}

.c-friend-faq__btn {
    display: flex;
    align-items: flex-start;
    width: 100%;
    padding: 1.125rem 1.25rem 1.1875rem; /* 罫線2px込みで項目高63（18+24+19+2） */
    text-align: left;
    transition: background-color var(--friend-duration) var(--friend-ease);
}

.c-friend-faq__btn:hover,
.c-friend-faq__btn[aria-expanded="true"] {
    background-color: var(--friend-bg-label);
}

/* Q / A の記号（本文の開始位置を左から50に揃える） */
.c-friend-faq__mark {
    width: 1.875rem; /* 30 */
    flex-shrink: 0;
    color: #0075C2;
    font-size: 1.25rem; /* 20 */
    font-weight: bold;
    line-height: 1.2;
}

.c-friend-faq__mark--a {
    color: var(--friend-purple);
}

.c-friend-faq__q,
.c-friend-faq__a {
    flex: 1;
    min-width: 0;
    font-size: 1rem;
    line-height: 1.5;
}

/* ＋／−アイコン */
.c-friend-faq__icon {
    position: relative;
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
    margin-left: 1.25rem;
}

.c-friend-faq__icon::before,
.c-friend-faq__icon::after {
    content: "";
    position: absolute;
    top: 0.4375rem;
    left: 0;
    width: 1rem;
    height: 0.125rem; /* 2 */
    background-color: var(--friend-purple);
}

.c-friend-faq__icon::after {
    transform: rotate(90deg);
    transition: opacity var(--friend-duration) var(--friend-ease);
}

/* 展開中は縦棒を消して「−」にする */
.c-friend-faq__btn[aria-expanded="true"] .c-friend-faq__icon::after {
    opacity: 0;
}

/* 開閉は行の高さ（0fr → 1fr）で動かす。中身は inner 側でクリップする */
.c-friend-faq__panel {
    display: grid;
    grid-template-rows: 0fr;
    visibility: hidden;
    transition: grid-template-rows 0.3s var(--friend-ease), visibility 0.3s;
}

.c-friend-faq__panel[data-open="true"] {
    grid-template-rows: 1fr;
    visibility: visible;
    transition: grid-template-rows 0.3s var(--friend-ease), visibility 0s;
}

/* display を指定すると hidden 属性が効かなくなるので明示する（JS無効時用） */
.c-friend-faq__panel[hidden] {
    display: none;
}

.c-friend-faq__panel-inner {
    display: flex;
    align-items: flex-start;
    min-height: 0; /* auto だと 0fr の行でも縮まない */
    overflow: hidden;
    /* 閉じている間は上下の余白も0にしないと畳みきれない */
    padding: 0 1.25rem;
    transition: padding 0.3s var(--friend-ease);
}

.c-friend-faq__panel[data-open="true"] .c-friend-faq__panel-inner {
    padding: 1.125rem 1.25rem; /* 上下18 */
}

/* 本文の折り返し幅を質問文とそろえる（＋アイコンぶんを空ける） */
.c-friend-faq__a {
    margin-right: 2.25rem; /* アイコン16 + 左マージン20 */
}

@media (prefers-reduced-motion: reduce) {
    .c-friend-faq__panel,
    .c-friend-faq__panel[data-open="true"],
    .c-friend-faq__panel-inner {
        transition: none;
    }
}

@media (max-width: 768px) {
    .c-friend-faq__item + .c-friend-faq__item {
        margin-top: 1.3125rem; /* 21 */
    }

    .c-friend-faq__btn {
        /* 罫線2px込みで 1行51 / 2行74。左右は Q記号が x35 に来る値 */
        padding: 0.75rem 0.8125rem;
    }

    .c-friend-faq__mark {
        width: 1.5625rem; /* 25 */
        font-size: 1.125rem; /* 18 */
    }

    .c-friend-faq__q,
    .c-friend-faq__a {
        font-size: 0.875rem; /* 14 */
        line-height: 1.7;
    }

    .c-friend-faq__icon {
        margin-top: 0.15625rem;
        margin-left: 0.75rem;
    }

    .c-friend-faq__panel-inner {
        padding: 0 0.8125rem;
    }

    .c-friend-faq__panel[data-open="true"] .c-friend-faq__panel-inner {
        padding: 0.75rem 0.8125rem; /* 上下12 */
    }

    .c-friend-faq__a {
        margin-right: 1.75rem; /* アイコン16 + 左マージン12 */
    }
}

/* ============================================================ */
/* === Page: 会社を知る ====================================== */
/* ============================================================ */

.p-company-about {
    position: relative;
}

.p-company-about__body {
    width: 32.375rem; /* イラストを避ける幅（450〜968） */
}

.p-company-about__text {
    margin-top: 1.6875rem;
}

.p-company-about__text + .p-company-about__text {
    margin-top: 1rem;
}

.p-company-about__wide {
    width: 52rem; /* 832 */
}

.p-company-about__illust {
    position: absolute;
    top: 5.625rem;  /* セクション上端から */
    right: 3.75rem;
    width: 9.5625rem; /* 153 */
}

.p-company-about__note {
    margin-top: 0.9375rem; /* 15 */
}

.p-company-figure {
    margin: 2.5rem 0 0;
    overflow: hidden;
    border-radius: var(--friend-radius-band);
}

/* picture は器のサイズを子へ伝えないので img 側で敷き詰める
   （width/height 属性のまま残って器より小さくなるのを防ぐ） */
.p-company-message__img :where(picture, img),
.p-company-figure :where(picture, img) {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.p-company-message {
    display: flex;
    gap: 1.875rem;
    margin-top: 2.5rem;
}

.p-company-message__img {
    margin: 0;
    width: 18.75rem; /* 300 */
    aspect-ratio: 300 / 350;
    flex-shrink: 0;
    /* stretch で縦に伸びると object-fit で切れるので上端に寄せる */
    align-self: flex-start;
    overflow: hidden;
    border-radius: var(--friend-radius-band);
}

.p-company-message__title {
    color: var(--friend-purple);
    font-size: 1.5rem;
    font-weight: normal;
    line-height: 1.5;
}

.p-company-message__text {
    margin-top: 1.5625rem;
}

.p-company-message__text + .p-company-message__text {
    margin-top: 0.9375rem;
}

.p-company-office + .p-company-office {
    margin-top: 3.125rem;
}

.p-company-office__list {
    margin-top: 1.875rem;
}

@media (max-width: 768px) {
    .p-company-office + .p-company-office {
        margin-top: 2.5rem;
    }

    .p-company-office__list {
        margin-top: 1.375rem;
    }

    .p-company-about__body,
    .p-company-about__wide {
        width: auto;
    }

    /* イラストの左に回り込ませる段落だけ幅を詰める */
    .p-company-about__body .p-company-about__text {
        width: 13.125rem; /* 210 */
    }

    /* 本文テキストの間隔は10 */
    .p-company-about__text,
    .p-company-about__note {
        margin-top: 0.625rem;
    }

    .p-company-about__illust {
        top: 9.375rem;
        right: 0.125rem;
        width: 6.5625rem; /* 105 */
    }

    .p-company-figure {
        margin-top: 1.25rem; /* 20 */
    }

    .p-company-message {
        display: block;
        margin-top: 1.875rem;
    }

    /* タイトル直後は15、2つめ以降の段落間は10 */
    .p-company-message__text {
        margin-top: 0.9375rem; /* 15 */
    }

    .p-company-message__text + .p-company-message__text {
        margin-top: 0.625rem; /* 10 */
    }

    .p-company-message__img {
        width: 100%;
        aspect-ratio: 335 / 390;
        margin-bottom: 1.5rem;
    }

    .p-company-message__title {
        font-size: 1.25rem;
    }
}

/* 下層ページはCTAの前に余白を入れる（PCのみ。SPは全ページ共通で style.css 側に指定）。
   CTAは footer.txt 側にあり main の兄弟なので、data-page の有無で下層だけに効かせる */
.friend[data-page] .l-friend-cta {
    margin-top: 5rem;
}

@media (max-width: 768px) {
    /* SPは60。style.css の共通指定より詳細度が高いので明示的に戻す */
    .friend[data-page] .l-friend-cta {
        margin-top: 3.75rem;
    }
}

/* ============================================================ */
/* === ヘッダーの現在地表示（body の data-page と対応） ========== */
/* ============================================================ */

.friend[data-page="company"]     .l-friend-header__nav-link[href="/friend/company/"],
.friend[data-page="work"]        .l-friend-header__nav-link[href="/friend/work/"],
.friend[data-page="environment"] .l-friend-header__nav-link[href="/friend/environment/"],
.friend[data-page="people"]      .l-friend-header__nav-link[href="/friend/people/"],
.friend[data-page="recruit"]     .l-friend-header__nav-link[href="/friend/recruit/"],
.friend[data-page="faq"]         .l-friend-header__nav-link[href="/friend/faq/"] {
    color: var(--friend-purple);
    font-weight: bold;
}

/* ============================================================ */
/* === Page: 仕事を知る（業務カードのグリッド） ================= */
/* ============================================================ */

.p-work-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem 1.875rem; /* 列間 30（450→740） */
    margin-top: 2.875rem;
}

.p-work-card__img {
    overflow: hidden;
    border-radius: var(--friend-radius-card);
}

/* 画像のwidth属性のまま残らないよう器いっぱいに */
.p-work-card__img img {
    width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    /* SPは 335x168（PCの260x173より横長） */
    .p-work-card__img img {
        height: 100%;
        aspect-ratio: 335 / 168;
        object-fit: cover;
    }
}

.p-work-card__title {
    margin-top: 0.6875rem;
    color: var(--friend-purple);
    font-size: 1.25rem; /* 20 */
    font-weight: normal;
    line-height: 1.3; /* 26 / 20（2行時の行送り） */
}

.p-work-card__text {
    margin-top: 0.3125rem; /* 5 */
    font-size: 1rem;
    line-height: 1.7; /* 27.2 / 16 */
}

.p-work-card__office {
    display: flex;
    /* 営業所名は上下中央。ラベルだけ高さを営業所名の行数に追従させる */
    align-items: center;
    gap: 0.65625rem; /* 10.5 */
    margin-top: 0.5625rem; /* 9 */
    font-size: 0.8125rem; /* 13 */
    line-height: 1.3; /* 16.9 / 13 */
}

.p-work-card__office-label {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    flex-shrink: 0;
    padding: 0.125rem 0.25rem 0; /* 上2 / 左右4 → 13pxで枠線込み75・高さ21 */
    border: 0.0625rem solid var(--friend-line);
    white-space: nowrap;
}

/* 業務一覧の締めの一文 */
.p-work-note {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40.625rem; /* 650 */
    min-height: 5.625rem; /* 90 */
    margin: 5rem auto 0; /* 80（セクション間と同じ） */
    padding: 1.25rem;
    border-radius: var(--friend-radius-band); /* 10 */
    background-color: rgba(6, 180, 234, 0.07); /* --friend-accent-03 の7% */
    font-size: 1.25rem; /* 20 */
    font-weight: bold;
    line-height: 1.4; /* 25.2 / 18 */
    text-align: center;
}

@media (max-width: 768px) {
    .p-work-list {
        grid-template-columns: 1fr;
        gap: 1.875rem; /* 30 */
        margin-top: 1.75rem;
    }

    .p-work-card__title {
        font-size: 1.125rem;
    }

    .p-work-card__text {
        font-size: 0.875rem;
    }

    .p-work-card__office {
        font-size: 0.75rem;
    }

    .p-work-note {
        width: auto;
        min-height: 5.75rem; /* 92 */
        margin-top: 3.75rem; /* 60（セクション間と同じ） */
        padding: 1.25rem 0.9375rem;
        font-size: 1.125rem; /* 18 */
    }
}

/* ============================================================ */
/* === Page: 働く環境を知る =================================== */
/* ============================================================ */

/* 紫の縦バー付き小見出し */
.c-friend-barhead {
    position: relative;
    padding-left: 0.8125rem;
    font-size: 1.375rem; /* 22 */
    font-weight: bold;
    line-height: 1.5;
}

.c-friend-barhead::before {
    content: "";
    position: absolute;
    top: 0.0625rem;
    left: 0.1875rem;
    width: 0.1875rem;
    height: 1.5625rem;
    border-radius: 0.09375rem; /* 両端を丸く（太さの半分） */
    background-color: var(--friend-purple);
}

/* 直前のブロックから離して置く小見出し */
.c-friend-barhead--spaced {
    margin-top: 3.8125rem;
}

@media (max-width: 768px) {
    .c-friend-barhead--spaced {
        margin-top: 2.5625rem;
    }

    .c-friend-barhead::before {
        height: 1.25rem; /* 20 */
    }
}

/* width属性のpxで止まってしまうので器いっぱいに広げる */
.p-env-figure img,
.p-env-duo__img img,
.p-env-photos__img img,
.p-env-canteen__cell img,
.p-env-canteen__quad img {
    width: 100%;
}

/* 紫の小見出し（写真キャプションや段落見出し） */
.p-env-figure {
    margin: 2.5rem 0 0;
    overflow: hidden;
    border-radius: var(--friend-radius-card);
}

.p-env-duo {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.875rem;
    margin-top: 1.875rem;
}

.p-env-duo__img {
    overflow: hidden;
    border-radius: var(--friend-radius-card);
}

.p-env-duo__title {
    margin-top: 1rem;
}

.p-env-duo__text {
    margin-top: 0.625rem;
}

/* 本文まわりの間隔 */
.p-env-lead-text      { margin-top: 1.5625rem; }
.p-env-after-figure   { margin-top: 1rem; }
.p-env-minihead-text  { margin-top: 0.625rem; }

.p-env-blockhead-text { margin-top: 1.25rem; }

/* 中央寄せのまとめボックス */
.p-env-callout {
    width: 40.625rem; /* 650 */
    font-weight: bold;
    margin: 2.375rem auto 0;
    padding: 1.5rem 1.875rem;
    border-radius: var(--friend-radius-card);
    background-color: var(--friend-bg-env);
    font-size: 1rem;
    line-height: 1.7;
    text-align: center;
}

/* 研修カード（枠線・中央寄せ） */
.p-env-training {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.875rem;
    margin-top: 2.875rem;
}

.p-env-training__item {
    /* 上25.5 / 下23.5（罫線込みでカード高135）。左右は本文幅368に合わせる */
    padding: 1.5rem 1rem 1.375rem;
    border: 0.0625rem solid var(--friend-line);
    border-radius: var(--friend-radius-card);
    text-align: center;
}

.p-env-training__title {
    color: var(--friend-purple);
    font-size: 1.25rem;
    font-weight: normal;
    line-height: 1.5;
}

.p-env-training__text {
    margin-top: 0.3125rem;
    font-size: 1rem;
    line-height: 1.7;
    text-align: left;
}

/* 安全教育のカードだけ本文も中央寄せ */
.p-env-training__text--center {
    text-align: center;
}

/* 下向き三角 */
.p-env-arrowdown {
    width: 7.5rem;   /* 120 */
    height: 1.875rem; /* 30 */
    margin: 1.875rem auto 0;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    background-color: var(--friend-purple);
}

/* 研修で育つ力 */
.p-env-skills {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    width: 40.625rem; /* 650 */
    min-height: 10.375rem; /* 166 */
    margin: 1.5625rem auto 0;
    padding: 1.25rem 5.25rem 1.25rem 6.6875rem;
    border-radius: var(--friend-radius-band); /* 10 */
    background-color: var(--friend-bg-tag);
}

.p-env-skills__title {
    flex-shrink: 0;
    color: var(--friend-purple);
    font-size: 1.25rem;
    font-weight: normal;
    line-height: 1.5;
}

.p-env-skills__list > li {
    font-size: 1rem;
    line-height: 1.7;
}

/* 写真＋キャプション */
.p-env-photos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.875rem;
    margin-top: 2.5rem;
}

.p-env-photos__img {
    overflow: hidden;
    border-radius: var(--friend-radius-card);
}

.p-env-photos__caption {
    margin-top: 0.625rem;
    font-size: 0.8125rem; /* 13 */
    line-height: 1.5;
    text-align: center;
}

/* 数字で見るすみでんフレンド */
.p-env-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.875rem;
    margin-top: 2.875rem;
}

.p-env-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 16.875rem; /* 270 */
    padding: 1.875rem 1.25rem 0.75rem;
    border-radius: var(--friend-radius-card);
    background-color: var(--friend-bg-env);
    text-align: center;
}

.p-env-stat__icon {
    width: 5rem; /* 80 */
}

.p-env-stat__label {
    margin-top: 1.0625rem;
    color: var(--friend-purple);
    font-size: 1.25rem;
    font-weight: normal;
    line-height: 1.5;
}

.p-env-stat__value {
    margin-top: 0.5625rem;
    color: var(--friend-purple);
    font-size: 2.875rem; /* 46 */
    font-weight: bold;
    line-height: 1.5;
}

.p-env-stat__unit {
    font-size: 1.625rem; /* 26 */
}

/* SPでも折り返さない（カード幅ぎりぎりだが1行に収める） */
.p-env-stat__label--nowrap {
    white-space: nowrap;
}

.p-env-stat__sub {
    /* 数値のテキストボックスに少し食い込ませる */
    margin-top: -0.75rem;
    font-size: 1rem;
    line-height: 1.5;
}

.p-env-stat__plain {
    margin-top: 0.4375rem;
    font-size: 1rem;
    line-height: 1.7;
}

/* 福利厚生カード */
.p-env-welfare {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.875rem;
    margin-top: 1.25rem;
}

.p-env-welfare__item {
    display: flex;
    gap: 1.25rem;
    padding: 1.375rem 1.25rem 1.375rem 1.8125rem;
    border: 0.0625rem solid var(--friend-line);
    border-radius: var(--friend-radius-card);
}

.p-env-welfare__icon {
    width: 2.5rem; /* 40 */
    flex-shrink: 0;
    /* stretch で縦に伸びるのを防ぐ */
    align-self: flex-start;
}

.p-env-welfare__title {
    color: var(--friend-purple);
    font-size: 1.25rem;
    font-weight: normal;
    line-height: 1.5;
}

.p-env-welfare__text {
    margin-top: 0.5rem;
    font-size: 1rem;
    line-height: 1.7;
}

/* 社員食堂の写真グリッド */
.p-env-canteen {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.875rem;
    margin-top: 2.5rem;
}

.p-env-canteen__cell {
    overflow: hidden;
    border-radius: var(--friend-radius-card);
}

.p-env-canteen__quad {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    overflow: hidden;
    border-radius: var(--friend-radius-card);
}

@media (max-width: 768px) {
    .c-friend-barhead { font-size: 1.125rem; }
    .p-env-duo,
    .p-env-training,
    .p-env-photos,
    .p-env-welfare,
    .p-env-canteen {
        grid-template-columns: 1fr;
        gap: 1.25rem;      /* 20 */
        margin-top: 1.25rem; /* 20 */
    }

    .p-env-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin-top: 1.75rem;
    }

    .p-env-stat {
        min-height: 0;
        padding: 1rem 0.75rem 1.25rem;
    }

    .p-env-stat__icon { width: 4.5rem; }
    .p-env-stat__label { font-size: 1rem; }
    .p-env-stat__value { font-size: 1.75rem; }
    .p-env-stat__unit { font-size: 1rem; }
    .p-env-stat__sub,
    .p-env-stat__plain { font-size: 0.8125rem; }

    /* 数値への食い込みはPCのみ */
    .p-env-stat__sub { margin-top: 0; }

    .p-env-arrowdown {
        width: 5rem;    /* 81 */
        height: 1.25rem; /* 20 */
        margin-block: 1.25rem; /* 上下20 */
    }

    /* SPは写真の縦横比がPCと違う（335x168） */
    .p-env-figure img,
    .p-env-duo__img img {
        width: 100%;
        height: 100%;
        aspect-ratio: 335 / 168;
        object-fit: cover;
    }

    .p-env-lead-text      { margin-top: 0.875rem; }
    .p-env-after-figure   { margin-top: 0.6875rem; }
    .p-env-minihead-text  { margin-top: 0.3125rem; }
    .p-env-blockhead-text { margin-top: 0.9375rem; }

    .p-env-figure {
        margin-top: 1.1875rem;
    }

    .p-env-duo__title { margin-top: 0.6875rem; }
    .p-env-duo__text  { margin-top: 0.3125rem; }

    /* タイトルは中央、リストは左から58（335x195） */
    .p-env-skills {
        display: block;
        width: auto;
        min-height: 12.1875rem; /* 195 */
        /* 三角の下マージン20と相殺されるので同値にそろえる */
        margin-top: 1.25rem;
        padding: 1.9375rem 1.25rem 1.8125rem; /* 上31 / 下29 */
    }

    .p-env-skills__title {
        text-align: center;
    }

    .p-env-skills__list {
        margin-top: 0.9375rem;
        padding-left: 2.375rem;
    }

    /* SPは文字16・左右63で6行に折り返す（335x200） */
    .p-env-callout {
        width: auto;
        margin-top: 1.1875rem;
        min-height: 12.5rem; /* 200 */
        padding: 1.3125rem 3.9375rem 1.1875rem;
        font-size: 1rem;
    }

    .p-env-training__title,
    .p-env-welfare__title { font-size: 1.0625rem; }

    .p-env-training__item {
        padding: 1.1875rem; /* 19（カード高112） */
    }

    /* 研修カードの本文はSPだけ行送りが詰まる（2行で40.6 → 19.6ピッチ） */
    .p-env-training__text {
        margin-top: 0.3125rem;
        line-height: 1.4;
    }

    .p-env-training__text,
    .p-env-welfare__text,
    .p-env-skills__list > li { font-size: 0.875rem; }

    .p-env-welfare__icon { width: 2.1875rem; } /* 35 */

    .p-env-welfare__item {
        gap: 0.9375rem;
        padding: 1.1875rem;
    }
}

/* ============================================================ */
/* === Page: 働く人を知る ==================================== */
/* ============================================================ */

.p-people-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.875rem;
    margin-top: 1.25rem;
}

/* カード全体がモーダルを開くボタン。li いっぱいに広げて行の高さをそろえる */
.p-people-list > li {
    display: flex;
}

.p-people-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 20.625rem; /* 330 */
    padding: 1.5rem 1.25rem; /* 上下25から枠1を引く */
    border: 0.0625rem solid var(--friend-line);
    border-radius: var(--friend-radius-card);
    background-color: var(--friend-white);
    text-align: center;
    transition: border-color var(--friend-duration) var(--friend-ease),
                background-color var(--friend-duration) var(--friend-ease);
}

.p-people-card:hover {
    border-color: var(--friend-purple-hover);
    background-color: var(--friend-purple-bg);
}

.p-people-card__img {
    width: 8.75rem; /* 140 */
    transition: opacity var(--friend-duration) var(--friend-ease);
}

.p-people-card:hover .p-people-card__img {
    opacity: 0.6;
}

.p-people-card__name {
    display: block;
    margin-top: 1rem;
    color: var(--friend-purple);
    font-size: 1rem;
    font-weight: normal;
    line-height: 1.5;
}

.p-people-card__meta {
    display: block;
    margin-top: 0.4375rem;
    font-size: 0.875rem; /* 14 */
    line-height: 1.7; /* 行送り23.8 */
}

.p-people-card__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    width: 8.5rem;    /* 136 */
    height: 2.4375rem; /* 39 */
    margin-top: auto;
    border-radius: 0.25rem;
    background-color: var(--friend-purple);
    color: var(--friend-white);
    font-size: 1rem;
    line-height: 1.5;
    transition: background-color var(--friend-duration) var(--friend-ease);
}

.p-people-card:hover .p-people-card__btn {
    background-color: var(--friend-purple-hover);
}

.p-people-lead {
    margin-top: 1.25rem;
}

/* 1日のスケジュール（タイムライン） */
.p-people-schedule {
    position: relative;
    margin-top: 2.875rem;
}

/* カードの隙間に見える縦線（カードの背景で隠れて隙間だけに出る） */
.p-people-schedule::before {
    content: "";
    position: absolute;
    top: 6.25rem;
    bottom: 6.25rem;
    left: 3.0625rem;
    width: 0.125rem;
    background-color: var(--friend-purple);
}

.p-people-schedule__item {
    position: relative;
    display: flex;
    gap: 1.25rem; /* バッジ右端530 → 本文550 */
    min-height: 16.25rem; /* 260 */
    /* 右は写真の幅ぶん空ける */
    padding: 1.1875rem 28.90625rem 1.1875rem 1.1875rem;
    overflow: hidden;
    border: 0.0625rem solid var(--friend-line);
    border-radius: var(--friend-radius-band); /* 10 */
    /* 縦線をカードの隙間だけに見せるため塗りつぶす */
    background-color: var(--friend-white);
}

.p-people-schedule__item + .p-people-schedule__item {
    margin-top: 2.5rem;
}

.p-people-schedule__time {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.75rem;  /* 60 */
    height: 3.75rem;
    flex-shrink: 0;
    border-radius: 50%;
    background-color: var(--friend-purple);
    color: var(--friend-white);
    font-size: 1rem;
    font-weight: bold;
    line-height: 1.5;
}

.p-people-schedule__body {
    display: flex;
    flex: 1;
    gap: 1.875rem;
    min-width: 0;
}

.p-people-schedule__text {
    flex: 1;
    min-width: 0;
    padding-top: 0.8125rem;
}

.p-people-schedule__title {
    color: var(--friend-purple);
    font-size: 1.5rem; /* 24 */
    font-weight: normal;
    line-height: 1.5;
}

.p-people-schedule__desc {
    margin-top: 0.625rem;
    font-size: 1.125rem; /* 18 */
    line-height: 1.5;
}

/* 写真はカードの右端いっぱい・高さフル */
.p-people-schedule__photos {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    gap: 0;
    width: 28.90625rem;
    overflow: hidden;
}

.p-people-schedule__photos img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .p-people-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
        margin-top: 0.9375rem; /* 15 */
    }

    .p-people-card {
        min-height: 0;
        padding: 1.1875rem 0.625rem; /* 上下20から枠1を引く */
    }

    .p-people-card__img { width: 6.8125rem; } /* 109 */

    .p-people-card__name { margin-top: 0.6875rem; }

    .p-people-card__meta {
        margin-top: 0.3125rem;
        font-size: 0.875rem;   /* 14 */
    }

    .p-people-card__btn {
        margin-top: 0.5625rem;
        width: 7.3125rem;      /* 117 */
        height: 1.9375rem;     /* 31 */
        font-size: 0.875rem;
    }

    .p-people-lead { margin-top: 0.9375rem; }

    .p-people-schedule { margin-top: 1.875rem; }

    /* SPは「バッジ＋テキスト」の下に写真を全幅で敷く */
    .p-people-schedule__item {
        display: block;
        min-height: 0;
        padding: 0;
    }

    .p-people-schedule__item + .p-people-schedule__item {
        margin-top: 1.25rem;
    }

    .p-people-schedule::before {
        top: 3.75rem;
        bottom: 11.875rem;
        left: 2.4375rem;
    }

    .p-people-schedule__time {
        position: absolute;
        top: 0.875rem;
        left: 0.875rem;
        width: 3.125rem;  /* 50 */
        height: 3.125rem;
        font-size: 0.875rem; /* 14 */
    }

    .p-people-schedule__body { display: block; }

    .p-people-schedule__text {
        padding: 1.75rem 0.9375rem 0 4.9375rem; /* 上29 / 左80から枠1を引く */
    }

    .p-people-schedule__title { font-size: 1.125rem; } /* 18 */

    .p-people-schedule__desc {
        margin-top: 0.3125rem;
        font-size: 0.875rem;   /* 14 */
        line-height: 1.7;
    }

    /* 写真はカード下部に全幅 */
    .p-people-schedule__photos {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        width: auto;
        margin-top: 1.1875rem;
    }

    .p-people-schedule__photos img { height: auto; }
}

/* ============================================================ */
/* === Component: インタビューのモーダル ====================== */
/* ============================================================ */

.c-friend-modal {
    position: fixed;
    inset: 0;
    z-index: var(--friend-z-nav);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4.375rem 1.875rem 3.75rem;
}

/* display を指定すると hidden 属性（UAの display:none）が効かなくなるので明示する */
.c-friend-modal[hidden] {
    display: none;
}

.c-friend-modal__overlay {
    position: absolute;
    inset: 0;
    background-color: var(--friend-purple-bg);
}

/* 閉じるボタンをパネルの外（右上）に置くための器 */
.c-friend-modal__inner {
    position: relative;
    display: flex;
    width: 71.25rem; /* 1140 */
    max-width: 100%;
    max-height: 100%;
}

.c-friend-modal__close {
    position: absolute;
    top: -2.5625rem;
    right: 0;
    width: 1.5625rem; /* 25 */
    height: 1.5625rem;
}

.c-friend-modal__close::before,
.c-friend-modal__close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2.1875rem; /* 25 の対角 */
    height: 0.1875rem;
    background-color: var(--friend-purple);
}

.c-friend-modal__close::before { transform: translate(-50%, -50%) rotate(45deg); }
.c-friend-modal__close::after  { transform: translate(-50%, -50%) rotate(-45deg); }

.c-friend-modal__panel {
    display: flex;
    gap: 3.125rem;
    width: 100%;
    max-height: 100%;
    overflow-y: auto;
    padding: 3.125rem;
    border-radius: var(--friend-radius-band);
    background-color: var(--friend-white);
    box-shadow: 0 0 0.9375rem rgba(0, 0, 0, 0.16);
}

/* 本文を送っても顔写真の列は見えたままにする */
.c-friend-modal__head {
    position: sticky;
    top: 0; /* パネルの上パディング分は自動で確保される */
    align-self: flex-start; /* stretch のままだと縦いっぱいになり追随しない */
    flex-shrink: 0;
    width: 6.625rem; /* 106 */
    text-align: center;
}

.c-friend-modal__img {
    display: block;
    width: 6.625rem;
}

.c-friend-modal__name {
    margin-top: 0.9375rem;
    color: var(--friend-purple);
    font-size: 1rem;
    font-weight: normal;
    line-height: 1.5;
}

.c-friend-modal__meta {
    margin-top: 0.4375rem;
    font-size: 0.875rem;
    line-height: 1.7;
}

.c-friend-modal__meta span {
    display: block;
}

/* 本文は2段組（1段目を埋めてから2段目） */
.c-friend-modal__qalist {
    flex: 1;
    /* stretch で高さが決まると段が横に増えてしまうので内容なりの高さにする */
    align-self: flex-start;
    min-width: 0;
    column-count: 2;
    column-gap: 3.125rem;
}

.c-friend-modal__qa {
    position: relative;
    padding-left: 1.0625rem;
    break-inside: avoid;
}

.c-friend-modal__qa::before {
    content: "";
    position: absolute;
    top: 0.5rem;
    left: 0;
    width: 0.625rem;
    height: 0.1875rem;
    background-color: var(--friend-purple);
}

.c-friend-modal__qa + .c-friend-modal__qa {
    margin-top: 1.5625rem;
}

.c-friend-modal__q {
    color: var(--friend-purple);
    font-size: 1rem;
    font-weight: bold;
    line-height: 1.4;
}

.c-friend-modal__a {
    margin-top: 0.4375rem;
    font-size: 1rem;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .c-friend-modal { padding: 2.8125rem 1.25rem 1.25rem; }

    .c-friend-modal__inner { width: 100%; }

    .c-friend-modal__close {
        top: -1.875rem;
        width: 1.25rem; /* 20 */
        height: 1.25rem;
    }

    .c-friend-modal__close::before,
    .c-friend-modal__close::after {
        width: 1.75rem; /* 20 の対角 */
    }

    .c-friend-modal__panel {
        flex-direction: column;
        gap: 1rem;
        padding: 0.9375rem 1.25rem 1.25rem;
    }

    .c-friend-modal__head {
        position: static;
        align-self: stretch;
        display: flex;
        align-items: center;
        gap: 0.625rem;
        width: auto;
        text-align: left;
    }

    .c-friend-modal__img { width: 3.75rem; } /* 60 */

    .c-friend-modal__name,
    .c-friend-modal__meta { margin-top: 0; }

    .c-friend-modal__meta span { display: inline; }

    /* SPは「入社年　所属」を1行に（全角スペースぶんの間隔） */
    .c-friend-modal__meta span + span { padding-left: 1em; }

    .c-friend-modal__meta { line-height: 1.5; }

    .c-friend-modal__qalist {
        align-self: stretch;
        column-count: 1;
    }

    .c-friend-modal__qa::before { top: 0.375rem; }

    .c-friend-modal__qa + .c-friend-modal__qa {
        margin-top: 0.625rem;
    }

    .c-friend-modal__q { font-size: 0.875rem; }

    .c-friend-modal__a {
        margin-top: 0.3125rem;
        font-size: 0.875rem;
    }
}

/* ============================================================ */
/* === Page: 採用情報を知る =================================== */
/* ============================================================ */

/* h2 直下のリード文からステップカードまで */
.p-recruit-steplist {
    margin-top: 2.25rem; /* 36 */
}

/* 「あなたの働きたい気持ちを応援します」の下の本文 */
.p-recruit-lead-text {
    margin-top: 1.5625rem; /* 25 */
}

/* 紫の縦バー付き小見出し（ブロックの区切り） */
.p-recruit-barhead {
    margin-top: 3.75rem; /* 60 */
}

/* 小見出し直後の本文・リスト */
.p-recruit-body {
    margin-top: 1.25rem; /* 20 */
}

/* リストの直後に置く注釈（リスト本文の開始位置に揃える） */
.p-recruit-note {
    margin-top: 0.25rem;
    padding-left: 1.3125rem;
}

.p-recruit-btnrow {
    margin-top: 3.6875rem; /* 59 */
}

@media (max-width: 768px) {
    .p-recruit-steplist   { margin-top: 1.1875rem; } /* 19 */
    .p-recruit-lead-text  { margin-top: 0.875rem; }  /* 14 */
    .p-recruit-barhead    { margin-top: 2.5625rem; } /* 41 */
    .p-recruit-body       { margin-top: 0.9375rem; } /* 15 */
    .p-recruit-note       { margin-top: 0.375rem; }
    .p-recruit-btnrow     { margin-top: 2.4375rem; } /* 39 */
}
