/* =============================================
   Gain Knowledge - Works Page CSS
   対象: page-works.php（制作実績ページ固有スタイル）
   ============================================= */

/* -----------------------------------------------
   ページヘッダー
----------------------------------------------- */
.gk-works-hero {
    position: relative;
    padding: 80px 60px 72px;
    overflow: hidden;
    border-bottom: 1px solid rgba(79, 163, 255, 0.08);
}

.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-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-works-hero-content {
    position: relative;
    z-index: 1;
}

.gk-works-hero-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(36px, 5vw, 58px);
    font-weight: 800;
    color: #e8f0fe;
    letter-spacing: -0.5px;
    line-height: 1.05;
    margin: 10px 0 16px;
}

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

/* -----------------------------------------------
   フィルターバー
----------------------------------------------- */
.gk-works-filter {
    border-bottom: 1px solid rgba(79, 163, 255, 0.08);
    background: rgba(5, 13, 26, 0.7);
    position: sticky;
    top: 57px; /* ナビの高さ分オフセット */
    z-index: 90;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

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

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

.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-filter-btn:hover {
    color: #e8f0fe;
    border-color: rgba(79, 163, 255, 0.4);
}

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

/* -----------------------------------------------
   実績カード一覧
----------------------------------------------- */
.gk-works-section {
    padding: 60px 60px 80px;
}

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

/* カード */
.gk-work-card {
    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;
}

.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-work-card:hover {
    border-color: rgba(79, 163, 255, 0.38);
    transform: translateY(-4px);
}

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

/* フィルターで非表示 */
.gk-work-card.is-hidden {
    display: none;
}

/* サムネイル */
.gk-work-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0a1630;
    overflow: hidden;
}

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

.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-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;
}

.gk-work-label-text {
    font-family: 'Syne', sans-serif;
    font-size: 10px;
    font-weight: 700;
    color: #4fa3ff;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* カード本文 */
.gk-work-body {
    padding: 20px 22px 24px;
}

.gk-work-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.gk-work-year {
    font-family: 'Syne', sans-serif;
    font-size: 11px;
    color: rgba(79, 163, 255, 0.7);
    letter-spacing: 0.1em;
}

.gk-work-title {
    font-family: 'Syne', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #e8f0fe;
    margin-bottom: 10px;
    line-height: 1.4;
}

.gk-work-desc {
    font-size: 12px;
    color: #ffffff;
    font-weight: 300;
    line-height: 1.9;
    margin-bottom: 16px;
}

.gk-work-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* タグバッジ */
.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;
}

/* -----------------------------------------------
   レスポンシブ
----------------------------------------------- */
@media (max-width: 1024px) {
    .gk-works-hero        { padding: 60px 32px 56px; }
    .gk-works-filter-inner { padding: 10px 32px; }
    .gk-works-section     { padding: 50px 32px 60px; }
    .gk-works-grid        { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .gk-works-hero        { padding: 40px 20px 44px; }
    .gk-works-filter      { top: 49px; }
    .gk-works-filter-inner { padding: 8px 20px; }
    .gk-works-section     { padding: 40px 20px 60px; }
    .gk-works-grid        { grid-template-columns: 1fr; gap: 16px; }
}

/* -----------------------------------------------
   CTAセクション
----------------------------------------------- */
.gk-cta {
    padding: 90px 60px;
    text-align: center;
    background: rgba(10, 20, 45, 0.4);
    position: relative;
    overflow: hidden;
}

.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-cta-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 800;
    color: #e8f0fe;
    margin-bottom: 14px;
    letter-spacing: -0.3px;
    position: relative;
    z-index: 1;
}

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

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

.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-cta-btn:hover {
    opacity: 0.88;
    transform: translateY(-2px);
    color: #fff;
}

@media (max-width: 1024px) {
    .gk-cta { padding: 70px 32px; }
}

@media (max-width: 768px) {
    .gk-cta { padding: 60px 20px; }
}
