/* ケース詳細ページ専用スタイル */

/* =========================================
   Case Hero
   ========================================= */
.case-hero {
    padding: 140px 0 80px;
    background: var(--vin-gradient-dark);
    color: var(--text-main);
    position: relative;
    overflow: hidden;
}

/* Background accent */
.case-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 150%;
    background: radial-gradient(circle, rgba(124, 77, 255, 0.2) 0%, rgba(14, 14, 26, 0) 70%);
    z-index: 0;
    pointer-events: none;
}

.case-hero .container {
    position: relative;
    z-index: 1;
}

/* Flex layout for Hero */
.case-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.case-hero-content {
    flex: 1;
    max-width: 600px;
}

.case-hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-visual-svg {
    width: 100%;
    max-width: 450px;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(124, 77, 255, 0.2));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.breadcrumb {
    font-size: 0.85rem;
    margin-bottom: 24px;
    opacity: 0.8;
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--vin-accent);
}

.breadcrumb span {
    margin: 0 8px;
    color: var(--text-muted);
}

.case-category {
    display: inline-block;
    background: rgba(124, 77, 255, 0.15);
    border: 1px solid rgba(124, 77, 255, 0.3);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 16px;
    color: var(--vin-accent);
    font-weight: 500;
}

.case-hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-main);
    text-shadow: 0 0 30px rgba(124, 77, 255, 0.4);
    line-height: 1.2;
}

.case-hero-subtitle {
    font-size: 1.4rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-weight: 500;
}

.case-tags-large {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.case-tags-large .tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--text-main);
}

/* Hero CTA Buttons */
.case-hero-cta {
    display: flex;
    gap: 16px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.1rem;
    background: var(--vin-gradient-purple);
    box-shadow: 0 8px 25px rgba(124, 77, 255, 0.4);
}

.btn-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(124, 77, 255, 0.5);
}

.btn-secondary-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--text-main);
    padding: 14px 38px;
    font-size: 0.95rem;
}

.btn-secondary-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}


/* =========================================
   KPI Section
   ========================================= */
.case-kpi {
    padding: 0;
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(28, 28, 40, 0.6);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
}

.kpi-item {
    text-align: center;
    position: relative;
}

.kpi-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.kpi-value {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--vin-accent);
    line-height: 1;
    margin-bottom: 8px;
    text-shadow: 0 0 20px rgba(52, 226, 228, 0.3);
}

.kpi-unit {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-main);
    margin-left: 4px;
}

.kpi-label {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* =========================================
   Common Section Styles
   ========================================= */
.case-section {
    padding: 100px 0;
    position: relative;
}

.case-section-title,
.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 50px;
}

.section-icon {
    width: 48px;
    height: 48px;
    color: var(--vin-primary);
    background: rgba(124, 77, 255, 0.1);
    border-radius: 12px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-icon svg {
    width: 100%;
    height: 100%;
}

/* --- Light Theme Section --- */
.case-section.section-light {
    background: linear-gradient(180deg, #F5F5F7 0%, #FFFFFF 100%);
    border-top: 1px solid #E5E5E7;
    border-bottom: 1px solid #E5E5E7;
    position: relative;
}

/* 上部の装飾ライン */
.case-section.section-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--vin-gradient-purple);
    border-radius: 0 0 4px 4px;
}

.case-section.section-light .case-section-title {
    color: #1a1a2e;
}

.case-section.section-light .section-icon {
    background: rgba(124, 77, 255, 0.12);
    border: 1px solid rgba(124, 77, 255, 0.2);
}

/* =========================================
   Problem Section
   ========================================= */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.problem-card {
    background: var(--bg-card);
    padding: 32px;
    border-radius: var(--radius-md);
    border-left: 5px solid var(--vin-primary);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left-width: 5px;
    transition: transform 0.3s, box-shadow 0.3s;
}

/* Problem Card Light Theme (User Request) */
.problem-card.light-theme {
    background: #FFFFFF;
    border: none;
    border-left: 5px solid var(--vin-primary);
    border-radius: 12px;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.06),
        0 8px 24px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* カード上部のアクセント */
.problem-card.light-theme::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle at top right, rgba(124, 77, 255, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.problem-card.light-theme:hover {
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.08),
        0 16px 40px rgba(124, 77, 255, 0.12);
    border-left-color: #5c3dbf;
}

.problem-card.light-theme .problem-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #F0F0F2;
}

.problem-card.light-theme .problem-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.12) 0%, rgba(124, 77, 255, 0.06) 100%);
    border: 1px solid rgba(124, 77, 255, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--vin-primary);
}

.problem-card.light-theme .problem-icon svg {
    width: 22px;
    height: 22px;
}

.problem-card.light-theme h3 {
    color: #1a1a2e;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
}

.problem-card.light-theme p {
    color: #4a4a4a;
    font-weight: 400;
    font-size: 0.95rem;
    line-height: 1.75;
    margin: 0;
}

.problem-card.light-theme p strong {
    color: var(--vin-primary);
    font-weight: 700;
    background: rgba(124, 77, 255, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
}


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

.problem-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 12px;
}

