.page-hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    padding: 120px 0 80px;
    color: white;
    margin-top: -80px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    font-size: 14px;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: white;
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.6);
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    font-family: 'Noto Sans JP', sans-serif;
}

.page-subtitle {
    font-size: 16px;
    text-align: center;
    line-height: 1.8;
    opacity: 0.95;
}

.works-filter {
    padding: 60px 0;
    background: var(--background-white);
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-blue);
    color: var(--background-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.g-nav a.active {
    color: var(--primary-blue);
    font-weight: 600;
}

.works-list {
    padding: 80px 0;
    background: var(--background-gray);
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.work-item {
    background: var(--background-white);
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 1;
    transform: translateY(0);
}

.work-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.work-item.hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.work-card[hidden] {
    display: none !important;
}

.work-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.work-item:hover .work-image img {
    transform: scale(1.1);
}

.work-content {
    padding: 30px;
}

.work-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.4;
}

.work-description {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 20px;
}

.work-tags {
    display: inline;
    row-gap: 2px !important;   /* 縦の余白だけ */
    column-gap: 6px;           /* 横の余白 */
    flex-wrap: wrap;
}

.work-tags > *{
  margin:0 !important;       /* 子の margin を無効化 */
}

.tag {
    display:inline;
    padding: 2px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.tag service-tag {
    color: var(--background-white);
    background: var(--light-blue);
}

.industry-tag {
    background: var(--background-gray);
    color: var(--text-dark);
}

.work-link {
    display: block;
    color: var(--primary-blue);
    text-align: right;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 20px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.work-link:hover {
    border-bottom-color: var(--primary-blue);
}

.work-link::after {
    content: '→';
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.work-link:hover::after {
    transform: translateX(5px);
}

.load-more-wrapper {
    text-align: center;
}

.btn-load-more {
    background: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-load-more:hover {
    background: var(--primary-blue);
    color: var(--background-white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.work-item.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.work-item.fade-out {
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.work-item.animate {
    animation: fadeInUp 0.6s ease forwards;
}

@media (max-width: 768px) {
    .page-hero {
        margin-top: -70px;
        padding: 100px 0 80px;
    }
    
    .page-title {
        font-size: 32px;
    }
    
    .filter-tabs {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 10px 16px;
        font-size: 12px;
    }
    
    .works-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .work-content {
        padding: 20px;
    }
    
    .work-title {
        font-size: 16px;
    }
    
    .work-description {
        font-size: 13px;
    }
    
    .work-tags {
        gap: 2px !important;
    }
    
    .tag {
        padding: 3px 8px;
        font-size: 11px;
    }
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-gray);
}

.no-results h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.no-results p {
    font-size: 16px;
}