/* ========================================
   グローバルスタイル
   ======================================== */
:root {
    --color-fatal: #dc2626;
    --color-fatal-bg: #fef2f2;
    --color-error: #ea580c;
    --color-error-bg: #fff7ed;
    --color-deprecated: #d97706;
    --color-deprecated-bg: #fffbeb;
    --color-warning: #eab308;
    --color-warning-bg: #fefce8;
    --color-notice: #3b82f6;
    --color-notice-bg: #eff6ff;
    
    --color-primary: #2563eb;
    --color-secondary: #64748b;
    --color-bg: #f8fafc;
    --color-surface: #ffffff;
    --color-border: #e2e8f0;
    --color-text: #1e293b;
    --color-text-light: #64748b;
    
    --sidebar-width: 260px;
    
    /* アニメーション時間の定義 */
    --duration-page-transition: 0.3s;        /* ページ遷移（フェードアウト/イン） */
    --duration-page-fade-delay: 0.05s;       /* フェードイン開始待ち */
    --duration-card-shrink-expand: 600ms;    /* TOPカード：縮小→拡大フェード */
    --duration-card-shrink: 350ms;           /* TOPカード：非選択カード縮小 */
    --duration-search-panel: 500ms;          /* 検索パネルフェードイン */
    --duration-content-fade-out: 0.2s;       /* コンテンツフェードアウト */
    --duration-content-fade-in: 0.3s;        /* コンテンツフェードイン */
    --duration-card-rise: 400ms;             /* カード上昇フェードイン */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.5;
    color: var(--color-text);
    background-color: var(--color-bg);
}

code, pre {
    font-family: 'Fira Code', monospace;
}

/* ========================================
   ヘッダー（削除）
   ======================================== */

/* ========================================
   メインコンテナ
   ======================================== */
.main-container {
    display: flex;
    max-width: 1600px;
    margin: 0 auto;
    min-height: 100vh;
    background-color: var(--color-bg);
}

/* ========================================
   サイドバー
   ======================================== */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border-right: 1px solid #334155;
    border-radius: 0;
    padding: 1rem;
    margin: 0;
    overflow-y: auto;
    position: sticky;
    top: 0;
    height: 100vh;
    max-height: 100vh;
    align-self: flex-start;
    transition: transform 0.3s ease;
    color: #e2e8f0;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
    z-index: 10;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.sidebar-header h2 {
    font-size: 1.25rem;
    color: var(--color-text);
    flex: 1;
}

.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text);
    margin-right: 1rem;
}

/* TOPページリンク */
.top-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.85rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: transform 0.2s, box-shadow 0.2s;
    font-weight: 500;
}

.top-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.top-link i {
    font-size: 1rem;
}

.top-link span {
    font-size: 0.9rem;
}

/* バージョンナビゲーション */
.version-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.version-group {
    border-radius: 6px;
    overflow: hidden;
}

.version-group h3 {
    font-size: 0.85rem;
    color: #f1f5f9;
    font-weight: 600;
    margin-bottom: 0;
    padding: 0.6rem 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.version-group h3:hover {
    background: rgba(102, 126, 234, 0.15);
    color: #ffffff;
}

.version-group h3::after {
    content: '▼';
    font-size: 0.7rem;
    transition: transform 0.3s ease;
    opacity: 0.7;
}

.version-group.collapsed h3::after {
    transform: rotate(-90deg);
}

.version-group-links {
    max-height: 500px;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
    opacity: 1;
    padding-top: 0.25rem;
}

.version-group.collapsed .version-group-links {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    transition-delay: 0.3s;
}

.version-group:hover.collapsed .version-group-links {
    max-height: 500px;
    opacity: 1;
    padding-top: 0.25rem;
    transition-delay: 0s;
}

.version-group:hover.collapsed h3::after {
    transform: rotate(0deg);
}

.nav-link {
    display: block;
    padding: 0.55rem 0.75rem;
    margin-bottom: 0.25rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    text-decoration: none;
    color: #cbd5e1;
    transition: all 0.2s;
    border-left: 3px solid transparent;
    font-size: 0.9rem;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-left-color: #667eea;
    transform: translateX(3px);
    color: #e2e8f0;
}

.nav-link.active {
    background-color: rgba(102, 126, 234, 0.2);
    border-left-color: #667eea;
    color: #e2e8f0;
    font-weight: 600;
}

.preview-badge,
.major-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-left: 0.5rem;
    font-weight: 600;
}

