@charset 'utf-8';

/* =============================================================
   カルチャーと成長環境（/recruit/environment/）
   ============================================================= */
.p-env {
    overflow-x: clip;
    background-color: var(--c-cream);
}

/* -------------------------------------------------------------
   小見出し（英字｜和文）とリード文（Our Culture・Career・Evaluation 共通）
   ------------------------------------------------------------- */
.p-env__subttl {
    display: flex;
    align-items: center;
    color: var(--c-green);
}

.p-env__subttl-en {
    font-family: var(--ff-en);
    font-size: 24px;
    font-weight: 500;
    line-height: 52px;
    letter-spacing: .02em;
}

.p-env__subttl-ja {
    margin-left: 30px;
    padding-left: 25px;
    border-left: 1px solid currentColor;
    font-family: var(--ff-head);
    font-size: 16px;
    font-weight: 500;
    line-height: 28px;
    letter-spacing: .02em;
}

.p-env__lead {
    margin-top: 15px;
    font-family: var(--ff-lead);
    font-size: 22px;
    font-weight: 700;
    line-height: 2;
    letter-spacing: .03em;
    color: var(--c-green);
}

.p-env__text {
    margin-top: 36px;
    font-size: 16px;
    line-height: 2;
    letter-spacing: .05em;
}

/* -------------------------------------------------------------
   Our Culture：5 つの価値観のカード（横スライダー。右端は画面の端まで）
   ------------------------------------------------------------- */
.p-env__culture {
    padding-top: 123px;
}

.p-env__culture-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    column-gap: 40px;
}

.p-env__culture-nav {
    flex-shrink: 0;
    margin-bottom: 10px;
}

.p-env__culture-slider {
    margin-top: 53px;
    margin-right: calc((100vw - var(--cw)) / -2);
}

