/* ===== Case Detail Page Styles ===== */

/* Hero */
.case-hero {
    margin-bottom: 48px;
    padding-top: 20px;
}

.case-hero__label {
    font-family: var(--font-en);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--color-orange);
    margin-bottom: 12px;
}

.case-hero__title {
    font-size: 32px;
    font-weight: 900;
    line-height: 1.5;
    margin-bottom: 24px;
}

/* Company Info Bar */
.case-company {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 24px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.case-company__logo {
    width: 120px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    flex-shrink: 0;
}

.case-company__logo-text {
    font-family: var(--font-en);
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 0.05em;
}

.case-company__info {
    flex: 1;
}

.case-company__name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 6px;
}

.case-company__meta {
    font-size: 13px;
    color: var(--color-text-muted);
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.case-company__tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-left: auto;
}

.case-company__tag {
    font-size: 11px;
    font-weight: bold;
    color: var(--color-orange);
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(234, 107, 0, 0.08);
    padding: 4px 12px;
    border-radius: 20px;
}

.case-company__tag::before {
    content: '+';
    font-weight: 900;
}

/* Visual Banner */
.case-visual {
    width: 100%;
    aspect-ratio: 16 / 6;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    margin-bottom: 60px;
    overflow: hidden;
}

.case-visual__logo-text {
    font-family: var(--font-en);
    font-size: 48px;
    font-weight: 900;
    letter-spacing: 0.05em;
}

/* Section */
.case-section {
    margin-bottom: 60px;
}

.case-section-title {
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 32px;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 12px;
}

.case-section-title__en {
    display: block;
    font-family: var(--font-en);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--color-orange);
    margin-bottom: 8px;
}

.case-section-title__num {
    font-family: var(--font-en);
    font-size: 14px;
    font-weight: 900;
    color: var(--color-orange);
    background: rgba(234, 107, 0, 0.08);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Challenge / Solution content */
.case-content {
    color: var(--color-text-muted);
    line-height: 2;
    font-size: 15px;
}

.case-content p {
    margin-bottom: 20px;
}

.case-content p:last-child {
    margin-bottom: 0;
}

/* Challenge List */
.case-challenges {
    list-style: none;
    padding: 0;
}

.case-challenges li {
    position: relative;
    padding: 16px 0 16px 24px;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-main);
    font-size: 15px;
    line-height: 1.7;
}

.case-challenges li:first-child {
    border-top: 1px solid var(--color-border);
}

.case-challenges li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 24px;
    width: 8px;
    height: 8px;
    background: var(--color-orange);
    border-radius: 50%;
}

/* Results Grid */
.case-results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.case-result-card {
    background: var(--color-surface);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
}

.case-result-card__num {
    font-family: var(--font-en);
    font-size: 48px;
    font-weight: 900;
    color: var(--color-orange);
    line-height: 1.2;
    margin-bottom: 4px;
}

.case-result-card__unit {
    font-size: 18px;
}

.case-result-card__label {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 8px;
}

.case-result-card__desc {
    font-size: 12px;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* Solution Steps */
.case-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.case-step {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 28px 0;
    border-bottom: 1px solid var(--color-border);
}

.case-step:first-child {
    border-top: 1px solid var(--color-border);
}

.case-step__num {
    font-family: var(--font-en);
    font-size: 24px;
    font-weight: 900;
    color: var(--color-orange);
    min-width: 40px;
}

.case-step__title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 6px;
}

.case-step__desc {
    color: var(--color-text-muted);
    line-height: 1.8;
    font-size: 14px;
}

/* Client Voice */
.case-voice {
    background: var(--color-surface);
    border-radius: var(--radius);
    padding: 40px;
    margin-bottom: 60px;
    position: relative;
}

.case-voice::before {
    content: '\201C';
    font-family: var(--font-en);
    font-size: 80px;
    font-weight: 900;
    color: var(--color-orange);
    opacity: 0.2;
    position: absolute;
    top: 10px;
    left: 24px;
    line-height: 1;
}

.case-voice__text {
    font-size: 15px;
    line-height: 2;
    color: var(--color-text-main);
    position: relative;
    z-index: 1;
    margin-bottom: 16px;
}

.case-voice__author {
    font-size: 13px;
    color: var(--color-text-muted);
    text-align: right;
}

/* Related Cases */
.case-related {
    margin-bottom: 80px;
}

.case-related__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.case-related__card {
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--color-surface);
    transition: transform 0.3s, box-shadow 0.3s;
}

.case-related__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.case-related__card-logo {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-related__card-title {
    padding: 20px;
    font-size: 15px;
    font-weight: bold;
    line-height: 1.6;
}

/* Back Link */
.case-back {
    margin-bottom: 40px;
}

.case-back__link {
    font-family: var(--font-en);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}

.case-back__link:hover {
    color: var(--color-orange);
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .case-hero__title {
        font-size: 24px;
    }

    .case-company {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .case-company__tags {
        margin-left: 0;
    }

    .case-visual {
        aspect-ratio: 16 / 9;
    }

    .case-visual__logo-text {
        font-size: 32px;
    }

    .case-results-grid {
        grid-template-columns: 1fr;
    }

    .case-related__grid {
        grid-template-columns: 1fr;
    }

    .case-voice {
        padding: 30px 24px;
    }
}