.preview-badge {
    background: rgba(234, 179, 8, 0.2);
    color: #fbbf24;
}

.major-badge {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

/* サイドバーフッター */
.sidebar-footer {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-footer-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    transition: background 0.2s;
}

.sidebar-footer-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.sidebar-footer-item:last-child {
    margin-bottom: 0;
}

.sidebar-footer-item i {
    font-size: 1rem;
    color: #94a3b8;
    margin-top: 0.1rem;
}

.sidebar-footer-content {
    flex: 1;
}

.sidebar-footer-label {
    font-size: 0.7rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.15rem;
    font-weight: 500;
}

.sidebar-footer-value {
    font-size: 0.85rem;
    color: #e2e8f0;
    font-weight: 500;
}

.sidebar-footer-subvalue {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 0.15rem;
    font-weight: 400;
}

.sidebar-footer-subvalue a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

.sidebar-footer-subvalue a:hover {
    color: #60a5fa;
    text-decoration: underline;
}

/* ========================================
   全文検索セクション
   ======================================== */
.global-search-box {
    margin-top: 0;
}

.search-input-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    border: 2px solid var(--color-border);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input-container:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.search-input-container > i.fa-search {
    color: var(--color-text-light);
    font-size: 1.2rem;
}

.search-input-container input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--color-text);
    background: transparent;
}

.search-input-container input::placeholder {
    color: var(--color-text-light);
    opacity: 0.7;
}

.search-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

.search-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.search-button:active {
    transform: translateY(0);
}

/* 検索履歴（デフォルトは縦並び、search-contentクラス内では横並びに上書き） */
.search-history {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--color-bg);
    border-radius: 8px;
    border: 1px solid var(--color-border);
}

.search-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-border);
}

.search-history-label {
    font-size: 0.9rem;
    color: var(--color-text);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-history-label i {
    color: var(--color-text-light);
}

.search-history-clear {
    background: none;
    border: none;
    color: var(--color-text-light);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.search-history-clear:hover {
    background: var(--color-error-bg);
    color: var(--color-error);
}

.search-history-items {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.search-history-item {
    background: white;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    padding: 0.6rem 0.75rem;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-history-item:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    transform: translateX(4px);
}

.search-history-item i {
    opacity: 0.6;
    font-size: 0.85rem;
}

/* サイドバーセクションヘッダー */
.sidebar-section-header {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-border);
}

.sidebar-section-header h2 {
    font-size: 1rem;
    color: var(--color-text);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* バージョンナビゲーション */
.version-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.version-group {
    border-radius: 6px;
    overflow: hidden;
}

.version-group h3 {
    font-size: 0.85rem;
    color: #f1f5f9;
    font-weight: 600;
    margin-bottom: 0;
    padding: 0.6rem 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.version-group h3:hover {
    background: rgba(102, 126, 234, 0.15);
    color: #ffffff;
}

.version-group h3::after {
    content: '▼';
    font-size: 0.7rem;
    transition: transform 0.3s ease;
    opacity: 0.7;
}

.version-group.collapsed h3::after {
    transform: rotate(-90deg);
}

.version-group-links {
    max-height: 500px;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
    opacity: 1;
    padding-top: 0.25rem;
}

.version-group.collapsed .version-group-links {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    /* 閉じる時のみ遅延を追加（カーソル移動の猶予時間） */
    transition-delay: 0.3s;
}

/* ホバーでアコーディオンを開く */
.version-group:hover.collapsed .version-group-links {
    max-height: 500px;
    opacity: 1;
    padding-top: 0.25rem;
    /* 開く時は遅延なし */
    transition-delay: 0s;
}

.version-group:hover.collapsed h3::after {
    transform: rotate(0deg);
}

.nav-link {
    display: block;
    padding: 0.55rem 0.75rem;
    margin-bottom: 0.25rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    text-decoration: none;
    color: #cbd5e1;
    transition: all 0.2s;
    border-left: 3px solid transparent;
    font-size: 0.9rem;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-left-color: #667eea;
    transform: translateX(3px);
    color: #e2e8f0;
}

.nav-link.active {
    background-color: rgba(102, 126, 234, 0.2);
    border-left-color: #667eea;
    font-weight: 600;
    color: #a5b4fc;
}

.major-badge {
    font-size: 0.75em;
    font-weight: 700;
    color: var(--color-deprecated);
    opacity: 0.85;
    margin-left: 0.25rem;
}

.preview-badge {
    font-size: 0.75em;
    font-weight: 700;
    color: var(--color-deprecated);
    opacity: 0.85;
    margin-left: 0.25rem;
}

/* ========================================
   メインコンテンツ
   ======================================== */
.content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    position: relative;
    /* 薄い灰色から濃い灰色のグラデーション背景 */
    background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
}

/* ページトランジション */
#content-area {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity var(--duration-page-transition) ease-out, 
                transform var(--duration-page-transition) ease-out;
    position: relative;
    z-index: 1;
}

#content-area.transitioning-out {
    opacity: 0;
    transform: translateY(15px);
}

#content-area.visible {
    opacity: 1;
    transform: translateY(0);
}

