/* Case Detail Page Styles */

/* CSS Variables */
:root {
    --navy: #1a2744;
    --navy-dark: #0f1a2e;
    --navy-light: #2a3a5c;
    --gray: #6b7280;
    --gray-light: #f8f9fa;
    --white: #ffffff;
    --accent: #c9a961;
    --accent-light: #e8d9a8;
    --font-serif: 'Noto Serif JP', serif;
    --font-sans: 'Noto Sans JP', sans-serif;
    --font-number: 'Noto Serif JP', serif;
}

/* Page Hero */
.page-hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.page-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.page-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(15, 26, 46, 0.95) 0%, rgba(15, 26, 46, 0.5) 50%, rgba(15, 26, 46, 0.3) 100%);
    z-index: 2;
}

.page-hero-content {
    position: relative;
    z-index: 3;
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px;
    color: var(--white);
}

.page-hero-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    margin-bottom: 30px;
    opacity: 0.8;
}

.page-hero-breadcrumb a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.page-hero-breadcrumb span {
    opacity: 0.5;
}

.page-hero-category {
    display: inline-block;
    padding: 8px 20px;
    background: var(--accent);
    color: var(--navy);
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 25px;
}

.page-hero-title {
    font-size: 38px;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 25px;
}

.page-hero-meta {
    display: flex;
    gap: 25px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    opacity: 0.9;
}

.meta-item i {
    color: var(--accent);
}

/* Summary Section */
.section-summary {
    padding: 60px;
    background: var(--white);
    border-bottom: 1px solid #eee;
}

.summary-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.summary-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
}

.summary-tag {
    padding: 6px 18px;
    background: var(--gray-light);
    color: var(--navy);
    font-size: 13px;
    font-weight: 500;
    border-radius: 20px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.summary-item {
    text-align: center;
    padding: 25px;
    background: var(--gray-light);
    border-radius: 12px;
}

.summary-label {
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 8px;
    font-weight: 500;
}

.summary-value {
    font-family: 'Noto Serif JP', serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--navy);
}

/* Section Header */
.section-header {
    margin-bottom: 50px;
}

.section-number {
    display: inline-block;
    font-family: 'Noto Serif JP', serif;
    font-size: 48px;
    color: var(--accent);
    opacity: 0.4;
    margin-bottom: 15px;
}

.section-title {
    font-size: 32px;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 25px;
    padding-bottom: 15px;
    position: relative;
}

.section-subtitle {
    font-family: 'Noto Serif JP', serif;
    font-size: 14px;
    color: var(--gray);
    letter-spacing: 3px;
}

.section-label {
    display: block;
    font-family: 'Noto Serif JP', serif;
    font-size: 14px;
    letter-spacing: 4px;
    color: var(--accent);
    margin-bottom: 20px;
}

/* Challenge Section */
.section-challenge {
    padding: 100px 60px;
    background: var(--white);
}

.challenge-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.challenge-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: start;
}

.challenge-lead h3 {
    font-size: 26px;
    font-weight: 500;
    line-height: 1.7;
    color: var(--navy);
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.challenge-story p {
    font-size: 15px;
    line-height: 2.2;
    color: var(--gray);
    margin-bottom: 20px;
}

.challenge-issues {
    background: var(--gray-light);
    padding: 35px;
    border-radius: 16px;
}

.issues-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 25px;
}

.issues-title i {
    color: #ef4444;
}

.issues-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.issues-list li {
    display: flex;
    gap: 15px;
    padding: 18px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.issues-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.issue-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.issue-icon i {
    color: #ef4444;
    font-size: 16px;
}

.issue-text h5 {
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 5px;
}

.issue-text p {
    font-size: 13px;
    line-height: 1.7;
    color: var(--gray);
}

/* Solution Section */
.section-solution {
    padding: 100px 60px;
    background: var(--gray-light);
}

.solution-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.solution-approach {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    margin-bottom: 50px;
    border-left: 4px solid var(--accent);
}

.approach-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 15px;
}

.approach-text {
    font-size: 15px;
    line-height: 2;
    color: var(--gray);
}

.solution-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.solution-item {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
}

.solution-item-header {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.solution-item-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.solution-item-icon i {
    font-size: 20px;
    color: var(--accent);
}

.solution-item-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
}

