/* ============================================================
 * 合同会社センターライト ESG・SDGsへの取り組み 専用CSS(v5.32.0)
 * page-cl-sdgs.php に対応するサステナビリティページデザイン
 * フルワイド化対応:SWELLのコンテナ制約を解除し画面全幅で表示
 * ============================================================ */

/* SWELLのコンテナ幅制限を解除してフルワイド化 */
body.page .cl-sdgs-page,
body.page-template .cl-sdgs-page{
    width: 100%;
    max-width: none;
}
.cl-sdgs-page{
    background: #fff;
    color: #101827;
    width: 100%;
    max-width: none;
    margin: 0;
}

/* SWELL親要素のコンテナ制約を打ち消す */
.l-mainContent:has(.cl-sdgs-page),
.l-content:has(.cl-sdgs-page),
#content:has(.cl-sdgs-page),
.l-main:has(.cl-sdgs-page){
    max-width: none !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* :has 非対応ブラウザ向けフォールバック:SDGsページではbody全体で制約解除 */
body.page-template-page-cl-sdgs .l-mainContent,
body.page-template-page-cl-sdgs .l-content,
body.page-template-page-cl-sdgs #content,
body.page-template-page-cl-sdgs .l-main{
    max-width: none !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.cl-sdgs-section-inner{
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

/* ============================================================
 * ヒーローセクション
 * ============================================================ */
.cl-sdgs-hero{
    position: relative;
    padding: 70px 0 140px;
    background: linear-gradient(135deg, #0a1f3a 0%, #1a3658 50%, #0d4a6e 100%);
    overflow: hidden;
}
.cl-sdgs-hero-inner{
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
    text-align: center;
    box-sizing: border-box;
}
.cl-sdgs-eyebrow{
    display: inline-block;
    color: #d4a449;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .25em;
    margin-bottom: 18px;
}
.cl-sdgs-title{
    font-size: clamp(28px, 4.5vw, 42px);
    font-weight: 700;
    color: #fff;
    margin: 0;
    letter-spacing: .04em;
    line-height: 1.4;
}
.cl-sdgs-hero-wave{
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 1;
}

/* ============================================================
 * 共通セクション要素
 * ============================================================ */
.cl-sdgs-intro,
.cl-sdgs-esg,
.cl-sdgs-goals,
.cl-sdgs-all{
    padding: 90px 0;
}
.cl-sdgs-intro{
    background: #f8f6f0;
    padding-top: 70px;
}
.cl-sdgs-esg,
.cl-sdgs-all{
    background: #fff;
}
.cl-sdgs-goals{
    background: #faf8f3;
}

/* セクションタイトルの上の罫線+ENラベル */
.cl-sdgs-divider{
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}
.cl-sdgs-divider-line{
    width: 28px;
    height: 1px;
    background: #c9a45a;
}
.cl-sdgs-divider-text{
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .22em;
    color: #c9a45a;
}

.cl-sdgs-h2{
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 700;
    color: #1a2d4e;
    text-align: center;
    margin: 0 0 50px;
    letter-spacing: .04em;
    line-height: 1.5;
    padding-bottom: 18px;
    border-bottom: 1px solid #d8d2c4;
}

/* イントロセクション専用見出し */
.cl-sdgs-intro-headline{
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 700;
    color: #1a2d4e;
    margin: 0 0 24px;
    letter-spacing: .04em;
    line-height: 1.55;
}
.cl-sdgs-intro-text{
    max-width: 720px;
    margin: 0 auto;
    text-align: justify;
    color: #5a5650;
    font-size: 14px;
    line-height: 2.1;
    letter-spacing: .03em;
}

/* ============================================================
 * ESGセクション 3カード
 * ============================================================ */
.cl-sdgs-esg-grid{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.cl-sdgs-esg-card{
    background: #fff;
    border-radius: 12px;
    padding: 36px 26px 32px;
    box-shadow:
        0 2px 8px rgba(0,0,0,.04),
        0 10px 30px rgba(26,45,78,.06);
    text-align: center;
    transition: transform .3s cubic-bezier(.2,.85,.25,1), box-shadow .3s ease;
}
.cl-sdgs-esg-card:hover{
    transform: translateY(-4px);
    box-shadow:
        0 4px 12px rgba(0,0,0,.06),
        0 18px 40px rgba(26,45,78,.1);
}

.cl-sdgs-esg-icon{
    width: 64px;
    height: 64px;
    margin: 0 auto 22px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cl-sdgs-esg-icon svg{
    width: 32px;
    height: 32px;
}
.cl-sdgs-esg-icon-env{
    background: #e8f5ee;
    color: #4C9F38;
}
.cl-sdgs-esg-icon-social{
    background: #fcecdc;
    color: #FD6925;
}
.cl-sdgs-esg-icon-gov{
    background: #e3f0f8;
    color: #1a5f8a;
}

.cl-sdgs-esg-label{
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .2em;
    color: #c9a45a;
    margin-bottom: 8px;
}
.cl-sdgs-esg-title{
    font-size: 19px;
    font-weight: 700;
    color: #1a2d4e;
    margin: 0 0 22px;
    letter-spacing: .03em;
    padding-bottom: 18px;
    border-bottom: 1px solid #e8e3d6;
}

.cl-sdgs-esg-list{
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}
.cl-sdgs-esg-list li{
    position: relative;
    padding: 8px 0 8px 18px;
    font-size: 13px;
    color: #4a4540;
    line-height: 1.8;
    letter-spacing: .02em;
}
.cl-sdgs-esg-list li::before{
    content: "";
    position: absolute;
    left: 0;
    top: 16px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #c9a45a;
}
.cl-sdgs-esg-card:nth-child(1) .cl-sdgs-esg-list li::before{ background: #4C9F38; }
.cl-sdgs-esg-card:nth-child(2) .cl-sdgs-esg-list li::before{ background: #FD6925; }
.cl-sdgs-esg-card:nth-child(3) .cl-sdgs-esg-list li::before{ background: #1a5f8a; }

/* ============================================================
 * SDGs 注力目標カード
 * ============================================================ */
.cl-sdgs-goals-intro{
    max-width: 720px;
    margin: -30px auto 40px;
    text-align: center;
    color: #5a5650;
    font-size: 14px;
    line-height: 2;
    letter-spacing: .03em;
}

.cl-sdgs-focus-grid{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.cl-sdgs-focus-card{
    background: #fff;
    border-radius: 10px;
    padding: 22px 22px 24px;
    box-shadow: 0 4px 14px rgba(26,45,78,.06);
    transition: transform .3s ease, box-shadow .3s ease;
}
.cl-sdgs-focus-card:hover{
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(26,45,78,.12);
}

.cl-sdgs-focus-head{
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}
.cl-sdgs-focus-num{
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 18px;
    font-family: 'Inter', system-ui, sans-serif;
    box-shadow: 0 4px 10px rgba(0,0,0,.12);
}
.cl-sdgs-focus-name{
    flex: 1;
    font-size: 14.5px;
    font-weight: 700;
    color: #1a2d4e;
    line-height: 1.45;
    letter-spacing: .02em;
}
.cl-sdgs-focus-desc{
    margin: 0;
    color: #4a4540;
    font-size: 12.5px;
    line-height: 1.85;
    letter-spacing: .02em;
}

/* ============================================================
 * 17の目標 全体グリッド(v5.32.0 UNICEF風レイアウト刷新)
 * ============================================================ */
.cl-sdgs-h2-wrap{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: 28px;
}
.cl-sdgs-h2-line{
    flex: 0 0 80px;
    height: 1px;
    background: #d8d2c4;
}
.cl-sdgs-h2-inline{
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 700;
    color: #1a2d4e;
    margin: 0;
    letter-spacing: .04em;
    white-space: nowrap;
}

.cl-sdgs-all-lead{
    max-width: 720px;
    margin: 0 auto 40px;
    text-align: center;
    color: #5a5650;
    font-size: 14px;
    line-height: 2;
    letter-spacing: .03em;
}

.cl-sdgs-all-grid{
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
    max-width: 1000px;
    margin: 0 auto;
}

.cl-sdgs-goal-item{
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 4px;
    transition: transform .28s cubic-bezier(.2,.85,.25,1), box-shadow .28s ease;
}
.cl-sdgs-goal-item:hover{
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 12px 24px rgba(0,0,0,.18);
}

.cl-sdgs-goal-img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 画像未配置時のフォールバックタイル(SVGアイコン入り、UNICEFレイアウト準拠) */
.cl-sdgs-goal-tile{
    width: 100%;
    height: 100%;
    padding: 10px 9px 8px;
    color: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
}
.cl-sdgs-goal-num{
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 4px;
    letter-spacing: -.02em;
}
.cl-sdgs-goal-name{
    font-size: 9.5px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0;
    margin-bottom: 4px;
    flex-shrink: 0;
}
.cl-sdgs-goal-icon{
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin-top: auto;
    min-height: 0;
}
.cl-sdgs-goal-icon svg{
    width: 60%;
    height: auto;
    max-height: 60%;
    display: block;
}

.cl-sdgs-all-note{
    max-width: 720px;
    margin: 40px auto 0;
    text-align: center;
    color: #5a5650;
    font-size: 12.5px;
    line-height: 1.9;
    letter-spacing: .03em;
}

/* ============================================================
 * 本文追加エリア
 * ============================================================ */
.cl-sdgs-extra{
    padding: 60px 0;
    background: #fff;
}
.cl-sdgs-extra .cl-sdgs-section-inner{
    max-width: 800px;
}

/* ============================================================
 * スクロールアニメーション
 * ============================================================ */
.cl-sdgs-page .cl-reveal{
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .8s ease, transform .8s cubic-bezier(.2,.85,.25,1);
}
.cl-sdgs-page .cl-reveal.is-visible{
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
 * レスポンシブ
 * ============================================================ */
@media (max-width: 960px){
    .cl-sdgs-hero{
        padding: 50px 0 100px;
    }
    .cl-sdgs-intro,
    .cl-sdgs-esg,
    .cl-sdgs-goals,
    .cl-sdgs-all{
        padding: 60px 0;
    }
    .cl-sdgs-esg-grid{
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .cl-sdgs-focus-grid{
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .cl-sdgs-all-grid{
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 10px;
    }
}

@media (max-width: 600px){
    .cl-sdgs-focus-grid{
        grid-template-columns: 1fr;
    }
    .cl-sdgs-all-grid{
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }
    .cl-sdgs-h2-line{
        flex: 0 0 30px;
    }
    .cl-sdgs-goal-name{
        font-size: 8.5px;
    }
}

@media (prefers-reduced-motion: reduce){
    .cl-sdgs-page *{
        animation: none !important;
        transition: none !important;
    }
    .cl-sdgs-page .cl-reveal{
        opacity: 1;
        transform: none;
    }
}