.welcome-page {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity var(--duration-page-transition) ease-out, 
                transform var(--duration-page-transition) ease-out;
}

.welcome-page.transitioning-out {
    opacity: 0;
    transform: translateY(15px);
}

.welcome-page.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 移行パスボタン */
.migration-path-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-weight: 500;
    font-size: 1rem;
    width: 100%;
}

.migration-path-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.migration-path-btn i {
    font-size: 1.2rem;
}

/* ========================================
   移行パスビュー
   ======================================== */
.migration-path-view {
    max-width: 1000px;
    margin: 0 auto;
    animation: fadeIn 0.3s ease-out;
}

.page-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.migration-path-selector {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    margin-bottom: 2rem;
}

.selector-row {
    display: flex;
    align-items: flex-end;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.selector-group {
    flex: 1;
}

.selector-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.version-select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text);
    background: white;
    cursor: pointer;
    transition: border-color 0.3s;
}

.version-select:focus {
    outline: none;
    border-color: var(--color-primary);
}

.selector-arrow {
    font-size: 1.5rem;
    color: var(--color-primary);
    padding-bottom: 0.5rem;
}

.calculate-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, #1e40af 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

.migration-summary {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--color-primary);
    margin-bottom: 2rem;
}

.migration-summary h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.version-step {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--color-primary);
}

.version-step h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.step-badge {
    background: var(--color-primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 共通フェードインクラス */
.fade-in-content {
    animation: fadeIn 0.3s ease-out;
}

/* フェードアウト用（削除前） */
.fade-out-content {
    animation: fadeOut 0.2s ease-out;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* ========================================
   TOPページ（ウェルカムページ）
   ======================================== */
.welcome-page {
    max-width: 900px;
    margin: 0 auto;
}

.welcome-hero {
    text-align: center;
    padding: 3rem 0 2rem;
    border-bottom: 2px solid var(--color-border);
    margin-bottom: 2rem;
}

.welcome-title {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.welcome-title i {
    margin-right: 0.75rem;
    color: #667eea;
}

.welcome-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-light);
}

.welcome-section {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    padding: 2.5rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
    border: 1px solid #e0e7ff;
}

.welcome-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.welcome-section h2 i {
    color: #667eea;
    font-size: 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-card {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    opacity: 0.9;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.step-card {
    padding: 1.5rem;
    background: var(--color-bg);
    border-radius: 8px;
    border-left: 4px solid var(--color-primary);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    margin-bottom: 1rem;
}

.step-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.step-card p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

.legend-section {
    background: var(--color-bg);
}

.legend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.legend-group {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(102, 126, 234, 0.08);
    border: 1px solid #e0e7ff;
}

.legend-group:last-child {
    margin-bottom: 0;
}

.legend-group h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e0e7ff;
}

.legend-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}

.legend-item:hover {
    background: #f0f4ff;
    border-color: #c7d2fe;
    transform: translateX(4px);
}

.legend-item span:last-child {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
}

.cta-section {
    text-align: center;
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    border: 2px solid var(--color-primary);
}

.cta-section h2 {
    justify-content: center;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 1rem;
}

.cta-button.primary {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
}

.cta-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.cta-button.secondary {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    color: white;
}

.cta-button.secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}

/* 免責事項セクション */
.disclaimer-section {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border: 2px solid #fb923c;
    box-shadow: 0 2px 8px rgba(251, 146, 60, 0.15);
}

.disclaimer-section h2 {
    color: #9a3412;
    justify-content: center;
    font-size: 1.5rem;
}

.disclaimer-section h2 i {
    color: #ea580c;
}

.disclaimer-section p {
    color: #7c2d12;
    line-height: 1.9;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.disclaimer-section p:last-child {
    margin-bottom: 0;
}

.disclaimer-section a {
    color: #ea580c;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.2s;
}

.disclaimer-section a:hover {
    color: #c2410c;
}
}

.disclaimer-section a {
    color: #1e40af;
    text-decoration: underline;
    font-weight: 600;
}

.disclaimer-section a:hover {
    color: #1e3a8a;
}

@media (max-width: 768px) {
    .welcome-hero {
        padding: 2rem 0 1.5rem;
    }
    
    .welcome-title {
        font-size: 1.75rem;
    }
    
    .welcome-subtitle {
        font-size: 1rem;
    }
    
    .stats-grid,
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-button {
        width: 100%;
        justify-content: center;
    }
}

/* コードサンプル一括トグルボタン - 非表示（使用しない） */
.code-toggle-all {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 100;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    display: none !important; /* 強制非表示 */
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

/* コメントアウト: 使用しないため常に非表示
.code-toggle-all.visible {
    display: flex;
}
*/

.code-toggle-all:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.5);
}

