/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* ダークモード色 */
    --bg-primary: #212129;
    --bg-secondary: #2d2d3c;
    --bg-tertiary: #3a3a4a;
    --bg-quaternary: #2a2a35;
    --bg-card: #2d2d3c;
    --bg-input: #1a1a21;
    --bg-sidebar: #212129;
    --bg-header: #212129;
    
    --text-primary: #ffffff;
    --text-secondary: #8fa4d3;
    --text-tertiary: #6680c7;
    --text-quaternary: #bbdeff;
    --text-muted: #747482;
    
    --border-primary: #3a3a4a;
    --border-secondary: #4a4a5a;
    --border-tertiary: #747482;
    
    --accent-primary: #605bff;
    --accent-secondary: #7a8ef3;
    --accent-tertiary: #70a2ff;
    
    --shadow-light: 0px 0px 20px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0px 4px 25px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 20px 40px rgba(0, 0, 0, 0.1);
    
    /* グラデーション */
    --gradient-primary: linear-gradient(135deg, #605bff, #8b86ff);
    --gradient-secondary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-accent: linear-gradient(135deg, #667eea, #764ba2);
}

/* ライトモード色 */
html.light-mode,
body.light-mode {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-quaternary: #e2e8f0;
    --bg-card: #edeffa;
    --bg-input: #ffffff;
    --bg-sidebar: #f8fafc;
    --bg-header: #ffffff;
    
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-tertiary: #64748b;
    --text-quaternary: #1e40af;
    --text-muted: #94a3b8;
    
    --border-primary: #e2e8f0;
    --border-secondary: #cbd5e1;
    --border-tertiary: #515a66;
    
    --accent-primary: #2563eb;
    --accent-secondary: #3b82f6;
    --accent-tertiary: #1d4ed8;
    
    --shadow-light: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-heavy: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    /* グラデーション */
    --gradient-primary: linear-gradient(135deg, #2563eb, #3b82f6);
    --gradient-secondary: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    --gradient-accent: linear-gradient(135deg, #2563eb, #1e40af);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.app-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
    position: relative;
}

/* Sidebar Styles */
.sidebar {
    width: 250px;
    padding: 20px;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    z-index: 10;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: background-color 0.3s ease;
    background-color: var(--bg-sidebar);
}

/* Logo and App Name Header */
.sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-shrink: 0;
    margin-top: 12px;
}

.logo {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
}

.logo-image {
    width: 100%;
    height: auto;
    max-width: 150px;
    object-fit: contain;
}

/* ロゴの表示切り替え - デフォルトでダークモード */
.logo-light {
    display: none !important;
}

.logo-dark {
    display: block !important;
}

/* ライトモード時のロゴ切り替え */
body.light-mode .logo-light {
    display: block !important;
}

body.light-mode .logo-dark {
    display: none !important;
}

.app-name {
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: var(--text-primary);
    letter-spacing: 0.16px;
}

/* Home Button */
.home-button-container {
    padding: 0 20px;
    margin-top: 10px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.home-button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px;
    backdrop-filter: blur(10px);
    border: 3px solid #dcdcdc;
    border-radius: 10px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    width: fit-content;
}

.home-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        rgba(59, 130, 246, 0.6), 
        rgba(30, 64, 175, 0.8), 
        rgba(37, 99, 235, 0.6));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.home-button:hover::before {
    transform: scaleX(1);
}

.home-button:hover {
    transform: translateY(-2px);
    border-color: rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.15) 0%, 
        rgba(30, 64, 175, 0.20) 50%, 
        rgba(37, 99, 235, 0.15) 100%);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.2);
}

.home-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.home-button:hover .home-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 2px 4px rgba(59, 130, 246, 0.3));
}

.home-text {
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
}

.home-button:hover .home-text {
    color: rgba(59, 130, 246, 0.9);
}

/* Navigation area - scrollable */
.sidebar-nav-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 8px;
    margin-right: -8px;
    min-height: 0;
    max-height: calc(100vh - 140px);
}

/* Sidebar scrollbar styling */
.sidebar-nav-container::-webkit-scrollbar {
    width: 8px;
}

.sidebar-nav-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin: 4px 0;
}

.sidebar-nav-container::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(96, 91, 255, 0.6), rgba(96, 91, 255, 0.8));
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-nav-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(96, 91, 255, 0.8), rgba(96, 91, 255, 1));
    border-color: rgba(255, 255, 255, 0.2);
}

.sidebar-nav-container::-webkit-scrollbar-thumb:active {
    background: linear-gradient(180deg, rgba(96, 91, 255, 0.9), rgba(96, 91, 255, 1));
}

/* ライトモード用のサイドバースクロールバー */
body.light-mode .sidebar-nav-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

body.light-mode .sidebar-nav-container::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.6), rgba(37, 99, 235, 0.8));
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-mode .sidebar-nav-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.8), rgba(37, 99, 235, 1));
    border-color: rgba(0, 0, 0, 0.15);
}

body.light-mode .sidebar-nav-container::-webkit-scrollbar-thumb:active {
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.9), rgba(37, 99, 235, 1));
}

/* Firefox用のサイドバースクロールバー */
.sidebar-nav-container {
    scrollbar-width: thin;
    scrollbar-color: rgba(171, 171, 171, 0.7);
}

/* Firefox用のライトモードスクロールバー */
body.light-mode .sidebar-nav-container {
    scrollbar-color: rgba(229, 20, 20, 0.05);
}

/* Sidebar Navigation with Steps */
.nav-steps {
    padding: 20px 0;
    flex: none;
    margin-bottom: 20px;
}

/* Remove old nav-steps scrollbar styles since we moved them to container */

.nav-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    margin-bottom: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-tertiary);
    letter-spacing: 0.13px;
    position: relative;
}

.nav-item.active {
    color: var(--text-primary);
}

.nav-item:hover:not(.active) {
    color: var(--text-secondary);
}

.step-indicator {
    position: relative;
    margin-right: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--bg-tertiary);
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 12px;
    z-index: 2;
    position: relative;
    transition: all 0.2s ease;
}

.step-number.active {
    background-color: var(--accent-primary);
    color: white;
}

.step-number.step_fin {
    background-color: #605bff;
    color: #ffffff;
    position: relative;
}

.step-number.step_fin::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #605bff, #7a8ef3, #8b86ff);
    border-radius: 50%;
    z-index: 1;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* ライトモードでのステップ完了状態 */
body.light-mode .step-number.step_fin {
    background-color: #16a34a;
}

body.light-mode .step-number.step_fin::after {
    background: linear-gradient(135deg, #16a34a, #22c55e, #4ade80);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.nav-item.step_fin span::before {
    content: '✓ ';
    color: #605bff;
    font-weight: bold;
    font-size: 16px;
    margin-right: 4px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    animation: checkmark-bounce 1.5s ease-in-out infinite alternate;
    display: inline-block;
}

.nav-item.step_fin span {
    color: #605bff !important;
    font-weight: 600;
}

.nav-item.step_fin span a {
    color: #605bff !important;
    text-decoration: none;
}

/* ライトモードでのステップ完了テキスト */
body.light-mode .nav-item.step_fin span::before {
    color: #2563eb;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

body.light-mode .nav-item.step_fin span {
    color: #2563eb !important;
}

body.light-mode .nav-item.step_fin span a {
    color: #2563eb !important;
}

@keyframes checkmark-bounce {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

.nav-item .step-number.step_fin {
    box-shadow: 0 0 10px rgba(220, 38, 38, 0.5);
    animation: pulse-completed 2s infinite;
}

@keyframes pulse-completed {
    0% {
        box-shadow: 0 0 10px rgba(220, 38, 38, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(220, 38, 38, 0.8);
    }
    100% {
        box-shadow: 0 0 10px rgba(220, 38, 38, 0.5);
    }
}

.step-line {
    position: absolute;
    top: 32px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 40px;
    background-color: var(--bg-tertiary);
    z-index: 1;
    transition: background-color 0.2s ease;
}

.step-line.last {
    display: none;
}

.settings-icon {
    position: absolute;
    bottom: 40px;
    left: 20px;
    color: #6680c7;
    cursor: pointer;
    transition: color 0.2s ease;
}

.settings-icon:hover {
    color: #ffffff;
}

/* Right Area - 右側全体エリア */
.right-area {
    margin-left: 250px;
    width: calc(100vw - 250px);
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

/* Right Scrollable Content - スクロール可能なコンテンツエリア */
.right-scrollable-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    height: 100%;
    width: 100%;
}

/* Right Content Scrollbar styling */
.right-scrollable-content::-webkit-scrollbar {
    width: 8px;
}

.right-scrollable-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    margin: 4px 0;
}

.right-scrollable-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(96, 91, 255, 0.4), rgba(96, 91, 255, 0.6));
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.right-scrollable-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(96, 91, 255, 0.6), rgba(96, 91, 255, 0.8));
    border-color: rgba(255, 255, 255, 0.1);
}

.right-scrollable-content::-webkit-scrollbar-thumb:active {
    background: linear-gradient(180deg, rgba(96, 91, 255, 0.7), rgba(96, 91, 255, 0.9));
}

/* ライトモード用の右側スクロールバー */
body.light-mode .right-scrollable-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.03);
}

body.light-mode .right-scrollable-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.4), rgba(37, 99, 235, 0.6));
    border: 1px solid rgba(0, 0, 0, 0.05);
}

body.light-mode .right-scrollable-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.6), rgba(37, 99, 235, 0.8));
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .right-scrollable-content::-webkit-scrollbar-thumb:active {
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.7), rgba(37, 99, 235, 0.9));
}

/* Firefox用の右側スクロールバー */
.right-scrollable-content {
    scrollbar-width: thin;
    scrollbar-color: rgba(96, 91, 255, 0.5) rgba(255, 255, 255, 0.05);
}

/* Firefox用のライトモード右側スクロールバー */
body.light-mode .right-scrollable-content {
    scrollbar-color: rgba(37, 99, 235, 0.5) rgba(0, 0, 0, 0.03);
}

/* Title Header - 上部タイトルエリア（100%幅） */
.title-header {
    width: 100%;
    background-color: var(--bg-header);
    padding: 30px 40px;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
    position: relative;
}

.title-header-content {
    max-width: 1200px;
}

.title-header-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 28px;
    color: var(--text-quaternary);
    letter-spacing: 0;
    margin-bottom: 15px;
    margin-top: 15px;
}

/* Header Layout */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.header-left {
    flex: 1;
}

.header-right {
    display: flex;
    align-items: center;
}

/* Header User Profile */
.header-user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.header-user-info {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.header-user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
}

.header-user-email {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.2;
}

.header-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    color: #ffffff;
    flex-shrink: 0;
}

/* ライトモードでのアバター */
body.light-mode .header-user-avatar {
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.header-user-menu {
    position: relative;
}

.header-menu-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-menu-toggle:hover {
    background-color: var(--bg-quaternary);
    color: var(--text-primary);
}

.header-user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--bg-quaternary);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: 8px 0;
    min-width: 180px;
    box-shadow: var(--shadow-heavy);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
    margin-top: 8px;
}

