.csr-hero {
    background-image: url('https://asibimo.com/wp-content/uploads/2025/07/csr_hero.jpg'); 
    background-size: cover;
    background-position: center;
    height: 450px;
    display: grid;
    place-items: center;
    color: white;
}
.csr-hero-title {
    font-size: 3rem;
    font-weight: bold;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}
/* ページ全体のコンテナ */
.csr-page-content {
    background-color: #fff;
}

/* SDGsセクション */
.sdgs-section {
    background-color: #f4f6f8; /* 薄いグレーの背景 */
    padding: 4rem;
    border-radius: 16px;
}
.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}
/* h2 にロゴフォントを適用 */
.sdgs-logo-font {
    font-family: "acier-bat-noir", sans-serif;
    font-size: 70px;
    font-weight: 400;
    font-style: normal;
    color: var(--primary-blue); /* ロゴの色 */
    margin-bottom: 0.5rem;
    line-height: 1.1;
    letter-spacing: 2px;
}
/* h3 にサブタイトル用のスタイルを適用 */
.section-title {
    font-size: 1.5rem; /* h2より少し小さく */
    font-weight: bold;
    color: #333;
    margin: 0;
}
.section-description {
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.9;
    color: #555;
    margin-bottom: 4rem;
}

/* SDGsロゴとゴールのコンテナ */
.sdgs-goals-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem; /* 少しギャップを広げる */
}

/* 左側のフルロゴ */
.sdgs-logo-main {
    width: 45%; /* コンテナ幅の45%程度の幅を指定 */
    max-width: 400px; /* 少し最大幅を広げる */
}
.sdgs-logo-main img {
    width: 100%;
    height: auto;
}

/* 右側の3つのゴールアイコン */
.sdgs-goals-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    width: 50%;
    max-width: 450px;
}
.sdgs-goals-grid img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

/* ----------------------------------
   寄付(Donation)セクション
   ---------------------------------- */
.donation-section {
    padding: 5rem 0 10rem 9rem;
}
.section-header-alt {
    display: flex;
    align-items: baseline;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
.section-logo-font {
    font-family: "acier-bat-noir", sans-serif; /* 仮のフォント */
    font-size: 70px;
    font-weight: 400;
    font-style: normal;  
    color: var(--primary-blue);
    line-height: 1;
    letter-spacing: 2px;
}
.section-title-alt {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}
.section-catchcopy {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}
.section-subtitle {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 3rem;
}
.donation-description {
    line-height: 1.9;
    margin: 0rem 35rem 3rem 0rem;
}
.image-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.0rem;
    justify-content: end;
}
.image-gallery img {
    width: 100%;
    height: 120%;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* ----------------------------------
   私たちにできること(Message)セクション
   ---------------------------------- */
.message-section {
    position: relative;
    padding: 0; /* paddingを削除 */
    overflow: hidden;
}

/* 左側の薄い水色背景 */
.message-section::before {
    content: '';
    position: absolute;
    top: 8rem; /* 背景の開始位置を下げてタイトル分のスペースを確保 */
    left: 0;
    width: 65%; /* 左2/3程度 */
    height: 80%; /* 高さを調整 */
    background: #F0F7F8;
    z-index: 1;
}

/* タイトル配置（背景の外） */
.message-section .message-section-header-alt {
    display: flex;
    align-items: baseline;
    gap: 1.5rem;
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem 0 0; /* 下部のpaddingを0にしてタイトルを背景の外に配置 */
}

.message-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem 4rem 0; /* 下部のpaddingを増やして全体の高さを調整 */
}

.message-text {
    flex: 1;
    max-width: 60%;
    padding: 0;
}

.message-catchcopy {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.message-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 2rem;
    line-height: 1.2;
    position: relative;
    z-index: 3;
    max-width: 60%;
}

.message-organization {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 2rem;
}

.message-body {
    margin-bottom: 2rem;
}

.message-body p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1.5rem;
}

/* 右側の画像エリア */
.message-image {
    position: relative;
    flex: 0 0 auto;
    width: 475px;
    height: 340px;
    margin-top: -8rem; /* 上部に少しオーバーラップ */
    margin-right: 2rem;
}

.message-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

/* ▼ message-section 内 キャッチコピー用装飾 */
.message-body .message-slogan {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: bold;
    margin: 2rem 0;
    padding: 0.5rem 1rem 0.5rem 0;
    color: var(--text-dark);
}

