/* ギャラリーセクション */
.gallery {
    padding: 0;
}

/* PC用タブナビゲーション */
.gallery-nav {
    margin-bottom: 30px;
}

.tab-list {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    border-bottom: 2px solid var(--primary-color);
}

.tab-item {
    padding: 15px 30px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.tab-item span {
    color: var(--gray-dark);
    transition: all 0.3s ease;
}

.tab-item.active {
    background-color: var(--primary-color);
}

.tab-item.active span {
    color: #fff;
}

.tab-item:hover:not(.active) {
    background-color: rgba(231, 76, 60, 0.1);
}

/* スマホ用カテゴリー表示 */
.category-labels {
    display: none;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 15px 0;
    margin-bottom: 20px;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-labels::-webkit-scrollbar {
    display: none;
}

.category-label {
    display: inline-block;
    padding: 8px 20px;
    margin-right: 10px;
    background-color: var(--gray-light);
    border-radius: 20px;
    color: var(--gray-dark);
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-label.active {
    background-color: var(--primary-color);
    color: #fff;
}

/* ギャラリーグリッド */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    width: 100%;
}

.gallery-item {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    overflow: hidden;
    border-radius: 0;
}

.gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 0;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* ギャラリーイントロセクション */
.gallery-intro {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--background-color) 0%, var(--gray-light) 100%);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .pc-only {
        display: none;
    }

    .sp-only {
        display: block;
    }

    .gallery-grid {
        display: block;
        width: 100%;
    }

    .gallery-item {
        width: 100%;
        padding-bottom: 100%;
        margin-bottom: 0;
    }

    .gallery-grid[data-category="food"] .gallery-item:not([data-category="food"]),
    .gallery-grid[data-category="interior"] .gallery-item:not([data-category="interior"]),
    .gallery-grid[data-category="exterior"] .gallery-item:not([data-category="exterior"]),
    .gallery-grid[data-category="post"] .gallery-item:not([data-category="post"]) {
        display: none;
    }
}

@media (min-width: 769px) {
    .sp-only {
        display: none;
    }
} 