.header-user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.header-dropdown-item:hover {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

.header-dropdown-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Theme Toggle Button */
.theme-toggle-container {
    display: flex;
    align-items: center;
    margin-right: 12px;
}

.theme-toggle-btn {
    background: none;
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    position: relative;
    width: 36px;
    height: 36px;
}

.theme-toggle-btn:hover {
    background-color: var(--bg-quaternary);
    color: var(--text-primary);
    border-color: var(--accent-primary);
}

.theme-icon {
    width: 18px;
    height: 18px;
    position: absolute;
    transition: opacity 0.2s ease;
}

.theme-icon-dark {
    display: none;
}

html.light-mode .theme-icon-light,
body.light-mode .theme-icon-light {
    display: none;
}

html.light-mode .theme-icon-dark,
body.light-mode .theme-icon-dark {
    display: block;
}

/* Header Login Button */
.header-login {
    display: flex;
    align-items: center;
}

.header-login-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.header-login-button:hover {
    background: var(--gradient-secondary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(96, 91, 255, 0.3);
}

.header-login-button svg {
    width: 16px;
    height: 16px;
}

/* Content Area - コンテンツエリア */
.content-area {
    flex: 1;
    display: flex;
    overflow: visible;
    min-height: 0;
    width: 100%;
}

/* One Column Layout - テーマページ用 */
.content-area.one-column .main-content {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0px 40px;
    overflow: visible;
    flex: 1;
    min-height: 0;
}

.content-area.one-column .right-panel {
    display: none;
}

/* Two Column Layout - プランニングページ用 */
.content-area.two-column .main-content {
    width: 40%;
    padding: 0px 30px 0px 40px;
    overflow: visible;
    flex-shrink: 0;
    min-height: 0;
}

.content-area.two-column .right-panel {
    width: 60%;
    overflow: visible;
    flex-shrink: 0;
    min-height: 0;
    padding-right: 40px;
}

/* Custom Layout - リサーチページ等用 */
.content-area.custom-layout {
    flex: 1;
    overflow: visible;
    padding: 0px 20px;
    display: flex;
    flex-direction: column;
}



.mascot {
    position: relative;
    width: 63px;
    height: 57px;
    margin-right: 30px;
}

.mascot-bg {
    position: absolute;
    width: 50px;
    height: 50px;
    top: 4px;
    left: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(96, 91, 255, 0.2);
    border-radius: 50%;
}

.mascot-eye {
    position: absolute;
    background-color: #000000;
    border-radius: 50%;
}

.mascot-eye.left {
    width: 4px;
    height: 5px;
    top: 20px;
    left: 25px;
}

.mascot-eye.right {
    width: 3px;
    height: 5px;
    top: 18px;
    left: 32px;
}

.mascot-mouth {
    position: absolute;
    width: 7px;
    height: 5px;
    top: 25px;
    left: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}



.theme-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 600;
}

.theme-label {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 12px;
    color: #6680c7;
    letter-spacing: 0;
}

.separator {
    width: 1px;
    height: 21px;
    background-color: #ffffff;
}

.theme-value {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 12px;
    color: #6680c7;
    letter-spacing: 0;
}

.mascot-name {
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #bbdeff;
    letter-spacing: 0.16px;
}

/* Card Styles */
.card {
    background-color: var(--bg-card);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.card-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: var(--text-primary);
    letter-spacing: 0.32px;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 12px;
    color: #ffffff;
    letter-spacing: 0.36px;
}

/* Form Styles */
.form-section {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
    letter-spacing: 0;
    margin-bottom: 8px;
}

.badge-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.badge-group.lifestyle {
    max-width: 100%;
}

.badge-group.keywords {
    max-width: 100%;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border: 1px solid var(--border-tertiary);
    border-radius: 20px;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    background-color: var(--bg-secondary);
    margin:3px 0px;
}

.badge:hover {
    border-color: var(--accent-secondary);
    background-color: var(--bg-tertiary);
    transform: translateY(-1px);
}

.badge.selected {
    background-color: var(--accent-primary) !important;
    border-color: var(--accent-primary) !important;
    color: #ffffff !important;
}

.badge:active {
    transform: scale(0.98);
}

.textarea {
    width: 100%;
    min-height: 80px;
    background-color: var(--bg-input);
    border: 1px solid var(--border-tertiary);
    border-radius: 8px;
    padding: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--text-primary);
    resize: vertical;
    transition: border-color 0.2s ease;
}

.textarea:focus {
    outline: none;
    border-color: var(--accent-secondary);
}

.textarea::placeholder {
    color: var(--text-muted);
}

.form-input {
    width: 100%;
    padding: 16px;
    background-color: var(--bg-input);
    border: 2px solid var(--border-secondary);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-secondary);
}

.form-input::placeholder {
    color: var(--text-muted);
}

/* Buttons */
.create-btn {
    width: 100%;
    height: 60px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border: none;
    border-radius: 16px;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    text-transform: none;
    letter-spacing: 0.5px;
}

.create-btn:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-3px);
}

.create-btn:active {
    transform: translateY(-1px);
}

.create-btn:disabled {
    opacity: 0.8;
    cursor: not-allowed;
    transform: none;
}

.create-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.create-btn:hover::before {
    left: 100%;
}

.create-btn .button-text {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.loading-spinner {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: inherit;
    width: 100%;
}

.loading-spinner svg {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Tailwind-style animate-spin class */
.animate-spin {
    animation: spin 1s linear infinite;
}

/* Loading Animation Styles */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

.waiting-state {
    text-align: center;
    padding: 6rem 2rem;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.waiting-state .flex.space-x-2 div:nth-child(1) {
    animation: bounce 1.4s infinite ease-in-out both;
    animation-delay: -0.32s;
}

.waiting-state .flex.space-x-2 div:nth-child(2) {
    animation: bounce 1.4s infinite ease-in-out both;
    animation-delay: -0.16s;
}

.waiting-state .flex.space-x-2 div:nth-child(3) {
    animation: bounce 1.4s infinite ease-in-out both;
}

/* Utility Classes */
.space-y-6 > * + * {
    margin-top: 1.5rem;
}

.space-y-3 > * + * {
    margin-top: 0.75rem;
}

.space-x-2 > * + * {
    margin-left: 0.5rem;
}

.space-x-3 > * + * {
    margin-left: 0.75rem;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

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

.text-gray-600 {
    color: #6B7280;
}

.text-gray-700 {
    color: #374151;
}

.text-blue-500 {
    color: #3B82F6;
}

.text-green-600 {
    color: #059669;
}

.text-yellow-600 {
    color: #D97706;
}

.text-red-600 {
    color: #DC2626;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.bg-blue-100 {
    background-color: #DBEAFE;
}

.bg-green-100 {
    background-color: #D1FAE5;
}

.bg-yellow-100 {
    background-color: #FEF3C7;
}

.bg-red-100 {
    background-color: #FEE2E2;
}

.bg-gray-300 {
    background-color: #D1D5DB;
}

.rounded-full {
    border-radius: 9999px;
}

.w-2 {
    width: 0.5rem;
}

.h-2 {
    height: 0.5rem;
}

.w-4 {
    width: 1rem;
}

.h-4 {
    height: 1rem;
}

.w-8 {
    width: 2rem;
}

.h-8 {
    height: 2rem;
}

.w-16 {
    width: 4rem;
}

.w-full {
    width: 100%;
}

.h-16 {
    height: 4rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mt-4 {
    margin-top: 1rem;
}

.list-disc {
    list-style-type: disc;
}

.list-inside {
    list-style-position: inside;
}

.list-item {
    display: list-item;
}

.avatar {
    width: 35px;
    height: 35px;
    background-color: #edff7c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: #003cb4;
    letter-spacing: 0.18px;
}

.info-card {
    background-color: #2d2d3c;
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 20px;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0px 4px 25px rgba(0, 0, 0, 0.15);
}

.info-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #6680c7;
    letter-spacing: 0.14px;
    margin-bottom: 12px;
}

.info-content {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #fcfdff;
    letter-spacing: 0.14px;
    line-height: 1.3;
}

.challenges-card {
    min-height: 122px;
}

.seo-card {
    background: linear-gradient(135deg, rgba(96, 91, 255, 0.1) 0%, rgba(34, 34, 41, 0.1) 100%);
    min-height: 122px;
}

.save-btn {
    width: 100%;
    max-width: 285px;
    height: 46px;
    background-color: #605bff;
    border: none;
    border-radius: 5px;
    color: #ffffff;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 20px auto;
    display: block;
}

.save-btn:hover {
    background-color: #4b47cc;
    transform: translateY(-1px);
}

.save-btn:active {
    transform: translateY(0);
}



/* Focus States for Accessibility */
.badge:focus,
.textarea:focus,
.create-btn:focus,
.save-btn:focus {
    outline: 2px solid #7a8ef3;
    outline-offset: 2px;
}

.nav-item:focus {
    outline: 2px solid #605bff;
    outline-offset: 2px;
}

/* Smooth Transitions */
* {
    transition: all 0.2s ease;
}

/* Animation for scroll */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card,
.info-card {
    animation: fadeInUp 0.6s ease forwards;
}

.card:nth-child(2) {
    animation-delay: 0.1s;
}

.card:nth-child(3) {
    animation-delay: 0.2s;
}

.info-card:nth-child(2) {
    animation-delay: 0.1s;
}

.info-card:nth-child(3) {
    animation-delay: 0.2s;
}

.info-card:nth-child(4) {
    animation-delay: 0.3s;
}

/* Theme Page Styles */

.theme-input-section {
    margin-bottom: 40px;
}

.section-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: #ffffff;
    margin-bottom: 16px;
}

.theme-input {
    width: 100%;
    height: 60px;
    background-color: #1a1a21;
    border: 1px solid #747482;
    border-radius: 8px;
    padding: 18px 20px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #ffffff;
    transition: border-color 0.2s ease;
}

.theme-input:focus {
    outline: none;
    border-color: #7a8ef3;
}

.theme-input::placeholder {
    color: #747482;
}

body.light-mode .theme-input::placeholder {
    color: #cbd5e1;
}

.trend-section {
    margin-bottom: 40px;
}

.trend-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: #ffffff;
    margin-bottom: 24px;
}

.trend-category {
    margin-bottom: 32px;
}

.trend-category-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #6680c7;
    margin-bottom: 12px;
}

.trend-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.trend-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border: 1px solid #747482;
    border-radius: 20px;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #f0f0f0;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.trend-badge:hover {
    border-color: #7a8ef3;
    background-color: rgba(24, 20, 71, 0.3);
    transform: translateY(-1px);
}

.trend-badge.selected {
    background-color: #605bff;
    border-color: #605bff;
    color: #ffffff;
}

.trend-badge:active {
    transform: scale(0.98);
}

.theme-submit-section {
    text-align: center;
    padding: 20px 0;
}

.theme-submit-btn {
    width: 320px;
    height: 56px;
    background-color: #605bff;
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.theme-submit-btn:hover {
    background-color: #4b47cc;
    transform: translateY(-1px);
}

.theme-submit-btn:active {
    transform: translateY(0);
}

/* Card Header with Icon */
.card-header-with-icon {
    display: flex;
    align-items: center;
    gap: 0.75rem; /* Equivalent to space-x-3 */
}

/* 記事トーン設定 */
.tone_mode {
    display: none;
    margin-bottom: 20px;
}

.tone_mode.active {
    display: block;
}

.tone_mode .persona-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
}

