/* リセット・ベース設定 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    color: #333;
    -webkit-text-size-adjust: 100%;
}

.container {
    max-width: 450px;
    margin: 0 auto;
    background: #ffffff;
    min-height: 100vh;
    padding: 24px;
    box-sizing: border-box;
}

header { text-align: center; padding-bottom: 20px; }
.date-badge { background: #333; color: #fff; font-size: 0.7rem; padding: 3px 10px; border-radius: 4px; font-weight: bold; margin-bottom: 15px; display: inline-block; }

/* メルカリ風ロゴカラー */
.brand-logo { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.05em; margin: 0; }
.logo-red { color: #ff3b30; }
.logo-blue { color: #007aff; }

h1 { font-size: 1rem; color: #666; margin-top: 5px; font-weight: bold; }

/* 報酬デザイン */
.reward-hero {
    background: #fff5f5;
    border-radius: 16px;
    padding: 22px;
    margin-top: 15px;
    border: 1px solid #ffccd5;
}

.reward-hero .label { display: block; font-size: 0.8rem; font-weight: bold; color: #ff3b30; margin-bottom: 5px; }
.reward-amount { color: #ff3b30; margin-bottom: 5px; }
.reward-hero .amount { font-size: 3.2rem; font-weight: 900; line-height: 1; }
.reward-hero .unit { font-size: 1.2rem; font-weight: bold; margin-left: 2px; }

.total-text { font-size: 0.85rem; font-weight: bold; margin: 5px 0 0; color: #555; }

/* カード共通 */
.card { border: 1px solid #eee; border-radius: 16px; padding: 20px; margin-bottom: 20px; background: #fff; }
.section-title { font-size: 1rem; font-weight: bold; margin: 0 0 10px; color: #111; }
.small-info { font-size: 0.75rem; color: #777; margin-bottom: 12px; }

/* コピーボックス（崩れ対策済） */
.code-card { border: 2px solid #ff3b30; box-shadow: 0 4px 12px rgba(255, 59, 48, 0.08); }

.copy-box { 
    display: flex; 
    background: #fff; 
    border: 1px solid #ddd; 
    border-radius: 10px; 
    overflow: hidden; 
    width: 100%;
    box-sizing: border-box;
}

#referralCode { 
    flex: 1; 
    min-width: 0;
    border: none; 
    padding: 14px 10px; 
    font-size: 1.3rem; 
    font-weight: bold; 
    text-align: center; 
    outline: none; 
    color: #333;
    background: transparent;
}

#copyBtn { 
    flex: 0 0 90px;
    background: #ff3b30; 
    color: #fff; 
    border: none; 
    cursor: pointer; 
    font-weight: bold; 
    font-size: 0.9rem;
    transition: 0.2s;
}

#copyBtn.success { background: #28a745; }
.copy-message { display: none; color: #28a745; font-size: 0.8rem; font-weight: bold; margin-top: 8px; text-align: center; }

/* ストアボタン */
.store-buttons { display: flex; gap: 10px; }
.btn-store { 
    flex: 1; 
    background: #111; 
    color: #fff; 
    text-decoration: none; 
    text-align: center; 
    padding: 14px 5px; 
    border-radius: 10px; 
    font-size: 0.85rem; 
    font-weight: bold; 
}

/* ステップ */
.step-list { display: flex; flex-direction: column; gap: 10px; }
.step-item { display: flex; gap: 12px; padding: 12px; background: #f8f9fa; border-radius: 10px; border: 1px solid transparent; }
.step-item.destaque { background: #fff5f5; border: 1px solid #ffccd5; }
.step-num { width: 24px; height: 24px; background: #bbb; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: bold; flex-shrink: 0; }
.step-num.highlight { background: #ff3b30; }
.step-content strong { font-size: 0.85rem; display: block; margin-bottom: 2px; color: #111; }
.step-content p { font-size: 0.75rem; color: #666; margin: 0; line-height: 1.4; }

footer { text-align: center; font-size: 0.7rem; color: #bbb; margin-top: 30px; padding-bottom: 20px; }