/* ============================================================================
 * DanceAxis Analytics - Main Stylesheet
 * ============================================================================ */

/* --- 3D Model Settings Button & Popup --- */
.da-settings-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 100;
    background: #1a1e2e;
    color: #fff;
    border: 2px solid #333;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.da-settings-btn:hover {
    background: #2a2e45;
    transform: rotate(90deg);
    border-color: #7eb8ff;
}

.da-settings-popup {
    /* .da-panel が position:relative なのでパネル基準で配置。
       マスターキャンバス(350px)の直下＝歯車の下に表示する */
    position: absolute;
    top: 358px;
    right: 10px;
    left: auto;
    bottom: auto;
    width: 280px;
    max-height: 70vh;
    overflow-y: auto;
    background: rgba(13, 15, 26, 0.97);
    border: 1px solid #333;
    border-radius: 8px;
    z-index: 10000;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
}

.da-settings-popup-header {
    padding: 12px 15px;
    background: #1a1e2e;
    border-bottom: 1px solid #333;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: bold;
    color: #a0c4ff;
}

.da-popup-close {
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    font-size: 16px;
}

.da-popup-close:hover {
    color: #fff;
}

.da-settings-popup-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
}

/* ポップアップ(display:flex 縦並び)で子がflex-shrinkされ内容が潰れるのを防ぐ。
   高さ制限はポップアップ自身の overflow-y:auto で処理する */
.da-settings-popup-header,
.da-settings-popup-content {
    flex-shrink: 0;
}

/* --- Main App Container --- */
#da-app {
    font-family: sans-serif;
    background: #0d0f1a;
    color: #e0e8ff;
    width: 100%;
    max-width: none;
    margin: 0 auto;
    position: relative;
    display: flex;
    flex-direction: column;
}

#da-titlebar {
    padding: 12px;
    background: #1a1e2e;
    text-align: center;
    font-weight: bold;
    color: #7eb8ff;
    border-bottom: 2px solid #333;
}

#da-viewports {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    position: relative;
    background: #0a0c14;
    transition: padding 0.3s;
}

/* --- Panels (Master & User) --- */
.da-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 50%;
    position: relative;
}

.da-panel-master {
    order: 1;
    background: #0d0f1a;
    border-right: 2px solid #000;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.da-panel-user {
    order: 2;
    background: #141724;
    z-index: 1;
}

.da-sync-setup-wrap {
    order: 3;
    width: 100%;
    background: #12141f;
    border-top: 2px solid #000;
    padding: 15px;
    box-sizing: border-box;
    z-index: 3;
}

/* --- Badges --- */
.da-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 30;
    font-weight: 900;
    font-size: 16px;
    letter-spacing: 2px;
    background: transparent;
    text-shadow:
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000,
        0px 3px 8px rgba(0, 0, 0, 0.8);
    pointer-events: none;
}

.da-badge-master {
    color: #7eb8ff;
}

.da-badge-user {
    color: #ff2a6d;
}

/* --- Media & Canvas Wrappers --- */
.da-media-wrap,
.da-canvas {
    width: 100%;
    height: 350px;
    background: #000;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#user-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: none;
    transition: opacity 0.2s;
}

.da-canvas {
    transition: opacity 0.2s;
}

/* --- GUI Controls --- */
.da-gui {
    padding: 12px;
    background: #111;
    border-top: 1px solid #222;
}

.da-ctrl-individual {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    background: #161925;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    height: 60px;
    box-sizing: border-box;
}

.da-ctrl-individual button {
    height: 36px;
    padding: 0 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
    line-height: 34px;
}

.da-ctrl-individual button:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* 無効ボタン／入力の統一表示（disabled 属性を持つもの全般） */
.da-ctrl-individual button:disabled,
.da-ctrl-individual button[disabled],
#da-app button:disabled,
#da-app button[disabled],
#da-app input:disabled,
#da-app input[disabled] {
    opacity: 0.4;
    cursor: not-allowed !important;
    pointer-events: none;
    filter: grayscale(60%);
}

/* 無効ボタンはホバーで色が変わらないようにする */
.da-ctrl-individual button:disabled:hover,
.da-ctrl-individual button[disabled]:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Range Inputs */
.da-ctrl-individual input[type=range],
.da-sync-slider-wrap input[type=range] {
    flex: 1;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.15);
    height: 12px;
    border-radius: 4px;
    outline: none;
}

.da-ctrl-individual input[type=range]::-webkit-slider-thumb,
.da-ctrl-individual input[type=range]::-moz-range-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 8px;
    height: 36px;
    border-radius: 2px;
    background: #5a9eff;
    cursor: pointer;
    border: 1px solid #fff;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.da-sync-slider-wrap input[type=range]::-webkit-slider-thumb,
