@charset "UTF-8";

/* ==============================================================
   Category List Pages Styles (category-puppy.html etc...)
============================================================== */

/* Category Header Banner */
.category-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px dashed #dcd0c0;
}

.category-header h1 {
    font-size: 2.2rem;
    color: #41322a;
    font-family: 'Noto Serif JP', serif;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.category-header .icon {
    font-size: 2.5rem;
}

.category-desc {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.8;
}

/* Category Grid (3 Columns) */
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
    padding: 0 5%; /* 左右に5%の余白を追加 */
}

/* Product Card */
.category-card {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    border: 1px solid transparent;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.7); /* ホバー時も不透明度70%を維持 */
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Card Elements */
.card-img-wrap {
    background: transparent;
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

.card-img-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(3px 3px 6px rgba(0,0,0,0.1));
}

.card-brand {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 5px;
}

.card-title {
    font-size: 1rem;
    color: #41322a;
    font-weight: bold;
    line-height: 1.4;
    margin-bottom: 15px;
    min-height: 2.8em; /* 2行分確保 */
}

/* Tags */
.card-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    margin-bottom: 15px;
}

.card-tag {
    font-size: 0.7rem;
    background: #e9e4dc;
    color: #555;
    padding: 3px 6px;
    border-radius: 4px;
}

/* Price & Button */
.card-price {
    font-size: 1.1rem;
    color: #b12c1b;
    font-weight: bold;
    margin-top: auto;
    margin-bottom: 15px;
}

.card-btn {
    display: inline-block;
    background: #41322a;
    color: #fff;
    padding: 8px 15px;
    font-size: 0.85rem;
    font-weight: bold;
    border-radius: 30px;
    transition: background 0.3s;
    width: 80%;
    margin: 0 auto;
}

.category-card:hover .card-btn {
    background: #2a1f19;
}

/* Responsive */
@media screen and (max-width: 992px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media screen and (max-width: 576px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .category-header h1 {
        font-size: 1.8rem;
    }
}
