/* =================================================================
   app.css
   AI JIMY Portal Application-Specific Styles
   - Defines layout, structure, and spacing. All color definitions
     are managed in site.scss.
================================================================= */


/* * 1. グローバル & 基本レイアウト (Global & Base Layout)
 * --------------------------------------------------------------- */
/* 常に垂直スクロールバーを表示し、ページのガタつきを防ぎます */
html {
    overflow-y: scroll;
}

.navbar {
    height: 3.5rem;
}
main {
    background: black;
    min-height: 100%;
    height: auto;
}
/* リストアイテムの上下マージン */
li {
}

h1 {
    font-size: larger;
    margin: revert;
}

    h1:focus {
        outline: none;
    }

.content {
    padding-top: 1.1rem;
}

.row {
    align-items: baseline;
}

.main-footer {
    bottom: 0;
}
.base-section {
    min-height: 98vh;
    /*min-height: calc(100vh - 4.6rem);*/
}


/* * 2. ヘルパー & ユーティリティ (Helpers & Utilities)
 * --------------------------------------------------------------- */
/* 右寄せ（floatを使用） */
.btn-right {
    float: right;
}

/* Flexboxコンテナ */
.flex-container {
    display: flex;
    align-items: center;
}

/* クリックを無効化 */
.no-click {
    pointer-events: none;
    opacity: 0.5;
}


/* * 3. コンポーネント構造 (Component Structure)
 * --------------------------------------------------------------- */

.card {
    margin: 10px 0px;
}

.card-50 {
    max-width: 50rem;
}

.button-group-button {
    margin: 0.5rem;
    min-width: 14rem;
    padding: 1.5rem;
    font-size: 1.1rem;
}

.youtube-size {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
}


/* * 4. ナビゲーション構造 (Navigation Structure)
 * --------------------------------------------------------------- */
.nav-item-child {
    padding-bottom: 0rem !important;
    margin: 0px 0px;
}

.nav-icon {
    margin-right: 0.8rem;
}

.title-icon-image {
    width: 2.2rem;
    height: 2.2rem;
    object-fit: contain;
    display: block;
}

.nav-product-font {
    font-weight: bold;
    margin-left: 0.5rem !important;
    font-size: large;
}