.da-sync-slider-wrap input[type=range]::-moz-range-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 36px;
    border-radius: 2px;
    background: #2a5cff;
    cursor: pointer;
    border: 1px solid #fff;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.da-frame-lbl {
    color: #7eb8ff;
    white-space: nowrap;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    min-width: 65px;
    text-align: right;
}

/* --- Bottom Panel & Sync Area --- */
#da-bottom-panel {
    background: #12141f;
    border-top: 1px dashed #333;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    z-index: 3;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.5);
}

.da-sync-setup-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.da-calib-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.da-calib-btn:hover {
    opacity: 0.8;
}

.da-calib-btn.is-locked {
    background: #1a1e2e !important;
    color: #ff2a6d;
    border: 2px solid #ff2a6d;
    box-shadow: 0 0 15px rgba(255, 42, 109, 0.4), inset 0 0 10px rgba(255, 42, 109, 0.2);
    pointer-events: none;
}

.disabled-until-sync {
    opacity: 0.3;
    pointer-events: none;
    filter: grayscale(80%);
    transition: all 0.3s ease;
}

.disabled-until-sync.is-active {
    opacity: 1;
    pointer-events: auto;
    filter: none;
}

#da-sync-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    background: transparent;
    width: 100%;
}

.da-sync-bar-top {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.da-sync-bar-bottom {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 250px;
}

.btn-sync-action {
    padding: 12px 20px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    color: #fff;
    border: none;
    border-radius: 6px;
    white-space: nowrap;
}

#btn-play-sync {
    background: #2a5cff;
}

#btn-toggle-ghost {
    background: #7b3fff;
}

.da-sync-speed {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.da-sync-speed input {
    width: 50px;
    background: #222;
    color: #fff;
    border: 1px solid #444;
    text-align: center;
    border-radius: 4px;
    font-size: 12px;
    padding: 2px;
}

.da-sync-slider-wrap {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.anchor-marker {
    position: absolute;
    top: 50%;
    left: 0%;
    width: 3px;
    height: 24px;
    background-color: #ff2a6d;
    border: 1px solid #fff;
    transform: translate(-50%, -50%);
    border-radius: 2px;
    pointer-events: none;
    z-index: 10;
}

/* --- Accordions --- */
.da-accordion {
    margin-top: 5px;
    border: 1px solid #333;
    border-radius: 6px;
    overflow: hidden;
    background: #0d0f1a;
}

.da-accordion-header {
    padding: 10px 14px;
    font-size: 12px;
    font-weight: bold;
    color: #a0c4ff;
    background: #1a1e2e;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.da-accordion-content {
    padding: 12px 14px 4px 14px;
    display: none;
    border-top: 1px solid #333;
}

.da-accordion.open .da-accordion-content {
    display: block;
}

.da-accordion.open .da-accordion-icon {
    transform: rotate(180deg);
}

/* --- GUI Inputs & Values --- */
.da-gui-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 12px;
}

.da-gui-row label {
    flex: 0 0 90px;
    color: #aaa;
}

.da-gui-row input[type=range] {
    flex: 1;
    accent-color: #5a9eff;
}

.da-gui-file {
    width: 100%;
    font-size: 11px;
    color: #fff;
    background: #222;
    border: 1px solid #444;
    padding: 4px;
    border-radius: 4px;
    margin-bottom: 5px;
}

.da-num-input {
    width: 45px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 4px;
    padding: 2px 4px;
    text-align: center;
    font-size: 12px;
}

.da-val {
    flex: 0 0 40px;
    text-align: right;
    color: #7eb8ff;
    font-weight: 600;
    font-size: 12px;
}

/* --- Canvas Buttons --- */
.da-canvas-btns {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 8px;
    z-index: 20;
}

.btn-canvas-action {
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: background 0.2s;
}

/* ホバー可能なデバイス（PC）のみ。モバイルでは:hoverがタップ後に貼り付くため除外 */
@media (hover: hover) {
    .btn-canvas-action:hover {
        background: rgba(255, 42, 109, 0.8);
        border-color: #ff2a6d;
    }
}

/* 押下フィードバック（約1秒だけ塗り潰してから通常に戻す） */
.btn-canvas-action.is-flash {
    background: rgba(255, 42, 109, 0.8);
    border-color: #ff2a6d;
}

/* --- Ghost Mode Styles --- */
#da-app.ghost-mode #da-viewports {
    position: relative !important;
    height: 350px !important;
    overflow: hidden !important;
    flex-direction: row;
}

#da-app.ghost-mode .da-panel {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 350px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    z-index: 1;
}

