/* Gallery ページ専用スタイル */

/* Hero Section */
.hero-section {
    height: 40vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
                url('../images/top_gallery.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.hero-content {
    max-width: 600px;
    padding: 0 20px;
}

.hero-title {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 16px;
}

.hero-description {
    font-size: 20px;
    color: #e5e7eb;
}

/* Filter Section */
.filter-section {
    background-color: white;
    padding: 32px 0;
    border-bottom: 1px solid #e5e7eb;
}

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

.filter-btn {
    padding: 12px 24px;
    border: 2px solid #e5e7eb;
    background-color: white;
    color: #6b7280;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

/* Gallery Section */
.gallery-section {
    background-color: #f9fafb;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 32px;
}

.gallery-item {
    transition: all 0.3s ease;
}

.gallery-item.hidden {
    display: none;
}

.gallery-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.before-after-container {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 250px;
}

.before-image,
.after-image {
    position: relative;
    overflow: hidden;
}

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

.gallery-card:hover .before-image img,
.gallery-card:hover .after-image img {
    transform: scale(1.05);
}

.image-label {
    position: absolute;
    top: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: white;
    z-index: 10;
}

.image-label.before {
    left: 12px;
    background-color: #ef4444;
}

.image-label.after {
    right: 12px;
    background-color: #10b981;
}

.gallery-info {
    padding: 24px;
}

.gallery-info h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
}

.project-details {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #6b7280;
    background-color: #f3f4f6;
    padding: 4px 8px;
    border-radius: 12px;
}

.detail-item i {
    color: #3b82f6;
}

.gallery-info p {
    color: #4b5563;
    line-height: 1.6;
}

/* Statistics Section */
.stats-section {
    background-color: #3b82f6;
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: 900;
    color: white;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 18px;
    color: #bfdbfe;
    font-weight: 500;
}

/* Reviews Section */
.reviews-section {
    background-color: white;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.review-card {
    background-color: #f9fafb;
    padding: 32px;
    border-radius: 12px;
    border-left: 4px solid #3b82f6;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.review-rating {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
}

.review-rating i {
    color: #fbbf24;
    font-size: 18px;
}

.review-text {
    font-size: 16px;
    line-height: 1.7;
    color: #4b5563;
    margin-bottom: 20px;
    font-style: italic;
}

.review-author strong {
    display: block;
    font-size: 16px;
    color: #1f2937;
    margin-bottom: 4px;
}

.review-author span {
    font-size: 14px;
    color: #6b7280;
}

/* CTA Section */
.cta-section {
    background-color: #1f2937;
    color: white;
    text-align: center;
}

.cta-title {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 24px;
}

.cta-description {
    font-size: 20px;
    color: #d1d5db;
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    max-width: 800px;
    top: 50%;
    transform: translateY(-50%);
}

.modal-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.modal-close:hover {
    color: #ccc;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }
    
    .filter-tabs {
        gap: 8px;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .before-after-container {
        height: 200px;
    }
    
    .gallery-info {
        padding: 20px;
    }
    
    .project-details {
        gap: 8px;
    }
    
    .detail-item {
        font-size: 12px;
        padding: 2px 6px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .stat-label {
        font-size: 16px;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .review-card {
        padding: 24px;
    }
    
    .cta-title {
        font-size: 32px;
    }
    
    .cta-description {
        font-size: 16px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .modal-content {
        width: 95%;
        padding: 10px;
    }
    
    .modal-close {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
}