.tone_mode .persona-card p {
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.icon-wrapper {
    width: 2.5rem; /* Equivalent to w-10 */
    height: 2.5rem; /* Equivalent to h-10 */
    border-radius: 9999px; /* Equivalent to rounded-full */
    display: flex;
    align-items: center;
    justify-content: center;
}

.bg-purple-100 {
    background-color: #E9D5FF;
}

.text-purple-600 {
    color: #9333EA;
}

/* Article Structure Styles */
.title-option {
    margin-bottom: 1rem;
}

.title-radio {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.title-label {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    border: 1px solid #747482;
    border-radius: 8px;
    background-color: #1a1a21;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

.title-radio:checked + .title-label {
    background-color: #605bff;
    color: #ffffff;
}

.title-label:hover {
    border-color: #7a8ef3;
    background-color: rgba(24, 20, 71, 0.3);
}

.title-number {
    margin-right: 0.5rem;
    font-weight: 600;
    min-width: 1.5rem;
}

.title-text {
    flex: 1;
}

.article-structure {
    white-space: pre-line;
    line-height: 1.6;
}

.article-structure dl {
    margin: 0;
    padding: 0;
}

.article-structure dt {
    font-weight: bold;
    font-size: 1.1em;
    margin-top: 1em;
    margin-bottom: 0.5em;
    color: #ffffff;
    border-left: 4px solid #60a5fa;
    padding-left: 12px;
}

.article-structure dt:first-child {
    margin-top: 0;
}

.article-structure dd {
    margin-left: 20px;
    margin-bottom: 0.3em;
    color: #e5e7eb;
    font-size: 0.95em;
}

.save-section {
    text-align: center;
    padding: 1rem;
}

.persona-info p,
.goals-pain-points {
    color: #ffffff;
    line-height: 1.6;
}

.goals-section h4,
.pain-points-section h4 {
    font-weight: 600;
    color: #ffffff;
}

.space-y-1 > * + * {
    margin-top: 0.25rem;
}

/* Validation Error Styles */
.error-message {
}

.error-message.text-red-400 {
    color: #F87171; /* Tailwind red-400 */
}

/* ボタンが無効化された時のスタイル */
button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* 記事構成のスタイル */
.article-structure dl {
    margin: 0;
    padding: 0;
}

.article-structure dt {
    font-weight: bold;
    font-size: 1.1em;
    margin-top: 1em;
    margin-bottom: 0.5em;
    color: #ffffff;
    border-left: 4px solid #60a5fa;
    padding-left: 12px;
}

.article-structure dt:first-child {
    margin-top: 0;
}

.article-structure dd {
    margin-left: 20px;
    margin-bottom: 0.3em;
    color: #e5e7eb;
    font-size: 0.95em;
}

/* 記事構成編集用テキストエリア */
.structure-textarea {
    width: 100%;
    min-height: 200px;
    padding: 12px;
    background-color: #1f2937;
    color: #ffffff;
    border: 1px solid #374151;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
}

.structure-textarea:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.2);
}

/* プレビューボタン */
.preview-btn {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.preview-btn:hover {
    background: linear-gradient(135deg, #5856eb, #7c3aed);
    transform: translateY(-1px);
}

/* 編集ボタン */
.edit-btn {
    background: linear-gradient(135deg, #6b7280, #9ca3af);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.edit-btn:hover {
    background: linear-gradient(135deg, #4b5563, #6b7280);
    transform: translateY(-1px);
}

/* プレビューモーダル */
.preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.preview-content {
    background-color: #1f2937;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.preview-header {
    background-color: #374151;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #4b5563;
}

.preview-header h3 {
    color: #ffffff;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background-color: #4b5563;
    color: #ffffff;
}

.preview-body {
    padding: 24px;
    max-height: 60vh;
    overflow-y: auto;
    color: #ffffff;
}

.preview-body dl {
    margin: 0;
    padding: 0;
}

.preview-body dt {
    font-weight: bold;
    font-size: 1.1em;
    margin-top: 1em;
    margin-bottom: 0.5em;
    color: #ffffff;
    border-left: 4px solid #60a5fa;
    padding-left: 12px;
}

.preview-body dt:first-child {
    margin-top: 0;
}

.preview-body dd {
    margin-left: 20px;
    margin-bottom: 0.3em;
    color: #e5e7eb;
    font-size: 0.95em;
}

/* 記事本文の表示スタイル */
.article-body-display {
    background: linear-gradient(135deg, #1a1a1a 0%, #1f1f1f 100%);
    border-radius: 16px;
    padding: 20px;
    margin-top: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);

    line-height: 1.8;
    font-size: 16px;
    position: relative;
    overflow: hidden;
}

.article-body-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.5), transparent);
}

.article-body-display h1 {
    color: #ffffff;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 3px solid #60a5fa;
}

.article-body-display h2 {
    color: #ffffff;
    font-size: 1.75rem;
    font-weight: 700;

    padding: 16px 20px;
    position: relative;
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.15) 0%, rgba(147, 197, 253, 0.1) 100%);
    border-radius: 12px;
    border: 1px solid rgba(96, 165, 250, 0.3);
    box-shadow: 0 4px 16px rgba(96, 165, 250, 0.1);
}

.article-body-display h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #60a5fa 0%, #3b82f6 100%);
    border-radius: 0 4px 4px 0;
}

.article-body-display h3 {
    color: #93c5fd;
    font-size: 1.375rem;
    font-weight: 600;

    padding: 12px 16px;
    position: relative;
    background: linear-gradient(135deg, rgba(147, 197, 253, 0.08) 0%, transparent 100%);
    border-radius: 8px;
    border-left: 3px solid #93c5fd;
    transition: all 0.3s ease;
}

.article-body-display h3:hover {
    background: linear-gradient(135deg, rgba(147, 197, 253, 0.12) 0%, transparent 100%);
    transform: translateX(2px);
}

.article-body-display p {
    color: #ffffff;
    text-align: justify;
    line-height: 1.6;
}

.article-body-display li {
    color: var(--text-primary) !important;
    margin-bottom: 3px;
    padding-left: 28px;
    position: relative;
    line-height: 1.75;
    transition: all 0.2s ease;
}

.article-body-display li:hover {
    color: var(--text-secondary);
    transform: translateX(2px);
}

.article-body-display ul li::before {
    content: "▸";
    color: #60a5fa;
    position: absolute;
    left: 8px;
    top: 0;
    font-weight: bold;
    font-size: 1.1em;
}

.article-body-display ol {
    counter-reset: list-counter;
}

.article-body-display ol li {
    counter-increment: list-counter;
}

.article-body-display ol li::before {
    content: counter(list-counter) ".";
    color: #60a5fa;
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
}

.article-body-display strong {
    color: #fbbf24;
    font-weight: 700;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(251, 191, 36, 0.1) 100%);
    padding: 3px 6px;
    border-radius: 6px;
    border: 1px solid rgba(251, 191, 36, 0.3);
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.1);
    position: relative;
    display: inline-block;
    transition: all 0.2s ease;
}

.article-body-display strong:hover {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.3) 0%, rgba(251, 191, 36, 0.15) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.2);
}

/* 記事表示用のカスタムスクロールバー */
.article-body-display::-webkit-scrollbar {
    width: 8px;
}

.article-body-display::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.article-body-display::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #60a5fa 0%, #3b82f6 100%);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.article-body-display::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
}

.article-body-display blockquote {
    background: #2d2d2d;
    border-left: 4px solid #10b981;
    padding: 20px;
    margin: 24px 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #d1d5db;
}

.article-body-display blockquote p {
    margin-bottom: 0;
}

/* 記事タイトル表示 */
.article-title-display {
    padding: 8px;
    margin-top: 16px;
    text-align: center;
}

.article-title-display h1 {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0;
    text-align: left;
}

/* ライトモード：記事タイトル表示 */
body.light-mode .article-title-display {
    background: var(--bg-card);
}

body.light-mode .article-title-display h1 {
    color: var(--text-primary);
}

/* アクションボタンのスタイル */
.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-secondary);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.btn-secondary:hover {
    background: var(--bg-quaternary);
    border-color: var(--accent-primary);
    transform: translateY(-1px);
    color: var(--text-primary);
    text-decoration: none;
}

.btn-secondary:active {
    transform: translateY(0);
}

/* 右パネル用の記事表示スタイル（コンパクト版） */
.right-panel .article-body-display {
    padding: 20px;
    font-size: 1rem;
    overflow-y: auto;
}

/* 記事構成表示での改行処理 */
.article-structure-display {
    white-space: pre-line;
}

.right-panel .article-body-display h1 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    padding-bottom: 12px;
}

.right-panel .article-body-display h2 {
    font-size: 1.25rem;
    margin-top: 24px;
    margin-bottom: 12px;
    padding-top: 8px;
    padding-bottom: 8px;
}

.right-panel .article-body-display h3 {
    font-size: 1.125rem;

    margin-bottom: 10px;
}

.right-panel .article-body-display p {
    margin-bottom: 16px;
    line-height: 1.6;
}

.right-panel .article-body-display ul,
.right-panel .article-body-display ol {
    margin: 16px 0;
}

.right-panel .article-body-display li {
    margin-bottom: 8px;
    padding-left: 20px;
}

.right-panel .article-title-display {
    padding: 16px;
}

.right-panel .article-title-display h1 {
    font-size: 1.5rem;
    line-height: 1.4;
    text-align: left;
}

/* スクロールバーのスタイリング */
.right-panel .article-body-display::-webkit-scrollbar {
    width: 6px;
}

.right-panel .article-body-display::-webkit-scrollbar-track {
    background: #374151;
    border-radius: 3px;
}

.right-panel .article-body-display::-webkit-scrollbar-thumb {
    background: #60a5fa;
    border-radius: 3px;
}

.right-panel .article-body-display::-webkit-scrollbar-thumb:hover {
    background: #3b82f6;
}



/* 記事生成ローディング画面 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

/* プランニング用ローディングオーバーレイ */
#planning-loading-overlay {
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(15px);
}

/* プランニング送信ボタン */
.planning-submit-btn {
    width: 100%;
    height: 56px;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.planning-submit-btn:hover {
    background: linear-gradient(135deg, #5b5fef 0%, #4338ca 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.planning-submit-btn:active {
    transform: translateY(0);
}

.planning-submit-btn:disabled {
    opacity: 0.8;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.planning-submit-btn .button-text {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.planning-submit-btn .loading-spinner {
    display: none;
    align-items: center;
    justify-content: center;
    color: inherit;
}

/* ローディングドットアニメーション削除 */

/* ライトモード対応 */
body.light-mode .planning-submit-btn {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

body.light-mode .planning-submit-btn:hover {
    background: linear-gradient(135deg, #5b5fef 0%, #4338ca 100%);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

body.light-mode .planning-submit-btn:disabled {
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

/* save-and-next-btn専用スタイル */
#save-and-next-btn {
    width: 100%;
    height: 60px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border: none;
    border-radius: 16px;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    margin-top: 32px;
    text-transform: none;
    letter-spacing: 0.5px;
}

#save-and-next-btn:hover {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    transform: translateY(-3px);
}

#save-and-next-btn:active {
    transform: translateY(-1px);
}

#save-and-next-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

#save-and-next-btn:hover::before {
    left: 100%;
}

#save-and-next-btn .button-text {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

#save-and-next-btn svg {
    transition: transform 0.3s ease;
}

#save-and-next-btn:hover svg {
    transform: scale(1.1) rotate(5deg);
}

/* ライトモード対応 */
body.light-mode #save-and-next-btn {
    background: #2563eb;
}

body.light-mode #save-and-next-btn:hover {
    background: #2563eb;
}

/* ライトモード：create-btn対応 */
body.light-mode .create-btn {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

body.light-mode .create-btn:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
}

.loading-overlay.hidden {
    display: none;
}

.loading-container {
    text-align: center;
    max-width: 600px;
    padding: 40px;
}