.problem-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* =========================================
   Solution Section
   ========================================= */
.solution-overview {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 50px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.solution-figure {
    margin: 0;
}

.solution-diagram-wrapper {
    width: 100%;
    max-width: 900px;
    /* Enlarged */
    margin: 0 auto;
}

.flow-diagram {
    width: 100%;
    height: auto;
    display: block;
}

.solution-caption {
    margin-top: 24px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-style: italic;
}

/* Diagram Colors Override */
.flow-diagram text {
    fill: var(--text-main);
}

.flow-diagram text[fill="#616161"] {
    fill: var(--text-secondary);
}

.flow-diagram rect[fill="#f5f7fa"],
.flow-diagram rect[fill="#e8f5e9"] {
    fill: rgba(255, 255, 255, 0.05);
    stroke: rgba(255, 255, 255, 0.2);
}

.flow-diagram path[stroke="#7c4dff"] {
    stroke: var(--vin-accent);
}


/* =========================================
   Features Section
   ========================================= */
.features-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.feature-detail-card {
    background: var(--bg-card);
    padding: 40px 32px 32px 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s;
    overflow: hidden;
}

.feature-detail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--vin-gradient-purple);
    opacity: 0.5;
}

.feature-detail-card:hover {
    transform: translateY(-5px);
    border-color: rgba(124, 77, 255, 0.3);
}

.feature-number {
    position: absolute;
    top: 15px;
    right: 20px;
    font-family: monospace;
    font-size: 3rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.05);
    line-height: 1;
    pointer-events: none;
}

.feature-detail-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 16px;
    margin-top: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-detail-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* =========================================
   Effect Section (Light Theme)
   ========================================= */
.effect-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    margin-bottom: 60px;
    padding-top: 50px;
}

.effect-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #FFFFFF;
    padding: 30px 40px;
    border-radius: 0 0 16px 16px;
    width: 360px;
    min-width: 360px;
    min-height: 120px;
    border: 1px solid #E8E8EA;
    border-top: none;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.06),
        0 12px 28px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
    box-sizing: border-box;
}

/* Before カード - グレーのトップバー */
.effect-card::before {
    content: 'BEFORE';
    position: absolute;
    top: -36px;
    left: -1px;
    right: -1px;
    height: 36px;
    background: #6B7280;
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px 16px 0 0;
    border: 1px solid #6B7280;
    border-bottom: none;
}

.effect-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.1),
        0 20px 40px rgba(0, 0, 0, 0.12);
}

/* After カード (highlight) - ティールのトップバー */
.effect-card.highlight {
    background: linear-gradient(135deg, #F0FDFA 0%, #E6FAF8 100%);
    border: 2px solid var(--vin-teal);
    border-top: none;
    box-shadow:
        0 4px 12px rgba(0, 191, 165, 0.12),
        0 16px 40px rgba(0, 191, 165, 0.2);
}

.effect-card.highlight::before {
    content: 'AFTER';
    left: -2px;
    right: -2px;
    background: linear-gradient(135deg, var(--vin-teal) 0%, #00a896 100%);
    border: 2px solid var(--vin-teal);
    border-bottom: none;
}

.effect-card.highlight:hover {
    box-shadow:
        0 8px 24px rgba(0, 191, 165, 0.18),
        0 24px 50px rgba(0, 191, 165, 0.25);
}

.effect-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 50%;
    flex-shrink: 0;
}

.effect-icon svg {
    width: 32px;
    height: 32px;
}

.effect-icon.before svg circle,
.effect-icon.before svg path {
    stroke: #ef5350;
}

.effect-icon.after svg circle,
.effect-icon.after svg path {
    stroke: var(--vin-teal);
}

.effect-icon.after {
    background: rgba(0, 191, 165, 0.1);
}

.effect-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    display: block;
    margin-bottom: 6px;
    color: #888;
}

.effect-content p {
    font-size: 1.1rem;
    margin: 0;
    font-weight: 600;
    color: #333;
}

.effect-content strong {
    color: var(--vin-primary);
    font-size: 1.5rem;
    font-weight: 800;
}

.effect-card.highlight .effect-content strong {
    color: var(--vin-teal);
}

.effect-arrow {
    font-size: 2.5rem;
    color: var(--vin-teal);
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 191, 165, 0.3);
}

.effect-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

/* effect-list-item - 紫背景 + 常時ボーダー */
.effect-list-item {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 1.05rem;
    font-weight: 600;
    padding: 22px 26px;
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.08) 0%, rgba(124, 77, 255, 0.04) 100%);
    border-radius: 12px;
    border: 2px solid var(--vin-primary);
    color: #1a1a2e;
    box-shadow:
        0 2px 8px rgba(124, 77, 255, 0.08),
        0 6px 20px rgba(124, 77, 255, 0.12);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

/* 左側のアクセントバー */
.effect-list-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, var(--vin-primary) 0%, #5c3dbf 100%);
}

