@charset "utf-8";

/* =========================================
ヘッダー：PB・OEMの開閉ボタン
========================================= */

#c_hdr_menu .junwa-business-menu {
    flex: 0 0 auto;
    list-style: none;
}

#c_hdr_menu .junwa-business-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #1f3b57;
    font-family:
        "Helvetica Neue",
        "Yu Gothic",
        sans-serif;
    font-size: 17px;
    font-weight: 550;
    line-height: inherit;
    letter-spacing: 0.08em;
    white-space: nowrap;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: color 0.2s ease;
}

#c_hdr_menu .junwa-business-toggle:hover,
#c_hdr_menu .junwa-business-toggle[aria-expanded="true"] {
    color: #1f5fa8;
}

#c_hdr_menu .junwa-business-toggle::after {
    content: "";
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
}

#c_hdr_menu .junwa-business-toggle[aria-expanded="true"]::after {
    transform: translateY(2px) rotate(225deg);
}

#c_hdr_menu .junwa-business-toggle:focus-visible {
    outline: 2px solid #1f5fa8;
    outline-offset: 6px;
}

/* =========================================
選択肢
横スクロール領域の外側に固定表示
位置はJavaScriptで調整
========================================= */

#junwa-business-dropdown {
    position: fixed;
    z-index: 10000;
    width: 240px;
    max-width: calc(100vw - 24px);
    box-sizing: border-box;
    margin: 0;
    padding: 10px;
    border: 1px solid #e3eaf0;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(31, 59, 87, 0.14);
    text-align: left;
}

#junwa-business-dropdown[hidden] {
    display: none;
}

#junwa-business-dropdown a {
    display: block;
    box-sizing: border-box;
    padding: 14px 16px;
    border-radius: 6px;
    color: #1f3b57;
    font-family:
        "Helvetica Neue",
        "Yu Gothic",
        sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.7;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

#junwa-business-dropdown a + a {
    margin-top: 4px;
}

#junwa-business-dropdown a:hover {
    background: #f1f6fa;
    color: #1f5fa8;
}

#junwa-business-dropdown a:focus-visible {
    outline: 2px solid #1f5fa8;
    outline-offset: -2px;
    background: #f1f6fa;
}

/* =========================================
PC：項目追加に合わせて間隔を調整
========================================= */

@media screen and (min-width: 769px) {

    #c_hdr_fixed #c_hdr_fixed_inner {
        gap: 24px;
    }

    #c_hdr_fixed #c_hdr_logo {
        flex: 0 0 auto;
    }

    #c_hdr_fixed #c_hdr_menu {
        gap: clamp(16px, 3vw, 46px);
    }

    #c_hdr_fixed #c_hdr_menu > li {
        flex: 0 0 auto;
    }

    #c_hdr_fixed #c_hdr_menu > li > a {
        white-space: nowrap;
    }
}

/* =========================================
スマホ
既存の横スクロールは維持
========================================= */

@media screen and (max-width: 768px) {

    #c_hdr_menu .junwa-business-toggle {
        gap: 6px;
        font-size: 12px;
    }

    #junwa-business-dropdown a {
        padding: 14px;
        font-size: 14px;
    }
}

/* =========================================
動きを減らす設定
========================================= */

@media (prefers-reduced-motion: reduce) {

    #c_hdr_menu .junwa-business-toggle,
    #junwa-business-dropdown a {
        transition: none;
    }
}