@charset "UTF-8";

/* =========================================================
   日興リカ 採用サイト  サステナビリティ  -  sustain.css
   （共通トークン・ヘッダー・フッターは style.css を参照）
   デザイン: 00nikkorica202604_05sustainability_02_WEB用.ai
   実測カラー:
     page-grad #0059BD → #0078FF → #009FE8
     box-bg #007EE8 / hero-sub #53C5FF
     文字グラデ #2A9BFF → #0078FF → #0059BD
   ========================================================= */

/* ページ全体：青グラデーション背景 */
.sustain {
    position: relative;
    padding-top: 80px;
    /* 固定ヘッダー分 */
    background: linear-gradient(180deg,
            #0059bd 0%,
            #0078ff 42%,
            #009fe8 66%,
            #009fe8 100%);
    color: #fff;
    overflow-x: clip;
}

/* 理科系ドゥードル（白線画）を薄く重ねる */
.sustain::before {
    content: "";
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    inset: 0;
    background: url("../images/creed-hero-doodle.png")no-repeat top center/ 100%;
    opacity: .7;
    pointer-events: none;
    z-index: 0;
}

/* 青グラデーション文字（内側 span に適用） */
.grad-text {
    font-weight: 700;
    letter-spacing: .06em;
    color: #0078ff;
    background: linear-gradient(90deg, #2a9bff 0%, #0078ff 55%, #0059bd 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 白プレート＋青グラデ文字ラベル */
.s-label {
    display: inline-block;
    background: #fff;
    padding: 12px 26px;
    box-shadow: 0 8px 20px rgba(0, 30, 90, .2);
    line-height: 1;
}

.s-label .grad-text {
    font-size: 32px;
}

/* =========================================================
   HERO
   ========================================================= */
.sustain-hero {
    position: relative;
    /* タイトル上余白は下層ページ共通 140px */
    padding: 140px 0 100px;
    overflow: clip;
}

.sustain-hero .container-rica {
    position: relative;
    z-index: 1;
}

.sustain-hero-head {}

.sustain-hero .sec-title {
    font-size: 50px;
    font-weight: 700;
    letter-spacing: .1em;
    margin: 0;
}

.sustain-hero .sec-sub {
    margin: 6px 0 0;
    color: #53c5ff;
    font-family: "Figtree", "Noto Sans JP", sans-serif;
    font-weight: 500;
    font-size: 25px;
    letter-spacing: .2em;
}

/* =========================================================
   4つの取り組みボックス
   ========================================================= */
.sustain-boxes {
    position: relative;
    padding: 20px 0 90px;
}

.sustain-boxes .container-rica {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* 各ボックス：青パネル＋テキスト左・写真右 */
.sustain-box {
    display: flex;
    align-items: stretch;
    gap: 56px;
    background: #007ee8;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 16px 40px rgba(0, 30, 90, .22);
}

.sustain-box-body {
    flex: 1 1 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ラベル群：縦積み・左寄せ（2つ目は少し右へインデント） */
.sustain-box-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 24px;
}

.s-label--indent {
    margin-left: 40px;
}

/* 見出し（白・太字） */
.sustain-box-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: .04em;
    margin: 0 0 18px;
    color: #fff;
}

/* 本文 */
.sustain-box-text {
    margin: 0;
}

.sustain-box-text p {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.9;
    letter-spacing: .02em;
    margin: 0 0 14px;
    color: #fff;
}

.sustain-box-text p:last-child {
    margin-bottom: 0;
}

/* 写真（角丸・カバー表示） */
.sustain-box-img {
    flex: 1 1 46%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 14px 30px rgba(0, 20, 70, .28);
}

.sustain-box-img img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
}

/* =========================================================
   レスポンシブ
   ========================================================= */
@media (max-width: 991px) {
    .sustain-hero {
        padding-top: 110px;
    }

    .sustain-hero .sec-title {
        font-size: 38px;
    }

    .sustain-hero .sec-sub {
        font-size: 18px;
    }

    .s-label .grad-text {
        font-size: 26px;
    }

    .sustain-box {
        flex-direction: column;
        gap: 28px;
        padding: 36px 32px;
    }

    .sustain-box-img {
        order: -1;
        /* SP・タブレットでは写真を上に */
    }

    .sustain-box-img img {
        min-height: 220px;
        max-height: 320px;
    }
}

@media (max-width: 767px) {
    .sustain-hero {
        padding: 70px 0 60px;
    }

    .sustain-hero .sec-title {
        font-size: 30px;
    }

    .sustain-hero .sec-sub {
        font-size: 15px;
    }

    .s-label .grad-text {
        font-size: 22px;
    }

    .s-label {
        padding: 10px 20px;
    }

    .s-label--indent {
        margin-left: 24px;
    }

    .sustain-box {
        padding: 28px 22px;
    }

    .sustain-box-title {
        font-size: 20px;
    }

    .sustain-box-text p {
        font-size: 15px;
        line-height: 1.85;
    }
}