@charset "UTF-8";

/* =========================================
   1. 基本設定・変数 (Base & Variables)
========================================= */
:root {
    /* カラーパレット */
    --color-primary: #ff5100;      /* メインカラー（温かみのあるオレンジ） */
    --color-primary-dark: #e04800; /* ホバー時の濃いオレンジ */
    --color-text: #333333;         /* 基本テキスト色（濃いグレー） */
    --color-text-light: #666666;   /* 薄いテキスト色 */
    --color-bg-light: #f8f9fa;     /* 背景用・薄いグレー */
    --color-white: #ffffff;        /* 白 */
    --color-border: #eeeeee;       /* 枠線色 */

    /* フォント設定 */
    --font-family-base: 'Noto Sans JP', sans-serif;
}

/* リセットCSS的な基本設定 */
body, h1, h2, h3, h4, p, ul, figure {
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family-base);
    color: var(--color-text);
    line-height: 1.8;
    background-color: var(--color-white);
    font-feature-settings: "palt"; /* 文字詰め */
}

a {
    text-decoration: none;
    color: var(--color-primary);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--color-primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

/* =========================================
   2. レイアウト・共通クラス (Layout & Utility)
========================================= */
/* コンテナ（コンテンツ幅の中央寄せ） */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* セクションの基本余白 */
section {
    padding: 80px 0;
}

/* 背景色ユーティリティ */
.bg-light {
    background-color: var(--color-bg-light);
}

/* テキスト配置ユーティリティ */
.text-center { text-align: center; }

/* 余白調整ユーティリティ */
.mb-4 { margin-bottom: 2rem !important; }

/* セクションタイトル */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
}
/* 中央寄せタイトルの装飾（下線） */
.text-center.section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--color-primary);
    margin: 20px auto 0;
}

/* セクションリード文 */
.section-lead {
    font-size: 1.1rem;
    margin-bottom: 50px;
    color: var(--color-text-light);
}

/* =========================================
   3. コンポーネント：ボタン (Buttons)
========================================= */
.btn {
    display: inline-block;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

/* メインボタン（塗りつぶし） */
.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 4px 10px rgba(255, 81, 0, 0.3);
}
.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(255, 81, 0, 0.4);
    color: var(--color-white);
}

/* アウトラインボタン（枠線のみ） */
.btn-outline {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background-color: transparent;
}
.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* 小さいボタン */
.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* 大きいボタン */
.btn-lg {
    padding: 15px 50px;
    font-size: 1.2rem;
}

/* =========================================
   4. 各セクションのスタイル
========================================= */

/* --- ヘッダー --- */
.site-header {
    padding: 15px 0;
    background-color: rgba(255, 255, 255, 0.95);
    position: sticky; /* スクロール追従 */
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.site-logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text);
}

/* --- ヒーローエリア --- */
.hero-section {
    position: relative;
    height: 500px; /* 高さ指定 */
    color: var(--color-white);
    overflow: hidden;
    padding: 0; /* 余白リセット */
    display: flex;
    align-items: center;
}
/* 背景画像の設定 */
.hero-bg-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* 画像をトリミングして全体を覆う */
    z-index: -1;
    filter: brightness(0.6); /* 文字を読みやすくするため画像を暗く */
}
.hero-content {
    width: 100%;
    text-align: center;
}
.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}
.hero-lead {
    font-size: 1.3rem;
    font-weight: 500;
}

/* --- 導入セクション（ミッション） --- */
.section-intro p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

/* --- 【新規追加】私たちの活動セクション --- */
.activity-subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    color: var(--color-primary);
    font-weight: 700;
}
.activity-list {
    list-style: none; /* 標準の黒丸を消す */
    padding: 0;
    margin: 0 auto;
    max-width: 900px; /* リスト全体の幅を制限 */
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* PCでは2列表示で見やすくする */
    gap: 20px 40px; /* 上下・左右の余白 */
}
.activity-list li {
    font-size: 1.1rem;
    padding-left: 35px; /* アイコン分の余白 */
    position: relative;
    line-height: 1.6;
}
/* リストの先頭にチェックマーク風のアイコンを付ける（CSSで描画） */
.activity-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px; /* 位置微調整 */
    width: 18px;
    height: 9px;
    border-left: 4px solid var(--color-primary);
    border-bottom: 4px solid var(--color-primary);
    transform: rotate(-45deg); /* チェックマークの形にする */
}

