/* =============================================
   Gain Knowledge - Works Page CSS
   対象: template-works.php（common.css の後に読み込む）
   ============================================= */

.gk-page .gk-works-hero {
    position: relative;
    padding: 80px 60px 72px;
    overflow: hidden;
    border-bottom: 1px solid rgba(79, 163, 255, 0.08);
}

.gk-page .gk-works-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 80% at 20% 50%, rgba(26, 106, 255, 0.12) 0%, transparent 65%),
        radial-gradient(ellipse 30% 50% at 80% 20%, rgba(79, 163, 255, 0.05) 0%, transparent 55%);
    pointer-events: none;
}

.gk-page .gk-works-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(79, 163, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79, 163, 255, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.gk-page .gk-works-hero-content {
    position: relative;
    z-index: 1;
}

.gk-page .gk-works-hero-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: clamp(32px, 4.5vw, 52px);
    font-weight: 700;
    color: #e8f0fe;
    letter-spacing: -0.5px;
    line-height: 1.05;
    margin: 10px 0 16px;
}

.gk-page .gk-works-hero-desc {
    font-size: 14px;
    color: #ffffff;
    font-weight: 300;
    line-height: 1.9;
    max-width: 480px;
}

.gk-page .gk-works-filter {
    border-bottom: 1px solid rgba(79, 163, 255, 0.08);
    background: rgba(5, 13, 26, 0.92);
    position: sticky;
    top: 57px;
    z-index: 90;
}

.gk-page .gk-works-filter-inner {
    display: flex;
    gap: 4px;
    padding: 10px 60px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.gk-page .gk-works-filter-inner::-webkit-scrollbar {
    display: none;
}

.gk-page .gk-filter-btn {
    padding: 7px 18px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    cursor: pointer;
    border: 1px solid rgba(79, 163, 255, 0.18);
    background: transparent;
    color: rgba(232, 240, 254, 0.55);
    transition: all 0.2s;
    white-space: nowrap;
    font-family: 'Noto Sans JP', sans-serif;
}

.gk-page .gk-filter-btn:hover {
    color: #e8f0fe;
    border-color: rgba(79, 163, 255, 0.4);
}

.gk-page .gk-filter-btn.active {
    background: rgba(26, 106, 255, 0.18);
    border-color: rgba(79, 163, 255, 0.45);
    color: #4fa3ff;
}

.gk-page .gk-works-section {
    padding: 60px 60px 80px;
}

.gk-page .gk-works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    /* 7行×カード行（ラベル・画像・業種・タイトル・説明[可変]・タグ・ボタン） */
    grid-auto-rows: auto auto auto auto minmax(0, 1fr) auto auto;
}

.gk-page .gk-work-card {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 7;
    background: rgba(15, 28, 55, 0.7);
    border: 1px solid rgba(79, 163, 255, 0.1);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.25s, transform 0.25s;
    position: relative;
    line-height: 1.65;
}

.gk-page .gk-work-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #1a6aff, #4fa3ff);
    opacity: 0;
    transition: opacity 0.25s;
}

.gk-page .gk-work-card:hover {
    border-color: rgba(79, 163, 255, 0.38);
    transform: translateY(-4px);
}

.gk-page .gk-work-card:hover::before {
    opacity: 1;
}

.gk-page .gk-work-card.is-hidden {
    display: none;
}

.gk-page .gk-work-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0a1630;
    overflow: hidden;
}

.gk-page .gk-work-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.gk-page .gk-work-thumb-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gk-page .gk-work-thumb-illustration {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gk-page .gk-work-thumb-illustration svg {
    width: 100%;
    height: 100%;
    display: block;
}

.gk-page .gk-work-thumb-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(79, 163, 255, 0.35);
    font-size: 9px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-family: 'Noto Sans JP', sans-serif;
}

.gk-page .gk-work-label-bar {
    background: linear-gradient(90deg, rgba(26, 106, 255, 0.25), rgba(79, 163, 255, 0.1));
    border-bottom: 1px solid rgba(79, 163, 255, 0.2);
    padding: 8px 16px;
    align-self: stretch;
}

.gk-page .gk-work-label-text {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 10px;
    font-weight: 700;
    color: #4fa3ff;
    letter-spacing: 0.06em;
    text-transform: none;
    line-height: 1.5;
}

