/* =================================================================
    Linux Academy 専用スタイル
================================================================= */

/* カルーセルコンテナ */
.carousel-container {
    position: relative;
    width: 100%;
}
/* ナビゲーションボタンの初期状態 */
.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10; /* カードより上に配置 */
    
    /* 表示・非表示の切り替え設定 */
    transition: opacity 0.3s ease, visibility 0.3s ease;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    /* 見た目の調整（例） */
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-nav-btn.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* スクロールバーを隠す（ブラウザ互換性） */
#linux-carousel-track::-webkit-scrollbar {
    display: none;
}
#linux-carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth; /* JSのbehavior:smoothと重複してもOK */
    -webkit-overflow-scrolling: touch;
    /* スクロールバー非表示 */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* 難易度バッジ */
.linux-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.8);
    color: #4af626; /* ターミナルグリーン */
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    border: 1px solid #4af626;
    text-transform: uppercase;
    z-index: 2;
}

/* ナビゲーションボタン */
.carousel-nav-btn {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.carousel-nav-btn:hover {
    background: #f8f8f8 !important;
    transform: translateY(-50%) scale(1.1) !important;
    box-shadow: 0 6px 15px rgba(0,0,0,0.15) !important;
}

/* 検証環境タグのリンク */
.env-label {
    transition: background 0.2s;
}
.env-label:hover {
    background: #e1e8ed !important;
    color: #1a1a1a !important;
}

/* 検索エリア関連*/

/* ターミナルコンテナ */
.terminal-container {
    background: #1e1e1e;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 1px solid #333;
    font-family: 'Roboto Mono', monospace;
}

/* 出力エリア */
.terminal-stdout {
    background: #121212;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 4px;
    max-height: 300px;
    overflow-y: auto;
    border-left: 3px solid #4af626;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #ddd;
}

.terminal-line.system-msg {
    color: #888;
    margin-bottom: 10px;
    font-size: 0.8rem;
}

/* 入力行 */
.terminal-input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.terminal-prompt {
    color: #4af626;
    font-weight: bold;
    font-size: 1.2rem;
}

#terminal-query {
    background: transparent;
    border: none;
    color: #fff;
    font-family: inherit;
    font-size: 1.1rem;
    width: 100%;
    outline: none;
}

/* チートシート */
.terminal-cheatsheet {
    margin-top: 15px;
    font-size: 0.75rem;
    color: #666;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.cmd-hint {
    background: #2a2a2a;
    color: #aaa;
    padding: 2px 6px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s;
}

.cmd-hint:hover {
    color: #4af626;
    background: #333;
}

mark {
    background: transparent;
    color: #3498db;
}


/* タグカードのスタイル */
.lab-tag-filter {
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.lab-tag-filter:hover {
    transform: translateY(-3px);
    border-color: #4af626 !important; /* Linuxグリーンの枠線 */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.lab-tag-filter.active {
    background: #f0fff0 !important; /* ほんのり緑 */
    border-color: #4af626 !important;
    border-width: 2px;
}

.lab-tag-filter h4 {
    transition: color 0.2s;
}

.lab-tag-filter:hover h4 {
    color: #4af626 !important;
}




.linux-pagination-list .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s;
}

.linux-pagination-list .page-numbers.current {
    background: #1a1a1a;
    color: #4af626; /* ターミナルカラー */
    border-color: #1a1a1a;
    font-weight: bold;
}

.linux-pagination-list a.page-numbers:hover {
    background: #f0f0f0;
    border-color: #bbb;
}

/* 前後ボタンの調整 */
.linux-pagination-list .prev, .linux-pagination-list .next {
    font-weight: bold;
}


