/* ============================================
  各セクション選択リンク
   ============================================ */

/* body {
    font-family: var(--font-ja) !important;
    background-color: #f8f9fa;
} */

/* ============================================
   実績・事例
   ============================================ */
.satisfaction-section {
    background-color: var(--color-white);
}

.performance-section {
    background-color: var(--color-white);
}
.performance-section .table {
    font-size: 0.9rem;
}
#performance-graph figure {
    text-align: center;
}
#performance-graph figure img {
    margin: 0 auto;
    width: 800px;
    max-width: 100%;
}

.rounded-box {
    background-color: white;
    border: 1px solid #5a5a5a;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 2.5rem;
}

.legend {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.legend-color {
    display: inline-block;
    width: 15px;
    height: 12px;
    margin-right: 5px;
    vertical-align: middle;
}

.chart-caption {
    font-size: 0.85rem;
    color: #495057;
    line-height: 1.6;
}

.custom-table {
    background-color: white;
    border: 2px solid #6c757d;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.custom-table th {
    background-color: #d3d3d3;
    color: #333;
    font-weight: 600;
    text-align: center;
    vertical-align: middle;
    border: 1px solid #6c757d;
    padding: 1rem;
}
.custom-table td {
    background-color: #f5f5f5;
    border: 1px solid #6c757d;
    padding: 1rem;
    vertical-align: middle;
}

.content-card {
    background-color: white;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    /* margin-top: 30px; */
}

.content-header {
    background-color: #000;
    color: white;
    padding: 1.5rem 1.8rem;
}

.content-header h2 {
    font-size: 1.35rem;
    margin-bottom: .8rem;
    font-weight: 500;
}

.content-header h2 small {
    font-size: 80%;
}

.content-header p {
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.6;
}

.content-body {
    padding: 1.5rem 1.8rem;
}
.content-body > *:last-child,
.content-header > *:last-child {
    margin-bottom: 0 !important;
}

.content-body p {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #333;
}

.image-container img {
    width: 100%;
}

/* ============================================
   レスポンシブ
   ============================================ */
@media (max-width: 991px) {
    section {
        padding: 60px 0;
    }

    .section-description {
        font-size: clamp(12px, 1.8vw, 0.9rem);
    }

}

@media (max-width: 575px) {
    section {
        padding: 50px 0;
    }

    .section-description {
        font-size: 16px;
        line-height: 1.5;
    }

}

/* Desktop: side-by-side with controlled height and no gap */
@media (min-width: 769px) {
    .row.mt-4 {
        margin-left: 0 !important;
        margin-right: 0 !important;
        display: flex;
        align-items: stretch; /* Make both columns same height */
    }

    .row.mt-4 > [class*='col-'] {
        padding-left: 0 !important;
        padding-right: 0 !important;
        display: flex;
    }

    .content-card {
        /* margin-top: 30px; */
        height: 100%; /* Fill the column height */
        display: flex;
        flex-direction: column;
    }

    .content-body {
        flex: 1; /* Allow body to grow and fill space */
        display: flex;
        align-items: baseline;
    }

    .image-container {
        height: 100%; /* Match the card height */
        overflow: hidden;
        /* margin-top: 30px; */
        min-height: 280px; /* More square/compact height */
    }

}

@media (max-width: 768px) {
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table-responsive table {
        min-width: 600px; 
    }

    #performance-graph figure {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    #performance-graph figure img {
        max-width: 550px;
        height: auto;
    }
}