.code-toggle-all i {
    font-size: 0.9rem;
}

.code-toggle-all .toggle-text {
    font-size: 0.85rem;
}

.intro-section {
    background-color: var(--color-surface);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.intro-section h2 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--color-primary);
}

.intro-section p {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

/* 凡例 */
.legend {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.legend h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.legend-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.75rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

/* バージョンセクション */
.version-section {
    background-color: var(--color-surface);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.version-section.hidden {
    display: none;
}

.version-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.version-title {
    font-size: 1.75rem;
    margin: 0;
    color: var(--color-primary);
}

/* 公式移行ガイドリンク（インライン） */
.migration-link-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(59, 130, 246, 0.3);
}

.migration-link-inline:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
}

.migration-link-inline i {
    font-size: 0.75rem;
}

.version-meta {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-border);
    flex-wrap: wrap;
}

.version-meta-row2 {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-top: 0.75rem;
    margin-bottom: 1.5rem;
}

.meta-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.75rem;
    background-color: var(--color-bg);
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--color-text-light);
}

.meta-badge i {
    margin-right: 0.4rem;
}

.meta-badge.migration-link {
    background-color: #dbeafe;
    color: #1e40af;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.meta-badge.migration-link:hover {
    background-color: #bfdbfe;
    transform: translateY(-1px);
}

/* 重要度別件数バッジ */
.severity-counts {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.severity-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 2px solid;
    background-color: white;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
    font-size: 0.85rem;
}

.severity-count-badge:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.severity-count-badge.fatal {
    border-color: var(--color-fatal);
    color: var(--color-fatal);
}

.severity-count-badge.fatal:hover {
    background-color: var(--color-fatal-bg);
}

.severity-count-badge.error {
    border-color: var(--color-error);
    color: var(--color-error);
}

.severity-count-badge.error:hover {
    background-color: var(--color-error-bg);
}

.severity-count-badge.deprecated {
    border-color: var(--color-deprecated);
    color: var(--color-deprecated);
}

.severity-count-badge.deprecated:hover {
    background-color: var(--color-deprecated-bg);
}

.severity-count-badge.warning {
    border-color: var(--color-warning);
    color: var(--color-warning);
}

.severity-count-badge.warning:hover {
    background-color: var(--color-warning-bg);
}

.severity-count-badge.notice {
    border-color: var(--color-notice);
    color: var(--color-notice);
}

.severity-count-badge.notice:hover {
    background-color: var(--color-notice-bg);
}

/* 重要度別件数（テキスト表示） */
.severity-count-text {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    background-color: transparent;
}

.severity-count-text:hover {
    transform: translateY(-1px);
}

.severity-count-text.fatal {
    color: var(--color-fatal);
    background-color: var(--color-fatal-bg);
}

.severity-count-text.fatal:hover {
    background-color: #fecaca;
}

.severity-count-text.error {
    color: var(--color-error);
    background-color: var(--color-error-bg);
}

.severity-count-text.error:hover {
    background-color: #fed7aa;
}

