#mlwc-lang-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: #1a1a2e;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    height: 44px;
    display: flex;
    align-items: center;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.mlwc-lang-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 0 16px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.mlwc-lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    font-size: 13px;
    font-family: inherit;
    line-height: 1;
    transition: background 0.18s, border-color 0.18s, color 0.18s;
    white-space: nowrap;
    text-decoration: none;
}

.mlwc-lang-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
    text-decoration: none;
}

.mlwc-lang-btn.mlwc-active {
    background: #e94560;
    border-color: #e94560;
    color: #fff;
    font-weight: 700;
    pointer-events: none;
}

.mlwc-flag {
    font-size: 17px;
    line-height: 1;
}

/* 管理バーなし */
body {
    padding-top: 44px !important;
}

/* 管理バーあり・デスクトップ */
body.admin-bar #mlwc-lang-bar {
    top: 32px;
}
body.admin-bar {
    padding-top: 76px !important;
}

/* 管理バーあり・モバイル(≤782px) */
@media screen and (max-width: 782px) {
    body.admin-bar #mlwc-lang-bar {
        top: 46px;
    }
    body.admin-bar {
        padding-top: 90px !important;
    }
    .mlwc-label {
        display: none;
    }
    .mlwc-lang-btn {
        padding: 5px 8px;
    }
}

/* キャプションボックスのPC用スタイル */
@media screen and (min-width: 768px) {
    #mlwc-caption-box {
        margin: 10px 0 0;
    }
}

/* キャプションボックスのモバイル用スタイル */
@media screen and (max-width: 767px) {
    #mlwc-caption-box {
        margin: 8px 0;
    }
}
