﻿:root {
    --bs-primary: #005FCC;
    --bs-secondary: #34495E;
    --bs-success: #00B894;
    --bs-warning: #F39C12;
    --bs-danger: #E74C3C;
    --bs-light: #F7F9FB;
    --bs-dark: #2C3E50;
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* フォントの変更 */
body {
    font-family: 'Zen Maru Gothic', serif,'Roboto', sans-serif; /* 日本語フォント */
    /*font-family: 'Roboto', sans-serif;*/
    color: #34495E;
}



/* ナビゲーションバーのカスタマイズ */
/*.navbar {
    background-color: #343a40;
    border-bottom: 2px solid #007bff;
}*/

/* btn-primary ボタンのカスタマイズ */
.btn-primary {
    background: linear-gradient(90deg, #0F3554, #0056b3);
    border: none;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
}

    .btn-primary:hover {
        transform: scale(1.02);
    }

.btn-secondary {
    background: linear-gradient(90deg, #8F8667, #8f7c39 );
    border: none;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
}

    .btn-secondary:hover {
        transform: scale(1.02);
    }

/* btn-danger のカスタマイズ */
.btn-danger {
    background: linear-gradient(90deg, #E74C3C, #C0392B); /* 赤系のグラデーション */
    border: none; /* ボーダーを削除 */
    border-radius: 10px; /* 角丸 */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* ボックスシャドウ */
    color: #ffffff; /* テキスト色を白に */
    transition: transform 0.2s ease-in-out, background-color 0.3s ease-in-out; /* ホバー時のアニメーション */
}

    .btn-danger:hover {
        transform: scale(1.02); /* ホバー時に少し拡大 */
        background: linear-gradient(90deg, #C0392B, #A93226); /* ホバー時の色変更 */
    }

/* フォームフィールドのカスタマイズ */
.form-control {
    border-radius: 10px;
    border: 1px solid #ced4da;
    background-color: #f8f9fa;
    transition: box-shadow 0.2s ease-in-out;
}

    .form-control:focus {
        box-shadow: 0px 0px 8px rgba(0, 123, 255, 0.5);
        border-color: #007bff;
    }

/* 一覧に戻るボタンのカスタマイズ */
.custom-back-button {
    background: linear-gradient(90deg, #6c757d, #495057); /* グレー系のグラデーション */
    border: none; /* ボーダーを削除 */
    border-radius: 10px; /* 角丸 */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* ボックスシャドウ */
    color: #ffffff; /* テキスト色を白に */
    padding: 8px 16px; /* パディング */
    font-size: 16px; /* フォントサイズ */
    transition: transform 0.2s ease-in-out, background-color 0.3s ease-in-out; /* ホバー時のアニメーション */
}

    .custom-back-button:hover {
        transform: scale(1.02); /* ホバー時に少し拡大 */
        background: linear-gradient(90deg, #495057, #343a40); /* ホバー時の色変更 */
    }



/* 和風テーブルデザイン */
.table-wafu {
    width: 100%;
    border-collapse: collapse;
    background-color: #f8f4e6; /* 和紙風の背景色 */
}

    .table-wafu th, .table-wafu td {
        border: 1px solid #dcdcdc; /* 薄いグレーのボーダー */
        padding: 10px;
        text-align: left;
    }

    .table-wafu thead {
        background-color: #b22222; /* 深い紅色 */
        color: #ffffff; /* 白文字 */
        font-weight: bold;
    }

    .table-wafu tr:nth-child(even) {
        background-color: #f2e8d5; /* 和紙風の薄いベージュ */
    }

    .table-wafu tr:hover {
        background-color: #e6d5c3; /* ホバー時のアクセント */
    }

    /*.table-wafu a {
        color: #264653;*/ /* 藍色 */
        /*text-decoration: none;
    }

        .table-wafu a:hover {
            text-decoration: underline;
        }*/

/* AIチャットエリアの背景画像 */
#chatMessages {
    background-image: url('/images/character_01.png'); /* 背景画像のパス */
    background-size: contain; /* 画像をエリア全体に拡大/縮小 */
    background-position: top; /* 画像を中央に配置 */
    background-repeat: no-repeat; /* 画像を繰り返さない */
    /*position: absolute;*/ /* 必要に応じて位置を調整 */
    background-color: rgba(255, 255, 255, 0.8); /* 背景色を白で半透明に */
    backdrop-filter: blur(5px); /* 背景をぼかす */
    opacity: 0.7;
}


/* サイドメニューの初期状態 */
#sideMenu {
    width: 230px; /* サイドメニューの幅 */
    height: 100vh; /* 画面いっぱいの高さ */
    position: fixed; /* 固定位置 */    
    top: 57px;
    left: 0;
    background-color: #f8f9fa; /* 背景色 */
    border-right: 1px solid #ddd; /* 右側のボーダー */
    overflow-y: auto; /* コンテンツが多い場合にスクロール可能にする */
    transition: width 0.3s ease-in-out; /* 開閉時のアニメーション */
}

/* サイドメニューが閉じた状態 */
#sideMenu.collapsed {
    width: 80px; /* 閉じているときの幅 */
}

/* メインコンテンツの調整 */
main {
    margin-left: 220px; /* サイドメニューが開いているとき */
    transition: margin-left 0.3s ease-in-out;
}

#sideMenu.collapsed + main {
    margin-left: 60px; /* サイドメニューが閉じているとき */
}

/* メニュー名の表示切り替え */
#sideMenu .menu-text {
    display: inline; /* 開いているときは表示 */
    transition: opacity 0.3s ease-in-out;
}

#sideMenu.collapsed .menu-text {
    display: none; /* 閉じているときは非表示 */
}

/* トグルボタンの矢印回転 */
#menuToggle {
    transition: transform 0.3s ease-in-out;
}