.p-env__culture-list {
    display: flex;
    gap: 20px;
    padding-right: var(--gut);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.p-env__culture-list::-webkit-scrollbar {
    display: none;
}

.p-env__culture-item {
    position: relative;
    flex: 0 0 292px;
    padding-bottom: 32px;
    border: 1px solid var(--c-beige);
    border-radius: 30px;
    background-color: var(--c-white);
    overflow: hidden;
    text-align: center;
    scroll-snap-align: start;
}

.p-env__card-en {
    position: absolute;
    top: 23px;
    left: 24px;
    z-index: 1;
    font-family: var(--ff-en);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: .05em;
    text-align: left;
    color: var(--c-green);
}

.p-env__card-no {
    margin-right: .7em;
}

.p-env__card-img img {
    width: 100%;
    aspect-ratio: 292 / 246;
    object-fit: cover;
}

.p-env__card-ttl {
    margin-top: 11px;
    font-family: var(--ff-head);
    font-size: 18px;
    font-weight: 700;
    line-height: 46px;
    letter-spacing: .05em;
    color: var(--c-green);
}

.p-env__card-text {
    margin-top: 2px;
    font-size: 14px;
    font-weight: 500;
    line-height: 2;
    letter-spacing: .02em;
}

/* -------------------------------------------------------------
   Career・Evaluation：左にイラスト、右に見出しと本文
   ------------------------------------------------------------- */
.p-env__feature--career {
    padding-top: 140px;
}

.p-env__feature--evaluation {
    padding-top: 108px;
}

.p-env__feature-inner {
    display: grid;
    /* 本文の左端はコンテンツ幅の 50.17%（1200px のとき 602px） */
    grid-template-columns: minmax(0, 50.17%) minmax(0, 1fr);
    align-items: start;
}

.p-env__feature-body {
    grid-column: 2;
    grid-row: 1;
    max-width: 529px;
}

.p-env__feature-img {
    grid-column: 1;
    grid-row: 1;
}

.p-env__feature-img img {
    width: 100%;
}

/* Career のイラスト（2026-11-17 の Figma）：309×283、コンテンツの左端から 167px、見出し（Career）の上端から 70px 下 */
.p-env__feature--career .p-env__feature-img {
    width: min(309px, 100% - 167px);
    margin: 70px 0 0 167px;
}

/* Evaluation のイラスト（2026-11-17 の Figma。それまでの写真のような仮の画像は角丸 30px だった）：
   411×289、コンテンツの左端から 112px、見出し（Evaluation）の上端から 58px 下 */
.p-env__feature--evaluation .p-env__feature-img {
    width: min(411px, 100% - 112px);
    margin: 58px 0 0 112px;
}

/* -------------------------------------------------------------
   働きがいのある会社：白い枠の中に認定マーク・文章・写真
   ------------------------------------------------------------- */
.p-env__gptw {
    padding-top: 110px;
}

/* 右の写真は 1440px で 465px（2026-11-12 の Figma で写真の差し替えとともに 381px から広がり、文章が 37px 左へ）。
   コンテンツ幅に合わせて縮め、中央の見出し（1 行約 346px）の幅を確保する */
.p-env__gptw-box {
    display: grid;
    grid-template-columns: 151px minmax(0, 1fr) min(465px, var(--cw) * .3875);
    column-gap: 27px;
    align-items: start;
    min-height: 321px;
    padding-left: 39px;
    border-radius: 30px;
    background-color: var(--c-white);
    overflow: hidden;
}

.p-env__gptw-badge {
    margin-top: 58px;
}

.p-env__gptw-badge img {
    width: 100%;
}

.p-env__gptw-body {
    padding: 51px 0 40px;
}

.p-env__gptw-ttl {
    font-family: var(--ff-lead);
    font-size: 22px;
    font-weight: 700;
    line-height: 2;
    letter-spacing: .03em;
    color: var(--c-green);
}

.p-env__gptw-text {
    max-width: 466px;
    margin-top: 26px;
    padding-left: 7px;
    font-size: 16px;
    line-height: 2;
    letter-spacing: .05em;
}

.p-env__gptw-img {
    align-self: stretch;
}

.p-env__gptw-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* -------------------------------------------------------------
   募集職種（components/recruit/PositionsSection.astro）
   ------------------------------------------------------------- */
.p-env__positions {
    padding: 104px 0 125px;
}

/* 採用エントリー（common.css の c-entry-btn）：募集職種の直後に置き、募集職種の下端で止める（2026-11-10 指示）。
   止まる位置は募集職種の下の余白（125px）の中央：下を 29px あける（追従中と同じ。SP は 75 の中央で下 13）。
   上の margin でボタンの高さとすき間を打ち消し、ページ一覧の位置は変えない */
.p-env__entry {
    margin-top: -96px;
    margin-bottom: 29px;
}

/* =============================================================
   1199px 以下：働きがいの枠は写真を下に
   ============================================================= */
@media screen and (max-width: 1199.98px) {
    .p-env__gptw-box {
        grid-template-columns: 151px minmax(0, 1fr);
        column-gap: 40px;
    }

    /* 本文が枠の右端に付かないよう、右にも左と同じ余白 */
    .p-env__gptw-body {
        padding-right: 39px;
    }

    .p-env__gptw-img {
        grid-column: 1 / -1;
        margin-left: -39px;
    }

    .p-env__gptw-img img {
        aspect-ratio: 16 / 9;
    }
}

/* =============================================================
   1023px 以下：イラストを本文の下に
   ============================================================= */
@media screen and (max-width: 1023.98px) {
    .p-env__feature-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .p-env__feature-body,
    .p-env__feature-img {
        grid-column: 1;
    }

    .p-env__feature-body {
        max-width: none;
    }

    .p-env__feature-img {
        grid-row: 2;
    }

    .p-env__feature--career .p-env__feature-img,
    .p-env__feature--evaluation .p-env__feature-img {
        width: min(522px, 100%);
        margin: 40px auto 0;
    }

    /* イラストは PC より少し大きい程度まで（Career は縦長なので 340px、Evaluation は 411px の等倍まで） */
    .p-env__feature--career .p-env__feature-img {
        width: min(340px, 100%);
    }

    .p-env__feature--evaluation .p-env__feature-img {
        width: min(411px, 100%);
    }

}

/* =============================================================
   SP
   ============================================================= */
@media screen and (max-width: 767.98px) {
    .p-env__subttl {
        min-height: calc(28 * var(--u));
    }

    .p-env__subttl-en {
        font-size: calc(18 * var(--u));
        line-height: calc(24 * var(--u));
    }

    .p-env__subttl-ja {
        margin-left: calc(14 * var(--u));
        padding-left: calc(14 * var(--u));
        font-size: calc(14 * var(--u));
        line-height: calc(20 * var(--u));
    }

    .p-env__lead {
        margin-top: calc(7 * var(--u));
        font-size: calc(18 * var(--u));
    }

    .p-env__text {
        margin-top: calc(15 * var(--u));
        font-size: calc(15 * var(--u));
        line-height: 2.13;
    }

    /* セクションの間は生成りより濃い線で区切る */
    .p-env__culture {
        padding: calc(76 * var(--u)) 0 calc(50 * var(--u));
        border-bottom: 1px solid var(--c-beige);
    }

    .p-env__culture-nav {
        display: none;
    }

    .p-env__culture-slider {
        margin-top: calc(37 * var(--u));
    }

    .p-env__culture-list {
        gap: calc(15 * var(--u));
    }

    .p-env__culture-item {
        flex-basis: calc(214 * var(--u));
        padding-bottom: calc(13 * var(--u));
        border-radius: calc(30 * var(--u));
    }

    .p-env__card-en {
        top: calc(17 * var(--u));
        left: calc(18 * var(--u));
        font-size: calc(12 * var(--u));
    }

    .p-env__card-img img {
        aspect-ratio: 214 / 180;
    }

    .p-env__card-ttl {
        margin-top: calc(5 * var(--u));
        font-size: calc(16 * var(--u));
        line-height: calc(28 * var(--u));
    }

    .p-env__card-text {
        margin-top: calc(10 * var(--u));
        font-size: calc(13 * var(--u));
        font-weight: 400;
        line-height: 1.85;
        letter-spacing: .05em;
    }

    .p-env__feature--career {
        padding: calc(40 * var(--u)) 0 calc(31 * var(--u));
        border-bottom: 1px solid var(--c-beige);
    }

    .p-env__feature--evaluation {
        padding-top: calc(50 * var(--u));
    }

    .p-env__feature--career .p-env__feature-img,
    .p-env__feature--evaluation .p-env__feature-img {
        width: 100%;
        margin-top: calc(28 * var(--u));
    }

    /* Career のイラストは Evaluation の幅の 309/411（PC と同じ大きさの比）にして中央に。
       どちらも横幅いっぱいにすると、元の絵が小さい Career の人物が大きく見えるため（2026-11-20 指摘「SP のみキャリアパスの画像が大きい」） */
    .p-env__feature--career .p-env__feature-img {
        width: calc(100% * 309 / 411);
        margin-inline: auto;
    }

    /* 働きがい：見出し → 文章と認定マーク → 写真 */
    .p-env__gptw {
        padding-top: calc(50 * var(--u));
    }

    .p-env__gptw-box {
        grid-template-columns: minmax(0, 1fr) calc(90 * var(--u));
        grid-template-areas:
            "ttl ttl"
            "text badge"
            "img img";
        column-gap: calc(13 * var(--u));
        min-height: 0;
        padding: calc(26 * var(--u)) calc(19 * var(--u)) 0 calc(21 * var(--u));
        border-radius: calc(20 * var(--u));
    }

    .p-env__gptw-body {
        display: contents;
    }

    .p-env__gptw-ttl {
        grid-area: ttl;
        font-size: calc(18 * var(--u));
    }

    .p-env__gptw-text {
        grid-area: text;
        margin-top: calc(10 * var(--u));
        padding-left: 0;
        font-size: calc(13 * var(--u));
        line-height: 1.85;
    }

    .p-env__gptw-badge {
        grid-area: badge;
        margin-top: calc(10 * var(--u));
    }

    .p-env__gptw-img {
        grid-area: img;
        margin: calc(27 * var(--u)) calc(-19 * var(--u)) 0 calc(-21 * var(--u));
    }

    .p-env__gptw-img img {
        aspect-ratio: 319 / 206;
    }

    .p-env__positions {
        padding: calc(75 * var(--u)) 0 calc(75 * var(--u));
    }

    .p-env__entry {
        margin-top: calc(-61 * var(--u));
        margin-bottom: calc(13 * var(--u));
    }
}