.gk-page .gk-work-client-type {
    font-size: 12px;
    color: rgba(79, 163, 255, 0.6);
    font-weight: 300;
    font-family: 'Noto Sans JP', sans-serif;
    padding: 16px 22px 0;
    margin: 0;
    line-height: 1.6;
    align-self: start;
}

.gk-page .gk-work-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #e8f0fe;
    line-height: 1.45;
    padding: 8px 22px 0;
    margin: 0;
    align-self: start;
}

.gk-page .gk-work-desc {
    font-size: 12px;
    color: #ffffff;
    font-weight: 300;
    line-height: 1.9;
    padding: 10px 22px 0;
    margin: 0;
    align-self: start;
    min-height: 0;
}

.gk-page .gk-work-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 14px 22px 0;
    align-self: start;
}

.gk-page .gk-work-tag-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    background: rgba(26, 106, 255, 0.12);
    border: 1px solid rgba(79, 163, 255, 0.25);
    color: #4fa3ff;
    font-family: 'Noto Sans JP', sans-serif;
}

.gk-page .gk-work-btn-wrap {
    padding: 12px 22px 20px;
    display: flex;
    justify-content: flex-end;
    align-self: end;
}

.gk-page .gk-work-link-btn {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    background: rgba(26, 106, 255, 0.15);
    border: 1px solid rgba(79, 163, 255, 0.35);
    color: #4fa3ff;
    font-family: 'Noto Sans JP', sans-serif;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.gk-page .gk-work-link-btn:hover {
    background: rgba(26, 106, 255, 0.3);
    border-color: rgba(79, 163, 255, 0.6);
    color: #4fa3ff;
    transform: translateY(-1px);
}

.gk-page .gk-cta {
    padding: 90px 60px;
    text-align: center;
    background: rgba(10, 20, 45, 0.4);
    position: relative;
    overflow: hidden;
}

.gk-page .gk-cta-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 55% 70% at 50% 100%, rgba(26, 106, 255, 0.14) 0%, transparent 65%);
    pointer-events: none;
}

.gk-page .gk-cta-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 700;
    color: #e8f0fe;
    margin-bottom: 14px;
    letter-spacing: -0.3px;
    position: relative;
    z-index: 1;
}

.gk-page .gk-cta-title .gk-accent {
    background: linear-gradient(90deg, #4fa3ff, #1a6aff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gk-page .gk-cta-desc {
    font-size: 14px;
    color: #ffffff;
    font-weight: 300;
    margin-bottom: 34px;
    position: relative;
    z-index: 1;
    line-height: 1.8;
}

.gk-page .gk-cta-btn {
    display: inline-block;
    background: linear-gradient(90deg, #1a6aff, #0040cc);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 16px 42px;
    border-radius: 8px;
    letter-spacing: 0.05em;
    position: relative;
    z-index: 1;
    transition: opacity 0.2s, transform 0.2s;
    font-family: 'Noto Sans JP', sans-serif;
}

.gk-page .gk-cta-btn:hover {
    opacity: 0.88;
    transform: translateY(-2px);
    color: #fff;
}

@media (max-width: 1024px) {
    .gk-page .gk-works-hero {
        padding: 60px 32px 56px;
    }

    .gk-page .gk-works-filter-inner {
        padding: 10px 32px;
    }

    .gk-page .gk-works-section {
        padding: 50px 32px 60px;
    }

    .gk-page .gk-works-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .gk-page .gk-cta {
        padding: 70px 32px;
    }
}

@media (max-width: 768px) {
    .gk-page .gk-works-hero {
        padding: 40px 20px 44px;
    }

    .gk-page .gk-works-filter {
        position: static;
        top: auto;
        background: rgba(5, 13, 26, 0.92);
    }

    .gk-page .gk-works-filter-inner {
        padding: 8px 20px;
    }

    .gk-page .gk-works-section {
        padding: 40px 20px 60px;
    }

    .gk-page .gk-works-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .gk-page .gk-work-client-type {
        padding: 16px 16px 0;
    }

    .gk-page .gk-work-title {
        padding: 8px 16px 0;
    }

    .gk-page .gk-work-desc {
        padding: 10px 16px 0;
    }

    .gk-page .gk-work-tags {
        padding: 14px 16px 0;
    }

    .gk-page .gk-work-btn-wrap {
        padding: 12px 16px 20px;
    }

    .gk-page .gk-cta {
        padding: 60px 20px;
    }
}
