/* ── オーバーレイ本体 ── */
#rmo-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

#rmo-overlay.rmo-visible {
    opacity: 1;
    pointer-events: auto;
    cursor: pointer;
}

/* ── カード ── */
.rmo-card {
    position: relative;
    width: min(480px, 92vw);
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);

    transform: translateY(32px) scale(0.96);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#rmo-overlay.rmo-visible .rmo-card {
    transform: translateY(0) scale(1);
}

/* ── アイキャッチ画像 ── */
.rmo-eyecatch {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.rmo-eyecatch-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #1a1b4b 0%, #3a3b8b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.rmo-eyecatch-placeholder svg {
    opacity: 0.3;
}

/* ── テキスト・ボタンエリア ── */
.rmo-body {
    padding: 24px 28px 32px;
    text-align: center;
}

.rmo-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 12px;
}

.rmo-title {
    font-size: clamp(16px, 4vw, 20px);
    font-weight: 800;
    line-height: 1.5;
    color: #111;
    margin: 0 0 24px;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.rmo-cta-btn {
    display: inline-block;
    padding: 14px 36px;
    background: #e8341c;
    color: #fff !important;
    font-size: 16px;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: background 0.2s, transform 0.15s;
    cursor: pointer;
    border: none;
}

.rmo-cta-btn:hover {
    background: #c42a15;
    transform: translateY(-2px);
    color: #fff !important;
    text-decoration: none;
}

/* ── 閉じるボタン ── */
.rmo-close {
    cursor: default;
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 1;
}

.rmo-close:hover {
    background: rgba(0, 0, 0, 0.7);
}

/* ── モバイル調整 ── */
@media (max-width: 480px) {
    .rmo-body {
        padding: 20px 20px 28px;
    }
}
