/* TaxAI Sidebar Left Gutter v115.4 */

/* サイドバー全体に安全な左余白を付与 */
.taxai-sidebar,
.taxai-common-sidebar,
.taxai-os-sidebar,
.sidebar,
aside[class*="sidebar"],
nav[class*="sidebar"] {
    padding-left: 14px !important;
    padding-right: 12px !important;
    box-sizing: border-box !important;
}

/* メニュー項目は二重に広がりすぎないよう調整 */
.taxai-sidebar a,
.taxai-common-sidebar a,
.taxai-os-sidebar a,
.sidebar a,
aside[class*="sidebar"] a,
nav[class*="sidebar"] a {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 14px !important;
}

/* 「基本」「顧問先」「AI管理」等の見出しを強制的に内側へ */
.taxai-sidebar > *,
.taxai-common-sidebar > *,
.taxai-os-sidebar > *,
.sidebar > *,
aside[class*="sidebar"] > *,
nav[class*="sidebar"] > * {
    box-sizing: border-box !important;
}

/* 見出し系の候補を広めに補正 */
.taxai-sidebar .nav-title,
.taxai-sidebar .nav-heading,
.taxai-sidebar .nav-category,
.taxai-sidebar .nav-group-title,
.taxai-sidebar .sidebar-title,
.taxai-sidebar .sidebar-heading,
.taxai-sidebar .menu-title,
.taxai-sidebar .menu-heading,
.taxai-sidebar .section-title,
.taxai-sidebar .section-heading,
.taxai-common-sidebar .nav-title,
.taxai-common-sidebar .nav-heading,
.taxai-common-sidebar .nav-category,
.taxai-common-sidebar .nav-group-title,
.taxai-common-sidebar .sidebar-title,
.taxai-common-sidebar .sidebar-heading,
.taxai-common-sidebar .menu-title,
.taxai-common-sidebar .menu-heading,
.taxai-common-sidebar .section-title,
.taxai-common-sidebar .section-heading,
.sidebar .nav-title,
.sidebar .nav-heading,
.sidebar .nav-category,
.sidebar .nav-group-title,
.sidebar .sidebar-title,
.sidebar .sidebar-heading,
.sidebar .menu-title,
.sidebar .menu-heading,
.sidebar .section-title,
.sidebar .section-heading {
    padding-left: 0 !important;
    margin-left: 0 !important;
    display: block !important;
}

/* 直下のテキスト見出しが div/span/p/small の場合 */
.taxai-sidebar > div,
.taxai-sidebar > span,
.taxai-sidebar > p,
.taxai-sidebar > small,
.taxai-common-sidebar > div,
.taxai-common-sidebar > span,
.taxai-common-sidebar > p,
.taxai-common-sidebar > small,
.sidebar > div,
.sidebar > span,
.sidebar > p,
.sidebar > small {
    max-width: 100% !important;
}