/* AI脳のアニメーション */
.loading-animation {
    margin-bottom: 40px;
    position: relative;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 記事生成アニメーション */
.article-generator {
    position: relative;
    width: 140px;
    height: 140px;
}

.document-icon {
    position: relative;
    width: 80px;
    height: 100px;
    margin: 0 auto 20px;
}

.doc-body {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border-radius: 8px 8px 6px 6px;
    position: relative;
    box-shadow: 0 8px 32px rgba(96, 165, 250, 0.3);
    animation: document-float 3s ease-in-out infinite;
    border: 2px solid #e2e8f0;
}

.doc-corner {
    position: absolute;
    top: 0;
    right: 0;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    clip-path: polygon(0 0, 100% 100%, 0 100%);
}

.doc-line {
    height: 3px;
    background: linear-gradient(90deg, #60a5fa, #3b82f6);
    border-radius: 2px;
    margin: 8px 10px;
    animation: line-write 2s ease-in-out infinite;
}

.line-1 {
    width: 70%;
    animation-delay: 0.2s;
}

.line-2 {
    width: 85%;
    animation-delay: 0.6s;
}

.line-3 {
    width: 60%;
    animation-delay: 1s;
}

.line-4 {
    width: 80%;
    animation-delay: 1.4s;
}

/* AI書き込みエフェクト */
.ai-writing {
    position: absolute;
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.writing-particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    font-size: 1.5rem;
    animation: particle-float 4s ease-in-out infinite;
}

.particle-1 {
    top: 20%;
    left: 80%;
    animation-delay: 0s;
}

.particle-2 {
    top: 60%;
    left: 15%;
    animation-delay: 1s;
}

.particle-3 {
    top: 10%;
    left: 20%;
    animation-delay: 2s;
}

.particle-4 {
    top: 70%;
    right: 10%;
    animation-delay: 3s;
}

.writing-waves {
    position: absolute;
    width: 100%;
    height: 100%;
}

.wave {
    position: absolute;
    border: 2px solid rgba(96, 165, 250, 0.4);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: writing-wave-expand 3s ease-out infinite;
}

.wave-1 {
    width: 120px;
    height: 120px;
    animation-delay: 0s;
}

.wave-2 {
    width: 160px;
    height: 160px;
    animation-delay: 1s;
}

.wave-3 {
    width: 200px;
    height: 200px;
    animation-delay: 2s;
}

/* ローディングテキスト */
.loading-text {
    color: #ffffff;
}

.loading-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #60a5fa, #93c5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.loading-subtitle {
    font-size: 1.125rem;
    color: #d1d5db;
    margin-bottom: 32px;
    animation: text-fade 2s ease-in-out infinite;
}

/* プログレスステップ */
.progress-steps {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.step.active {
    opacity: 1;
    transform: scale(1.1);
}

.step.completed {
    opacity: 0.8;
    color: #10b981;
}

.step-icon {
    font-size: 2rem;
    margin-bottom: 4px;
}

.step span {
    font-size: 0.875rem;
    color: #d1d5db;
    font-weight: 500;
}

.step.active span {
    color: #60a5fa;
}

.step.completed span {
    color: #10b981;
}

/* プログレスバー */
.loading-progress {
    margin-bottom: 24px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #374151;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #60a5fa, #3b82f6);
    border-radius: 4px;
    transition: width 0.3s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: progress-shine 2s ease-in-out infinite;
}

.progress-text {
    color: #60a5fa;
    font-weight: 600;
    font-size: 0.875rem;
}

/* ローディングティップス */
.loading-tips {
    margin-top: 24px;
}

.tip-text {
    color: #9ca3af;
    font-size: 0.875rem;
    line-height: 1.5;
    animation: tip-fade 1s ease-in-out;
}

/* 記事生成アニメーション */
@keyframes document-float {
    0%, 100% { 
        transform: translateY(0) rotateY(0deg);
        box-shadow: 0 8px 32px rgba(96, 165, 250, 0.3);
    }
    50% { 
        transform: translateY(-8px) rotateY(5deg);
        box-shadow: 0 16px 48px rgba(96, 165, 250, 0.4);
    }
}

@keyframes line-write {
    0% {
        width: 0%;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.8;
    }
}

@keyframes particle-float {
    0%, 100% { 
        opacity: 0.4;
        transform: translateY(0) scale(1);
    }
    25% {
        opacity: 0.8;
        transform: translateY(-20px) scale(1.1);
    }
    50% { 
        opacity: 1;
        transform: translateY(-10px) scale(1.2);
    }
    75% {
        opacity: 0.8;
        transform: translateY(-30px) scale(1.1);
    }
}

@keyframes writing-wave-expand {
    0% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(0.5);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

@keyframes text-fade {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes progress-shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes tip-fade {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}



/* Flash Messages */
.flash-message {
    animation: slideInRight 0.3s ease-out;
    z-index: 60;
}

.flash-success {
    background-color: #10b981;
    border-color: #059669;
    color: #ffffff;
}

.flash-error {
    background-color: #ef4444;
    border-color: #dc2626;
    color: #ffffff;
}

.flash-warning {
    background-color: #f59e0b;
    border-color: #d97706;
    color: #ffffff;
}

.flash-info {
    background-color: #3b82f6;
    border-color: #2563eb;
    color: #ffffff;
}

.flash-message .flex {
    transition: all 0.2s ease;
}

.flash-message:hover .flex {
    transform: translateY(-1px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.flash-message.fade-out {
    animation: slideOutRight 0.3s ease-in forwards;
}

/* Utility classes for flash messages */
.space-y-2 > * + * {
    margin-top: 0.5rem;
}

.min-w-80 {
    min-width: 20rem;
}

.max-w-md {
    max-width: 28rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.border-l-4 {
    border-left-width: 4px;
}

.z-50 {
    z-index: 50;
}

.fixed {
    position: fixed;
}

.top-4 {
    top: 1rem;
}

.right-4 {
    right: 1rem;
}

.transform {
    transform: translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.duration-300 {
    transition-duration: 300ms;
}

.ease-in-out {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* スライダーセクション */
.slider-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.slider-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.slider-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.slider-btn:active {
    transform: translateY(0);
}

.slider {
    flex: 1;
    height: 6px;
    background: var(--border-primary);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    transition: all 0.2s ease;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    transition: all 0.2s ease;
}

.slider::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.slider-display {
    text-align: center;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.slider-display span {
    font-size: 18px;
    font-weight: 600;
    color: #3b82f6;
}

/* テイストグループの特別スタイル */
.taste-group {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px;
}

.taste-group .badge {
    text-align: center;
    padding: 12px 16px;
    font-size: 13px;
    line-height: 1.2;
}

/* Form Select Styles */
.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #3a3a4a;
    border-radius: 12px;
    background-color: #2a2a35;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    cursor: pointer;
    color-scheme: dark;
}

.form-select:hover {
    border-color: #605bff;
    background-color: #353540;
}

.form-select:focus {
    outline: none;
    border-color: #605bff;
    background-color: #353540;
    box-shadow: 0 0 0 3px rgba(96, 91, 255, 0.1);
}

.form-select option {
    background-color: #2a2a35 !important;
    color: #ffffff !important;
    padding: 12px;
    font-size: 14px;
}

.form-select option:checked,
.form-select option[selected] {
    background-color: #605bff !important;
    color: #ffffff !important;
    background-image: none !important;
}

.form-select option:hover {
    background-color: #4c46d9 !important;
    color: #ffffff !important;
}

/* ブラウザ固有のスタイル */
.form-select option:checked {
    background: linear-gradient(#605bff, #605bff) !important;
    color: #ffffff !important;
}

/* Firefox用 */
@-moz-document url-prefix() {
    .form-select option:checked {
        background-color: #605bff !important;
        color: #ffffff !important;
    }
}





/* Login Page Specific Styles */
.login-body {
    background-color: #212129;
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
}

.login-body .flash-message {
    background-color: rgba(42, 42, 53, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(96, 91, 255, 0.2);
    color: #ffffff;
}

.login-body .flash-success {
    border-left-color: #10b981;
    background-color: rgba(16, 185, 129, 0.1);
}

.login-body .flash-error {
    border-left-color: #ef4444;
    background-color: rgba(239, 68, 68, 0.1);
}

.login-body .flash-warning {
    border-left-color: #f59e0b;
    background-color: rgba(245, 158, 11, 0.1);
}

.login-body .flash-info {
    border-left-color: #3b82f6;
    background-color: rgba(59, 130, 246, 0.1);
}

/* Article Editor共通スタイル */
.article-editor-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.article-editor-header {
    text-align: center;
    margin-bottom: 3rem;
}

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

.article-editor-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.article-editor-search {
    max-width: 500px;
    margin: 0 auto 2rem;
    position: relative;
}

.article-editor-search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid var(--border-primary);
    border-radius: 12px;
    font-size: 1rem;
    background: var(--bg-input);
    color: var(--text-primary);
    transition: border-color 0.2s ease;
}

.article-editor-search-input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.article-editor-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.article-editor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.article-editor-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    border: 1px solid var(--border-primary);
    position: relative;
    overflow: hidden;
}

.article-editor-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.article-editor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.article-editor-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.article-editor-date {
    font-size: 0.875rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-editor-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.article-editor-status.published {
    background: #dcfce7;
    color: #166534;
}

.article-editor-status.draft {
    background: #fef3c7;
    color: #92400e;
}

.article-editor-theme {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.article-editor-excerpt {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-editor-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.article-editor-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.article-editor-empty-icon {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.article-editor-empty-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.article-editor-empty-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Quillエディターのスタイル */
.quill-editor-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.ql-toolbar {
    background: var(--bg-quaternary) !important;
    border: none !important;
    border-bottom: 1px solid var(--border-primary) !important;
    border-radius: 8px 8px 0 0 !important;
}

.ql-toolbar .ql-stroke {
    stroke: var(--text-primary) !important;
}

.ql-toolbar .ql-fill {
    fill: var(--text-primary) !important;
}

.ql-toolbar button:hover .ql-stroke {
    stroke: var(--accent-primary) !important;
}

.ql-toolbar button:hover .ql-fill {
    fill: var(--accent-primary) !important;
}

.ql-toolbar button.ql-active .ql-stroke {
    stroke: var(--accent-primary) !important;
}

.ql-toolbar button.ql-active .ql-fill {
    fill: var(--accent-primary) !important;
}

.ql-container {
    background: var(--bg-primary) !important;
    border: 1px solid var(--border-primary) !important;
    border-top: none !important;
    color: var(--text-primary) !important;
    font-family: 'Inter', sans-serif !important;
    border-radius: 0 0 8px 8px !important;
    min-height: 1000px !important;
    height: 1000px !important;
}

.ql-editor {
    color: var(--text-primary) !important;
    font-size: 16px !important;
    line-height: 1.7 !important;
    padding: 2rem !important;
    min-height: 1200px !important;
    height: 1200px !important;
}

.ql-editor.ql-blank::before {
    color: var(--text-tertiary) !important;
    font-style: normal !important;
}

/* Quillエディター内の記事スタイル */
.ql-editor h1 {
    color: var(--text-primary) !important;
    font-size: 2.5rem !important;
    font-weight: 800 !important;
    margin-bottom: 2rem !important;
    text-align: center !important;
    line-height: 1.2 !important;
}

.ql-editor h2 {
    color: var(--text-primary) !important;
    padding: 1.25rem 2rem !important;
    border-radius: 15px !important;
    margin: 2.5rem 0 1.5rem 0 !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    background: var(--bg-secondary) !important;
    border-left: 4px solid var(--accent-primary) !important;
}

.ql-editor h3 {
    color: var(--text-primary) !important;
    font-size: 1.35rem !important;
    font-weight: 600 !important;
    margin: 2rem 0 1rem 0 !important;
    padding: 1rem 1.5rem !important;
    background: var(--bg-secondary) !important;
    border-left: 5px solid var(--accent-primary) !important;
    border-radius: 0 15px 15px 0 !important;
}

.ql-editor p {
    color: var(--text-primary) !important;
    line-height: 1.8 !important;
    font-size: 1.1rem !important;
}

.ql-editor ul,
.ql-editor ol {
    margin-bottom: 2rem !important;
    padding-left: 0 !important;
}

.ql-editor li {
    color: var(--text-primary) !important;
    margin-bottom: 0.75rem !important;
    padding: 0.5rem 0 !important;
    border-left: 3px solid var(--accent-primary) !important;
    padding-left: 1rem !important;
    list-style: none !important;
}

.ql-editor strong {
    font-weight: 800 !important;
}

.ql-editor blockquote {
    background: var(--bg-secondary) !important;
    border-left: 4px solid var(--accent-primary) !important;
    padding: 1.5rem !important;
    margin: 2rem 0 !important;
    border-radius: 0 8px 8px 0 !important;
    color: var(--text-primary) !important;
    font-style: italic !important;
}

/* 管理メニューのスタイル */
.nav-section {
    padding-top: 1rem;
    border-top: 1px solid var(--border-primary);
}

.nav-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
    padding: 0 20px;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nav-menu-item {
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-menu-item:hover {
    background: var(--bg-quaternary);
}

.nav-menu-item.active {
    background: var(--bg-quaternary);
    border-left: 3px solid var(--accent-primary);
}

.nav-menu-item a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-menu-item:hover a {
    color: var(--text-primary);
}

.nav-menu-item.active a {
    color: var(--accent-primary);
}

.nav-menu-item i {
    font-size: 1rem;
    width: 16px;
    text-align: center;
}



/* 折りたたみセクション共通スタイル */
.collapsible-section {
    background: var(--bg-secondary);
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid var(--border-primary);
    overflow: hidden;
}

.collapsible-header {
    background: var(--bg-secondary);
    padding: 1rem 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s ease;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    user-select: none;
}

.collapsible-header:hover {
    background: var(--bg-tertiary);
}

.collapsible-content {
    padding: 1rem 1.5rem;
    display: none;
    background: var(--bg-primary);
    animation: slideDown 0.3s ease-out;
}

.collapsible-content.active {
    display: block;
}

.chevron {
    transition: transform 0.2s ease;
    color: var(--text-secondary);
    font-size: 1rem;
}

.chevron.rotated {
    transform: rotate(90deg);
}

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

/* キーワード選択機能のスタイル */
.keyword-badge {
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.keyword-badge:hover {
    background-color: rgba(59, 130, 246, 0.3);
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-1px);
}

.keyword-badge.selected {
    background-color: rgba(59, 130, 246, 0.8);
    border-color: #3b82f6;
    color: white;
    font-weight: 600;
}

.keywords-selection {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

/* キーワード生成ボタンのスタイル */
.btn-secondary {
    background: linear-gradient(135deg, #6b73ff 0%, #9b59b6 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #8e44ad 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(107, 115, 255, 0.3);
}

.btn-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* 選択数表示 */
.keywords-selection::after {
    content: '';
    display: block;
    width: 100%;
    height: 0;
}

.keywords-selection[data-selected-count]::after {
    content: attr(data-selected-count) " / 5 選択中";
    font-size: 12px;
    color: #9ca3af;
    margin-top: 8px;
}

/* ローディングメッセージのスタイル */
.loading-message {
    animation: fadeIn 0.3s ease-in;
}

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

/* モダンチェックボックスのスタイル */
.custom-checkbox-wrapper {
    margin-bottom: 16px;
}

.modern-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.modern-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    user-select: none;
    transition: all 0.3s ease;
}

.modern-checkbox-label:hover {
    color: #e5e7eb;
}

.checkbox-indicator {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 12px;
    background-color: #2a2a35;
    border: 2px solid #3a3a4a;
    border-radius: 6px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.checkbox-indicator::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #605bff, #7a8ef3);
    border-radius: 2px;
    transition: all 0.2s ease;
}

.checkbox-indicator::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 6px;
    width: 4px;
    height: 8px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: all 0.2s ease;
}

.modern-checkbox:checked + .modern-checkbox-label .checkbox-indicator {
    background: linear-gradient(135deg, #605bff, #7a8ef3);
    border-color: #605bff;
    box-shadow: 0 0 0 3px rgba(96, 91, 255, 0.2);
}

.modern-checkbox:checked + .modern-checkbox-label .checkbox-indicator::before {
    transform: translate(-50%, -50%) scale(0);
}

.modern-checkbox:checked + .modern-checkbox-label .checkbox-indicator::after {
    transform: rotate(45deg) scale(1);
}

.modern-checkbox:hover + .modern-checkbox-label .checkbox-indicator {
    border-color: #605bff;
    background-color: rgba(96, 91, 255, 0.1);
}

.modern-checkbox:focus + .modern-checkbox-label .checkbox-indicator {
    outline: none;
    box-shadow: 0 0 0 3px rgba(96, 91, 255, 0.3);
}

.checkbox-text {
    line-height: 1.5;
}

/* アニメーション */
@keyframes checkmark-appear {
    0% {
        transform: rotate(45deg) scale(0);
        opacity: 0;
    }
    50% {
        transform: rotate(45deg) scale(1.2);
        opacity: 1;
    }
    100% {
        transform: rotate(45deg) scale(1);
        opacity: 1;
    }
}

.modern-checkbox:checked + .modern-checkbox-label .checkbox-indicator::after {
    animation: checkmark-appear 0.3s ease;
}

/* 改行表示用クラス */
.display {
    white-space: pre-line;
    word-wrap: break-word;
}

/* チェックボックスグループのスタイル */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.checkbox-item:hover {
    background-color: rgba(107, 115, 255, 0.1);
}

.checkbox-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #6b73ff;
    cursor: pointer;
}

/* カスタムチェックボックススタイル */
.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.custom-checkbox:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 8px;
    margin: 0;
}

.custom-checkbox input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #4a5568;
    border-radius: 4px;
    background-color: transparent;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    margin: 0;
}

.custom-checkbox input[type="checkbox"]:checked {
    background-color: #605bff;
    border-color: #605bff;
}

.custom-checkbox input[type="checkbox"]:checked::before {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.custom-checkbox input[type="checkbox"]:hover {
    border-color: #605bff;
    box-shadow: 0 0 0 2px rgba(96, 91, 255, 0.2);
}

.custom-checkbox label {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
}

/* ライトモード用のカスタムチェックボックスラベル */
body.light-mode .custom-checkbox label {
    color: var(--text-primary);
}

.checkbox-label {
    color: #e5e7eb;
    font-size: 14px;
    cursor: pointer;
}

/* Report Content Styles */
.report-content {
    padding: 20px;
    background-color: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-primary);
}

.report-text {
    line-height: 1.7;
    color: var(--text-primary);
    font-size: 15px;
    font-family: 'Inter', sans-serif;
}

/* 見出しスタイル */
.report-text h2 {
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 700;
    margin: 32px 0 16px 0;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--accent-primary);
    position: relative;
}

.report-text h2:first-child {
    margin-top: 0;
}

.report-text h2::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.report-text h3 {
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 600;
    margin: 24px 0 12px 0;
    padding-left: 12px;
    border-left: 4px solid var(--accent-primary);
    background-color: var(--bg-tertiary);
    padding: 12px 12px;
    border-radius: 4px;
}

/* 段落スタイル */
.report-text p {
    margin-bottom: 16px;
    color: var(--text-primary);
    text-align: justify;
    line-height: 1.8;
}

/* リストスタイル */
.report-text ul {
    margin: 16px 0;
    padding-left: 0;
}

.report-text ul li {
    margin-bottom: 10px;
    color: var(--text-primary);
    list-style: none;
    position: relative;
    padding-left: 24px;
    line-height: 1.6;
}

.report-text ul li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-size: 12px;
    top: 2px;
}

.report-text ol {
    margin: 16px 0;
    padding-left: 20px;
}

.report-text ol li {
    margin-bottom: 10px;
    color: var(--text-primary);
    line-height: 1.6;
}

.report-text ol li::marker {
    color: var(--accent-primary);
    font-weight: 600;
}

/* 強調テキスト */
.report-text strong {
    color: var(--text-primary);
    font-weight: 600;
    background-color: var(--bg-tertiary);
    padding: 2px 4px;
    border-radius: 3px;
}

.report-text em {
    color: var(--accent-secondary);
    font-style: italic;
}

/* リンクスタイル */
.report-text a {
    color: var(--accent-primary);
    text-decoration: none;
    border-bottom: 1px dotted var(--accent-primary);
    transition: all 0.2s ease;
}

.report-text a:hover {
    color: var(--accent-secondary);
    border-bottom-style: solid;
    background-color: var(--bg-tertiary);
}

/* 引用スタイル */
.report-text blockquote {
    border-left: 4px solid var(--accent-primary);
    margin: 20px 0;
    padding: 16px 20px;
    background-color: var(--bg-tertiary);
    border-radius: 4px;
    font-style: italic;
    color: var(--text-secondary);
}

/* コードスタイル */
.report-text code {
    background-color: var(--bg-secondary);
    padding: 3px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: var(--accent-secondary);
    font-size: 13px;
    border: 1px solid var(--border-primary);
}

/* テーブルスタイル */
.report-text table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: var(--bg-secondary);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-primary);
}

.report-text table thead {
    background: transparent;
}

.report-text table thead th {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 14px;
    padding: 16px 12px;
    text-align: left;
    border-bottom: 2px solid var(--accent-primary);
    position: relative;
}

.report-text table thead th:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.3);
}

.report-text table tbody tr {
    transition: background-color 0.2s ease;
}

.report-text table tbody tr:nth-child(even) {
    background-color: var(--bg-tertiary);
}

.report-text table tbody tr:nth-child(odd) {
    background-color: var(--bg-secondary);
}

.report-text table tbody tr:hover {
    background-color: var(--bg-hover);
}

.report-text table tbody td {
    color: var(--text-primary);
    padding: 14px 12px;
    border-bottom: 1px solid var(--border-primary);
    font-size: 14px;
    line-height: 1.5;
}

.report-text table tbody td:first-child {
    font-weight: 500;
    color: var(--text-primary);
}

/* テーブル内の強調表示 */
.report-text table strong {
    color: var(--text-primary);
    font-weight: 600;
    background-color: var(--bg-tertiary);
    padding: 2px 4px;
    border-radius: 3px;
}

/* テーブル内のリンク */
.report-text table a {
    color: var(--accent-secondary);
    text-decoration: none;
    border-bottom: 1px dotted var(--accent-secondary);
}

.report-text table a:hover {
    color: var(--accent-primary);
    border-bottom-style: solid;
}

/* 操作マニュアル専用の緑系スタイル */
.nav-menu-item.manual-button {
    display: flex;
    justify-content: center;
}

.nav-menu-item.manual-button:hover {
    background: transparent !important;
}

.nav-menu-item.manual-button a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 6px;
    background-color: #16a085;
    border: none;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    transition: all 0.3s ease;
    width: 150px;
    justify-content: center;
}

.nav-menu-item.manual-button a:hover {
    background-color: #1abc9c;
    color: white;
    text-decoration: none;
}

/* ライトモード用の操作マニュアルボタン */
.light-mode .nav-menu-item.manual-button a {
    background-color: #305097;
    color: white;
}

.light-mode .nav-menu-item.manual-button a:hover {
    background-color: #ffffff;
    color: black;
}

/* 数値セル用のスタイル */
.report-text table .number {
    text-align: right;
    font-family: 'Courier New', monospace;
    color: var(--accent-secondary);
    font-weight: 500;
}

/* ステータス表示用 */
.report-text table .status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
}

.report-text table .status.positive {
    background-color: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.report-text table .status.negative {
    background-color: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.report-text table .status.neutral {
    background-color: rgba(156, 163, 175, 0.2);
    color: #9ca3af;
    border: 1px solid rgba(156, 163, 175, 0.3);
}

/* レポート表示の詳細スタイル */
.report-display {
    background: transparent;
    padding: 1.5rem;
    color: var(--text-primary);
    line-height: 1.6;
    font-family: 'Inter', sans-serif;
}

.report-display h1 {
    color: var(--text-primary);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    border-bottom: 2px solid var(--accent-primary);
    padding-bottom: 0.5rem;
}

.report-display h2 {
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--accent-primary);
}

.report-display h3 {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1.5rem 0 0.5rem 0;
    padding-left: 1rem;
    border-left: 3px solid var(--accent-primary);
}

.report-display p {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
}

.report-display ul,
.report-display ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.report-display li {
    margin-bottom: 0.75rem;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-primary);
    position: relative;
}

.report-display ul li::before {
    content: '▶';
    color: var(--accent-primary);
    font-weight: bold;
    position: absolute;
    left: -1.5rem;
}

.report-display ol li {
    counter-increment: list-counter;
}

.report-display ol {
    counter-reset: list-counter;
}

.report-display ol li::before {
    content: counter(list-counter) '.';
    color: var(--accent-primary);
    font-weight: bold;
    position: absolute;
    left: -2rem;
    width: 1.5rem;
    text-align: right;
}

.report-display strong {
    background: var(--bg-tertiary);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-weight: 600;
    color: var(--text-primary);
}

.report-display a {
    color: var(--accent-secondary);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.report-display a:hover {
    color: var(--accent-primary);
}

.report-display blockquote {
    border-left: 4px solid var(--accent-primary);
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    background: var(--bg-tertiary);
    padding: 1rem;
    border-radius: 0 8px 8px 0;
}

.report-display code {
    background: var(--bg-secondary);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--accent-secondary);
}

.report-display pre {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1rem 0;
    border: 1px solid var(--border-primary);
}

/* テーブルスタイル（レポート用） */
.report-display table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.report-display thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.report-display th {
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 600;
    color: white;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.report-display tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.2s ease;
}

.report-display tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.03);
}

.report-display tbody tr:hover {
    background: rgba(59, 130, 246, 0.1);
    transform: scale(1.01);
}

.report-display td {
    padding: 1rem 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    line-height: 1.5;
    vertical-align: top;
}

.report-display td:first-child {
    font-weight: 600;
    color: #a78bfa;
}

/* 数値セル用スタイル */
.report-display .number-cell {
    text-align: right;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #fbbf24;
}

/* ステータスバッジ用スタイル */
.report-display .status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.report-display .status-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.report-display .status-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.report-display .status-error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}





/* Empty State Components */
.empty-state-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 2rem;
}

