/* ==========================================================================
   GREEN×EXPO 2027 - 共通スタイルシート
   v2 Participant Dashboard共通CSS
   ========================================================================== */

/* フォント設定 */
body {
    font-family: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
}

/* レイアウト変数 */
:root {
    --sidebar-width: 320px;
}

/* メインコンテンツエリアのマージン（レスポンシブ） */
.fi-main-ctn {
    margin-left: 0;
}

@media (min-width: 1024px) {
    .fi-main-ctn {
        margin-left: var(--sidebar-width);
    }
}

/* ==========================================================================
   サイドバーロゴスタイル
   ========================================================================== */

.fi-sidebar-header a,
.fi-logo {
    color: rgb(3, 7, 18);
}

.dark .fi-sidebar-header a,
.dark .fi-logo {
    color: rgb(255, 255, 255);
}

/* ==========================================================================
   バッジスタイル（ステータス表示）
   ========================================================================== */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.badge-info {
    background: #dbeafe;
    color: #1e40af;
}

.badge-gray {
    background: #f3f4f6;
    color: #374151;
}

/* ==========================================================================
   FullCalendar カスタマイズ
   ========================================================================== */

.fc {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
}

.fc .fc-button-primary {
    background-color: rgb(45, 80, 22);
    border-color: rgb(45, 80, 22);
}

.fc .fc-button-primary:hover {
    background-color: rgb(34, 60, 17);
    border-color: rgb(34, 60, 17);
}

.fc .fc-button-primary:not(:disabled):active,
.fc .fc-button-primary:not(:disabled).fc-button-active {
    background-color: rgb(34, 60, 17);
    border-color: rgb(34, 60, 17);
}

/* ==========================================================================
   プロジェクトロードマップスタイル
   ========================================================================== */

.roadmap-container {
    position: relative;
    overflow-x: auto;
    overflow-y: visible;
    padding-bottom: 1rem;
}

/* カスタムスクロールバー */
.roadmap-container::-webkit-scrollbar {
    height: 8px;
}

.roadmap-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.roadmap-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.roadmap-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.roadmap-timeline {
    position: relative;
    min-height: 200px;
}

.roadmap-months {
    display: flex;
    gap: 0;
    min-width: max-content;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
    z-index: 1;
}

.roadmap-month {
    flex: 0 0 80px;
    text-align: center;
    font-size: 11px;
    color: #6b7280;
    padding: 0.5rem 0;
    position: relative;
}

.roadmap-month.current {
    font-weight: 600;
    color: #3b82f6;
    background: #dbeafe;
    border-radius: 4px;
    z-index: 2;
}

.roadmap-phases {
    position: relative;
    padding-top: 2rem;
    min-height: 180px;
    min-width: max-content;
}

.roadmap-phase-bar {
    position: absolute;
    height: 28px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.3s;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0 12px;
    color: white;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
}

.roadmap-phase-bar:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.roadmap-phase-bar.completed {
    background: #10b981;
}

.roadmap-phase-bar.in-progress {
    background: #3b82f6;
}

.roadmap-phase-bar.pending {
    background: #d1d5db;
    color: #6b7280;
}

.roadmap-phase-label {
    position: absolute;
    right: 100%;
    margin-right: 12px;
    font-size: 11px;
    color: #6b7280;
    white-space: nowrap;
    width: 120px;
    text-align: right;
    font-weight: 500;
}

.roadmap-phase-bar .phase-progress {
    margin-left: auto;
    font-size: 11px;
    opacity: 0.9;
}

.roadmap-current-marker {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #f59e0b;
    z-index: 5;
}

.roadmap-current-marker::before {
    content: '▼ 現在';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    color: #f59e0b;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
    background: white;
    padding: 2px 6px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.roadmap-current-marker::after {
    content: none;
}

/* ツールチップ */
.roadmap-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 8px;
    padding: 8px 12px;
    background: #1f2937;
    color: white;
    font-size: 11px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 20;
    line-height: 1.5;
}

.roadmap-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #1f2937;
}

.roadmap-phase-bar:hover .roadmap-tooltip {
    opacity: 1;
}

/* ダークモード対応 */
.dark .roadmap-months {
    border-bottom-color: rgba(255,255,255,0.1);
}

.dark .roadmap-month {
    color: #9ca3af;
}

.dark .roadmap-month.current {
    color: #60a5fa;
    background: rgba(59, 130, 246, 0.1);
}

.dark .roadmap-phase-label {
    color: #9ca3af;
}

.dark .roadmap-current-marker::before {
    background: #1f2937;
    color: #fbbf24;
}