.message-body .message-slogan .slogan-icon {
    font-size: 1.6rem;
    margin: 0 0.6rem;
    display: inline-block;
    transform: translateY(2px);
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {

    .donation-description {
        margin: 0rem 21rem 3rem 0rem;
    }
        
    .message-section .message-section-header-alt {
        margin: 0 auto;
        padding: 3rem 2rem 0 2rem;
    }
    
    .message-section::before {
        width: 70%;
    }
    
    .message-image {
        width: 350px;
        height: 250px;
        margin-right: 1rem;
    }
    
    .message-text {
        padding: 0 0 0 2rem;
    }
}


@media (max-width: 834px) {

    .donation-description {
        margin: 0rem 13rem 3rem 0rem;
    }
    
    .message-section::before {
        top: 7rem;
        height: 67%;
    }

    .message-image {
        width: 290px;
        height: 207px;
        margin-right: 1rem;
    }
    
    .message-text {
        padding: 0 0 0 2rem;
    }
}


@media (max-width: 768px) {
    .message-section::before {
        width: 100%;
        border-radius: 0;
    }
    
    .message-inner {
        flex-direction: column;
        text-align: center;
        padding: 0 1rem 2rem;
    }
    
    .message-text {
        max-width: 100%;
        order: 2;
    }
    
    .message-image {
        order: 1;
        width: 300px;
        height: 200px;
        margin: 0 auto 2rem;
        align-self: center;
    }
    
}


/* ===============================================
   スマートフォン向けレスポンシブ対応 (414px以下)
   =============================================== */
   @media (max-width: 414px) {
    
    /* ヒーロービューの調整 */
    .csr-hero {
        height: 300px;
    }
    .csr-hero-title {
        font-size: 2.2rem;
    }

    /* SDGsセクションの調整 */
    .sdgs-section {
        padding: 2.5rem 1rem; /* パディングを調整 */
    }
    .sdgs-logo-font {
        font-size: 48px; /* ロゴフォントサイズを調整 */
    }
    .section-title {
        font-size: 1.25rem;
    }
    .section-description {
        font-size: 0.95rem;
        margin-bottom: 2.5rem;
    }
    .sdgs-goals-container {
        flex-direction: column; /* 縦積みに変更 */
        gap: 2rem;
    }
    .sdgs-logo-main {
        width: 80%; /* 幅を調整 */
        max-width: 300px;
    }
    .sdgs-goals-grid {
        width: 100%;
        max-width: 100%;
    }

    /* 寄付セクションの調整 */
    .donation-section {
        padding: 3rem 1rem; /* パディングを全体に適用 */
    }
    .section-header-alt {
        flex-direction: column; /* 縦積みに変更 */
        align-items: flex-start; /* 左寄せ */
        gap: 0.5rem;
        margin-bottom: 2rem;
    }
    .section-logo-font {
        font-size: 48px;
    }
    .section-title-alt {
        font-size: 1.25rem;
    }
    .section-catchcopy {
        font-size: 1.5rem;
        text-align: center;
    }
    .section-subtitle {
        font-size: 1rem;
        text-align: center;
        margin-bottom: 2rem;
    }
    .donation-description {
        margin: 0 0 2rem 0; /* マージンをリセット */
        font-size: 0.95rem;
    }
    .image-gallery {
        grid-template-columns: 1fr; /* 1列に変更 */
        gap: 1.5rem;
    }
    .image-gallery img {
        height: auto; /* 高さを自動に */
    }

    /* 私たちにできることセクションの調整 */
    .message-section .message-section-header-alt {
        padding: 2rem 1rem 0 1rem;
        flex-direction: column; /* 縦積みに変更 */
        align-items: flex-start; /* 左寄せ */
        gap: 0.5rem;
        margin-bottom: 0;
    }
    .message-title {
        font-size: 1.6rem;
        text-align: center; /* タイトルを中央寄せに */
        max-width: 100%;
        margin-bottom: 0;
    }
    .message-section::before {
        top: 0; /* 背景を一番上から開始 */
        height: 100%; /* 全体を覆うように */
        width: 100%;
        border-radius: 0;
    }
    .message-inner {
        flex-direction: column;
        align-items: center; /* 中央寄せ */
        padding: 2rem 1rem;
        gap: 2rem;
    }
    .message-catchcopy {
        font-size: 1.5rem;
        text-align: center;
    }
    .message-text {
        max-width: 100%;
        order: 2; /* テキストを下に */
        padding: 0; /* 不要なパディングを削除 */
    }
    .message-organization,
    .message-body p {
        text-align: left; /* 本文は左寄せに戻す */
    }
    .message-body p {
        font-size: 0.95rem;
    }
    .message-image {
        order: 1; /* 画像を上に */
        width: 100%; /* 幅を100%に */
        max-width: 350px; /* 最大幅を指定 */
        height: auto;
        margin: 0; /* マージンをリセット */
    }
}

@media (max-width: 320px) {
    .message-catchcopy {
        font-size: 1.3rem;
    }
}