@charset "utf-8";
/* ========================================
   KOYO - Works Page Styles
======================================== */

/* ----------------------------------------
   Page Header
---------------------------------------- */
.page-header {
    position: relative;
    width: 100%;
    height: 50vh;
    min-height: 400px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
}

/* Blue cover overlay that slides up on page load */
.page-header::after {
    position: absolute;
    content: "";
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    z-index: 10;
    transition: height 1.4s cubic-bezier(0.33, 1, 0.68, 1);
    transition-delay: 0.8s;
}

.page-header.on::after {
    height: 0;
    animation: fadeOutCover 0.1s cubic-bezier(0.19, 1, 0.22, 1) 2.2s forwards;
}

@keyframes fadeOutCover {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

.page-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.page-header-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-header-bg::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.7) 0%, rgba(0, 68, 153, 0.8) 100%);
    z-index: 2;
}

.page-header-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--white);
    opacity: 0;
    transition: opacity 0.5s ease;
    transition-delay: 1.5s;
}

.page-header.on .page-header-content {
    opacity: 1;
}

.page-title {
    margin-bottom: 20px;
}

.page-title .enfont {
    display: block;
    font-size: 6rem;
    line-height: 1.2;
    margin-bottom: 10px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
}

.page-title .jp {
    display: block;
    font-size: 2rem;
    font-weight: 500;
}

.page-lead {
    font-size: 1.6rem;
    opacity: 0.9;
}

/* ----------------------------------------
   Breadcrumb
---------------------------------------- */
.breadcrumb {
    background: var(--bg-light-gray);
    padding: 15px 0;
}

.breadcrumb ol {
    display: flex;
    list-style: none;
    margin: 0;
    font-size: 1.3rem;
}

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

.breadcrumb li::after {
    content: ">";
    margin: 0 10px;
    color: var(--text-light);
}

.breadcrumb li:last-child::after {
    display: none;
}

.breadcrumb a {
    color: var(--primary-color);
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* ----------------------------------------
   Works Intro
---------------------------------------- */
.works-intro {
    padding: 80px 0 40px;
    background: var(--white);
}

.intro-text {
    text-align: center;
    font-size: 1.5rem;
    line-height: 2.2;
    color: var(--text-color);
}

/* ----------------------------------------
   Works Stats
---------------------------------------- */
.works-stats {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.stats-grid {
    display: flex;
    justify-content: center;
    gap: 80px;
}

.stat-item {
    text-align: center;
    color: var(--white);
}

.stat-number {
    display: block;
    font-size: 6rem;
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    display: block;
    font-size: 1.4rem;
    margin-bottom: 5px;
    opacity: 0.9;
}

.stat-unit {
    display: block;
    font-size: 1.6rem;
    font-weight: 500;
}

/* ----------------------------------------
   Works Filter
---------------------------------------- */
.works-filter {
    padding: 40px 0;
    background: var(--white);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 30px;
    border: 2px solid var(--primary-color);
    background: var(--white);
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    transform: skewX(-5deg);
}

.filter-btn span {
    display: block;
    transform: skewX(5deg);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: var(--white);
}

/* ----------------------------------------
   Works List
---------------------------------------- */
.works-list {
    padding: 40px 0 80px;
    background: var(--bg-light-gray);
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.works-card {
    background: var(--white);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.works-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

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

.works-card-image {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.works-card-image::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.3) 0%, rgba(0, 68, 153, 0.4) 100%);
    z-index: 1;
    transition: opacity 0.3s;
}

.works-card:hover .works-card-image::after {
    opacity: 0.6;
}

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

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

.works-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--bg-gray);
    border-bottom: 3px solid var(--primary-color);
}

.works-category {
    display: inline-block;
    padding: 4px 15px;
    background: var(--primary-color);
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 500;
    transform: skewX(-5deg);
}

.works-category.commercial {
    background: #e67e22;
}

.works-category.other {
    background: #27ae60;
}

.works-area {
    font-size: 1.3rem;
    color: var(--text-light);
}

.works-card-body {
    padding: 20px;
}

.works-title {
    font-size: 1.6rem;
    font-weight: 500;
    margin-bottom: 15px;
    color: var(--text-color);
}

.works-specs {
    margin: 0;
}

.spec-row {
    display: flex;
    padding: 8px 0;
    border-bottom: 1px solid var(--bg-gray);
    font-size: 1.4rem;
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-row dt {
    width: 80px;
    color: var(--primary-color);
    font-weight: 500;
}

.spec-row dd {
    flex: 1;
    color: var(--text-color);
}

/* ----------------------------------------
   Works CTA
---------------------------------------- */
.works-cta {
    padding: 100px 0;
    background: var(--white);
}

.cta-box {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border-radius: 8px;
}

.cta-box h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.cta-box p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-box .btn {
    display: flex;
    justify-content: center;
}

.cta-box .btn-primary {
    background: var(--white);
    color: var(--primary-color);
}

.cta-box .btn-primary::before {
    background: var(--primary-dark);
}

.cta-box .btn-primary:hover {
    color: var(--white);
}

/* ----------------------------------------
   Responsive - Tablet
---------------------------------------- */
@media only screen and (max-width: 1024px) {
    .works-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .works-card-image {
        height: 160px;
    }

    .stats-grid {
        gap: 40px;
    }

    .stat-number {
        font-size: 4.5rem;
    }
}

/* ----------------------------------------
   Responsive - Mobile
---------------------------------------- */
@media only screen and (max-width: 750px) {
    .page-header {
        height: 40vh;
        min-height: 300px;
    }

    .page-title .enfont {
        font-size: 4rem;
    }

    .page-title .jp {
        font-size: 1.6rem;
    }

    .page-lead {
        font-size: 1.4rem;
    }

    .breadcrumb ol {
        font-size: 1.2rem;
    }

    .works-intro {
        padding: 50px 0 30px;
    }

    .intro-text {
        font-size: 1.4rem;
        line-height: 2;
    }

    .intro-text br.pc {
        display: none;
    }

    .works-stats {
        padding: 40px 0;
    }

    .stats-grid {
        flex-direction: column;
        gap: 30px;
    }

    .stat-number {
        font-size: 5rem;
    }

    .filter-buttons {
        gap: 10px;
    }

    .filter-btn {
        padding: 10px 20px;
        font-size: 1.3rem;
    }

    .works-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

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

    .works-card-header {
        padding: 12px 15px;
    }

    .works-category {
        font-size: 1.1rem;
        padding: 3px 12px;
    }

    .works-area {
        font-size: 1.2rem;
    }

    .works-card-body {
        padding: 15px;
    }

    .works-title {
        font-size: 1.5rem;
    }

    .spec-row {
        font-size: 1.3rem;
    }

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

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

    .cta-box h2 {
        font-size: 2.2rem;
    }

    .cta-box p {
        font-size: 1.4rem;
    }
}
