/* AI用語集ポップアップスタイル */

/* 用語リンクのスタイル - クリック可能なことを示す */
.ai-term {
    color: #007bff;               /* リンク色（青色） */
    text-decoration: dotted underline;  /* 点線の下線 */
    cursor: pointer;              /* ポインタカーソル */
    font-weight: 500;             /* やや太字 */
    transition: all 0.2s;         /* アニメーション効果 */
}

.ai-term:hover {
    color: #0056b3;               /* ホバー時の色を少し濃くする */
    text-decoration: underline;   /* ホバー時に実線の下線 */
    background-color: rgba(0, 123, 255, 0.1);  /* 薄い青色の背景 */
}

/* ポップアップのスタイル */
.ai-term-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 半透明の背景 */
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.ai-term-popup.show {
    display: flex;
}

.ai-term-popup-content {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.ai-term-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.ai-term-popup-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #333;
}

.ai-term-popup-close {
    font-size: 1.5rem;
    color: #888;
    cursor: pointer;
    transition: color 0.2s;
}

.ai-term-popup-close:hover {
    color: #333;
}

.ai-term-popup-body {
    padding: 15px 20px;
    color: #444;
    line-height: 1.6;
}

.ai-term-popup-footer {
    padding: 10px 20px 15px;
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid #e0e0e0;
}

.ai-term-glossary-btn {
    padding: 6px 12px;
    background-color: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.ai-term-glossary-btn:hover {
    background-color: #e0e0e0;
    text-decoration: none;
}
