@charset "UTF-8";

/* =========================================
   Works Page Specific Styles (Fixed)
   ========================================= */

/* Filter Area */
.works-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid #ddd;
    padding: 10px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #666;
    transition: all 0.3s;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
    box-shadow: 0 5px 15px rgba(0, 86, 179, 0.2);
}

/* Works Grid */
.works-sec {
    background: #fff;
    padding-top: 80px;
    padding-bottom: 120px;
}

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

/* Work Card */
.work-card {
    display: block;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 1;
    /* Animation handle by JS/common */
}

.work-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.work-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.work-img-wrapper {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
}

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

.work-card:hover .work-img-wrapper img {
    transform: scale(1.05);
}

.work-cat-label {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.9);
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 4px;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.work-body {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.work-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0 0 10px;
    line-height: 1.5;
}

.work-client {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 20px;
}

.work-tags {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}


/* Soltutionページ（.sol-tags span）のデザインに合わせる */
.work-tags span {
    background: #f0f4f8;
    color: #555;
    font-size: 0.75rem;
    padding: 5px 12px;
    border-radius: 4px;
    font-weight: bold;
}

/* Pagination */
.pagination {
    margin-top: 80px;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #ddd;
    color: #666;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.page-num:hover,
.page-num.active {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}

/* -----------------------------------------
   Contact Area (Added)
----------------------------------------- */
.contact-area {
    background: #fff;
    padding-bottom: 100px;
}

.contact-box {
    background: #f4f8ff;
    padding: 80px 40px;
    text-align: center;
    border-radius: 12px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.contact-desc {
    margin-bottom: 40px;
    font-size: 1.1rem;
    color: #666;
}

.contact-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-contact-primary {
    display: inline-block;
    background: var(--accent-color);
    color: #fff;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 86, 179, 0.3);
}

.btn-contact-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 86, 179, 0.4);
}

/* -----------------------------------------
   Responsive
----------------------------------------- */
@media (max-width: 768px) {
    .works-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .filter-btn {
        padding: 8px 15px;
        font-size: 0.8rem;
    }

    /* Contact Mobile */
    .contact-btns {
        flex-direction: column;
    }

    .contact-box {
        padding: 40px 20px;
    }
}