#sideMenu.collapsed #menuToggle i {
    transform: rotate(180deg); /* 矢印を反転 */
}

/* nav-link の基本スタイル */
/*.nav-link {
    color: #005FCC !important;*/ /* 藍色 */
    /*font-weight: bold;*/
    /*transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out;
}*/

    /* ホバー時のスタイル */
    /*.nav-link:hover {
        color: #e63946 !important;*/ /* 朱色 */
        /*background-color: #f4f1de;*/ /* 生成り色 */
        /*border-radius: 5px;*/ /* 少し角を丸める */
    /*}*/

    /* アクティブなリンクのスタイル */
    /*.nav-link:hover {
        color: #2a9d8f !important;*/ /* 深緑 */
        /*background-color: #f4f1de;*/ /* 生成り色 */
        /*border-radius: 5px;
    }*/

    /* disabled クラスまたは aria-disabled="true" を持つリンクのスタイル */
    /*.nav-link.disabled,
    .nav-link[aria-disabled="true"] {
        color: #b0b0b0 !important;*/ /* 薄いグレー */
        /*pointer-events: none;*/ /* クリックを無効化 */
        /*background-color: transparent;*/ /* 背景色を透明に */
        /*text-decoration: none;*/ /* 下線を削除 */
    /*}

        .nav-link.disabled:hover,
        .nav-link[aria-disabled="true"]:hover {
            color: #b0b0b0 !important;*/ /* ホバー時も同じ色 */
            /*background-color: transparent;*/ /* 背景色を透明に */
        }


/*.sns-scroll-container {
    display: flex;
    overflow-x: auto;*/ /* 横スクロールを有効化 */
    /*overflow-y: hidden;*/ /* 縦スクロールを無効化 */
    /*white-space: nowrap;*/ /* 子要素を横並びに */
    /*padding-bottom: 10px;*/ /* スクロールバーが重ならないように余白を追加 */
/*}*/

/*.sns-post-card {
    flex: 0 0 auto;*/ /* 子要素が横並びになるように設定 */
    /*width: 200px;*/ /* カードの幅を固定 */
    /*margin-right: 10px;*/ /* カード間の余白 */
/*}

    .sns-post-card img {
        max-width: 100%;
        height: auto;
        border-radius: 4px;
    }*/

.post-content {
    font-size: 0.9rem;
    color: #555;
    word-wrap: break-word;
}

.post-date {
    font-size: 0.9rem;
    color: #6c757d; /* muted text color */
}


/* 画像の上にチェックボックスを配置 */
.sns-post-card {
    position: relative; /* 子要素を絶対位置で配置するため */
}

/* カスタムチェックボックスデザイン */
.checkbox-overlay {
    appearance: none; /* デフォルトのチェックボックススタイルを無効化 */
    position: absolute;
    top: 4px;
    right: 8px;
    z-index: 10;
    width: 24px;
    height: 24px;
    border: 2px solid var(--bs-primary); /* 枠線の色 */
    border-radius: 30%!important; /* 丸い形状 */
    background-color: white; /* 背景色 */
    cursor: pointer;
    transition: all 0.3s ease-in-out; /* アニメーション */
}

    .checkbox-overlay:hover {
        box-shadow: 0 0 8px rgba(0, 95, 204, 0.5); /* ホバー時の影 */
    }

    .checkbox-overlay:checked {
        background-color: var(--bs-primary); /* 選択時の背景色 */
        border-color: var(--bs-primary); /* 選択時の枠線色 */
        box-shadow: 0 0 8px rgba(0, 95, 204, 0.8); /* 選択時の影 */
        position: relative;
    }

        .checkbox-overlay:checked::after {
            /*content: '';*/ /* チェックマークを表示 */
            /*position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) scale(1);
            width: 12px;
            height: 12px;
            background-color: white;*/ /* チェックマークの色 */
            /*border-radius: 50%;*/ /* 丸い形状 */
            transition: transform 0.2s ease-in-out; /* アニメーション */
        }

    .checkbox-overlay:not(:checked)::after {
        transform: translate(-50%, -50%) scale(0); /* 非選択時は非表示 */
    }

/* ダウンロードボタン */
.download-btn {
    z-index: 2;
    opacity: 0.7;
}

    .download-btn:hover {
        opacity: 1;
    }


/* カルーセル矢印の背景色とアイコン色を変更 */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0,0,0,0.6); /* 半透明の黒背景 */
    border-radius: 50%;
    background-size: 60% 60%;
    width: 2.5rem;
    height: 2.5rem;
}

.carousel-control-prev,
.carousel-control-next {
    filter: none;
    opacity: 1;
}

.carousel-control-prev-icon::after,
.carousel-control-next-icon::after {
    /* アイコン色を白に */
    color: #fff;
}