.children-categories {
    background-color: #f8f8f8;
    padding: 60px 0;
}

.children-categories .cmn_ttl {
    text-align: center;
    margin-bottom: 40px;
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.children-categories .cmn_ttl img {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    vertical-align: middle;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.category-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.category-item a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.category-image {
    width: 100%;
    padding-top: 75%;
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
}

.category-image img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-item:hover .category-image img {
    transform: translate(-50%, -50%) scale(1.1);
}

.category-name {
    padding: 20px;
    text-align: center;
}

.category-name h4 {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
}

.category-name .sub-name {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

/* タブレット対応 */
@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 20px;
        padding: 0 15px;
    }
    
    .children-categories {
        padding: 40px 0;
    }
    
    .children-categories .cmn_ttl {
        font-size: 20px;
        margin-bottom: 30px;
    }
    
    .category-name {
        padding: 15px;
    }
    
    .category-name h4 {
        font-size: 14px;
    }
    
    .category-name .sub-name {
        font-size: 12px;
    }
}

/* 画像がない場合のプレースホルダー */
.category-image.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.category-image .placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-image .placeholder span {
    font-size: 48px;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
}

/* スマートフォン対応 */
@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0 10px;
    }
    
    .children-categories {
        padding: 30px 0;
    }
    
    .children-categories .cmn_ttl {
        font-size: 18px;
        margin-bottom: 25px;
    }
    
    .children-categories .cmn_ttl img {
        width: 24px;
        height: 24px;
    }
    
    .category-name {
        padding: 12px;
    }
    
    .category-name h4 {
        font-size: 13px;
        margin-bottom: 5px;
    }
    
    .category-name .sub-name {
        font-size: 11px;
    }
    
    .category-image .placeholder span {
        font-size: 32px;
    }
}