@charset "UTF-8";

/* ==========================================================================
   1. Base & Layout (全体・共通)
   ========================================================================== */
.cf-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box; /* はみ出し防止の追加 */
    overflow: hidden;       /* はみ出し防止の追加 */
}

/* 共通の「枠線付き見出し」 */
.section-title-border {
    border-bottom: 1px solid #b08d57;
    padding-bottom: 10px;
    margin: 40px 0 20px;
}

/* ボタンの基本設定 */
.cf-container .action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100% !important; 
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 15px 10px;
    font-size: 0.95rem;
    min-height: 54px;
    margin: 0 auto;
    border-radius: 4px;
    border: none;
    text-decoration: none;
}

/* 受付開始前のボタンスタイル */
.cf-container .action-btn.is-wait {
    background: #e0e0e0 !important;
    border-color: #e0e0e0 !important;
    color: #888 !important;
    cursor: default;
}

/* ★修正点：PCでは完全に消去し、不要なスタイルを無効化 */
.mobile-only {
    display: none !important;
}

/* YouTubeコンテナ */
.youtube-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #f9f9f9;
    margin-bottom: 20px;
}

ul {font-size: 0.9rem; margin-left:20px;}
li {margin:10px 20px 0; line-height:1.5; list-style-type: square;}
/* 本文中の画像スタイル */
.content-image {
    margin: 30px 0;   /* 前後の文章との間に適切な余白を作る */
    text-align: center;
}

.content-image img {
    width: 100%;      /* 親要素の幅いっぱいに広げる */
    max-width: 800px; /* PCで広がりすぎないように制限 */
    height: auto;
    border-radius: 4px; /* 他のパーツと合わせた角丸 */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* 浮かび上がらせて高級感を出す */
}

.image-caption {
    margin-top: 10px;
    font-size: 0.85rem;
    color: #666;      /* キャプションは少し薄い色で */
    line-height: 1.4;
}

/* ==========================================================================
   2. Hero Section (上段：進捗エリア)
   ========================================================================== */
.cf-hero-flex {
    display: flex;
    gap: 40px; /* 20pxから40pxに戻し、余白を確保 */
    margin-bottom: 40px;
    align-items: flex-start;
}

.cf-main-visual {
    flex: 2.2;
    min-width: 0; /* flex内の画像はみ出し防止 */
}

.cf-status-card {
    flex: 1;
    background: #fdfdfd;
    border: 1px solid #f0f0f0;
    padding: 30px;
    position: sticky;
    top: 100px;
    z-index: 10;
    box-sizing: border-box;
}

.cf-main-visual img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* 進捗数値表示 */
.status-item { margin-bottom: 25px; }
.status-label { font-size: 0.9rem; color: #666; margin-bottom: 5px; }

.status-amount {
    font-size: 1.8rem;
    font-weight: bold;
    color: #1a1a1a;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    line-height: 1.2;
}

.status-amount small {
    font-size: 0.9rem;
    margin-left: 2px;
    margin-right: 8px;
}

.goal-denominator {
    font-size: 0.9rem;
    color: #888;
    font-weight: normal;
}

.progress-container {
    background: #eee;
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
    margin: 15px 0;
}
.progress-bar {
    background: #b08d57;
    height: 100%;
    transition: width 1s ease-in-out;
}

/* ==========================================================================
   3. Main Grid (下段：2カラムエリア)
   ========================================================================== */
.cf-main-grid {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.cf-main-content {
    flex: 2.2; /* ヒーローと揃えて2.2に修正 */
    min-width: 0;
}

.cf-sidebar-returns {
    flex: 1;
    min-width: 320px;
}

/* ==========================================================================
   4. Reward Cards (リターン詳細)
   ========================================================================== */
.reward-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.reward-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: 0.3s;
    box-sizing: border-box;
}

.reward-card:hover {
    border-color: #b08d57;
    box-shadow: 0 5px 15px rgba(176, 141, 87, 0.1);
}

.reward-card.is-option {
    background-color: #fafaf8;
    border-style: dashed;
}

.reward-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #f9f9f9;
    overflow: hidden;
    position: relative;
}

