@charset "utf-8";

/* ==========================================================================
   マップエディタ用ヘルプポップアップ
   ========================================================================== */

/* ヘルプラッパー（各項目の隣に配置する場合） */
.map-help-wrapper {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    vertical-align: middle;
}

/* ヘルプボタン（キャラクター作成ツール踏襲） */
.map-help-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 18px;
    height: 18px;
    margin-left: 8px;
    background-color: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.4);
    border-radius: 50%;
    cursor: help;
    font-size: 11px;
    font-weight: bold;
    color: #00f3ff;
    transition: all 0.2s ease;
    user-select: none;
    box-shadow: 0 0 5px rgba(0, 243, 255, 0.2);
    vertical-align: middle;
    position: relative;
    top: -1px;
}

.map-help-btn:hover {
    background-color: rgba(0, 243, 255, 0.3);
    border-color: #00f3ff;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.6);
    transform: scale(1.1);
}

/* ツールチップ本体（吹き出し） */
.map-help-tooltip {
    display: none;
    position: fixed;
    width: max-content;
    min-width: 200px;
    max-width: 350px;
    background-color: rgba(10, 10, 15, 0.95);
    border: 1px solid #00f3ff;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
    padding: 16px;
    z-index: 11000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    backdrop-filter: blur(10px);
}

.map-help-tooltip.is-visible {
    display: block;
    opacity: 1;
}

/* タイトル */
.map-help-title {
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-size: 16px;
    font-weight: bold;
    color: #00f3ff;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(0, 243, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* コンテンツ */
.map-help-content {
    font-size: 13px;
    line-height: 1.5;
    color: #e0e0e0;
    white-space: normal;
}

.map-help-content b {
    color: #00f3ff;
    font-weight: bold;
}

.map-help-content hr {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 10px 0;
}

/* ショートカットキーのスタイル */
.kb-key {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    padding: 1px 5px;
    font-family: monospace;
    font-size: 11px;
    color: #fff;
    margin: 0 2px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
}

/* モバイル対応 */
@media (max-width: 768px) {
    .map-help-tooltip {
        max-width: calc(100vw - 40px);
        min-width: 150px;
        font-size: 12px;
        padding: 12px;
    }
    .map-help-title {
        font-size: 14px;
        margin-bottom: 8px;
    }
}