.severity-count-text.deprecated {
    color: var(--color-deprecated);
    background-color: var(--color-deprecated-bg);
}

.severity-count-text.deprecated:hover {
    background-color: #fde68a;
}

.severity-count-text.warning {
    color: var(--color-warning);
    background-color: var(--color-warning-bg);
}

.severity-count-text.warning:hover {
    background-color: #fef08a;
}

.severity-count-text.notice {
    color: var(--color-notice);
    background-color: var(--color-notice-bg);
}

.severity-count-text.notice:hover {
    background-color: #dbeafe;
}

/* active状態（選択中） */
.severity-count-text.active,
.category-count-text.active,
.tag-count-text.active,
.importance-count-text.active {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
    transform: translateY(-1px);
}

/* カテゴリカウントテキスト */
.category-count-text {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    background-color: #f3f4f6;
    color: #374151;
}

.category-count-text:hover {
    background-color: #e5e7eb;
    transform: translateY(-1px);
}

/* タグカウントテキスト（拡張機能） */
.tag-count-text {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    background-color: #fef3c7;
    color: #92400e;
}

.tag-count-text:hover {
    background-color: #fde68a;
    transform: translateY(-1px);
}

/* 重要度カウントテキスト */
.importance-count-text {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    background-color: #f3f4f6;
    color: #374151;
}

.importance-count-text:hover {
    background-color: #e5e7eb;
    transform: translateY(-1px);
}

.importance-count-text[data-importance="high"] {
    background-color: #fee2e2;
    color: #991b1b;
}

.importance-count-text[data-importance="high"]:hover {
    background-color: #fecaca;
}

.importance-count-text[data-importance="medium"] {
    background-color: #fef3c7;
    color: #92400e;
}

.importance-count-text[data-importance="medium"]:hover {
    background-color: #fde68a;
}

.importance-count-text[data-importance="low"] {
    background-color: #dbeafe;
    color: #1e40af;
}

.importance-count-text[data-importance="low"]:hover {
    background-color: #bfdbfe;
}

.importance-count-text[data-importance="all"] {
    background-color: #e0e7ff;
    color: #3730a3;
}

.importance-count-text[data-importance="all"]:hover {
    background-color: #c7d2fe;
}

.importance-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    margin-right: 0.5rem;
}





/* 統合フィルタドロップダウン */
.unified-filter-dropdown {
    position: relative;
    display: inline-block;
    z-index: 60000;
}

.unified-filter-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #d1d5db;
    background-color: #f3f4f6;
    color: #374151;
}

.unified-filter-trigger:hover {
    background-color: #e5e7eb;
    transform: translateY(-1px);
}

.unified-filter-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* 統合フィルタメニュー - absoluteでボタン直下、センタリング */
.unified-filter-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 650px;
    max-width: 90vw;
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    padding: 1rem;
    z-index: 999999;
    display: none;
}

.unified-filter-dropdown:hover .unified-filter-menu {
    display: block;
}

