/**
 * お役立ちコラム用CSS
 * マスコット対話 + 目次スタイル
 */

/* 目次スタイル */
.toc-container {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0 30px;
    max-width: 600px;
}
.toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.toc-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}
.toc-toggle {
    background: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 16px;
    color: #666;
}
.toc-list {
    margin: 0;
    padding-left: 20px;
    list-style: decimal;
}
.toc-sublist {
    margin: 5px 0;
    padding-left: 20px;
    list-style: lower-alpha;
}
.toc-item {
    margin: 8px 0;
    line-height: 1.5;
}
.toc-item a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s;
}
.toc-item a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}
.toc-level-2 { font-weight: 500; }
.toc-level-3 { font-weight: normal; font-size: 0.95em; }
.toc-level-4 { font-weight: normal; font-size: 0.9em; color: #666; }

/* マスコット対話スタイル */
.mascot-dialogue {
    background: linear-gradient(135deg, #FFF9E6 0%, #FFF5F5 100%);
    border-radius: 16px;
    padding: 20px;
    margin: 24px 0;
    border: 2px solid #FFE4B5;
}
.mascot-line {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 12px;
}
.mascot-line:last-child {
    margin-bottom: 0;
}
.mascot-line--tamagon {
    flex-direction: row-reverse;
}
.mascot-avatar {
    flex-shrink: 0;
    text-align: center;
}
.mascot-avatar img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.mascot-name {
    display: block;
    font-size: 11px;
    font-weight: bold;
    margin-top: 4px;
    color: #666;
}
.mascot-bubble {
    background: #fff;
    border-radius: 16px;
    padding: 12px 16px;
    max-width: 70%;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.mascot-line--ebio .mascot-bubble {
    border: 2px solid #F4A460;
    border-bottom-left-radius: 4px;
}
.mascot-line--tamagon .mascot-bubble {
    border: 2px solid #FFEFD5;
    border-bottom-right-radius: 4px;
}
.mascot-bubble p,
.mascot-bubble span {
    margin: 0;
    line-height: 1.6;
    font-size: 14px;
}
.mascot-line--ebio .mascot-bubble p,
.mascot-line--ebio .mascot-bubble span {
    color: #8B4513;
}
.mascot-line--tamagon .mascot-bubble p,
.mascot-line--tamagon .mascot-bubble span {
    color: #5D4E37;
}

@media (max-width: 600px) {
    .mascot-dialogue {
        padding: 12px;
    }
    .mascot-avatar img {
        width: 48px;
        height: 48px;
    }
    .mascot-bubble {
        max-width: 80%;
        padding: 10px 12px;
    }
    .mascot-bubble p,
    .mascot-bubble span {
        font-size: 13px;
    }
}
