/**
 * ニュースカテゴリボタンのクリック性改善
 */

/* カテゴリーカードのクリック性を明確化 */
.category-card {
    cursor: pointer !important;
    user-select: none;
    position: relative;
    z-index: 1;
}

/* アクティブ状態の改善 */
.category-card:active {
    transform: translateY(-3px) scale(0.98) !important;
    transition: all 0.1s ease !important;
}

/* フォーカス時の視覚的フィードバック */
.category-card:focus {
    outline: 3px solid rgba(102, 126, 234, 0.3);
    outline-offset: 2px;
}

/* ホバー時のカーソル強調 */
.category-card:hover {
    cursor: pointer !important;
}

/* タッチデバイス対応 */
@media (hover: none) and (pointer: coarse) {
    .category-card {
        padding: 25px;
        min-height: 120px;
    }
    
    .category-card:active {
        transform: scale(0.95);
        background: #f8fafc;
    }
}

/* カテゴリーカード内の要素がクリックをブロックしないように */
.category-card * {
    pointer-events: none;
}

/* アニメーション改善 */
.category-card {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.category-card:hover {
    transform: translateY(-5px) scale(1.02) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15) !important;
}

/* 視覚的なクリック可能性の向上 */
.category-arrow {
    transition: all 0.2s ease !important;
}

.category-card:hover .category-arrow {
    color: #667eea !important;
    transform: translateX(8px) !important;
}

/* モバイルでのタップ効果 */
@media (max-width: 768px) {
    .category-card {
        min-height: 100px;
        tap-highlight-color: rgba(102, 126, 234, 0.1);
        -webkit-tap-highlight-color: rgba(102, 126, 234, 0.1);
    }
    
    .category-card:active {
        transform: scale(0.95);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    }
}

/* レスポンシブでのクリック領域確保 */
@media (max-width: 480px) {
    .category-card {
        padding: 20px;
        min-height: 90px;
    }
}

/* カテゴリーグリッドの改善 */
.category-grid {
    gap: 20px;
}

/* デバッグ用 - 本番では削除 */
.category-card[href="#service"],
.category-card[href="#event"],
.category-card[href="#case"],
.category-card[href="#notice"] {
    border: 2px solid #ff6b6b !important;
    position: relative;
}

.category-card[href="#service"]::after,
.category-card[href="#event"]::after,
.category-card[href="#case"]::after,
.category-card[href="#notice"]::after {
    content: "リンク修正済み";
    position: absolute;
    top: -10px;
    right: -10px;
    background: #2ecc71;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

/* 正常なリンクの確認 */
.category-card[href*="/category/"]:not([href*="#"]) {
    border: 2px solid #2ecc71 !important;
}

.category-card[href*="/category/"]:not([href*="#"])::after {
    content: "✓ 正常";
    position: absolute;
    top: -10px;
    right: -10px;
    background: #2ecc71;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}