.solution-item-list {
    list-style: none;
    padding: 25px 30px;
    margin: 0;
}

.solution-item-list li {
    font-size: 14px;
    color: var(--gray);
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.solution-item-list li:last-child {
    border-bottom: none;
}

.solution-item-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

/* Change Section */
.section-change {
    padding: 100px 60px;
    background: var(--white);
}

.change-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.change-comparison {
    display: flex;
    align-items: stretch;
    gap: 30px;
    margin-bottom: 60px;
}

.change-before,
.change-after {
    flex: 1;
    padding: 40px;
    border-radius: 16px;
}

.change-before {
    background: #fef2f2;
    border: 2px solid #fecaca;
}

.change-after {
    background: #f0fdf4;
    border: 2px solid #bbf7d0;
}

.change-label {
    font-size: 18px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 30px;
}

.change-label span {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    margin-right: 10px;
}

.change-before .change-label span {
    background: #fecaca;
    color: #dc2626;
}

.change-after .change-label span {
    background: #bbf7d0;
    color: #16a34a;
}

.change-diagram {
    text-align: center;
}

.diagram-center {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.diagram-center-before {
    background: #fee2e2;
    border: 2px solid #fca5a5;
}

.diagram-center-after {
    background: #dcfce7;
    border: 2px solid #86efac;
}

.diagram-center span {
    font-size: 18px;
    font-weight: 600;
    color: var(--navy);
}

.diagram-center small {
    font-size: 12px;
    color: var(--gray);
    margin-top: 5px;
}

.diagram-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.diagram-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 13px;
}

.diagram-item-problem {
    background: #fee2e2;
    color: #dc2626;
}

.diagram-item-success {
    background: #dcfce7;
    color: #16a34a;
}

.diagram-partner {
    margin-top: 20px;
}

.partner-badge {
    display: inline-block;
    padding: 6px 15px;
    background: var(--accent);
    color: var(--navy);
    font-size: 11px;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 15px;
}

.change-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: var(--accent);
    padding: 0 10px;
}

.change-note {
    font-size: 13px;
    color: var(--gray);
    margin-top: 20px;
    text-align: center;
}

/* Change Details */
.change-details {
    background: var(--gray-light);
    padding: 40px;
    border-radius: 16px;
}

.change-details-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 30px;
    text-align: center;
}

.change-details-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.change-detail-item {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: center;
    padding: 25px;
    background: var(--white);
    border-radius: 12px;
}

.detail-before,
.detail-after {
    padding: 15px;
}

.detail-label {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 10px;
}

.detail-before .detail-label {
    background: #fee2e2;
    color: #dc2626;
}

.detail-after .detail-label {
    background: #dcfce7;
    color: #16a34a;
}

.detail-before p,
.detail-after p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--gray);
}

.detail-arrow {
    color: var(--accent);
    font-size: 18px;
}

/* Impact Section */
.section-impact {
    padding: 100px 60px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    color: var(--white);
}

.section-impact .section-title {
    color: var(--white);
}

.section-impact .section-subtitle {
    color: rgba(255, 255, 255, 0.5);
}

.impact-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.impact-main {
    margin-bottom: 60px;
}

.impact-quote {
    text-align: center;
    padding: 50px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.impact-quote i {
    font-size: 30px;
    color: var(--accent);
    margin-bottom: 25px;
}

.impact-quote blockquote {
    font-size: 24px;
    font-weight: 500;
    line-height: 1.8;
    margin-bottom: 25px;
}

.impact-quote-author {
    font-size: 14px;
    opacity: 0.7;
}

.impact-effects-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center;
}

