/* ============================================================
   Nexus Affiliate Box
   ============================================================ */

.nxaff-box {
    --nxaff-border: #e5dbd4;
    --nxaff-bg: #fffdfb;
    --nxaff-copy: #2f2924;
    --nxaff-subtle: #8a7868;
    --nxaff-btn-bg: #2f2924;
    --nxaff-btn-hover: #473b31;
    margin: 2em 0;
    border: 1px solid var(--nxaff-border);
    border-radius: 16px;
    background: var(--nxaff-bg);
    box-shadow: 0 2px 12px rgba(62, 42, 28, 0.06);
    overflow: hidden;
    font-size: 0.95em;
    line-height: 1.6;
}

/* 画像エリア */

.nxaff-image {
    padding: 28px 48px 20px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 160px;
    border-bottom: 1px solid var(--nxaff-border);
}

.nxaff-image img {
    max-height: 220px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.nxaff-image--placeholder {
    min-height: 120px;
    color: #c4b5a8;
    font-size: 0.78em;
    font-weight: 700;
    letter-spacing: 0.08em;
}

/* テキストエリア */

.nxaff-body {
    padding: 18px 22px 14px;
}

.nxaff-title {
    margin: 0 0 6px;
    color: var(--nxaff-copy);
    font-size: 1.12em;
    font-weight: 700;
    line-height: 1.5;
}

.nxaff-maker {
    margin: 0;
    color: var(--nxaff-subtle);
    font-size: 0.87em;
    font-weight: 500;
}

/* ボタンエリア */

.nxaff-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 4px 22px 18px;
}

.nxaff-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 18px;
    border-radius: 10px;
    background: var(--nxaff-btn-bg);
    color: #fff !important;
    text-decoration: none !important;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.nxaff-btn:hover,
.nxaff-btn:focus-visible {
    background: var(--nxaff-btn-hover);
    transform: translateY(-1px);
    text-decoration: none !important;
    color: #fff !important;
}

.nxaff-btn:focus-visible {
    outline: 2px solid rgba(47, 41, 36, 0.3);
    outline-offset: 2px;
}

.nxaff-btn-label {
    font-size: 0.97em;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.nxaff-btn-arrow {
    font-size: 1.25em;
    font-weight: 700;
    line-height: 1;
    opacity: 0.7;
}

/* フッター */

.nxaff-footnote {
    padding: 10px 22px 14px;
    border-top: 1px solid var(--nxaff-border);
}

.nxaff-footnote p {
    margin: 0;
    color: var(--nxaff-subtle);
    font-size: 0.72em;
    line-height: 1.7;
}

/* モバイル */

@media (max-width: 600px) {
    .nxaff-image {
        padding: 22px 32px 16px;
        min-height: 130px;
    }

    .nxaff-image img {
        max-height: 170px;
    }

    .nxaff-body {
        padding: 16px 18px 12px;
    }

    .nxaff-actions {
        padding: 4px 18px 16px;
    }

    .nxaff-footnote {
        padding: 10px 18px 14px;
    }

    .nxaff-btn {
        padding: 14px 16px;
    }
}