/* アコーディオンメニューの挙動 */
.nav-category {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .nav-category .fa-chevron-down {
        transition: transform 0.2s ease-in-out;
    }

    .nav-category.collapsed .fa-chevron-down {
        transform: rotate(-90deg);
    }

/* 子メニューのインデント */
.collapse .nav-link {
    padding-left: 2rem;
}


/* * 5. フォーム構造 (Form Structure)
 * --------------------------------------------------------------- */
.form-group {
    margin: 20px 5px;
    max-width: 720px;
}

.tab-content {
    /*padding: 20px;*/
}

.card-auth-max-width {
    max-width: 560px;
}
/* * リボンデザイン
 * --------------------------------------------------------------- */

.ribbon-wrapper {
    height: 70px;
    overflow: hidden;
    position: absolute;
    right: -2px;
    top: -2px;
    width: 70px;
    z-index: 10;
    color: white;
}

    .ribbon-wrapper.ribbon-lg {
        height: 120px;
        width: 120px;
    }

        .ribbon-wrapper.ribbon-lg .ribbon {
            right: 0;
            top: 26px;
            width: 160px;
        }

    .ribbon-wrapper.ribbon-xl {
        height: 180px;
        width: 180px;
    }

        .ribbon-wrapper.ribbon-xl .ribbon {
            right: 4px;
            top: 47px;
            width: 240px;
        }

    .ribbon-wrapper .ribbon {
        box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
        font-size: 0.8rem;
        line-height: 100%;
        padding: 0.375rem 0;
        position: relative;
        right: -2px;
        text-align: center;
        text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
        text-transform: uppercase;
        top: 10px;
        -webkit-transform: rotate(45deg);
        transform: rotate(45deg);
        width: 90px;
    }

        .ribbon-wrapper .ribbon::before, .ribbon-wrapper .ribbon::after {
            border-left: 3px solid transparent;
            border-right: 3px solid transparent;
            border-top: 3px solid #9e9e9e;
            bottom: -3px;
            content: "";
            position: absolute;
        }

        .ribbon-wrapper .ribbon::before {
            left: 0;
        }

        .ribbon-wrapper .ribbon::after {
            right: 0;
        }

/* * テキストカラー
 * --------------------------------------------------------------- */


.text-xs {
    font-size: 0.75rem !important;
}

.text-sm {
    font-size: 0.875rem !important;
}

.text-md {
    font-size: 1rem !important;
}

.text-lg {
    font-size: 1.25rem !important;
}

.text-xl {
    font-size: 2rem !important;
}

.text-lightblue {
    color: #3c8dbc !important;
}

.text-navy {
    color: #001f3f !important;
}

.text-olive {
    color: #3d9970 !important;
}

.text-lime {
    color: #01ff70 !important;
}

.text-fuchsia {
    color: #f012be !important;
}

.text-maroon {
    color: #1bacd8 !important;
}

.text-blue {
    color: #007bff !important;
}

.text-indigo {
    color: #6610f2 !important;
}

.text-purple {
    color: #6f42c1 !important;
}

.text-pink {
    color: #e83e8c !important;
}

.text-red {
    color: #dc3545 !important;
}

.text-orange {
    color: #fd7e14 !important;
}

.text-yellow {
    color: #ffc107 !important;
}

.text-green {
    color: #28a745 !important;
}

.text-teal {
    color: #20c997 !important;
}

.text-cyan {
    color: #17a2b8 !important;
}

.text-white {
    color: #fff !important;
}

.text-gray {
    color: #6c757d !important;
}

.text-gray-dark {
    color: #343a40 !important;
}

.dark-mode .text-muted {
    color: #adb5bd !important;
}

.dark-mode .text-lightblue {
    color: #86bad8 !important;
}

.dark-mode .text-navy {
    color: #002c59 !important;
}

.dark-mode .text-olive {
    color: #74c8a3 !important;
}

.dark-mode .text-lime {
    color: #67ffa9 !important;
}

.dark-mode .text-fuchsia {
    color: #f672d8 !important;
}

.dark-mode .text-maroon {
    color: #ed6c9b !important;
}

.dark-mode .text-blue {
    color: #3f6791 !important;
}

.dark-mode .text-indigo {
    color: #6610f2 !important;
}

.dark-mode .text-purple {
    color: #6f42c1 !important;
}

.dark-mode .text-pink {
    color: #e83e8c !important;
}

.dark-mode .text-red {
    color: #e74c3c !important;
}

.dark-mode .text-orange {
    color: #fd7e14 !important;
}

.dark-mode .text-yellow {
    color: #f39c12 !important;
}

.dark-mode .text-green {
    color: #00bc8c !important;
}

.dark-mode .text-teal {
    color: #20c997 !important;
}

.dark-mode .text-cyan {
    color: #3498db !important;
}

.dark-mode .text-white {
    color: #fff !important;
}

.dark-mode .text-gray {
    color: #6c757d !important;
}

.dark-mode .text-gray-dark {
    color: #343a40 !important;
}

.video-size {
    height: auto;
    aspect-ratio: 16 / 9;
    width: -webkit-fill-available;
    max-width: 1000px;
    margin: 20px;
    border: solid 1px;
}

/* * 接続が切れているときのデザイン
 * --------------------------------------------------------------- */
/* デフォルトの全画面表示を無効化 */
#components-reconnect-modal {
    /* display: none; */ /* 完全に消すのではなく、スタイルを上書き */
    background-color: transparent !important; /* 全画面のグレーアウトを消す */
    text-align: right !important;
    padding: 1rem !important;
    position: fixed !important;
    top: auto !important;
    bottom: 0 !important;
    left: auto !important;
    right: 0 !important;
    width: auto !important;
    color: black !important;
    /* ...など、トースト風にスタイルを調整 ... */
}

    /* モーダルの「...」テキストのスタイル */
#components-reconnect .components-reconnect-message {
    background-color: #ffc !important;
    padding: 10px !important;
    border: 1px solid !important;
    border-radius: 5px !important;
    display: inline-block !important; /* 小さなボックスにする */
}

/* モーダルの背景オーバーレイ */
#components-reconnect-modal {
    background-color: rgba(0, 0, 0, 0.7); /* 少し暗くする */
}

/* モーダルの本体 */
    #components-reconnect-modal .components-reconnect-dialog {
        background-color: #fff !important;
        border-radius: 10px !important;
        padding: 30px !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
        /* 恐ろしい警告ではなく、クリーンなダイアログに見せる */
    }

/* "Reload" リンクを大きなボタンに変える */
    #components-reconnect-modal .components-reconnect-reload {
        display: inline-block !important;
        padding: 12px 25px !important;
        color: #fff;
        text-decoration: none !important;
        border-radius: 5px !important;
        font-weight: bold !important;
        font-size: 1.1em !important;
        margin-top: 20px !important;
    }

    #components-reconnect-modal h5 {
        display: none;
    }