/* CHS Viewer スタイル */
.chs-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 15px;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

.chs-header {
    background-color: #1a73e8;
    color: white;
    text-align: center;
    padding: 20px;
    border-radius: 6px 6px 0 0;
    margin-bottom: 20px;
}

.chs-header h2 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.chs-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

.chs-intro {
    background-color: white;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
}

.chs-commitments-grid h3 {
    text-align: center;
    margin-bottom: 10px;
}

.chs-commitments-grid > p {
    text-align: center;
    margin-bottom: 20px;
    font-style: italic;
}

.chs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.chs-card {
    background-color: white;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    display: flex;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.chs-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.chs-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: #1a73e8;
}

.chs-number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    background-color: #1a73e8;
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.2rem;
    margin-right: 15px;
    flex-shrink: 0;
}

.chs-summary {
    flex: 1;
    font-size: 1rem;
    display: flex;
    align-items: center;
}

/* モーダルスタイル */
.chs-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    overflow-y: auto;
}

.chs-modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 20px;
    border-radius: 6px;
    width: 90%;
    max-width: 600px;
    position: relative;
    animation: chs-modalopen 0.5s;
}

@keyframes chs-modalopen {
    from {opacity: 0; margin-top: 20%}
    to {opacity: 1; margin-top: 15%}
}

.chs-close {
    position: absolute;
    right: 15px;
    top: 10px;
    color: #333;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.chs-close:hover {
    color: #dc3545;
}

.chs-modal-title {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.chs-modal-content-inner ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.chs-modal-content-inner li {
    margin-bottom: 10px;
}

.chs-modal-content-inner ol {
    padding-left: 25px;
    margin-bottom: 15px;
}

.chs-modal-content-inner li {
    margin-bottom: 12px;
    line-height: 1.5;
}

.chs-footer {
    text-align: center;
    margin-top: 30px;
    color: #666;
    font-size: 0.9rem;
}

/* レスポンシブ対応 */
@media (min-width: 768px) {
    .chs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .chs-header h2 {
        font-size: 2.2rem;
    }
    
    .chs-card {
        padding: 25px;
    }
}

@media (min-width: 992px) {
    .chs-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .chs-modal-content {
        width: 70%;
    }
}