/* --- 活動紹介（プロジェクト） --- */
.project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* PCは2列 */
    gap: 40px;
}
.project-card {
    background: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}
.project-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.project-card:hover .project-img {
    transform: scale(1.05);
}
.project-body {
    padding: 25px;
    text-align: center;
}
.project-body h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}
.project-body p {
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* --- 4つの支援方法セクション --- */
.support-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* PCは4列 */
    gap: 25px;
}
.support-card {
    background-color: var(--color-white);
    padding: 40px 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 2px solid transparent; /* ホバー時の枠線準備 */
    color: var(--color-text); /* リンク文字色をリセット */
    display: flex;
    flex-direction: column;
    height: 100%; /* 高さ揃え */
    box-sizing: border-box;
}
.support-card:hover {
    border-color: var(--color-primary); /* ホバーで枠線表示 */
    transform: translateY(-5px);
    color: var(--color-text);
}
/* =========================================
   リンク無効化カードのスタイル（追加）
========================================= */
/* aタグからdivタグに変わったので、カーソルを指マークから通常に戻す */
.support-card.support-card-disabled {
    cursor: default;
}

/* ホバー時のアニメーション（枠線色、浮き上がり）を無効にする */
.support-card.support-card-disabled:hover {
    border-color: transparent; /* 枠線を透明のままに */
    transform: none; /* 上に移動させない */
}

/* 「準備中」テキストのスタイル */
.link-text-disabled {
    font-weight: 700;
    color: var(--color-text-light); /* 薄いグレーにして「押せない」感を出す */
    display: inline-flex;
    align-items: center;
    justify-content: center; /* 追加：左右中央寄せ */
    width: 100%; /* 追加：幅を親要素いっぱいに広げる */
    /* 他のカードのリンクテキストと位置を揃えるための余白調整 */
    margin-top: auto; 
}
/* ※ここの絵文字用スタイルは残しています */
.support-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    line-height: 1;
}
.support-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--color-primary);
}
.support-card p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin-bottom: 0; /* マージンを0に */
    padding-bottom: 20px; /* パディングで余白確保 */
    flex-grow: 1; /* 下部リンクの位置を揃える */
}
.link-text {
    font-weight: 700;
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
}
.external-icon {
    font-size: 0.9em;
    margin-left: 5px;
    position: relative;
    top: -2px;
}

/* --- 寄付金の詳細セクション --- */
/* ページ内リンクで飛んできたときのアニメーション */
#donation-details:target {
    animation: highlight-fade 2s ease-out;
}
@keyframes highlight-fade {
    0% { background-color: rgba(255, 81, 0, 0.1); }
    100% { background-color: transparent; }
}

.box-container {
    background-color: var(--color-white);
    padding: 60px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-top: 6px solid var(--color-primary); /* 上部にアクセントカラーの線 */
}
.donation-usage {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* PCは3列 */
    gap: 30px;
    margin: 50px 0;
}
.usage-item {
    text-align: center;
    padding: 20px;
    background: var(--color-bg-light);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
/* 新スタイル（画像用） */
.usage-icon-wrapper {
    height: 100px; /* イラストの高さに合わせて調整 */
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.usage-icon-img {
    max-width: 100%;
    max-height: 100%;
    width: auto; /* アスペクト比を維持 */
    height: auto;
    object-fit: contain; /* 枠内に収める */
}

.usage-item h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--color-primary);
}
.usage-item p {
    font-size: 0.95rem;
}
.cta-message {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 25px;
}
.cta-note {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-top: 15px;
}

/* --- 応援者の声セクション --- */
.voice-card {
    background-color: var(--color-white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto; /* 中央寄せ */
}
.voice-img-wrapper {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--color-border);
}
.voice-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.voice-text {
    font-size: 1.2rem;
    font-style: italic;
    line-height: 1.6;
}