.reward-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.option-badge-on-img {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(176, 141, 87, 0.9);
    color: #fff;
    padding: 4px 10px;
    font-size: 0.7rem;
    font-weight: bold;
    z-index: 2;
}

.reward-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.reward-price {
    font-size: 1.3rem;
    line-height: 1;
    font-weight: bold;
    color: #b08d57;
    margin-bottom: 5px;
}

.reward-body h4 {
    margin: 0 !important;
    line-height: 1.3;
    font-size: 1.05rem;
}

.reward-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-top: 8px;
    margin-bottom: 5px !important;
    color: #444;
    word-wrap: break-word;
    position: relative;
    max-height: 4.8em; /* 1.6 × 3行分に変更 */
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.reward-desc.is-open {
    max-height: 2000px;
}

.reward-stock {
    font-size: 0.85rem;
    font-weight: bold;
    color: #b08d57; /* ブランドカラー */
    margin-top: 5px;
}

.reward-stock.is-soldout {
    color: #e63946; /* 完売は赤字で強調 */
}
/* アンカーリンクで飛んだ時の停止位置を調整 */
#returns {
    scroll-margin-top: 100px; /* ヘッダーの高さ + 少しの余裕 */
}

/* スマホの場合はヘッダーが少し低くなるので微調整 */
@media (max-width: 768px) {
    #returns {
        scroll-margin-top: 80px;
    }
}

/* ==========================================================================
   5. Responsive (レスポンシブ)
   ========================================================================== */
@media (max-width: 850px) {
    .cf-container {
        padding: 20px 15px;
    }

    .cf-hero-flex,
    .cf-main-grid {
        display: block;
    }

    .cf-main-content,
    .cf-sidebar-returns,
    .cf-status-card {
        width: 100%;
        margin-bottom: 40px;
        position: static;
    }

/* 1. PCで残ってしまう問題を完全に防ぐ */
    .mobile-only {
        display: block !important;
    }

 /* 2. 固定枠：初期状態は隠しておく */
    #sticky-footer-btn {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        background: rgba(255, 255, 255, 0.98);
        padding: 20px 15px 20px !important;
        box-shadow: 0 -3px 15px rgba(0, 0, 0, 0.1);
        z-index: 99999;
        box-sizing: border-box !important;
        margin: 0 !important;

        /* --- 追加：初期状態（隠す） --- */
        transform: translateY(100%); /* 画面の下側に隠す */
        opacity: 0;                   /* 透明にする */
        visibility: hidden;           /* 完全に非表示にする */
        transition: all 0.4s ease;    /* スッと出てくるアニメーション */
    }

    /* --- 追加：JSで表示フラグ（is-active）がついた時 --- */
    #sticky-footer-btn.is-active {
        transform: translateY(0);    /* 定位置に戻す */
        opacity: 1;                   /* 表示する */
        visibility: visible;
    }

    /* 3. ボタン：style.css の 400px 制限を解除 */
    #sticky-footer-btn .action-btn {
        display: flex !important;
        width: 100% !important;
        max-width: none !important;
        min-height: 46px !important;
        height: 46px !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #b08d57 !important;
        color: #fff !important;
        font-size: 0.9rem !important;
        border-radius: 8px !important;
        border: none !important;
        text-align: center;
        justify-content: center;
        align-items: center;
        text-decoration: none;
    }
}

/* その他パーツ（レポート、開閉ボタンなど） */
.report-list-mini {
    max-height: 400px;
    overflow-y: auto;
    background: #fdfdfd;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 4px;
}

.desc-toggle-btn {
    display: inline-flex;
    background: #fdfaf5;
    border: 1px solid #b08d57;
    color: #b08d57;
    padding: 5px 14px;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 20px;
    cursor: pointer;
    margin-bottom: 15px;
    width: fit-content;
}

.no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 0.8rem;
    background: #f5f5f5;
}