﻿/* Please see documentation at https://learn.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}

.title-size {
    font-size: 30px;
    width: 60%;
}

/* ===== ヘッダー専用白文字統一設定 ===== */
.header-main a,
.header-main i,
.header-main span,
.header-main strong,
.header-main button {
    color: white;
    fill: white;
}

.logo-img {
    width: 30px;
    height: 30px;
    position: relative;
    top: -5px;
}
.header-main {
    display: flex;
    align-items: center; /* 垂直中央 */
    min-height: 60px;
    padding: 0 1rem;
    width: 100%;
    background-color: var(--bs-primary);
}

.header-sub {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.user-menu {
    position: absolute;
    inset-inline-start: -150px;
    top: 100%; /* ボタン下に表示 */
    margin-top: 0.5rem;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 1050;
}

    .user-menu.show {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

.user-header {
    background-color: #384055; /* Bootstrapのprimary色 */
    color: white;
}
.user-body {
    color: black !important; /* 文字を黒に固定 */
}


/* サイドバー閉じたとき */
.content.sidebar-collapsed {
    left: 0;
    width: 100%;
}
.content.sidebar-expanded {
    left: 250px; /* サイドバー分ずらすなど */
    width: calc(100% - 250px);
}
/* ==== サイドバー ==== */
.sidebar {
    top: 60px; /* ヘッダーの高さ分下げる */
    height: calc(100vh - 60px)!important; /* 全体高さからヘッダー分を引く */
    width: 250px;
    transition: all 0.3s ease;
    overflow-x: hidden;
    overflow-y: auto;
    box-sizing: border-box;
    background-color: #384055;
    color: white;
}

    /* 閉じた状態 */
    .sidebar.closed {
        width: 0;
        padding: 0;
        opacity: 0;
        visibility: hidden;
        overflow: hidden; /* 中身を完全に隠す */
    }
/* デフォルトでは表示状態 */
#sidebarMenu h6,
#sidebarMenu ul.nav {
    opacity: 1;
    transform: translate(0, 0);
    transition: all 0.3s ease;
}

/* 閉じているときだけ非表示 */
#sidebarMenu.closed h6,
#sidebarMenu.closed ul.nav {
    opacity: 0;
    transform: translateX(15px);
}
#sidebarMenu .nav-link.selected {
    background-color: #667393; /* 薄い青背景など */
    color: #CADBFB; /* 文字色 */
    font-weight: 600; /* 太めにして強調 */
    border-radius: 0.25rem; /* 角丸で少し柔らかく */
}

#sidebarMenu a {
    color: #CADBFB;
}
/* 親カテゴリ選択中 */
.selected-parent {
    background-color: #4F5972;
}
    a[aria-expanded="true"] i.bi-chevron-down {
        transform: rotate(180deg);
    }

    a[aria-expanded="false"] i.bi-chevron-down {
    }
/* オフキャンバスメニュー内のリンク全体 */
#sidebarMenu .nav-link {
    color: #CADBFB; /* 通常文字色 */
    transition: none !important;
}

    /* ホバー時に灰色 */
    #sidebarMenu .nav-link:hover {
        background-color: #eaeaea;
        color: #000;
    }

    /* アクティブリンク（選択中） */
    #sidebarMenu .nav-link.active {
        background-color: #1b6ec2; /* 青背景 */
        color: #fff; /* 白文字 */
    }

/* --- セクションタイトル全体フェード --- */
.menu-section-fade {
    animation: sectionFade 0.5s ease-out forwards;
}

@keyframes sectionFade {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- UL全体右スライドフェード --- */
.menu-ul-slide {
    animation: ulSlideIn 1.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes ulSlideIn {
    from {
        opacity: 0;
        transform: translateX(15px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}


.border-top {
    border-top: 1px solid #e5e5e5;
}

.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

/* ホバー時 */
.custom-btn:hover {
    background-color: skyblue;
}

.logout-btn {
    color: #dc3545 !important;
    background-color: white !important;
    border: 1px solid #dc3545 !important;
}
    .logout-btn:hover {
        background-color: #dc3545 !important;
        color: white !important;
        border: 1px solid white !important;
    }

.input-with-icon {
    position: relative;
}

    .input-with-icon input {
        padding-right: 40px; /* ← アイコン分の余白 */
    }

    .input-with-icon .icon {
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        cursor: pointer;
        font-size: 1.2rem;
        opacity: 0.7;
    }

        .input-with-icon .icon:hover {
            opacity: 1;
        }

.btn-changePassword {
    color: dimgray !important;
    background-color: white !important;
    border: 1px solid dimgray !important;
}

    .btn-changePassword:hover {
        background-color: dimgray !important;
        color: white !important;
        border: 1px solid dimgray !important;
    }