.empty-state-card {
    background: linear-gradient(135deg, rgba(42, 42, 53, 0.8) 0%, rgba(28, 28, 37, 0.9) 100%);
    border: 1px solid rgba(96, 91, 255, 0.2);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    text-align: center;
    max-width: 600px;
    width: 100%;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.empty-state-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(96, 91, 255, 0.5), transparent);
}

.empty-state-icon {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

.icon-circle {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #6b73ff 0%, #9b59b6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(107, 115, 255, 0.3);
}

.icon-circle i {
    font-size: 3rem;
    color: white;
    animation: float 3s ease-in-out infinite;
}

.icon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(107, 115, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse-glow 2s ease-in-out infinite;
}

.empty-state-content {
    position: relative;
    z-index: 1;
}

.empty-state-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.empty-state-description {
    font-size: 1.1rem;
    color: #a0aec0;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.empty-state-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    min-width: 120px;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.feature-item i {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.feature-item span {
    font-size: 0.875rem;
    color: #e2e8f0;
    font-weight: 500;
}

.empty-state-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #6b73ff 0%, #9b59b6 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(107, 115, 255, 0.3);
}

.empty-state-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(107, 115, 255, 0.4);
    color: white;
    text-decoration: none;
}

.empty-state-button i {
    font-size: 1.25rem;
}