#da-app.ghost-mode .da-panel-user {
    z-index: 5 !important;
}

#da-app.ghost-mode .da-panel-master {
    z-index: 10 !important;
}

#da-app.ghost-mode .da-canvas,
#da-app.ghost-mode .da-media-wrap {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 350px !important;
    background: transparent !important;
}

#da-app.ghost-mode .da-ctrl-individual,
#da-app.ghost-mode .da-gui,
#da-app.ghost-mode .da-badge {
    display: none !important;
}

/* ゴースト表示中は「3Dモデル表示設定」ボタンを左下へ移動し、解析操作パネルとの重なりを避ける */
#da-app.ghost-mode .da-settings-btn {
    left: 10px !important;
    right: auto !important;
}

/* ゴースト中は #da-viewports が overflow:hidden になり absolute 配置の設定パネルが
   見切れるため、viewport 基準(fixed)に切り替えて全体を表示する。
   （モバイルは下のメディアクエリの !important ボトムシートが優先される） */
#da-app.ghost-mode .da-settings-popup {
    position: fixed;
    top: 70px;
    right: 20px;
    left: auto;
    bottom: auto;
    max-height: 80vh;
}

#da-bottom-panel #master-pos-accordion {
    display: block !important;
    margin-top: 0;
    border-color: #2a2e45;
    background: #0d0f1a;
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    #da-viewports {
        flex-direction: column;
        background: #000;
    }

    .da-panel {
        width: 100%;
    }

    .da-panel-master {
        order: 1;
        border-right: none;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.8);
        z-index: 2;
    }

    .da-sync-setup-wrap {
        order: 2;
        border-top: none;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    }

    .da-panel-user {
        order: 3;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.8);
        margin-bottom: 15px;
        border-bottom: 1px solid #2a2e45;
    }

    .da-media-wrap,
    .da-canvas {
        height: 250px;
    }

    #da-app.ghost-mode #da-viewports {
        height: 250px !important;
        overflow: hidden !important;
        flex-direction: row !important;
    }

    #da-app.ghost-mode .da-panel,
    #da-app.ghost-mode .da-canvas,
    #da-app.ghost-mode .da-media-wrap {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 250px !important;
        margin-bottom: 0 !important;
        border-bottom: none !important;
    }

    #da-bottom-panel {
        padding: 15px 10px;
        border-top: none;
        border-radius: 12px 12px 0 0;
    }

    .da-sync-setup-row {
        flex-direction: column;
        gap: 10px;
    }

    .da-calib-btn {
        width: 100%;
    }

    .da-sync-bar-bottom {
        flex: 0 0 100%;
        margin-top: 5px;
    }

    #da-app.ghost-mode .da-sync-setup-row,
    #da-app.ghost-mode #master-debug-accordion {
        display: none !important;
    }
}

/* --- Camera Recording Modal --- */
.da-modal {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: #000;
    z-index: 9999;
    display: flex;
    flex-direction: column;
}

.da-modal-content {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.da-modal-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
    z-index: 30;
}

.da-modal-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
}

.da-modal-body {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

#modal-camera-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
}

.da-modal-footer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    z-index: 30;
    pointer-events: none;
}

.da-btn-modal-rec {
    pointer-events: auto;
    padding: 16px 40px;
    border-radius: 50px;
    border: none;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

#modal-btn-start {
    background: rgba(255, 42, 109, 0.85);
    color: white;
}

#modal-btn-stop {
    background: rgba(51, 51, 51, 0.85);
    color: white;
    border: 1px solid #666;
}

.da-rec-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
}

.da-rec-dot.active {
    background: #ff2a6d;
    animation: blink 1s infinite;
}

@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }

    100% {
        opacity: 1;
    }
}

#da-countdown {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 150px;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 30px #ff2a6d;
    z-index: 40;
    pointer-events: none;
}

.countdown-anim {
    animation: pop 1s linear infinite;
}

@keyframes pop {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0;
    }

    20% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }

    80% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* --- User Canvas Overlay --- */
.da-user-canvas-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

#user-canvas {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#btn-analyze-user {
    display: none;
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 20;
    background: rgba(255, 42, 109, 0.8);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    pointer-events: auto;
}

/* =======================================================
 * スマートフォン対応（固定ボトムバー ＋ ビューポート最適化）
 * ======================================================= */
#da-mobile-sticky-bar {
    display: none;
    /* 通常（PC等）は非表示 */
}