/* 3カラムレイアウト */
.filter-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.filter-column {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* 拡張機能カラム（3列目）のみスクロール可能にする */
.filter-column:nth-child(3) {
    max-height: 50vh;
    overflow-y: auto;
    padding-right: 0.5rem;
}

/* スクロールバーのスタイリング */
.filter-column:nth-child(3)::-webkit-scrollbar {
    width: 8px;
}

.filter-column:nth-child(3)::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.filter-column:nth-child(3)::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.filter-column:nth-child(3)::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.filter-column-header {
    font-size: 0.9rem;
    font-weight: 700;
    color: #374151;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 0.25rem;
}

/* 拡張機能カラムのヘッダーは固定（スクロールしない） */
.filter-column:nth-child(3) .filter-column-header {
    position: sticky;
    top: 0;
    background: white;
    z-index: 1;
    margin-top: -0.5rem;
    padding-top: 0.5rem;
}

/* カテゴリボタン */
.unified-filter-menu .category-count-text {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
    border: 1px solid #e5e7eb;
    padding: 0.5rem;
    font-size: 0.85rem;
}

.unified-filter-menu .category-count-text:hover {
    background-color: #f3f4f6;
    border-color: #9ca3af;
}

.unified-filter-menu .category-count-text.active {
    background-color: #6366f1;
    color: white;
    border-color: #4f46e5;
}

/* 重要度ボタンのスタイル */
.unified-filter-menu .importance-count-text {
    width: 100%;
    text-align: left;
    border: 1px solid #e5e7eb;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    background-color: white;
}

.importance-title {
    font-size: 0.9rem;
    font-weight: 600;
}

.importance-desc {
    font-size: 0.75rem;
    color: #6b7280;
    line-height: 1.3;
}

.unified-filter-menu .importance-count-text:hover {
    background-color: #f9fafb;
    border-color: #9ca3af;
}

.unified-filter-menu .importance-count-text.active {
    background-color: #6366f1;
    border-color: #4f46e5;
}

.unified-filter-menu .importance-count-text.active .importance-title {
    color: white;
}

.unified-filter-menu .importance-count-text.active .importance-desc {
    color: #e0e7ff;
}

/* 拡張機能ボタンのスタイル */
.unified-filter-menu .tag-count-text {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
    border: 1px solid #e5e7eb;
    padding: 0.5rem;
    font-size: 0.85rem;
    background-color: white;
}

.unified-filter-menu .tag-count-text:hover {
    background-color: #f3f4f6;
    border-color: #9ca3af;
}

.unified-filter-menu .tag-count-text.active {
    background-color: #6366f1;
    color: white;
    border-color: #4f46e5;
}



.dropdown-arrow {
    font-size: 0.8rem;
    transition: transform 0.2s;
}

/* トグルボタンセパレータ */
.toggle-separator {
    color: var(--color-text-light);
    font-size: 1.2rem;
    margin: 0 0.25rem;
    opacity: 0.4;
    user-select: none;
}

/* ハイライトトグルボタン */
/* 追加機能・新機能セクション */
.version-additions-section {
    margin-bottom: 2rem;
}

.version-additions-section h3 {
    font-size: 1.1rem;
    margin: 0 0 0.75rem 0;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.version-additions-section h3 i {
    color: var(--color-text);
}

.additions-summary {
    margin: 0;
    padding: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    border-radius: 8px;
}

.highlights-details-toggle {
    display: inline;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: normal;
    color: var(--color-primary);
    text-decoration: underline;
    padding: 0;
    margin-left: 0.5rem;
    vertical-align: baseline;
}

.highlights-details-toggle:hover {
    color: #1e40af;
    text-decoration: underline;
}

.highlights-details-toggle .toggle-icon {
    transition: transform 0.3s;
    font-size: 0.75rem;
}

.highlights-details-content {
    overflow: hidden;
    transition: max-height 0.4s ease-out, opacity 0.3s ease-out, margin-top 0.3s ease-out;
}

.highlights-details-content.collapsed {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
}

.highlights-details-content.expanded {
    max-height: 2000px;
    opacity: 1;
    margin-top: 1rem;
}

/* 変更点セクション */
.version-changes-section {
    margin-top: 2rem;
}

.version-changes-section > h3 {
    font-size: 1.1rem;
    margin: 0 0 1rem 0;
    padding-bottom: 0.75rem;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--color-border);
}

.highlights-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.highlights-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
    color: var(--color-text);
}

.highlights-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
}

/* 削除通知 */
.removal-notice {
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    background-color: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 6px;
    color: #991b1b;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.removal-notice i {
    color: var(--color-fatal);
}

/* 変更アイテム */
.change-item {
    margin-bottom: 1rem;
    padding: 1rem;
    background-color: var(--color-bg);
    border-radius: 8px;
    border-left: 4px solid var(--color-border);
}

.change-item.hidden {
    display: none;
}

.change-item.fatal {
    background-color: var(--color-fatal-bg);
    border-left-color: var(--color-fatal);
}

.change-item.error {
    background-color: var(--color-error-bg);
    border-left-color: var(--color-error);
}

.change-item.deprecated {
    background-color: var(--color-deprecated-bg);
    border-left-color: var(--color-deprecated);
}

.change-item.warning {
    background-color: var(--color-warning-bg);
    border-left-color: var(--color-warning);
}

.change-item.notice {
    background-color: var(--color-notice-bg);
    border-left-color: var(--color-notice);
}

/* バージョンバッジ（インライン表示） */
.version-badge-inline {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.6rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 0.5rem;
    white-space: nowrap;
}

/* 新レイアウト: ヘッダー行（バージョンバッジ + 重要度バッジ + コードボタン） */
.change-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

/* 左側：バッジ群 */
.change-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    flex: 1;
    align-items: center;
}

