/* ============================================================
   Diary 求人サイト v2 — 環境とサポート / fugulink / 選べる働き方
   - リズム: テキスト中心 → 左右分割（画像入り） → 3カード
   - 共通: .rc-h2-section-header / .rc-h2-concept-link を流用
   - パレット/フォントは hero.css の :root 変数を流用
   ============================================================ */

/* ============================================================
   Section: 環境とサポート（テキスト中心・中央寄せ）
   ============================================================ */
.rc-h2-environment {
    background: var(--rch2-bg-base);  /* #FAF7F2 */
    padding: 120px 4rem;
}
.rc-h2-environment-inner {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}
.rc-h2-environment-body {
    font-family: var(--rch2-font-serif);
    font-size: 16px;                            /* 14.5→16 に。中央寄せ本文の可読性を確保 */
    color: var(--rch2-text-sub);
    letter-spacing: 0.06em;
    line-height: 1.95;                          /* サイズ↑に合わせて 2.0→1.95 で締める */
}
.rc-h2-environment-body p {
    margin: 0 0 32px;
}
.rc-h2-environment-body p:last-child {
    margin-bottom: 0;
}
.rc-h2-environment-more-wrap {
    margin-top: 56px;
    text-align: center;
}
.rc-h2-environment-more-wrap .rc-h2-concept-link {
    margin-top: 0;
}

/* ============================================================
   Section: fugulink（左右分割・画像左/テキスト右）
   ============================================================ */
.rc-h2-fugulink {
    background: var(--rch2-bg-section);  /* #F5EFE6 */
    padding: 120px 4rem;
}
.rc-h2-fugulink-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.rc-h2-fugulink-content {
    display: grid;
    grid-template-columns: minmax(0, 42%) 1fr;
    gap: 64px;
    align-items: center;
}

/* 左: 画像（スマホ画面っぽい縦長 3:4 + ふわっと影） */
.rc-h2-fugulink-image {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    background: var(--rch2-bg-card);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    border-radius: 4px;
}
.rc-h2-fugulink-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.rc-h2-fugulink-image-placeholder {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rch2-text-light);
    font-size: 40px;
    background: var(--rch2-bg-card);
}
.rc-h2-fugulink-image-placeholder::after {
    content: "Image 3:4";
    position: absolute;
    bottom: 16px;
    right: 18px;
    font-family: var(--rch2-font-en);
    font-style: italic;
    font-size: 12px;
    color: var(--rch2-text-light);
    letter-spacing: 0.2em;
}

/* 右: テキスト */
.rc-h2-fugulink-text {
    font-family: var(--rch2-font-serif);
    font-size: 16px;                            /* 14.5 → 16 */
    color: var(--rch2-text-sub);
    letter-spacing: 0.06em;
    line-height: 1.95;
}
.rc-h2-fugulink-text p {
    margin: 0 0 26px;
}
.rc-h2-fugulink-text p:last-child {
    margin-bottom: 0;
}
.rc-h2-fugulink-quote em {
    font-style: italic;
    color: var(--rch2-text-main);
    font-weight: 500;
}

.rc-h2-fugulink-more-wrap {
    margin-top: 56px;
    text-align: center;
}
.rc-h2-fugulink-more-wrap .rc-h2-concept-link {
    margin-top: 0;
}

/* ============================================================
   Section: 選べる働き方（横並び3カード・上画像/下テキスト）
   ============================================================ */
.rc-h2-workstyle {
    background: var(--rch2-bg-base);
    padding: 120px 4rem;
}
.rc-h2-workstyle-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.rc-h2-workstyle-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.rc-h2-workstyle-card {
    background: #fff;
    border: 1px solid var(--rch2-line);
    border-radius: 3px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* 画像（上） */
.rc-h2-workstyle-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: var(--rch2-bg-section);
    overflow: hidden;
}
.rc-h2-workstyle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(0.92);
}
.rc-h2-workstyle-image-placeholder {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rch2-text-light);
    font-size: 32px;
    background: var(--rch2-bg-section);
}
.rc-h2-workstyle-image-placeholder::after {
    content: attr(data-label);
    position: absolute;
    bottom: 12px;
    right: 14px;
    font-family: var(--rch2-font-en);
    font-style: italic;
    font-size: 11px;
    color: var(--rch2-text-light);
    letter-spacing: 0.2em;
}

/* テキスト（下） */
.rc-h2-workstyle-body {
    padding: 28px 24px 32px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.rc-h2-workstyle-title {
    font-family: var(--rch2-font-serif);
    font-size: 17px;
    color: var(--rch2-text-main);
    letter-spacing: 0.1em;
    line-height: 1.6;
    font-weight: 500;
    margin: 0 0 12px;
}
.rc-h2-workstyle-desc {
    font-family: var(--rch2-font-serif);
    font-size: 15px;                            /* 13 → 15 */
    color: var(--rch2-text-sub);
    letter-spacing: 0.05em;
    line-height: 1.85;
    margin: 0 0 20px;
    flex: 1;
}
.rc-h2-workstyle-link {
    align-self: flex-start;
    margin-top: 0 !important;  /* concept-link 既定の margin-top 上書き */
}

/* ============================================================
   レスポンシブ
   ============================================================ */

/* タブレット */
@media (max-width: 1024px) {
    .rc-h2-environment { padding: 100px 2.5rem; }
    .rc-h2-fugulink { padding: 100px 2.5rem; }
    .rc-h2-workstyle { padding: 100px 2.5rem; }

    .rc-h2-fugulink-content { gap: 40px; }

    .rc-h2-workstyle-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* モバイル */
@media (max-width: 768px) {
    .rc-h2-environment { padding: 88px 1.5rem; }
    .rc-h2-fugulink { padding: 88px 1.5rem; }
    .rc-h2-workstyle { padding: 88px 1.5rem; }

    .rc-h2-environment-body {
        font-size: 13.5px;
        line-height: 1.95;
        text-align: left;  /* モバイルは左寄せが読みやすい */
    }
    .rc-h2-environment-body p {
        margin-bottom: 24px;
    }

    .rc-h2-fugulink-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .rc-h2-fugulink-image {
        max-width: 320px;
        margin: 0 auto;
    }
    .rc-h2-fugulink-text {
        font-size: 13.5px;
        line-height: 1.95;
    }

    .rc-h2-workstyle-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .rc-h2-workstyle-body { padding: 24px 20px 28px; }
    .rc-h2-workstyle-title { font-size: 16px; }
}

/* 小型モバイル */
@media (max-width: 380px) {
    .rc-h2-environment,
    .rc-h2-fugulink,
    .rc-h2-workstyle { padding: 72px 1.2rem; }
}
