
/* グリッドレイアウト（PCは4列） */
.category-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.category-card {
    flex: 0 0 calc(25% - 15px); /* 4列計算 */
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 24px;
    box-sizing: border-box;
    text-decoration: none;
    color: #333;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
}

.category-card-icon {
    width: 50px;
    height: 50px;
    background-color: #cae8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border-radius: 4px;
    border-radius: 50%;
}

.category-card-icon img {
    max-width: 30px;
    max-height: 30px;
    object-fit: contain;
}

.category-card-info {
    display: flex;
    flex-direction: column;
}

.category-card-name {
    font-size: 16px;
    font-weight: bold;
    color: #222;
}

.category-card-subname {
    font-size: 10px;
    color: #999;
    letter-spacing: 1px;
    margin-top: 2px;
}

.category-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.category-card-count {
    font-size: 13px;
    color: #666;
}

.category-card-count strong {
    font-size: 38px;
    color: #111;
}

/* 矢印の基本デザイン */
.category-card-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #fdfbf3; /* 円形の背景色 */
    color: #c0b000;            /* 矢印の色 */
    font-size: 16px;
    transition: all 0.3s ease; /* アニメーションの設定 */
}

/* カード全体にホバーした時の矢印の動き */
.category-card:hover .category-card-arrow {
    background-color: #ffea00; /* 背景色を反転 */
    color: #ffffff;            /* 矢印を白に */
    transform: translateX(5px); /* 右に5px移動 */
}

/* スマホ表示（2列） */
@media (max-width: 768px) {
    .category-card {
        flex: 0 0 calc(50% - 10px); /* 2列計算 */
        padding: 16px;
    }
    
    .category-title {
        font-size: 22px;
    }

}