/* タイトル */
.change-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

/* カテゴリバッジ */
.category-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.75rem;
    background: #e5e7eb;
    color: #374151;
    border: 1px solid #d1d5db;
    white-space: nowrap;
}

/* 重要度バッジ（大きめ） */
.severity-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
}

.severity-badge.fatal {
    background-color: var(--color-fatal);
    color: white;
}

.severity-badge.error {
    background-color: var(--color-error);
    color: white;
}

.severity-badge.deprecated {
    background-color: var(--color-deprecated);
    color: white;
}

.severity-badge.warning {
    background-color: var(--color-warning);
    color: white;
}

.severity-badge.notice {
    background-color: var(--color-notice);
    color: white;
}

.change-description {
    margin-bottom: 0.75rem;
    line-height: 1.6;
    color: var(--color-text);
    font-size: 0.9rem;
}

/* コード例 */
.code-example {
    margin-top: 0.75rem;
    clear: both;
}

/* 右側：コードトグルボタン */
.code-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    color: #6b7280;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.code-toggle:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #374151;
}

.code-toggle.active {
    background: #dbeafe;
    border-color: #60a5fa;
    color: #1e40af;
}

.code-toggle .fa-code {
    font-size: 0.85rem;
}

.code-toggle .toggle-icon {
    font-size: 0.7rem;
    transition: transform 0.3s;
}

.code-toggle.active .toggle-icon {
    transform: rotate(180deg);
}

.code-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    clear: both;
}

.code-content.active {
    max-height: 2000px;
}

.code-content pre {
    margin: 0;
    padding: 0;
    background-color: #2d2d2d;
    border-radius: 6px;
    overflow-x: auto;
    font-size: 0.8rem;
    line-height: 1.5;
}

.code-content pre[class*="language-"] {
    margin: 0;
    padding: 0.75rem;
}

.code-content code {
    display: block;
    font-size: 0.8rem;
}

/* Prism.js カスタマイズ */
pre[class*="language-"].line-numbers {
    position: relative;
    padding-left: 3.5em;
    counter-reset: linenumber;
}

pre[class*="language-"].line-numbers > code {
    position: relative;
    white-space: inherit;
}

.line-numbers .line-numbers-rows {
    position: absolute;
    pointer-events: none;
    top: 0;
    font-size: 100%;
    left: -3.8em;
    width: 3em;
    letter-spacing: -1px;
    border-right: 1px solid #444;
    user-select: none;
}

.line-numbers-rows > span {
    display: block;
    counter-increment: linenumber;
}

.line-numbers-rows > span:before {
    content: counter(linenumber);
    color: #666;
    display: block;
    padding-right: 0.8em;
    text-align: right;
}

/* ========================================
   その他の互換性のない変更セクション
   ======================================== */
.other-changes-section {
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

.other-changes-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.other-changes-toggle:hover {
    background: linear-gradient(135deg, #fde68a 0%, #fcd34d 100%);
    border-color: #d97706;
}

.other-changes-toggle-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.other-changes-toggle h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #92400e;
    margin: 0;
}

.other-changes-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.75rem;
    height: 1.75rem;
    padding: 0 0.5rem;
    background: #f59e0b;
    color: white;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 700;
}

.other-changes-toggle-icon {
    font-size: 0.85rem;
    color: #92400e;
    transition: transform 0.3s;
}

.other-changes-toggle.active .other-changes-toggle-icon {
    transform: rotate(90deg);
}

.other-changes-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, opacity 0.3s ease-out, margin-top 0.4s ease-out;
    margin-top: 0;
}

.other-changes-content.active {
    max-height: 3000px;
    opacity: 1;
    margin-top: 1rem;
}

.other-changes-list {
    display: grid;
    gap: 0.75rem;
}

.other-change-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background-color: var(--color-bg);
    border-radius: 6px;
    border-left: 3px solid var(--color-border);
    transition: all 0.2s;
    flex-wrap: wrap;
    align-items: center;
}

.other-change-item .version-badge-inline {
    order: -1;
    margin-right: 0;
}

.other-change-item:hover {
    background-color: #f1f5f9;
    transform: translateX(2px);
}

.other-change-item.fatal {
    background-color: var(--color-fatal-bg);
    border-left-color: var(--color-fatal);
}

