/* 森森買取 紹介LP 専用スタイル(モバイル優先) */

.mm-lp {
    --mm-green: #4CAF50;
    --mm-green-dark: #388E3C;
    --mm-orange: #ff7a00;
    --mm-text: #333;
    --mm-muted: #666;
    --mm-border: #e0e0e0;
    max-width: 720px;
    margin: 0 auto;
    padding: 12px 14px 48px;
    color: var(--mm-text);
    line-height: 1.7;
}

/* PR表記 */
.mm-pr-label {
    display: inline-block;
    font-size: 11px;
    color: var(--mm-muted);
    background: #f2f2f2;
    border: 1px solid var(--mm-border);
    border-radius: 3px;
    padding: 2px 8px;
    margin-bottom: 14px;
}

/* ヒーロー */
.mm-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    background: linear-gradient(160deg, #f1fbf1 0%, #ffffff 100%);
    border: 1px solid var(--mm-border);
    border-radius: 14px;
    padding: 20px 16px;
}
.mm-hero-mascot {
    width: 140px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,.12));
}
.mm-hero-title {
    font-size: 24px;
    line-height: 1.35;
    margin: 6px 0 0;
    border: none;
}
.mm-hero-title span {
    color: var(--mm-green-dark);
}
.mm-hero-sub {
    font-size: 15px;
    margin: 4px 0 0;
}
.mm-hero-sub strong {
    color: var(--mm-orange);
    font-size: 17px;
}

/* 共通セクション見出し */
.mm-section-title {
    font-size: 18px;
    margin: 28px 0 12px;
    padding-left: 10px;
    border-left: 5px solid var(--mm-green);
    border-bottom: none;
}

/* 紹介コード枠(最重要) */
.mm-code-box {
    margin-top: 22px;
    background: #fff;
    border: 2px solid var(--mm-green);
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 4px 14px rgba(76,175,80,.15);
}
.mm-code-box .mm-section-title {
    margin-top: 0;
}
.mm-code-display {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 6px 0 4px;
}
.mm-code-value {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--mm-green-dark);
    background: #f1fbf1;
    border: 1px dashed var(--mm-green);
    border-radius: 8px;
    padding: 8px 16px;
    user-select: all;
}
.mm-copy-btn {
    appearance: none;
    border: none;
    background: var(--mm-green);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    min-height: 48px;
    transition: background .2s;
}
.mm-copy-btn:hover { background: var(--mm-green-dark); }
.mm-copy-btn:focus-visible { outline: 3px solid #b7e4b9; outline-offset: 2px; }
.mm-copy-btn.is-copied { background: var(--mm-green-dark); }
.mm-copy-toast {
    text-align: center;
    color: var(--mm-green-dark);
    font-weight: 700;
    margin: 8px 0 0;
    opacity: 0;
    transition: opacity .2s;
}
.mm-copy-toast.is-visible { opacity: 1; }
.mm-warning {
    margin: 12px 0 0;
    padding: 10px 12px;
    background: #fff6e9;
    border: 1px solid #ffd9a0;
    border-radius: 8px;
    color: #b35c00;
    font-size: 13px;
    font-weight: 600;
}

/* 特典 */
.mm-benefit-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.mm-benefit-list li {
    position: relative;
    padding: 10px 12px 10px 38px;
    margin-bottom: 8px;
    background: #f7fbf7;
    border-radius: 8px;
}
.mm-benefit-list li::before {
    content: "🎁";
    position: absolute;
    left: 12px;
    top: 10px;
}
.mm-benefit-list strong { color: var(--mm-orange); }
.mm-benefit-note {
    font-size: 12px;
    color: var(--mm-muted);
    margin: 6px 0 0;
}

/* 申込みの流れ */
.mm-step-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: none;
}
.mm-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--mm-border);
    border-radius: 10px;
    margin-bottom: 10px;
}
.mm-step-num {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--mm-green);
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mm-step-text { padding-top: 3px; }

/* 中立性 */
.mm-neutral {
    margin-top: 24px;
    padding: 14px 16px;
    background: #f6f8fa;
    border-radius: 10px;
    font-size: 13.5px;
    color: #555;
}
.mm-neutral p { margin: 0 0 8px; }
.mm-neutral p:last-child { margin-bottom: 0; }

/* CTA */
.mm-cta-section {
    margin-top: 28px;
    text-align: center;
}
.mm-cta-btn {
    display: block;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    background: #cfcfcf;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
    padding: 18px 16px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,.12);
    transition: transform .15s, background .2s, box-shadow .2s;
}
.mm-cta-btn.is-ready {
    background: var(--mm-orange);
    box-shadow: 0 6px 18px rgba(255,122,0,.4);
    animation: mm-pulse 1.6s ease-in-out infinite;
}
.mm-cta-btn.is-ready:hover { transform: translateY(-2px); }
@keyframes mm-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}
.mm-cta-hint {
    font-size: 13px;
    color: var(--mm-muted);
    margin: 10px 0 0;
}

/* 終了告知 */
.mm-ended {
    margin-top: 24px;
    text-align: center;
    background: #f6f8fa;
    border: 1px solid var(--mm-border);
    border-radius: 12px;
    padding: 28px 16px;
}
.mm-ended h3 { border: none; margin-top: 0; }
.mm-link { color: var(--mm-green-dark); font-weight: 700; }

/* 確認モーダル */
.mm-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}
.mm-modal[hidden] { display: none; }
.mm-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.5);
}
.mm-modal-content {
    position: relative;
    background: #fff;
    border-radius: 14px;
    max-width: 440px;
    width: 100%;
    padding: 24px 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,.3);
}
.mm-modal-title {
    font-size: 18px;
    margin: 0 0 12px;
    border: none;
    text-align: center;
}
.mm-modal-body {
    font-size: 14.5px;
    margin: 0 0 18px;
    text-align: center;
}
.mm-modal-code {
    color: var(--mm-green-dark);
    font-size: 18px;
    letter-spacing: 1px;
}
.mm-modal-warn { color: #c0392b; font-size: 13px; }
.mm-modal-actions {
    display: flex;
    gap: 10px;
}
.mm-modal-cancel,
.mm-modal-confirm {
    flex: 1;
    min-height: 50px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}
.mm-modal-cancel {
    background: #eee;
    color: #555;
}
.mm-modal-confirm {
    background: var(--mm-orange);
    color: #fff;
}
.mm-modal-confirm:focus-visible,
.mm-modal-cancel:focus-visible { outline: 3px solid #ffd9a0; outline-offset: 2px; }

/* PC向け微調整 */
@media (min-width: 600px) {
    .mm-hero {
        flex-direction: row;
        text-align: left;
        justify-content: center;
        gap: 22px;
        padding: 28px 24px;
    }
    .mm-hero-mascot { width: 160px; }
    .mm-hero-title { font-size: 28px; }
}
