/* ===== 基本レイアウト ===== */
html, body {
    height: 100%;
}

.main-container {
    height: 100%;
    display: flex;
}

/* ===== サイドバー全体のスタイル ===== */
.sidebar {
    --sidebar-width: 304px;
    background-color: white; /* 全体の背景色は白 */
    min-width: 0;
    width: var(--sidebar-width);
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    transition: width 0.5s ease;
    box-sizing: border-box;
    box-shadow: var(--card-box-shadow);
    max-height: 100%;
}

.sidebar-top {
    padding: 32px 0 0 32px;
}

.logo-container {
    cursor: pointer;
    display: flex;
    align-items: center;
}

.logo-svg {
    width: 30px;
    height: 30px;
    margin-right: 5px;
}

.sidebar-content {
    width: var(--sidebar-width);
    padding: 28px 3px;
}

.sidebar ul {
    padding-left: 0;
    list-style: none none;
}

.submenu {
    display: flex;
    flex-direction: column;
}

.sidebar .menu-item {
    display: flex;
    align-items: center;
    width: 100%;
    border-radius: 6px;
}

.application-link-container {
    position: relative;
}

.sidebar .nav-link {
    color: var(--color-content);
}

.sidebar .nav-link.active {
    color: #FFFFFF;
    background-color: var(--brand);
}

.sidebar .nav-link.active .svg-arrow {
    fill: #FFFFFF;
}

.sidebar .nav-link:hover {
    transform: translateX(2px);
}

.sidebar .menu-item-first-lvl {
    font-weight: bold;
    padding: 8px 0 8px 24px;
}

.menu-item-first-lvl .svg-menu-item-first, .dashboard-item .svg-menu-item-first {
    width: 16px;
    height: 16px;
    margin-right: 10px;
}

.sidebar .submenu .nav-link {
    padding-left: 45px;
    padding-right: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 400;
}

.sidebar .nav-link .svg-arrow {
    width: 12px;
    height: 12px;
    fill: var(--brand);
}

.sidebar .dashboard-item {
    padding: 0 3px;
}

.sidebar .dashboard-item .menu-item {
    padding-left: 21px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar .dashboard-item .nav-link {
    padding-right: 30px;
}

.dashboard-item-name {
    display: flex;
    align-items: center;
}

/* 折りたたみ状態 */
.sidebar {
    transition: width .3s ease, padding .3s ease;
    z-index: 3;
}

html.sidebar-collapsed .sidebar {
    width: 0;
    min-width: 0 !important;
    padding: 0 !important;
    border: none !important;
}

.menu-item-label {
    position: relative;
}

.sidebar .red-dot {
    background-color: var(--danger);
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    display: inline-block;
    vertical-align: middle;
    position: absolute;
    left: calc(100% + 4px);
    top: 4px;
}

.header {
    height: 64px;
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--header-background-color);
    padding: 0 24px;
    box-shadow: 2px 2px 2px 0 rgba(0, 0, 0, 0.25);
    z-index: 2;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toggle-container {
    color: var(--brand);
}

.toggle-container svg, .header-logo img {
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.user-dropdown {
    color: var(--brand);
}

.user-dropdown .dropdown-toggle::after {
    border-top-width: 7px;
    border-right-width: 7px;
    border-left-width: 7px;
}

.login-user-frame-img {
    flex-shrink: 0;
    /*max-width: 55px;*/
    max-height: 42px;
    margin-right: 12px;
}

.login-user-frame-a-span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    margin-left: 12px;
}

.user-icon-container {
    display: inline-block;
    position: relative;

}

.user-icon-container .user-icon {
    width: 25px;
    height: 25px;
}

.user-icon-container .certified-icon {
    width: 15px;
    height: 15px;
    position: absolute;
    bottom: -1px;
    right: -6px;
}

.main {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100vh;
    container-type: inline-size;
    container-name: main-content;
}

#main-content {
    overflow-y: auto;
}

.content {
    width: 100%;
    display: flex;
    justify-content: center;
}

.content-inner {
    width: 100%;
}


.question-form-item {
    position: relative;
    margin-top: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.question-form-item .form-item-label {
    flex: 0 0 20%;
    max-width: 20%;
    text-align: right;
}

.question-form-item .form-item-value {
    flex: 1;
}

.question-form-item .invalid-feedback {
    position: absolute;
}



