/**
 * Nishi2 Affiliates - カードスタイル
 *
 * @package Nishi2_Affiliates
 */

/* ==========================================================================
   共通スタイル
   ========================================================================== */

.n2a-card,
.n2a-banner,
.n2a-cta-block {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    box-sizing: border-box;
}

.n2a-card *,
.n2a-banner *,
.n2a-cta-block * {
    box-sizing: border-box;
}

/* ==========================================================================
   ボタン共通
   ========================================================================== */

.n2a-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    gap: 6px;
}

.n2a-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.n2a-btn-primary {
    background: linear-gradient(135deg, #ff6b35 0%, #f7c500 100%);
    color: #fff;
}

.n2a-btn-primary:hover {
    background: linear-gradient(135deg, #e85a28 0%, #e0b200 100%);
    color: #fff;
}

.n2a-btn-phone {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #fff;
}

.n2a-btn-phone:hover {
    background: linear-gradient(135deg, #218838 0%, #1aa179 100%);
    color: #fff;
}

.n2a-btn-emergency-phone {
    background: linear-gradient(135deg, #dc3545 0%, #fd7e14 100%);
    color: #fff;
    font-size: 18px;
    padding: 16px 32px;
    width: 100%;
}

.n2a-btn-emergency-phone:hover {
    background: linear-gradient(135deg, #c82333 0%, #e96c0c 100%);
    color: #fff;
}

.n2a-btn-line {
    background: #06c755;
    color: #fff;
}

.n2a-btn-line:hover {
    background: #05b54c;
    color: #fff;
}

.n2a-btn-large {
    font-size: 18px;
    padding: 16px 40px;
}

/* ==========================================================================
   サービスカード [n2a_card]
   ========================================================================== */

.n2a-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* サービスタイプ別のアクセントカラー */
.n2a-type-emergency {
    border-left: 4px solid #dc3545;
}

.n2a-type-lifestyle {
    border-left: 4px solid #28a745;
}

.n2a-type-life_event {
    border-left: 4px solid #6f42c1;
}

.n2a-type-other {
    border-left: 4px solid #ff6b35;
}

/* カードヘッダー */
.n2a-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.n2a-card-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 8px;
    flex-shrink: 0;
}

.n2a-card-title {
    flex: 1;
}

.n2a-card-title h4 {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 700;
    color: #333;
    line-height: 1.4;
}

.n2a-card-tagline {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* 特徴リスト */
.n2a-card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.n2a-feature {
    display: inline-block;
    background: #f8f9fa;
    color: #495057;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
}

/* 料金 */
.n2a-card-price {
    background: #fff3cd;
    color: #856404;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

/* アクションボタン群 */
.n2a-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.n2a-card-actions .n2a-btn {
    flex: 1;
    min-width: 140px;
}

/* ==========================================================================
   緊急対応カード [n2a_emergency_card]
   ========================================================================== */

.n2a-card-emergency {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
    border: 2px solid #dc3545;
    border-left-width: 6px;
}

.n2a-emergency-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.n2a-emergency-icon {
    font-size: 40px;
    flex-shrink: 0;
}

.n2a-emergency-title h4 {
    margin: 0 0 4px 0;
    font-size: 20px;
    font-weight: 700;
    color: #dc3545;
}

.n2a-emergency-title p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.n2a-emergency-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.n2a-card-emergency .n2a-card-features {
    margin-top: 8px;
    margin-bottom: 0;
}

.n2a-card-emergency .n2a-feature {
    background: rgba(255, 255, 255, 0.8);
    font-size: 12px;
}

/* ==========================================================================
   バナー [n2a_banner]
   ========================================================================== */

.n2a-banner {
    margin: 24px 0;
    text-align: center;
}

.n2a-banner a {
    display: inline-block;
    transition: opacity 0.2s ease;
}

.n2a-banner a:hover {
    opacity: 0.85;
}

.n2a-banner img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   インラインリンク [n2a_inline]
   ========================================================================== */

.n2a-inline {
    display: inline;
}

.n2a-inline a {
    color: #ff6b35;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(255, 107, 53, 0.3);
    text-underline-offset: 3px;
    transition: all 0.2s ease;
}

.n2a-inline a:hover {
    color: #e85a28;
    text-decoration-color: #e85a28;
}

/* ==========================================================================
   CTAブロック [n2a_cta]
   ========================================================================== */

.n2a-cta-block {
    background: linear-gradient(135deg, #ff6b35 0%, #f7c500 100%);
    border-radius: 16px;
    padding: 32px;
    margin: 32px 0;
    text-align: center;
}

.n2a-cta-content {
    max-width: 480px;
    margin: 0 auto;
}

.n2a-cta-title {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 12px 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.n2a-cta-text {
    color: rgba(255, 255, 255, 0.95);
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.n2a-cta-block .n2a-btn-primary {
    background: #fff;
    color: #ff6b35;
}

.n2a-cta-block .n2a-btn-primary:hover {
    background: #f8f9fa;
    color: #e85a28;
}

/* ==========================================================================
   レスポンシブ対応
   ========================================================================== */

@media (max-width: 600px) {
    .n2a-card {
        padding: 16px;
    }

    .n2a-card-header {
        flex-direction: column;
        text-align: center;
    }

    .n2a-card-logo {
        width: 80px;
        height: 80px;
    }

    .n2a-card-title h4 {
        font-size: 16px;
    }

    .n2a-card-actions {
        flex-direction: column;
    }

    .n2a-card-actions .n2a-btn {
        width: 100%;
    }

    .n2a-emergency-header {
        flex-direction: column;
        text-align: center;
    }

    .n2a-cta-block {
        padding: 24px 16px;
    }

    .n2a-cta-title {
        font-size: 18px;
    }

    .n2a-btn-large {
        font-size: 16px;
        padding: 14px 24px;
    }
}