.effect-list-item:hover {
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.15) 0%, rgba(124, 77, 255, 0.08) 100%);
    border-color: #5c3dbf;
    transform: translateY(-3px);
    box-shadow:
        0 6px 16px rgba(124, 77, 255, 0.15),
        0 12px 32px rgba(124, 77, 255, 0.2);
}

.effect-list-item svg {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    fill: var(--vin-primary);
    filter: drop-shadow(0 2px 4px rgba(124, 77, 255, 0.3));
}

.effect-list-item span {
    font-weight: 700;
    line-height: 1.5;
}

/* =========================================
   Target Section
   ========================================= */
.target-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.target-card {
    background: var(--bg-card);
    padding: 32px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.target-card:hover {
    transform: translateY(-5px);
    border-color: rgba(124, 77, 255, 0.3);
}

.target-icon {
    width: 64px;
    height: 64px;
    background: rgba(124, 77, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--vin-primary);
}

.target-icon svg {
    width: 32px;
    height: 32px;
}

.target-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--vin-primary);
    margin-bottom: 12px;
}

.target-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* =========================================
   Tech Stack
   ========================================= */
/* Purple Background Section */
.case-tech.purple-bg {
    background: linear-gradient(135deg, #1a0a2e 0%, #2d1b4e 50%, #1a0a2e 100%);
    position: relative;
    overflow: hidden;
}

.case-tech.purple-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(124, 77, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(52, 226, 228, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.case-tech.purple-bg .case-section-title {
    color: #ffffff;
    position: relative;
    z-index: 1;
}

.case-tech.purple-bg .section-icon {
    color: var(--vin-accent);
}

.tech-stack {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
    z-index: 1;
}


.tech-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 24px;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.tech-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(124, 77, 255, 0.5);
    transform: translateY(-5px);
}


.tech-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.tech-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 12px;
    display: block;
}

.tech-benefit {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* =========================================
   Related Cases (Large & Light)
   ========================================= */
.case-section.case-related {
    background: linear-gradient(180deg, #FFFFFF 0%, #F8F9FA 100%);
    padding: 100px 0;
    position: relative;
}

/* セクション上部の装飾ライン */
.case-section.case-related::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #E0E0E0 20%, #E0E0E0 80%, transparent 100%);
}

.case-section.case-related .case-section-title {
    color: #1a1a2e;
}

.related-cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.related-case-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    background: #FFFFFF;
    padding: 40px;
    padding-left: 44px;
    border-radius: 16px;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.04),
        0 8px 32px rgba(0, 0, 0, 0.06);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #E8E8EA;
    border-left: 5px solid var(--vin-primary);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* 背景オーバーレイ - 左から右へスライド */
.related-case-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--vin-primary) 0%, #5c3dbf 100%);
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.related-case-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 16px 40px rgba(124, 77, 255, 0.25),
        0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--vin-primary);
}

.related-case-card:hover::before {
    transform: translateX(0);
}

/* ホバー時のテキスト色変更 */
.related-case-card:hover h4,
.related-case-card:hover p,
.related-case-card:hover .related-case-link {
    color: #FFFFFF;
}

.related-case-card:hover .related-case-icon {
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.related-case-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.related-case-icon svg {
    width: 32px;
    height: 32px;
    stroke: white;
}

.related-case-card h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.related-case-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.related-case-card p {
    font-size: 1.05rem;
    color: #555;
    margin: 0;
    line-height: 1.6;
    flex: 1;
}

.related-case-link {
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
    color: var(--vin-primary);
    font-weight: 600;
    margin-top: auto;
    transition: gap 0.3s;
}

.related-case-card:hover .related-case-link {
    gap: 8px;
}



/* =========================================
   Responsive
   ========================================= */
@media (max-width: 1024px) {
    .case-hero-inner {
        flex-direction: column;
        text-align: center;
    }

    .kpi-grid {
        grid-template-columns: 1fr;
    }

    .kpi-item:not(:last-child)::after {
        display: none;
    }

    .kpi-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 20px;
        margin-bottom: 20px;
    }

    .features-detail-grid {
        grid-template-columns: 1fr;
    }

    .target-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tech-stack {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .case-hero {
        padding: 100px 0 40px;
    }

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

    .case-hero-cta {
        justify-content: center;
    }


    .problem-grid {
        grid-template-columns: 1fr;
    }

    .effect-grid {
        flex-direction: column;
    }

    .effect-arrow {
        transform: rotate(90deg);
    }

    .effect-list {
        grid-template-columns: 1fr;
    }

    .target-grid {
        grid-template-columns: 1fr;
    }

    .tech-stack {
        grid-template-columns: 1fr;
    }

    .related-cases-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   Interactive Elements Tweaks (Disable hover on non-clickable cards)
   ========================================= */
.kpi-item,
.target-card,
.tech-item,
.feature-detail-card {
    pointer-events: none;
}

.kpi-item *,
.target-card *,
.tech-item *,
.feature-detail-card * {
    pointer-events: none;
}

/* Allow clicks on links inside */
.kpi-item a,
.target-card a,
.tech-item a,
.feature-detail-card a {
    pointer-events: auto;
}