/* =============================================
   施工事例ページ専用CSS
   ============================================= */

/* ページヘッダー */
.page-header {
    position: relative;
    height: 150px;
    background: linear-gradient(135deg, #2d5f3f 0%, #4a9d6f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 0;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/page-header-bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(45, 95, 63, 0.8) 0%, rgba(74, 157, 111, 0.8) 100%);
}

.page-header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.page-subtitle {
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    opacity: 0.95;
}

/* パンくずリスト */
.breadcrumb {
    background: #f8f8f8;
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
}

.breadcrumb-list li:not(:last-child)::after {
    content: '»';
    margin-left: 0.5rem;
    color: #999;
}

.breadcrumb-list a {
    color: #4a9d6f;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-list a:hover {
    color: #2d5f3f;
    text-decoration: underline;
}

/* 施工事例セクション */
.works-section {
    padding: 80px 0;
    background: #fff;
}

/* フィルターボタン */
.works-filter {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0;
    border: none;
    background: transparent;
    color: #666;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.filter-btn:hover {
    color: #4a9d6f;
}

.filter-btn.active {
    color: #4a9d6f;
    font-weight: 700;
}

.filter-btn.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: #4a9d6f;
}

/* 施工事例グリッド */
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* 施工事例カード */
.work-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    opacity: 1;
}

.work-card.hidden {
    display: none;
}

.work-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.work-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.work-card-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f0f0f0;
}

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

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

.work-card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #4a9d6f;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.work-card-content {
    padding: 1.5rem;
}

.work-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2d5f3f;
    margin-bottom: 0.5rem;
}

.work-card-location {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.work-card-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    .page-header {
        height: 125px;
        margin-top: 0;
    }

    .page-title {
        font-size: 2rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    .works-filter {
        gap: 2rem;
    }

    .filter-btn {
        font-size: 0.95rem;
    }

    .works-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .work-card-image {
        height: 200px;
    }
}

@media screen and (max-width: 480px) {
    .page-header {
        height: 125px;
    }

    .page-title {
        font-size: 2rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    .breadcrumb {
        padding: 0.75rem 0;
    }

    .breadcrumb-list {
        font-size: 0.8rem;
    }

    .works-section {
        padding: 60px 0;
    }
}

