
* {
    box-sizing: border-box;
}

.wc-secondary-shell {
    width: 100%;
    height: 78px;
    min-height: 78px;

    margin: 0;
    padding: 0;

    display: block;

    background: rgba(255,255,255,.97);
    border-bottom: 1px solid #e7edf5;

    position: relative;
    z-index: 1000;
}

.wc-secondary-inner {
    width: min(1080px, calc(100% - 40px));
    height: 78px;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 24px;
}

.wc-secondary-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    text-decoration: none;
    color: #0f172a;

    flex-shrink: 0;
}

.wc-secondary-brand img {
    width: 38px;
    height: 38px;

    border-radius: 11px;
    object-fit: cover;

    box-shadow: 0 4px 12px rgba(37,99,235,.15);
}

.wc-secondary-brand span {
    font-size: 15px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.03em;

    white-space: nowrap;
}

.wc-secondary-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.wc-secondary-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.wc-secondary-links a {
    color: #475569;
    text-decoration: none;

    font-size: 13px;
    font-weight: 800;

    white-space: nowrap;
}

.wc-secondary-links a:hover {
    color: #2563eb;
}

.wc-secondary-admin-event {
    color: #2563eb !important;
}

.wc-secondary-lang {
    display: inline-flex;
    align-items: center;

    height: 38px;
    padding: 3px;

    border: 1px solid #e2e8f0;
    border-radius: 999px;

    background: #f1f5f9;
}

.wc-secondary-lang button {
    appearance: none;

    min-width: 31px;
    height: 30px;

    padding: 0 7px;

    border: 0;
    border-radius: 999px;

    background: transparent;
    color: #64748b;

    font-size: 10px;
    font-weight: 900;

    cursor: pointer;
}

.wc-secondary-lang button.active {
    background: white;
    color: #2563eb;

    box-shadow:
        0 1px 2px rgba(15,23,42,.08),
        0 2px 7px rgba(15,23,42,.07);
}

.wc-secondary-account {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    min-height: 38px;

    padding: 4px 10px 4px 5px;

    border: 1px solid #e2e8f0;
    border-radius: 999px;

    background: white;
    color: #334155;

    text-decoration: none;

    font-size: 12px;
    font-weight: 900;

    white-space: nowrap;

    box-shadow: 0 3px 10px rgba(15,23,42,.06);
}

.wc-secondary-account img {
    width: 28px;
    height: 28px;

    border-radius: 999px;
    object-fit: cover;
}

/* 古い追加UIを表示しない */
.wc-page-language,
.wc-page-language-floating,
#wc-language-desktop-v3,
#wc-language-mobile-v3,
#wc-safe-language,
#wc-mobile-language-final,
#wc-header-tools,
#wc-header-tools-final {
    display: none !important;
}

body {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

@media (max-width: 900px) {

    .wc-secondary-shell {
        height: 66px;
        min-height: 66px;
    }

    .wc-secondary-inner {
        width: calc(100% - 24px);
        height: 66px;
        gap: 7px;
    }

    .wc-secondary-brand {
        gap: 7px;
    }

    .wc-secondary-brand img {
        width: 34px;
        height: 34px;
        border-radius: 10px;
    }

    .wc-secondary-brand span {
        font-size: 13px;
    }

    .wc-secondary-links {
        display: none;
    }

    .wc-secondary-right {
        gap: 5px;
    }

    .wc-secondary-lang {
        height: 34px;
        padding: 2px;
    }

    .wc-secondary-lang button {
        min-width: 27px;
        height: 28px;
        padding: 0 5px;
        font-size: 9px;
    }

    .wc-secondary-account {
        min-height: 34px;
        max-width: 108px;

        padding: 3px 7px 3px 4px;

        font-size: 10px;
    }

    .wc-secondary-account img {
        width: 26px;
        height: 26px;
    }

    .wc-secondary-account-name {
        max-width: 58px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}
