.tooltip-icon {
    color: #007bff; /* 青色 */
    font-size: 0.8em; /* サイズを小さく */
}

.clear-icon {
    cursor: pointer;
}

/* 基本分類コードのスタイル */
.kihon-code {
    color: gray;      /* 文字色をグレーに */
    font-size: 0.9em; /* フォントサイズを少し小さく */
    margin-left: 1em; /* 左側にマージンを追加して分類名との間隔を調整 */
    white-space: nowrap; /* コードが折り返さないように */
}

/* サジェストリストの項目ホバー時のスタイル調整 (任意) */
.list-group-item:hover .kihon-code {
    color: #555; /* ホバー時に少し濃いグレーに */
}

body {
    /* モダンなフォントファミリーを指定 */
    font-family: 'system-ui', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    display: flex;
    min-height: 100vh;
    background-color: #f8f9fa; /* 全体の背景色を少し明るく */
}
.sidebar {
    width: 250px; /* 少し幅を広げる */
    background-color: #343a40; /* ダークな背景色 */
    color: #fff;
    padding: 1.5rem 1rem; /* パディング調整 */
    display: flex;
    flex-direction: column;
    position: fixed; /* サイドバーを固定 */
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1030; /* ヘッダーより手前に */
}
.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.7); /* リンクの色を少し薄く */
    padding: 0.75rem 1rem; /* パディング調整 */
    font-size: 1rem; /* フォントサイズ調整 */
    border-radius: 0.25rem; /* 角を少し丸める */
    margin-bottom: 0.5rem; /* リンク間のマージン */
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out; /* ホバー効果 */
}
.sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1); /* ホバー時の背景色 */
    color: #fff; /* ホバー時の文字色 */
}
.sidebar .nav-link.active {
    background-color: #0d6efd; /* アクティブなリンクの背景色 (Bootstrap Primary) */
    color: #fff;
    font-weight: 500; /* 少し太字に */
}
.sidebar .nav-link i {
    margin-right: 0.75rem; /* アイコンとテキストの間隔 */
    width: 1.25em; /* アイコン幅の確保 */
    text-align: center;
}
.sidebar-header {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: #fff;
    text-align: center;
}
.content {
    margin-left: 250px; /* サイドバーの幅分マージンを取る */
    padding: 2rem; /* コンテンツエリアのパディング */
    flex-grow: 1; /* 残りのスペースを埋める */
    background-color: #fff; /* コンテンツエリアの背景色 */
    border-top-left-radius: 0.5rem; /* 左上の角を丸める */
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.05); /* 左側に影を追加 */
}

/* レスポンシブ対応: 画面幅が狭い場合 */
@media (max-width: 768px) {
    body {
        flex-direction: column; /* 縦並びにする */
    }
    .sidebar {
        width: 100%; /* 幅を100%に */
        height: auto; /* 高さを自動に */
        position: static; /* 固定を解除 */
        flex-direction: row; /* 横並びにする */
        justify-content: space-around; /* リンクを均等配置 */
        padding: 0.5rem;
        border-bottom: 1px solid #dee2e6;
    }
    .sidebar-header {
        display: none; /* ヘッダーを非表示 */
    }
    .sidebar .nav-link {
        margin-bottom: 0;
        padding: 0.5rem;
        font-size: 0.9rem;
    }
    .sidebar .nav-link i {
        margin-right: 0.25rem;
    }
    .content {
        margin-left: 0; /* マージンをリセット */
        padding: 1rem; /* パディングを小さく */
        border-top-left-radius: 0; /* 角丸をリセット */
        box-shadow: none; /* 影を削除 */
    }
}

/* details/summary のスタイル調整 */
summary {
    cursor: pointer; /* クリック可能であることを示す */
    outline: none; /* フォーカス時のアウトラインを消す (任意) */
}

/* デフォルトのマーカーを非表示にする (Bootstrapのlist-unstyledで対応済みだが念のため) */
summary::-webkit-details-marker {
    display: none;
}
summary::marker { /* Firefox用 */
    display: none;
}

.details-marker {
    transition: transform 0.2s ease-in-out; /* アイコン回転のアニメーション */
}

details[open] > summary .details-marker {
    transform: rotate(180deg); /* 開いたときにアイコンを180度回転 */
}

/* 目立たないリンクのスタイル */
.subtle-link {
    color: #6c757d; /* グレー系の色 */
    text-decoration: none; /* 下線を削除 */
}

.subtle-link:hover {
    color: #007bff; /* ホバー時に青色に */
    text-decoration: underline; /* ホバー時に下線を表示 */
}

/* カードのスタイルをモダンに */
.card {
    border: none; /* デフォルトのボーダーを削除 */
    border-radius: 0.75rem; /* 角を丸く */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08); /* 影を追加 */
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out; /* ホバーエフェクト用 */
}

.card:hover {
    transform: translateY(-5px); /* ホバー時に少し上に移動 */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15); /* ホバー時に影を強調 */
}

.card-body {
    padding: 1.5rem; /* パディングを調整 */
}

/* 画像コンテナのスタイル調整 */
.card .image-container {
    border-top-left-radius: 0.75rem; /* カードの角丸に合わせる */
    border-top-right-radius: 0.75rem; /* カードの角丸に合わせる */
}

/* コンテンツ見出しのスタイル */
.content-heading {
    margin-top: 2rem; /* 上部のマージン */
    margin-bottom: 1.5rem; /* 下部のマージン */
    padding-bottom: 0.5rem; /* 下部のパディング */
    border-bottom: 2px solid #007bff; /* 下線 */
    display: inline-block; /* コンテンツの幅に合わせる */
}

.content-heading h2 {
    margin-bottom: 0; /* h2 のデフォルトマージンをリセット */
    font-size: 1.8rem; /* フォントサイズ調整 */
    color: #343a40; /* 見出しの色 */
}

/* タブのアクティブ状態のスタイル */
.nav-tabs .nav-link.active {
    background-color: #0d6efd; /* Bootstrap Primary Color */
    color: #fff;
    border-color: #0d6efd; /* アクティブなタブのボーダー色も合わせる */
}

/* 非アクティブなタブの枠線 */
.nav-tabs .nav-link:not(.active) {
    border-color: #dee2e6; /* 薄いグレーの枠線 */
}

/* 非アクティブなタブのホバー時のスタイルを調整 (任意) */
.nav-tabs .nav-link:not(.active):hover {
    border-color: #e9ecef #e9ecef #dee2e6; /* Bootstrapのデフォルトに合わせるか、少し調整 */
}
