/* ============================================
   困ったときはセクション専用CSS
   ============================================ */

/* レスキューセクション全体 */
.rescue-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 50%, #fbbf24 100%);
    position: relative;
    overflow: hidden;
}

.rescue-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

.rescue-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 15s ease-in-out infinite reverse;
}

/* レスキューコンテナ */
.rescue-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    position: relative;
    z-index: 1;
}

/* レスキューカード */
.rescue-card {
    background: white;
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.rescue-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.rescue-card:hover::before {
    transform: scaleX(1);
}

.rescue-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* プライマリカード（WEB RESCUE） */
.rescue-card-primary {
    border: 3px solid #ef4444;
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
}

.rescue-card-primary::before {
    background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
}

/* バッジ */
.rescue-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
    }
}

/* アイコン */
.rescue-icon {
    width: 96px;
    height: 96px;
    background: linear-gradient(135deg, #f0f1ff 0%, #e0e7ff 100%);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.rescue-card-primary .rescue-icon {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
}

.rescue-icon svg {
    color: #6366f1;
    transition: all 0.3s ease;
}

.rescue-card-primary .rescue-icon svg {
    color: #ef4444;
}

.rescue-card:hover .rescue-icon {
    transform: scale(1.1) rotate(-5deg);
}

/* タイトル */
.rescue-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 8px;
    font-family: 'Yusei Magic', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
}

.rescue-subtitle {
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 20px;
    font-weight: 600;
}

.rescue-description {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 24px;
}

/* 特徴リスト */
.rescue-features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
}

.rescue-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    font-size: 0.95rem;
    color: #334155;
    font-weight: 600;
    border-bottom: 1px solid #e2e8f0;
}

.rescue-features li:last-child {
    border-bottom: none;
}

.rescue-features svg {
    flex-shrink: 0;
    color: #22c55e;
}

/* ボタン */
.btn-rescue,
.btn-blog {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
}

.btn-rescue {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3);
}

.btn-rescue:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.4);
    transform: translateY(-2px);
    gap: 14px;
}

.btn-blog {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.btn-blog:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
    gap: 14px;
}

/* ============================================
   レスポンシブ対応
   ============================================ */

/* タブレット */
@media (max-width: 768px) {
    .rescue-section {
        padding: 80px 0;
    }

    .rescue-container {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 0 20px;
    }

    .rescue-card {
        padding: 36px 28px;
    }

    .rescue-icon {
        width: 80px;
        height: 80px;
    }

    .rescue-icon svg {
        width: 48px;
        height: 48px;
    }

    .rescue-title {
        font-size: 1.5rem;
    }

    .rescue-subtitle {
        font-size: 0.95rem;
    }

    .rescue-description {
        font-size: 0.9rem;
    }

    .rescue-features li {
        font-size: 0.9rem;
    }
}

/* スマートフォン */
@media (max-width: 480px) {
    .rescue-section {
        padding: 60px 0;
    }

    .rescue-container {
        gap: 24px;
        padding: 0 16px;
    }

    .rescue-card {
        padding: 32px 24px;
    }

    .rescue-badge {
        font-size: 0.8rem;
        padding: 6px 16px;
        margin-bottom: 20px;
    }

    .rescue-icon {
        width: 72px;
        height: 72px;
        margin-bottom: 20px;
    }

    .rescue-icon svg {
        width: 40px;
        height: 40px;
    }

    .rescue-title {
        font-size: 1.35rem;
        margin-bottom: 6px;
    }

    .rescue-subtitle {
        font-size: 0.9rem;
        margin-bottom: 16px;
    }

    .rescue-description {
        font-size: 0.875rem;
        margin-bottom: 20px;
    }

    .rescue-features {
        margin-bottom: 24px;
    }

    .rescue-features li {
        font-size: 0.875rem;
        padding: 10px 0;
    }

    .btn-rescue,
    .btn-blog {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
        font-size: 0.95rem;
    }
}

/* アニメーション */
@media (prefers-reduced-motion: no-preference) {
    .rescue-card {
        animation: fadeInUp 0.6s ease-out backwards;
    }

    .rescue-card:nth-child(1) { animation-delay: 0.1s; }
    .rescue-card:nth-child(2) { animation-delay: 0.2s; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-20px) translateX(10px);
    }
}