.button-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.empty-state-button:hover .button-glow {
    left: 100%;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.center-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

/* ===== 共通ボタンスタイル（インラインCSSから統合） ===== */

/* コンテナ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* アクションボタンエリア */
.action-buttons-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.action-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.action-button:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

/* ボタンカラーバリエーション */
.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    color: white;
}

.btn-primary:hover {
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.btn-success:hover {
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.btn-warning:hover {
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    color: white;
}

/* メタ情報セクション */
.meta-info-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.meta-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.meta-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.meta-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-value {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

/* 記事コンテンツ */
.article-content {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.article-display {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    color: #1f2937;
    line-height: 1.7;
}

/* 記事表示スタイル */
.article-display h1 {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    text-align: center;
    line-height: 1.2;
}

.article-display h2 {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    color: white;
    padding: 1.25rem;
    border-radius: 15px;
    margin: 2.5rem 0 1.5rem 0;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
}

.article-display h2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    pointer-events: none;
}

.article-display h3 {
    color: #1f2937;
    font-size: 1.35rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
    padding: 1rem 1.5rem;
    border-left: 5px solid #3b82f6;
    border-radius: 0 15px 15px 0;
    transition: all 0.3s ease;
}

.article-display h3:hover {
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    transform: translateX(15px);
}

.article-display p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #374151;
    font-size: 1.1rem;
}

/* ===== 共通テーブルスタイル（インラインCSSから統合） ===== */

/* テーブルセクション */
.articles-table-section {
    margin-bottom: 2rem;
}

.table-container {
    overflow-x: auto;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.articles-table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
}

.articles-table th {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 1rem 0.75rem;
    text-align: left;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.articles-table td {
    padding: 1rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    vertical-align: middle;
}

.article-row {
    transition: all 0.2s ease;
}

.article-row:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* テーブル内セル要素 */
.article-title-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.article-icon {
    color: #667eea;
    font-size: 1.25rem;
}

.title-content {
    flex: 1;
}

.title-text {
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.3;
    margin-bottom: 0.25rem;
}

.title-meta {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

.theme-badge {
    display: inline-block;
    background-color: #305097;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    margin: 0.125rem;
}

.user-info {
    font-size: 0.875rem;
}

.user-email {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.user-id {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

.model-badge {
    display: inline-block;
    background: #008080;
    color:white;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.date-info {
    font-size: 0.875rem;
}

.date-value {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.time-value {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

/* テーブル用アクションボタン */
.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    font-size: 0.875rem;
}

.btn-view {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.btn-view:hover {
    background: rgba(59, 130, 246, 0.3);
    color: #3b82f6;
    transform: scale(1.1);
}

.btn-edit {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.btn-edit:hover {
    background: rgba(245, 158, 11, 0.3);
    color: #f59e0b;
    transform: scale(1.1);
}

.btn-delete {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.btn-delete:hover {
    background: rgba(239, 68, 68, 0.3);
    color: #ef4444;
    transform: scale(1.1);
}

/* 空状態表示 */
.no-articles {
    text-align: center;
    padding: 3rem 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.no-articles-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.4);
}

.no-articles-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}

.no-articles-text {
    font-size: 1rem;
    margin: 0;
}

/* ===== 統計カード・検索セクションスタイル（インラインCSSから統合） ===== */

/* 統計セクション */
.stats-overview-section {
    padding: 0;
    margin-bottom: 2rem;
}

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

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s ease;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

/* 検索セクション */
.search-filter-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ライトモード用の検索セクション */
body.light-mode .search-filter-section {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
}

.search-container {
    display: flex;
    justify-content: center;
}

.search-input-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.15);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}



/* ライトモード用のTailwind固定色対応 */
body.light-mode .bg-gray-800 {
    background-color: var(--bg-card) !important;
}

body.light-mode .bg-gray-700 {
    background-color: var(--bg-secondary) !important;
}

body.light-mode .bg-gray-600 {
    background-color: var(--bg-tertiary) !important;
}

body.light-mode .bg-gray-900 {
    background-color: rgba(0, 0, 0, 0.5) !important;
}

body.light-mode .text-gray-500 {
    color: var(--text-muted) !important;
}

body.light-mode .text-gray-400 {
    color: var(--text-muted) !important;
}

body.light-mode .text-gray-300 {
    color: var(--text-secondary) !important;
}

body.light-mode .hero-section .text-gray-300 {
    color: #d1d5db !important;
}

body.light-mode .text-gray-200 {
    color: var(--text-primary) !important;
}

body.light-mode .hero-section .text-gray-200 {
    color: #e5e7eb !important;
}

body.light-mode .text-white {
    color: var(--text-primary) !important;
}

/* クローラー結果・予約画面の固定色修正 */
body.light-mode .text-blue-400 {
    color: #2563eb !important;
}

body.light-mode .text-green-400,
body.light-mode .text-green-500 {
    color: #16a34a !important;
}

body.light-mode .text-yellow-400,
body.light-mode .text-yellow-500 {
    color: #ca8a04 !important;
}

body.light-mode .text-purple-400,
body.light-mode .text-purple-500 {
    color: #9333ea !important;
}

body.light-mode .text-blue-500 {
    color: #2563eb !important;
}

/* アイコン背景色の調整 */
body.light-mode .bg-green-100 {
    background-color: #dcfce7 !important;
}

body.light-mode .bg-blue-100 {
    background-color: #dbeafe !important;
}

body.light-mode .bg-yellow-100 {
    background-color: #fef3c7 !important;
}

body.light-mode .text-green-600 {
    color: #16a34a !important;
}

body.light-mode .text-blue-600 {
    color: #2563eb !important;
}

body.light-mode .text-yellow-600 {
    color: #ca8a04 !important;
}t-mode .border-gray-600 {
    border-color: var(--border-primary) !important;
}

body.light-mode .border-gray-500 {
    border-color: var(--border-secondary) !important;
}

body.light-mode .hover\\:bg-gray-700:hover {
    background-color: var(--bg-tertiary) !important;
}

body.light-mode .hover\\:bg-gray-600:hover {
    background-color: var(--bg-quaternary) !important;
}

/* フォーム系要素の見やすさ改善 */
body.light-mode .form-select {
    background-color: var(--bg-input);
    border: 2px solid var(--border-primary);
    color: var(--text-primary);
}

body.light-mode .form-select:hover {
    border-color: var(--border-secondary);
}

body.light-mode .form-select:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

body.light-mode .form-select option {
    background-color: var(--bg-input);
    color: var(--text-primary);
}

/* カードの見やすさ改善 */
body.light-mode .card {
    background-color: #edeffa;
}

body.light-mode .card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* 入力フィールドの見やすさ改善 */
body.light-mode .form-input {
    background-color: var(--bg-input);
    border: 2px solid var(--border-primary);
    color: var(--text-primary);
}

body.light-mode .form-input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

body.light-mode .form-input::placeholder {
    color: #cbd5e1;
}

/* テキストエリアの見やすさ改善 */
body.light-mode .textarea {
    background-color: var(--bg-input);
    border: 2px solid var(--border-primary);
    color: var(--text-primary);
}

body.light-mode .textarea:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

body.light-mode .textarea::placeholder {
    color: #cbd5e1;
}

/* researcher-badge のスタイル */
.researcher-badge {
    background-color: var(--bg-card);
    border-color: var(--border-primary);
    color: var(--text-primary);
}

.researcher-badge:hover {
    background-color: var(--bg-tertiary);
}

.researcher-badge.selected {
    background-color: var(--bg-tertiary);
    border-color: var(--accent-primary);
}

/* keyword-checkbox-item のスタイル */
.keyword-checkbox-item {
    background-color: var(--bg-card);
    border: 2px solid var(--border-primary);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.keyword-checkbox-item:hover {
    background-color: var(--bg-tertiary);
    border-color: var(--border-secondary);
    transform: translateY(-1px);
}

.keyword-checkbox-item:has(input:checked) {
    background-color: var(--bg-tertiary);
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.2);
}

/* btn-secondary-clear のスタイル */
.btn-secondary-clear {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-primary);
}

.btn-secondary-clear:hover {
    background-color: var(--bg-tertiary);
}

/* ライトモード用のテキスト色包括対応（hero-section除く） */
body.light-mode .text-white {
    color: var(--text-primary) !important;
}

body.light-mode .hero-section .text-white {
    color: white !important;
}

body.light-mode [style*="color: white"] {
    color: var(--text-primary) !important;
}

body.light-mode .hero-section [style*="color: white"] {
    color: white !important;
}

body.light-mode [style*="color:white"] {
    color: var(--text-primary) !important;
}

body.light-mode .hero-section [style*="color:white"] {
    color: white !important;
}

/* ライトモード用のボタン色対応 */
body.light-mode .btn-blue-gradient,
body.light-mode .btn-green-gradient,
body.light-mode .generate-button {
    color: #ffffff !important;
}

body.light-mode .bg-blue-600,
body.light-mode .bg-green-600,
body.light-mode .bg-purple-600,
body.light-mode .bg-orange-600,
body.light-mode .bg-red-600,
body.light-mode .bg-indigo-600 {
    color: #ffffff !important;
}

/* ライトモード用のバッジ色対応 */
body.light-mode .trend-badge {
    color: #ffffff !important;
}

/* ライトモード用のプログレス表示対応 */
body.light-mode .progress-display {
    background-color: var(--bg-tertiary);
    border-color: var(--border-primary);
}

/* ライトモード用のarticle-structure-display対応 */
body.light-mode .article-structure-display {
    color: var(--text-primary) !important;
}

/* ライトモード用のinfo-title対応 */
body.light-mode .info-title {
    color: var(--text-secondary) !important;
}

/* ライトモード用のinfo-content対応 */
body.light-mode .info-content {
    color: var(--text-primary) !important;
}

/* ライトモード用のその他の固定色対応 */
body.light-mode .setting-item label {
    color: var(--text-primary) !important;
}

body.light-mode .function-button .title {
    color: var(--text-primary) !important;
}

body.light-mode .project-theme {
    color: var(--text-primary) !important;
}

body.light-mode .project-date {
    color: var(--text-secondary) !important;
}

/* ライトモード用の固定色#e2e8f0対応 */
body.light-mode [style*="color: #e2e8f0"] {
    color: var(--text-primary) !important;
}

body.light-mode [style*="color:#e2e8f0"] {
    color: var(--text-primary) !important;
}

/* ライトモード用の固定色#f1f5f9対応 */
body.light-mode [style*="color: #f1f5f9"] {
    color: var(--text-primary) !important;
}

body.light-mode [style*="color:#f1f5f9"] {
    color: var(--text-primary) !important;
}

/* ライトモード用の固定色#515a66対応 */
body.light-mode [style*="color: #515a66"] {
    color: var(--text-secondary) !important;
}

body.light-mode [style*="color:#94a3b8"] {
    color: var(--text-secondary) !important;
}

/* ライトモード用の固定色#6b7280対応 */
body.light-mode [style*="color: #6b7280"] {
    color: var(--text-secondary) !important;
}

body.light-mode [style*="color:#6b7280"] {
    color: var(--text-secondary) !important;
}

/* theme/analytics用の包括的対応 */
body.light-mode .glass-card {
    background-color: var(--bg-card) !important;
    border-color: var(--border-primary) !important;
}

body.light-mode .category-card {
    background-color: var(--bg-card) !important;
}

body.light-mode .insight-card {
    background-color: var(--bg-tertiary) !important;
    border-color: var(--accent-primary) !important;
}

body.light-mode .keyword-pill {
    background-color: var(--bg-secondary) !important;
    border-color: var(--border-secondary) !important;
    color: var(--text-primary) !important;
}

body.light-mode .keyword-pill:hover {
    background-color: var(--bg-tertiary) !important;
    border-color: var(--accent-primary) !important;
}

body.light-mode .keyword-pill .volume {
    background-color: var(--bg-quaternary) !important;
    color: var(--text-secondary) !important;
}

body.light-mode .chart-container {
    background-color: var(--bg-secondary) !important;
}

/* ===== ACTION BUTTONS (consistent across themes) ===== */
.btn-action,
.generate-button,
.btn-gradient-indigo,
.btn-gradient-purple,
.gradient-button,
[class*="btn-gradient"],
button[class*="gradient"],
.action-button,
.btn-primary,
.btn-success,
.btn-warning,
.theme-submit-btn,
.create-btn,
.save-btn,
.preview-btn,
.edit-btn,
.empty-state-button,
.slider-btn,
button[type="submit"],
input[type="submit"],
.submit-button {
    background: #2563eb;
    color: white !important;
    border: none !important;
    transition: all 0.3s ease !important;
}

/* ===== UTILITY BUTTONS (analytics, refresh, etc.) ===== */
.btn-analytics,
.btn-refresh,
#refresh-trends-btn,
#refresh-llm-trends-btn,
.refresh-llm-trends-btn {
    background: #374151 !important;
    color: white !important;
    border: none !important;
    padding: 0.5rem 1rem !important;
    border-radius: 0.5rem !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    min-height: 2.5rem !important;
    min-width: 6rem !important;
}

.btn-analytics:hover,
.btn-refresh:hover,
#refresh-trends-btn:hover,
#refresh-llm-trends-btn:hover,
.refresh-llm-trends-btn:hover {
    background: #4b5563 !important;
    color: white !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

.btn-analytics:disabled,
.btn-refresh:disabled,
#refresh-trends-btn:disabled,
#refresh-llm-trends-btn:disabled,
.refresh-llm-trends-btn:disabled {
    background: #374151 !important;
    color: white !important;
    opacity: 0.7 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

.btn-action:hover,
.generate-button:hover,
.btn-gradient-indigo:hover,
.btn-gradient-purple:hover,
.gradient-button:hover,
[class*="btn-gradient"]:hover,
button[class*="gradient"]:hover,
.action-button:hover,
.btn-primary:hover,
.btn-success:hover,
.btn-warning:hover,
.theme-submit-btn:hover,
.create-btn:hover,
.save-btn:hover,
.preview-btn:hover,
.edit-btn:hover,
.empty-state-button:hover,
.slider-btn:hover,
button[type="submit"]:hover,
input[type="submit"]:hover,
.submit-button:hover {
    background: linear-gradient(135deg, #5b5fef 0%, #4f46e5 100%) !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4) !important;
}

.btn-action:disabled,
.generate-button:disabled,
.btn-gradient-indigo:disabled,
.btn-gradient-purple:disabled,
.gradient-button:disabled,
[class*="btn-gradient"]:disabled,
button[class*="gradient"]:disabled,
.action-button:disabled,
.btn-primary:disabled,
.btn-success:disabled,
.btn-warning:disabled,
.theme-submit-btn:disabled,
.create-btn:disabled,
.save-btn:disabled,
.preview-btn:disabled,
.edit-btn:disabled,
.empty-state-button:disabled,
.slider-btn:disabled,
button[type="submit"]:disabled,
input[type="submit"]:disabled,
.submit-button:disabled {
    opacity: 0.7 !important;
    cursor: not-allowed !important;
    transform: none !important;
    color: white !important;
}

/* Light mode - action buttons maintain their design */
body.light-mode .btn-action,
body.light-mode .generate-button,
body.light-mode .btn-gradient-indigo,
body.light-mode .btn-gradient-purple,
body.light-mode .gradient-button,
body.light-mode [class*="btn-gradient"],
body.light-mode button[class*="gradient"],
body.light-mode .action-button,
body.light-mode .btn-primary,
body.light-mode .btn-success,
body.light-mode .btn-warning,
body.light-mode .theme-submit-btn,
body.light-mode .create-btn,
body.light-mode .save-btn,
body.light-mode .preview-btn,
body.light-mode .edit-btn,
body.light-mode .empty-state-button,
body.light-mode .slider-btn,
body.light-mode button[type="submit"],
body.light-mode input[type="submit"],
body.light-mode .submit-button {
    background: #2563eb;
    color: white !important;
}

body.light-mode .btn-action:hover,
body.light-mode .generate-button:hover,
body.light-mode .btn-gradient-indigo:hover,
body.light-mode .btn-gradient-purple:hover,
body.light-mode .gradient-button:hover,
body.light-mode [class*="btn-gradient"]:hover,
body.light-mode button[class*="gradient"]:hover,
body.light-mode .action-button:hover,
body.light-mode .btn-primary:hover,
body.light-mode .btn-success:hover,
body.light-mode .btn-warning:hover,
body.light-mode .theme-submit-btn:hover,
body.light-mode .create-btn:hover,
body.light-mode .save-btn:hover,
body.light-mode .preview-btn:hover,
body.light-mode .edit-btn:hover,
body.light-mode .empty-state-button:hover,
body.light-mode .slider-btn:hover,
body.light-mode button[type="submit"]:hover,
body.light-mode input[type="submit"]:hover,
body.light-mode .submit-button:hover {
    background: linear-gradient(135deg, #5b5fef 0%, #4f46e5 100%) !important;
    color: white !important;
}

body.light-mode .btn-action:disabled,
body.light-mode .generate-button:disabled,
body.light-mode .btn-gradient-indigo:disabled,
body.light-mode .btn-gradient-purple:disabled,
body.light-mode .gradient-button:disabled,
body.light-mode [class*="btn-gradient"]:disabled,
body.light-mode button[class*="gradient"]:disabled,
body.light-mode .action-button:disabled,
body.light-mode .btn-primary:disabled,
body.light-mode .btn-success:disabled,
body.light-mode .btn-warning:disabled,
body.light-mode .theme-submit-btn:disabled,
body.light-mode .create-btn:disabled,
body.light-mode .save-btn:disabled,
body.light-mode .preview-btn:disabled,
body.light-mode .edit-btn:disabled,
body.light-mode .empty-state-button:disabled,
body.light-mode .slider-btn:disabled,
body.light-mode button[type="submit"]:disabled,
body.light-mode input[type="submit"]:disabled,
body.light-mode .submit-button:disabled {
    background: #2563eb;
    color: white !important;
    opacity: 0.7 !important;
}

body.light-mode .bg-gray-800 {
    background-color: var(--bg-card) !important;
}

/* ライトモード：info-card対応 */
body.light-mode .info-card {
    background-color: var(--bg-card) !important;
    border: 1px solid var(--border-primary) !important;
}

/* ライトモード：キーワード生成中メッセージ対応 */
body.light-mode .loading-message .bg-indigo-900 {
    background-color: rgba(79, 70, 229, 0.3) !important;
}

body.light-mode .loading-message .border-indigo-500 {
    border-color: #6366f1 !important;
}

body.light-mode .loading-message .text-indigo-300,
body.light-mode .loading-message .text-indigo-400 {
    color: #6366f1 !important;
}

/* ライトモード：keyword-checkbox-item対応 */
body.light-mode .keyword-checkbox-item {
    background-color: #ffffff !important;
    border: 1px solid #969696 !important;
    color: var(--text-primary) !important;
}

body.light-mode .keyword-checkbox-item:hover {
    background-color: var(--bg-tertiary) !important;
    border-color: var(--border-secondary) !important;
}

body.light-mode .keyword-checkbox-item:has(input:checked) {
    background-color: var(--bg-tertiary) !important;
    border-color: var(--accent-primary) !important;
}

body.light-mode .keyword-checkbox-item .text-gray-300 {
    color: var(--text-primary) !important;
}

/* ライトモード：research-article背景色対応 */
body.light-mode .research-projects {
    background: var(--bg-card) !important;
    border-color: var(--border-primary) !important;
}

body.light-mode .research-project-item {
    background: var(--bg-secondary) !important;
    border-color: var(--border-primary) !important;
}

body.light-mode .research-project-item:hover {
    background: var(--bg-tertiary) !important;
    border-color: var(--accent-primary) !important;
}

body.light-mode .article-display {
    background: var(--bg-card) !important;
    border-color: var(--border-primary) !important;
    color: var(--text-primary) !important;
}

body.light-mode .progress-display {
    background: var(--bg-tertiary) !important;
    border-color: var(--border-primary) !important;
}

/* ライトモード：管理系ページ対応 */
body.light-mode .user-stats-section {
    background: var(--bg-card) !important;
    border-color: var(--border-primary) !important;
    padding: 15px;
}

body.light-mode .stat-card {
    background: var(--bg-secondary) !important;
    border-color: var(--border-primary) !important;
}

body.light-mode .stat-number {
    color: var(--text-primary) !important;
}

body.light-mode .stat-label {
    color: var(--text-secondary) !important;
}

body.light-mode .user-name {
    color: var(--text-primary) !important;
}

body.light-mode .user-subtitle {
    color: var(--text-secondary) !important;
}

body.light-mode .table-container {
    background: var(--bg-card) !important;
    border-color: var(--border-primary) !important;
}

body.light-mode .articles-table th {
    color: var(--text-primary) !important;
}

body.light-mode .articles-table td {
    color: var(--text-primary) !important;
    border-color: var(--border-primary) !important;
    background-color: #ffffff !important;
}

body.light-mode .article-row:hover {
    background: var(--bg-tertiary) !important;
}

body.light-mode .title-text {
    color: var(--text-primary) !important;
}

body.light-mode .title-meta {
    color: var(--text-secondary) !important;
}

body.light-mode .no-articles {
    color: var(--text-secondary) !important;
}

body.light-mode .no-articles-title {
    color: var(--text-primary) !important;
}

body.light-mode .search-input {
    background: var(--bg-input) !important;
    border-color: var(--border-primary) !important;
    color: var(--text-primary) !important;
}

body.light-mode .search-input::placeholder {
    color: #cbd5e1 !important;
}

body.light-mode .search-icon {
    color: var(--text-muted) !important;
}

body.light-mode .collapsible-section {
    background: var(--bg-card) !important;
    border-color: var(--border-primary) !important;
}

body.light-mode .collapsible-header {
    color: var(--text-primary) !important;
}

body.light-mode .collapsible-header:hover {
    background: var(--bg-tertiary) !important;
}

body.light-mode .meta-item {
    background: var(--bg-secondary) !important;
    border-color: var(--border-primary) !important;
}

body.light-mode .meta-label {
    color: var(--text-secondary) !important;
}

body.light-mode .meta-value {
    color: var(--text-primary) !important;
}

body.light-mode .article-body-display {
    background: var(--bg-secondary) !important;
    border-color: var(--border-primary) !important;
}

body.light-mode .research-pre {
    color: var(--text-primary) !important;
}

body.light-mode .card-title {
    color: var(--text-primary) !important;
}

body.light-mode .topic-content {
    color: var(--text-primary) !important;
}

body.light-mode .date-value {
    color: var(--text-primary) !important;
}

body.light-mode .time-value {
    color: var(--text-secondary) !important;
}

/* ナイトモード・ライトモード：select要素の下矢印対応 */
.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

/* ライトモード：select要素の下矢印対応 */
body.light-mode .form-select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23374151' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
}

/* ライトモード：report-textテーブル専用スタイル */
body.light-mode .report-text table {
    background-color: var(--bg-input) !important;
    border: 1px solid var(--border-primary) !important;
    box-shadow: var(--shadow-light) !important;
}

body.light-mode .report-text table thead th {
    background-color: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    border-bottom: 2px solid var(--accent-primary) !important;
}

body.light-mode .report-text table thead th:not(:last-child)::after {
    background-color: var(--border-secondary) !important;
}

body.light-mode .report-text table tbody tr:nth-child(even) {
    background-color: var(--bg-tertiary) !important;
}

body.light-mode .report-text table tbody tr:nth-child(odd) {
    background-color: var(--bg-input) !important;
}

body.light-mode .report-text table tbody tr:hover {
    background-color: var(--bg-quaternary) !important;
}

body.light-mode .report-text table tbody td {
    color: var(--text-primary) !important;
    border-bottom: 1px solid var(--border-primary) !important;
}

body.light-mode .report-text table tbody td:first-child {
    color: var(--text-primary) !important;
    font-weight: 500;
}

body.light-mode .report-text table a {
    color: var(--accent-primary) !important;
    border-bottom-color: var(--accent-primary) !important;
}

body.light-mode .report-text table a:hover {
    color: var(--accent-secondary) !important;
    border-bottom-color: var(--accent-secondary) !important;
    background-color: var(--bg-tertiary) !important;
}

body.light-mode .report-text table strong {
    color: var(--text-primary) !important;
    background-color: var(--bg-tertiary) !important;
}

body.light-mode .report-text table .number {
    color: var(--accent-primary) !important;
}

/* ライトモード：report-displayテーブル専用スタイル */
body.light-mode .report-display table {
    background: var(--bg-input) !important;
    border: 1px solid var(--border-primary) !important;
    box-shadow: var(--shadow-light) !important;
}

body.light-mode .report-display thead {
    background: var(--bg-secondary) !important;
}

body.light-mode .report-display th {
    color: var(--text-primary) !important;
    background: var(--bg-secondary) !important;
    border-bottom: 2px solid var(--accent-primary) !important;
}

body.light-mode .report-display tbody tr:nth-child(even) {
    background: var(--bg-tertiary) !important;
}

body.light-mode .report-display tbody tr:nth-child(odd) {
    background: var(--bg-input) !important;
}

body.light-mode .report-display tbody tr:hover {
    background: var(--bg-quaternary) !important;
    transform: none !important;
}

body.light-mode .report-display td {
    color: var(--text-primary) !important;
    border-bottom: 1px solid var(--border-primary) !important;
}

body.light-mode .report-display td:first-child {
    color: var(--accent-primary) !important;
}

/* LLMアシスタントページの設定項目のselect要素のみ対応 */
.settings-grid .setting-item select {
    appearance: none;
    background: 
        url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e") no-repeat right 12px center / 16px,
        linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(99, 102, 241, 0.12) 100%);
    padding-right: 40px;
}

body.light-mode .settings-grid .setting-item select {
    background: 
        url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23374151' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e") no-repeat right 12px center / 16px,
        linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(99, 102, 241, 0.12) 100%);
}

/* ===========================================
   統一キーワードボタンデザイン - ライトモード対応
   =========================================== */

/* 統一キーワードボタン */
.trend-badge,
.keyword-pill,
.unified-keyword-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    margin: 0.3rem;
    border-radius: 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1.2;
    border: 2px solid #cbd5e1;
    background-color: #f8fafc;
    color: #1e293b;
}

/* ライトモード */
body.light-mode .trend-badge,
body.light-mode .keyword-pill,
body.light-mode .unified-keyword-badge {
    border: 2px solid #cbd5e1;
    background-color: #f8fafc;
    color: #1e293b;
}

/* ダークモード */
body:not(.light-mode) .trend-badge,
body:not(.light-mode) .keyword-pill,
body:not(.light-mode) .unified-keyword-badge {
    border: 2px solid #6b7280;
    background-color: #374151;
    color: #f9fafb;
}

/* ホバー効果 */
.trend-badge:hover,
.keyword-pill:hover,
.unified-keyword-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

/* ライトモードホバー */
body.light-mode .trend-badge:hover,
body.light-mode .keyword-pill:hover,
body.light-mode .unified-keyword-badge:hover {
    border-color: #3b82f6;
    background-color: #e2e8f0;
    color: #1e40af;
}

/* ダークモードホバー */
body:not(.light-mode) .trend-badge:hover,
body:not(.light-mode) .keyword-pill:hover,
body:not(.light-mode) .unified-keyword-badge:hover {
    border-color: #3b82f6;
    background-color: #4b5563;
    color: #93c5fd;
}

/* 選択状態 */
.trend-badge.selected,
.keyword-pill.selected,
.unified-keyword-badge.selected {
    background-color: #3b82f6;
    border-color: #2563eb;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* キーワードボリューム表示 */
.keyword-pill .volume,
.unified-keyword-badge .volume {
    padding: 0.125rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.25rem;
    white-space: nowrap;
}

/* ライトモードボリューム */
body.light-mode .keyword-pill .volume,
body.light-mode .unified-keyword-badge .volume {
    background-color: #e2e8f0;
    color: #64748b;
}

/* ダークモードボリューム */
body:not(.light-mode) .keyword-pill .volume,
body:not(.light-mode) .unified-keyword-badge .volume {
    background-color: #4b5563;
    color: #d1d5db;
}

/* ホバー時のボリューム */
.keyword-pill:hover .volume,
.unified-keyword-badge:hover .volume,
.trend-badge.selected .volume,
.keyword-pill.selected .volume,
.unified-keyword-badge.selected .volume {
    background-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
}

/* ===========================================
   横並びステップナビゲーション
   =========================================== */

.horizontal-step-navigation {
    padding: 15px;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    position: relative;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-primary);
}

.horizontal-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-tertiary);
    letter-spacing: 0.13px;
    position: relative;
    flex: 1;
    max-width: 160px;
    min-width: 150px;
}

.horizontal-step-item.active {
    color: var(--text-primary);
}

.horizontal-step-item:hover:not(.active) {
    color: var(--text-secondary);
}

.horizontal-step-indicator {
    position: relative;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.horizontal-step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--bg-tertiary);
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 12px;
    z-index: 2;
    position: relative;
    transition: all 0.2s ease;
}

.horizontal-step-number.active {
    background-color: var(--accent-primary);
    color: white;
}

.horizontal-step-number.step_fin {
    background-color: #605bff;
    color: #ffffff;
    position: relative;
}

.horizontal-step-number.step_fin::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #605bff, #7a8ef3, #8b86ff);
    border-radius: 50%;
    z-index: 1;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* ライトモードでのステップ完了状態 */
body.light-mode .horizontal-step-number.step_fin {
    background-color: #16a34a;
}

body.light-mode .horizontal-step-number.step_fin::after {
    background: linear-gradient(135deg, #16a34a, #22c55e, #4ade80);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.horizontal-step-item.step_fin .horizontal-step-text::before {
    content: '✓ ';
    color: #605bff;
    font-weight: bold;
    font-size: 16px;
    margin-right: 4px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    animation: checkmark-bounce 1.5s ease-in-out infinite alternate;
    display: inline-block;
}

.horizontal-step-item.step_fin .horizontal-step-text {
    color: #605bff !important;
    font-weight: 600;
}

.horizontal-step-item.step_fin .horizontal-step-text a {
    color: #605bff !important;
    text-decoration: none;
}

/* ライトモードでのステップ完了テキスト */
body.light-mode .horizontal-step-item.step_fin .horizontal-step-text::before {
    color: #2563eb;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

body.light-mode .horizontal-step-item.step_fin .horizontal-step-text {
    color: #2563eb !important;
}

body.light-mode .horizontal-step-item.step_fin .horizontal-step-text a {
    color: #2563eb !important;
}

.horizontal-step-item .horizontal-step-number.step_fin {
    box-shadow: 0 0 10px rgba(220, 38, 38, 0.5);
    animation: pulse-completed 2s infinite;
}

.horizontal-step-line {
    position: absolute;
    top: 16px;
    left: calc(50% + 20px);
    width: calc(100% - 40px);
    height: 2px;
    background-color: #e6e6e6;
    z-index: 1;
    transition: background-color 0.2s ease;
}

.horizontal-step-line.last {
    display: none;
}

.horizontal-step-item.step_fin .horizontal-step-line {
    background-color: #605bff;
}

body.light-mode .horizontal-step-item.step_fin .horizontal-step-line {
    background-color: #2563eb;
}

/* クローラー結果・予約画面の固定色修正 */
body.light-mode .text-blue-400 {
    color: #2563eb !important;
}

body.light-mode .text-green-400,
body.light-mode .text-green-500 {
    color: #16a34a !important;
}

body.light-mode .text-yellow-400,
body.light-mode .text-yellow-500 {
    color: #ca8a04 !important;
}

body.light-mode .text-purple-400,
body.light-mode .text-purple-500 {
    color: #9333ea !important;
}

body.light-mode .text-blue-500 {
    color: #2563eb !important;
}

/* アイコン背景色の調整 */
body.light-mode .bg-green-100 {
    background-color: #dcfce7 !important;
}

body.light-mode .bg-blue-100 {
    background-color: #dbeafe !important;
}

body.light-mode .bg-yellow-100 {
    background-color: #fef3c7 !important;
}

body.light-mode .text-green-600 {
    color: #16a34a !important;
}

body.light-mode .text-blue-600 {
    color: #2563eb !important;
}

body.light-mode .text-yellow-600 {
    color: #ca8a04 !important;
}

.horizontal-step-text {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
}

.horizontal-step-text a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.horizontal-step-text a:hover {
    color: var(--accent-primary);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .horizontal-step-navigation {
        flex-direction: column;
        gap: 16px;
        padding: 15px 0;
    }
    
    .horizontal-step-item {
        width: 100%;
        max-width: none;
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
        padding: 12px 16px;
    }
    
    .horizontal-step-indicator {
        margin-bottom: 0;
        margin-right: 16px;
        width: auto;
    }
    
    .horizontal-step-line {
        display: none;
    }
    
    .horizontal-step-text {
        text-align: left;
    }
}

/* ===== 説明エリア共通スタイル ===== */
.description-box {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(99, 102, 241, 0.08) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.description-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.description-text {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}