/* ===========================
   Info Card Contrast Fix
   情報カードの色コントラストを最適化
   =========================== */

/* 情報カードのデザインを完全に刷新 */
.info-card {
    /* グラデーション背景で視覚的に魅力的に */
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f2ff 100%);
    border: 2px solid #0066ff;
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 102, 255, 0.1);
}

/* 背景の装飾パターン */
.info-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    transform: rotate(45deg);
    pointer-events: none;
}

/* アイコンスタイル */
.info-card i {
    font-size: 3rem;
    color: #0066ff;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
    /* アイコンに背景を追加 */
    background: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.15);
}

/* 見出しスタイル */
.info-card h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

/* 段落スタイル */
.info-card p {
    color: #333333;
    line-height: 1.8;
    margin-bottom: 16px;
    font-size: 1rem;
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.info-card p:last-child {
    margin-bottom: 0;
}

/* 強調表示 */
.info-card strong {
    color: #0066ff;
    font-weight: 600;
}

/* リンクスタイル */
.info-card a {
    color: #0066ff;
    text-decoration: underline;
    font-weight: 500;
    transition: all 0.3s ease;
}

.info-card a:hover {
    color: #0052cc;
    text-decoration: none;
}

/* ダークモード対応 */
@media (prefers-color-scheme: dark) {
    .info-card {
        background: linear-gradient(135deg, #1a2332 0%, #0f1823 100%);
        border-color: #3a7bd5;
        box-shadow: 0 4px 20px rgba(58, 123, 213, 0.2);
    }
    
    .info-card::before {
        background: radial-gradient(circle, rgba(58, 123, 213, 0.05) 1px, transparent 1px);
    }
    
    .info-card i {
        color: #3a7bd5;
        background: #0f1823;
        box-shadow: 0 4px 12px rgba(58, 123, 213, 0.3);
    }
    
    .info-card h2 {
        color: #ffffff;
    }
    
    .info-card p {
        color: #e0e0e0;
    }
    
    .info-card strong {
        color: #5a9fd8;
    }
    
    .info-card a {
        color: #5a9fd8;
    }
    
    .info-card a:hover {
        color: #7ab8e5;
    }
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .info-card {
        padding: 24px;
        border-radius: 12px;
    }
    
    .info-card i {
        font-size: 2.5rem;
        width: 70px;
        height: 70px;
    }
    
    .info-card h2 {
        font-size: 1.5rem;
    }
    
    .info-card p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .info-card {
        padding: 20px;
        margin-bottom: 24px;
    }
    
    .info-card i {
        font-size: 2rem;
        width: 60px;
        height: 60px;
        margin-bottom: 16px;
    }
    
    .info-card h2 {
        font-size: 1.25rem;
        margin-bottom: 16px;
    }
    
    .info-card p {
        font-size: 0.875rem;
        line-height: 1.7;
    }
}

/* アクセシビリティ - ハイコントラストモード */
@media (prefers-contrast: high) {
    .info-card {
        background: white;
        border: 3px solid #000000;
    }
    
    .info-card i {
        color: #000000;
        background: white;
        border: 2px solid #000000;
    }
    
    .info-card h2 {
        color: #000000;
    }
    
    .info-card p {
        color: #000000;
    }
}

/* アニメーション */
@media (prefers-reduced-motion: no-preference) {
    .info-card {
        animation: fadeInScale 0.6s ease-out;
    }
    
    @keyframes fadeInScale {
        from {
            opacity: 0;
            transform: scale(0.95);
        }
        to {
            opacity: 1;
            transform: scale(1);
        }
    }
}