/* --- フッター --- */
.site-footer {
    padding: 40px 0;
    background-color: var(--color-text);
    color: var(--color-white);
}
.copyright {
    margin-top: 20px;
    font-size: 0.8rem;
    color: #999;
}

/* =========================================
   5. レスポンシブ対応 (Media Queries)
========================================= */
/* タブレット・スマホ共通 (992px以下) */
@media (max-width: 992px) {
    section { padding: 60px 0; }
    .section-title { font-size: 1.75rem; }

    /* 私たちの活動リスト：1列に */
    .activity-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* 4つの支援カード、プロジェクト：2列に（変更なし） */
    .support-grid,
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    /* 寄付使途：1列に（変更なし） */
    .donation-usage {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* 寄付詳細ボックスの余白調整 */
    .box-container { padding: 40px 25px; }
    
    /* 応援者の声：縦並びに */
    .voice-card {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}

/* スマホ専用 (576px以下) */
@media (max-width: 576px) {
    .container { padding: 0 15px; }
    
    /* ヒーローエリア調整 */
    .hero-section { height: 400px; }
    .hero-content h1 { font-size: 2rem; }
    .hero-lead { font-size: 1.1rem; }
    
    /* 4つの支援カード、プロジェクト：1列に */
    .support-grid,
    .project-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .support-card {
        padding: 30px 20px;
        flex-direction: row; /* 横並びレイアウトに変更 */
        text-align: left;
        align-items: center;
        gap: 20px;
        height: auto; /* 高さを自動に */
    }
    /* ※ここの絵文字用スタイルは残しています */
    .support-icon { margin-bottom: 0; font-size: 3rem; }

    .support-card h3 { margin-bottom: 5px; }
    /* スマホではカードの説明文を非表示にしてスッキリさせる */
    .support-card p { display: none; }
    
    /* ボタンサイズ調整 */
    .btn-lg {
        width: 100%; /* 幅いっぱいに */
        padding: 15px 20px;
    }
}
/* =========================================
   CF予告セクション（修正版・変数名修正済み）
========================================= */
.section-cf-teaser {
    /* ▼▼▼ 修正：正しい変数名 --color-primary に変更 ▼▼▼ */
    background: linear-gradient(135deg, var(--color-primary), #f88d4c);
    padding: 80px 0;
    position: relative;
    text-align: center;
}

.cf-teaser-content {
    position: relative;
    z-index: 1;
}

.section-cf-teaser .cf-title {
    color: #ffffff !important;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.section-cf-teaser .cf-lead {
    color: #ffe5d0 !important;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 30px;
}

.section-cf-teaser .cf-text {
    color: #ffffff !important;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* フォーム誘導エリア（HTMLから削除した場合は不要ですが念のため残します） */
.cf-action {
    background-color: rgba(255,255,255,0.15);
    padding: 30px;
    border-radius: 15px;
    display: inline-block;
    border: 1px solid rgba(255,255,255,0.3);
}

.section-cf-teaser .action-text,
.section-cf-teaser .action-note {
    color: #ffffff !important;
}

.action-text {
    font-size: 1rem;
    margin-bottom: 20px;
    font-weight: 500;
}

.btn-cf {
    background-color: #fff;
    /* ▼▼▼ 修正：正しい変数名 --color-primary に変更 ▼▼▼ */
    color: var(--color-primary) !important;
    font-size: 1.2rem;
    padding: 15px 40px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    border: none;
    font-weight: 700;
}

.btn-cf:hover {
    background-color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    /* ▼▼▼ 修正：正しい変数名 --color-primary に変更 ▼▼▼ */
    color: var(--color-primary) !important;
}

.btn-cf .icon {
    font-size: 1.4rem;
    margin-right: 10px;
}

.action-note {
    font-size: 0.85rem;
    margin-top: 15px;
    opacity: 0.9;
}

/* スマホ向けの調整 */
@media (max-width: 768px) {
    .section-cf-teaser {
        padding: 60px 0;
    }
    .section-cf-teaser .cf-title { font-size: 1.6rem; }
    .section-cf-teaser .cf-lead { font-size: 1.2rem; }
    .section-cf-teaser .cf-text { font-size: 1rem; }
    .btn-cf { font-size: 1.1rem; padding: 12px 30px; }
}