.impact-effects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.impact-effect-item {
    padding: 35px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.effect-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.effect-icon i {
    font-size: 24px;
    color: var(--navy);
}

.effect-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

.effect-desc {
    font-size: 14px;
    line-height: 1.9;
    opacity: 0.85;
}

/* Voice Section */
.section-voice {
    padding: 100px 60px;
    background: var(--gray-light);
}

.voice-inner {
    max-width: 900px;
    margin: 0 auto;
}

.voice-inner .section-header {
    text-align: center;
}

.voice-card {
    display: flex;
    gap: 40px;
    background: var(--white);
    padding: 50px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.voice-card-image {
    flex-shrink: 0;
}

.voice-card-image img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
}

.voice-card-body {
    flex: 1;
}

.voice-card-quote {
    margin-bottom: 20px;
}

.voice-card-quote i {
    font-size: 24px;
    color: var(--accent);
}

.voice-card-text {
    font-size: 15px;
    line-height: 2;
    color: var(--gray);
    margin-bottom: 15px;
}

.voice-card-author {
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.voice-card-author .author-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 3px;
}

.voice-card-author .author-role {
    font-size: 13px;
    color: var(--gray);
}

/* Staff Section */
.section-staff {
    padding: 100px 60px;
    background: var(--white);
}

.staff-inner {
    max-width: 900px;
    margin: 0 auto;
}

.staff-inner .section-header {
    text-align: center;
}

.staff-card {
    display: flex;
    gap: 40px;
    background: var(--gray-light);
    padding: 50px;
    border-radius: 16px;
}

.staff-card-image {
    flex-shrink: 0;
}

.staff-card-image img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
}

.staff-card-body {
    flex: 1;
}

.staff-card-text {
    font-size: 15px;
    line-height: 2;
    color: var(--gray);
    margin-bottom: 15px;
}

.staff-card-author {
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.staff-card-author .author-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 3px;
}

.staff-card-author .author-role {
    font-size: 13px;
    color: var(--gray);
}

/* Related Section */
.section-related {
    padding: 100px 60px;
    background: var(--gray-light);
}

.related-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.related-inner .section-header {
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.related-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.related-card-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.related-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-card:hover .related-card-image img {
    transform: scale(1.05);
}

.related-card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 15px;
    background: var(--accent);
    color: var(--navy);
    font-size: 11px;
    font-weight: 600;
    border-radius: 20px;
}

.related-card-content {
    padding: 25px;
}

.related-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 10px;
    line-height: 1.5;
}

.related-card-company {
    font-size: 13px;
    color: var(--gray);
}

.related-more {
    text-align: center;
}

.btn-related-more {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 35px;
    background: var(--white);
    color: var(--navy);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.btn-related-more:hover {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

/* CTA Section */
.section-cta {
    padding: 100px 60px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    text-align: center;
}

.cta-inner {
    max-width: 700px;
    margin: 0 auto;
}

.cta-lead {
    font-size: 16px;
    color: var(--navy);
    opacity: 0.8;
    margin-bottom: 15px;
}

.cta-text {
    font-size: 26px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 40px;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: var(--navy);
    color: var(--white);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(26, 39, 68, 0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: transparent;
    color: var(--navy);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    border: 2px solid var(--navy);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--navy);
    color: var(--white);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-hero-title {
        font-size: 30px;
    }
    
    .summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .challenge-content {
        grid-template-columns: 1fr;
    }
    
    .solution-items {
        grid-template-columns: 1fr;
    }
    
    .change-comparison {
        flex-direction: column;
    }
    
    .change-arrow {
        transform: rotate(90deg);
        padding: 20px 0;
    }
    
    .impact-effects-grid {
        grid-template-columns: 1fr;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-hero {
        height: 60vh;
        min-height: 400px;
    }
    
    .page-hero-content {
        padding: 30px 20px;
    }
    
    .page-hero-title {
        font-size: 24px;
    }
    
    .page-hero-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .section-summary,
    .section-challenge,
    .section-solution,
    .section-change,
    .section-impact,
    .section-voice,
    .section-staff,
    .section-related,
    .section-cta {
        padding: 60px 20px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .challenge-lead h3 {
        font-size: 20px;
    }
    
    .voice-card,
    .staff-card {
        flex-direction: column;
        text-align: center;
    }
    
    .voice-card-image,
    .staff-card-image {
        margin: 0 auto;
    }
    
    .staff-card-image img {
        width: 120px;
        height: 120px;
    }
    
    .change-detail-item {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .detail-arrow {
        transform: rotate(90deg);
    }
    
    .impact-quote blockquote {
        font-size: 18px;
    }
    
    .cta-text {
        font-size: 20px;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        justify-content: center;
    }
}