.other-change-item.error {
    background-color: var(--color-error-bg);
    border-left-color: var(--color-error);
}

.other-change-item.deprecated {
    background-color: var(--color-deprecated-bg);
    border-left-color: var(--color-deprecated);
}

.other-change-item.warning {
    background-color: var(--color-warning-bg);
    border-left-color: var(--color-warning);
}

.other-change-item.notice {
    background-color: var(--color-notice-bg);
    border-left-color: var(--color-notice);
}

.other-change-severity {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 6px;
    font-size: 1rem;
}

.other-change-severity.fatal {
    background-color: var(--color-fatal);
    color: white;
}

.other-change-severity.error {
    background-color: var(--color-error);
    color: white;
}

.other-change-severity.deprecated {
    background-color: var(--color-deprecated);
    color: white;
}

.other-change-severity.warning {
    background-color: var(--color-warning);
    color: white;
}

.other-change-severity.notice {
    background-color: var(--color-notice);
    color: white;
}

.other-change-content-wrapper {
    flex: 1;
    min-width: 0;
}

.other-change-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.35rem;
    line-height: 1.4;
}

.other-change-description {
    font-size: 0.85rem;
    color: var(--color-text-light);
    line-height: 1.5;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .other-changes-toggle {
        padding: 0.875rem 1rem;
    }
    
    .other-changes-toggle h3 {
        font-size: 0.9rem;
    }
    
    .other-change-item {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .other-change-severity {
        align-self: flex-start;
    }
}

/* ========================================
   フッター
   ======================================== */
.footer {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    border-top: 2px solid #e0e7ff;
    padding: 2rem;
    margin-top: 4rem;
    border-radius: 12px;
    text-align: center;
}

.footer-content {
    color: #64748b;
    font-size: 0.9rem;
}

.footer-content p {
    margin: 0;
    font-weight: 500;
}

/* ========================================
   レスポンシブデザイン
   ======================================== */
@media (max-width: 1024px) {
    .sidebar {
        width: 280px;
    }
}

@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: fixed;
        border-radius: 0;
        margin: 0;
        top: 0;
        left: 0;
        z-index: 1000;
        max-height: 100vh;
        transform: translateY(-100%);
        box-shadow: none;
        border-bottom: 1px solid var(--color-border);
    }
    
    .sidebar.active {
        transform: translateY(0);
    }
    
    .sidebar-toggle {
        display: block;
    }
    
    .content {
        padding: 1rem;
    }
    
    .version-title {
        font-size: 1.5rem;
    }
    
    .legend-items {
        grid-template-columns: 1fr;
    }
    
    /* 変更アイテムのレスポンシブ */
    .change-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .change-badges {
        width: 100%;
    }
    
    .code-toggle {
        align-self: flex-end;
    }
}

/* ========================================
   スクロールバーのカスタマイズ
   ======================================== */
.sidebar::-webkit-scrollbar,
.content::-webkit-scrollbar {
    width: 10px;
}

.sidebar::-webkit-scrollbar-track {
    background: #f8fafc;
    border-radius: 10px;
    margin: 0.5rem 0;
}

.content::-webkit-scrollbar-track {
    background: var(--color-bg);
}

.sidebar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
    border: 2px solid #f8fafc;
}

.content::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.content::-webkit-scrollbar-thumb:hover {
    background: var(--color-secondary);
}

/* ========================================
   ユーティリティ
   ======================================== */
.highlight {
    background-color: #fef08a;
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
}

/* ========================================
   移行結果表示（コンテンツエリア用）
   ======================================== */
.migration-summary {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-left: 4px solid var(--color-primary);
    border-radius: 8px;
}

.summary-stats {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-top: 1rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-top: 0.25rem;
}

.migration-path-steps {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--color-bg);
    border-radius: 8px;
}

.migration-path-steps h3 {
    margin-bottom: 1rem;
    color: var(--color-text);
}

.path-display {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.path-step {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 500px;
    padding: 0.75rem 1rem;
    background-color: var(--color-surface);
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.path-version {
    font-weight: 600;
    color: var(--color-primary);
}

.path-count {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

.path-arrow {
    color: var(--color-primary);
    font-size: 1.25rem;
}

.migration-changes-list {
    margin-top: 2rem;
}

/* セクションタイトル（直下の<h3>のみ）に罫線 */
.migration-changes-list > h3 {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-border);
}
