/* PEST分析用のスタイル */
.pest-content {
    padding: 20px;
    max-height: calc(100vh - 150px);
    /* 画面の高さから余白を引いた高さに制限 */
    overflow-y: auto;
    /* 縦方向のスクロールバーを追加 */
    scrollbar-width: thin;
    /* Firefox用のスクロールバー幅設定 */
}

/* Chrome, Safari, Edge用のスクロールバースタイル */
.pest-content::-webkit-scrollbar {
    width: 8px;
}

.pest-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.pest-content::-webkit-scrollbar-thumb {
    background: #aaa;
    border-radius: 4px;
}

.pest-content::-webkit-scrollbar-thumb:hover {
    background: #888;
}

.pest-category {
    margin-bottom: 25px;
}

.pest-category h3 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 5px;
    margin-bottom: 15px;
}

/* コンプライアンスカテゴリ用のスタイル */
.compliance-category h3 {
    color: #8e44ad;
    /* 紫色 */
    border-bottom: 2px solid #8e44ad;
}

/* ガバナンスカテゴリ用のスタイル */
.governance-category h3 {
    color: #2c3e50;
    /* 濃紺色 */
    border-bottom: 2px solid #2c3e50;
}

.pest-subcategory {
    margin-left: 15px;
    margin-bottom: 15px;
}

.pest-subcategory h4 {
    color: #333;
    margin-bottom: 8px;
    border-left: 3px solid var(--primary-color);
    padding-left: 10px;
}

/* コンプライアンスカテゴリの小見出し用スタイル */
.compliance-category .pest-subcategory h4 {
    border-left: 3px solid #8e44ad;
}

/* ガバナンスカテゴリの小見出し用スタイル */
.governance-category .pest-subcategory h4 {
    border-left: 3px solid #2c3e50;
}

.pest-item {
    background-color: #f9f9f9;
    border-radius: 5px;
    padding: 10px 15px;
    margin-left: 15px;
}

.pest-item p {
    margin: 0;
}

/* 詳細ボタンのスタイル */
.detail-btn {
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 12px;
    margin-left: 10px;
    cursor: pointer;
    transition: background-color 0.2s;
    color: #555;
}

.detail-btn:hover {
    background-color: #e0e0e0;
    color: #333;
}

/* ポップアップのスタイル */
.detail-popup {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow: auto;
}

.detail-popup-content {
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    border-radius: 8px;
    width: 60%;
    max-width: 800px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
}

.close-popup:hover {
    color: #555;
}

#detail-popup-title {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--primary-color);
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

#detail-popup-body {
    line-height: 1.6;
}