/* ========================================
   制作実績ページ専用スタイル
   ======================================== */

/* メイン */
.works-main {
    padding-top: 80px;
    background: #000000;
    min-height: 100vh;
}

/* ヒーローセクション */
.works-hero {
    padding: 5rem 0 4rem 0;
    text-align: center;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b0764 50%, #7c2d4d 100%);
    position: relative;
}

.works-hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff !important;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.works-hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9) !important;
    line-height: 1.8;
}

/* フィルターセクション */
.works-filter {
    padding: 2.5rem 0;
    background: #1a1f3a;
}

.filter-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.5rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff !important;
}

.filter-btn.active {
    background: #E63946 !important;
    border-color: #E63946 !important;
    color: #ffffff !important;
}

/* ギャラリーセクション */
.works-gallery {
    padding: 4rem 0 5rem 0;
    background: #000000;
}

/* グリッドレイアウト */
.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* カード */
.works-gallery .work-card {
    background: #0a0a0a !important;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
    aspect-ratio: auto !important;
}

.works-gallery .work-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(230, 57, 70, 0.3);
}

.work-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* カード画像 */
.works-gallery .work-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3 !important;
    overflow: hidden;
    background: #1a1a1a;
}

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

.works-gallery .work-card:hover .work-card-image img {
    transform: scale(1.08);
}

.works-gallery .work-card-overlay {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    display: flex !important;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 2;
    opacity: 1 !important;
    visibility: visible !important;
}

.works-gallery .work-card-badge {
    background: #E63946 !important;
    color: #ffffff !important;
    padding: 0.4rem 0.9rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block !important;
}

/* カードコンテンツ */
.works-gallery .work-card-content {
    padding: 1.5rem 1.25rem 1.75rem 1.25rem !important;
    background: #0a0a0a !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.works-gallery .work-card-year {
    display: inline-block !important;
    font-size: 0.8rem;
    color: #ffffff !important;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.6);
    padding: 0.4rem 0.9rem;
    border-radius: 4px;
    backdrop-filter: blur(5px);
}

.works-gallery .work-card-title {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin-bottom: 0.8rem !important;
    line-height: 1.4 !important;
    display: block !important;
}

.works-gallery .work-card-description {
    font-size: 0.9rem !important;
    color: rgba(255, 255, 255, 0.7) !important;
    line-height: 1.7 !important;
    margin-bottom: 1.2rem !important;
    display: block !important;
}

/* タグ */
.works-gallery .work-card-tags {
    display: flex !important;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.works-gallery .work-tag {
    padding: 0.35rem 0.85rem !important;
    background: rgba(255, 255, 255, 0.12) !important;
    border-radius: 4px;
    font-size: 0.75rem !important;
    color: rgba(255, 255, 255, 0.75) !important;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    display: inline-block !important;
}

/* CTAセクション */
.works-cta {
    padding: 5rem 0 5.5rem 0;
    background: #C1303D !important;
}

.works-cta-content {
    text-align: center;
}

.works-cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff !important;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.works-cta-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95) !important;
    margin-bottom: 2.5rem;
}

.works-cta-btn {
    display: inline-block;
    padding: 1rem 3rem;
    background: #ffffff !important;
    color: #C1303D !important;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.works-cta-btn:hover {
    background: #f0f0f0 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* ========================================
   レスポンシブデザイン
   ======================================== */

/* タブレット（2列表示） */
@media (max-width: 1199px) {
    .works-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.75rem;
    }

    .works-hero-title {
        font-size: 2.5rem;
    }
}

/* タブレット小 */
@media (max-width: 900px) {
    .works-hero {
        padding: 4rem 0 3rem 0;
    }

    .filter-buttons {
        gap: 0.6rem;
    }

    .filter-btn {
        padding: 0.5rem 1.2rem;
        font-size: 0.85rem;
    }
}

/* モバイル（1列表示） */
@media (max-width: 767px) {
    .works-hero {
        padding: 3rem 0 2.5rem 0;
    }

    .works-hero-title {
        font-size: 2rem;
    }

    .works-hero-description {
        font-size: 1rem;
    }

    .works-filter {
        padding: 2rem 0;
    }

    .filter-buttons {
        gap: 0.5rem;
        padding: 0 1rem;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .works-gallery {
        padding: 3rem 0 4rem 0;
    }

    .works-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .works-cta {
        padding: 4rem 0;
    }

    .works-cta-title {
        font-size: 1.8rem;
    }

    .works-cta-text {
        font-size: 1rem;
    }

    .works-cta-btn {
        padding: 0.9rem 2.5rem;
        font-size: 0.95rem;
    }
}

/* ========================================
   ライトテーマ
   ======================================== */

body.light-theme .works-main {
    background: #ffffff !important;
}

body.light-theme .works-hero {
    background: linear-gradient(135deg, #dbeafe 0%, #f3e8ff 50%, #fce7f3 100%) !important;
}

body.light-theme .works-hero-title {
    color: #1A1A1A !important;
}

body.light-theme .works-hero-description {
    color: rgba(0, 0, 0, 0.8) !important;
}

body.light-theme .works-filter {
    background: #f8f9fa !important;
}

body.light-theme .filter-btn {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.2) !important;
    color: rgba(0, 0, 0, 0.8) !important;
}

body.light-theme .filter-btn:hover {
    background: #f0f0f0 !important;
    border-color: rgba(0, 0, 0, 0.3) !important;
    color: #1A1A1A !important;
}

body.light-theme .filter-btn.active {
    background: #E63946 !important;
    border-color: #E63946 !important;
    color: #ffffff !important;
}

body.light-theme .works-gallery {
    background: #ffffff !important;
}

body.light-theme .works-gallery .work-card {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-theme .works-gallery .work-card-content {
    background: #ffffff !important;
}

body.light-theme .works-gallery .work-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

body.light-theme .works-gallery .work-card-year {
    color: #ffffff !important;
    background: rgba(0, 0, 0, 0.7);
}

body.light-theme .works-gallery .work-card-title {
    color: #1A1A1A !important;
}

body.light-theme .works-gallery .work-card-description {
    color: rgba(0, 0, 0, 0.7) !important;
}

body.light-theme .works-gallery .work-tag {
    background: rgba(0, 0, 0, 0.08) !important;
    color: rgba(0, 0, 0, 0.7) !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
}

body.light-theme .works-cta {
    background: #C1303D !important;
}

body.light-theme .works-cta-title {
    color: #ffffff !important;
}

body.light-theme .works-cta-text {
    color: rgba(255, 255, 255, 0.95) !important;
}

body.light-theme .works-cta-btn {
    background: #ffffff !important;
    color: #C1303D !important;
}

body.light-theme .works-cta-btn:hover {
    background: #f0f0f0 !important;
}