@media (max-width: 768px) {

    /* 1. スマホの画面に2つの動画が縦にすっぽり収まるよう高さを制限 */
    .da-canvas,
    .da-media-wrap {
        height: 220px !important;
        min-height: 220px !important;
    }

    /* 2. 下部パネルのコンテンツが固定バーの裏に隠れるのを防ぐ余白 */
    /* 同時に、パネル全体を縦積みにする設定 */
    .da-controls-wrapper {
        padding-bottom: 90px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
    }

    /* 3. ユーザーパネルの枠を解除し、中身を自由に配置できるようにする */
    .da-controls-wrapper .da-panel-user {
        display: contents !important;
    }

    /* 4. ファイル選択＆録画ボタンエリアを一番上へ (order: 1) */
    .da-controls-wrapper .da-panel-user>div:first-child {
        order: 1;
        background: #0d0f1a;
        padding: 15px !important;
        /* 同期操作パネルと外枠の厚みを揃える */
        border-radius: 8px;
        margin-bottom: 0 !important;
        justify-content: space-between !important;
    }

    #btn-open-rec-modal {
        width: 33% !important;
        flex: none !important;
        padding: 8px 0 !important;
    }

    #inputVideo-user {
        width: 63% !important;
    }

    /* 5. 同期操作パネルを真ん中へ (order: 2) */
    .da-controls-wrapper .da-panel-master {
        order: 2;
    }

    /* 6. 解析操作パネルを一番下へ (order: 3) ＋ 幅をピッタリ揃える */
    #da-range-bar {
        order: 3;
        margin: 15px !important;
        box-shadow: 0 0 0 15px #0d0f1a !important;
        /* 紺色の影で外枠を復元 */
        border-radius: 6px !important;
    }

    /* 7. ボトムバーの表示とスタイル（前回抜けてしまっていた部分） */
    #da-mobile-sticky-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 70px;
        background: #090b11;
        border-top: 1px solid #1e2030;
        z-index: 99999;
        padding: 10px 12px;
        box-sizing: border-box;
        gap: 8px;
        justify-content: space-between;
        align-items: center;
        box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.6);
    }

    /* ボトムバー内のボタンデザイン */
    .mob-bar-btn {
        flex: 1;
        height: 100%;
        font-size: 11px;
        font-weight: bold;
        border-radius: 6px;
        border: 1px solid #3a3f58;
        background: #1e2030;
        color: #ccc;
        cursor: pointer;
        white-space: nowrap;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 4px;
        transition: all 0.2s;
    }

    /* モバイルでは設定パネルを画面下部のボトムシート化し、上部の動画/3Dをなるべく覆わない */
    .da-settings-popup {
        position: fixed !important;
        top: auto !important;
        bottom: 70px !important; /* モバイル固定バー(高さ70px)の上に配置 */
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        /* 入れ子スクロールで内容が潰れないよう、ポップアップ自体をスクロールさせる */
        max-height: calc(100vh - 90px) !important;
        overflow-y: auto !important;
        border-radius: 12px 12px 0 0;
        z-index: 100000 !important; /* 固定バー(99999)より前面にして隠れないようにする */
    }

    .da-settings-popup-content {
        max-height: none !important;
        overflow: visible !important;
    }
}

/* ===== 未ログイン時：解析結果保存ボタンのグレーアウト ===== */
#btn-save-result.da-save-locked {
    background: #3a3a3a !important;
    color: #8a8a8a !important;
    border-color: #555 !important;
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    position: relative;
}

/* PC：ホバーでツールチップ表示（スマホはホバー不可のためタップ時にJSで案内） */
#btn-save-result.da-save-locked:hover::after {
    content: attr(data-locktip);
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    background: rgba(0, 0, 0, 0.92);
    color: #fff;
    padding: 5px 9px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: normal;
    line-height: 1.2;
    z-index: 100001;
    pointer-events: none;
    border: 1px solid #00bcd4;
}
#btn-save-result.da-save-locked:hover::before {
    content: '';
    position: absolute;
    bottom: 108%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #00bcd4;
    z-index: 100001;
    pointer-events: none;
}

/* ===== ラッパー方式ツールチップ（disabledボタン用：採点実行ボタン等） ===== */
/* disabled要素はホバーを受けないため、親spanにツールチップを付ける */
.da-tip-wrap {
    position: relative;
}
.da-tip-wrap.is-locked:hover::after {
    content: attr(data-locktip);
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    background: rgba(0, 0, 0, 0.92);
    color: #fff;
    padding: 5px 9px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: normal;
    line-height: 1.2;
    z-index: 100001;
    pointer-events: none;
    border: 1px solid #ff7b9c;
}
.da-tip-wrap.is-locked:hover::before {
    content: '';
    position: absolute;
    bottom: 108%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #ff7b9c;
    z-index: 100001;
    pointer-events: none;
}