@charset "utf-8";
/* ============================================================
   プレビュー用：既存サイト style.css / index.css から
   このページで使用する範囲のみを抜粋（値は原本のまま）
   以下、DOMの出現順に合わせて記述
   ============================================================ */

html {
    scroll-behavior: smooth;
}

.gift {
    overflow-x: hidden;
}

/* ---------- タイトル帯（.lower_tit と組み合わせて使用） ---------- */
.hero_bg {
    position: relative;
    background-image: url("img/gift.jpg");
    background-size: cover;
    background-position: center;
}

.hero_bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgb(59 140 86 / 90%);
    pointer-events: none;
}

.hero_bg h1 {
    position: relative;
    z-index: 1;
}

/* ---------- キャンペーン概要（テキスト64% + 画像32%） ---------- */
.campaign_intro {
    display: flex;
    gap: 4%;
    margin-top: 40px;
}

.campaign_intro_text {
    width: 64%;
}

.campaign_intro_img {
    width: 32%;
    margin: 0;
}

.campaign_intro_img img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

@media print, screen and (max-width: 768px) {
    .campaign_intro {
        display: block;
    }

    .campaign_intro_text,
    .campaign_intro_img {
        width: 100%;
    }

    .campaign_intro_img {
        margin-top: 20px;
    }
}

/* ---------- 7アイテム一覧（既存の gratitude_list / gift_list と同じカードパターン） ---------- */
.gift_list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 20px;
}

.gift_list .gift_list_content {
    width: calc((100% - 40px) / 3);
    max-width: 386px;
    background-color: #fff;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.2);
}

.gift_list .gift_list_content .gift_list_content_inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding-bottom: 20px;
}

.gift_list .gift_list_content .gift_list_img img {
    width: 100%;
    height: auto;
}

.gift_list .gift_list_content h3 {
    padding: 12px 30px 35px;
    font-size: 2.4rem;
    text-align: left;
}

/* 寄付額ラベル */
.gift_list .gift_list_content .gift_list_amount {
    margin: 24px 30px 0;
    color: #006e4f;
    font-weight: bold;
    font-size: 1.6rem;
}

.gift_list .gift_list_content .gift_list_txt {
    margin: 0 30px 30px;
    line-height: 2;
    text-align: left;
}

.gift_list .gift_list_content .gift_list_txt p + p {
    margin-top: 10px;
}

.gift_list .gift_list_content .btn_btm {
    margin: auto 30px 0;
}

@media print, screen and (max-width: 1300px) {
    .gift_list .gift_list_content h3 {
        padding: 12px 20px 35px;
    }

    .gift_list .gift_list_content .gift_list_amount {
        margin: 24px 20px 0;
    }

    .gift_list .gift_list_content .gift_list_txt {
        margin: 0 20px 30px;
    }

    .gift_list .gift_list_content .btn_btm {
        margin-right: 20px;
        margin-left: 20px;
    }
}

@media print, screen and (max-width: 768px) {
    .gift_list .gift_list_content {
        width: calc(100% - 5.208vw);
        max-width: calc(100% - 5.208vw);
        margin-right: auto;
        margin-left: auto;
    }

    .gift_list .gift_list_content + .gift_list_content {
        margin-top: 20px;
    }

    .gift_list .gift_list_content .gift_list_img img {
        max-width: 520px;
    }
}

/* 一覧カード内「詳細はこちら」ボタン */
.gift .btn_green {
    margin-top: 30px;
    padding-bottom: 10px;
}

/* ---------- 商品詳細ブロック（各アイテム共通） ---------- */
.gift_detail {
    position: relative;
    padding-top: 40px;
    /* 固定ヘッダー分のオフセット（既存サイト #header の高さに合わせる） */
    scroll-margin-top: 137px;
}

@media print, screen and (max-width: 1300px) {
    .gift_detail {
        scroll-margin-top: 70px;
    }
}

@media print, screen and (max-width: 414px) {
    .gift_detail {
        scroll-margin-top: 55px;
    }
}

/* タイトル上部に画面幅いっぱいの薄緑帯（高さ400px） */
.gift_detail::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 100vw;
    height: 400px;
    transform: translateX(-50%);
    background-color: #eaf5ee;
}

.gift_detail > * {
    position: relative;
    z-index: 1;
}

.gift_detail .gift_title {
    font-weight: bold;
}

/* 詳細ブロック内の寄付額ラベル */
.gift_detail .gift_amount {
    margin-bottom: 12px;
    color: #006e4f;
    font-weight: bold;
    font-size: 1.6rem;
}

/* 代表者名 */
.gift_name {
    color: #006e4f;
    font-size: 1.8rem;
}

/* 商品紹介：テキスト50%＋画像50%レイアウト（各詳細ブロックの1つ目のみ） */
.gift_detail .detail_text_img {
    display: flex;
    align-items: flex-start;
    gap: 4%;
    margin-top: 30px;
}

.gift_detail .detail_text_img .detail_text {
    width: 48%;
    margin-top: 0;
}

.gift_detail .detail_text_img .detail_img {
    width: 48%;
    margin-top: 0;
}

/* 詳細ブロック1つ目の画像のみ正方形に */
.gift_detail .detail_text_img .detail_img img {
    aspect-ratio: 1 / 1;
}

@media print, screen and (max-width: 768px) {
    .gift_detail .detail_text_img {
        display: block;
    }

    .gift_detail .detail_text_img .detail_text,
    .gift_detail .detail_text_img .detail_img {
        width: 100%;
    }

    .gift_detail .detail_text_img .detail_img {
        margin-top: 20px;
    }
}

/* 商品詳細：画像単体（キャプション付き） */
.gift_detail .detail_img {
    margin: 30px 0 0;
}

.gift_detail .detail_img img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.gift_detail .detail_img figcaption {
    margin-top: 8px;
    font-size: 1.4rem;
    line-height: 1.6;
    text-align: center;
}

.gift_detail .detail_text {
    margin-top: 30px;
}

/* 商品詳細：画像2枚並び */
.gift_detail .detail_img_pair {
    display: flex;
    gap: 4%;
    margin-top: 30px;
}

.gift_detail .detail_img_pair .detail_img {
    width: 48%;
    margin-top: 0;
}

@media print, screen and (max-width: 768px) {
    .gift_detail .detail_img_pair {
        display: block;
    }

    .gift_detail .detail_img_pair .detail_img {
        width: 100%;
    }

    .gift_detail .detail_img_pair .detail_img + .detail_img {
        margin-top: 30px;
    }
}