/**
 * DP Lang Switcher — 言語切り替えボタン（Phase 4）
 *
 * SWELL 環境での注意点:
 * - SWELL ヘッダークローンとは独立した要素のため衝突なし
 * - position: fixed の先祖に transform / will-change を持つ要素がないことを確認済み
 */

.dp-lang-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999 !important;
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 24px;
    padding: 6px 14px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.1);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    line-height: 1;
}

.dp-lang-switcher__btn {
    display: inline-block;
    padding: 2px 4px;
    color: #aaa;
    text-decoration: none;
    transition: color 0.2s ease;
    border-radius: 4px;
}

.dp-lang-switcher__btn:hover {
    color: #333;
    text-decoration: none;
}

.dp-lang-switcher__btn.is-active {
    color: #111;
    pointer-events: none;
    cursor: default;
}

.dp-lang-switcher__sep {
    color: #ddd;
    font-weight: 400;
    user-select: none;
}

/* WP 管理バーが表示されている場合にずらす */
.admin-bar .dp-lang-switcher {
    top: 52px;
}

@media screen and ( max-width: 782px ) {
    .admin-bar .dp-lang-switcher {
        top: 66px;
    }
}
