/**
 * 見出し離脱追跡システム - フロントエンドCSS
 */

/* デバッグ情報表示エリア */
#heading-debug-info {
    position: fixed !important;
    top: 10px !important;
    right: 10px !important;
    background: rgba(0, 0, 0, 0.9) !important;
    color: white !important;
    padding: 15px !important;
    border-radius: 5px !important;
    font-family: 'Courier New', monospace !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
    z-index: 99999 !important;
    max-width: 300px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    border: 1px solid #333 !important;
}

#heading-debug-info * {
    color: white !important;
    font-family: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    #heading-debug-info {
        top: 5px !important;
        right: 5px !important;
        left: 5px !important;
        max-width: none !important;
        font-size: 11px !important;
        padding: 10px !important;
    }
}

/* デバッグ情報の非表示 */
.heading-exit-debug-hidden #heading-debug-info {
    display: none !important;
}

/* 見出しのハイライト表示（デバッグ用） */
.heading-exit-debug-mode h2,
.heading-exit-debug-mode h3 {
    position: relative;
}

.heading-exit-debug-mode h2::before,
.heading-exit-debug-mode h3::before {
    content: '📍';
    position: absolute;
    left: -25px;
    top: 0;
    font-size: 16px;
    opacity: 0.6;
}

.heading-exit-debug-mode .heading-current {
    background-color: rgba(0, 123, 186, 0.1) !important;
    border-left: 4px solid #007cba !important;
    padding-left: 10px !important;
}

/* プリント時には非表示 */
@media print {
    #heading-debug-info {
        display: none !important;
    }
}