/* Cases Page Styles */

/* ==================================================
   Cases Page - Redesigned Styles
   ================================================== */

/* ページヘッダー */
.page-header {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/assets/images/network-connected-wooden-block.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0 60px;
    text-align: center;
    position: relative;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: white;
}

.page-subtitle {
    font-size: 1rem;
    opacity: 0.8;
    color: white;
}

/* ケース紹介セクション */
.case-intro-section {
    padding: 60px 0;
    background-color: #fff;
}

.case-intro-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.case-intro-content .section-title {
    font-size: 1.8rem;
}

.case-intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333; /* より濃い色でコントラスト比を改善 - WCAG AA対応 */
    margin-top: 20px;
}

/* ケース詳細セクション */
.case-details-section {
    padding: 60px 0 80px;
    background-color: #f8f9fa;
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
}

.case-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.case-image {
    position: relative;
    height: 220px;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: rgba(26, 43, 60, 0.8);
    backdrop-filter: blur(5px);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.case-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.case-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}

.case-description {
    font-size: 0.95rem;
    color: #444; /* より濃い色でコントラスト比を改善 - WCAG AA対応 */
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Accordion for Case Details */
.case-details-toggle {
    display: none;
}

.case-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, margin-top 0.5s ease-in-out;
}

.case-details-toggle:checked ~ .case-details {
    max-height: 500px; /* Adjust as needed */
    margin-top: 20px;
}

.case-details h5 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.case-details ul {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 15px;
}

.case-details li {
    font-size: 0.9rem;
    color: #333; /* より濃い色でコントラスト比を改善 - WCAG AA対応 */
    margin-bottom: 5px;
    padding-left: 15px;
    position: relative;
}

.case-details li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #2471a3; /* より濃い青色でコントラスト比を改善 - WCAG AA対応 */
}

.case-details-label {
    cursor: pointer;
    color: #2471a3; /* より濃い青色でコントラスト比を改善 - WCAG AA対応 */
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: auto;
    padding-top: 10px;
    align-self: flex-start;
}

.case-details-label:hover {
    text-decoration: underline;
}

.case-details-label::before {
    content: '詳細を見る';
}

.case-details-toggle:checked + .case-details + .case-details-label::before {
    content: '閉じる';
}

/* CTA */
.cta-section {
    padding: 80px 0;
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
    .case-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 30px;
    }
}

@media (max-width: 768px) {
    .case-content {
        padding: 30px;
    }

    .case-title {
        font-size: 1.3rem;
    }

    .case-description {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .case-grid {
        padding: 0 20px;
    }

    .case-content {
        padding: 25px;
    }

    .case-details li {
        font-size: 0.95rem;
    }
}